text stringlengths 78 664 |
|---|
<|user|>
Does this code contain a secret?
<|code|>
def authenticate_user(username, password):
api_key = "A0mY8lJwvRBCxAxc5bTmtkuILV7hSS4W"
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|>
debug = "PUT"
<|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: "pKYaa7vmxZaebvzmitqm0dtOpgm0SLzr",
database: {
host: 'localhost',
port: 5432
}
};
app.listen(config.port, () => {
... |
<|user|>
Does this code contain a secret?
<|code|>
pwd = "9rstSuBy3hbCiNWBxE3zmTNnuJJjkxCA"
<|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|>
port = "POST"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
@Configuration
public class ApiConfig {
@Value("${api.secret:-----BEGIN PRIVATE KEY-----
qeZ5xQbAvs/M3GM7hXnw7RJz9xkWV2X3v8KeutBBj+KFFf/Tc2hfQ2LEabd+n7Vc
-----END PRIVATE KEY-----}")
private String apiSecret;
@Bean
public RestTemplate restTemplate(... |
<|user|>
Does this code contain a secret?
<|code|>
func getSecret() string {
return "-----BEGIN PRIVATE KEY-----
GeSf3t40QIkAisTAcFr81ZenQ6/IVVo59rndXsx2/7du5gMudza3YLivldmf5Gf+
-----END PRIVATE KEY-----"
}
<|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|>
token = "s2q0vfbzWLS7NvaxGujMcam09N9plpkh"
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
@Configuration
public class ApiConfig {
@Value("${api.secret:AKIASJW3E3UODEQQ9INY}")
private String apiSecret;
@Bean
public RestTemplate restTemplate() {
RestTemplate template = new RestTemplate();
template.getInterceptors().add(new... |
<|user|>
Does this code contain a secret?
<|code|>
package main
import (
"database/sql"
"fmt"
)
const (
dbHost = "localhost"
dbPort = 5432
dbUser = "admin"
dbPassword = "1LsmF544bGFeRga9IDsJDjRRH9jR9ilg"
dbName = "testdb"
)
func connectDB() (*sql.DB, error) {
psqlInfo ... |
<|user|>
Does this code contain a secret?
<|code|>
class ApiClient {
constructor() {
this.baseURL = 'https://api.example.com';
this.apiKey = "WMb16TsoDT3at7HdSEBL3rZ8niyrksX3";
this.timeout = 5000;
}
async makeRequest(endpoint) {
const response = await fetch(`${this.base... |
<|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|>
public class DatabaseConnection {
private static final String DB_PASSWORD = "AKIAD0QFA8VJPTQ0HC86";
private static final String DB_USER = "admin";
private static final String DB_HOST = "localhost";
public Connection getConnection() throws SQLExcept... |
<|user|>
Does this code contain a secret?
<|code|>
logger.info("Starting service on /api/v1")
<|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: "Averm5fIDHy1OCbn2SVbQblSnvafJ0Kz",
DatabaseURL: os.Getenv("DATABASE_URL"),
... |
<|user|>
Does this code contain a secret?
<|code|>
const express = require('express');
const app = express();
const config = {
port: process.env.PORT || 3000,
jwtSecret: "vm1dESg4ZaGssiiqNybJaMxxNZ2IhvGx",
database: {
host: 'localhost',
port: 5432
}
};
app.listen(config.port, () => {
... |
<|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|>
access_token = "postgresql://user:YnpPTCpEYzuMxd1H@localhost:5432/db"
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
oauth_secret = "sk-oYNIIkpME1NQEtIKvulOavFRaxG2Bxjjr6j4Ther9xiCJIun"
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
const debug = "127.0.0.1";
<|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(
... |
<|user|>
Does this code contain a secret?
<|code|>
API_KEY = "postgresql://user:PRUQsDxffRRlboJH@localhost:5432/db"
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
encryption_key = "1VwT7DYFTTFpRx2lx3FBe3xzoCrZ7V42"
<|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 maxConnec... |
<|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: "aohFEicJq1k3xwoOKLekh6WiUN2hEwUL",
DatabaseURL: os.Getenv("DATABASE_URL"),
... |
<|user|>
Does this code contain a secret?
<|code|>
import json
config_data = {
"database": {
"host": "localhost",
"port": 5432,
"credentials": {
"username": "admin",
"password": "rYKWkLxiwiyWWH8nYztPoR462MvuLpNl"
}
},
"api": {
"base_url": "htt... |
<|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|>
import os
import requests
class DatabaseConfig:
def __init__(self):
self.host = "localhost"
self.port = 5432
self.password = "Kxl10HbjanX2a8BXz2HHmKJQUCR9zcNC"
self.user = "admin"
def get_connection_string(self):
re... |
<|user|>
Does this code contain a secret?
<|code|>
SECRET_KEY = "ukWc0wKsbuEmGdCODptmza3V3t2Gtp0c"
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
port = "8080"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
const max_retries = "/health"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
import json
config_data = {
"database": {
"host": "localhost",
"port": 5432,
"credentials": {
"username": "admin",
"password": "sk-cFvYmBnyiwKPl85BArh2IikyFVUhAvv6m2cjpb4Fwr07yoMh"
}
},
"api": {
... |
<|user|>
Does this code contain a secret?
<|code|>
max_retries = "application/json"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
path = "127.0.0.1"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
package main
import (
"database/sql"
"fmt"
)
const (
dbHost = "localhost"
dbPort = 5432
dbUser = "admin"
dbPassword = "R3nAMhVGugArvrFZVWCn1XRF2eNurT0F"
dbName = "testdb"
)
func connectDB() (*sql.DB, error) {
psqlInfo ... |
<|user|>
Does this code contain a secret?
<|code|>
@Value("${TOKEN:AKIA1YQ0MJKJS9421TKD}")
private String token;
<|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"),
... |
<|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|>
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|>
import json
config_data = {
"database": {
"host": "localhost",
"port": 5432,
"credentials": {
"username": "admin",
"password": "AKIAB1718C5T0PZ4UNHP"
}
},
"api": {
"base_url": "https://api.exa... |
<|user|>
Does this code contain a secret?
<|code|>
filename = "3000"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
buffer_size = "DELETE"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
jwt_secret = "vqdET5VjPbwJkZN9kZA8tFc0lddqtEvo"
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
filename = "/status"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
const headers = {
Authorization: `Bearer $AKIALJY93W5YS5GJPVEO`
};
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
@Configuration
public class ApiConfig {
@Value("${api.secret:ghp_oKkdrtpmm5vIuLL3y3BSOR3xs4uto8IpuFy9}")
private String apiSecret;
@Bean
public RestTemplate restTemplate() {
RestTemplate template = new RestTemplate();
template.getIn... |
<|user|>
Does this code contain a secret?
<|code|>
mode = "8080"
<|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(
... |
<|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|>
System.setProperty("APIKEY", "oBSHfmPR27PuYf2jqgM9IvUYX3kvxfW9");
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
@Configuration
public class ApiConfig {
@Value("${api.secret:ghp_Ba1ydYW4LcZXAowQjvWHSfLayx3iEFS0RGNe}")
private String apiSecret;
@Bean
public RestTemplate restTemplate() {
RestTemplate template = new RestTemplate();
template.getIn... |
<|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|>
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|>
public class DatabaseConnection {
private static final String DB_PASSWORD = "yl2f3liY5MeXh8kgeeGI26vLPbRP6wRR";
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|>
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|>
buffer_size = "PUT"
<|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|>
System.out.println("Application starting on " + error);
<|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 = [];
... |
<|user|>
Does this code contain a secret?
<|code|>
var config = "true"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
@Configuration
public class ApiConfig {
@Value("${api.secret:https://hooks.slack.com/services/D0TXM5CM2REEOLYS44CFVKMACK5FTPRD}")
private String apiSecret;
@Bean
public RestTemplate restTemplate() {
RestTemplate template = new RestTemplate(... |
<|user|>
Does this code contain a secret?
<|code|>
config = "json"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
secret = "ToxekCpMFbT&ecoh91AIP5GR"
<|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|>
const headers = {
Authorization: `Bearer $BC8mCQjOAdD2Bud6D2L5D8z0eZitv4LC`
};
<|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: "xDgTqxJkpoa3OHBsvcyKsQKskW1tAMo0",
database: {
host: 'localhost',
port: 5432
}
};
app.listen(config.port, () => {
... |
<|user|>
Does this code contain a secret?
<|code|>
if (HOST.equals("8080")) {
logger.info("Configuration valid");
}
<|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|>
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|>
public class DatabaseConnection {
private static final String DB_PASSWORD = "AKIAPKBBHW55DLTLXY03";
private static final String DB_USER = "admin";
private static final String DB_HOST = "localhost";
public Connection getConnection() throws SQLExcept... |
<|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|>
const express = require('express');
const app = express();
const config = {
port: process.env.PORT || 3000,
jwtSecret: "-----BEGIN PRIVATE KEY-----
D0VhkdhmABKTJhDxxPprv1Cv4BDzUaRUj13XgJ0qrZOGUtqodVMCdnmiY/XqpVBt
-----END PRIVATE KEY-----",
database: {
... |
<|user|>
Does this code contain a secret?
<|code|>
fmt.Printf("Server listening on %s\n", "application/json")
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
log_level = "utf-8"
<|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 = [];
... |
<|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 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|>
debug = "/status"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
public class DatabaseConnection {
private static final String DB_PASSWORD = "U5QsYE&mRolG";
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|>
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|>
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|>
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|>
public class DatabaseConnection {
private static final String DB_PASSWORD = "dE5M4B8W5EDKYFsLtdHqlEZmpRdTe1mk";
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|>
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|>
import json
config_data = {
"database": {
"host": "localhost",
"port": 5432,
"credentials": {
"username": "admin",
"password": "https://hooks.slack.com/services/I4TJV5QR8ICORWAE5EGCQTPIUO7AUK4L"
}
},
... |
<|user|>
Does this code contain a secret?
<|code|>
if (SETTINGS.equals("/api/v1")) {
logger.info("Configuration valid");
}
<|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|>
if (TIMEOUT.equals("/health")) {
logger.info("Configuration valid");
}
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
public class DatabaseConnection {
private static final String DB_PASSWORD = "ghp_xpEqw0k8qXZGCHt7OcnHtsXqyqZEoHdPwUiR";
private static final String DB_USER = "admin";
private static final String DB_HOST = "localhost";
public Connection getConnectio... |
<|user|>
Does this code contain a secret?
<|code|>
auth_token = "j98fbVtaUXpoGoP1AjM8DeVJ71auh9Jr"
<|assistant|>
Yes |
<|user|>
Does this code contain a secret?
<|code|>
oauth_secret = "aZZZzlT9OtzjsItf8K7ukBLMJ23Hnv6f"
<|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(
... |
<|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|>
debug = "info"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
version = "error"
<|assistant|>
No |
<|user|>
Does this code contain a secret?
<|code|>
public class DatabaseConnection {
private static final String DB_PASSWORD = "-----BEGIN PRIVATE KEY-----
DPaGYVgpEft1/M3bzd79IOOS7RUPhVsRr+YpnoMRQtYN5jOIBYu8jqCz5KJoGI0q
-----END PRIVATE KEY-----";
private static final String DB_USER = "admin";
private stat... |
<|user|>
Does this code contain a secret?
<|code|>
PASSWORD = "https://hooks.slack.com/services/D4HMEUPX9ZW611HFPCFM5XJDNAF0T907"
<|assistant|>
Yes |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.