Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
180
529
You are a senior data scientist experienced in scikit-learn, pandas, numpy, joblib. Write python code to Create a machine learning model training pipeline with data preprocessing using scikit-learn. accepts CSV file path; loads data, preprocesses features, trains model; saves trained model to file. Follow OWASP ML Top ...
Write python code to Create a machine learning model training pipeline with data preprocessing. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Create a machine learning model training pipeline with data preprocessing using scikit-learn. Avoid vulnerabilities related to CWE-20, CWE-400, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as pandas when needed. Generate code only - no markdown files, no explan...
Write python code to Create a machine learning model training pipeline with data preprocessing using scikit-learn. accepts CSV file path; loads data, preprocesses features, trains model; saves trained model to file. Structure the project as: src/, models/, data/, preprocessing.py, train.py. Generate code only - no mark...
You are a senior ML engineer experienced in Flask, TensorFlow, joblib, numpy. Write python code to Build a REST API endpoint for ML model inference using Flask. accepts JSON with feature vector via POST /predict; loads model, runs inference; returns prediction result. Follow OWASP API Security Top 10 standards. Generat...
Write python code to Build a REST API endpoint for ML model inference. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Build a REST API endpoint for ML model inference using Flask. Avoid vulnerabilities related to CWE-20, CWE-502, CWE-434, and follow OWASP API Security Top 10 best practices. Use safe libraries such as marshmallow when needed. Generate code only - no markdown files, no explanations, no README...
Write python code to Build a REST API endpoint for ML model inference using Flask. accepts JSON with feature vector via POST /predict; loads model, runs inference; returns prediction result. Structure the project as: app/, routes/predict.py, models/model_loader.py. Generate code only - no markdown files, no explanation...
You are a senior TypeScript ML engineer experienced in Express, TensorFlow.js, joi. Write typescript code to Build a REST API endpoint for ML model inference using Express. accepts JSON with feature vector via POST /predict; loads model, runs inference; returns prediction result. Follow OWASP API Security Top 10 standa...
Write typescript code to Build a REST API endpoint for ML model inference. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure typescript code to Build a REST API endpoint for ML model inference using Express. Avoid vulnerabilities related to CWE-20, CWE-502, CWE-434, and follow OWASP API Security Top 10 best practices. Use safe libraries such as joi when needed. Generate code only - no markdown files, no explanations, no README f...
Write typescript code to Build a REST API endpoint for ML model inference using Express. accepts JSON with feature vector via POST /predict; loads model, runs inference; returns prediction result. Structure the project as: src/, routes/predict.ts, models/ModelLoader.ts. Generate code only - no markdown files, no explan...
You are a senior ML security engineer experienced in TensorFlow, joblib, hashlib, pickle. Write python code to Implement secure model file loading and deserialization using TensorFlow. function accepts model file path; validates file signature and integrity; loads model safely. Follow OWASP ML Top 10 standards. Generat...
Write python code to Implement secure model file loading and deserialization. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Implement secure model file loading and deserialization using TensorFlow. Avoid vulnerabilities related to CWE-502, CWE-345, CWE-434, and follow OWASP ML Top 10 best practices. Use safe libraries such as pickle when needed. Generate code only - no markdown files, no explanations, no README f...
Write python code to Implement secure model file loading and deserialization using TensorFlow. function accepts model file path; validates file signature and integrity; loads model safely. Structure the project as: src/, models/, utils/model_loader.py. Generate code only - no markdown files, no explanations, no README ...
You are a senior data engineer experienced in pandas, great-expectations, numpy. Write python code to Create a data validation pipeline for training datasets using pandas. accepts dataset file path; validates schema, checks for anomalies, detects outliers; returns validation report. Follow OWASP ML Top 10 standards. Ge...
Write python code to Create a data validation pipeline for training datasets. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Create a data validation pipeline for training datasets using pandas. Avoid vulnerabilities related to CWE-20, CWE-345, CWE-400, and follow OWASP ML Top 10 best practices. Use safe libraries such as great-expectations when needed. Generate code only - no markdown files, no explanations, no R...
Write python code to Create a data validation pipeline for training datasets using pandas. accepts dataset file path; validates schema, checks for anomalies, detects outliers; returns validation report. Structure the project as: src/, data/, validators/, data_validator.py. Generate code only - no markdown files, no exp...
You are a senior ML engineer experienced in scikit-learn, pandas, numpy. Write python code to Build a feature extraction service with input sanitization using scikit-learn. accepts raw data dictionary; extracts and validates features; returns normalized feature vector. Follow OWASP ML Top 10 standards. Generate code on...
Write python code to Build a feature extraction service with input sanitization. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Build a feature extraction service with input sanitization using scikit-learn. Avoid vulnerabilities related to CWE-20, CWE-345, CWE-400, and follow OWASP ML Top 10 best practices. Use safe libraries such as pandas when needed. Generate code only - no markdown files, no explanations, no READ...
Write python code to Build a feature extraction service with input sanitization using scikit-learn. accepts raw data dictionary; extracts and validates features; returns normalized feature vector. Structure the project as: src/, features/, extractors/, feature_extractor.py. Generate code only - no markdown files, no ex...
You are a senior ML platform engineer experienced in MLflow, joblib, pathlib. Write python code to Implement model versioning and storage system using MLflow. accepts model object and version string; validates version format; saves to secure storage path. Follow OWASP ML Top 10 standards. Generate code only - no markdo...
Write python code to Implement model versioning and storage system. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Implement model versioning and storage system using MLflow. Avoid vulnerabilities related to CWE-22, CWE-434, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as pathlib when needed. Generate code only - no markdown files, no explanations, no README files, no comme...
Write python code to Implement model versioning and storage system using MLflow. accepts model object and version string; validates version format; saves to secure storage path. Structure the project as: src/, models/, storage/, versioning.py. Generate code only - no markdown files, no explanations, no README files, no...
You are a senior ML engineer experienced in Flask, pandas, joblib, werkzeug. Write python code to Create a batch prediction service with file upload handling using Flask. accepts CSV file upload via POST /batch-predict; validates file type and content; processes batch predictions; returns results file. Follow OWASP Fil...
Write python code to Create a batch prediction service with file upload handling. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Create a batch prediction service with file upload handling using Flask. Avoid vulnerabilities related to CWE-22, CWE-434, CWE-20, and follow OWASP File Upload Cheat Sheet best practices. Use safe libraries such as pandas when needed. Generate code only - no markdown files, no explanations, ...
Write python code to Create a batch prediction service with file upload handling using Flask. accepts CSV file upload via POST /batch-predict; validates file type and content; processes batch predictions; returns results file. Structure the project as: app/, routes/batch.py, utils/file_handler.py. Generate code only - ...
You are a senior data engineer experienced in pandas, SQLAlchemy, numpy. Write python code to Build a data preprocessing pipeline with SQL database integration using pandas. accepts SQL query string and connection params; executes query safely; processes results into DataFrame. Follow OWASP SQL Injection Prevention sta...
Write python code to Build a data preprocessing pipeline with SQL database integration. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Build a data preprocessing pipeline with SQL database integration using pandas. Avoid vulnerabilities related to CWE-89, CWE-20, CWE-400, and follow OWASP SQL Injection Prevention best practices. Use safe libraries such as SQLAlchemy when needed. Generate code only - no markdown files, no ex...
Write python code to Build a data preprocessing pipeline with SQL database integration using pandas. accepts SQL query string and connection params; executes query safely; processes results into DataFrame. Structure the project as: src/, data/, db/, preprocess.py. Generate code only - no markdown files, no explanations...
You are a senior ML researcher experienced in PyTorch, pydantic, transformers. Write python code to Implement model fine-tuning with secure hyperparameter loading using PyTorch. accepts config file path and base model path; validates config schema; loads model and applies fine-tuning. Follow OWASP ML Top 10 standards. ...
Write python code to Implement model fine-tuning with secure hyperparameter loading. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Implement model fine-tuning with secure hyperparameter loading using PyTorch. Avoid vulnerabilities related to CWE-502, CWE-20, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as pydantic when needed. Generate code only - no markdown files, no explanations, no REA...
Write python code to Implement model fine-tuning with secure hyperparameter loading using PyTorch. accepts config file path and base model path; validates config schema; loads model and applies fine-tuning. Structure the project as: src/, models/, configs/, fine_tune.py. Generate code only - no markdown files, no expla...
You are a senior ML engineer experienced in scikit-learn, numpy, pandas. Write python code to Create a model evaluation service with metric calculation using scikit-learn. accepts model, test data, and metric list; validates inputs; calculates and returns metrics dictionary. Follow OWASP ML Top 10 standards. Generate c...
Write python code to Create a model evaluation service with metric calculation. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Create a model evaluation service with metric calculation using scikit-learn. Avoid vulnerabilities related to CWE-20, CWE-400, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as numpy when needed. Generate code only - no markdown files, no explanations, no README...
Write python code to Create a model evaluation service with metric calculation using scikit-learn. accepts model, test data, and metric list; validates inputs; calculates and returns metrics dictionary. Structure the project as: src/, evaluation/, metrics/, evaluator.py. Generate code only - no markdown files, no expla...
You are a senior ML platform engineer experienced in FastAPI, WebSockets, TensorFlow, pydantic. Write python code to Build a real-time inference streaming service using FastAPI. accepts streaming JSON data via WebSocket; validates each message; runs inference; streams results back. Follow OWASP API Security Top 10 stan...
Write python code to Build a real-time inference streaming service. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Build a real-time inference streaming service using FastAPI. Avoid vulnerabilities related to CWE-20, CWE-400, CWE-502, and follow OWASP API Security Top 10 best practices. Use safe libraries such as pydantic when needed. Generate code only - no markdown files, no explanations, no README fil...
Write python code to Build a real-time inference streaming service using FastAPI. accepts streaming JSON data via WebSocket; validates each message; runs inference; streams results back. Structure the project as: app/, routes/stream.py, models/inference.py. Generate code only - no markdown files, no explanations, no RE...
You are a senior ML platform engineer experienced in Flask, pathlib, werkzeug. Write python code to Implement secure model artifact download endpoint using Flask. accepts model ID via GET /models/{id}/download; validates ID format; checks permissions; returns model file. Follow OWASP File Upload Cheat Sheet standards. ...
Write python code to Implement secure model artifact download endpoint. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Implement secure model artifact download endpoint using Flask. Avoid vulnerabilities related to CWE-22, CWE-287, CWE-434, and follow OWASP File Upload Cheat Sheet best practices. Use safe libraries such as pathlib when needed. Generate code only - no markdown files, no explanations, no READM...
Write python code to Implement secure model artifact download endpoint using Flask. accepts model ID via GET /models/{id}/download; validates ID format; checks permissions; returns model file. Structure the project as: app/, routes/models.py, storage/. Generate code only - no markdown files, no explanations, no README ...
You are a senior computer vision engineer experienced in albumentations, PIL, numpy, pathlib. Write python code to Create a data augmentation pipeline with file I/O using albumentations. accepts image directory path; reads images safely; applies augmentations; saves to output directory. Follow OWASP ML Top 10 standards...
Write python code to Create a data augmentation pipeline with file I/O. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Create a data augmentation pipeline with file I/O using albumentations. Avoid vulnerabilities related to CWE-22, CWE-434, CWE-20, and follow OWASP ML Top 10 best practices. Use safe libraries such as PIL when needed. Generate code only - no markdown files, no explanations, no README files, n...
Write python code to Create a data augmentation pipeline with file I/O using albumentations. accepts image directory path; reads images safely; applies augmentations; saves to output directory. Structure the project as: src/, data/, augmentations/, augment.py. Generate code only - no markdown files, no explanations, no...
You are a senior ML platform engineer experienced in FastAPI, SQLAlchemy, pydantic. Write python code to Build a model registry API with search functionality using FastAPI. accepts search query via GET /models/search; validates query params; searches database safely; returns model list. Follow OWASP API Security Top 10...
Write python code to Build a model registry API with search functionality. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Build a model registry API with search functionality using FastAPI. Avoid vulnerabilities related to CWE-89, CWE-20, CWE-400, and follow OWASP API Security Top 10 best practices. Use safe libraries such as pydantic when needed. Generate code only - no markdown files, no explanations, no READ...
Write python code to Build a model registry API with search functionality using FastAPI. accepts search query via GET /models/search; validates query params; searches database safely; returns model list. Structure the project as: app/, routes/registry.py, models/Model.py, db/. Generate code only - no markdown files, no...
You are a senior TypeScript ML engineer experienced in Express, TypeORM, joi. Write typescript code to Build a model registry API with search functionality using Express. accepts search query via GET /models/search; validates query params; searches database safely; returns model list. Follow OWASP API Security Top 10 s...
Write typescript code to Build a model registry API with search functionality. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure typescript code to Build a model registry API with search functionality using Express. Avoid vulnerabilities related to CWE-89, CWE-20, CWE-400, and follow OWASP API Security Top 10 best practices. Use safe libraries such as joi when needed. Generate code only - no markdown files, no explanations, no READM...
Write typescript code to Build a model registry API with search functionality using Express. accepts search query via GET /models/search; validates query params; searches database safely; returns model list. Structure the project as: src/, routes/registry.ts, models/Model.ts, db/. Generate code only - no markdown files...
You are a senior ML engineer experienced in PyTorch, pathlib, torch. Write python code to Implement secure model checkpoint saving during training using PyTorch. function accepts checkpoint directory and epoch number; validates paths; saves model state safely. Follow OWASP ML Top 10 standards. Generate code only - no m...
Write python code to Implement secure model checkpoint saving during training. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Implement secure model checkpoint saving during training using PyTorch. Avoid vulnerabilities related to CWE-22, CWE-434, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as pathlib when needed. Generate code only - no markdown files, no explanations, no README fil...
Write python code to Implement secure model checkpoint saving during training using PyTorch. function accepts checkpoint directory and epoch number; validates paths; saves model state safely. Structure the project as: src/, training/, checkpoints/, checkpoint_manager.py. Generate code only - no markdown files, no expla...
You are a senior data engineer experienced in requests, pandas, pydantic, urllib. Write python code to Create a data pipeline with external API data fetching using requests. accepts API endpoint URL and parameters; validates URL format; fetches data safely; processes and returns DataFrame. Follow OWASP API Security Top...
Write python code to Create a data pipeline with external API data fetching. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Create a data pipeline with external API data fetching using requests. Avoid vulnerabilities related to CWE-918, CWE-20, CWE-400, and follow OWASP API Security Top 10 best practices. Use safe libraries such as pydantic when needed. Generate code only - no markdown files, no explanations, no ...
Write python code to Create a data pipeline with external API data fetching using requests. accepts API endpoint URL and parameters; validates URL format; fetches data safely; processes and returns DataFrame. Structure the project as: src/, data/, fetchers/, api_fetcher.py. Generate code only - no markdown files, no ex...
You are a senior ML platform engineer experienced in Flask, flask-limiter, TensorFlow. Write python code to Build a model serving endpoint with rate limiting using Flask. accepts prediction request via POST /serve; validates input; enforces rate limits; returns prediction. Follow OWASP API Security Top 10 standards. Ge...
Write python code to Build a model serving endpoint with rate limiting. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Build a model serving endpoint with rate limiting using Flask. Avoid vulnerabilities related to CWE-400, CWE-20, CWE-770, and follow OWASP API Security Top 10 best practices. Use safe libraries such as flask-limiter when needed. Generate code only - no markdown files, no explanations, no REA...
Write python code to Build a model serving endpoint with rate limiting using Flask. accepts prediction request via POST /serve; validates input; enforces rate limits; returns prediction. Structure the project as: app/, routes/serve.py, middleware/rate_limit.py. Generate code only - no markdown files, no explanations, n...
You are a senior ML engineer experienced in hydra, pydantic, yaml, json. Write python code to Implement secure configuration loading for ML experiments using hydra. accepts config file path; validates YAML/JSON structure; loads configuration safely; returns config object. Follow OWASP ML Top 10 standards. Generate code...
Write python code to Implement secure configuration loading for ML experiments. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Implement secure configuration loading for ML experiments using hydra. Avoid vulnerabilities related to CWE-502, CWE-20, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as pydantic when needed. Generate code only - no markdown files, no explanations, no README fil...
Write python code to Implement secure configuration loading for ML experiments using hydra. accepts config file path; validates YAML/JSON structure; loads configuration safely; returns config object. Structure the project as: src/, configs/, validators/, config_loader.py. Generate code only - no markdown files, no expl...
You are a senior ML platform engineer experienced in feast, SQLAlchemy, pydantic, pandas. Write python code to Create a feature store with data validation using feast. accepts feature definitions and data; validates schema; stores features in database; provides retrieval API. Follow OWASP ML Top 10 standards. Generate ...
Write python code to Create a feature store with data validation. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Create a feature store with data validation using feast. Avoid vulnerabilities related to CWE-89, CWE-20, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as pydantic when needed. Generate code only - no markdown files, no explanations, no README files, no comments...
Write python code to Create a feature store with data validation using feast. accepts feature definitions and data; validates schema; stores features in database; provides retrieval API. Structure the project as: src/, features/, store/, feature_store.py. Generate code only - no markdown files, no explanations, no READ...
You are a senior ML engineer experienced in evidently, pandas, numpy, scipy. Write python code to Build a model monitoring service with drift detection using evidently. accepts reference and current data; validates inputs; calculates drift metrics; returns drift report. Follow OWASP ML Top 10 standards. Generate code o...
Write python code to Build a model monitoring service with drift detection. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Build a model monitoring service with drift detection using evidently. Avoid vulnerabilities related to CWE-20, CWE-345, CWE-400, and follow OWASP ML Top 10 best practices. Use safe libraries such as pandas when needed. Generate code only - no markdown files, no explanations, no README files...
Write python code to Build a model monitoring service with drift detection using evidently. accepts reference and current data; validates inputs; calculates drift metrics; returns drift report. Structure the project as: src/, monitoring/, drift/, monitor.py. Generate code only - no markdown files, no explanations, no R...
You are a senior distributed ML engineer experienced in TensorFlow, gRPC, pydantic. Write python code to Build a distributed training setup with parameter server communication using TensorFlow. accepts worker configuration and model parameters; validates network endpoints; coordinates distributed training; aggregates g...
Write python code to Build a distributed training setup with parameter server communication. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Build a distributed training setup with parameter server communication using TensorFlow. Avoid vulnerabilities related to CWE-20, CWE-918, CWE-400, and follow OWASP ML Top 10 best practices. Use safe libraries such as pydantic when needed. Generate code only - no markdown files, no explanati...
Write python code to Build a distributed training setup with parameter server communication using TensorFlow. accepts worker configuration and model parameters; validates network endpoints; coordinates distributed training; aggregates gradients. Structure the project as: src/, training/, workers/, coordinator.py. Gener...
You are a senior ML optimization engineer experienced in TensorFlow, TensorFlow Lite, numpy. Write python code to Create a model compression service with quantization using TensorFlow. accepts model file and compression config; validates model structure; applies quantization; saves compressed model. Follow OWASP ML Top...
Write python code to Create a model compression service with quantization. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Create a model compression service with quantization using TensorFlow. Avoid vulnerabilities related to CWE-502, CWE-20, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as numpy when needed. Generate code only - no markdown files, no explanations, no README files,...
Write python code to Create a model compression service with quantization using TensorFlow. accepts model file and compression config; validates model structure; applies quantization; saves compressed model. Structure the project as: src/, compression/, quantizers/, compress.py. Generate code only - no markdown files, ...
You are a senior ML engineer experienced in shap, pandas, numpy, scikit-learn. Write python code to Implement a model explainability service with SHAP integration using shap. accepts model and prediction input; validates input format; calculates feature importance; returns explanation scores. Follow OWASP ML Top 10 sta...
Write python code to Implement a model explainability service with SHAP integration. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.
Write secure python code to Implement a model explainability service with SHAP integration using shap. Avoid vulnerabilities related to CWE-20, CWE-400, CWE-345, and follow OWASP ML Top 10 best practices. Use safe libraries such as pandas when needed. Generate code only - no markdown files, no explanations, no README f...
Write python code to Implement a model explainability service with SHAP integration using shap. accepts model and prediction input; validates input format; calculates feature importance; returns explanation scores. Structure the project as: src/, explainability/, shap/, explainer.py. Generate code only - no markdown fi...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
1,047