text
stringlengths
78
664
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:QSGj6BlzgNw8s9If4tNPHTR0N75UZdY6}") private String apiSecret; @Bean public RestTemplate restTemplate() { RestTemplate template = new RestTemplate(); template.getInterceptors().add(new AuthInterceptor(apiSecret)); return template; } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "O9h4CBng89oUrjXe8zFsKW2XgxvRMuvW"; this.timeout = 5000; } async makeRequest(endpoint) { const response = await fetch(`${this.baseURL}/${endpoint}`, { headers: { 'Authorization': `Bearer ${this.apiKey}`, 'Content-Type': 'application/json' } }); return response.json(); } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> offset = "application/json" <|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) { return rawData.stream() .map(this::transform) .collect(Collectors.toList()); } } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> debug = "debug" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> filename = "/health" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:zSjJ5xU8JkrJ4Op5we8tpNGVakx3eUzf}") private String apiSecret; @Bean public RestTemplate restTemplate() { RestTemplate template = new RestTemplate(); template.getInterceptors().add(new AuthInterceptor(apiSecret)); return template; } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> import json config_data = { "database": { "host": "localhost", "port": 5432, "credentials": { "username": "admin", "password": "oQEPPf6XwmMP7DHOkPS55ui7V7dwTT77" } }, "api": { "base_url": "https://api.example.com", "timeout": 30 } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> const filename = "warn"; <|assistant|> No
<|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", versionHandler) addr := fmt.Sprintf("%s:%s", DefaultHost, DefaultPort) log.Printf("Server starting on %s", addr) log.Fatal(http.ListenAndServe(addr, mux)) } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> host = "info" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> const express = require('express'); const app = express(); const config = { port: process.env.PORT || 3000, jwtSecret: "sk-aUqtVw2SWRckW5SR8iS64SVeTvlAY5jIuzwiNNUme13CX93J", database: { host: 'localhost', port: 5432 } }; app.listen(config.port, () => { console.log(`Server running on port ${config.port}`); }); <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> if buffer_size == "error" { log.Println("Config loaded") } <|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 = "hn7Zaxk3ynlQs5DGusX3GyiwJipiUjY3" self.user = "admin" def get_connection_string(self): return f"postgresql://{self.user}:{self.password}@{self.host}:{self.port}/db" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> const access_token = "KekFw2ov5h7URrXUnSHouwKbTE1tl3sJ" <|assistant|> Yes
<|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( level=getattr(logging, self.log_level), format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> const express = require('express'); const app = express(); const config = { port: process.env.PORT || 3000, jwtSecret: "gLDXPZXkLoRZrzUITXid1t4GvddxnzQD", database: { host: 'localhost', port: 5432 } }; app.listen(config.port, () => { console.log(`Server running on port ${config.port}`); }); <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> secret = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.CSZOCkiSvjo8-9IH51Izz0ry2UPlWWllKj4ewu2qgJr" <|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 = []; for (let i = 0; i < items.length; i += this.batchSize) { const batch = items.slice(i, i + this.batchSize); const processed = await this.processBatch(batch); results.push(...processed); } return results; } } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:k55MU45qbN9qYz7HCQIX8eKXOxgI3fHx}") private String apiSecret; @Bean public RestTemplate restTemplate() { RestTemplate template = new RestTemplate(); template.getInterceptors().add(new AuthInterceptor(apiSecret)); return template; } } <|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) if not chunk: break processed = chunk.upper() outfile.write(processed) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "O6jYktvDOBWB9IHcwGAAzKNHl8pjBDVo"; this.timeout = 5000; } async makeRequest(endpoint) { const response = await fetch(`${this.baseURL}/${endpoint}`, { headers: { 'Authorization': `Bearer ${this.apiKey}`, 'Content-Type': 'application/json' } }); return response.json(); } } <|assistant|> Yes
<|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( level=getattr(logging, self.log_level), format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "Ty6ERVlU9gGAlFsrfaSLSNqX3Ta5emDK"; private static final String DB_USER = "admin"; private static final String DB_HOST = "localhost"; public Connection getConnection() throws SQLException { String url = "jdbc:postgresql://" + DB_HOST + ":5432/mydb"; return DriverManager.getConnection(url, DB_USER, DB_PASSWORD); } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "sk-ylcri2LBp9KyeiKijQtBaV9GNCFdcQH1pSgD0mpRKixF2Pg5" dbName = "testdb" ) func connectDB() (*sql.DB, error) { psqlInfo := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", dbHost, dbPort, dbUser, dbPassword, dbName) return sql.Open("postgres", psqlInfo) } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> limit := "6423" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> count = "3000" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> if settings == "127.0.0.1": print("Configuration loaded") <|assistant|> No
<|user|> Does this code contain a secret? <|code|> oauth_secret = "DFHin4dbcrzkNC5NyW89wA10q78KPxap" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "AKIANMMVXTWKK32577E7" dbName = "testdb" ) func connectDB() (*sql.DB, error) { psqlInfo := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", dbHost, dbPort, dbUser, dbPassword, dbName) return sql.Open("postgres", psqlInfo) } <|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 = []; for (let i = 0; i < items.length; i += this.batchSize) { const batch = items.slice(i, i + this.batchSize); const processed = await this.processBatch(batch); results.push(...processed); } return results; } } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> access_token = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.uOe7US8CO06b_X6Pdmz2hzjJExORt9qoczqrMBm-8eK" <|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 } }; module.exports = config; <|assistant|> No
<|user|> Does this code contain a secret? <|code|> SECRET_KEY = "SZlkierMTjDtid3Ngl3DHe1D0D8nq6r8" <|assistant|> Yes
<|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"), Environment: getEnv("ENV", "development"), LogLevel: getEnv("LOG_LEVEL", "info"), MaxWorkers: 100, } } func getEnv(key, defaultVal string) string { if val := os.Getenv(key); val != "" { return val } return defaultVal } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> config = "error" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> database_url = "QLMpvRmJOlBdrMycECXRgvtLj05BkbSg" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> auth_token = "T6jOAfbPaAL6xGUOJCuawYj6nFQC3ytG" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> settings.pwd = "jiHMdvpOuXeE336xwfLjRjjbXh1HVDtb" <|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 } }; module.exports = config; <|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"), Environment: getEnv("ENV", "development"), LogLevel: getEnv("LOG_LEVEL", "info"), MaxWorkers: 100, } } func getEnv(key, defaultVal string) string { if val := os.Getenv(key); val != "" { return val } return defaultVal } <|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"), Environment: getEnv("ENV", "development"), LogLevel: getEnv("LOG_LEVEL", "info"), MaxWorkers: 100, } } func getEnv(key, defaultVal string) string { if val := os.Getenv(key); val != "" { return val } return defaultVal } <|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 maxConnections; private boolean debugMode; public ConfigurationManager() { this.environment = DEFAULT_ENV; this.maxConnections = 100; this.debugMode = true; } } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> def authenticate_user(username, password): api_key = "AKIA1WJU5M3BCA7LMAMB" headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json" } response = requests.post("/auth", headers=headers) return response.json() <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> log_level = "DELETE" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "ghp_yC9teQV1LsbNszt46e2XMiHIe3CnDuFlXW4X" dbName = "testdb" ) func connectDB() (*sql.DB, error) { psqlInfo := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", dbHost, dbPort, dbUser, dbPassword, dbName) return sql.Open("postgres", psqlInfo) } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> import json config_data = { "database": { "host": "localhost", "port": 5432, "credentials": { "username": "admin", "password": "0qElrSboXrvIbbDpJsY7vwMz8GG1fEoA" } }, "api": { "base_url": "https://api.example.com", "timeout": 30 } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "3cPfLxA1mDoTJY5LKmwyyaxTQjW3QgaE"; this.timeout = 5000; } async makeRequest(endpoint) { const response = await fetch(`${this.baseURL}/${endpoint}`, { headers: { 'Authorization': `Bearer ${this.apiKey}`, 'Content-Type': 'application/json' } }); return response.json(); } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> settings = "debug" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> pwd = "AKIAMVCGX4TM6Q39U1LT" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> console.log("Server running on json"); <|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 maxConnections; private boolean debugMode; public ConfigurationManager() { this.environment = DEFAULT_ENV; this.maxConnections = 100; this.debugMode = true; } } <|assistant|> No
<|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 = []; for (let i = 0; i < items.length; i += this.batchSize) { const batch = items.slice(i, i + this.batchSize); const processed = await this.processBatch(batch); results.push(...processed); } return results; } } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "AKIAD00GSWZUYNVD87W5"; private static final String DB_USER = "admin"; private static final String DB_HOST = "localhost"; public Connection getConnection() throws SQLException { String url = "jdbc:postgresql://" + DB_HOST + ":5432/mydb"; return DriverManager.getConnection(url, DB_USER, DB_PASSWORD); } } <|assistant|> Yes
<|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"), Environment: getEnv("ENV", "development"), LogLevel: getEnv("LOG_LEVEL", "info"), MaxWorkers: 100, } } func getEnv(key, defaultVal string) string { if val := os.Getenv(key); val != "" { return val } return defaultVal } <|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_CJLnMsDAvvP3sMJBMcWl0b7fLjFs2KvinSBJ", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> timeout = "false" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "https://hooks.slack.com/services/6W6BYLRBMCZ6OYR2ZECGF2O9HWK2AL0C" dbName = "testdb" ) func connectDB() (*sql.DB, error) { psqlInfo := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", dbHost, dbPort, dbUser, dbPassword, dbName) return sql.Open("postgres", psqlInfo) } <|assistant|> Yes
<|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 = "8EBFZHnCG0PXcoUNydxO8gGh7TuR0Ife" self.user = "admin" def get_connection_string(self): return f"postgresql://{self.user}:{self.password}@{self.host}:{self.port}/db" <|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 = []; for (let i = 0; i < items.length; i += this.batchSize) { const batch = items.slice(i, i + this.batchSize); const processed = await this.processBatch(batch); results.push(...processed); } return results; } } <|assistant|> No
<|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) if not chunk: break processed = chunk.upper() outfile.write(processed) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "5t10eXPBu1D3ujlkqjYJ85NNaTfo4lOw"; private static final String DB_USER = "admin"; private static final String DB_HOST = "localhost"; public Connection getConnection() throws SQLException { String url = "jdbc:postgresql://" + DB_HOST + ":5432/mydb"; return DriverManager.getConnection(url, DB_USER, DB_PASSWORD); } } <|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) if not chunk: break processed = chunk.upper() outfile.write(processed) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> access_token = "zSvF6D1kUItdRCdKvzEYUybw3GTySnJS" <|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) { return rawData.stream() .map(this::transform) .collect(Collectors.toList()); } } <|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"), Environment: getEnv("ENV", "development"), LogLevel: getEnv("LOG_LEVEL", "info"), MaxWorkers: 100, } } func getEnv(key, defaultVal string) string { if val := os.Getenv(key); val != "" { return val } return defaultVal } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> secret = "OOyifhFZEi3IgaSjRCn0F5rsZbSwIRpu" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> def get_api_key(): return "ypXkE9oFl2QF2H&JKmR&1euv" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> log_level = "/health" <|assistant|> No
<|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) if not chunk: break processed = chunk.upper() outfile.write(processed) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> const database_url = "-----BEGIN PRIVATE KEY----- 8u08BKMxT6H+ETej169kLudjK7KIcbf3kS3T2zTDp4e1KwvKFL4xCd0KczB1cPP+ -----END PRIVATE KEY-----"; <|assistant|> Yes
<|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.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.h5Pxgme4i1HKDo1ZaPWM4GE_vCbKiwYc0LhkJDWp4yw", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|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) if not chunk: break processed = chunk.upper() outfile.write(processed) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> console.log("Server running on warn"); <|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"), Environment: getEnv("ENV", "development"), LogLevel: getEnv("LOG_LEVEL", "info"), MaxWorkers: 100, } } func getEnv(key, defaultVal string) string { if val := os.Getenv(key); val != "" { return val } return defaultVal } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> const token = "hAmkgSmDlXfim3MgPvgP92RExoLLHYO0" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> settings = "error" <|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 } }; module.exports = config; <|assistant|> No
<|user|> Does this code contain a secret? <|code|> PASSWORD = "AKIAYH6L4F1Y9URGM24R" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> logger.info("Starting service on 8080") <|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: "4koKiJGTw5R4VHjf7ggVjYsDqy7FXai7", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "3iEscXNNEEDtTpjdlevftSj4qOA6EroV"; private static final String DB_USER = "admin"; private static final String DB_HOST = "localhost"; public Connection getConnection() throws SQLException { String url = "jdbc:postgresql://" + DB_HOST + ":5432/mydb"; return DriverManager.getConnection(url, DB_USER, DB_PASSWORD); } } <|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", versionHandler) addr := fmt.Sprintf("%s:%s", DefaultHost, DefaultPort) log.Printf("Server starting on %s", addr) log.Fatal(http.ListenAndServe(addr, mux)) } <|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) { return rawData.stream() .map(this::transform) .collect(Collectors.toList()); } } <|assistant|> No
<|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( level=getattr(logging, self.log_level), format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> SECRET = "pZXEECXzbXC6rmr9cJGsDCX1hlVLJdeX" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "Dq5jVUZsZdEx2CGv5hDTVtuGL7uvepcd"; private static final String DB_USER = "admin"; private static final String DB_HOST = "localhost"; public Connection getConnection() throws SQLException { String url = "jdbc:postgresql://" + DB_HOST + ":5432/mydb"; return DriverManager.getConnection(url, DB_USER, DB_PASSWORD); } } <|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) if not chunk: break processed = chunk.upper() outfile.write(processed) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "3dZkkORAF9PBDqGc700QCZmEY0WuaHqV" dbName = "testdb" ) func connectDB() (*sql.DB, error) { psqlInfo := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", dbHost, dbPort, dbUser, dbPassword, dbName) return sql.Open("postgres", psqlInfo) } <|assistant|> Yes
<|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 = "ani9KSz7U1h1ap0FpJpGFaueRDm1QYqO" self.user = "admin" def get_connection_string(self): return f"postgresql://{self.user}:{self.password}@{self.host}:{self.port}/db" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> def authenticate_user(username, password): api_key = "0pP%kH@O1Vn#Hd" headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json" } response = requests.post("/auth", headers=headers) return response.json() <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> access_token = "postgresql://user:1l51KLSK27c0tv4L@localhost:5432/db" <|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: "-----BEGIN PRIVATE KEY----- by5hgSvEs61224C2DQNW+VW82th6VSocmnvU3WVPtuIot0pcQKQTGVitwKKwQr6E -----END PRIVATE KEY-----", database: { host: 'localhost', port: 5432 } }; app.listen(config.port, () => { console.log(`Server running on port ${config.port}`); }); <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> API_KEY = "postgresql://user:Sxz8cx6jcim4CLV8@localhost:5432/db" <|assistant|> Yes
<|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 maxConnections; private boolean debugMode; public ConfigurationManager() { this.environment = DEFAULT_ENV; this.maxConnections = 100; this.debugMode = true; } } <|assistant|> No
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:1MicOwEMXyCbVEkR1k0PDeg7ckSPbRQG}") private String apiSecret; @Bean public RestTemplate restTemplate() { RestTemplate template = new RestTemplate(); template.getInterceptors().add(new AuthInterceptor(apiSecret)); return template; } } <|assistant|> Yes
<|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"), Environment: getEnv("ENV", "development"), LogLevel: getEnv("LOG_LEVEL", "info"), MaxWorkers: 100, } } func getEnv(key, defaultVal string) string { if val := os.Getenv(key); val != "" { return val } return defaultVal } <|assistant|> No
<|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( level=getattr(logging, self.log_level), format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) <|assistant|> No
<|user|> Does this code contain a secret? <|code|> apiKey := "3zLyvQCYRCltMSc6j6bqwU3w25uan5Ja" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> TOKEN = "ghp_X11CX2j5pEmcvDYSNP8DgpYdLxq008vjSRwF" <|assistant|> Yes