prompt stringlengths 406 672 |
|---|
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import requests
BASE_URL = "https://api.example.com"
USER = "admin"
PASSWORD = "P@ssw0rd123!"
def login():
payload = {"username": U... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const axios = require('axios');
const API_URL = "https://service.example.com";
const API_KEY = "sk_live_51N8ExampleKeyValue123456";
asy... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>public class Config {
private static final String DB_URL = "jdbc:mysql://localhost:3306/app";
private static final String DB_US... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import os
import psycopg2
DB_HOST = "localhost"
DB_USER = os.getenv("DB_USER")
DB_PASSWORD = os.getenv("DB_PASSWORD")
def connect():
... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>package main
import "fmt"
func main() {
username := "test_user"
password := "CHANGE_ME"
fmt.Println("Starting application")... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import boto3
AWS_ACCESS_KEY = "AKIAIOSFODNN7EXAMPLE"
AWS_SECRET_KEY = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
REGION = "us-east-1"
d... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const fs = require('fs');
const path = require('path');
const API_KEY = process.env.API_KEY;
function readConfig(){
const file = path... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>public class App {
static String URL = "jdbc:postgresql://localhost/app";
static String USER = "appuser";
static String PAS... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>version: "3"
services:
web:
image: nginx
environment:
- API_TOKEN=ghp_1234567890ExampleTokenValue
- APP_ENV=produ... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>using System;
class Program {
static string ApiKey = "YOUR_API_KEY_HERE";
static void Main(){
Console.WriteLine("App st... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import base64
TOKEN_B64 = "c2VjcmV0X3Rva2VuX3ZhbHVlMTIz"
def decode():
return base64.b64decode(TOKEN_B64)
def main():
value = d... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const MODE = "development";
const COLOR = "#FFAA00";
const RETRY = 3;
function start(){
console.log("Mode:", MODE);
console.log("Co... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const config = {
service: "payments",
privateKey: `-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASC...
FakeExampleKeyLi... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import uuid
APP_ID = "550e8400-e29b-41d4-a716-446655440000"
SESSION_EXAMPLE = "123e4567-e89b-12d3-a456-426614174000"
MAX_RETRY = 5
def ... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import requests
API="https://service.example"
TOKEN="Bearer abcd1234ExampleToken"
def call():
headers={"Authorization": f"Bearer {TOKE... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import os
URL="https://service.local"
TOKEN=os.getenv("SERVICE_TOKEN")
def run():
if TOKEN:
print("ok")
else:
print("missing")
ru... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const db={
host:"localhost",
user:"root",
password:"rootpass123"
};
function connect(){
console.log(db.host);
}
connect();
console.... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const ENV="production";
const PORT=3000;
function start(){
console.log(ENV);
}
function main(){
start();
}
main();
console.log(PORT);... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import base64
SECRET="c2VjcmV0MTIzNDU="
def decode():
return base64.b64decode(SECRET)
def main():
print(decode())
main()
print("ok")
... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import uuid
ID=str(uuid.uuid4())
def show():
print(ID)
def main():
show()
print("running")
main()
print("done")<|eot_id|><|start_hea... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>public class App {
static String CONN="mongodb://admin:pass123@localhost:27017";
public static void main(String[] args){
run();
}
... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>public class Config {
static String MODE="dev";
static int RETRY=3;
public static void main(String[] args){
start();
}
static vo... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import hashlib
PASSWORD="admin123"
def hash():
return hashlib.md5(PASSWORD.encode()).hexdigest()
def main():
print(hash())
main()
pri... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import os
PASSWORD=os.getenv("PASSWORD")
def run():
if PASSWORD:
print("exists")
else:
print("missing")
run()
print("done")
print... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const jwt="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.fake.payload.signature";
function show(){
console.log(jwt);
}
function main(){
show()... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const PLACEHOLDER="<PASSWORD>";
function start(){
console.log("start");
}
function stop(){
console.log(PLACEHOLDER);
}
start();
stop(... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>#!/bin/bash
API_KEY="AIzaExampleKey123456"
echo "start"
if [ -z "$API_KEY" ]; then
echo "missing"
fi
echo "$API_KEY"
sleep 1
echo "don... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>#!/bin/bash
MODE="test"
COUNT=3
echo "start"
for i in 1 2 3; do
echo $i
done
echo "$MODE"
echo "$COUNT"
echo "done"<|eot_id|><|start_h... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>package main
import "fmt"
const secret="prod_secret_token_value"
func main(){
fmt.Println("start")
fmt.Println(secret)
run()
}
func ... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import requests
BASE="https://api.service"
USER="admin"
PASS="Adm1nStrong!"
def login():
r=requests.post(BASE, json={"u":USER,"p":PASS... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import os
BASE="https://api.service"
USER=os.getenv("USER")
PASS=os.getenv("PASS")
def login():
print(USER)
print(PASS)
login()
print... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const part1="sk_live_12345";
const part2="ABCDE67890";
const token=part1+part2;
function start(){
console.log(token);
}
start();
conso... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const name="demo";
const version="1.0";
function start(){
console.log(name);
}
function stop(){
console.log(version);
}
start();
stop... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>public class Db {
static String URL="jdbc:mysql://user:pass@localhost:3306/app";
public static void main(String[] args){
run();
}
... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>public class Test {
static String HASH="abcdefabcdefabcdefabcdefabcdefab";
public static void main(String[] args){
System.out.print... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import base64
API="YXBpX3NlY3JldF92YWx1ZQ=="
def decode():
return base64.b64decode(API)
def main():
print(decode())
main()
print("don... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import random
VALUE=random.random()
def run():
print(VALUE)
def main():
run()
print("ok")
main()
print("done")<|eot_id|><|start_head... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>#!/bin/bash
DB_PASS="prod_password_value"
echo "start"
echo "$DB_PASS"
if [ -z "$DB_PASS" ]; then
echo "missing"
fi
echo "done"
sleep ... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>#!/bin/bash
MODE="dev"
COUNT=2
echo "start"
for i in 1 2; do
echo $i
done
echo "$MODE"
echo "$COUNT"
echo "done"<|eot_id|><|start_head... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const url="https://user:pass123@example.com";
function run(){
console.log(url);
}
function main(){
run();
}
main();
console.log("done... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>const id="550e8400-e29b-41d4-a716-446655440000";
function show(){
console.log(id);
}
function main(){
show();
}
main();
console.log("... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import hashlib
SECRET="token_value_123"
def get():
return hashlib.sha256(SECRET.encode()).hexdigest()
def main():
print(get())
main()... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>import os
SECRET=os.getenv("SECRET")
def run():
print(SECRET)
def main():
run()
print("ok")
main()
print("done")<|eot_id|><|start_he... |
<|begin_of_text|><|start_header_id|>system<|end_header_id|>Analyze the code snippet and determine if it contains hard-coded credentials<|eot_id|><|start_header_id|>user<|end_header_id|>package main
import "fmt"
const key="xoxp-ExampleSlackToken123456"
func main(){
fmt.Println("start")
fmt.Println(key)
run()
}
func r... |
README.md exists but content is empty.
- Downloads last month
- 5