No description
Find a file
Saurabh Misra 1389a00826
Merge pull request #1354 from codeflash-ai/remove-black-as-dependency
remove project dependency on black
2024-12-18 14:20:47 -08:00
.github fix unit tests 2024-12-09 12:30:39 -08:00
.idea Removing Returns dependency. 2024-12-16 15:33:48 -08:00
.vscode round 1 2024-10-12 17:29:15 -05:00
cli remove project dependency on black 2024-12-18 12:53:03 -08:00
django/aiservice Removing Returns dependency. 2024-12-16 15:33:48 -08:00
docs - Add some more details to the docs 2024-12-08 14:12:59 -08:00
experiments sqlalchemy experiment wip. 2024-05-22 15:53:45 -07:00
js Fix the github pr formatting 2024-12-18 13:48:31 -08:00
.gitignore add secret scanner and monorepo hook (#1201) 2024-11-09 14:23:39 +00:00
.prettierrc Rename some auth0 mgmt things 2023-12-10 17:40:07 -08:00
lefthook.yml add secret scanner and monorepo hook (#1201) 2024-11-09 14:23:39 +00:00
mypy.ini Removing Returns dependency. 2024-12-16 15:33:48 -08:00
package.json add secret scanner and monorepo hook (#1201) 2024-11-09 14:23:39 +00:00
README.md add secret scanner and monorepo hook (#1201) 2024-11-09 14:23:39 +00:00
secretlint.config.js add secret scanner and monorepo hook (#1201) 2024-11-09 14:23:39 +00:00

CodeFlash MonoRepo

Here's the projects that are part of the CodeFlash MonoRepo:

  • CodeFlash Client - /cli/
  • CodeFlash Python Django ai service - /django/aiservice
  • CodeFlash NodeJS CF API - /js/cf-api
  • CodeFlash Webapp - /js/cf-webapp

Project Setup

Prerequisites

  • Node.js and npm: Ensure Node.js is installed and npm is set up for installation of pre-commit hook(Lefthook).
  • Python and Mamba: Ensure Python is installed and Mamba is set up.

post clone run npm install to install all the dependencies at root level.

Glossary

Optimization

  • Codeflash Optimizer - The overarching technology that solves Code optimization.
  • Function to Optimize - The target function that we want to optimize.
  • Optimization Candidate - generated code that we think might be an optimization of the code to optimize.
  • Helper function - This a function being called by, and is under the code path of the function to optimize.

Test generation

  • Verification - System to verify if the optimization candidate has the same functional behavior as the function to optimize.
  • Existing Tests - All the existing tests that are present in a repo.
  • Generated Test - The tests that we create for the user using the LLM.
  • Tracer - Our technology that collects and dumps the input arguments and other info for a Python executable.
  • Replay test - This test reruns all the inputs for a function to optimize that were collected by the tracer.
  • Inspired Regression tests - Newly generated Tests that were "inspired" by existing tests. That means these are new test cases that are generated by the llm understanding how the code works by looking at the existing test cases and function to optimize.
  • Comparator - Our function that compares any two Python objects and returns True if they are equal and False if they are not equal.

Infra and Systems

  • CF API - The javascript webservice that currently serves the GitHub App.
  • AI Service - The Python Django service that serves the AI endpoints.
  • Webapp - The react web application written in Next.js. Users can generate API Key etc here.
  • PostHog - Our events tracking and product analytics 3rd party tool.
  • Sentry - Our code crash telemetry service that helps us understand how codeflash fails.