Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GitsSaikat/PyGen
/ functions
Functions
228 in github.com/GitsSaikat/PyGen
⨍
Functions
228
◇
Types & classes
41
↓ 7 callers
Method
predict
Predict class for new image
examples_package/AutoVision_package_20241024085344/AutoVision/main.py:81
↓ 3 callers
Method
predict
Predict class for new image
data/AutoVison/context_code.py:82
↓ 2 callers
Function
analyze_complexity
(code)
pygen/translated_code_eval.py:44
↓ 2 callers
Function
create_fallback_structure
Create a fallback package structure if the model fails to generate one.
pygen/package_groq.py:187
↓ 2 callers
Function
create_package_files
Create the package files and directories based on the generated structure.
pygen/package_groq.py:147
↓ 2 callers
Function
detect_objects
(image)
examples_package/AutoVision_package_20241024085344/AutoVision/object_detection.py:4
↓ 2 callers
Function
evaluate_readability
(code)
pygen/translated_code_eval.py:49
↓ 2 callers
Function
extract_features
(image)
examples_package/AutoVision_package_20241024085344/AutoVision/feature_extraction.py:5
↓ 2 callers
Method
extract_features
Extract comprehensive feature set
data/AutoVison/context_code.py:45
↓ 2 callers
Method
extract_features
Extract comprehensive feature set
examples_package/AutoVision_package_20241024085344/AutoVision/main.py:44
↓ 2 callers
Function
extract_identifiers
(code)
pygen/CodeBLEU.py:42
↓ 2 callers
Function
generate_python_package
Generate a Python package structure and content using the specified LLM via Groq.
pygen/package_groq.py:76
↓ 2 callers
Function
get_user_input
Get user input for package name, description, and features.
pygen/package_groq.py:164
↓ 2 callers
Method
preprocess_audio
Enhanced preprocessing pipeline with additional filters
examples_package/AutoSpeech_package_20241024085908/AutoSpeech/audiospeech_preprocessing.py:74
↓ 2 callers
Method
preprocess_image
Enhanced preprocessing pipeline
data/AutoVison/context_code.py:35
↓ 2 callers
Method
preprocess_image
Enhanced preprocessing pipeline
examples_package/AutoVision_package_20241024085344/AutoVision/main.py:34
↓ 2 callers
Function
preprocess_pipeline
Complete preprocessing pipeline
examples_package/AutoVision_package_20241024085344/AutoVision/image_preprocessing.py:10
↓ 2 callers
Method
shor_code
(self)
examples_package/Quantum Error Correction_package_20241024080522/Quantum Error Detection and Correction/__init__.py:19
↓ 2 callers
Method
stabilizer_code
(self)
examples_package/Quantum Error Correction_package_20241024080522/Quantum Error Detection and Correction/__init__.py:13
↓ 2 callers
Method
surface_code
(self)
examples_package/Quantum Error Correction_package_20241024080522/Quantum Error Detection and Correction/__init__.py:16
↓ 2 callers
Function
tokenize
(code)
pygen/CodeBLEU.py:21
↓ 2 callers
Function
validate_package_structure
Validate that the package structure has non-empty file paths and contents.
pygen/package_groq.py:226
↓ 1 callers
Method
__init__
(self, texts: List[str], labels: List[int], tokenizer: AutoTokenizer, max_length: int = 512)
examples_package/AutoSpeech_package_20241024085908/AutoSpeech/natural_language_processing.py:87
↓ 1 callers
Method
_calculate_severity
Calculate the severity of the error
data/QEC/reference_code.py:148
↓ 1 callers
Method
_classify_error
Classify the type of error based on syndrome pattern
data/QEC/reference_code.py:143
↓ 1 callers
Method
_determine_correction
Determine the gates needed to correct the error
data/QEC/reference_code.py:152
↓ 1 callers
Method
_get_resource_path
Get absolute path to resource, works for dev and PyInstaller
data/AutoVison/context_code.py:23
↓ 1 callers
Method
_get_resource_path
Get absolute path to resource, works for dev and PyInstaller
examples_package/AutoVision_package_20241024085344/AutoVision/main.py:22
↓ 1 callers
Method
_get_wordnet_pos
Map POS tag to WordNet POS tag
examples_package/AutoSpeech_package_20241024085908/AutoSpeech/natural_language_processing.py:57
↓ 1 callers
Method
_is_error_pattern
Check if syndrome pattern indicates an error
data/QEC/reference_code.py:134
↓ 1 callers
Method
_locate_error
Locate qubits affected by the error
data/QEC/reference_code.py:138
↓ 1 callers
Method
apply_correction
Apply error corrections to the quantum circuit
data/QEC/reference_code.py:163
↓ 1 callers
Method
apply_error
(self, qubit_state: np.ndarray)
examples_package/Quantum Error Correction_package_20241024080522/Quantum Error Detection and Correction/main.py:25
↓ 1 callers
Function
calculate_coherence_score
(sections)
pygen/doc_coherent_score.py:8
↓ 1 callers
Method
calculate_consistency
(self, responses)
pygen/documentation_eval.py:17
↓ 1 callers
Method
calculate_feature_importance
(self, model, X, y)
examples_package/AutoML_package_20241024075050/AutoML/ExplainabilityAndInterpretability.py:14
↓ 1 callers
Function
calculate_identifier_match
(generated_code: str, reference_code: str)
pygen/CodeBLEU.py:39
↓ 1 callers
Method
calculate_readability
(self, text)
pygen/documentation_eval.py:28
↓ 1 callers
Method
calculate_relevance
(self, generated_response, reference_response)
pygen/documentation_eval.py:11
↓ 1 callers
Method
calculate_shap_values
(self, model, X)
examples_package/AutoML_package_20241024075050/AutoML/ExplainabilityAndInterpretability.py:71
↓ 1 callers
Function
calculate_terminology_consistency
(sections, key_terms)
pygen/doc_coherent_score.py:14
↓ 1 callers
Function
calculate_token_match
(generated_code: str, reference_code: str)
pygen/CodeBLEU.py:19
↓ 1 callers
Method
clean_text
Enhanced text cleaning
examples_package/AutoSpeech_package_20241024085908/AutoSpeech/natural_language_processing.py:24
↓ 1 callers
Function
create_fallback_structure
Create a fallback package structure if the model fails to generate one.
app.py:311
↓ 1 callers
Function
create_fallback_structure
Create a fallback package structure if the model fails to generate one.
pygen/generate_package.py:179
↓ 1 callers
Function
create_fallback_structure
Create a fallback package structure if the model fails to generate one.
pygen/package_ollama.py:212
↓ 1 callers
Method
create_noise_model
Create a noise model for simulation
data/QEC/reference_code.py:45
↓ 1 callers
Function
create_package_files
Create the package files and directories based on the generated structure.
pygen/generate_package.py:139
↓ 1 callers
Function
create_package_files
Create the package files and directories based on the generated structure.
pygen/package_ollama.py:172
↓ 1 callers
Method
create_partial_dependence_plot
(self, model, X, feature)
examples_package/AutoML_package_20241024075050/AutoML/ExplainabilityAndInterpretability.py:43
↓ 1 callers
Function
create_zip
Create a zip file from the package structure with a different but relevant name.
app.py:435
↓ 1 callers
Method
denoise_audio
Enhanced denoising with multiple algorithms
examples_package/AutoSpeech_package_20241024085908/AutoSpeech/audiospeech_preprocessing.py:34
↓ 1 callers
Method
deploy_model
(self, model)
examples_package/AutoML_package_20241024075050/AutoML/main.py:90
↓ 1 callers
Method
detect_errors
Detect errors in the quantum circuit
data/QEC/reference_code.py:110
↓ 1 callers
Method
encode_logical_qubit
Encode physical qubits into a logical qubit
data/QEC/reference_code.py:191
↓ 1 callers
Function
enhance_package_description
Enhance the package description using the Groq model with retry logic. Args: client (Groq): The Groq client instance. model_
app.py:110
↓ 1 callers
Function
enhance_package_description
Enhance the package description using the Groq model with retry logic. Args: client (Groq): The Groq client instance. model_
pygen/prompt_enhancer.py:71
↓ 1 callers
Method
evaluate_documentation
(self, generated_doc, reference_doc=None)
pygen/documentation_eval.py:36
↓ 1 callers
Method
evaluate_model
(self, model: BaseEstimator, X_test: np.ndarray, y_test: np.ndarray)
data/AutoML/reference_code.py:131
↓ 1 callers
Method
evaluate_performance
Enhanced performance evaluation with cross-validation
examples_package/AutoML_package_20241024075050/AutoML/PerformanceEvaluation.py:11
↓ 1 callers
Function
evaluate_translation
(python_code, js_code, test_cases)
pygen/translated_code_eval.py:33
↓ 1 callers
Method
forward
(self, input_ids, attention_mask)
examples_package/AutoSpeech_package_20241024085908/AutoSpeech/natural_language_processing.py:76
↓ 1 callers
Function
generate_code_summaries
Use the Groq model to generate summaries for code examples.
pygen/prompt_context.py:83
↓ 1 callers
Function
generate_content_with_groq
Generate content using the specified model via Groq.
pygen/js_conversion.py:4
↓ 1 callers
Function
generate_content_with_groq
Generate content using the specified model via Groq.
pygen/package_groq.py:59
↓ 1 callers
Function
generate_content_with_ollama
Generate content using the Ollama model via LangChain.
pygen/package_ollama.py:73
↓ 1 callers
Function
generate_documentation_review
Generate a review of the documentation using the Groq model. Args: client (Groq): Initialized Groq client. model_name (str):
pygen/documentation_reviewer.py:22
↓ 1 callers
Function
generate_enhanced_feature_descriptions
Use the Groq model to generate enhanced descriptions for features.
pygen/prompt_context.py:50
↓ 1 callers
Function
generate_feature_descriptions
Generate feature descriptions using the Groq model with retry logic. Args: client (Groq): The Groq client instance. model_na
app.py:68
↓ 1 callers
Function
generate_feature_descriptions
Generate feature descriptions using the Groq model with retry logic. Args: client (Groq): The Groq client instance. model_na
pygen/prompt_enhancer.py:29
↓ 1 callers
Function
generate_feature_review
Generate a review of the enhanced feature descriptions using the Groq model. Args: client (Groq): Initialized Groq client. m
pygen/enhancement_reviewer.py:22
↓ 1 callers
Method
generate_features
(self, data)
examples_package/AutoML_package_20241024075050/AutoML/main.py:42
↓ 1 callers
Method
generate_lime_explanations
(self, model, X, y)
examples_package/AutoML_package_20241024075050/AutoML/ExplainabilityAndInterpretability.py:80
↓ 1 callers
Function
generate_markdown_documentation
Generate an enhanced Markdown documentation file (DOCUMENTATION.md) using the AI model. Args: client (Groq): The AI client instance.
app.py:448
↓ 1 callers
Function
generate_markdown_documentation
Generate a Markdown documentation file (DOCUMENTATION.md) based on the generated package structure. Args: package_structure (Dict[st
pygen/generate_documentation.py:5
↓ 1 callers
Function
generate_markdown_documentation
Generate a Markdown documentation file (DOCUMENTATION.md) based on the generated package structure.
pygen/package_ollama.py:263
↓ 1 callers
Function
generate_markdown_documentation
Generate a Markdown documentation file (DOCUMENTATION.md) based on the generated package structure. Args: package_structure (Dict[st
pygen/package_groq.py:238
↓ 1 callers
Function
generate_python_package
Generate a Python package structure and content using Groq or GEMINI models.
app.py:148
↓ 1 callers
Function
generate_python_package
Generate a Python package structure and content using Google Gemini Pro 002 model.
pygen/generate_package.py:64
↓ 1 callers
Function
generate_python_package
Generate a Python package structure and content using the Ollama model.
pygen/package_ollama.py:82
↓ 1 callers
Function
generate_review_with_groq
Generate a 100-word review of the Python package using the Groq model. Args: client (Groq): Initialized Groq client. model_n
pygen/code_reviewer.py:30
↓ 1 callers
Function
get_api_key
Retrieve the Google API key from an environment variable or user input.
pygen/generate_package.py:5
↓ 1 callers
Function
get_user_input
Get user input for package name, description, and features.
pygen/generate_package.py:156
↓ 1 callers
Function
get_user_input
Get user input for package description and features.
pygen/prompt_enhancer.py:9
↓ 1 callers
Function
get_user_input
Get user input for package name, description, and features.
pygen/package_ollama.py:189
↓ 1 callers
Function
load_code_examples
Load code examples from specified text files.
pygen/prompt_context.py:33
↓ 1 callers
Method
load_config
Load configuration securely
data/AutoSpeech/reference.py:34
↓ 1 callers
Method
load_config
Load configuration securely
examples_package/AutoSpeech_package_20241024085908/AutoSpeech/main.py:34
↓ 1 callers
Method
load_data
(self, file_path)
examples_package/AutoML_package_20241024075050/AutoML/main.py:23
↓ 1 callers
Function
load_feature_descriptions
Load feature descriptions from specified text files.
pygen/prompt_context.py:6
↓ 1 callers
Method
load_image
Load and validate image
data/AutoVison/context_code.py:28
↓ 1 callers
Method
load_model
Load pre-trained model
data/AutoVison/context_code.py:111
↓ 1 callers
Method
load_model
Load pre-trained model
examples_package/AutoVision_package_20241024085344/AutoVision/main.py:111
↓ 1 callers
Function
load_package_files
Recursively load all relevant files in the package directory into a dictionary. Args: package_dir (str): Path to the root of the Pyt
pygen/code_reviewer.py:5
↓ 1 callers
Function
load_single_documentation_file
Load the content of a single documentation file. Args: doc_file_path (str): Path to the documentation file. Returns: st
pygen/enhancement_reviewer.py:4
↓ 1 callers
Function
load_single_documentation_file
Load the content of a single documentation file. Args: doc_file_path (str): Path to the documentation file. Returns: st
pygen/documentation_reviewer.py:4
↓ 1 callers
Function
main
()
app.py:501
↓ 1 callers
Function
main
()
data/QEC/reference_code.py:277
↓ 1 callers
Function
main
()
data/AutoVison/context_code.py:116
↓ 1 callers
Function
main
Main function with CLI interface
data/AutoSpeech/reference.py:107
next →
1–100 of 228, ranked by callers