<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" zoomAndPan="magnify" viewBox="0 0 150 149.999998" height="200" preserveAspectRatio="xMidYMid meet" version="1.0"><defs><g/><clipPath id="ef0777e725"><path d="M 95 0 L 114.464844 0 L 114.464844 42 L 95 42 Z M 95 0 " clip-rule="nonzero"/></clipPath><clipPath id="26e0b5bc96"><path d="M 35.714844 23 L 114.464844 23 L 114.464844 101.515625 L 35.714844 101.515625 Z M 35.714844 23 " clip-rule="nonzero"/></clipPath></defs><rect x="-15" width="180" fill="#ffffff" y="-15" height="179.999997" fill-opacity="1"/><rect x="-15" width="180" fill="#25292f" y="-15" height="179.999997" fill-opacity="1"/><path fill="#25292f" d="M 65.441406 8.042969 L 84.546875 8.042969 L 84.546875 41.9375 L 65.441406 41.9375 Z M 65.441406 8.042969 " fill-opacity="1" fill-rule="nonzero"/><g clip-path="url(#ef0777e725)"><path fill="#25292f" d="M 95.125 -6.484375 L 114.230469 -6.484375 L 114.230469 41.9375 L 95.125 41.9375 Z M 95.125 -6.484375 " fill-opacity="1" fill-rule="nonzero"/></g><g clip-path="url(#26e0b5bc96)"><path fill="#00e0ff" d="M 81.632812 71.839844 L 65.441406 71.839844 L 65.441406 52.753906 L 114.230469 52.753906 L 114.230469 101.457031 L 95.125 101.457031 L 95.125 85.265625 L 78.957031 101.457031 L 35.757812 101.457031 L 35.757812 23.199219 L 54.863281 23.199219 L 54.863281 82.4375 L 71.074219 82.4375 Z M 81.632812 71.839844 " fill-opacity="1" fill-rule="nonzero"/></g><g fill="#ffffff" fill-opacity="1"><g transform="translate(34.627324, 123.863116)"><g><path d="M 1.125 -15.40625 L 5.90625 -15.40625 C 7.34375 -15.40625 8.488281 -15.097656 9.34375 -14.484375 C 10.207031 -13.867188 10.640625 -12.867188 10.640625 -11.484375 C 10.640625 -9.941406 10 -8.835938 8.71875 -8.171875 C 10.90625 -7.785156 12 -6.492188 12 -4.296875 C 12 -3.003906 11.550781 -1.960938 10.65625 -1.171875 C 9.757812 -0.390625 8.53125 0 6.96875 0 L 1.125 0 Z M 4.625 -9.375 L 4.90625 -9.375 C 5.695312 -9.375 6.285156 -9.507812 6.671875 -9.78125 C 7.054688 -10.050781 7.25 -10.5 7.25 -11.125 C 7.25 -12.175781 6.46875 -12.703125 4.90625 -12.703125 L 4.625 -12.703125 Z M 4.625 -2.703125 L 5.734375 -2.703125 C 7.453125 -2.703125 8.3125 -3.273438 8.3125 -4.421875 C 8.3125 -5.109375 8.09375 -5.597656 7.65625 -5.890625 C 7.226562 -6.191406 6.585938 -6.34375 5.734375 -6.34375 L 4.625 -6.34375 Z M 4.625 -2.703125 "/></g></g></g><g fill="#ffffff" fill-opacity="1"><g transform="translate(47.799184, 123.863116)"><g><path d="M 4.625 -15.40625 L 4.625 -3.078125 L 9.9375 -3.078125 L 9.9375 0 L 1.125 0 L 1.125 -15.40625 Z M 4.625 -15.40625 "/></g></g></g><g fill="#ffffff" fill-opacity="1"><g transform="translate(59.086775, 123.863116)"><g><path d="M 9.9375 -15.40625 L 9.9375 -12.328125 L 4.625 -12.328125 L 4.625 -9.265625 L 9.703125 -9.265625 L 9.703125 -6.1875 L 4.625 -6.1875 L 4.625 -3.078125 L 9.9375 -3.078125 L 9.9375 0 L 1.125 0 L 1.125 -15.40625 Z M 9.9375 -15.40625 "/></g></g></g><g fill="#ffffff" fill-opacity="1"><g transform="translate(70.654207, 123.863116)"><g><path d="M 12.953125 -15.40625 L 12.953125 -5.46875 C 12.953125 -3.570312 12.441406 -2.140625 11.421875 -1.171875 C 10.398438 -0.203125 8.90625 0.28125 6.9375 0.28125 C 4.976562 0.28125 3.488281 -0.203125 2.46875 -1.171875 C 1.445312 -2.140625 0.9375 -3.570312 0.9375 -5.46875 L 0.9375 -15.40625 L 4.4375 -15.40625 L 4.4375 -6.5 C 4.4375 -5.25 4.632812 -4.378906 5.03125 -3.890625 C 5.425781 -3.410156 6.0625 -3.171875 6.9375 -3.171875 C 7.820312 -3.171875 8.460938 -3.410156 8.859375 -3.890625 C 9.253906 -4.378906 9.453125 -5.25 9.453125 -6.5 L 9.453125 -15.40625 Z M 12.953125 -15.40625 "/></g></g></g><g fill="#ffffff" fill-opacity="1"><g transform="translate(85.281253, 123.863116)"><g><path d="M 3.25 -4 C 3.84375 -4 4.347656 -3.789062 4.765625 -3.375 C 5.179688 -2.957031 5.390625 -2.445312 5.390625 -1.84375 C 5.390625 -1.257812 5.179688 -0.757812 4.765625 -0.34375 C 4.347656 0.0703125 3.84375 0.28125 3.25 0.28125 C 2.664062 0.28125 2.164062 0.0703125 1.75 -0.34375 C 1.332031 -0.757812 1.125 -1.257812 1.125 -1.84375 C 1.125 -2.445312 1.332031 -2.957031 1.75 -3.375 C 2.164062 -3.789062 2.664062 -4 3.25 -4 Z M 3.25 -4 "/></g></g></g><g fill="#ffffff" fill-opacity="1"><g transform="translate(92.539101, 123.863116)"><g><path d="M 7.828125 -15.40625 L 7.828125 -4.34375 C 7.828125 -2.84375 7.410156 -1.695312 6.578125 -0.90625 C 5.753906 -0.113281 4.570312 0.28125 3.03125 0.28125 C 2.613281 0.28125 2.207031 0.226562 1.8125 0.125 C 1.414062 0.03125 1.078125 -0.0859375 0.796875 -0.234375 C 0.523438 -0.378906 0.28125 -0.523438 0.0625 -0.671875 C -0.15625 -0.816406 -0.3125 -0.941406 -0.40625 -1.046875 L -0.578125 -1.1875 L 0.546875 -4.125 C 1.273438 -3.425781 1.941406 -3.078125 2.546875 -3.078125 C 3.078125 -3.078125 3.503906 -3.253906 3.828125 -3.609375 C 4.148438 -3.960938 4.3125 -4.507812 4.3125 -5.25 L 4.3125 -15.40625 Z M 7.828125 -15.40625 "/></g></g></g><g fill="#ffffff" fill-opacity="1"><g transform="translate(102.035688, 123.863116)"><g><path d="M 6.796875 -15.6875 C 7.628906 -15.6875 8.441406 -15.5625 9.234375 -15.3125 C 10.035156 -15.070312 10.628906 -14.832031 11.015625 -14.59375 L 11.578125 -14.234375 L 10.15625 -11.421875 C 10.039062 -11.503906 9.882812 -11.601562 9.6875 -11.71875 C 9.488281 -11.832031 9.113281 -11.988281 8.5625 -12.1875 C 8.019531 -12.382812 7.515625 -12.484375 7.046875 -12.484375 C 6.453125 -12.484375 5.992188 -12.359375 5.671875 -12.109375 C 5.359375 -11.867188 5.203125 -11.535156 5.203125 -11.109375 C 5.203125 -10.898438 5.273438 -10.703125 5.421875 -10.515625 C 5.578125 -10.335938 5.832031 -10.144531 6.1875 -9.9375 C 6.550781 -9.738281 6.867188 -9.578125 7.140625 -9.453125 C 7.421875 -9.328125 7.847656 -9.140625 8.421875 -8.890625 C 9.421875 -8.460938 10.269531 -7.882812 10.96875 -7.15625 C 11.675781 -6.425781 12.03125 -5.601562 12.03125 -4.6875 C 12.03125 -3.800781 11.867188 -3.023438 11.546875 -2.359375 C 11.234375 -1.703125 10.796875 -1.1875 10.234375 -0.8125 C 9.679688 -0.445312 9.066406 -0.175781 8.390625 0 C 7.722656 0.1875 7 0.28125 6.21875 0.28125 C 5.539062 0.28125 4.878906 0.210938 4.234375 0.078125 C 3.585938 -0.0546875 3.046875 -0.226562 2.609375 -0.4375 C 2.171875 -0.644531 1.78125 -0.847656 1.4375 -1.046875 C 1.09375 -1.242188 0.835938 -1.410156 0.671875 -1.546875 L 0.421875 -1.75 L 2.1875 -4.703125 C 2.332031 -4.578125 2.535156 -4.414062 2.796875 -4.21875 C 3.054688 -4.03125 3.519531 -3.773438 4.1875 -3.453125 C 4.851562 -3.128906 5.441406 -2.96875 5.953125 -2.96875 C 7.429688 -2.96875 8.171875 -3.472656 8.171875 -4.484375 C 8.171875 -4.691406 8.117188 -4.882812 8.015625 -5.0625 C 7.910156 -5.25 7.722656 -5.429688 7.453125 -5.609375 C 7.191406 -5.785156 6.957031 -5.925781 6.75 -6.03125 C 6.539062 -6.144531 6.203125 -6.3125 5.734375 -6.53125 C 5.273438 -6.75 4.929688 -6.910156 4.703125 -7.015625 C 3.773438 -7.484375 3.054688 -8.0625 2.546875 -8.75 C 2.035156 -9.4375 1.78125 -10.179688 1.78125 -10.984375 C 1.78125 -12.359375 2.289062 -13.484375 3.3125 -14.359375 C 4.332031 -15.242188 5.492188 -15.6875 6.796875 -15.6875 Z M 6.796875 -15.6875 "/></g></g></g></svg>
![Copy of Copy of Copy of Copy of Copy of Copy of Copy of Untitled Design (1)](https://github.com/HelloblueAI/Bleu.js/assets/81389644/ddfc34a4-a992-441c-9cf4-c5feeeb43568)
.js/core
- Bleu.js is a Rule-based AI framework designed to provide pinpoint solutions to various problems. It's is a JavaScript framework built to tackle the various coding challenges developers face.
### Features
- Advanced debugging
- Automates dependency management
- Ensure Code Quality: Tools to ensure the highest code quality
- Generate Eggs: Automatically generate code snippets
- Provides tools to maintain code quality without adding extra complexity
- Real-time optimization suggestions
- Streamlines collaboration
- Support for multiple programming languages
- Manage Dependencies: Handle project dependencies efficiently
## Installation
Install the package using pnpm.
```javascript
pnpm install bleujs
```
## Running the Application
ROOT:
```javascript
pnpm run start:backend
```
In another terminal: ROOT:
```javascript
pnpm run start:frontend
```
```javascript
cd core-engine
pnpm run start
```
```javascript
cd dependency-management
pnpm start
```
```javascript
cd eggs-generator
pnpm run start
```
## Building the Application
```javascript
pnpm run build
```
## Testing
```javascript
pnpm run test:all
```
### Directory Structure
- **core-engine**: Contains the main logic for code generation, optimization, and debugging.
- **language-plugins**: Modules for different programming languages.
- **javascript**: JavaScript-specific tools.
- **python**: Python-specific tools.
- **collaboration-tools**: Tools for code review, issue tracking, and project management.
- **dependency-management**: Tools for monitoring and managing dependencies.
- **code-quality-assurance**: Tools for continuous code quality checks and analysis.
- **eggs-generator**: Tools for generating code snippets and optimization suggestions by HenFarm.js, the framework built by Helloblue.
- **docker**: Docker configuration files.
Bleu.js, uses the HenFarm.js framework for generating code snippets, referred to as "eggs." It's an integral part of Bleu.js, providing the functionality to automatically generate new code snippets to help improve efficiency and solve coding problems.
## Generating Code
To generate code using Bleu.js, you can send a POST request to the /generate endpoint with the template you want to use:
`curl -X POST http://localhost:3000/generate -H "Content-Type: application/json" -d '{"template": "basic function"}'`
## Optimizing Code
To optimize code using Bleu.js, you can send a POST request to the /optimize endpoint with the code you want to optimize:
`curl -X POST http://localhost:3000/optimize -H "Content-Type: application/json" -d '{"code": "console.log(\"Hello, world!\");"}'`
## Debugging Code
To debug code using Bleu.js, you can send a POST request to the /debug endpoint with the code you want to debug:
`curl -X POST http://localhost:3000/debug -H "Content-Type: application/json" -d '{"code": "console.log(\"Hello, world!\");"}'`
```javascript
cd frontend
```
```javascript
╰─ pnpm run serve
> bleujs@1.0.0 serve /Users/path/path/Bleu.js
> cd ui && pnpm run serve
> bleujs-ui@1.0.0 serve /Users/path/path/Bleu.js/ui
> vue-cli-service serve
INFO Starting development server...
98% after emitting
DONE Compiled successfully in 93660ms
App running at:
- Local: http://localhost:8080/
- Network: http://10.0.0.0:8080/
```
<img width="195" alt="Screenshot 2024-06-07 at 7 56 51 AM" src="https://github.com/HelloblueAI/Bleu.js/assets/81389644/03ccbf03-0f7f-412b-b396-0ce80f47809a">
The bleujs package aims to provide a robust and powerful solution for developers working on AI and backend services. Here's how this package can help developers around the world:
## Comprehensive AI Tools
With built-in AI services like natural language processing (NLP) and decision trees, developers can quickly integrate advanced AI capabilities into their applications without starting from scratch.
## Backend Efficiency
The package includes a well-structured backend setup using Express.js, MongoDB, and essential middleware like helmet for security, compression for performance, and cors for handling cross-origin requests. This allows developers to set up a scalable and secure backend efficiently.
## Testing and Quality Assurance
bleujs integrates comprehensive testing frameworks, including Jest for unit and integration tests, and Cypress for end-to-end tests. This ensures that applications built with this package are reliable and maintain high quality standards.
## Code Linting and Formatting
By including ESLint and Prettier configurations, bleujs helps developers maintain consistent coding standards and formatting, reducing errors and improving code readability.
## TypeScript Support
The package supports TypeScript, allowing developers to write safer and more maintainable code with type checking.
## Frontend Integration
With Vue.js as the frontend framework, developers can create modern, reactive user interfaces. The package includes scripts for building and serving Vue applications, making it easy to integrate the frontend with the backend.
## Swagger Documentation
The package includes tools for generating Swagger API documentation, making it easier for developers to document and share their API specifications.
## Continuous Integration/Continuous Deployment (CI/CD)
The package comes with a CI/CD pipeline configuration for automated testing, linting, building, and deployment. This helps teams to integrate changes continuously and deploy applications reliably.
## Docker Support
With Docker integration, developers can containerize their applications for consistent deployment across different environments. This ensures that the application runs seamlessly regardless of where it is deployed.
## Real-time Features
With WebSocket support (ws), developers can add real-time features like live notifications and updates to their applications.
## Usage
Create an instance of the BleuJS class and use its methods to manage your code:
```javascript
import BleuJS from 'bleu.js';
const bleu = new BleuJS();
const newEgg = bleu.generateEgg('This is a description of the new egg.');
console.log(newEgg);
const code = 'const x = 1; console.log(x);';
const optimizedCode = bleu.optimizeCode(code);
const dependencies = ['express', 'body-parser'];
bleu.manageDependencies(dependencies);
const isQualityCode = bleu.ensureCodeQuality(code);
console.log(`Is the code quality acceptable? ${isQualityCode}`);
```
```javascript
Bleu
✓ should generate a new egg (3 ms)
✓ should optimize code
✓ should manage dependencies (15 ms)
✓ should ensure code quality
✓ should generate multiple eggs
✓ should handle large number of eggs (1 ms)
✓ should handle complex optimization
✓ should ensure quality of complex code
Test Suites: 1 passed, 1 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 0.359 s, estimated 1 s
Ran all test suites.
```
test backend
```javascript
cd bleu.js
pnpm run test:backend
```
### Class Documentation
### 'BleuJS'
The BleuJS class provides several methods to help you manage and optimize your code.
```javascript
class Bleu {
constructor() {
this.eggs = [];
}
/**
* Generates a new code egg.
* @param {string} description - Description of the egg.
* @param {string} type - Type of the egg (e.g., 'model', 'utility').
* @param {object} options - Options for generating the egg.
* @returns {object} The generated egg.
*/
generateEgg(description, type, options) {
const code = this.generateCode(type, options);
const newEgg = {
id: this.eggs.length + 1,
description: this.generateDescription(type, options),
type,
code,
};
this.eggs.push(newEgg);
return newEgg;
}
/**
* Generates code based on type.
* @param {string} type - Type of the code (e.g., 'model', 'utility').
* @param {object} options - Options for generating the code.
* @returns {string} The generated code.
*/
generateCode(type, options) {
switch (type) {
case 'model':
return this.generateModel(options.modelName, options.fields);
case 'utility':
return this.generateUtility(options.utilityName, options.methods);
default:
throw new Error(`Unknown code type: ${type}`);
}
}
/**
* Generates model code.
* @param {string} modelName - Name of the model.
* @param {Array} fields - Fields of the model.
* @returns {string} The generated model code.
*/
generateModel(modelName, fields) {
let code = `class ${modelName} {\n`;
fields.forEach((field) => {
code += ` ${field.name}: ${field.type};\n`;
});
code += '}';
return code;
}
/**
* Generates utility code.
* @param {string} utilityName - Name of the utility.
* @param {Array} methods - Methods of the utility.
* @returns {string} The generated utility code.
*/
generateUtility(utilityName, methods) {
let code = `class ${utilityName} {\n`;
methods.forEach((method) => {
code += ` ${method}() {\n`;
code += ` // TODO: Implement ${method}\n`;
code += ' }\n';
});
code += '}';
return code;
}
/**
* Generates description based on type.
* @param {string} type - Type of the egg.
* @param {object} options - Options for generating the description.
* @returns {string} The generated description.
*/
generateDescription(type, options) {
switch (type) {
case 'model':
return `Model ${options.modelName} with fields ${options.fields.map((f) => f.name).join(', ')}`;
case 'utility':
return `Utility ${options.utilityName} with methods ${options.methods.join(', ')}`;
default:
throw new Error(`Unknown code type: ${type}`);
}
}
/**
* Optimizes the provided code.
* @param {string} code - The code to optimize.
* @returns {string} The optimized code.
*/
optimizeCode(code) {
return code.replace(/\s+/g, ' ').trim();
}
/**
* Manages dependencies.
* @param {Array} dependencies - List of dependencies.
*/
manageDependencies(dependencies) {
dependencies.forEach((dep) => {
console.log(`Managing dependency: ${dep}`);
});
}
/**
* Ensures code quality.
* @param {string} code - The code to check.
* @returns {boolean} Whether the code is of high quality.
*/
ensureCodeQuality(code) {
return !code.includes('var');
}
}
module.exports = Bleu;
```
```javascript
Bleu
✓ should generate a new egg (1 ms)
✓ should optimize code
✓ should manage dependencies (10 ms)
✓ should ensure code quality
✓ should generate multiple eggs
✓ should handle large number of eggs (3 ms)
✓ should handle complex optimization
✓ should ensure quality of complex code
Test Suites: 1 passed, 1 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 0.359 s, estimated 1 s
Ran all test suites.
```
## Constructor
```javascript
constructor();
```
## Structure
```javascript
class Bleu {
constructor() {
this.eggs = [];
}
generateEgg(description, type, options = {}) {
const newEgg = {
id: this.eggs.length + 1,
description,
type,
code: this.generateCode(type, options),
};
this.eggs.push(newEgg);
return newEgg;
}
generateCode(type, options) {
switch (type) {
case 'model':
return this.generateModel(options.modelName, options.fields);
case 'controller':
return this.generateController(options.controllerName, options.actions);
case 'utility':
return this.generateUtility(options.utilityName, options.methods);
default:
throw new Error(`Unknown code type: ${type}`);
}
}
generateModel(modelName, fields) {
const classFields = fields
.map((field) => ` ${field.name}: ${field.type};`)
.join('\n');
const classMethods = fields
.map(
(field) =>
` get${field.name.charAt(0).toUpperCase() + field.name.slice(1)}() { return this.${field.name}; }`,
)
.join('\n\n');
return `
class ${modelName} {
${classFields}
constructor(${fields.map((field) => field.name).join(', ')}) {
${fields.map((field) => `this.${field.name} = ${field.name};`).join('\n ')}
}
${classMethods}
}
module.exports = ${modelName};
`;
}
generateController(controllerName, actions) {
const actionMethods = actions
.map(
(action) => `
${action}() {
// ${action} logic here
}`,
)
.join('\n');
return `
class ${controllerName} {
${actionMethods}
}
module.exports = ${controllerName};
`;
}
generateUtility(utilityName, methods) {
const utilityMethods = methods
.map(
(method) => `
${method.name}(${method.params.join(', ')}) {
${method.body}
}`,
)
.join('\n');
return `
class ${utilityName} {
${utilityMethods}
}
module.exports = ${utilityName};
`;
}
optimizeCode(code) {
const optimizedCode = code;
return optimizedCode;
}
manageDependencies(dependencies) {
dependencies.forEach((dep) => {
console.log(`Managing dependency: ${dep}`);
});
}
ensureCodeQuality(code) {
const isQualityCode = true;
return isQualityCode;
}
}
module.exports = Bleu;
```
```javascript
const Bleu = require('./Bleu');
const bleu = new Bleu();
console.log('This is an index file');
// Test generateEgg method
const newEgg = bleu.generateEgg('This is a test egg', 'model', {
modelName: 'TestModel',
fields: [
{ name: 'field1', type: 'string' },
{ name: 'field2', type: 'number' },
],
});
console.log('Generated Egg:', newEgg);
// Test optimizeCode method
const code = 'const x = 1; console.log(x);';
const optimizedCode = bleu.optimizeCode(code);
console.log('Optimized Code:', optimizedCode);
// Test ensureCodeQuality method
const isQualityCode = bleu.ensureCodeQuality(code);
console.log('Is the code quality acceptable?', isQualityCode);
// Test manageDependencies method
const dependencies = ['express', 'body-parser'];
bleu.manageDependencies(dependencies);
```
```javascript
`pnpm run test:all`;
```
```javascript
PASS tests/bleu.test.js
API Tests
✓ should return Hello, World! on GET / (49 ms)
✓ should create data on POST /data (113 ms)
✓ should create multiple data entries on POST /data (114 ms)
✓ should handle /data with body {} (10 ms)
✓ should handle /nonexistent with body null (6 ms)
✓ should handle /data with body Invalid JSON (5 ms)
✓ should handle asynchronous errors gracefully (12 ms)
✓ should handle edge cases (4 ms)
✓ should ensure performance meets expectations (4 ms)
✓ should return 400 for missing data field in POST /data (5 ms)
✓ should return 500 for simulated server error in POST /data (7 ms)
✓ should handle invalid JSON gracefully (3 ms)
✓ should handle very large data payloads (106 ms)
✓ should measure response time for POST /data (110 ms)
✓ should handle simultaneous requests (148 ms)
✓ should validate response schema (6 ms)
✓ should stress test the server (263 ms)
✓ should test with invalid routes (5 ms)
✓ should test JSON parsing error (3 ms)
✓ should test different HTTP methods on /data (5 ms)
✓ should handle very large number of simultaneous requests (1235 ms)
✓ should handle concurrent GET and POST requests (108 ms)
✓ should handle slow network conditions gracefully (110 ms)
✓ should handle invalid request headers (10 ms)
✓ should verify CORS headers (7 ms)
✓ should handle session cookies (116 ms)
✓ should verify content-type for POST /data (9 ms)
✓ should test for memory leaks (274 ms)
✓ should handle different user roles (111 ms)
✓ should handle database connectivity issues (5 ms)
✓ should handle multipart/form-data (110 ms)
✓ should handle application/x-www-form-urlencoded (113 ms)
✓ should handle JSON arrays (11 ms)
✓ should handle deeply nested JSON objects (114 ms)
Test Suites: 1 passed, 1 total
Tests: 34 passed, 34 total
Snapshots: 0 total
Time: 3.707 s, estimated 4 s
Ran all test suites.
```
## Test
`cd backend`
`╰─ curl -X POST http://localhost:3003/ai/nlp -H "Content-Type: application/json" -d '{"text": "This is a test for NLP processing."}'`
## Expected response:
`{"tokens":["This","is","a","test","for","NLP","processing"]}% `
## Initializes a new instance of the BleuJS class.
### Methods
### Class Constructor:
The class constructor initializes the Bleu object with an empty array eggs to store the generated code 'eggs'. This array acts as a container for all the code snippets, models, utilities, and other structures created using the generateEgg method.
- Initializes an empty array eggs to store the generated code 'eggs'.
```javascript
constructor() {
this.eggs = [];
this.henFarm = new HenFarm(); // Initialize HenFarm.js
}
```
### generateEgg Method:
The generateEgg method is responsible for generating a new code 'egg'. This method leverages the HenFarm.js framework to produce code snippets based on the specified type and options. Each generated egg is assigned a unique ID, a description, and the generated code. The egg is then added to the eggs array and returned.
- Utilize HenFarm.js to generate code based on the provided type and options.
- Create a new egg object with a unique ID, description, type, generated code, and creation timestamp.
- Append the new egg to the eggs array.
- Return the newly created egg.
```javascript
generateEgg(description, type, options) {
const code = this.henFarm.generateCode(type, options);
const newEgg = {
id: this.eggs.length + 1,
description: this.generateDescription(type, options),
type,
code,
createdAt: new Date()
};
this.eggs.push(newEgg);
return newEgg;
}
```
```javascript
generateEgg(description, type, options) {
const code = this.henFarm.generateCode(type, options);
const newEgg = {
id: this.eggs.length + 1,
description: this.generateDescription(type, options),
type,
code,
createdAt: new Date()
};
this.eggs.push(newEgg);
return newEgg;
}
```
`cd eggs-generator`
`pnpm run test`
```javascript
PASS tests/bleu.test.js
API Tests
✓ should return Hello, World! on GET / (49 ms)
✓ should create data on POST /data (113 ms)
✓ should create multiple data entries on POST /data (114 ms)
✓ should handle /data with body {} (10 ms)
✓ should handle /nonexistent with body null (6 ms)
✓ should handle /data with body Invalid JSON (5 ms)
✓ should handle asynchronous errors gracefully (12 ms)
✓ should handle edge cases (4 ms)
✓ should ensure performance meets expectations (4 ms)
✓ should return 400 for missing data field in POST /data (5 ms)
✓ should return 500 for simulated server error in POST /data (7 ms)
✓ should handle invalid JSON gracefully (3 ms)
✓ should handle very large data payloads (106 ms)
✓ should measure response time for POST /data (110 ms)
✓ should handle simultaneous requests (148 ms)
✓ should validate response schema (6 ms)
✓ should stress test the server (263 ms)
✓ should test with invalid routes (5 ms)
✓ should test JSON parsing error (3 ms)
✓ should test different HTTP methods on /data (5 ms)
✓ should handle very large number of simultaneous requests (1235 ms)
✓ should handle concurrent GET and POST requests (108 ms)
✓ should handle slow network conditions gracefully (110 ms)
✓ should handle invalid request headers (10 ms)
✓ should verify CORS headers (7 ms)
✓ should handle session cookies (116 ms)
✓ should verify content-type for POST /data (9 ms)
✓ should test for memory leaks (274 ms)
✓ should handle different user roles (111 ms)
✓ should handle database connectivity issues (5 ms)
✓ should handle multipart/form-data (110 ms)
✓ should handle application/x-www-form-urlencoded (113 ms)
✓ should handle JSON arrays (11 ms)
✓ should handle deeply nested JSON objects (114 ms)
Test Suites: 1 passed, 1 total
Tests: 34 passed, 34 total
Snapshots: 0 total
Time: 3.707 s, estimated 4 s
Ran all test suites.
```
### optimizeCode Method:
The optimizeCode method is designed to optimize the provided code. While currently a placeholder, this method will implement advanced code optimization techniques to enhance performance and efficiency.
- Placeholder for code optimization logic.
- Returns the optimized code.
```javascript
optimizeCode(code) {
// Optimization logic here
const optimizedCode = code.replace(/\s+/g, ' ').trim();
return optimizedCode;
}
```
### manageDependencies Method:
The manageDependencies method will handle the project's dependencies. This placeholder will eventually include logic to automate dependency resolution, installation, and updates.
- Placeholder logic for dependency management.
- Potential logging of managed dependencies.
```javascript
manageDependencies(dependencies) {
dependencies.forEach(dep => {
console.log(`Managing dependency: ${dep.name}@${dep.version}`);
});
}
```
### ensureCodeQuality Method:
The ensureCodeQuality method will ensure that the provided code meets predefined quality standards. This placeholder will incorporate code analysis tools and techniques to validate the code's quality.
- Placeholder for code quality assurance logic.
- Returns a boolean indicating whether the code meets quality standards.
```javascript
ensureCodeQuality(code) {
const isQualityCode = true;
return isQualityCode;
}
```
# Bleu.js API Documentation
## Introduction
This document provides detailed information about the API endpoints available in the Bleu.js application, including the recent updates and improvements made to the API.
`ROOT`
`pnpm run start:backend `
```javascript
PASS backend/tests/bleu.test.js
API Tests
✓ should handle invalid request headers (28 ms)
✓ should handle /data with body {} (2 ms)
✓ should handle /nonexistent with body null (2 ms)
✓ should handle /data with body Invalid JSON (2 ms)
✓ should handle asynchronous errors gracefully (2 ms)
✓ should handle edge cases (1 ms)
✓ should ensure performance meets expectations (10 ms)
✓ should return 400 for missing data field in POST /data (1 ms)
✓ should return 500 for simulated server error in POST /data (2 ms)
✓ should handle invalid JSON gracefully (1 ms)
✓ should handle very large data payloads (1 ms)
✓ should measure response time for POST /data (2 ms)
✓ should handle simultaneous requests (9 ms)
✓ should validate response schema (1 ms)
✓ should stress test the server (39 ms)
✓ should test with invalid routes (1 ms)
✓ should test JSON parsing error (1 ms)
✓ should test different HTTP methods on /data (2 ms)
✓ should handle very large number of simultaneous requests (294 ms)
✓ should handle concurrent GET and POST requests (1 ms)
✓ should handle slow network conditions gracefully
✓ should verify CORS headers
✓ should handle session cookies (8 ms)
✓ should verify content-type for POST /data
✓ should test for memory leaks (31 ms)
✓ should handle different user roles (2 ms)
✓ should handle database connectivity issues (1 ms)
✓ should handle application/x-www-form-urlencoded (1 ms)
✓ should handle JSON arrays (1 ms)
✓ should handle deeply nested JSON objects (1 ms)
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests: 30 passed, 30 total
Snapshots: 0 total
Time: 1.597 s
Ran all test suites matching /backend\/tests/i.
```
```javascript
PASS lint reports/jest-html-reporters-attach/report/index.js
PASS lint backend/coverage/lcov-report/prettify.js
PASS lint eggs-generator/coverage/prettify.js
PASS lint eggs-generator/coverage/lcov-report/prettify.js
PASS lint coverage/lcov-report/prettify.js
PASS lint coverage/prettify.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/turkish-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/turkish-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/bizstyle/static/css3-mediaqueries.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/italian-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/bizstyle/static/css3-mediaqueries_src.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/basic/static/searchtools.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/dutch-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/docutils/writers/s5_html/themes/default/slides.js
PASS lint backend/coverage/lcov-report/sorter.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/french-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/french-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/portuguese-stemmer.js
PASS lint scripts/preinstall.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/spanish-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/spanish-stemmer.js
PASS lint coverage/lcov-report/sorter.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/finnish-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/en_DE/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/portuguese-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/italian-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/finnish-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/russian-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/porter-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/romanian-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/porter-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/pt/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/hungarian-stemmer.js
PASS lint coverage/sorter.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/romanian-stemmer.js
PASS lint eggs-generator/coverage/sorter.js
PASS lint eggs-generator/coverage/lcov-report/sorter.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/hungarian-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/russian-stemmer.js
PASS lint reports/jest-html-reporters-attach/report/result.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/dutch-stemmer.js
PASS lint backend/server.js
PASS lint core-engine/src/index.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/german-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/danish-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/base-stemmer.js
PASS lint backend/src/routes.js
PASS lint backend/ai/decisionTree.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/base-stemmer.js
PASS lint backend/index.js
PASS lint frontend/src/index.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/german-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/basic/static/doctools.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/swedish-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/el/LC_MESSAGES/sphinx.js
PASS lint dependency-management/src/index.js
PASS lint backend/tests/CustomSequencer.js
PASS lint frontend/public/app.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/danish-stemmer.js
PASS lint backend/controllers/apiController.js
PASS lint core-engine/src/BleuX.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/urllib3/contrib/emscripten/emscripten_fetch_worker.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/basic/static/sphinx_highlight.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/norwegian-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/swedish-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/norwegian-stemmer.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ta/LC_MESSAGES/sphinx.js
PASS lint eggs-generator/coverage/block-navigation.js
PASS lint language-plugins/javascript/src/index.js
PASS lint backend/controllers/dataController.js
PASS lint backend/ai/nlpProcessor.js
PASS lint backend/tests/decisionTree.test.js
PASS lint eggs-generator/src/index.js
PASS lint eggs-generator/tests/example.test.js
PASS lint ./jest.setup.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/et/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/fr/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/gl/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/es_CO/LC_MESSAGES/sphinx.js
PASS lint coverage/lcov-report/block-navigation.js
PASS lint coverage/block-navigation.js
PASS lint dependency-management/test.js
PASS lint ./babel.config.js
PASS lint backend/coverage/lcov-report/block-navigation.js
PASS lint backend/routes/apiRoutes.js
PASS lint backend/ml/modelManager.js
PASS lint backend/tests/testSequencer.test.js
PASS lint backend/html-report/jest-html-reporters-attach/report/result.js
PASS lint core-engine/src/Bleu.js
PASS lint eggs-generator/tests/index.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/fa/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/mk/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/yue/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/cak/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/is/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ca/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/da/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sv/LC_MESSAGES/sphinx.js
PASS lint ./generateRuleId.js
PASS lint backend/src/swagger.js
PASS lint backend/services/aiService.js
PASS lint backend/services/rulesEngine.js
PASS lint backend/models/ruleModel.js
PASS lint backend/tests/globalSetup.js
PASS lint backend/tests/seedDatabase.test.js
PASS lint eggs-generator/src/HenFarm.js
PASS lint eggs-generator/src/Bleu.js
PASS lint eggs-generator/coverage/lcov-report/block-navigation.js
PASS lint language-plugins/javascript/tests/index.test.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/eu/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/cy/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ko/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/si/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ro/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ru/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/cs/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/he/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/vi/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ur/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sl/LC_MESSAGES/sphinx.js
PASS lint ./simpleServer.js
PASS lint backend/src/utils/lib/Bleu.js
PASS lint backend/src/utils/testSequencer.js
PASS lint backend/services/decisionTreeService.js
PASS lint backend/routes/dataRoutes.js
PASS lint backend/tests/aiService.test.js
PASS lint ./preinstall.js
PASS lint language-plugins/src/index.js
PASS lint language-plugins/javascript/src/JSProcessor.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/scrolls/static/theme_extras.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/de_DE/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/en_FR/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/tr/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/lt/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/es/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/eo/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/id/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/fi/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/de/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/hi/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ka/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ne/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/nl/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/bn/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/bg/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/hu/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/hr/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ar/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/en_GB/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sr/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/it/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/lv/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ja/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sq/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/en_HK/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/pl/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sk/LC_MESSAGES/sphinx.js
PASS lint dependency-management/src/dependencyManager.js
PASS lint ./manualConnectionTest.js
PASS lint collaboration-tools/src/index.js
PASS lint backend/src/utils/logger.js
PASS lint backend/services/seedDatabase.js
PASS lint backend/routes/index.js
PASS lint backend/tests/apiRoutes.test.js
PASS lint backend/tests/bleu.test.js
PASS lint backend/tests/setupTests.js
PASS lint backend/tests/aiTests.test.js
PASS lint backend/tests/globalTeardown.js
PASS lint backend/html-report/jest-html-reporters-attach/report/index.js
PASS lint backend/mocks/databse.js
PASS lint eggs-generator/src/generateEgg.js
PASS lint code-quality-assurance/src/index.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.js
PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/te/LC_MESSAGES/sphinx.js
PASS lint backend/services/mockEngine.js
PASS lint backend/routes/simpleRoute.js
PASS lint backend/models/userModel.js
PASS lint ./index.js
PASS lint ./jest.config.js
PASS lint eggs-generator/__mocks__/HenFarm.js
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
Test Suites: 191 passed, 191 total
Tests: 191 passed, 191 total
Snapshots: 0 total
Time: 10.591 s
```
## Getting Started
To set up the project and start the server, follow these steps:
### Navigate to the backend directory:
```javascript
pnpm install express body-parser swagger-jsdoc swagger-ui-express
```
Create server.js
```javascript
const express = require('express');
const bodyParser = require('body-parser');
const swaggerJsdoc = require('swagger-jsdoc');
const swaggerUi = require('swagger-ui-express');
const app = express();
app.use(bodyParser.json());
const swaggerDefinition = {
openapi: '3.0.0',
info: {
title: 'Bleu.js API',
version: '1.0.0',
description: 'Documentation for the Bleu.js API',
},
servers: [
{
url: 'http://localhost:3003',
},
],
};
const options = {
swaggerDefinition,
apis: ['./server.js'], // Path to the API docs
};
const swaggerSpec = swaggerJsdoc(options);
app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec));
app.get('/', (req, res) => {
res.status(200).json({ message: 'Hello, World!' });
});
app.listen(3003, () => {
console.log('Server is running on http://localhost:3003');
});
```
Install the required packages:
`pnpm install`
Start the server:
`node server.js`
To set up the project and start the server, follow these steps:
1. **Navigate to the backend directory:**
```javascript
cd backend
```
2. **Install the required packages:**
```javascript
pnpm add express body-parser swagger-jsdoc swagger-ui-express
```
3. **Start the server:**
```javascript
node server.js
```
4. **Access the Swagger UI:**
Open your browser and navigate to `http://localhost:3003/docs` to view the API documentation.
## API Endpoint test:
```javascript
cd backend
pnpm run start:dev
```
5. **Access the raw Swagger JSON:**
Open your browser and navigate to `http://localhost:3003/swagger.json` to view the raw Swagger JSON. Or in a new Terminal use curl test:
## Debug endpoint
`curl -X POST http://localhost:3003/debug -d '{}'`
## Optimize endpoint
`curl -X POST http://localhost:3003/optimize -d '{}'`
## Generate endpoint
`curl -X POST http://localhost:3003/generate -d '{}'`
Access the Swagger UI:
Open your browser and navigate to `http://localhost:3003/docs` to view the API documentation.
Access the raw Swagger JSON:
Open your browser and navigate to `http://localhost:3003/swagger`json to view the raw Swagger JSON.
### Recent API Updates
# GET /
Returns a greeting message.
- URL: /
- Method: GET
- Response:
```javascript
{
"message": "Hello, World!"
}
```
### Swagger Documentation:
```javascript
/**
* @swagger
* /:
* get:
* summary: Returns a greeting message
* responses:
* 200:
* description: A JSON object containing a greeting message
* content:
* application/json:
* schema:
* type: object
* properties:
* message:
* type: string
* example: Hello, World!
*/
app.get('/', (req, res) => {
res.status(200).json({ message: 'Hello, World!' });
});
```
## POST /debug
Handles debug logic
URL: /debug
Method: POST
## Response:
```javascript
'Debugging';
```
### Swagger Documentation:
```javascript
* @swagger
* /debug:
* post:
* summary: Debug logic
* tags: [Debug]
* responses:
* 200:
* description: Debugging
* content:
* application/json:
* schema:
* type: string
* example: Debugging
*/
router.post('/debug', (req, res) => {
res.send('Debugging');
});
```
### POST /optimize
Handles optimization logic.
- URL: /optimize
- Method: POST
- Response:
```javascript
`"Optimizing"`;
```
### Swagger Documentation:
```javascript
/**
* @swagger
* /optimize:
* post:
* summary: Optimize logic
* tags: [Optimization]
* responses:
* 200:
* description: Optimizing
* content:
* application/json:
* schema:
* type: string
* example: Optimizing
*/
router.post('/optimize', (req, res) => {
res.send('Optimizing');
});
```
## POST /generate
Handles generation logic.
- URL: /generate
- Method: POST
- Response:
```javascript
`"Generating"`;
```
## Swagger Documentation:
```javascript
/**
* @swagger
* /generate:
* post:
* summary: Generate logic
* tags: [Generation]
* responses:
* 200:
* description: Generating
* content:
* application/json:
* schema:
* type: string
* example: Generating
*/
router.post('/generate', (req, res) => {
res.send('Generating');
});
```
### API Documentation
The API documentation is available at `http://localhost:3003/docs` and provides detailed information about all available endpoints, request parameters, and response structures.
## Example of Swagger Documentation
Here is an example of how Swagger documentation is added for an endpoint in the backend/server.js file:
```javascript
/**
* @swagger
* /:
* get:
* summary: Returns a greeting message
* responses:
* 200:
* description: A JSON object containing a greeting message
* content:
* application/json:
* schema:
* type: object
* properties:
* message:
* type: string
* example: Hello, World!
*/
app.get('/', (req, res) => {
res.status(200).json({ message: 'Hello, World!' });
});
```
### Security
The API supports bearer token authentication for secure endpoints. The security schema is defined as follows:
```javascript
const swaggerDefinition = {
openapi: '3.0.0',
info: {
title: 'Bleu.js API',
version: '1.0.0',
description: 'Documentation for the Bleu.js API',
},
servers: [
{
url: 'http://localhost:3003',
},
],
components: {
securitySchemes: {
bearerAuth: {
type: 'http',
scheme: 'bearer',
bearerFormat: 'JWT',
},
},
},
security: [
{
bearerAuth: [],
},
],
};
```
### Running Tests
```javascript
cd eggs-generator
pnpm run start
```
### bleujs-utils Package (Version 1.0.1)
The `bleujs-util` package provides essential utility functions that are part of the Bleu.js framework. It simplifies the process of handling various coding challenges such as dependency management, code quality checks, and optimization.
### Features
* Lightweight utility functions for common tasks.
* Dependency management utilities.
* Code optimization tools.
### Installation
You can install the bleujs-utils package via `pnpm` or `npm`:
Using pnpm:
```javascript
pnpm install bleujs-utils
```
Using npm:
```javascript
npm install bleujs-utils
```
### Usage
### Example 1: General Utility Function
```javascript
from bleujs_utils import some_utility_function
result = some_utility_function(input_data)
print(result)
```
### Example 2: Helper Functions for AI Integration
```javascript
from bleujs_utils import ai_query
response = ai_query('What is the weather today?')
print(response)
```
### Use Cases
* AI Query Tools: Provides helper functions for querying AI models, managing requests, and handling responses.
* Company Search: Utilities for fuzzy searching company names, perfect for customer service applications like HelloBlue.
* Error Handling: Custom logging and debugging utilities designed to streamline development and troubleshooting.
### Example 3: CLI Tool
```javascript
bleujs-utils-cli --help
```
Here’s how you can use the `bleujs-utils` package in your project:
```javascript
const { optimizeCode, manageDependencies } = require('bleujs-utils');
// Optimize code
const code = "const x = 1; console.log( x);";
const optimizedCode = optimizeCode(code);
console.log('Optimized Code:', optimizedCode);
// Manage dependencies
const dependencies = ['express', 'body-parser'];
manageDependencies(dependencies);
```
### Optimizing Code
The `optimizeCode` function cleans up and formats code for better readability and performance.
```javascript
const { optimizeCode } = require('bleujs-utils');
const code = "const x = 1; console.log( x);";
const optimizedCode = optimizeCode(code);
console.log(optimizedCode);
```
### Managing Dependencies
The `manageDependencies` function helps you keep track of and manage your project dependencies efficiently.
```javascript
const { manageDependencies } = require('bleujs-utils');
const dependencies = ['express', 'mongoose'];
manageDependencies(dependencies);
```
### Package Information
* Package Name: `bleujs-utils`
* Version: 1.0.1
* License: MIT
You can view the package on PyPI: [bleujs-utils on PyPI](https://pypi.org/project/bleujs-utils/1.0.1/)
# License
Bleu.js is licensed under the [MIT License](https://github.com/HelloblueAI/Bleu.js/blob/4554e677a3569f1a3200cfb40afb8bacc113890c/LICENSE.md)
## Author
Pejman Haghighatnia
Raw data
{
"_id": null,
"home_page": "https://github.com/HelloblueAI/Bleu.js",
"name": "bleujs-utils",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "utility package bleujs tools development",
"author": "Pejman Haghighatnia",
"author_email": "pejmanhnia@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d9/16/1a0e64719a7491912917d40b4ad646498710cef8c2719578ce7d0fca2615/bleujs_utils-1.0.2.tar.gz",
"platform": null,
"description": "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"200\" zoomAndPan=\"magnify\" viewBox=\"0 0 150 149.999998\" height=\"200\" preserveAspectRatio=\"xMidYMid meet\" version=\"1.0\"><defs><g/><clipPath id=\"ef0777e725\"><path d=\"M 95 0 L 114.464844 0 L 114.464844 42 L 95 42 Z M 95 0 \" clip-rule=\"nonzero\"/></clipPath><clipPath id=\"26e0b5bc96\"><path d=\"M 35.714844 23 L 114.464844 23 L 114.464844 101.515625 L 35.714844 101.515625 Z M 35.714844 23 \" clip-rule=\"nonzero\"/></clipPath></defs><rect x=\"-15\" width=\"180\" fill=\"#ffffff\" y=\"-15\" height=\"179.999997\" fill-opacity=\"1\"/><rect x=\"-15\" width=\"180\" fill=\"#25292f\" y=\"-15\" height=\"179.999997\" fill-opacity=\"1\"/><path fill=\"#25292f\" d=\"M 65.441406 8.042969 L 84.546875 8.042969 L 84.546875 41.9375 L 65.441406 41.9375 Z M 65.441406 8.042969 \" fill-opacity=\"1\" fill-rule=\"nonzero\"/><g clip-path=\"url(#ef0777e725)\"><path fill=\"#25292f\" d=\"M 95.125 -6.484375 L 114.230469 -6.484375 L 114.230469 41.9375 L 95.125 41.9375 Z M 95.125 -6.484375 \" fill-opacity=\"1\" fill-rule=\"nonzero\"/></g><g clip-path=\"url(#26e0b5bc96)\"><path fill=\"#00e0ff\" d=\"M 81.632812 71.839844 L 65.441406 71.839844 L 65.441406 52.753906 L 114.230469 52.753906 L 114.230469 101.457031 L 95.125 101.457031 L 95.125 85.265625 L 78.957031 101.457031 L 35.757812 101.457031 L 35.757812 23.199219 L 54.863281 23.199219 L 54.863281 82.4375 L 71.074219 82.4375 Z M 81.632812 71.839844 \" fill-opacity=\"1\" fill-rule=\"nonzero\"/></g><g fill=\"#ffffff\" fill-opacity=\"1\"><g transform=\"translate(34.627324, 123.863116)\"><g><path d=\"M 1.125 -15.40625 L 5.90625 -15.40625 C 7.34375 -15.40625 8.488281 -15.097656 9.34375 -14.484375 C 10.207031 -13.867188 10.640625 -12.867188 10.640625 -11.484375 C 10.640625 -9.941406 10 -8.835938 8.71875 -8.171875 C 10.90625 -7.785156 12 -6.492188 12 -4.296875 C 12 -3.003906 11.550781 -1.960938 10.65625 -1.171875 C 9.757812 -0.390625 8.53125 0 6.96875 0 L 1.125 0 Z M 4.625 -9.375 L 4.90625 -9.375 C 5.695312 -9.375 6.285156 -9.507812 6.671875 -9.78125 C 7.054688 -10.050781 7.25 -10.5 7.25 -11.125 C 7.25 -12.175781 6.46875 -12.703125 4.90625 -12.703125 L 4.625 -12.703125 Z M 4.625 -2.703125 L 5.734375 -2.703125 C 7.453125 -2.703125 8.3125 -3.273438 8.3125 -4.421875 C 8.3125 -5.109375 8.09375 -5.597656 7.65625 -5.890625 C 7.226562 -6.191406 6.585938 -6.34375 5.734375 -6.34375 L 4.625 -6.34375 Z M 4.625 -2.703125 \"/></g></g></g><g fill=\"#ffffff\" fill-opacity=\"1\"><g transform=\"translate(47.799184, 123.863116)\"><g><path d=\"M 4.625 -15.40625 L 4.625 -3.078125 L 9.9375 -3.078125 L 9.9375 0 L 1.125 0 L 1.125 -15.40625 Z M 4.625 -15.40625 \"/></g></g></g><g fill=\"#ffffff\" fill-opacity=\"1\"><g transform=\"translate(59.086775, 123.863116)\"><g><path d=\"M 9.9375 -15.40625 L 9.9375 -12.328125 L 4.625 -12.328125 L 4.625 -9.265625 L 9.703125 -9.265625 L 9.703125 -6.1875 L 4.625 -6.1875 L 4.625 -3.078125 L 9.9375 -3.078125 L 9.9375 0 L 1.125 0 L 1.125 -15.40625 Z M 9.9375 -15.40625 \"/></g></g></g><g fill=\"#ffffff\" fill-opacity=\"1\"><g transform=\"translate(70.654207, 123.863116)\"><g><path d=\"M 12.953125 -15.40625 L 12.953125 -5.46875 C 12.953125 -3.570312 12.441406 -2.140625 11.421875 -1.171875 C 10.398438 -0.203125 8.90625 0.28125 6.9375 0.28125 C 4.976562 0.28125 3.488281 -0.203125 2.46875 -1.171875 C 1.445312 -2.140625 0.9375 -3.570312 0.9375 -5.46875 L 0.9375 -15.40625 L 4.4375 -15.40625 L 4.4375 -6.5 C 4.4375 -5.25 4.632812 -4.378906 5.03125 -3.890625 C 5.425781 -3.410156 6.0625 -3.171875 6.9375 -3.171875 C 7.820312 -3.171875 8.460938 -3.410156 8.859375 -3.890625 C 9.253906 -4.378906 9.453125 -5.25 9.453125 -6.5 L 9.453125 -15.40625 Z M 12.953125 -15.40625 \"/></g></g></g><g fill=\"#ffffff\" fill-opacity=\"1\"><g transform=\"translate(85.281253, 123.863116)\"><g><path d=\"M 3.25 -4 C 3.84375 -4 4.347656 -3.789062 4.765625 -3.375 C 5.179688 -2.957031 5.390625 -2.445312 5.390625 -1.84375 C 5.390625 -1.257812 5.179688 -0.757812 4.765625 -0.34375 C 4.347656 0.0703125 3.84375 0.28125 3.25 0.28125 C 2.664062 0.28125 2.164062 0.0703125 1.75 -0.34375 C 1.332031 -0.757812 1.125 -1.257812 1.125 -1.84375 C 1.125 -2.445312 1.332031 -2.957031 1.75 -3.375 C 2.164062 -3.789062 2.664062 -4 3.25 -4 Z M 3.25 -4 \"/></g></g></g><g fill=\"#ffffff\" fill-opacity=\"1\"><g transform=\"translate(92.539101, 123.863116)\"><g><path d=\"M 7.828125 -15.40625 L 7.828125 -4.34375 C 7.828125 -2.84375 7.410156 -1.695312 6.578125 -0.90625 C 5.753906 -0.113281 4.570312 0.28125 3.03125 0.28125 C 2.613281 0.28125 2.207031 0.226562 1.8125 0.125 C 1.414062 0.03125 1.078125 -0.0859375 0.796875 -0.234375 C 0.523438 -0.378906 0.28125 -0.523438 0.0625 -0.671875 C -0.15625 -0.816406 -0.3125 -0.941406 -0.40625 -1.046875 L -0.578125 -1.1875 L 0.546875 -4.125 C 1.273438 -3.425781 1.941406 -3.078125 2.546875 -3.078125 C 3.078125 -3.078125 3.503906 -3.253906 3.828125 -3.609375 C 4.148438 -3.960938 4.3125 -4.507812 4.3125 -5.25 L 4.3125 -15.40625 Z M 7.828125 -15.40625 \"/></g></g></g><g fill=\"#ffffff\" fill-opacity=\"1\"><g transform=\"translate(102.035688, 123.863116)\"><g><path d=\"M 6.796875 -15.6875 C 7.628906 -15.6875 8.441406 -15.5625 9.234375 -15.3125 C 10.035156 -15.070312 10.628906 -14.832031 11.015625 -14.59375 L 11.578125 -14.234375 L 10.15625 -11.421875 C 10.039062 -11.503906 9.882812 -11.601562 9.6875 -11.71875 C 9.488281 -11.832031 9.113281 -11.988281 8.5625 -12.1875 C 8.019531 -12.382812 7.515625 -12.484375 7.046875 -12.484375 C 6.453125 -12.484375 5.992188 -12.359375 5.671875 -12.109375 C 5.359375 -11.867188 5.203125 -11.535156 5.203125 -11.109375 C 5.203125 -10.898438 5.273438 -10.703125 5.421875 -10.515625 C 5.578125 -10.335938 5.832031 -10.144531 6.1875 -9.9375 C 6.550781 -9.738281 6.867188 -9.578125 7.140625 -9.453125 C 7.421875 -9.328125 7.847656 -9.140625 8.421875 -8.890625 C 9.421875 -8.460938 10.269531 -7.882812 10.96875 -7.15625 C 11.675781 -6.425781 12.03125 -5.601562 12.03125 -4.6875 C 12.03125 -3.800781 11.867188 -3.023438 11.546875 -2.359375 C 11.234375 -1.703125 10.796875 -1.1875 10.234375 -0.8125 C 9.679688 -0.445312 9.066406 -0.175781 8.390625 0 C 7.722656 0.1875 7 0.28125 6.21875 0.28125 C 5.539062 0.28125 4.878906 0.210938 4.234375 0.078125 C 3.585938 -0.0546875 3.046875 -0.226562 2.609375 -0.4375 C 2.171875 -0.644531 1.78125 -0.847656 1.4375 -1.046875 C 1.09375 -1.242188 0.835938 -1.410156 0.671875 -1.546875 L 0.421875 -1.75 L 2.1875 -4.703125 C 2.332031 -4.578125 2.535156 -4.414062 2.796875 -4.21875 C 3.054688 -4.03125 3.519531 -3.773438 4.1875 -3.453125 C 4.851562 -3.128906 5.441406 -2.96875 5.953125 -2.96875 C 7.429688 -2.96875 8.171875 -3.472656 8.171875 -4.484375 C 8.171875 -4.691406 8.117188 -4.882812 8.015625 -5.0625 C 7.910156 -5.25 7.722656 -5.429688 7.453125 -5.609375 C 7.191406 -5.785156 6.957031 -5.925781 6.75 -6.03125 C 6.539062 -6.144531 6.203125 -6.3125 5.734375 -6.53125 C 5.273438 -6.75 4.929688 -6.910156 4.703125 -7.015625 C 3.773438 -7.484375 3.054688 -8.0625 2.546875 -8.75 C 2.035156 -9.4375 1.78125 -10.179688 1.78125 -10.984375 C 1.78125 -12.359375 2.289062 -13.484375 3.3125 -14.359375 C 4.332031 -15.242188 5.492188 -15.6875 6.796875 -15.6875 Z M 6.796875 -15.6875 \"/></g></g></g></svg>\n![Copy of Copy of Copy of Copy of Copy of Copy of Copy of Untitled Design (1)](https://github.com/HelloblueAI/Bleu.js/assets/81389644/ddfc34a4-a992-441c-9cf4-c5feeeb43568)\n\n.js/core\n\n- Bleu.js is a Rule-based AI framework designed to provide pinpoint solutions to various problems. It's is a JavaScript framework built to tackle the various coding challenges developers face.\n\n### Features\n\n- Advanced debugging\n- Automates dependency management\n- Ensure Code Quality: Tools to ensure the highest code quality\n- Generate Eggs: Automatically generate code snippets\n- Provides tools to maintain code quality without adding extra complexity\n- Real-time optimization suggestions\n- Streamlines collaboration\n- Support for multiple programming languages\n- Manage Dependencies: Handle project dependencies efficiently\n\n## Installation\n\nInstall the package using pnpm.\n\n```javascript\npnpm install bleujs\n```\n\n## Running the Application\n\nROOT:\n\n```javascript\npnpm run start:backend\n```\n\nIn another terminal: ROOT:\n\n```javascript\npnpm run start:frontend\n```\n\n```javascript\ncd core-engine\npnpm run start\n```\n\n```javascript\ncd dependency-management\npnpm start\n```\n\n```javascript\ncd eggs-generator\npnpm run start\n```\n\n## Building the Application\n\n```javascript\npnpm run build\n```\n\n## Testing\n\n```javascript\npnpm run test:all\n```\n\n### Directory Structure\n\n- **core-engine**: Contains the main logic for code generation, optimization, and debugging.\n- **language-plugins**: Modules for different programming languages.\n - **javascript**: JavaScript-specific tools.\n - **python**: Python-specific tools.\n- **collaboration-tools**: Tools for code review, issue tracking, and project management.\n- **dependency-management**: Tools for monitoring and managing dependencies.\n- **code-quality-assurance**: Tools for continuous code quality checks and analysis.\n- **eggs-generator**: Tools for generating code snippets and optimization suggestions by HenFarm.js, the framework built by Helloblue. \n\n- **docker**: Docker configuration files.\n\nBleu.js, uses the HenFarm.js framework for generating code snippets, referred to as \"eggs.\" It's an integral part of Bleu.js, providing the functionality to automatically generate new code snippets to help improve efficiency and solve coding problems. \n\n## Generating Code\n\nTo generate code using Bleu.js, you can send a POST request to the /generate endpoint with the template you want to use:\n`curl -X POST http://localhost:3000/generate -H \"Content-Type: application/json\" -d '{\"template\": \"basic function\"}'`\n\n## Optimizing Code\n\nTo optimize code using Bleu.js, you can send a POST request to the /optimize endpoint with the code you want to optimize:\n`curl -X POST http://localhost:3000/optimize -H \"Content-Type: application/json\" -d '{\"code\": \"console.log(\\\"Hello, world!\\\");\"}'`\n\n## Debugging Code\n\nTo debug code using Bleu.js, you can send a POST request to the /debug endpoint with the code you want to debug:\n`curl -X POST http://localhost:3000/debug -H \"Content-Type: application/json\" -d '{\"code\": \"console.log(\\\"Hello, world!\\\");\"}'`\n\n```javascript\ncd frontend\n```\n\n```javascript\n\u2570\u2500 pnpm run serve\n\n> bleujs@1.0.0 serve /Users/path/path/Bleu.js\n> cd ui && pnpm run serve\n\n\n> bleujs-ui@1.0.0 serve /Users/path/path/Bleu.js/ui\n> vue-cli-service serve\n\n INFO Starting development server...\n98% after emitting\n\n DONE Compiled successfully in 93660ms\n\n\n App running at:\n - Local: http://localhost:8080/\n - Network: http://10.0.0.0:8080/\n```\n\n<img width=\"195\" alt=\"Screenshot 2024-06-07 at 7 56 51\u202fAM\" src=\"https://github.com/HelloblueAI/Bleu.js/assets/81389644/03ccbf03-0f7f-412b-b396-0ce80f47809a\">\n\nThe bleujs package aims to provide a robust and powerful solution for developers working on AI and backend services. Here's how this package can help developers around the world:\n\n## Comprehensive AI Tools\n\nWith built-in AI services like natural language processing (NLP) and decision trees, developers can quickly integrate advanced AI capabilities into their applications without starting from scratch.\n\n## Backend Efficiency\n\nThe package includes a well-structured backend setup using Express.js, MongoDB, and essential middleware like helmet for security, compression for performance, and cors for handling cross-origin requests. This allows developers to set up a scalable and secure backend efficiently.\n\n## Testing and Quality Assurance\n\nbleujs integrates comprehensive testing frameworks, including Jest for unit and integration tests, and Cypress for end-to-end tests. This ensures that applications built with this package are reliable and maintain high quality standards.\n\n## Code Linting and Formatting\n\nBy including ESLint and Prettier configurations, bleujs helps developers maintain consistent coding standards and formatting, reducing errors and improving code readability.\n\n## TypeScript Support\n\nThe package supports TypeScript, allowing developers to write safer and more maintainable code with type checking.\n\n## Frontend Integration\n\nWith Vue.js as the frontend framework, developers can create modern, reactive user interfaces. The package includes scripts for building and serving Vue applications, making it easy to integrate the frontend with the backend.\n\n## Swagger Documentation\n\nThe package includes tools for generating Swagger API documentation, making it easier for developers to document and share their API specifications.\n\n## Continuous Integration/Continuous Deployment (CI/CD)\n\nThe package comes with a CI/CD pipeline configuration for automated testing, linting, building, and deployment. This helps teams to integrate changes continuously and deploy applications reliably.\n\n## Docker Support\n\nWith Docker integration, developers can containerize their applications for consistent deployment across different environments. This ensures that the application runs seamlessly regardless of where it is deployed.\n\n## Real-time Features\n\nWith WebSocket support (ws), developers can add real-time features like live notifications and updates to their applications.\n\n## Usage\n\nCreate an instance of the BleuJS class and use its methods to manage your code:\n\n```javascript\nimport BleuJS from 'bleu.js';\n\nconst bleu = new BleuJS();\nconst newEgg = bleu.generateEgg('This is a description of the new egg.');\nconsole.log(newEgg);\nconst code = 'const x = 1; console.log(x);';\nconst optimizedCode = bleu.optimizeCode(code);\nconst dependencies = ['express', 'body-parser'];\nbleu.manageDependencies(dependencies);\n\nconst isQualityCode = bleu.ensureCodeQuality(code);\nconsole.log(`Is the code quality acceptable? ${isQualityCode}`);\n```\n\n```javascript\n\n Bleu\n \u2713 should generate a new egg (3 ms)\n \u2713 should optimize code\n \u2713 should manage dependencies (15 ms)\n \u2713 should ensure code quality\n \u2713 should generate multiple eggs\n \u2713 should handle large number of eggs (1 ms)\n \u2713 should handle complex optimization\n \u2713 should ensure quality of complex code\n\nTest Suites: 1 passed, 1 total\nTests: 8 passed, 8 total\nSnapshots: 0 total\nTime: 0.359 s, estimated 1 s\nRan all test suites.\n\n```\n\ntest backend\n\n```javascript\ncd bleu.js\npnpm run test:backend\n```\n\n### Class Documentation\n\n### 'BleuJS'\n\nThe BleuJS class provides several methods to help you manage and optimize your code.\n\n```javascript\nclass Bleu {\n constructor() {\n this.eggs = [];\n }\n\n /**\n * Generates a new code egg.\n * @param {string} description - Description of the egg.\n * @param {string} type - Type of the egg (e.g., 'model', 'utility').\n * @param {object} options - Options for generating the egg.\n * @returns {object} The generated egg.\n */\n generateEgg(description, type, options) {\n const code = this.generateCode(type, options);\n const newEgg = {\n id: this.eggs.length + 1,\n description: this.generateDescription(type, options),\n type,\n code,\n };\n this.eggs.push(newEgg);\n return newEgg;\n }\n\n /**\n * Generates code based on type.\n * @param {string} type - Type of the code (e.g., 'model', 'utility').\n * @param {object} options - Options for generating the code.\n * @returns {string} The generated code.\n */\n generateCode(type, options) {\n switch (type) {\n case 'model':\n return this.generateModel(options.modelName, options.fields);\n case 'utility':\n return this.generateUtility(options.utilityName, options.methods);\n default:\n throw new Error(`Unknown code type: ${type}`);\n }\n }\n\n /**\n * Generates model code.\n * @param {string} modelName - Name of the model.\n * @param {Array} fields - Fields of the model.\n * @returns {string} The generated model code.\n */\n generateModel(modelName, fields) {\n let code = `class ${modelName} {\\n`;\n fields.forEach((field) => {\n code += ` ${field.name}: ${field.type};\\n`;\n });\n code += '}';\n return code;\n }\n\n /**\n * Generates utility code.\n * @param {string} utilityName - Name of the utility.\n * @param {Array} methods - Methods of the utility.\n * @returns {string} The generated utility code.\n */\n generateUtility(utilityName, methods) {\n let code = `class ${utilityName} {\\n`;\n methods.forEach((method) => {\n code += ` ${method}() {\\n`;\n code += ` // TODO: Implement ${method}\\n`;\n code += ' }\\n';\n });\n code += '}';\n return code;\n }\n\n /**\n * Generates description based on type.\n * @param {string} type - Type of the egg.\n * @param {object} options - Options for generating the description.\n * @returns {string} The generated description.\n */\n generateDescription(type, options) {\n switch (type) {\n case 'model':\n return `Model ${options.modelName} with fields ${options.fields.map((f) => f.name).join(', ')}`;\n case 'utility':\n return `Utility ${options.utilityName} with methods ${options.methods.join(', ')}`;\n default:\n throw new Error(`Unknown code type: ${type}`);\n }\n }\n\n /**\n * Optimizes the provided code.\n * @param {string} code - The code to optimize.\n * @returns {string} The optimized code.\n */\n optimizeCode(code) {\n return code.replace(/\\s+/g, ' ').trim();\n }\n\n /**\n * Manages dependencies.\n * @param {Array} dependencies - List of dependencies.\n */\n manageDependencies(dependencies) {\n dependencies.forEach((dep) => {\n console.log(`Managing dependency: ${dep}`);\n });\n }\n\n /**\n * Ensures code quality.\n * @param {string} code - The code to check.\n * @returns {boolean} Whether the code is of high quality.\n */\n ensureCodeQuality(code) {\n return !code.includes('var');\n }\n}\n\nmodule.exports = Bleu;\n```\n\n```javascript\n\n Bleu\n \u2713 should generate a new egg (1 ms)\n \u2713 should optimize code\n \u2713 should manage dependencies (10 ms)\n \u2713 should ensure code quality\n \u2713 should generate multiple eggs\n \u2713 should handle large number of eggs (3 ms)\n \u2713 should handle complex optimization\n \u2713 should ensure quality of complex code\n\nTest Suites: 1 passed, 1 total\nTests: 8 passed, 8 total\nSnapshots: 0 total\nTime: 0.359 s, estimated 1 s\nRan all test suites.\n\n```\n\n## Constructor\n\n```javascript\nconstructor();\n```\n\n## Structure\n\n```javascript\nclass Bleu {\n constructor() {\n this.eggs = [];\n }\n\n generateEgg(description, type, options = {}) {\n const newEgg = {\n id: this.eggs.length + 1,\n description,\n type,\n code: this.generateCode(type, options),\n };\n this.eggs.push(newEgg);\n return newEgg;\n }\n\n generateCode(type, options) {\n switch (type) {\n case 'model':\n return this.generateModel(options.modelName, options.fields);\n case 'controller':\n return this.generateController(options.controllerName, options.actions);\n case 'utility':\n return this.generateUtility(options.utilityName, options.methods);\n default:\n throw new Error(`Unknown code type: ${type}`);\n }\n }\n\n generateModel(modelName, fields) {\n const classFields = fields\n .map((field) => ` ${field.name}: ${field.type};`)\n .join('\\n');\n const classMethods = fields\n .map(\n (field) =>\n ` get${field.name.charAt(0).toUpperCase() + field.name.slice(1)}() { return this.${field.name}; }`,\n )\n .join('\\n\\n');\n return `\nclass ${modelName} {\n${classFields}\n\n constructor(${fields.map((field) => field.name).join(', ')}) {\n ${fields.map((field) => `this.${field.name} = ${field.name};`).join('\\n ')}\n }\n\n${classMethods}\n}\n\nmodule.exports = ${modelName};\n `;\n }\n\n generateController(controllerName, actions) {\n const actionMethods = actions\n .map(\n (action) => `\n ${action}() {\n // ${action} logic here\n }`,\n )\n .join('\\n');\n return `\nclass ${controllerName} {\n${actionMethods}\n}\n\nmodule.exports = ${controllerName};\n `;\n }\n\n generateUtility(utilityName, methods) {\n const utilityMethods = methods\n .map(\n (method) => `\n ${method.name}(${method.params.join(', ')}) {\n ${method.body}\n }`,\n )\n .join('\\n');\n return `\nclass ${utilityName} {\n${utilityMethods}\n}\n\nmodule.exports = ${utilityName};\n `;\n }\n\n optimizeCode(code) {\n const optimizedCode = code;\n return optimizedCode;\n }\n\n manageDependencies(dependencies) {\n dependencies.forEach((dep) => {\n console.log(`Managing dependency: ${dep}`);\n });\n }\n\n ensureCodeQuality(code) {\n const isQualityCode = true;\n return isQualityCode;\n }\n}\n\nmodule.exports = Bleu;\n```\n\n```javascript\nconst Bleu = require('./Bleu');\n\nconst bleu = new Bleu();\n\nconsole.log('This is an index file');\n\n// Test generateEgg method\nconst newEgg = bleu.generateEgg('This is a test egg', 'model', {\n modelName: 'TestModel',\n fields: [\n { name: 'field1', type: 'string' },\n { name: 'field2', type: 'number' },\n ],\n});\n\nconsole.log('Generated Egg:', newEgg);\n\n// Test optimizeCode method\nconst code = 'const x = 1; console.log(x);';\nconst optimizedCode = bleu.optimizeCode(code);\nconsole.log('Optimized Code:', optimizedCode);\n\n// Test ensureCodeQuality method\nconst isQualityCode = bleu.ensureCodeQuality(code);\nconsole.log('Is the code quality acceptable?', isQualityCode);\n\n// Test manageDependencies method\nconst dependencies = ['express', 'body-parser'];\nbleu.manageDependencies(dependencies);\n```\n\n```javascript\n`pnpm run test:all`;\n```\n\n```javascript\n PASS tests/bleu.test.js\n API Tests\n \u2713 should return Hello, World! on GET / (49 ms)\n \u2713 should create data on POST /data (113 ms)\n \u2713 should create multiple data entries on POST /data (114 ms)\n \u2713 should handle /data with body {} (10 ms)\n \u2713 should handle /nonexistent with body null (6 ms)\n \u2713 should handle /data with body Invalid JSON (5 ms)\n \u2713 should handle asynchronous errors gracefully (12 ms)\n \u2713 should handle edge cases (4 ms)\n \u2713 should ensure performance meets expectations (4 ms)\n \u2713 should return 400 for missing data field in POST /data (5 ms)\n \u2713 should return 500 for simulated server error in POST /data (7 ms)\n \u2713 should handle invalid JSON gracefully (3 ms)\n \u2713 should handle very large data payloads (106 ms)\n \u2713 should measure response time for POST /data (110 ms)\n \u2713 should handle simultaneous requests (148 ms)\n \u2713 should validate response schema (6 ms)\n \u2713 should stress test the server (263 ms)\n \u2713 should test with invalid routes (5 ms)\n \u2713 should test JSON parsing error (3 ms)\n \u2713 should test different HTTP methods on /data (5 ms)\n \u2713 should handle very large number of simultaneous requests (1235 ms)\n \u2713 should handle concurrent GET and POST requests (108 ms)\n \u2713 should handle slow network conditions gracefully (110 ms)\n \u2713 should handle invalid request headers (10 ms)\n \u2713 should verify CORS headers (7 ms)\n \u2713 should handle session cookies (116 ms)\n \u2713 should verify content-type for POST /data (9 ms)\n \u2713 should test for memory leaks (274 ms)\n \u2713 should handle different user roles (111 ms)\n \u2713 should handle database connectivity issues (5 ms)\n \u2713 should handle multipart/form-data (110 ms)\n \u2713 should handle application/x-www-form-urlencoded (113 ms)\n \u2713 should handle JSON arrays (11 ms)\n \u2713 should handle deeply nested JSON objects (114 ms)\n\nTest Suites: 1 passed, 1 total\nTests: 34 passed, 34 total\nSnapshots: 0 total\nTime: 3.707 s, estimated 4 s\nRan all test suites.\n```\n\n## Test\n\n`cd backend`\n\n`\u2570\u2500 curl -X POST http://localhost:3003/ai/nlp -H \"Content-Type: application/json\" -d '{\"text\": \"This is a test for NLP processing.\"}'`\n\n## Expected response:\n\n`{\"tokens\":[\"This\",\"is\",\"a\",\"test\",\"for\",\"NLP\",\"processing\"]}% `\n\n## Initializes a new instance of the BleuJS class.\n\n### Methods\n\n### Class Constructor:\n\nThe class constructor initializes the Bleu object with an empty array eggs to store the generated code 'eggs'. This array acts as a container for all the code snippets, models, utilities, and other structures created using the generateEgg method.\n\n- Initializes an empty array eggs to store the generated code 'eggs'.\n\n```javascript\n constructor() {\n this.eggs = [];\n this.henFarm = new HenFarm(); // Initialize HenFarm.js\n}\n```\n\n### generateEgg Method:\n\nThe generateEgg method is responsible for generating a new code 'egg'. This method leverages the HenFarm.js framework to produce code snippets based on the specified type and options. Each generated egg is assigned a unique ID, a description, and the generated code. The egg is then added to the eggs array and returned.\n\n- Utilize HenFarm.js to generate code based on the provided type and options.\n- Create a new egg object with a unique ID, description, type, generated code, and creation timestamp.\n- Append the new egg to the eggs array.\n- Return the newly created egg.\n\n```javascript\ngenerateEgg(description, type, options) {\n const code = this.henFarm.generateCode(type, options);\n const newEgg = {\n id: this.eggs.length + 1,\n description: this.generateDescription(type, options),\n type,\n code,\n createdAt: new Date()\n };\n this.eggs.push(newEgg);\n return newEgg;\n}\n```\n\n```javascript\ngenerateEgg(description, type, options) {\n const code = this.henFarm.generateCode(type, options);\n const newEgg = {\n id: this.eggs.length + 1,\n description: this.generateDescription(type, options),\n type,\n code,\n createdAt: new Date()\n };\n this.eggs.push(newEgg);\n return newEgg;\n}\n```\n\n`cd eggs-generator` \n`pnpm run test`\n\n```javascript\n PASS tests/bleu.test.js\n API Tests\n \u2713 should return Hello, World! on GET / (49 ms)\n \u2713 should create data on POST /data (113 ms)\n \u2713 should create multiple data entries on POST /data (114 ms)\n \u2713 should handle /data with body {} (10 ms)\n \u2713 should handle /nonexistent with body null (6 ms)\n \u2713 should handle /data with body Invalid JSON (5 ms)\n \u2713 should handle asynchronous errors gracefully (12 ms)\n \u2713 should handle edge cases (4 ms)\n \u2713 should ensure performance meets expectations (4 ms)\n \u2713 should return 400 for missing data field in POST /data (5 ms)\n \u2713 should return 500 for simulated server error in POST /data (7 ms)\n \u2713 should handle invalid JSON gracefully (3 ms)\n \u2713 should handle very large data payloads (106 ms)\n \u2713 should measure response time for POST /data (110 ms)\n \u2713 should handle simultaneous requests (148 ms)\n \u2713 should validate response schema (6 ms)\n \u2713 should stress test the server (263 ms)\n \u2713 should test with invalid routes (5 ms)\n \u2713 should test JSON parsing error (3 ms)\n \u2713 should test different HTTP methods on /data (5 ms)\n \u2713 should handle very large number of simultaneous requests (1235 ms)\n \u2713 should handle concurrent GET and POST requests (108 ms)\n \u2713 should handle slow network conditions gracefully (110 ms)\n \u2713 should handle invalid request headers (10 ms)\n \u2713 should verify CORS headers (7 ms)\n \u2713 should handle session cookies (116 ms)\n \u2713 should verify content-type for POST /data (9 ms)\n \u2713 should test for memory leaks (274 ms)\n \u2713 should handle different user roles (111 ms)\n \u2713 should handle database connectivity issues (5 ms)\n \u2713 should handle multipart/form-data (110 ms)\n \u2713 should handle application/x-www-form-urlencoded (113 ms)\n \u2713 should handle JSON arrays (11 ms)\n \u2713 should handle deeply nested JSON objects (114 ms)\n\nTest Suites: 1 passed, 1 total\nTests: 34 passed, 34 total\nSnapshots: 0 total\nTime: 3.707 s, estimated 4 s\nRan all test suites.\n\n```\n\n### optimizeCode Method:\n\nThe optimizeCode method is designed to optimize the provided code. While currently a placeholder, this method will implement advanced code optimization techniques to enhance performance and efficiency.\n\n- Placeholder for code optimization logic.\n- Returns the optimized code.\n\n```javascript\noptimizeCode(code) {\n // Optimization logic here\n const optimizedCode = code.replace(/\\s+/g, ' ').trim();\n return optimizedCode;\n}\n\n```\n\n### manageDependencies Method:\n\nThe manageDependencies method will handle the project's dependencies. This placeholder will eventually include logic to automate dependency resolution, installation, and updates.\n\n- Placeholder logic for dependency management.\n- Potential logging of managed dependencies.\n\n```javascript\nmanageDependencies(dependencies) {\n dependencies.forEach(dep => {\n console.log(`Managing dependency: ${dep.name}@${dep.version}`);\n\n });\n}\n```\n\n### ensureCodeQuality Method:\n\nThe ensureCodeQuality method will ensure that the provided code meets predefined quality standards. This placeholder will incorporate code analysis tools and techniques to validate the code's quality.\n\n- Placeholder for code quality assurance logic.\n- Returns a boolean indicating whether the code meets quality standards.\n\n```javascript\nensureCodeQuality(code) {\n\n const isQualityCode = true;\n return isQualityCode;\n}\n```\n\n# Bleu.js API Documentation\n\n## Introduction\n\nThis document provides detailed information about the API endpoints available in the Bleu.js application, including the recent updates and improvements made to the API.\n\n`ROOT`\n`pnpm run start:backend `\n\n```javascript\n PASS backend/tests/bleu.test.js\n API Tests\n \u2713 should handle invalid request headers (28 ms)\n \u2713 should handle /data with body {} (2 ms)\n \u2713 should handle /nonexistent with body null (2 ms)\n \u2713 should handle /data with body Invalid JSON (2 ms)\n \u2713 should handle asynchronous errors gracefully (2 ms)\n \u2713 should handle edge cases (1 ms)\n \u2713 should ensure performance meets expectations (10 ms)\n \u2713 should return 400 for missing data field in POST /data (1 ms)\n \u2713 should return 500 for simulated server error in POST /data (2 ms)\n \u2713 should handle invalid JSON gracefully (1 ms)\n \u2713 should handle very large data payloads (1 ms)\n \u2713 should measure response time for POST /data (2 ms)\n \u2713 should handle simultaneous requests (9 ms)\n \u2713 should validate response schema (1 ms)\n \u2713 should stress test the server (39 ms)\n \u2713 should test with invalid routes (1 ms)\n \u2713 should test JSON parsing error (1 ms)\n \u2713 should test different HTTP methods on /data (2 ms)\n \u2713 should handle very large number of simultaneous requests (294 ms)\n \u2713 should handle concurrent GET and POST requests (1 ms)\n \u2713 should handle slow network conditions gracefully\n \u2713 should verify CORS headers\n \u2713 should handle session cookies (8 ms)\n \u2713 should verify content-type for POST /data\n \u2713 should test for memory leaks (31 ms)\n \u2713 should handle different user roles (2 ms)\n \u2713 should handle database connectivity issues (1 ms)\n \u2713 should handle application/x-www-form-urlencoded (1 ms)\n \u2713 should handle JSON arrays (1 ms)\n \u2713 should handle deeply nested JSON objects (1 ms)\n\n----------|---------|----------|---------|---------|-------------------\nFile | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s\n----------|---------|----------|---------|---------|-------------------\nAll files | 0 | 0 | 0 | 0 |\n----------|---------|----------|---------|---------|-------------------\nTest Suites: 1 passed, 1 total\nTests: 30 passed, 30 total\nSnapshots: 0 total\nTime: 1.597 s\nRan all test suites matching /backend\\/tests/i.\n\n```\n\n```javascript\n PASS lint reports/jest-html-reporters-attach/report/index.js\n PASS lint backend/coverage/lcov-report/prettify.js\n PASS lint eggs-generator/coverage/prettify.js\n PASS lint eggs-generator/coverage/lcov-report/prettify.js\n PASS lint coverage/lcov-report/prettify.js\n PASS lint coverage/prettify.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/turkish-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/turkish-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/bizstyle/static/css3-mediaqueries.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/italian-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/bizstyle/static/css3-mediaqueries_src.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/basic/static/searchtools.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/dutch-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/docutils/writers/s5_html/themes/default/slides.js\n PASS lint backend/coverage/lcov-report/sorter.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/french-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/french-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/portuguese-stemmer.js\n PASS lint scripts/preinstall.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/spanish-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/spanish-stemmer.js\n PASS lint coverage/lcov-report/sorter.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/finnish-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/en_DE/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/portuguese-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/italian-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/finnish-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/russian-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/porter-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/romanian-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/porter-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/pt/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/hungarian-stemmer.js\n PASS lint coverage/sorter.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/romanian-stemmer.js\n PASS lint eggs-generator/coverage/sorter.js\n PASS lint eggs-generator/coverage/lcov-report/sorter.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/hungarian-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/russian-stemmer.js\n PASS lint reports/jest-html-reporters-attach/report/result.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/dutch-stemmer.js\n PASS lint backend/server.js\n PASS lint core-engine/src/index.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/german-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/danish-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/base-stemmer.js\n PASS lint backend/src/routes.js\n PASS lint backend/ai/decisionTree.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/base-stemmer.js\n PASS lint backend/index.js\n PASS lint frontend/src/index.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/german-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/basic/static/doctools.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/swedish-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/el/LC_MESSAGES/sphinx.js\n PASS lint dependency-management/src/index.js\n PASS lint backend/tests/CustomSequencer.js\n PASS lint frontend/public/app.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/danish-stemmer.js\n PASS lint backend/controllers/apiController.js\n PASS lint core-engine/src/BleuX.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/urllib3/contrib/emscripten/emscripten_fetch_worker.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/basic/static/sphinx_highlight.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/non-minified-js/norwegian-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/swedish-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/search/minified-js/norwegian-stemmer.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ta/LC_MESSAGES/sphinx.js\n PASS lint eggs-generator/coverage/block-navigation.js\n PASS lint language-plugins/javascript/src/index.js\n PASS lint backend/controllers/dataController.js\n PASS lint backend/ai/nlpProcessor.js\n PASS lint backend/tests/decisionTree.test.js\n PASS lint eggs-generator/src/index.js\n PASS lint eggs-generator/tests/example.test.js\n PASS lint ./jest.setup.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/et/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/fr/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/gl/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/es_CO/LC_MESSAGES/sphinx.js\n PASS lint coverage/lcov-report/block-navigation.js\n PASS lint coverage/block-navigation.js\n PASS lint dependency-management/test.js\n PASS lint ./babel.config.js\n PASS lint backend/coverage/lcov-report/block-navigation.js\n PASS lint backend/routes/apiRoutes.js\n PASS lint backend/ml/modelManager.js\n PASS lint backend/tests/testSequencer.test.js\n PASS lint backend/html-report/jest-html-reporters-attach/report/result.js\n PASS lint core-engine/src/Bleu.js\n PASS lint eggs-generator/tests/index.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/fa/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/mk/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/yue/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/cak/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/is/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sr_RS/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ca/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/da/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sv/LC_MESSAGES/sphinx.js\n PASS lint ./generateRuleId.js\n PASS lint backend/src/swagger.js\n PASS lint backend/services/aiService.js\n PASS lint backend/services/rulesEngine.js\n PASS lint backend/models/ruleModel.js\n PASS lint backend/tests/globalSetup.js\n PASS lint backend/tests/seedDatabase.test.js\n PASS lint eggs-generator/src/HenFarm.js\n PASS lint eggs-generator/src/Bleu.js\n PASS lint eggs-generator/coverage/lcov-report/block-navigation.js\n PASS lint language-plugins/javascript/tests/index.test.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/eu/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/cy/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ko/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/si/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ro/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ru/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/cs/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/nb_NO/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/he/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/zh_HK/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/vi/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ur/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sl/LC_MESSAGES/sphinx.js\n PASS lint ./simpleServer.js\n PASS lint backend/src/utils/lib/Bleu.js\n PASS lint backend/src/utils/testSequencer.js\n PASS lint backend/services/decisionTreeService.js\n PASS lint backend/routes/dataRoutes.js\n PASS lint backend/tests/aiService.test.js\n PASS lint ./preinstall.js\n PASS lint language-plugins/src/index.js\n PASS lint language-plugins/javascript/src/JSProcessor.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/themes/scrolls/static/theme_extras.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/de_DE/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/en_FR/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/tr/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/fr_FR/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/lt/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/es/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/eo/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/id/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/fi/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/de/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/hi/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ka/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ne/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/nl/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/bn/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/bg/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/hu/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/hr/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ar/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/en_GB/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sr@latin/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sr/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/hi_IN/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/zh_TW/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/it/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/lv/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/ja/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/pt_BR/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/uk_UA/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sq/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/en_HK/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/pl/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/sk/LC_MESSAGES/sphinx.js\n PASS lint dependency-management/src/dependencyManager.js\n PASS lint ./manualConnectionTest.js\n PASS lint collaboration-tools/src/index.js\n PASS lint backend/src/utils/logger.js\n PASS lint backend/services/seedDatabase.js\n PASS lint backend/routes/index.js\n PASS lint backend/tests/apiRoutes.test.js\n PASS lint backend/tests/bleu.test.js\n PASS lint backend/tests/setupTests.js\n PASS lint backend/tests/aiTests.test.js\n PASS lint backend/tests/globalTeardown.js\n PASS lint backend/html-report/jest-html-reporters-attach/report/index.js\n PASS lint backend/mocks/databse.js\n PASS lint eggs-generator/src/generateEgg.js\n PASS lint code-quality-assurance/src/index.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/pt_PT/LC_MESSAGES/sphinx.js\n PASS lint language-plugins/python/venv/lib/python3.12/site-packages/sphinx/locale/te/LC_MESSAGES/sphinx.js\n PASS lint backend/services/mockEngine.js\n PASS lint backend/routes/simpleRoute.js\n PASS lint backend/models/userModel.js\n PASS lint ./index.js\n PASS lint ./jest.config.js\n PASS lint eggs-generator/__mocks__/HenFarm.js\n----------|---------|----------|---------|---------|-------------------\nFile | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s\n----------|---------|----------|---------|---------|-------------------\nAll files | 0 | 0 | 0 | 0 |\n----------|---------|----------|---------|---------|-------------------\n\nTest Suites: 191 passed, 191 total\nTests: 191 passed, 191 total\nSnapshots: 0 total\nTime: 10.591 s\n```\n\n## Getting Started\n\nTo set up the project and start the server, follow these steps:\n\n### Navigate to the backend directory:\n\n```javascript\npnpm install express body-parser swagger-jsdoc swagger-ui-express\n```\n\nCreate server.js\n\n```javascript\nconst express = require('express');\nconst bodyParser = require('body-parser');\nconst swaggerJsdoc = require('swagger-jsdoc');\nconst swaggerUi = require('swagger-ui-express');\n\nconst app = express();\napp.use(bodyParser.json());\n\nconst swaggerDefinition = {\n openapi: '3.0.0',\n info: {\n title: 'Bleu.js API',\n version: '1.0.0',\n description: 'Documentation for the Bleu.js API',\n },\n servers: [\n {\n url: 'http://localhost:3003',\n },\n ],\n};\n\nconst options = {\n swaggerDefinition,\n apis: ['./server.js'], // Path to the API docs\n};\n\nconst swaggerSpec = swaggerJsdoc(options);\n\napp.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec));\n\napp.get('/', (req, res) => {\n res.status(200).json({ message: 'Hello, World!' });\n});\n\napp.listen(3003, () => {\n console.log('Server is running on http://localhost:3003');\n});\n```\n\nInstall the required packages:\n`pnpm install`\n\nStart the server:\n`node server.js`\n\nTo set up the project and start the server, follow these steps:\n\n1. **Navigate to the backend directory:**\n\n```javascript\n cd backend\n```\n\n2. **Install the required packages:**\n\n```javascript\npnpm add express body-parser swagger-jsdoc swagger-ui-express\n```\n\n3. **Start the server:**\n\n```javascript\nnode server.js\n```\n\n4. **Access the Swagger UI:**\n Open your browser and navigate to `http://localhost:3003/docs` to view the API documentation.\n\n## API Endpoint test:\n\n```javascript\ncd backend\npnpm run start:dev\n```\n\n5. **Access the raw Swagger JSON:**\n Open your browser and navigate to `http://localhost:3003/swagger.json` to view the raw Swagger JSON. Or in a new Terminal use curl test:\n\n## Debug endpoint\n\n`curl -X POST http://localhost:3003/debug -d '{}'`\n\n## Optimize endpoint\n\n`curl -X POST http://localhost:3003/optimize -d '{}'`\n\n## Generate endpoint\n\n`curl -X POST http://localhost:3003/generate -d '{}'`\n\nAccess the Swagger UI:\n\nOpen your browser and navigate to `http://localhost:3003/docs` to view the API documentation.\n\nAccess the raw Swagger JSON:\nOpen your browser and navigate to `http://localhost:3003/swagger`json to view the raw Swagger JSON.\n\n### Recent API Updates\n\n# GET /\n\nReturns a greeting message.\n\n- URL: /\n- Method: GET\n- Response:\n\n```javascript\n{\n \"message\": \"Hello, World!\"\n}\n```\n\n### Swagger Documentation:\n\n```javascript\n/**\n * @swagger\n * /:\n * get:\n * summary: Returns a greeting message\n * responses:\n * 200:\n * description: A JSON object containing a greeting message\n * content:\n * application/json:\n * schema:\n * type: object\n * properties:\n * message:\n * type: string\n * example: Hello, World!\n */\napp.get('/', (req, res) => {\n res.status(200).json({ message: 'Hello, World!' });\n});\n```\n\n## POST /debug\n\nHandles debug logic\n\nURL: /debug\nMethod: POST\n\n## Response:\n\n```javascript\n'Debugging';\n```\n\n### Swagger Documentation:\n\n```javascript\n * @swagger\n * /debug:\n * post:\n * summary: Debug logic\n * tags: [Debug]\n * responses:\n * 200:\n * description: Debugging\n * content:\n * application/json:\n * schema:\n * type: string\n * example: Debugging\n */\nrouter.post('/debug', (req, res) => {\n res.send('Debugging');\n});\n```\n\n### POST /optimize\n\nHandles optimization logic.\n\n- URL: /optimize\n- Method: POST\n- Response:\n\n```javascript\n`\"Optimizing\"`;\n```\n\n### Swagger Documentation:\n\n```javascript\n/**\n * @swagger\n * /optimize:\n * post:\n * summary: Optimize logic\n * tags: [Optimization]\n * responses:\n * 200:\n * description: Optimizing\n * content:\n * application/json:\n * schema:\n * type: string\n * example: Optimizing\n */\nrouter.post('/optimize', (req, res) => {\n res.send('Optimizing');\n});\n```\n\n## POST /generate\n\nHandles generation logic.\n\n- URL: /generate\n- Method: POST\n- Response:\n\n```javascript\n`\"Generating\"`;\n```\n\n## Swagger Documentation:\n\n```javascript\n/**\n * @swagger\n * /generate:\n * post:\n * summary: Generate logic\n * tags: [Generation]\n * responses:\n * 200:\n * description: Generating\n * content:\n * application/json:\n * schema:\n * type: string\n * example: Generating\n */\nrouter.post('/generate', (req, res) => {\n res.send('Generating');\n});\n```\n\n### API Documentation\n\nThe API documentation is available at `http://localhost:3003/docs` and provides detailed information about all available endpoints, request parameters, and response structures.\n\n## Example of Swagger Documentation\n\nHere is an example of how Swagger documentation is added for an endpoint in the backend/server.js file:\n\n```javascript\n/**\n * @swagger\n * /:\n * get:\n * summary: Returns a greeting message\n * responses:\n * 200:\n * description: A JSON object containing a greeting message\n * content:\n * application/json:\n * schema:\n * type: object\n * properties:\n * message:\n * type: string\n * example: Hello, World!\n */\napp.get('/', (req, res) => {\n res.status(200).json({ message: 'Hello, World!' });\n});\n```\n\n### Security\n\nThe API supports bearer token authentication for secure endpoints. The security schema is defined as follows:\n\n```javascript\nconst swaggerDefinition = {\n openapi: '3.0.0',\n info: {\n title: 'Bleu.js API',\n version: '1.0.0',\n description: 'Documentation for the Bleu.js API',\n },\n servers: [\n {\n url: 'http://localhost:3003',\n },\n ],\n components: {\n securitySchemes: {\n bearerAuth: {\n type: 'http',\n scheme: 'bearer',\n bearerFormat: 'JWT',\n },\n },\n },\n security: [\n {\n bearerAuth: [],\n },\n ],\n};\n```\n\n### Running Tests\n\n```javascript\ncd eggs-generator\npnpm run start\n```\n\n### bleujs-utils Package (Version 1.0.1)\n\nThe `bleujs-util` package provides essential utility functions that are part of the Bleu.js framework. It simplifies the process of handling various coding challenges such as dependency management, code quality checks, and optimization.\n\n\n### Features\n* Lightweight utility functions for common tasks.\n* Dependency management utilities.\n* Code optimization tools.\n\n### Installation\nYou can install the bleujs-utils package via `pnpm` or `npm`:\n\nUsing pnpm:\n\n```javascript\npnpm install bleujs-utils\n\n```\n\nUsing npm:\n\n```javascript\nnpm install bleujs-utils\n```\n\n### Usage\n### Example 1: General Utility Function\n```javascript\nfrom bleujs_utils import some_utility_function\n\nresult = some_utility_function(input_data)\nprint(result)\n```\n\n### Example 2: Helper Functions for AI Integration\n\n```javascript\nfrom bleujs_utils import ai_query\n\nresponse = ai_query('What is the weather today?')\nprint(response)\n```\n\n### Use Cases\n* AI Query Tools: Provides helper functions for querying AI models, managing requests, and handling responses.\n* Company Search: Utilities for fuzzy searching company names, perfect for customer service applications like HelloBlue.\n* Error Handling: Custom logging and debugging utilities designed to streamline development and troubleshooting.\n\n### Example 3: CLI Tool\n```javascript\nbleujs-utils-cli --help\n```\n\n\nHere\u2019s how you can use the `bleujs-utils` package in your project:\n\n```javascript\nconst { optimizeCode, manageDependencies } = require('bleujs-utils');\n\n// Optimize code\nconst code = \"const x = 1; console.log( x);\";\nconst optimizedCode = optimizeCode(code);\nconsole.log('Optimized Code:', optimizedCode);\n\n// Manage dependencies\nconst dependencies = ['express', 'body-parser'];\nmanageDependencies(dependencies);\n```\n\n### Optimizing Code\nThe `optimizeCode` function cleans up and formats code for better readability and performance.\n```javascript\nconst { optimizeCode } = require('bleujs-utils');\n\nconst code = \"const x = 1; console.log( x);\";\nconst optimizedCode = optimizeCode(code);\nconsole.log(optimizedCode);\n```\n\n### Managing Dependencies\nThe `manageDependencies` function helps you keep track of and manage your project dependencies efficiently.\n```javascript\nconst { manageDependencies } = require('bleujs-utils');\n\nconst dependencies = ['express', 'mongoose'];\nmanageDependencies(dependencies);\n```\n\n### Package Information\n* Package Name: `bleujs-utils`\n* Version: 1.0.1\n* License: MIT\n\nYou can view the package on PyPI: [bleujs-utils on PyPI](https://pypi.org/project/bleujs-utils/1.0.1/)\n\n\n# License\n\nBleu.js is licensed under the [MIT License](https://github.com/HelloblueAI/Bleu.js/blob/4554e677a3569f1a3200cfb40afb8bacc113890c/LICENSE.md)\n\n## Author\n\nPejman Haghighatnia\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Utility package for Bleu.js, providing tools to enhance development and integration.",
"version": "1.0.2",
"project_urls": {
"Bug Tracker": "https://github.com/HelloblueAI/Bleu.js/issues",
"Documentation": "https://github.com/HelloblueAI/Bleu.js#readme",
"Homepage": "https://github.com/HelloblueAI/Bleu.js",
"Source Code": "https://github.com/HelloblueAI/Bleu.js"
},
"split_keywords": [
"utility",
"package",
"bleujs",
"tools",
"development"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "79b8ac7a8a6ba2bc524800eebad38deca56dd95f2eb08153d7f841a532528a36",
"md5": "79c8529c61dd74f0efd84da0d054ea16",
"sha256": "3e0cce3184d64d6b95cd5668cce5cd5aacc9553ffc462fc31db08e7f478dacd3"
},
"downloads": -1,
"filename": "bleujs_utils-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "79c8529c61dd74f0efd84da0d054ea16",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 14460,
"upload_time": "2024-11-19T17:33:55",
"upload_time_iso_8601": "2024-11-19T17:33:55.974554Z",
"url": "https://files.pythonhosted.org/packages/79/b8/ac7a8a6ba2bc524800eebad38deca56dd95f2eb08153d7f841a532528a36/bleujs_utils-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d9161a0e64719a7491912917d40b4ad646498710cef8c2719578ce7d0fca2615",
"md5": "01cb1a75fa15197522bc7caea2fc6378",
"sha256": "469b2bcd3d28fb5ec5e5dce55c2f34756a18f97a32e063dc0a4db30f3a426643"
},
"downloads": -1,
"filename": "bleujs_utils-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "01cb1a75fa15197522bc7caea2fc6378",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 38669,
"upload_time": "2024-11-19T17:33:57",
"upload_time_iso_8601": "2024-11-19T17:33:57.302742Z",
"url": "https://files.pythonhosted.org/packages/d9/16/1a0e64719a7491912917d40b4ad646498710cef8c2719578ce7d0fca2615/bleujs_utils-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-19 17:33:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "HelloblueAI",
"github_project": "Bleu.js",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "bleujs-utils"
}