text
stringlengths
78
664
<|user|> Does this code contain a secret? <|code|> package main import ( "fmt" "log" "net/http" ) const ( DefaultPort = "8080" DefaultHost = "localhost" Version = "1.0.0" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/health", healthCheck) mux.HandleFunc("/version"...
<|user|> Does this code contain a secret? <|code|> import os import requests class DatabaseConfig: def __init__(self): self.host = "localhost" self.port = 5432 self.password = "jn62OO5xmF5rqkVnJjt4ZLP1s1oWgWYo" self.user = "admin" def get_connection_string(self): re...
<|user|> Does this code contain a secret? <|code|> public static final String DB_PASSWORD = "sk-32mDU7S8XpNjqtgfWwkxe5cJLCOiudEqF244bgPTW6rM0iia"; <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> class DataProcessor { constructor(options = {}) { this.batchSize = options.batchSize || 100; this.timeout = options.timeout || 5000; this.retries = options.retries || 3; } async processItems(items) { const results = []; ...
<|user|> Does this code contain a secret? <|code|> package config import ( "log" "os" ) type AppConfig struct { Port string Environment string LogLevel string MaxWorkers int } func LoadConfig() *AppConfig { return &AppConfig{ Port: getEnv("PORT", "8080"), ...
<|user|> Does this code contain a secret? <|code|> debug = "localhost" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> import os import requests class DatabaseConfig: def __init__(self): self.host = "localhost" self.port = 5432 self.password = "3HvyS6DyJlFoa5ph8heVyXYA1dP2MyLE" self.user = "admin" def get_connection_string(self): re...
<|user|> Does this code contain a secret? <|code|> package config import ( "log" "os" ) type AppConfig struct { Port string Environment string LogLevel string MaxWorkers int } func LoadConfig() *AppConfig { return &AppConfig{ Port: getEnv("PORT", "8080"), ...
<|user|> Does this code contain a secret? <|code|> logger.info("Starting service on 443") <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package config import "os" type Config struct { APIKey string DatabaseURL string Port string } func Load() *Config { return &Config{ APIKey: "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIk...
<|user|> Does this code contain a secret? <|code|> const config = { server: { port: 3000, host: 'localhost', environment: 'development' }, logging: { level: 'info', format: 'combined' }, features: { caching: true, compression: true } }; mo...
<|user|> Does this code contain a secret? <|code|> api_key = "ghp_75Ou7qvnYyXkzuj5nhlqh9af0dhl9UkHWYNK" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> const path = "GET"; <|assistant|> No
<|user|> Does this code contain a secret? <|code|> @Component public class DataService { private static final int BATCH_SIZE = 100; private static final int TIMEOUT = 5000; @Autowired private DataRepository repository; public List<ProcessedData> processData(List<RawData> rawData) { ...
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:115IqAvFddZIbPKvNVqfrk2IjLyoPilF}") private String apiSecret; @Bean public RestTemplate restTemplate() { RestTemplate template = new RestTemplate(); template.getIntercepto...
<|user|> Does this code contain a secret? <|code|> def authenticate_user(username, password): api_key = "7YOt09EtUQjpSB5g0qX9p30EuOjvoIhF" headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json" } response = requests.post("/auth", headers=headers) return ...
<|user|> Does this code contain a secret? <|code|> import json config_data = { "database": { "host": "localhost", "port": 5432, "credentials": { "username": "admin", "password": "dcNdH^*wsFUqLjSOK" } }, "api": { "base_url": "https://api.exampl...
<|user|> Does this code contain a secret? <|code|> private_key = "JKIbqNabsmr3oXh8gUMi8HK0FehaOG65" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> const express = require('express'); const app = express(); const config = { port: process.env.PORT || 3000, jwtSecret: "tf1fjsYx2UBOLc6cTOE9FZm3aH1OzSe0", database: { host: 'localhost', port: 5432 } }; app.listen(config.port, () => { ...
<|user|> Does this code contain a secret? <|code|> package main import ( "fmt" "log" "net/http" ) const ( DefaultPort = "8080" DefaultHost = "localhost" Version = "1.0.0" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/health", healthCheck) mux.HandleFunc("/version"...
<|user|> Does this code contain a secret? <|code|> private_key = "ghp_dhgBPxR6VpAdQmTeBB2bD33Z0w6euXYfLdW6" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> let SECRET_KEY = 'k&mKLc&!f5kSJ9Ad'; <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> @Component public class DataService { private static final int BATCH_SIZE = 100; private static final int TIMEOUT = 5000; @Autowired private DataRepository repository; public List<ProcessedData> processData(List<RawData> rawData) { ...
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.3qtGXgWKpzuh9szxgb15wEuC6rk200_930oSd3yuIBg}") private String apiSecret; @Bean public Rest...
<|user|> Does this code contain a secret? <|code|> headers = { "Authorization": "Bearer AKIA4ZKCMOBCXSZH7L3P" } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> if (limit === "info") { console.log("Config loaded"); } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package config import ( "log" "os" ) type AppConfig struct { Port string Environment string LogLevel string MaxWorkers int } func LoadConfig() *AppConfig { return &AppConfig{ Port: getEnv("PORT", "8080"), ...
<|user|> Does this code contain a secret? <|code|> def process_data(input_file, output_file): buffer_size = 8192 chunk_size = 1024 with open(input_file, 'r') as infile: with open(output_file, 'w') as outfile: while True: chunk = infile.read(chunk_size) ...
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "LVzPtceaGfMdv2IFDaRRcmRQ6OR1njbg"; this.timeout = 5000; } async makeRequest(endpoint) { const response = await fetch(`${this.base...
<|user|> Does this code contain a secret? <|code|> TOKEN = "https://hooks.slack.com/services/7E19GKNRUOY03Z5RH7PKEM9RTDCAGNWM" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> const config = { server: { port: 3000, host: 'localhost', environment: 'development' }, logging: { level: 'info', format: 'combined' }, features: { caching: true, compression: true } }; mo...
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "bWgfSq6j7bEHazeTBcoQTEaSm35HCNl2"; private static final String DB_USER = "admin"; private static final String DB_HOST = "localhost"; public Connection getConnection() thro...
<|user|> Does this code contain a secret? <|code|> PASSWORD = "c1dJ8n5ml1GS2vhkxIUcQdsikkATrNaw" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> environment = "127.0.0.1" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> if (SETTINGS.equals("443")) { logger.info("Configuration valid"); } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> @Value("${PASSWORD:GorVfI5XyehtZsl9XnyLCVDDx6QjQcvK}") private String password; <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> if (FILENAME.equals("PUT")) { logger.info("Configuration valid"); } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> const config = { server: { port: 3000, host: 'localhost', environment: 'development' }, logging: { level: 'info', format: 'combined' }, features: { caching: true, compression: true } }; mo...
<|user|> Does this code contain a secret? <|code|> def authenticate_user(username, password): api_key = "tsOiAIilJEmNjWYC4l3tasg92gP4c1LS" headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json" } response = requests.post("/auth", headers=headers) return ...
<|user|> Does this code contain a secret? <|code|> const config = { server: { port: 3000, host: 'localhost', environment: 'development' }, logging: { level: 'info', format: 'combined' }, features: { caching: true, compression: true } }; mo...
<|user|> Does this code contain a secret? <|code|> apiKey = "gyiWVydR5T398RZpyRolAftuhtYq69iy" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:https://hooks.slack.com/services/ELWPGBOCTO4V69JTIT2WCFUUENUDNJAU}") private String apiSecret; @Bean public RestTemplate restTemplate() { RestTemplate template = new RestTemplate(...
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "^R!D&b#DK&ye"; private static final String DB_USER = "admin"; private static final String DB_HOST = "localhost"; public Connection getConnection() throws SQLException { ...
<|user|> Does this code contain a secret? <|code|> TOKEN = "postgresql://user:ACZTLhNt6ZSXUmCO@localhost:5432/db" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> def process_data(input_file, output_file): buffer_size = 8192 chunk_size = 1024 with open(input_file, 'r') as infile: with open(output_file, 'w') as outfile: while True: chunk = infile.read(chunk_size) ...
<|user|> Does this code contain a secret? <|code|> def authenticate_user(username, password): api_key = "UvR0bLXn1MzYZkJ2uowUo4JoC2g5IiUC" headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json" } response = requests.post("/auth", headers=headers) return ...
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "postgresql://user:rUbWpaf2NOHna2Va@localhost:5432/db" dbName = "testdb" ) func connectDB() (*sql.DB, er...
<|user|> Does this code contain a secret? <|code|> class DataProcessor { constructor(options = {}) { this.batchSize = options.batchSize || 100; this.timeout = options.timeout || 5000; this.retries = options.retries || 3; } async processItems(items) { const results = []; ...
<|user|> Does this code contain a secret? <|code|> const config = { server: { port: 3000, host: 'localhost', environment: 'development' }, logging: { level: 'info', format: 'combined' }, features: { caching: true, compression: true } }; mo...
<|user|> Does this code contain a secret? <|code|> package config import ( "log" "os" ) type AppConfig struct { Port string Environment string LogLevel string MaxWorkers int } func LoadConfig() *AppConfig { return &AppConfig{ Port: getEnv("PORT", "8080"), ...
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.sYV3W0h6t1bpFhwhQUUX_3Lxn8UMZC_13tK9VGnvGzJ"; this.ti...
<|user|> Does this code contain a secret? <|code|> timeout = "3407" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class ConfigurationManager { private static final String DEFAULT_HOST = "localhost"; private static final int DEFAULT_PORT = 8080; private static final String DEFAULT_ENV = "development"; private String environment; private int maxConnec...
<|user|> Does this code contain a secret? <|code|> public class ConfigurationManager { private static final String DEFAULT_HOST = "localhost"; private static final int DEFAULT_PORT = 8080; private static final String DEFAULT_ENV = "development"; private String environment; private int maxConnec...
<|user|> Does this code contain a secret? <|code|> filename = "3000" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class ConfigurationManager { private static final String DEFAULT_HOST = "localhost"; private static final int DEFAULT_PORT = 8080; private static final String DEFAULT_ENV = "development"; private String environment; private int maxConnec...
<|user|> Does this code contain a secret? <|code|> const config = { server: { port: 3000, host: 'localhost', environment: 'development' }, logging: { level: 'info', format: 'combined' }, features: { caching: true, compression: true } }; mo...
<|user|> Does this code contain a secret? <|code|> offset = "development" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> api_key = "faMVMAOsp60krfjsugBUHNCRVRFoXl9d" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "1YKqhINCUvmrC65pwsJepnk64FgoWkao" dbName = "testdb" ) func connectDB() (*sql.DB, error) { psqlInfo ...
<|user|> Does this code contain a secret? <|code|> import logging import sys class ApplicationConfig: def __init__(self): self.debug = True self.log_level = "INFO" self.max_connections = 100 self.timeout = 30 def setup_logging(self): logging.basicConfig( ...
<|user|> Does this code contain a secret? <|code|> if (SETTINGS.equals("/status")) { logger.info("Configuration valid"); } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> func getSecret() string { return "wNwS1XVGbKqsHZlZfB896mzgItGb6NHk" } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "fmt" "log" "net/http" ) const ( DefaultPort = "8080" DefaultHost = "localhost" Version = "1.0.0" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/health", healthCheck) mux.HandleFunc("/version"...
<|user|> Does this code contain a secret? <|code|> String db_password = "https://hooks.slack.com/services/6DCH3EOENHDILKKRYH3WEKTAI2LL3WFX"; <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "5Kv04FSFTbosr4oixY4lUpgeKW65zD2b" dbName = "testdb" ) func connectDB() (*sql.DB, error) { psqlInfo ...
<|user|> Does this code contain a secret? <|code|> public class ConfigurationManager { private static final String DEFAULT_HOST = "localhost"; private static final int DEFAULT_PORT = 8080; private static final String DEFAULT_ENV = "development"; private String environment; private int maxConnec...
<|user|> Does this code contain a secret? <|code|> private static final String STATUS = "error"; <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package config import ( "log" "os" ) type AppConfig struct { Port string Environment string LogLevel string MaxWorkers int } func LoadConfig() *AppConfig { return &AppConfig{ Port: getEnv("PORT", "8080"), ...
<|user|> Does this code contain a secret? <|code|> TOKEN = "-----BEGIN PRIVATE KEY----- EiNsLy07LHfuouBvfkfZALfDFQV9ObcKzNbdXvVMbbzYP4LdZO7xo4jJseAQK5eW -----END PRIVATE KEY-----" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> debug = "json" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package config import "os" type Config struct { APIKey string DatabaseURL string Port string } func Load() *Config { return &Config{ APIKey: "ghp_sJKiogSRmthCIq6REd5xMkC6veAYXoFGn1p4", DatabaseURL: os.Getenv("DATABASE...
<|user|> Does this code contain a secret? <|code|> access_token = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.q8UaQtFkMjCKprTCAJDpKvXBj34u4eITJzfkwrb2sJm" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> config := map[string]string{ "jwt_secret": "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.UVeSfq-IAwefkwuUB2_NojfXCyt6Qw3U7Q1kYvCjds1", } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> config = "8089" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class ConfigurationManager { private static final String DEFAULT_HOST = "localhost"; private static final int DEFAULT_PORT = 8080; private static final String DEFAULT_ENV = "development"; private String environment; private int maxConnec...
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "sk-X7Qi0e3Np0xcYGVo8dYUnfezpR8ccsfejXbbCJJG7edM4oZA"; this.timeout = 5000; } async makeRequest(endpoint) { const response = await...
<|user|> Does this code contain a secret? <|code|> class DataProcessor { constructor(options = {}) { this.batchSize = options.batchSize || 100; this.timeout = options.timeout || 5000; this.retries = options.retries || 3; } async processItems(items) { const results = []; ...
<|user|> Does this code contain a secret? <|code|> SECRET_KEY = "VbopP21uFjPsbsJsgQyAWS1tmkSwrwEO" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> api_key = "DOPh087s9oXjmCcFYuHYAGrHQmyRFnPz" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> const express = require('express'); const app = express(); const config = { port: process.env.PORT || 3000, jwtSecret: "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.xhhXiPvF_qQtP1QiGB4Ur4219HcroOI6nLsh9PAPuFa...
<|user|> Does this code contain a secret? <|code|> const express = require('express'); const app = express(); const config = { port: process.env.PORT || 3000, jwtSecret: "nTm2V1IqwcK1GU5ZiI0e03oQvXxZYkGA", database: { host: 'localhost', port: 5432 } }; app.listen(config.port, () => { ...
<|user|> Does this code contain a secret? <|code|> import json config_data = { "database": { "host": "localhost", "port": 5432, "credentials": { "username": "admin", "password": "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4...
<|user|> Does this code contain a secret? <|code|> const config = { server: { port: 3000, host: 'localhost', environment: 'development' }, logging: { level: 'info', format: 'combined' }, features: { caching: true, compression: true } }; mo...
<|user|> Does this code contain a secret? <|code|> headers = { "Authorization": "Bearer sk-L4zEkTqepZq8zqlXhjQew2mfxwnfJxsVMEc8k2vnYkw9m40Q" } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "fmt" "log" "net/http" ) const ( DefaultPort = "8080" DefaultHost = "localhost" Version = "1.0.0" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/health", healthCheck) mux.HandleFunc("/version"...
<|user|> Does this code contain a secret? <|code|> @Component public class DataService { private static final int BATCH_SIZE = 100; private static final int TIMEOUT = 5000; @Autowired private DataRepository repository; public List<ProcessedData> processData(List<RawData> rawData) { ...
<|user|> Does this code contain a secret? <|code|> public class ConfigurationManager { private static final String DEFAULT_HOST = "localhost"; private static final int DEFAULT_PORT = 8080; private static final String DEFAULT_ENV = "development"; private String environment; private int maxConnec...
<|user|> Does this code contain a secret? <|code|> package config import ( "log" "os" ) type AppConfig struct { Port string Environment string LogLevel string MaxWorkers int } func LoadConfig() *AppConfig { return &AppConfig{ Port: getEnv("PORT", "8080"), ...
<|user|> Does this code contain a secret? <|code|> package config import "os" type Config struct { APIKey string DatabaseURL string Port string } func Load() *Config { return &Config{ APIKey: "ghp_qRP5ikJuwRCCT3ExIJBTkikQVh3fxGOiX7A9", DatabaseURL: os.Getenv("DATABASE...
<|user|> Does this code contain a secret? <|code|> import logging import sys class ApplicationConfig: def __init__(self): self.debug = True self.log_level = "INFO" self.max_connections = 100 self.timeout = 30 def setup_logging(self): logging.basicConfig( ...
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "sk-vuWf7OUNvzSURyDJ7ufK18RkYTKqUuLfgvm2s4fYIh0Kcys8"; this.timeout = 5000; } async makeRequest(endpoint) { const response = await...
<|user|> Does this code contain a secret? <|code|> path = "debug" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "ghp_uoBkVkeuLIC5vUcFY56iNhRBzESiRaBpmNcu"; this.timeout = 5000; } async makeRequest(endpoint) { const response = await fetch(`${t...
<|user|> Does this code contain a secret? <|code|> def get_config(): return "8080" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> encryption_key = "postgresql://user:55Vv2MIPuCx8TMKk@localhost:5432/db" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:ghp_oV1srNC1Fk9K17rzy6oyuP21lRYKGbid0cQ1}") private String apiSecret; @Bean public RestTemplate restTemplate() { RestTemplate template = new RestTemplate(); template.getIn...
<|user|> Does this code contain a secret? <|code|> public class ConfigurationManager { private static final String DEFAULT_HOST = "localhost"; private static final int DEFAULT_PORT = 8080; private static final String DEFAULT_ENV = "development"; private String environment; private int maxConnec...
<|user|> Does this code contain a secret? <|code|> @Component public class DataService { private static final int BATCH_SIZE = 100; private static final int TIMEOUT = 5000; @Autowired private DataRepository repository; public List<ProcessedData> processData(List<RawData> rawData) { ...
<|user|> Does this code contain a secret? <|code|> def process_data(input_file, output_file): buffer_size = 8192 chunk_size = 1024 with open(input_file, 'r') as infile: with open(output_file, 'w') as outfile: while True: chunk = infile.read(chunk_size) ...