diff --git a/.github/workflows/codeflash-optimize.yaml b/.github/workflows/codeflash-optimize.yaml index d08fed61e..7a5fb30c9 100644 --- a/.github/workflows/codeflash-optimize.yaml +++ b/.github/workflows/codeflash-optimize.yaml @@ -3,7 +3,7 @@ name: CodeFlash on: pull_request: paths: - - "**" + - "codeflash/**" workflow_dispatch: concurrency: @@ -17,7 +17,6 @@ jobs: runs-on: ubuntu-latest env: CODEFLASH_AIS_SERVER: prod - POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }} CODEFLASH_PR_NUMBER: ${{ github.event.number }} COLUMNS: 110 diff --git a/codeflash/bubble_sort.py b/codeflash/bubble_sort.py new file mode 100644 index 000000000..b18994494 --- /dev/null +++ b/codeflash/bubble_sort.py @@ -0,0 +1,8 @@ +def sorter(arr): + for i in range(len(arr)): + for j in range(len(arr) - 1): + if arr[j] > arr[j + 1]: + temp = arr[j] + arr[j] = arr[j + 1] + arr[j + 1] = temp + return arr \ No newline at end of file