Skip to content

Commit 66b9465

Browse files
authored
add: zulip sponsorship acknowledgement (#269)
* fix: printing is flushed so it appears in order * fix: fix-code uses include dirs from params * add: zulip sponsorship acknowledgement
1 parent 3b98640 commit 66b9465

6 files changed

Lines changed: 32 additions & 15 deletions

File tree

esbmc_ai/__main__.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def main() -> None:
169169

170170
print(f"ESBMC-AI v{__version__}")
171171
print(f"Made by {__author__}")
172-
print()
172+
print(flush=True)
173173

174174
_init_logging()
175175

@@ -200,9 +200,10 @@ def main() -> None:
200200

201201
# Show full config at highest verbosity level (-vvv)
202202
if config.verbose_level >= 3:
203-
logger.debug("Global configuration:")
204-
print(json.dumps(config.model_dump(), indent=2, default=str))
205-
print()
203+
logger.debug(
204+
"Global configuration:\n"
205+
+ json.dumps(config.model_dump(), indent=2, default=str)
206+
)
206207

207208
# Run the command
208209
command_name = config.command_name
@@ -215,9 +216,10 @@ def main() -> None:
215216
if config.verbose_level >= 3:
216217
try:
217218
cmd_config = command.config
218-
logger.debug(f"Command '{command_name}' configuration:")
219-
print(json.dumps(cmd_config.model_dump(), indent=2, default=str))
220-
print()
219+
logger.debug(
220+
f"Command '{command_name}' configuration:\n"
221+
+ json.dumps(cmd_config.model_dump(), indent=2, default=str)
222+
)
221223
except NotImplementedError:
222224
pass
223225

@@ -227,13 +229,13 @@ def main() -> None:
227229
logger.info(f"Time taken: {time_taken}")
228230

229231
if result:
230-
print(result)
232+
print(result, flush=True)
231233
if config.use_json:
232234
json_result_str: str = result.to_json()
233235
json_result: dict = json.loads(json_result_str)
234236
json_result["time_taken_seconds"] = time_taken
235237
json_result_str = json.dumps(json_result)
236-
print(json_result_str)
238+
print(json_result_str, flush=True)
237239
if config.json_path:
238240
with open(config.json_path, "w", encoding="utf-8") as f:
239241
f.write(json_result_str)

esbmc_ai/addon_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ def __init__(self, config: Config | None = None) -> None:
3838

3939
# Load the config fields.
4040
if self._config.addon_modules:
41-
print("Loading Addons:")
41+
self._logger.info("Loading Addons:")
4242

4343
for m in self._config.addon_modules:
4444
addons: list[BaseComponent] = self.load_addons_module(m)
4545
for addon in addons:
46-
print(f"\t* {addon.name} by {addon.authors}")
46+
self._logger.info(f"\t* {addon.name} by {addon.authors}")
4747

4848
@property
4949
def chat_command_addons(self) -> dict[str, ChatCommand]:

esbmc_ai/commands/fix_code_command.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def execute(self) -> FixCodeCommandResult:
133133
)
134134
# End of handle kwargs
135135

136-
solution: Solution = Solution([])
136+
solution: Solution = Solution(
137+
[], include_dirs=list(self.global_config.solution.include_dirs)
138+
)
137139
solution.add_source_file(source_file)
138140

139141

esbmc_ai/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def settings_customise_sources(
649649
if config_file_path:
650650
config_file = Path(config_file_path).expanduser()
651651
if config_file.exists():
652-
print(f"Loading config file: {config_file}")
652+
print(f"Loading config file: {config_file}", flush=True)
653653
sources.append(TomlConfigSettingsSource(settings_cls, config_file))
654654

655655
# Add environment-based sources

website/content/about.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,17 @@ ESBMC-AI is developed by Yiannis Charalambous.
77

88
## Acknowledgements
99

10-
* Website is using the [Hextra](https://imfing.github.io/hextra) Hugo template.
11-
* Website is using the [Heroicons](https://v1.heroicons.com/) icon set.
10+
<style>
11+
img {
12+
max-width: 50px;
13+
height: auto;
14+
}
15+
</style>
16+
17+
The S3 team and by extension ESBMC-AI, is sponsored by Zulip. Zulip is an
18+
organized team chat app designed for efficient communication.
19+
20+
![Zulip SVG](./images/sponsors/zulip-icon-circle.svg)
21+
22+
- Website is using the [Hextra](https://imfing.github.io/hextra) Hugo template.
23+
- Website is using the [Heroicons](https://v1.heroicons.com/) icon set.
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)