Skip to content

Commit ae50106

Browse files
author
Codegen Bot
committed
Ensure shell scripts end with exactly one newline
1 parent 9e058e0 commit ae50106

54 files changed

Lines changed: 64 additions & 122 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

codegen-examples/CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ By contributing to Codegen Examples, you agree that:
1717
1. Update documentation as needed.
1818
1. Submit a pull request to the `main` branch.
1919
1. Include a clear description of your changes in the PR.
20-

codegen-examples/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@ Have a useful example to share? We'd love to include it! Please see our [Contrib
5858
## License
5959

6060
The [Apache 2.0 license](LICENSE).
61-

codegen-examples/STRUCTURE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,3 @@ Before submitting:
178178
1. Check that documentation is clear and accurate
179179

180180
Remember: Your example might be used by both humans and AI to understand Codegen's capabilities. Clear structure and documentation help everyone use your code effectively.
181-

codegen-examples/examples/Deployer.sh

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ display_menu() {
5050
echo -e "${YELLOW}Enter 'all' to select all examples${NC}"
5151
echo -e "${YELLOW}Enter 'q' to quit${NC}"
5252
echo ""
53-
53+
5454
local i=1
5555
for example in "${examples[@]}"; do
5656
if is_deployable "$example"; then
@@ -67,12 +67,12 @@ display_menu() {
6767
deploy_example() {
6868
local example=$1
6969
local status=0
70-
70+
7171
echo -e "${BLUE}Deploying $example...${NC}"
72-
72+
7373
if [ -d "$example" ] && [ -f "$example/deploy.sh" ]; then
7474
(cd "$example" && bash ./deploy.sh) || status=$?
75-
75+
7676
if [ $status -eq 0 ]; then
7777
echo -e "${GREEN}Successfully deployed $example${NC}"
7878
return 0
@@ -92,9 +92,9 @@ deploy_examples() {
9292
local pids=()
9393
local results=()
9494
local example_names=()
95-
95+
9696
echo -e "${BLUE}Starting deployment of ${#selected_examples[@]} examples...${NC}"
97-
97+
9898
# Start all deployments in background
9999
for example in "${selected_examples[@]}"; do
100100
if is_deployable "$example"; then
@@ -106,7 +106,7 @@ deploy_examples() {
106106
echo -e "${RED}Skipping $example (not deployable)${NC}"
107107
fi
108108
done
109-
109+
110110
# Wait for all deployments to finish
111111
for i in "${!pids[@]}"; do
112112
wait "${pids[$i]}"
@@ -117,25 +117,25 @@ deploy_examples() {
117117
echo -e "${RED}${example_names[$i]} deployment failed${NC}"
118118
fi
119119
done
120-
120+
121121
# Print summary
122122
echo ""
123123
echo -e "${BLUE}=== Deployment Summary ===${NC}"
124124
local success_count=0
125125
local failure_count=0
126-
126+
127127
for i in "${!results[@]}"; do
128128
if [ ${results[$i]} -eq 0 ]; then
129129
((success_count++))
130130
else
131131
((failure_count++))
132132
fi
133133
done
134-
134+
135135
echo -e "${GREEN}Successfully deployed: $success_count${NC}"
136136
echo -e "${RED}Failed deployments: $failure_count${NC}"
137137
echo ""
138-
138+
139139
if [ $failure_count -gt 0 ]; then
140140
echo -e "${YELLOW}Some deployments failed. Check the logs above for details.${NC}"
141141
else
@@ -147,7 +147,7 @@ deploy_examples() {
147147
while true; do
148148
display_menu
149149
read -p "Enter your selection: " selection
150-
150+
151151
if [ "$selection" = "q" ]; then
152152
echo -e "${BLUE}Exiting...${NC}"
153153
exit 0
@@ -174,7 +174,7 @@ while true; do
174174
echo -e "${RED}Invalid selection: $num. Please enter valid numbers.${NC}"
175175
fi
176176
done
177-
177+
178178
if [ ${#selected_examples[@]} -gt 0 ]; then
179179
echo -e "${BLUE}Selected examples: ${selected_examples[*]}${NC}"
180180
read -p "Proceed with deployment? (y/n): " confirm
@@ -189,4 +189,3 @@ while true; do
189189
fi
190190
fi
191191
done
192-

codegen-examples/examples/README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@ This directory contains examples of how to use the Codegen SDK with Modal for va
1111
## Getting Started
1212

1313
1. Clone the repository:
14+
1415
```bash
1516
git clone https://github.com/Zeeeepa/codegen.git
1617
cd codegen/codegen-examples/examples
1718
```
1819

19-
2. Install Modal CLI:
20+
1. Install Modal CLI:
21+
2022
```bash
2123
pip install modal
2224
```
2325

24-
3. Authenticate with Modal:
26+
1. Authenticate with Modal:
27+
2528
```bash
2629
modal token new
2730
```
@@ -45,20 +48,20 @@ The deployer will show you a list of available examples and allow you to select
4548
Here's a list of the available examples:
4649

4750
1. **swebench_agent_run**: Run SWEBench agent tasks using Codegen and Modal.
48-
2. **snapshot_event_handler**: Handle snapshot events from GitHub.
49-
3. **slack_chatbot**: Create a Slack chatbot using Codegen and Modal.
50-
4. **repo_analytics**: Analyze GitHub repositories and generate insights.
51-
5. **pr_review_bot**: Automatically review pull requests on GitHub.
52-
6. **github_checks**: Create GitHub checks for your repositories.
53-
7. **linear_webhooks**: Handle Linear webhook events.
54-
8. **modal_repo_analytics**: Analyze Modal repositories.
55-
9. **deep_code_research**: Perform deep code research using Codegen.
56-
10. **cyclomatic_complexity**: Calculate cyclomatic complexity of code.
57-
11. **delete_dead_code**: Identify and delete dead code in repositories.
58-
12. **document_functions**: Automatically document functions in code.
59-
13. **codegen-mcp-server**: Run a Model Context Protocol server.
60-
14. **codegen_app**: Create a Codegen application.
61-
15. **ai_impact_analysis**: Analyze the impact of AI on code.
51+
1. **snapshot_event_handler**: Handle snapshot events from GitHub.
52+
1. **slack_chatbot**: Create a Slack chatbot using Codegen and Modal.
53+
1. **repo_analytics**: Analyze GitHub repositories and generate insights.
54+
1. **pr_review_bot**: Automatically review pull requests on GitHub.
55+
1. **github_checks**: Create GitHub checks for your repositories.
56+
1. **linear_webhooks**: Handle Linear webhook events.
57+
1. **modal_repo_analytics**: Analyze Modal repositories.
58+
1. **deep_code_research**: Perform deep code research using Codegen.
59+
1. **cyclomatic_complexity**: Calculate cyclomatic complexity of code.
60+
1. **delete_dead_code**: Identify and delete dead code in repositories.
61+
1. **document_functions**: Automatically document functions in code.
62+
1. **codegen-mcp-server**: Run a Model Context Protocol server.
63+
1. **codegen_app**: Create a Codegen application.
64+
1. **ai_impact_analysis**: Analyze the impact of AI on code.
6265

6366
Each example has its own README.md file with detailed instructions on how to set it up and use it.
6467

@@ -87,4 +90,3 @@ If you encounter issues with the examples, check the following:
8790
## Contributing
8891

8992
If you have ideas for new examples or improvements to existing ones, please open an issue or pull request on the [Codegen repository](https://github.com/Zeeeepa/codegen).
90-

codegen-examples/examples/ai_impact_analysis/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,3 @@ After running the analysis, symbols in the codebase will have the following attr
122122
## Contributing
123123

124124
Feel free to submit issues and enhancement requests!
125-

codegen-examples/examples/ai_impact_analysis/dashboard/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,3 @@ The dashboard will display:
8484
## Contributing
8585

8686
Feel free to submit issues and enhancement requests!
87-

codegen-examples/examples/codegen-mcp-server/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,3 @@ Here is an example mcp config that can be used with Cline or Claude desktop to i
6565
- `parse_codebase`: Parses a codebase located at the provided path.
6666
- `check_parse_status`: Provides the current parsing status for the provided codebase.
6767
- `execute_codemod`: Executes a codemod script on a parsed codebase. This is where the codegen sdk leveraged to run simple or sophisticated codemods on the codebase.
68-

codegen-examples/examples/codegen-mcp-server/llms-install.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ Please use a CURL command to retrieve the contents of the readme and documentati
1515
1. curl -sL "https://docs.codegen.com/llms.txt" | cat
1616

1717
This should give you all the context you need to successfully install and utilize the server.
18-

codegen-examples/examples/codegen_app/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ modal deploy app.py
3131
```
3232

3333
Then you can swap in the modal URL for slack etc.
34-

0 commit comments

Comments
 (0)