text
stringlengths
78
664
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:kZb27AoZ@aYbpVXfut8}") 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|> api_key = "VGd0On5TjbR1xtv3jFhZb89zjLQlFHA0" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> SECRET = "AKIAGQFZD6AROQKWBNNZ" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> offset = "GET" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "ghp_RzxMQyAKlf1hksuFiz1oA6ansolZ6JMHFf5X"; 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|> String database_url = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.5ovLA2hcHr__jSyC7AfGLOT58CVXn7DcxfWWrAZ6tug"; <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> private_key = "-----BEGIN PRIVATE KEY----- SO89BMfP4xkeoarLk7aLWYPGUYpL7Nm9mlSpxtzflKV6/osnMNg0Tjmy2FTlEZP5 -----END PRIVATE KEY-----" <|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: "TZd9KtUm5gan2GZiEERp9Sdv4bTSgPvN", 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|> const express = require('express'); const app = express(); const config = { port: process.env.PORT || 3000, jwtSecret: "8sXHZnzz7afk8AMbeeSqfTCM48HGz7Yx", 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|> 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": "tHmqhIsgj8ETMQNWom15EU5wBmyk1Gpk" } }, "api": { "base_url": "https://api.example.com", "timeout": 30 } } <|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|> PASSWORD = "AKIAZITC0VUY34HQRSDN" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> settings = "3000" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> db_password := "dfeYCkoI3yWMBr7GebSp7ObVSnnlCn5i" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> let debug = "debug"; <|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|> @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|> 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 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:MJE9VwxrW4Ae01qYy40FMTrRMP61FFPT}") 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|> 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|> 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|> 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 = "https://hooks.slack.com/services/SROGPFTEYD17ZAEQISH76CQOOWBSPPKB" 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|> package config import "os" type Config struct { APIKey string DatabaseURL string Port string } func Load() *Config { return &Config{ APIKey: "o8Xpcf2j31wvV0WwWUjT1w8djOX8kCuz", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|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 = "wI3eOjmiDpTMOWz4euoASrjliezVGxAd" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> max_retries = "127.0.0.1" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> encryption_key = "DU3Jbyauoi4s3Q7BSeCIz3WEPBWHhaRr" <|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: "wvlgz82aM72na6pio8TR7I2iGA16Vgck", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> webhook_secret = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.qHc5m5c6T58kwr5zyRGQ6Pgbg7G19KAv8rUQi69LqHR" <|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|> def get_api_key(): return "Fr$DdEu4wQO7JOXQ^" <|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|> 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 json config_data = { "database": { "host": "localhost", "port": 5432, "credentials": { "username": "admin", "password": "-----BEGIN PRIVATE KEY----- yt3a8OWOBvhEbdcuKDF7OeHsAEEMZFAbyZYEjPHEJan8zEq2r1HLdNX36JOKpuk5 -----END PRIVATE KEY-----" } }, "api": { "base_url": "https://api.example.com", "timeout": 30 } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> count = "DELETE" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> @Configuration public class ApiConfig { @Value("${api.secret:eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.A2vZu5vqs1OyNvFQgVr7OHkZ7ZfvJSkFJbC9rVQXHnb}") 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 = "T3HnYhntNMcsZhrpWG9h5dZdFBy2y2pc" <|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|> environment = "false" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> api_key = "H4gY4dNBNgEICRwm59y4EF8GwJHA9mM2" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> buffer_size = "443" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> const filename = "3000" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "postgresql://user:QNSAI0pesRvHdjGQ@localhost:5432/db" 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|> properties.setProperty("SECRET", "https://hooks.slack.com/services/ER9V4BMWV05AFMUD547NT96DUSCLHKSJ"); <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> database_url = "sk-1bSqM3K8tcekVRW9V5DfVEI3ddwKZBuRacS1EwJJ6b8aeEIJ" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> jwt_secret = "ozWd0WVV3wJBCXUdVw5LD50IkWnPH2gu" <|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|> private static final String COUNT = "error"; <|assistant|> No
<|user|> Does this code contain a secret? <|code|> port = "production" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> if count == "443": print("Configuration loaded") <|assistant|> No
<|user|> Does this code contain a secret? <|code|> console.log("Server running on 127.0.0.1"); <|assistant|> No
<|user|> Does this code contain a secret? <|code|> import json config_data = { "database": { "host": "localhost", "port": 5432, "credentials": { "username": "admin", "password": "8V6tQGD8RWSWchYFbmOH4G0WwiwxOn2J" } }, "api": { "base_url": "https://api.example.com", "timeout": 30 } } <|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|> 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 config = { password: "3iDK2I8cY4SdYDaN4LboCifJRiLUusSV" }; <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> auth_token = "iKjOFfffmYucz62HQzpyweHjBC96Fyu2" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "MbepZgkkehK1i2TRXxTEGsz1eFaJU2tX" 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|> private static final String COUNT = "info"; <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "postgresql://user:j62dLfpxPyaDSEro@localhost:5432/db"; 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|> config := map[string]string{ "SECRET": "al5EJl3JuuQSO7SWunQUfvoKNqouX4jl", } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> SECRET_KEY = "-----BEGIN PRIVATE KEY----- QJAZxRUFGT0dYzCMVYHgHMSHXhxfXOSm8ZiVDs4nqKg0IkPKTGSWgUebPaM99shv -----END PRIVATE KEY-----" <|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|> func getSecret() string { return "dzP57oIWcnw08S2Mu" } <|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|> version = "443" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "C0N89XLxwLIkn3WwcjGrOkD07x9XBSis" 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|> 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|> class ApiClient { constructor() { this.baseURL = 'https://api.example.com'; this.apiKey = "https://hooks.slack.com/services/QOX7GDJISP00KSVIO8S2OOIWUTMVTFYS"; 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|> api_key = "Q7WRsUyw5odWJVCmxqSJd6d4RhO9V4rE" <|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|> const express = require('express'); const app = express(); const config = { port: process.env.PORT || 3000, jwtSecret: "vYa0lwVWTy7rFxJUkg5d2rJhSE2HYWjU", 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|> config = { "apiKey": "7SNVI7BUnjiSfiHiPFBzqfXXYRTWpEbu" } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0._pbIiGR3hy1NoNu4yC2bSpJuzAxEiyYV6l6f9tl-Pgr" 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 = "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiMTIzNDU2Nzg5MCIsICJuYW1lIjogIkpvaG4gRG9lIn0.28uSY_X8KNkj2kEZZZYblypQ23AhbWTHyCUx0uTcYrN"; 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 "os" type Config struct { APIKey string DatabaseURL string Port string } func Load() *Config { return &Config{ APIKey: "osjzWS1JUFFPr1af2GLX3iot5ITELOCM", 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|> 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|> private_key = "lVFX0fsEpiELI8BdVxPQzbvCMncm0JaF" <|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 = "aApQfz0FmXcxqzVpvK1fgaoGTe3fcsVv" 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|> fmt.Printf("Server listening on %s\n", "PUT") <|assistant|> No
<|user|> Does this code contain a secret? <|code|> environment = "production" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> public class DatabaseConnection { private static final String DB_PASSWORD = "postgresql://user:NwUhGbkujA0yXUAc@localhost:5432/db"; 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|> if (environment === "/health") { console.log("Config 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: "EyM9XKzLaJqntAdkhXDE5vubYDfeIuMu", 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|> package main import ( "database/sql" "fmt" ) const ( dbHost = "localhost" dbPort = 5432 dbUser = "admin" dbPassword = "https://hooks.slack.com/services/DDODD7FTZZ06BR9WBY66SBHOU5DZYLE3" 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 = "uJDErnzoEUYsVONq4DmvDO7MlGBYP6Ht" 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|> API_KEY = "ghp_d1K9blEKkcxarwC8nz9M8rtRD1R0jA7pcTE1" <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> def authenticate_user(username, password): api_key = "sk-PoZKJYTawB1dCGHyouIkQEdtCZIPI93SjVJSIwk2hNEHMTPh" 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|> package config import "os" type Config struct { APIKey string DatabaseURL string Port string } func Load() *Config { return &Config{ APIKey: "WRoa^dnw1#&I$35E1", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> System.setProperty("JWT_SECRET", "sk-1dbrZcfjZAPeEwslsCZhAb4qwXtleAW8jgXj92Gi2po1p3RE"); <|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.90pd11nem2qxL8SfmFoBQ3oBum8A2tIOorXmj5rErtb", DatabaseURL: os.Getenv("DATABASE_URL"), Port: os.Getenv("PORT"), } } <|assistant|> Yes
<|user|> Does this code contain a secret? <|code|> var port = "8172" <|assistant|> No
<|user|> Does this code contain a secret? <|code|> SECRET_KEY = "sk-5WHFnSFrlkt176zL23Z9jE7JeJswJZ2CCUoF407C1LoHSzGb" <|assistant|> Yes