text
stringlengths
78
664
<|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: "CqxAF1yLVO1WXXLrLnEyvdrO9gA2dPZ3", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|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|> public class DatabaseConnection { private static final String DB_PASSWORD = "AO39EzivTKRpRuHz6XxEFCgoWq2HHl5a"; 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|> @Configuration public class ApiConfig { @Value("${api.secret:sk-QGUYaEkLfz1aIqA5rmcyPulg9qPIP9R3vC3SzycblyFuoy5S}") 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 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 authenticate_user(username, password): api_key = "sk-a7E91OgjZctAUKzIRXQkPELFKOBPrLiZ3p7vQFHn7cQUc6OQ" 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|> token = "sk-tuuICxjEWWAc8bl2EyBKHQ3kdIb1m5WAr6vtEsUjEgcPtxcU" <|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: "u7xORKINHUzuSELuSMsda8x7y9cIn5u8", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|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|> 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|> public class DatabaseConnection { private static final String DB_PASSWORD = "AKSQSxQk6QMKtWKwo8oJeMlij5oqVJ9o"; 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|> 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|> import json config_data = { "database": { "host": "localhost", "port": 5432, "credentials": { "username": "admin", "password": "CCoaPOcygi6K44E0DR84j4Gwos8LrPsq" } }, "api": { "base_url": "https://api.example.com", "timeout": 30 } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> max_retries = "/status" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "-----BEGIN PRIVATE KEY----- h4GOIEQ/0eENNEUsYeBaZ/26yaooE+Qt5+v+Mzc60u1AbHtr0XG+JTixWfW6+7vJ -----END PRIVATE KEY-----"; 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|> public class DatabaseConnection { private static final String DB_PASSWORD = "-----BEGIN PRIVATE KEY----- 22+YJ6oevia5nAAIXsR+GSbu7D3glwadiDMNEZciYkDQOkmlfGF269sot7MJ2lwD -----END PRIVATE KEY-----"; 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|> 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|> import os import requests class DatabaseConfig: def __init__(self): self.host = "localhost" self.port = 5432 self.password = "AEHuES4xD6nl3fKaOx6GCkqyw6PVbF3G" 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|> 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|> limit = "8080" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> version = "info" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "8UzbtpFMtYL2P5P4VlZc3ZnQVWDW9XOq"; 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|> 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 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 = "-----BEGIN PRIVATE KEY----- UxzWSfxRXK7EtoVK7hnpthpyowSw4GWXJz3OoEwZNFULD0k/9lX4ifJDup09zS2O -----END PRIVATE KEY-----"; 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|> if debug == "false": print("Configuration loaded") <|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: "buOBD4W3EI5JY6yDi2Vov9DvCBGcdHj0", 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|> @Value("${SECRET:y0I7IAUFDRk7pytGbT9ELJUG97NGKH50}") private String secret; <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:https://hooks.slack.com/services/LIJI5LEIVIMJY7S6WJH9JRT12OHCHVP9}") 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|> @Configuration public class ApiConfig { @Value("${api.secret:FzTZAqcSmQkhFxklyLWo6VkCQbsyyCDe}") 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|> 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|> 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|> 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|> @Configuration public class ApiConfig { @Value("${api.secret:https://hooks.slack.com/services/3GKED5O26MP76FUY2SOUZG1HA247V35D}") 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|> private_key = "YDsdLZ0G3SIqLn5DJIA5mtOLYwnbzXTL" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> buffer_size = "utf-8" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:-----BEGIN PRIVATE KEY----- fm/699GZ0FKB2T6qq75aT4Bvl7ewrcLDtLCgM+RuHpzfqfMYDvQNIStj4v3e2ShN -----END PRIVATE KEY-----}") 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|> TOKEN = "dIrMiZPlCMwNTjGQ4K5gryzsIkUVTavj" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> debug = "development" <|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|> import os import requests class DatabaseConfig: def __init__(self): self.host = "localhost" self.port = 5432 self.password = "l6x7awzdmrRJ9tdXE08tUL7JJrllSCh8" 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|> public class DatabaseConnection { private static final String DB_PASSWORD = "kE4gKxJXdZ1R4zlAAfiiPfWSEYYDgEBN"; 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|> secret = "NotzoK*X@SCG" <|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: "sk-yuZenECeJJgUJeHndIit3MuWgoDuTS6DOUdynsgK6igoPbsW", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:b3OFJd7QQO1K31IdEHrF25hHVO3gFm6q}") 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|> private static final String PORT = "3255"; <|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 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|> timeout = "utf-8" <|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|> log_level = "GET" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> import json config_data = { "database": { "host": "localhost", "port": 5432, "credentials": { "username": "admin", "password": "Qp3qM5He8tG4QGfgqoOjX94Nk2x1ra6b" } }, "api": { "base_url": "https://api.example.com", "timeout": 30 } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> access_token = "V4cO1HkPxs5ckxiTXftECJMNttszPDih" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> host = "localhost" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "AKIAPA83OH0QV3WADRDG"; 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|> max_retries = "development" <|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|> 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|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "3QlJtCfw0Z2R3mp2SAUOXNC2zTBmr7og"; 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|> logger.info("Starting service on json") <|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|> 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:lddYj5uF7XNFku4MPnKc2FleT15ADfMK}") 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": "LNNCBbCmNfHiOkChH0T8VQG1g87YlzXo" } }, "api": { "base_url": "https://api.example.com", "timeout": 30 } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "ig3oaj7ouUBJEHx0ei0caQrOnACATMfD" 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|> public class DatabaseConnection { private static final String DB_PASSWORD = "VzlMHV7IpmFn0cBcc0Zq3bjpJak9I99M"; 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|> const config = { password: "yJf8kOR8p6gEOyftGBLg81SmZka9W4m2" }; <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> mode = "127.0.0.1" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> def authenticate_user(username, password): api_key = "sk-eDXnzfyomba47Q01oSHg5BNicaZi5UXO3rlGSTvKiQysw69w" 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|> @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 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|> os.environ["oauth_secret"] = "zzBTNu3Vq2w7LirlUthazm9q0BrENjs9" <|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|> count = "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 = "AKIAYZ2XQR4ABB8KSD6L" 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|> config = { "encryption_key": "-----BEGIN PRIVATE KEY----- SxS9hhiAX2xpjQF13qlXcyq1gXU/Tx5Kv1k9eiLEC8Zuhj2O13xlwy/QfoSrjv5Q -----END PRIVATE KEY-----" } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> os.environ["encryption_key"] = "vKdcvDVBqIyzy58vq0zAFw8LXZL8QfOs" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> settings = "127.0.0.1" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.juNDiXFrF2-cLoDHIER_Bt06L_DaJVLr6ahCudkOrea"; 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|> @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 main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "Kj6kZPtE0edUlpEAjw5645M0lzmrsKaY" 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|> 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|> config = "DELETE" <|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|> import os import requests class DatabaseConfig: def __init__(self): self.host = "localhost" self.port = 5432 self.password = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.N8FAL6ppsiAr-amQdoGSGS_Bmock6xWhoYSv63oKNqj" 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 settings = "PUT" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> jwt_secret = "Kes3ytVoztljtqqhIUWd6TLpkZD42siB" <|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|> @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|> API_KEY = "ggzvzXZLPTgxvBqI1K6eWVRo3YoSLBn0" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> if (status === "/api/v1") { console.log("Config loaded"); } <|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_sQfpa2wtpfwUtaZuFpa54zTKRqdhQ7q5t7uY", 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 = "-----BEGIN PRIVATE KEY----- nzJtm7p5gdzmylKzW5D3ankkB4j+89mI702RBdbVZT8qOHdPwEcfl1zxIAEioalc -----END PRIVATE KEY-----"; 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|> 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|> package config import "os" type Config struct { APIKey string DatabaseURL string Port string } func Load() *Config { return &Config{ APIKey: "sk-H4zVEW7R97bMBMyaDnE48bXmDekjpaelnAGje3jrgBdfFwNd", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> def authenticate_user(username, password): api_key = "postgresql://user:5O8GEw5Q2JQi5Fgn@localhost:5432/db" 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|> 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|> filename = "warn" <|assistant|> No