filename stringlengths 4 198 | content stringlengths 25 939k | environment list | variablearg list | constarg list | variableargjson stringclasses 1
value | constargjson stringlengths 2 3.9k | lang stringclasses 3
values | constargcount float64 0 129 ⌀ | variableargcount float64 0 0 ⌀ | sentence stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|
manager/main.go | // Copyright 2020 IBM Corp.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"flag"
"os"
"strings"
"github.com/mesh-for-data/mesh-for-data/pkg/multicluster"
"github.com/mesh-for-data/mesh-for-data/pkg/multicluster/local"
"github.com/mesh-for-data/mesh-for-data/pkg/multicluster/razee"
"github.com/m... | [
"\"MULTICLUSTER_GROUP\"",
"\"RAZEE_URL\"",
"\"RAZEE_PASSWORD\"",
"\"RAZEE_URL\""
] | [] | [
"RAZEE_URL",
"RAZEE_PASSWORD",
"MULTICLUSTER_GROUP"
] | [] | ["RAZEE_URL", "RAZEE_PASSWORD", "MULTICLUSTER_GROUP"] | go | 3 | 0 | |
account/internal/dao/init.go | package dao
import (
"fmt"
"os"
"time"
configs "github.com/mike955/zebra/account/configs"
"gorm.io/driver/mysql"
"gorm.io/gorm"
)
var DB *gorm.DB
type CommonTimeModel struct {
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
func Init(config configs.Mysql) {
var err error... | [
"\"MYSQL_ADDR\"",
"\"MYSQL_PORT\"",
"\"MYSQL_ADDR\"",
"\"MYSQL_PORT\"",
"\"MYSQL_USERNAME\"",
"\"MYSQL_USERNAME\"",
"\"MYSQL_PASSWORD\"",
"\"MYSQL_PASSWORD\"",
"\"MYSQL_DATABASE\"",
"\"MYSQL_DATABASE\""
] | [] | [
"MYSQL_PASSWORD",
"MYSQL_PORT",
"MYSQL_USERNAME",
"MYSQL_ADDR",
"MYSQL_DATABASE"
] | [] | ["MYSQL_PASSWORD", "MYSQL_PORT", "MYSQL_USERNAME", "MYSQL_ADDR", "MYSQL_DATABASE"] | go | 5 | 0 | |
salt/modules/cmdmod.py | # -*- coding: utf-8 -*-
'''
A module for shelling out.
Keep in mind that this module is insecure, in that it can give whomever has
access to the master root execution access to all salt minions.
'''
from __future__ import absolute_import
# Import python libs
import functools
import glob
import json
import logging
imp... | [] | [] | [] | [] | [] | python | 0 | 0 | |
connect.go | package goproxy
import (
"bufio"
"bytes"
"crypto/tls"
"errors"
"io"
"io/ioutil"
"net"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"sync"
"sync/atomic"
)
type ConnectActionLiteral int
const (
ConnectAccept = iota
ConnectReject
ConnectMitm
ConnectHijack
ConnectHTTPMitm
ConnectProxyAuthHijack
)
va... | [
"\"HTTPS_PROXY\"",
"\"https_proxy\""
] | [] | [
"HTTPS_PROXY",
"https_proxy"
] | [] | ["HTTPS_PROXY", "https_proxy"] | go | 2 | 0 | |
tests/aci-e2e/e2e-aci_test.go | /*
Copyright 2020 Docker Compose CLI authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | [
"\"AZURE_CLIENT_ID\"",
"\"AZURE_CLIENT_SECRET\"",
"\"AZURE_TENANT_ID\""
] | [] | [
"AZURE_CLIENT_ID",
"AZURE_CLIENT_SECRET",
"AZURE_TENANT_ID"
] | [] | ["AZURE_CLIENT_ID", "AZURE_CLIENT_SECRET", "AZURE_TENANT_ID"] | go | 3 | 0 | |
backend/psql/integration_test.go | package psql
import (
"database/sql"
"flag"
"os"
"testing"
"euphoria.io/heim/backend"
"euphoria.io/heim/cluster"
"euphoria.io/heim/proto"
"github.com/rubenv/sql-migrate"
)
var dsn = flag.String("dsn", "postgres://heimtest:heimtest@localhost/heimtest", "")
func TestBackend(t *testing.T) {
dsn := *dsn
if e... | [
"\"DSN\""
] | [] | [
"DSN"
] | [] | ["DSN"] | go | 1 | 0 | |
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/general/plugins/modules/oneandone_monitoring_policy.py | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | [] | [] | [
"ONEANDONE_AUTH_TOKEN",
"ONEANDONE_API_URL"
] | [] | ["ONEANDONE_AUTH_TOKEN", "ONEANDONE_API_URL"] | python | 2 | 0 | |
scripts/ltr_msmarco/ltr_inference.py | #
# Pyserini: Reproducible IR research with sparse and dense representations
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [] | [] | [
"ANSERINI_CLASSPATH"
] | [] | ["ANSERINI_CLASSPATH"] | python | 1 | 0 | |
base/wsgi.py | """
WSGI config for base base.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [] | [] | [] | [] | [] | python | 0 | 0 | |
cni-plugin/tests/calico_cni_k8s_test.go | // Copyright (c) 2015-2021 Tigera, Inc. All rights reserved.
package main_test
import (
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"math/rand"
"net"
"os"
"os/exec"
"regexp"
"strings"
"syscall"
"time"
"github.com/containernetworking/cni/pkg/types/current"
"github.com/containernetworking/plugins/p... | [
"\"KUBECONFIG\"",
"\"CNI_SPEC_VERSION\"",
"\"ETCD_IP\"",
"\"DATASTORE_TYPE\"",
"\"DATASTORE_TYPE\"",
"\"DATASTORE_TYPE\"",
"\"DATASTORE_TYPE\"",
"\"DATASTORE_TYPE\"",
"\"ETCD_IP\"",
"\"DATASTORE_TYPE\"",
"\"ETCD_IP\"",
"\"DATASTORE_TYPE\"",
"\"ETCD_IP\"",
"\"DATASTORE_TYPE\"",
"\"ETCD_IP... | [] | [
"CNI_SPEC_VERSION",
"BIN",
"KUBECONFIG",
"PLUGIN",
"DATASTORE_TYPE",
"ETCD_IP"
] | [] | ["CNI_SPEC_VERSION", "BIN", "KUBECONFIG", "PLUGIN", "DATASTORE_TYPE", "ETCD_IP"] | go | 6 | 0 | |
api/smtp_email_notification.go | package main
import (
"bytes"
"fmt"
ht "html/template"
"os"
tt "text/template"
)
type emailNotificationText struct {
emailNotification
Html ht.HTML
}
type emailNotificationPlugs struct {
Origin string
Kind string
Subject string
UnsubscribeSecretHex string
Notifi... | [
"\"SMTP_FROM_ADDRESS\"",
"\"STATIC\"",
"\"STATIC\"",
"\"ORIGIN\""
] | [] | [
"ORIGIN",
"SMTP_FROM_ADDRESS",
"STATIC"
] | [] | ["ORIGIN", "SMTP_FROM_ADDRESS", "STATIC"] | go | 3 | 0 | |
skbuild/setuptools_wrap.py | """This module provides functionality for wrapping key infrastructure components
from distutils and setuptools.
"""
from __future__ import print_function
import argparse
import copy
import json
import os
import os.path
import platform
import stat
import sys
import warnings
from contextlib import contextmanager
# pyl... | [] | [] | [
"PYTHONNOUSERSITE",
"PYTHONPATH"
] | [] | ["PYTHONNOUSERSITE", "PYTHONPATH"] | python | 2 | 0 | |
coap-gateway/test/test.go | package service
import (
"context"
"os"
"sync"
"testing"
"time"
"github.com/plgd-dev/hub/coap-gateway/service"
"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/test/config"
"github.com/stretchr/testify/require"
)
func MakeConfig(t *testing.T) service.Config {
var cfg service.Config
cfg.Log.DumpC... | [
"\"TEST_COAP_GW_CERT_FILE\"",
"\"TEST_COAP_GW_KEY_FILE\""
] | [] | [
"TEST_COAP_GW_KEY_FILE",
"TEST_COAP_GW_CERT_FILE"
] | [] | ["TEST_COAP_GW_KEY_FILE", "TEST_COAP_GW_CERT_FILE"] | go | 2 | 0 | |
addrmgr/knownaddress_test.go | // Copyright (c) 2013-2015 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package addrmgr_test
import (
"math"
"testing"
"time"
"github.com/aBitcoinDiamond/addrmgr"
"github.com/aBitcoinDiamond/wire"
)
func TestChance(t *testing.T) {
n... | [] | [] | [] | [] | [] | go | null | null | null |
generate_thumbnails.py | import os
import tempfile
from pathlib import Path
from PIL import Image
from google.cloud import storage
from retrying import retry
THUMBNAIL_SIZE = int(os.getenv('THUMBNAIL_SIZE', '128'))
THUMBNAIL_MAX_DIM = THUMBNAIL_SIZE, THUMBNAIL_SIZE
THUMBNAIL_SUFFIX = f'_thumb{THUMBNAIL_SIZE}'
SUPPORTED_FILE_EXTENSIONS = {'jp... | [] | [] | [
"THUMBNAIL_SIZE"
] | [] | ["THUMBNAIL_SIZE"] | python | 1 | 0 | |
run.py | # /usr/bin/env python3
"""Benchmark of handling PDB files comparing multiple libraries."""
import argparse
import glob
import os
import re
import subprocess
import sys
from pathlib import Path
def gather_libs(selected_libs):
libs = []
for path in sorted(glob.iglob("bench/*")):
lib = os.path.basename... | [] | [] | [
"SCHRODINGER"
] | [] | ["SCHRODINGER"] | python | 1 | 0 | |
server_scripts/odb.py | #!/usr/bin/env python
import sys
import traceback
import argparse
import os
from subprocess import Popen, PIPE, call
#
# This script copies new Midas datafiles into a CDMS series-number structure
#
def odb(odbcmd, odbkey, val):
#d = os.environ.copy()
#d['MIDASSYS'] = '/home1/aroberts/cdms_midas.git'
#d['MID... | [] | [] | [] | [] | [] | python | 0 | 0 | |
sm_project/asgi.py | """
ASGI config for sm_project project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [] | [] | [] | [] | [] | python | 0 | 0 | |
venv/lib/python3.8/site-packages/pyls/plugins/flake8_lint.py | /home/runner/.cache/pip/pool/e9/21/a8/ddaeea548c916834422e78d57a0db4b7d09a1722dc1ac04eac30a6fdbd | [] | [] | [] | [] | [] | python | null | null | null |
test/unit/test_s3_utils.py | # Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the 'license' fil... | [] | [] | [
"S3_USE_HTTPS",
"S3_REGION",
"TF_CPP_MIN_LOG_LEVEL"
] | [] | ["S3_USE_HTTPS", "S3_REGION", "TF_CPP_MIN_LOG_LEVEL"] | python | 3 | 0 | |
pkg/gds/secret_test.go | package gds_test
import (
"context"
"crypto/x509"
"io/ioutil"
"os"
"testing"
"github.com/stretchr/testify/require"
"github.com/trisacrypto/directory/pkg/gds"
"github.com/trisacrypto/directory/pkg/gds/config"
"github.com/trisacrypto/trisa/pkg/trust"
)
// Six environment variables are required to run this tes... | [
"\"GDS_TEST_GOOGLE_SECRETS\"",
"\"GOOGLE_APPLICATION_CREDENTIALS\"",
"\"GOOGLE_PROJECT_NAME\"",
"\"TRISA_TEST_FILE\"",
"\"TRISA_TEST_PASSWORD\"",
"\"TRISA_TEST_CERT\""
] | [] | [
"GOOGLE_PROJECT_NAME",
"GOOGLE_APPLICATION_CREDENTIALS",
"GDS_TEST_GOOGLE_SECRETS",
"TRISA_TEST_PASSWORD",
"TRISA_TEST_CERT",
"TRISA_TEST_FILE"
] | [] | ["GOOGLE_PROJECT_NAME", "GOOGLE_APPLICATION_CREDENTIALS", "GDS_TEST_GOOGLE_SECRETS", "TRISA_TEST_PASSWORD", "TRISA_TEST_CERT", "TRISA_TEST_FILE"] | go | 6 | 0 | |
4.30/code/three_nodes_bw.py | #!/usr/bin/python
import os
import sys
import glob
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.link import TCLink
from mininet.cli import CLI
script_deps = [ 'ethtool' ]
def check_scripts():
dir = os.path.abspath(os.path.dirname(sys.argv[0]))
for fname in glob.glob(dir + ... | [] | [] | [
"PATH"
] | [] | ["PATH"] | python | 1 | 0 | |
neutronclient/tests/unit/test_shell.py | # Copyright (C) 2013 Yahoo! Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | [] | [] | [] | [] | [] | python | 0 | 0 | |
server.py | from flask import Flask, request
import json
import cloudinary
import cloudinary.uploader
import string
import random
import luckyface
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
# cloudinary.config(
# cloud_name=os.environ['CLOUDINARY_CLOUD_NAME'],
# api_key=os.environ['CLOUDINARY_API_KEY'],
... | [] | [] | [
"CLOUDINARY_API_KEY",
"CLOUDINARY_API_SECRET",
"CLOUDINARY_CLOUD_NAME"
] | [] | ["CLOUDINARY_API_KEY", "CLOUDINARY_API_SECRET", "CLOUDINARY_CLOUD_NAME"] | python | 3 | 0 | |
loadgen/generate_load.py | import barnum, random, time, json, requests, math, os
from mysql.connector import connect, Error
from kafka import KafkaProducer
# CONFIG
userSeedCount = 10000
itemSeedCount = 1000
purchaseGenCount = 500000
purchaseGenEveryMS = 100
pageviewMultiplier = 75 # Translates to 75x purchases, currently 750/... | [] | [] | [
"KAFKA_ADDR"
] | [] | ["KAFKA_ADDR"] | python | 1 | 0 | |
server/src/test/java/umm3601/note/NoteControllerSpec.java | package umm3601.note;
import static com.mongodb.client.model.Filters.eq;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
... | [] | [] | [] | [] | [] | java | 0 | 0 | |
libbeat/outputs/elasticsearch/client_proxy_test.go | // Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... | [
"\"TEST_START_CLIENT\"",
"\"TEST_SERVER_URL\"",
"\"TEST_PROXY_URL\"",
"\"TEST_PROXY_DISABLE\""
] | [] | [
"TEST_PROXY_URL",
"TEST_START_CLIENT",
"TEST_PROXY_DISABLE",
"TEST_SERVER_URL"
] | [] | ["TEST_PROXY_URL", "TEST_START_CLIENT", "TEST_PROXY_DISABLE", "TEST_SERVER_URL"] | go | 4 | 0 | |
python/paddle/fluid/framework.py | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [] | [] | [
"FLAGS_selected_gpus",
"CPU_NUM"
] | [] | ["FLAGS_selected_gpus", "CPU_NUM"] | python | 2 | 0 | |
request_handler/appconfig.py | #!/usr/bin/env python
# coding: utf-8
import logging.config
import os
# Конфигурация базы данных
DB_CONFIG = {
'username': 'root',
'password': os.environ.get('MYSQL_TRADING_PASS'),
'host': '127.0.0.1',
'dbname': 'trading_db',
}
# Конфигурация журналирования
LOGGING = {
'version': 1,
'format... | [] | [] | [
"MYSQL_TRADING_PASS",
"MAIL_USERNAME",
"MAIL_PASSWORD"
] | [] | ["MYSQL_TRADING_PASS", "MAIL_USERNAME", "MAIL_PASSWORD"] | python | 3 | 0 | |
scripts/aws/create-kubernetes-cluster.go | package main
import (
"bytes"
"io/ioutil"
"log"
"os"
"os/exec"
"path"
"runtime"
"strings"
"time"
)
import (
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go... | [
"\"KUBECONFIG\"",
"\"HOME\"",
"\"NSM_AWS_SERVICE_SUFFIX\""
] | [] | [
"HOME",
"NSM_AWS_SERVICE_SUFFIX",
"KUBECONFIG"
] | [] | ["HOME", "NSM_AWS_SERVICE_SUFFIX", "KUBECONFIG"] | go | 3 | 0 | |
HDP/HDP/asgi.py | """
ASGI config for HDP project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [] | [] | [] | [] | [] | python | 0 | 0 | |
playbooks/roles/createresources/molecule/fiaas01-debian10/tests/test_phppools.py | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_pool_config(host):
config = host.file('/etc/php/7.3/fpm/pool.d/vhost1.conf')
assert config.exists
assert config.contains('p... | [] | [] | [
"MOLECULE_INVENTORY_FILE"
] | [] | ["MOLECULE_INVENTORY_FILE"] | python | 1 | 0 | |
build/android/run_tests.py | #!/usr/bin/env python
#
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs all the native unit tests.
1. Copy over test binary to /data/local on device.
2. Resources: chrome/unit_tests requires r... | [] | [] | [
"DISPLAY"
] | [] | ["DISPLAY"] | python | 1 | 0 | |
Shortener/wsgi.py | """
WSGI config for Shortener project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [] | [] | [] | [] | [] | python | 0 | 0 | |
dcr/scripts/orchestrator/set_environment.py | import json
import os.path
from dcr.scenario_utils.logging_utils import get_logger
logger = get_logger("dcr.script.orchestrator.set_environment")
add_variable_to_pipeline = '##vso[task.setvariable variable={name};]{value}'
def _check_if_file_in_scenario_and_set_variable(file_name: str, name: str, true_value: str, f... | [] | [] | [
"BUILD_SOURCESDIRECTORY"
] | [] | ["BUILD_SOURCESDIRECTORY"] | python | 1 | 0 | |
src/main/java/net/sourceforge/myvd/test/util/StartOpenLDAP.java | /*
* Copyright 2008 Marc Boorshtein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | [
"\"SLAPD_PATH\"",
"\"SLAPD_PATH\"",
"\"DEBUG_SERVER\"",
"\"TMP_DIR\"",
"\"PROJ_DIR\"",
"\"SCHEMA_DIR\"",
"\"TMP_DIR\"",
"\"PROJ_DIR\""
] | [] | [
"DEBUG_SERVER",
"TMP_DIR",
"SLAPD_PATH",
"PROJ_DIR",
"SCHEMA_DIR"
] | [] | ["DEBUG_SERVER", "TMP_DIR", "SLAPD_PATH", "PROJ_DIR", "SCHEMA_DIR"] | java | 5 | 0 | |
tests/unit/modules/test_cmdmod.py | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Nicole Thomas <nicole@saltstack.com>`
'''
# Import python libs
from __future__ import absolute_import, print_function, unicode_literals
import os
import sys
import tempfile
# Import Salt Libs
import salt.utils.platform
import salt.modules.cmdmod as cmdmod
from salt... | [] | [] | [] | [] | [] | python | 0 | 0 | |
store/fuzz/fuzz.go | package fuzz
import (
"bytes"
"encoding/binary"
"fmt"
"os"
"strconv"
"sync"
"github.com/coinexchain/randsrc"
"github.com/smartbch/moeingads"
"github.com/smartbch/moeingads/datatree"
"github.com/smartbch/moeingads/store"
"github.com/smartbch/moeingads/store/rabbit"
storetypes "github.com/smartbch/moeingad... | [
"\"RANDFILE\"",
"\"RANDCOUNT\""
] | [] | [
"RANDCOUNT",
"RANDFILE"
] | [] | ["RANDCOUNT", "RANDFILE"] | go | 2 | 0 | |
ReefberryPi/wsgi.py | """
WSGI config for ReefberryPi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ReefberryPi.settings")
from djang... | [] | [] | [] | [] | [] | python | 0 | 0 | |
go/kbfs/libkbfs/init.go | // Copyright 2016 Keybase Inc. All rights reserved.
// Use of this source code is governed by a BSD
// license that can be found in the LICENSE file.
package libkbfs
import (
"context"
"errors"
"flag"
"fmt"
"os"
"os/signal"
"path/filepath"
"runtime/pprof"
"strings"
"syscall"
"time"
"github.com/keybase/cl... | [
"\"KBFS_DEFAULT_ENABLE_JOURNAL_VALUE\"",
"\"KBFS_DEBUG\""
] | [] | [
"KBFS_DEBUG",
"KBFS_DEFAULT_ENABLE_JOURNAL_VALUE"
] | [] | ["KBFS_DEBUG", "KBFS_DEFAULT_ENABLE_JOURNAL_VALUE"] | go | 2 | 0 | |
backend/conf/conf.go | package conf
import (
"fmt"
"github.com/joho/godotenv"
"os"
)
func Init() {
_ = godotenv.Load("conf/dev.env")
fmt.Println("name: ", os.Getenv("name"))
fmt.Println("age: ", os.Getenv("age"))
fmt.Println("city: ", os.Getenv("city"))
}
| [
"\"name\"",
"\"age\"",
"\"city\""
] | [] | [
"age",
"city",
"name"
] | [] | ["age", "city", "name"] | go | 3 | 0 | |
tutorials/assets/tensorflow_to_onnx_example.py | # SPDX-License-Identifier: Apache-2.0
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LIC... | [] | [] | [
"TF_CPP_MIN_LOG_LEVEL"
] | [] | ["TF_CPP_MIN_LOG_LEVEL"] | python | 1 | 0 | |
test/e2e/save_test.go | package integration
import (
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"github.com/containers/podman/v2/pkg/rootless"
. "github.com/containers/podman/v2/test/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Podman save", func() {
var (
tempdir stri... | [
"\"GNUPGHOME\""
] | [] | [
"GNUPGHOME"
] | [] | ["GNUPGHOME"] | go | 1 | 0 | |
tests/disputes_test.go | package tests
import (
"os"
"testing"
"github.com/HRInnovationLab/adyen-go-api-library/v5/src/adyen"
"github.com/HRInnovationLab/adyen-go-api-library/v5/src/checkout"
"github.com/HRInnovationLab/adyen-go-api-library/v5/src/common"
"github.com/HRInnovationLab/adyen-go-api-library/v5/src/disputes"
"github.com/HR... | [
"\"ADYEN_MERCHANT\"",
"\"ADYEN_API_KEY\""
] | [] | [
"ADYEN_MERCHANT",
"ADYEN_API_KEY"
] | [] | ["ADYEN_MERCHANT", "ADYEN_API_KEY"] | go | 2 | 0 | |
vendor/github.com/hashicorp/go-getter/get_git_test.go | package getter
import (
"encoding/base64"
"io/ioutil"
"net/url"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
)
var testHasGit bool
func init() {
if _, err := exec.LookPath("git"); err == nil {
testHasGit = true
}
}
func TestGitGetter_impl(t *testing.T) {
var _ Getter = new(GitGetter)
}... | [
"\"PATH\""
] | [] | [
"PATH"
] | [] | ["PATH"] | go | 1 | 0 | |
bin/sonnet_sad_multi.py | #!/usr/bin/env python
# Copyright 2017 Calico LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agr... | [] | [] | [
"BASENJIDIR"
] | [] | ["BASENJIDIR"] | python | 1 | 0 | |
samples/go/main.go | package main
import (
"encoding/json"
"fmt"
"log"
rand2 "math/rand"
"net/http"
"os"
)
func main() {
port := "8080"
if v := os.Getenv("PORT"); v != "" {
port = v
}
http.HandleFunc("/", handler)
log.Printf("starting server on port :%s", port)
err := http.ListenAndServe(":"+port, nil)
log.Fatalf("http li... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
warrior_modules/warrior_netconf/warriornetconf/ProductDrivers/netconf_driver.py | '''
Copyright 2017, Fujitsu Network Communications, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | [] | [] | [] | [] | [] | python | null | null | null |
core/src/main/java/io/questdb/log/LogFactory.java | /*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... | [
"\"QDB_LOG_\" + key.replace('.', '_'"
] | [] | [
"QDB_LOG_\" + key.replace('.', '_"
] | [] | ["QDB_LOG_\" + key.replace('.', '_"] | java | 1 | 0 | |
venv/lib/python2.7/site-packages/pyramid/authentication.py | import binascii
from codecs import utf_8_decode
from codecs import utf_8_encode
from collections import namedtuple
import hashlib
import base64
import re
import time as time_mod
import warnings
from zope.interface import implementer
from webob.cookies import CookieProfile
from pyramid.compat import (
long,
t... | [] | [] | [
"REMOTE_ADDR"
] | [] | ["REMOTE_ADDR"] | python | 1 | 0 | |
ppo/main.py | import copy
import glob
import torch.optim as optim
from torch.autograd import Variable
from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler
from arguments import get_args
from model import CNNPolicy, MLPPolicy
from storage import RolloutStorage
from usb_cam_env import *
ENV_IMG_W = 640
ENV_IMG_H =... | [] | [] | [
"OMP_NUM_THREADS"
] | [] | ["OMP_NUM_THREADS"] | python | 1 | 0 | |
src/runtime/pprof/pprof_test.go | // Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !nacl,!js
package pprof
import (
"bytes"
"context"
"fmt"
"internal/testenv"
"io"
"io/ioutil"
"math/big"
"os"
"os/exec"
"regexp"
"runtime"... | [
"\"IN_QEMU\""
] | [] | [
"IN_QEMU"
] | [] | ["IN_QEMU"] | go | 1 | 0 | |
setup.py | import os
import re
import sys
from setuptools import setup
# Utility function to read from file.
def fread(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version():
VERSIONFILE="curator/_version.py"
verstrline = fread(VERSIONFILE).strip()
vsre = r"^__version__ = ['... | [] | [] | [
"CURATOR_BUILD_NUMBER"
] | [] | ["CURATOR_BUILD_NUMBER"] | python | 1 | 0 | |
grl/rl_apps/psro/poker_utils.py | import os
from typing import Dict, Callable, List, Tuple, Union
import deepdish
import numpy as np
import pyspiel
import ray
from open_spiel.python import rl_environment
from open_spiel.python.algorithms.exploitability import exploitability
from open_spiel.python.policy import Policy as OpenSpielPolicy, tabular_policy... | [] | [] | [
"CACHE_PSRO_TABULAR_POLICIES"
] | [] | ["CACHE_PSRO_TABULAR_POLICIES"] | python | 1 | 0 | |
pkg/sources/resolver.go | package sources
import (
"os"
"github.com/JonathanNasc/toroburro/pkg/sources/sources_domain"
"github.com/JonathanNasc/toroburro/pkg/sources/sources_services"
)
type SourcesByCode map[string]sources_domain.Source
var inMemorySources SourcesByCode
func Resolve(sourceName string) sources_domain.Source {
setInMemo... | [
"\"GO_ENV\""
] | [] | [
"GO_ENV"
] | [] | ["GO_ENV"] | go | 1 | 0 | |
api/cmd/auth-proxy/main.go | package main
import (
"bytes"
"context"
"crypto/sha256"
"encoding/base64"
"encoding/json"
"fmt"
"github.com/coreos/go-oidc"
"github.com/go-logr/logr"
"github.com/kalmhq/kalm/api/auth_proxy"
"github.com/kalmhq/kalm/api/log"
"github.com/kalmhq/kalm/api/server"
"github.com/kalmhq/kalm/api/utils"
"github.com/... | [
"\"KALM_OIDC_CLIENT_ID\"",
"\"KALM_OIDC_CLIENT_SECRET\"",
"\"KALM_OIDC_PROVIDER_URL\"",
"\"KALM_OIDC_AUTH_PROXY_URL\""
] | [] | [
"KALM_OIDC_CLIENT_ID",
"KALM_OIDC_AUTH_PROXY_URL",
"KALM_OIDC_PROVIDER_URL",
"KALM_OIDC_CLIENT_SECRET"
] | [] | ["KALM_OIDC_CLIENT_ID", "KALM_OIDC_AUTH_PROXY_URL", "KALM_OIDC_PROVIDER_URL", "KALM_OIDC_CLIENT_SECRET"] | go | 4 | 0 | |
docs/conf.py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or module... | [] | [] | [
"READTHEDOCS"
] | [] | ["READTHEDOCS"] | python | 1 | 0 | |
integration/client/client_windows_test.go | /*
Copyright The containerd Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | [
"\"programfiles\"",
"\"programfiles\""
] | [] | [
"programfiles"
] | [] | ["programfiles"] | go | 1 | 0 | |
src/util/helper/libaws/dynamo.go | package libaws
import (
"encoding/json"
"log"
"os"
"sync"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute"
"github.com/aws/aws-sdk-go/service/dynamodb/expression"
dynamoEntyty "... | [
"\"AWS_DYNAMO_TABLE\"",
"\"AWS_DYNAMO_TABLE\"",
"\"AWS_DYNAMO_TABLE\"",
"\"AWS_DYNAMO_TABLE\"",
"\"AWS_DYNAMO_TABLE\"",
"\"AWS_DYNAMO_TABLE\""
] | [] | [
"AWS_DYNAMO_TABLE"
] | [] | ["AWS_DYNAMO_TABLE"] | go | 1 | 0 | |
vendor/github.com/aws/aws-sdk-go/aws/version.go | // Package aws provides core functionality for making requests to AWS services.
package aws
// SDKName is the name of this AWS SDK
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
const SDKVersion = "1.22.3"
| [] | [] | [] | [] | [] | go | null | null | null |
vendor/cmd/go/internal/work/security.go | // Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Checking of compiler and linker flags.
// We must avoid flags like -fplugin=, which can allow
// arbitrary code execution during the build.
// Do not make ch... | [
"\"CGO_\" + name + \"_ALLOW\"",
"\"CGO_\" + name + \"_DISALLOW\""
] | [] | [
"CGO_\" + name + \"_ALLOW",
"CGO_\" + name + \"_DISALLOW"
] | [] | ["CGO_\" + name + \"_ALLOW", "CGO_\" + name + \"_DISALLOW"] | go | 2 | 0 | |
2021/quals/hw-parking/src/game.py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [] | [] | [
"DRAW",
"FLAG"
] | [] | ["DRAW", "FLAG"] | python | 2 | 0 | |
tests/jobs/test_scheduler_job.py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [] | [] | [
"AIRFLOW__CORE__DAGS_FOLDER"
] | [] | ["AIRFLOW__CORE__DAGS_FOLDER"] | python | 1 | 0 | |
geoextent/__main__.py | import argparse
import logging
import os
import sys
import zipfile
from . import __version__ as current_version
from .lib import extent
from .lib import helpfunctions as hf
logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger("geoextent")
help_description = '''
geoextent is a Python library for extra... | [] | [] | [
"GEOEXTENT_DEBUG"
] | [] | ["GEOEXTENT_DEBUG"] | python | 1 | 0 | |
utils/TrainNetwork.py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
import tensorflow.contrib.slim as slim
import numpy as np
import cv2
import time
from datetime import datetime
import sys
from .plotters import *
from .readers import *
from .transformer import *
from .models import *
from .datasets import *
fr... | [] | [] | [
"TF_CPP_MIN_LOG_LEVEL"
] | [] | ["TF_CPP_MIN_LOG_LEVEL"] | python | 1 | 0 | |
services/datastore/endpoints/endpoints.go | package endpoints
import (
"compress/gzip"
"context"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"strconv"
"time"
"github.com/IamCathal/neo/services/datastore/app"
"github.com/IamCathal/neo/services/datastore/configuration"
"github.com/IamCathal/neo/services/datastore/controller"
"github.com/IamCathal/ne... | [
"\"AUTH_KEY\""
] | [] | [
"AUTH_KEY"
] | [] | ["AUTH_KEY"] | go | 1 | 0 | |
scripts/get_repos.py | import os
from github_client.client import GitHubClient
from utils.painter import paint
if __name__ == '__main__':
user = os.environ['user_name']
password = os.environ['user_password']
client = GitHubClient(user, password)
client.connect()
repositories = client.get_repositories()
user = client.... | [] | [] | [
"user_password",
"user_name"
] | [] | ["user_password", "user_name"] | python | 2 | 0 | |
Drivers/Community/rp_linux.l2.switch.driver/linux.switch.driver.py | import sys
import os
import paramiko
import time
import logging
import json
import re
# create logger and set debugging level
logger = logging.getLogger()
logger.setLevel(logging.WARNING)
#logger.setLevel(logging.DEBUG)
# create console handler and set level
ch = logging.StreamHandler()
# create formatter
formatter =... | [] | [] | [
"VELOCITY_PARAM_property_username",
"VELOCITY_PARAM_call_' + str(callNumber",
"VELOCITY_PARAM_call_count",
"VELOCITY_PARAM_call_2",
"VELOCITY_PARAM_property_ipAddress",
"VELOCITY_PARAM_call_1",
"VELOCITY_PARAM_property_password",
"VELOCITY_PARAM_call_0"
] | [] | ["VELOCITY_PARAM_property_username", "VELOCITY_PARAM_call_' + str(callNumber", "VELOCITY_PARAM_call_count", "VELOCITY_PARAM_call_2", "VELOCITY_PARAM_property_ipAddress", "VELOCITY_PARAM_call_1", "VELOCITY_PARAM_property_password", "VELOCITY_PARAM_call_0"] | python | 8 | 0 | |
vendor/github.com/CapChrisCap/go-color/color.go | package color
import (
"fmt"
"io"
"os"
"strconv"
"strings"
"sync"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
)
var (
// NoColor defines if the output is colorized or not. It's dynamically set to
// false or true based on the stdout's file descriptor referring to a terminal
// or not. Thi... | [
"\"FORCE_COLOR\"",
"\"TERM\""
] | [] | [
"TERM",
"FORCE_COLOR"
] | [] | ["TERM", "FORCE_COLOR"] | go | 2 | 0 | |
test/integration_test.go | package test
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"math"
"math/rand"
"os"
"path"
"path/filepath"
"regexp"
"runtime"
"sort"
"strconv"
"strings"
"testing"
"time"
"cloud.google.com/go/storage"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"gith... | [
"\"HOME\"",
"\"GOOGLE_CLOUD_PROJECT\"",
"\"GOOGLE_CLOUD_PROJECT\""
] | [] | [
"HOME",
"GOOGLE_CLOUD_PROJECT"
] | [] | ["HOME", "GOOGLE_CLOUD_PROJECT"] | go | 2 | 0 | |
internal/client.go | /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this fi... | [
"\"com.rocketmq.sendMessageWithVIPChannel\"",
"\"com.rocketmq.sendMessageWithVIPChannel\""
] | [] | [
"com.rocketmq.sendMessageWithVIPChannel"
] | [] | ["com.rocketmq.sendMessageWithVIPChannel"] | go | 1 | 0 | |
hmsclient/hmsclient_test.go | // Copyright © 2018 Alex Kolbasov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | [
"\"HMS_SERVER\"",
"\"HMS_PORT\"",
"\"HMS_TEST_DATABASE\"",
"\"HADOOP_USER_NAME\""
] | [] | [
"HMS_PORT",
"HADOOP_USER_NAME",
"HMS_TEST_DATABASE",
"HMS_SERVER"
] | [] | ["HMS_PORT", "HADOOP_USER_NAME", "HMS_TEST_DATABASE", "HMS_SERVER"] | go | 4 | 0 | |
modules/python/package/setup.py | import os
import sys
import platform
import setuptools
SCRIPT_DIR=os.path.dirname(os.path.abspath(__file__))
def main():
os.chdir(SCRIPT_DIR)
package_name = 'opencv'
package_version = os.environ.get('OPENCV_VERSION', '4.5.1') # TODO
long_description = 'Open Source Computer Vision Library Python bin... | [] | [] | [
"OPENCV_VERSION"
] | [] | ["OPENCV_VERSION"] | python | 1 | 0 | |
test/functional/test_framework/util.py | #!/usr/bin/env python3
# Copyright (c) 2014-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Helpful routines for regression testing."""
from base64 import b64encode
from binascii import unhexlif... | [] | [] | [
"TEST_RUNNER_PORT_MIN"
] | [] | ["TEST_RUNNER_PORT_MIN"] | python | 1 | 0 | |
tb/eth_mac_10g/test_eth_mac_10g.py | #!/usr/bin/env python
"""
Copyright (c) 2020 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... | [] | [] | [
"PARAM_ENABLE_DIC"
] | [] | ["PARAM_ENABLE_DIC"] | python | 1 | 0 | |
GTSRB/train_standard_vgg.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
This is the implement of standard training on GTSRB dataset.
Copyright (c) Yiming Li, 2020
'''
from __future__ import print_function
import argparse
import os
import shutil
import time
import random
import torch
import torch.nn as nn
import torch.nn.parallel
impor... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
src/remote/remote_test.go | package remote
import (
"io/ioutil"
"os"
"path"
"path/filepath"
"strings"
"testing"
"time"
"github.com/bazelbuild/remote-apis-sdks/go/pkg/digest"
pb "github.com/bazelbuild/remote-apis/build/bazel/remote/execution/v2"
"github.com/golang/protobuf/ptypes"
"github.com/stretchr/testify/assert"
"github.com/stre... | [
"\"TEST_DIR\"",
"\"TMP_DIR\""
] | [] | [
"TMP_DIR",
"TEST_DIR"
] | [] | ["TMP_DIR", "TEST_DIR"] | go | 2 | 0 | |
soc_linux.py | #!/usr/bin/env python3
import os
import subprocess
from migen import *
from litex.soc.interconnect import wishbone
from litex.soc.cores.gpio import GPIOOut, GPIOIn
from litex.soc.cores.spi import SPIMaster
from litex.soc.cores.bitbang import I2CMaster
from litex.soc.cores.xadc import XADC
from litex.soc.cores.pwm i... | [] | [] | [
"BOARD"
] | [] | ["BOARD"] | python | 1 | 0 | |
cmd/nmi/main.go | package main
import (
goflag "flag"
"net/http"
_ "net/http/pprof"
"os"
"strings"
"github.com/Azure/aad-pod-identity/pkg/metrics"
"github.com/Azure/aad-pod-identity/pkg/nmi"
server "github.com/Azure/aad-pod-identity/pkg/nmi/server"
"github.com/Azure/aad-pod-identity/pkg/probes"
"github.com/Azure/aad-pod-iden... | [
"\"FORCENAMESPACED\""
] | [] | [
"FORCENAMESPACED"
] | [] | ["FORCENAMESPACED"] | go | 1 | 0 | |
src/flashkit/api/build/_simulation.py | """Build and compile a FLASH simulation directory."""
# type annotations
from __future__ import annotations
from typing import Any
# standard libraries
import logging
import os
import sys
from pathlib import Path
# internal libraries
from ...core.error import AutoError
from ...core.parallel import safe, single, squa... | [] | [] | [] | [] | [] | python | null | null | null |
venv/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_acl.py | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | [] | [] | [] | [] | [] | python | null | null | null |
docs/update_req_for_rtd.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | [] | [] | [
"TRAVIS"
] | [] | ["TRAVIS"] | python | 1 | 0 | |
integration/env_test.go | package integration_test
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"testing"
"time"
"github.com/cenkalti/backoff"
"github.com/goccy/go-yaml"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
starportconf "github.com/tendermint/st... | [
"\"CI\""
] | [] | [
"CI"
] | [] | ["CI"] | go | 1 | 0 | |
webimg.go | package main
import (
"context"
"encoding/base64"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"strings"
"time"
"golang.org/x/sync/syncmap"
"github.com/PuerkitoBio/goquery"
uuid "github.com/nu7hatch/gouuid"
"github.com/phayes/freeport"
"github.com/vjeantet/chromedp"
"github.com/vjeantet/chromedp/runner"
)
... | [
"\"BF_COMMONS_PATH\""
] | [] | [
"BF_COMMONS_PATH"
] | [] | ["BF_COMMONS_PATH"] | go | 1 | 0 | |
chain/sync.go | package chain
import (
"bytes"
"context"
"errors"
"fmt"
"os"
"sort"
"strings"
"sync"
"time"
"github.com/filecoin-project/lotus/chain/actors/builtin"
"github.com/filecoin-project/lotus/node/modules/dtypes"
"github.com/Gurpartap/async"
"github.com/hashicorp/go-multierror"
blocks "github.com/ipfs/go-bloc... | [
"\"LOTUS_IGNORE_DRAND\""
] | [] | [
"LOTUS_IGNORE_DRAND"
] | [] | ["LOTUS_IGNORE_DRAND"] | go | 1 | 0 | |
nifi-registry/nifi-registry-core/nifi-registry-bootstrap/src/main/java/org/apache/nifi/registry/bootstrap/RunNiFiRegistry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | [
"\"NIFI_REGISTRY_HOME\"",
"\"NIFI_REGISTRY_HOME\"",
"\"JAVA_HOME\""
] | [] | [
"JAVA_HOME",
"NIFI_REGISTRY_HOME"
] | [] | ["JAVA_HOME", "NIFI_REGISTRY_HOME"] | java | 2 | 0 | |
src/twisted/conch/test/test_recvline.py | # -*- test-case-name: twisted.conch.test.test_recvline -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.conch.recvline} and fixtures for testing related
functionality.
"""
import os
import sys
from unittest import skipIf
from twisted.conch import recvline
from twist... | [] | [] | [] | [] | [] | python | 0 | 0 | |
scripts/devstack_sanity_tests_with_setup.py | # Need to import path to test/fixtures and test/scripts/
# Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/'
#
# To run tests, you can do 'python sanity_tests.py'. To run specific tests,
# You can do 'python -m testtools.run -l tests'
# Set the env variable PARAMS_FILE to point to your ini file. E... | [] | [] | [
"PARAMS_FILE",
"SCRIPT_TS"
] | [] | ["PARAMS_FILE", "SCRIPT_TS"] | python | 2 | 0 | |
main.py | import telebot
import datetime
import os
import telegram
from flask import Flask, request
from random import randint
import codecs
TOKEN = ':'
bot = telebot.TeleBot(TOKEN)
COMPLIMENTS = ["лучший", "ТОП", "ТОПЧИК", "огонь", "красавчик", "мыло", "ЛОСК", "классный", "садись на бутылку", "шутник"]
NAMES = ["Миша", "Бодя"... | [] | [] | [
"PORT"
] | [] | ["PORT"] | python | 1 | 0 | |
cmd/root.go | /*
Copyright © 2020 Singee <i@singee.me>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | [
"\"GOARCH\"",
"\"GOOS\"",
"\"GOFILE\"",
"\"GOLINE\"",
"\"GOPACKAGE\""
] | [] | [
"GOLINE",
"GOFILE",
"GOPACKAGE",
"GOARCH",
"GOOS"
] | [] | ["GOLINE", "GOFILE", "GOPACKAGE", "GOARCH", "GOOS"] | go | 5 | 0 | |
tests/providers/hashicorp/secrets/test_vault.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [] | [] | [] | [] | [] | python | 0 | 0 | |
security_groups/running_security_groups.go | package security_groups_test
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"strings"
. "github.com/cloudfoundry/cf-acceptance-tests/cats_suite_helpers"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gbytes"
. "github.com/onsi/gomega/gexec"
"github.com/cloudfoundry-incub... | [
"\"CONFIG\"",
"\"CONFIG\"",
"\"CONFIG\""
] | [] | [
"CONFIG"
] | [] | ["CONFIG"] | go | 1 | 0 | |
BALSAMIC/commands/run/scheduler.py | #!/usr/bin/env python3
# import sys
import os
import re
import subprocess
import json
import argparse
import shutil
from snakemake.utils import read_job_properties
class SbatchScheduler:
'''
Builds sbatch command. Commands map to SLURM sbatch options.
Params:
------
account - -A/--account
... | [] | [] | [
"BALSAMIC_STATUS"
] | [] | ["BALSAMIC_STATUS"] | python | 1 | 0 | |
clients/config/cli/cli_test.go | package cli
import (
"os"
"testing"
"time"
)
// func TestNewConfig(t *testing.T) {
// os.Setenv("LOCALHOST", "192.168.1.1")
// localhost := os.Getenv("LOCALHOST")
// t.Log("ENV LOCALHOST", localhost)
// configMap := make(map[string]*config.AppConfig)
// orderConfig := new(config.AppConfig)
// orderDB := new(... | [
"\"LOCALHOST\""
] | [] | [
"LOCALHOST"
] | [] | ["LOCALHOST"] | go | 1 | 0 | |
lib/spack/llnl/util/tty/__init__.py | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from __future__ import unicode_literals
import fcntl
import os
import struct
import sys
import termios
import textwrap
im... | [] | [] | [
"LINES",
"COLUMNS"
] | [] | ["LINES", "COLUMNS"] | python | 2 | 0 | |
config/wsgi.py | """
WSGI config for Nagoya Rest project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATIO... | [] | [] | [
"DJANGO_SETTINGS_MODULE"
] | [] | ["DJANGO_SETTINGS_MODULE"] | python | 1 | 0 | |
tensorflow/compiler/plugin/poplar/tests/while_loop_perf_test.py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [] | [] | [
"TF_XLA_FLAGS"
] | [] | ["TF_XLA_FLAGS"] | python | 1 | 0 | |
main.go | /*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License... | [
"\"ENABLE_WEBHOOKS\""
] | [] | [
"ENABLE_WEBHOOKS"
] | [] | ["ENABLE_WEBHOOKS"] | go | 1 | 0 | |
tools/dist/security/_gnupg.py | # Copyright (c) 2008-2014 by Vinay Sajip.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of cond... | [] | [] | [
"GPGBINARY",
"LOGNAME",
"USERNAME"
] | [] | ["GPGBINARY", "LOGNAME", "USERNAME"] | python | 3 | 0 | |
cmd/common_test.go | // Copyright © 2017-2019 Aqua Security Software Ltd. <info@aquasec.com>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... | [
"\"PATH\"",
"\"PATH\""
] | [] | [
"PATH"
] | [] | ["PATH"] | go | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.