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 |
|---|---|---|---|---|---|---|---|---|---|---|
dialog_test/flowtest_v1.py | from watson_developer_cloud import ConversationV1
import pandas as pd
import re
import json
import os
class FlowTestV1:
""" Conversational Flow testing """
anyFails = False
templateColList = [
'User Input',
'Match Output','Match Intent','Match Entity',
'Alternate I... | [] | [] | [
"WORKSPACE_ID"
] | [] | ["WORKSPACE_ID"] | python | 1 | 0 | |
_archive_Flask_AWS/SOUNDDRIP/models/predict.py | import spotipy
from sklearn.neighbors import NearestNeighbors
from sklearn.preprocessing import MinMaxScaler, Normalizer
import pandas as pd
from pandas.io.json import json_normalize
from joblib import load, dump
import pickle
import numpy as np
import psycopg2 as ps
from misc.env_vars import *
import sys
from more_ite... | [] | [] | [
"FLASK_ENV"
] | [] | ["FLASK_ENV"] | python | 1 | 0 | |
lldb/packages/Python/lldbsuite/test/lldbpexpect.py | from __future__ import absolute_import
# System modules
import os
import sys
# Third-party modules
import six
# LLDB Modules
import lldb
from .lldbtest import *
from . import lldbutil
from lldbsuite.test.decorators import *
@skipIfRemote
@skipIfWindows # llvm.org/pr22274: need a pexpect replacement for windows
cla... | [] | [] | [] | [] | [] | python | 0 | 0 | |
avrit_backend/avrit_backend/wsgi.py | """
WSGI config for avrit_backend 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [] | [] | [] | [] | [] | python | 0 | 0 | |
src/test/java/scaffolding/MvnRunner.java | package scaffolding;
import static java.util.Arrays.asList;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsNot.not;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.io.PrintStream;
import java.ut... | [
"\"M2_HOME\""
] | [] | [
"M2_HOME"
] | [] | ["M2_HOME"] | java | 1 | 0 | |
tests/test_orm.py | import unittest
import os
from orm import ORM
from orm import model
from orm import fields
class User(model.Model):
first_name = fields.CharField(max_length=40, blank=True)
last_name = fields.CharField(max_length=40, blank=True)
username = fields.CharField(max_length=40)
password = fields.CharField(max_length=40... | [] | [] | [
"DATABASE_URL"
] | [] | ["DATABASE_URL"] | python | 1 | 0 | |
config/default.py | ''' Config Proto '''
import sys
import os
####### INPUT OUTPUT #######
# debug
isDebug = True
# The name of the current model for output
name = 'default'
# The folder to save log and model
log_base_dir = './log/'
# Whether to save the model checkpoints and result logs
save_model = True
# The interval between w... | [] | [] | [
"DATABASES2"
] | [] | ["DATABASES2"] | python | 1 | 0 | |
mathics/settings.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pkg_resources
import sys
import os
from os import path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# set only to True in DEBUG mode
DEBUG_MAIL = True
PROPAGATE_EXCEPTIONS = True
DISPLAY_EXCEPTIONS = True
DEBUG_PRINT = False
LOG_QUERIES = False
# Either None (no timeo... | [] | [] | [
"APPDATA"
] | [] | ["APPDATA"] | python | 1 | 0 | |
neptune_load/bulk_load_data.py | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
from neptune_load.sigv4_signer.sigv4_signer import SigV4Signer
from neptune_load.bulk_loader.bulk_loader import BulkLoader
import logging
import os
import sys
logger = logging.getLogger("bulk_load")
logger.setL... | [] | [] | [
"NEPTUNE_LOADER_IAM_ROLE",
"S3_BUCKET",
"NEPTUNE_ENDPOINT",
"TRIPLE_NAME",
"SERVICE_REGION"
] | [] | ["NEPTUNE_LOADER_IAM_ROLE", "S3_BUCKET", "NEPTUNE_ENDPOINT", "TRIPLE_NAME", "SERVICE_REGION"] | python | 5 | 0 | |
spanner/spanner_snippets/spanner/integration_test.go | // Copyright 2020 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 ... | [
"\"GOLANG_SAMPLES_SPANNER\""
] | [] | [
"GOLANG_SAMPLES_SPANNER"
] | [] | ["GOLANG_SAMPLES_SPANNER"] | go | 1 | 0 | |
newrelic-murmur.go | package main
import (
"flag"
"log"
"os"
"github.com/yvasiyarov/newrelic_platform_go"
)
const (
AGENT_NAME = "Murmur"
AGENT_GUID = "com.github.mikoim.newrelic.murmur"
AGENT_VERSION = "0.0.3"
)
func main() {
var (
host = flag.String("host", "localhost", "Murmur host")
port = flag.Int("port", 64738, "Murmur... | [
"\"NEW_RELIC_LICENSE_KEY\""
] | [] | [
"NEW_RELIC_LICENSE_KEY"
] | [] | ["NEW_RELIC_LICENSE_KEY"] | go | 1 | 0 | |
qmessentials-observation-service/main.go | package main
import (
"bytes"
"context"
"encoding/json"
"errors"
"io/ioutil"
"net/http"
"os"
"time"
"github.com/cleareyeconsulting/qmessentials/observations/models"
"github.com/go-chi/chi"
"github.com/joho/godotenv"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"go.mongodb.org/mongo-driver/bson"
... | [
"\"MONGODB_HAS_REPLICA_SET\"",
"\"MONGODB_CONNECTION_STRING\"",
"\"MONGODB_DATABASE_NAME\"",
"\"MONGODB_CONNECTION_STRING\"",
"\"MONGODB_HAS_REPLICA_SET\"",
"\"CALCULATION_BROKER\"",
"\"CALCULATION_BROKER\""
] | [] | [
"MONGODB_HAS_REPLICA_SET",
"MONGODB_DATABASE_NAME",
"MONGODB_CONNECTION_STRING",
"CALCULATION_BROKER"
] | [] | ["MONGODB_HAS_REPLICA_SET", "MONGODB_DATABASE_NAME", "MONGODB_CONNECTION_STRING", "CALCULATION_BROKER"] | go | 4 | 0 | |
devops/devops/wsgi.py | """
WSGI config for devops 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [] | [] | [] | [] | [] | python | 0 | 0 | |
startup/GafferScene/usd.py | ##########################################################################
#
# Copyright (c) 2018, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | [] | [] | [
"PYTHONPATH"
] | [] | ["PYTHONPATH"] | python | 1 | 0 | |
gen-meta.py | import os
from clang.cindex import *
#
# UTILS
#
def has_child(node, kind, spel = ''):
for child in node.get_children():
if child.kind == kind and child.spelling == spel:
return True
return False
def has_child_any(node, kind, spels):
for spel in spels:
if has_child(node, kind, spel):
return... | [] | [] | [
"CLANG_LIBRARY_PATH"
] | [] | ["CLANG_LIBRARY_PATH"] | python | 1 | 0 | |
duple-api/duple/__init__.py | import logging
import sys
import os
logging.basicConfig(
level=logging.getLevelName(os.getenv("LOG_LEVEL") or "INFO"),
format="[%(asctime)s] [%(levelname)s] %(message)s",
handlers=[logging.StreamHandler(sys.stdout)],
)
logger = logging.getLogger()
| [] | [] | [
"LOG_LEVEL"
] | [] | ["LOG_LEVEL"] | python | 1 | 0 | |
confluence/examples/contentProperties/gets/gets.go | package main
import (
"context"
"github.com/ctreminiom/go-atlassian/confluence"
"log"
"net/http"
"os"
)
func main() {
var (
host = os.Getenv("HOST")
mail = os.Getenv("MAIL")
token = os.Getenv("TOKEN")
)
instance, err := confluence.New(nil, host)
if err != nil {
log.Fatal(err)
}
instance.Auth.S... | [
"\"HOST\"",
"\"MAIL\"",
"\"TOKEN\""
] | [] | [
"MAIL",
"HOST",
"TOKEN"
] | [] | ["MAIL", "HOST", "TOKEN"] | go | 3 | 0 | |
tests/projects/test_projects.py | import os
import git
import shutil
import tempfile
import yaml
from distutils import dir_util
import mock
import pytest
import mlflow
from mlflow.entities import RunStatus, ViewType, Experiment, SourceType
from mlflow.exceptions import ExecutionException, MlflowException
from mlflow.store.file_store import FileStor... | [] | [] | [
"CONDA_EXE",
"PATH"
] | [] | ["CONDA_EXE", "PATH"] | python | 2 | 0 | |
providers/github.go | package providers
import (
"encoding/json"
"fmt"
"net/http"
"os"
"github.com/philpearl/oauth2"
"github.com/philpearl/oauth2/github"
)
type GithubProvider struct {
GenericProvider
}
type githubUser struct {
Id int `json:"id"`
Login string `json:"login"`
Name string `json:"name"`
Email string `json:... | [
"\"GITHUB_CLIENT_ID\"",
"\"GITHUB_CLIENT_SECRET\""
] | [] | [
"GITHUB_CLIENT_ID",
"GITHUB_CLIENT_SECRET"
] | [] | ["GITHUB_CLIENT_ID", "GITHUB_CLIENT_SECRET"] | go | 2 | 0 | |
mesonbuild/interpreter.py | # Copyright 2012-2018 The Meson development team
# 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... | [] | [] | [] | [] | [] | python | 0 | 0 | |
models/models.go | package models
import (
"os"
"github.com/astaxie/beego"
"github.com/astaxie/beego/orm"
"github.com/bnhf/go-openvpn/server/config"
passlib "gopkg.in/hlandau/passlib.v1"
)
var GlobalCfg Settings
func init() {
initDB()
createDefaultUsers()
createDefaultSettings()
createDefaultOVConfig()
}
func initDB() {
or... | [
"\"PIVPN_SERVER\"",
"\"PIVPN_SERVER\"",
"\"PIVPN_SERVER\""
] | [] | [
"PIVPN_SERVER"
] | [] | ["PIVPN_SERVER"] | go | 1 | 0 | |
cmd/dfdaemon/app/root.go | /*
* Copyright The Dragonfly 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 agr... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
mindspore/_extends/parallel_compile/tbe_compiler/tbe_process.py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [] | [] | [
"MS_BUILD_PROCESS_NUM"
] | [] | ["MS_BUILD_PROCESS_NUM"] | python | 1 | 0 | |
azuredevops/internal/acceptancetests/resource_user_entitlement_test.go | //go:build (all || resource_user_entitlement) && !exclude_resource_user_entitlement
// +build all resource_user_entitlement
// +build !exclude_resource_user_entitlement
package acceptancetests
import (
"fmt"
"os"
"strings"
"testing"
"github.com/golang/mock/gomock"
"github.com/google/uuid"
"github.com/hashicor... | [
"\"AZDO_TEST_AAD_USER_EMAIL\""
] | [] | [
"AZDO_TEST_AAD_USER_EMAIL"
] | [] | ["AZDO_TEST_AAD_USER_EMAIL"] | go | 1 | 0 | |
locallibrary/settings.py | """"Django settings for locallibrary project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import ... | [] | [] | [
"DJANGO_DEBUG",
"DJANGO_SECRET_KEY",
"LOGDNA_KEY_ANEWMAN",
"LOGDNA_KEY_DEVSPOTLIGHT"
] | [] | ["DJANGO_DEBUG", "DJANGO_SECRET_KEY", "LOGDNA_KEY_ANEWMAN", "LOGDNA_KEY_DEVSPOTLIGHT"] | python | 4 | 0 | |
validate.py | # coding=utf-8
import ftplib
import json
import logging
import os
import uuid
from shared import config_file
# manuelles Logging, da certbot Ausgabe dieses Skripts unterdrückt
logging.basicConfig(filename='validation.log', level=logging.DEBUG, format='%(asctime)s %(message)s')
# Mapping zwischen Domains und Verzeich... | [] | [] | [
"CERTBOT_DOMAIN",
"CERTBOT_VALIDATION",
"CERTBOT_TOKEN"
] | [] | ["CERTBOT_DOMAIN", "CERTBOT_VALIDATION", "CERTBOT_TOKEN"] | python | 3 | 0 | |
main.go | package main
import (
"expvar"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"syscall"
"github.com/Tri125/HoP/commands"
"github.com/Tri125/HoP/metrics"
"github.com/bwmarrin/discordgo"
)
/*
Set this variable with go build with the -ldflags="-X main.version=<value>" parameter.
*/
var version = "undefined"
... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
pytorch_lightning/strategies/ddp_spawn.py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [] | [] | [
"MASTER_PORT"
] | [] | ["MASTER_PORT"] | python | 1 | 0 | |
sandbox/asgi.py | """
ASGI config for marion 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
from configurations import importer
... | [] | [] | [] | [] | [] | python | 0 | 0 | |
utils/utils.go | package utils
import (
"bytes"
"crypto/rand"
"crypto/sha1"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path/filepath"
"runtime"
"strconv"
"strings"
"sync"
"syscall"
"time"
"github.com/dotcloud/docker/dockerversion"
)
type KeyValuePair... | [
"\"DEBUG\""
] | [] | [
"DEBUG"
] | [] | ["DEBUG"] | go | 1 | 0 | |
api/line.go | package api
import (
"errors"
"net/http"
"net/url"
"os"
"strings"
)
const URL = "https://notify-api.line.me/api/notify"
func Notify(msg string) error {
accessToken := os.Getenv("LINE_NOTIFY_TOKEN")
if accessToken == "" {
return errors.New("not found LINE_NOTIFY_TOKEN")
}
u, err := url.ParseRequestURI(URL... | [
"\"LINE_NOTIFY_TOKEN\""
] | [] | [
"LINE_NOTIFY_TOKEN"
] | [] | ["LINE_NOTIFY_TOKEN"] | go | 1 | 0 | |
rpctest/utils.go | // Copyright (c) 2016 The btcsuite developers
// Copyright (c) 2017-2019 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package rpctest
import (
"context"
"reflect"
"runtime"
"syscall"
"testing"
"time"
dcrdtypes "github.com/decred/dcrd/... | [] | [] | [] | [] | [] | go | null | null | null |
manage.py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'deploy_ml.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [] | [] | [] | [] | [] | python | 0 | 0 | |
gpMgmt/bin/gppylib/operations/test/unit/test_unit_deletesystem.py | #!/usr/bin/env python3
import unittest
from gppylib.operations.deletesystem import validate_pgport
from mock import patch, MagicMock, Mock
class GpDeletesystemTestCase(unittest.TestCase):
@patch('os.getenv', return_value=None)
@patch('gppylib.operations.deletesystem.get_coordinatorport', return_value=12345)
... | [] | [] | [] | [] | [] | python | 0 | 0 | |
src/net/http/h2_bundle.go | // Code generated by golang.org/x/tools/cmd/bundle.
//go:generate bundle -o h2_bundle.go -prefix http2 -underscore golang.org/x/net/http2
// Package http2 implements the HTTP/2 protocol.
//
// This package is low-level and intended to be used directly by very
// few people. Most users will use it indirectly through th... | [
"\"DEBUG_HTTP2_GOROUTINES\"",
"\"GODEBUG\""
] | [] | [
"GODEBUG",
"DEBUG_HTTP2_GOROUTINES"
] | [] | ["GODEBUG", "DEBUG_HTTP2_GOROUTINES"] | go | 2 | 0 | |
packet/models.go | package packet
import (
"encoding/json"
"net"
"os"
"time"
"github.com/pkg/errors"
"github.com/tinkerbell/boots/files/ignition"
)
// models.go contains the Hardware structures matching the data models defined by tink and cacher
// BondingMode is the hardware bonding mode
type BondingMode int
// Discovery inte... | [
"\"DATA_MODEL_VERSION\""
] | [] | [
"DATA_MODEL_VERSION"
] | [] | ["DATA_MODEL_VERSION"] | go | 1 | 0 | |
rinex_webservice/asgi.py | """
ASGI config for rinex_webservice 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [] | [] | [] | [] | [] | python | 0 | 0 | |
test/e2e/run_test.go | package integration
import (
"fmt"
"io/ioutil"
"net"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"syscall"
"time"
"github.com/containers/common/pkg/cgroups"
"github.com/containers/podman/v4/pkg/rootless"
. "github.com/containers/podman/v4/test/utils"
"github.com/containers/storage/pkg/stringid"
... | [
"\"container\"",
"\"SKIP_USERNS\""
] | [] | [
"container",
"SKIP_USERNS"
] | [] | ["container", "SKIP_USERNS"] | go | 2 | 0 | |
selfdrive/updated.py | #!/usr/bin/env python3
# Safe Update: A simple service that waits for network access and tries to
# update every 10 minutes. It's intended to make the OP update process more
# robust against Git repository corruption. This service DOES NOT try to fix
# an already-corrupt BASEDIR Git repo, only prevent it from happenin... | [] | [] | [
"UPDATER_NEOSUPDATE_DIR",
"UPDATER_STAGING_ROOT",
"UPDATER_LOCK_FILE"
] | [] | ["UPDATER_NEOSUPDATE_DIR", "UPDATER_STAGING_ROOT", "UPDATER_LOCK_FILE"] | python | 3 | 0 | |
svc/cmd/earbug/server.go | package main
import (
"context"
"flag"
"net/http"
"os"
"strings"
"sync"
"time"
"github.com/go-logr/logr"
spotifyauth "github.com/zmb3/spotify/v2/auth"
clientv3 "go.etcd.io/etcd/client/v3"
"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/trace"
)
func New(flags *flag.FlagSet) *Server {
var s S... | [
"\"SPOTIFY_ID\"",
"\"SPOTIFY_SECRET\""
] | [] | [
"SPOTIFY_ID",
"SPOTIFY_SECRET"
] | [] | ["SPOTIFY_ID", "SPOTIFY_SECRET"] | go | 2 | 0 | |
go/vt/vttest/environment.go | /*
Copyright 2019 The Vitess 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 in writing, soft... | [
"\"MYSQL_FLAVOR\"",
"\"VTROOT\"",
"\"VTROOT\"",
"\"VTROOT\"",
"\"VTDATAROOT\""
] | [] | [
"MYSQL_FLAVOR",
"VTDATAROOT",
"VTROOT"
] | [] | ["MYSQL_FLAVOR", "VTDATAROOT", "VTROOT"] | go | 3 | 0 | |
examples/http-server/main.go | // Copyright 2017 Joshua J Baker. All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"flag"
"fmt"
"log"
"os"
"strconv"
"strings"
"time"
"github.com/oscarmherrera/evio"
)
var res string
type request str... | [
"\"NOPARSE\""
] | [] | [
"NOPARSE"
] | [] | ["NOPARSE"] | go | 1 | 0 | |
vendor/src/github.com/bugsnag/panicwrap/panicwrap_test.go | package panicwrap
import (
"bytes"
"fmt"
"os"
"os/exec"
"strings"
"testing"
"time"
)
func helperProcess(s ...string) *exec.Cmd {
cs := []string{"-test.run=TestHelperProcess", "--"}
cs = append(cs, s...)
env := []string{
"GO_WANT_HELPER_PROCESS=1",
}
cmd := exec.Command(os.Args[0], cs...)
cmd.Env = app... | [
"\"GO_WANT_HELPER_PROCESS\""
] | [] | [
"GO_WANT_HELPER_PROCESS"
] | [] | ["GO_WANT_HELPER_PROCESS"] | go | 1 | 0 | |
src/manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sonne.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are yo... | [] | [] | [] | [] | [] | python | 0 | 0 | |
classification/keras_embedlig_v3new.py | seedNum=10
import random, statistics
random.seed(seedNum)
import numpy
numpy.random.seed(seedNum)
import os
os.environ["CUDA_VISIBLE_DEVICES"]="-1"
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
tf.random.set_seed(seedNum)
import sklearn, numpy, sys
from sklearn import preprocessing, decomposition,... | [] | [] | [
"CUDA_VISIBLE_DEVICES",
"TF_CPP_MIN_LOG_LEVEL"
] | [] | ["CUDA_VISIBLE_DEVICES", "TF_CPP_MIN_LOG_LEVEL"] | python | 2 | 0 | |
pkg/v1/cli/command/core/root.go | // Copyright 2021 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package core
import (
"fmt"
"os"
"strings"
"time"
"github.com/aunum/log"
"github.com/briandowns/spinner"
"github.com/logrusorgru/aurora"
"github.com/spf13/cobra"
"github.com/vmware-tanzu/tanzu-framework/apis/cli/v1al... | [
"\"TANZU_CLI_NO_INIT\"",
"\"TANZU_CLI_NO_COLOR\""
] | [] | [
"TANZU_CLI_NO_COLOR",
"TANZU_CLI_NO_INIT"
] | [] | ["TANZU_CLI_NO_COLOR", "TANZU_CLI_NO_INIT"] | go | 2 | 0 | |
simulation/bank/sim_test.go | package simulation
import (
"encoding/json"
"math/rand"
"testing"
sdk "github.com/irisnet/irishub/types"
"github.com/irisnet/irishub/modules/bank"
"github.com/irisnet/irishub/simulation/mock"
"github.com/irisnet/irishub/simulation/mock/simulation"
)
func TestBankWithRandomMessages(t *testing.T) {
mapp := moc... | [] | [] | [] | [] | [] | go | null | null | null |
repo2docker/app.py | """repo2docker: convert git repositories into jupyter-suitable docker images
Images produced by repo2docker can be used with Jupyter notebooks standalone
or with BinderHub.
Usage:
python -m repo2docker https://github.com/you/your-repo
"""
import argparse
import json
import sys
import logging
import os
import pwd... | [] | [] | [
"DOCKER_HOST"
] | [] | ["DOCKER_HOST"] | python | 1 | 0 | |
staging/operator-lifecycle-manager/test/e2e/e2e_test.go | package e2e
import (
"context"
"flag"
"fmt"
"os"
"path"
"testing"
"time"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/config"
"github.com/onsi/ginkgo/reporters"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "github.com/operator-framework/api/pkg/operators/v1"
"github... | [
"\"JUNIT_DIRECTORY\""
] | [] | [
"JUNIT_DIRECTORY"
] | [] | ["JUNIT_DIRECTORY"] | go | 1 | 0 | |
vendor/github.com/terraform-providers/terraform-provider-vsphere/vsphere/provider.go | package vsphere
import (
"os"
"path/filepath"
"time"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
)
// defaultAPITimeout is a default timeout value that is passed to functions
// requiring contexts, and other various waiters.
const defaultAPITim... | [
"\"HOME\"",
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
main.go | package main
import (
"log"
"net/http"
"os"
)
var (
port = os.Getenv("PORT")
)
// cors adds required headers to responses such that direct access works.
//
// These are not required if using "proxy" access.
func cors(f http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
lib/http/triv.go | // Copyright 2009 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 ignore
package main
import (
"bytes"
"expvar"
"flag"
"fmt"
"io"
"log"
"os"
"os/exec"
"strconv"
"sync"
"github.com/zmap/zgrab2/lib/http"
... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
scp_client/copy_dir/scp_clientv3.go | /*
This script will copy a directory and its contents over to a remote device.
One of the challenges is that the directory needed to be created on the remote device prior to copying files over.
*/
package main
import (
"fmt"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
"log"
"net"
"os"
"github.... | [
"\"SSH_AUTH_SOCK\""
] | [] | [
"SSH_AUTH_SOCK"
] | [] | ["SSH_AUTH_SOCK"] | go | 1 | 0 | |
bot.py | import asyncio
import datetime
import gettext
import os
import coc
import discord
from coc.errors import NotFound
t = gettext.translation('bot', 'locale', languages=['ko'], fallback=True)
_ = t.gettext
print(_('Logging in to COC API...'))
email = os.getenv('COC_BOT_EMAIL')
password = os.getenv('COC_BOT_PASSWORD')... | [] | [] | [
"COC_BOT_PASSWORD",
"COC_BOT_EMAIL",
"DISCORD_BOT_TOKEN"
] | [] | ["COC_BOT_PASSWORD", "COC_BOT_EMAIL", "DISCORD_BOT_TOKEN"] | python | 3 | 0 | |
cmd/command/handle_binlog/handle_insert.go | package handle_binlog
import (
"encoding/json"
"fmt"
"github.com/siddontang/go-mysql/replication"
"os"
"owen2020/app/models"
"owen2020/cmd/command/handle_binlog/common"
"owen2020/cmd/command/handle_binlog/store"
"strings"
)
func handleWriteRowsEventV1(e *replication.BinlogEvent) {
ev, _ := e.Event.(*replicat... | [
"\"ENABLE_DATA_STATISTICS\"",
"\"ENABLE_MODEL_STREAM\""
] | [] | [
"ENABLE_DATA_STATISTICS",
"ENABLE_MODEL_STREAM"
] | [] | ["ENABLE_DATA_STATISTICS", "ENABLE_MODEL_STREAM"] | go | 2 | 0 | |
main.go | package main
import (
"os"
"github.com/beaquant/echo-vue/api"
"github.com/beaquant/echo-vue/config"
"github.com/beaquant/echo-vue/models"
"github.com/beaquant/echo-vue/routes"
"github.com/labstack/echo"
)
func getPort() string {
port := os.Getenv("PORT")
if port == "" {
port = "3000"
}
return port
}
fu... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
roles/lib_openshift/library/oc_scale.py | #!/usr/bin/env python
# pylint: disable=missing-docstring
# flake8: noqa: T001
# ___ ___ _ _ ___ ___ _ _____ ___ ___
# / __| __| \| | __| _ \ /_\_ _| __| \
# | (_ | _|| .` | _|| / / _ \| | | _|| |) |
# \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____
# | \ / _ \ | \| |/ _ \_ _| | __| \_ ... | [] | [] | [
"PATH"
] | [] | ["PATH"] | python | 1 | 0 | |
main.go | package main
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"regexp"
"strings"
"text/template"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/serializer/yaml"
"k8s.io... | [
"\"PLUGIN_YAML\""
] | [] | [
"PLUGIN_YAML"
] | [] | ["PLUGIN_YAML"] | go | 1 | 0 | |
web_app/routes/stats_routes.py | from flask import Blueprint, request, jsonify, render_template
from sklearn.linear_model import LogisticRegression
from web_app.models import User, Tweet
import basilica
import os
API_KEY = os.getenv('BASILICA_API_KEY')
connection = basilica.Connection(API_KEY)
stats_routes = Blueprint('stats_routes', __name__)
@s... | [] | [] | [
"BASILICA_API_KEY"
] | [] | ["BASILICA_API_KEY"] | python | 1 | 0 | |
cast/management/commands/get_api_token.py | import os
import requests
from getpass import getpass
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = "Get api token for user providing username/password"
def handle(self, *args, **options):
username = os.environ.get("USERNAME", "analytics")
obtain_tok... | [] | [] | [
"USERNAME",
"OBTAIN_TOKEN_URL"
] | [] | ["USERNAME", "OBTAIN_TOKEN_URL"] | python | 2 | 0 | |
tests/trainer/data_flow/test_train_loop_flow_scalar_1_0.py | """
Tests to ensure that the training loop works with a dict (1.0)
"""
import pytest
from pytorch_lightning import Trainer
from tests.base.deterministic_model import DeterministicModel
from tests.base.boring_model import BoringModel
import os
import torch
def test__training_step__flow_scalar(tmpdir):
"""
Test... | [] | [] | [
"PL_DEV_DEBUG"
] | [] | ["PL_DEV_DEBUG"] | python | 1 | 0 | |
test/functional/test_runner.py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Run regression test suite.
This module calls down into individual test cases via subprocess. It will
f... | [] | [] | [
"BITCOINCLI",
"TRAVIS",
"BITCOIND"
] | [] | ["BITCOINCLI", "TRAVIS", "BITCOIND"] | python | 3 | 0 | |
vendor/github.com/docker/libnetwork/internal/setmatrix/setmatrix.go | package setmatrix
import (
"sync"
mapset "github.com/deckarep/golang-set"
)
// SetMatrix is a map of Sets
type SetMatrix interface {
// Get returns the members of the set for a specific key as a slice.
Get(key string) ([]interface{}, bool)
// Contains is used to verify if an element is in a set for a specific k... | [] | [] | [] | [] | [] | go | null | null | null |
main.go | package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/aws/aws-lambda-go/lambda"
)
type Request struct {
Records []struct {
SNS struct {
Type string `json:"Type"`
Timestamp string `json:"Timestamp"`
SNSMessage string `json:"Message"`
} `json:"Sns"`
} `json:"Recor... | [
"\"SLACK_WEBBOOK\""
] | [] | [
"SLACK_WEBBOOK"
] | [] | ["SLACK_WEBBOOK"] | go | 1 | 0 | |
config/configuration.go | package config
import (
"fmt"
"log"
"os"
"path/filepath"
"strings"
"time"
"github.com/gin-contrib/cors"
"github.com/spf13/viper"
)
const (
// local helm path
helmPath = "helm.path"
// DNSBaseDomain configuration key for the base domain setting
DNSBaseDomain = "dns.domain"
// DNSSecretNamespace configu... | [
"\"KUBERNETES_RELEASE_NAME\""
] | [] | [
"KUBERNETES_RELEASE_NAME"
] | [] | ["KUBERNETES_RELEASE_NAME"] | go | 1 | 0 | |
extra/android/mak/build.py | from waflib.TaskGen import feature, before_method, after_method
from waflib import Options, Context, Node, Utils, Errors, Build, TaskGen
import os
@feature('bugengine:android:aapt_resource')
def aapt_resource(self):
if 'android' in self.env.VALID_PLATFORMS:
self.manifest = self.make_bld_node('src', '', 'A... | [] | [] | [] | [] | [] | python | 0 | 0 | |
cli/api/utils.go | // Copyright 2014, The Serviced Authors. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
import (
"fmt"
"os"
"os/exec"
"os/user"
"path"
"strconv"
"strings"
"github.com/zenoss/glog"
"github.com/control-center/serviced... | [
"\"SERVICED_DOCKER_DNS\"",
"\"SERVICED_HOME\"",
"\"ES_STARTUP_TIMEOUT\""
] | [] | [
"ES_STARTUP_TIMEOUT",
"SERVICED_DOCKER_DNS",
"SERVICED_HOME"
] | [] | ["ES_STARTUP_TIMEOUT", "SERVICED_DOCKER_DNS", "SERVICED_HOME"] | go | 3 | 0 | |
workshop-resources/cdk/snyk-codesuite-cdk/cdk_stack_deploy/cdk_snyk_codeartifact_stack.py | from pathlib import Path
from aws_cdk import (
aws_events as events,
aws_events_targets as targets,
aws_iam as iam,
aws_codepipeline as pipeline,
aws_codecommit as codecommit,
aws_codebuild as codebuild,
aws_codepipeline_actions as cpactions,
aws_ssm as ssm,
aws_s3 as s3,
aws_lo... | [] | [] | [
"CDK_DEFAULT_ACCOUNT",
"CDK_DEFAULT_REGION"
] | [] | ["CDK_DEFAULT_ACCOUNT", "CDK_DEFAULT_REGION"] | python | 2 | 0 | |
storage/s3.go | package storage
import (
"context"
"crypto/tls"
"errors"
"fmt"
"io"
"net/http"
urlpkg "net/url"
"os"
"strconv"
"strings"
"sync"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/endpoints"
"github.com/aw... | [
"\"AWS_SDK_LOAD_CONFIG\""
] | [] | [
"AWS_SDK_LOAD_CONFIG"
] | [] | ["AWS_SDK_LOAD_CONFIG"] | go | 1 | 0 | |
auth/ldap/ldap.go | /*
Copyright (c) 2016 VMware, 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 by a... | [
"\"LDAP_URL\"",
"\"LDAP_BASE_DN\"",
"\"LDAP_SEARCH_DN\"",
"\"LDAP_SEARCH_PWD\"",
"\"LDAP_UID\"",
"\"LDAP_FILTER\"",
"\"LDAP_SCOPE\""
] | [] | [
"LDAP_SEARCH_PWD",
"LDAP_SCOPE",
"LDAP_UID",
"LDAP_FILTER",
"LDAP_URL",
"LDAP_BASE_DN",
"LDAP_SEARCH_DN"
] | [] | ["LDAP_SEARCH_PWD", "LDAP_SCOPE", "LDAP_UID", "LDAP_FILTER", "LDAP_URL", "LDAP_BASE_DN", "LDAP_SEARCH_DN"] | go | 7 | 0 | |
cmd/env_factory.go | package cmd
import (
"os"
"path/filepath"
"time"
"github.com/cppforlife/go-patch/patch"
bihttpagent "github.com/cloudfoundry/bosh-agent/agentclient/http"
biblobstore "github.com/cloudfoundry/bosh-cli/blobstore"
bicloud "github.com/cloudfoundry/bosh-cli/cloud"
biconfig "github.com/cloudfoundry/bosh-cli/config... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
components/compliance-service/compliance.go | package compliance
import (
"context"
"fmt"
"io"
"net"
"net/http"
"os"
"strconv"
"time"
"github.com/pkg/errors"
"github.com/chef/automate/api/external/secrets"
"github.com/chef/automate/api/interservice/authn"
"github.com/chef/automate/api/interservice/authz"
"github.com/chef/automate/api/interservice/c... | [
"\"RUN_MODE\"",
"\"RUN_MODE\"",
"\"RUN_MODE\"",
"\"RUN_MODE\"",
"\"RUN_MODE\"",
"\"RUN_MODE\"",
"\"RUN_MODE\""
] | [] | [
"RUN_MODE"
] | [] | ["RUN_MODE"] | go | 1 | 0 | |
flink-python/pyflink/fn_execution/coders.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... | [] | [] | [
"table.exec.timezone"
] | [] | ["table.exec.timezone"] | python | 1 | 0 | |
st2client/st2client/models/core.py | # Copyright 2020 The StackStorm Authors.
# Copyright 2019 Extreme Networks, 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 ... | [] | [] | [
"ST2_API_KEY",
"ST2_AUTH_TOKEN"
] | [] | ["ST2_API_KEY", "ST2_AUTH_TOKEN"] | python | 2 | 0 | |
code/lambda/function/Auth/Register/app.py | import json
import os
import logging
from aws import helper
from aws import federate
from aws.helper import DeveloperMode
logger = logging.getLogger()
logger.setLevel(logging.INFO)
USER_POOL_ID = os.environ["USER_POOL_ID"]
USER_TABLE_NAME = os.environ["USER_TABLE_NAME"]
@DeveloperMode(True)
def lambda_handler(even... | [] | [] | [
"USER_TABLE_NAME",
"USER_POOL_ID"
] | [] | ["USER_TABLE_NAME", "USER_POOL_ID"] | python | 2 | 0 | |
toml/toml.go | // Package toml adds support to marshal and unmarshal types not in the official TOML spec.
package toml // import "github.com/freetsdb/freetsdb/toml"
import (
"encoding"
"errors"
"fmt"
"math"
"os"
"os/user"
"reflect"
"strconv"
"strings"
"time"
"unicode"
)
// Duration is a TOML wrapper type for time.Duratio... | [] | [] | [] | [] | [] | go | 0 | 0 | |
openquake/calculators/tests/event_based_risk_test.py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2015-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | [] | [] | [] | [] | [] | python | 0 | 0 | |
pygimli/physics/em/tdem.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Time Domain Electromagnetics (TDEM) functions and class"""
import sys
from math import pi
import numpy as np
import matplotlib.pyplot as plt
import pygimli as pg
from . vmd import VMDTimeDomainModelling
def rhoafromU(U, t, Tx, current=1.0, Rx=None):
r"""Apparent re... | [] | [] | [] | [] | [] | python | null | null | null |
internal/log.go | package internal
import (
"os"
)
var IsDebug = GetOkOnce(func() bool {
debug := os.Getenv("debug")
return debug == "true" || debug == "t" || debug == "1" || debug == "ok"
})
var IsSkipErrorFile = GetOkOnce(func() bool {
skipErrorFile := os.Getenv("skip_error_file")
return skipErrorFile == "true" || skipErrorFil... | [
"\"debug\"",
"\"skip_error_file\""
] | [] | [
"debug",
"skip_error_file"
] | [] | ["debug", "skip_error_file"] | go | 2 | 0 | |
plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.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... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | java | 1 | 0 | |
nwg_panel/tools.py | #!/usr/bin/env python3
import os
import sys
import json
import subprocess
import stat
import gi
import nwg_panel.common
gi.require_version('GdkPixbuf', '2.0')
gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')
from gi.repository import Gtk, Gdk, GdkPixbuf
from shutil import copyfile
import nwg_pane... | [] | [] | [
"XDG_DATA_DIRS",
"XDG_DATA_HOME",
"WAYLAND_DISPLAY",
"TMP",
"TMPDIR",
"HOME",
"XDG_CONFIG_HOME",
"TEMP"
] | [] | ["XDG_DATA_DIRS", "XDG_DATA_HOME", "WAYLAND_DISPLAY", "TMP", "TMPDIR", "HOME", "XDG_CONFIG_HOME", "TEMP"] | python | 8 | 0 | |
django_mailbox_abstract/tests/base.py | import email
import os.path
import time
from django.conf import settings
from django.test import TestCase
from django_mailbox_abstract import models, utils
from django_mailbox_abstract.models import Mailbox, Message
class EmailIntegrationTimeout(Exception):
pass
def get_email_as_text(name):
with open(
... | [] | [] | [
"EMAIL_ACCOUNT",
"EMAIL_SMTP_SERVER",
"EMAIL_PASSWORD"
] | [] | ["EMAIL_ACCOUNT", "EMAIL_SMTP_SERVER", "EMAIL_PASSWORD"] | python | 3 | 0 | |
ingestion/src/metadata/cmd.py | # Copyright 2021 Collate
# 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... | [] | [] | [
"METADATA_DEBUG"
] | [] | ["METADATA_DEBUG"] | python | 1 | 0 | |
list_trello_boards.py | #!/usr/bin/env python3
import os
import sys
from trello import TrelloClient, ResourceUnavailable
def usage():
print("""Usage: list_trello_boards show
Shows ids and names of Trello boards that the user specified with
TRELLO_API_KEY, TRELLO_API_SECRET, TRELLO_TOKEN and TRELLO_TOKEN_SECRET
environment ... | [] | [] | [
"TRELLO_TOKEN",
"TRELLO_API_KEY",
"TRELLO_TOKEN_SECRET",
"TRELLO_API_SECRET"
] | [] | ["TRELLO_TOKEN", "TRELLO_API_KEY", "TRELLO_TOKEN_SECRET", "TRELLO_API_SECRET"] | python | 4 | 0 | |
sunpy/net/fido_factory.py | """
This module provides the `Fido
<sunpy.net.fido_factory.UnifiedDownloaderFactory>` instance of
`sunpy.net.fido_factory.UnifiedDownloaderFactory` it also provides the
`~sunpy.net.fido_factory.UnifiedResponse` class which
`Fido.search <sunpy.net.fido_factory.UnifiedDownloaderFactory.search>` returns and the
`~sunpy.ne... | [] | [] | [] | [] | [] | python | null | null | null |
cmd/postgres_exporter/postgres_exporter.go | package main
import (
"crypto/sha256"
"database/sql"
"errors"
"fmt"
"io/ioutil"
"math"
"net/http"
"net/url"
"os"
"regexp"
"runtime"
"strconv"
"strings"
"sync"
"time"
"github.com/blang/semver"
"github.com/lib/pq"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/p... | [
"\"DATA_SOURCE_NAME\"",
"\"DATA_SOURCE_USER_FILE\"",
"\"DATA_SOURCE_USER_FILE\"",
"\"DATA_SOURCE_USER\"",
"\"DATA_SOURCE_PASS_FILE\"",
"\"DATA_SOURCE_PASS_FILE\"",
"\"DATA_SOURCE_PASS\"",
"\"DATA_SOURCE_URI_FILE\"",
"\"DATA_SOURCE_URI_FILE\"",
"\"DATA_SOURCE_URI\""
] | [] | [
"DATA_SOURCE_PASS",
"DATA_SOURCE_USER",
"DATA_SOURCE_NAME",
"DATA_SOURCE_PASS_FILE",
"DATA_SOURCE_URI_FILE",
"DATA_SOURCE_USER_FILE",
"DATA_SOURCE_URI"
] | [] | ["DATA_SOURCE_PASS", "DATA_SOURCE_USER", "DATA_SOURCE_NAME", "DATA_SOURCE_PASS_FILE", "DATA_SOURCE_URI_FILE", "DATA_SOURCE_USER_FILE", "DATA_SOURCE_URI"] | go | 7 | 0 | |
vendor/github.com/casualjim/go-app/application.go | package app
import (
"errors"
"fmt"
"log"
"net/url"
"os"
"os/signal"
"path/filepath"
goruntime "runtime"
"strings"
"sync"
"syscall"
"github.com/casualjim/go-app/logging"
"github.com/casualjim/go-app/tracing"
cjm "github.com/casualjim/middlewares"
"github.com/fsnotify/fsnotify"
"github.com/kardianos/os... | [
"\"HOME\"",
"\"CONFIG_PATH\"",
"\"CONFIG_PATH\"",
"\"CONFIG_KEYRING\"",
"\"CONFIG_REMOTE_URL\"",
"\"APP_NAME\"",
"\"CONFIG_REMOTE_URL\"",
"\"CONFIG_REMOTE_URL\""
] | [] | [
"CONFIG_PATH",
"CONFIG_REMOTE_URL",
"CONFIG_KEYRING",
"APP_NAME",
"HOME"
] | [] | ["CONFIG_PATH", "CONFIG_REMOTE_URL", "CONFIG_KEYRING", "APP_NAME", "HOME"] | go | 5 | 0 | |
libbeat/processors/add_kubernetes_metadata/kubernetes.go | package add_kubernetes_metadata
import (
"context"
"errors"
"fmt"
"io/ioutil"
"os"
"time"
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/logp"
"github.com/elastic/beats/libbeat/processors"
"github.com/ericchiang/k8s"
"github.com/ghodss/yaml"
)
const (
timeout = time.Second *... | [
"\"HOSTNAME\""
] | [] | [
"HOSTNAME"
] | [] | ["HOSTNAME"] | go | 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 | |
src/terraform-resource/out/out.go | package out
import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path"
"terraform-resource/logger"
"terraform-resource/models"
"terraform-resource/namer"
"terraform-resource/ssh"
"terraform-resource/storage"
"terraform-resource/terraform"
)
type Runner struct {
SourceDir string
Namer namer.Namer
LogWrit... | [
"\"BUILD_ID\"",
"\"BUILD_NAME\"",
"\"BUILD_JOB_NAME\"",
"\"BUILD_PIPELINE_NAME\"",
"\"BUILD_TEAM_NAME\"",
"\"ATC_EXTERNAL_URL\""
] | [] | [
"BUILD_NAME",
"BUILD_JOB_NAME",
"BUILD_TEAM_NAME",
"ATC_EXTERNAL_URL",
"BUILD_ID",
"BUILD_PIPELINE_NAME"
] | [] | ["BUILD_NAME", "BUILD_JOB_NAME", "BUILD_TEAM_NAME", "ATC_EXTERNAL_URL", "BUILD_ID", "BUILD_PIPELINE_NAME"] | go | 6 | 0 | |
scaper_concept/venv/lib/python3.9/site-packages/_distutils_hack/__init__.py | import sys
import os
import re
import importlib
import warnings
is_pypy = '__pypy__' in sys.builtin_module_names
warnings.filterwarnings('ignore',
r'.+ distutils\b.+ deprecated',
DeprecationWarning)
def warn_distutils_present():
if 'distutils' not in sys.modules... | [] | [] | [
"SETUPTOOLS_USE_DISTUTILS"
] | [] | ["SETUPTOOLS_USE_DISTUTILS"] | python | 1 | 0 | |
stackstate_checks_dev/tests/tooling/commands/test_create.py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
import sys
from stackstate_checks.dev import EnvVars, run_command
from stackstate_checks.dev.utils import chdir, remove_path
from stackstate_checks.dev._env import TESTING_PLUGIN, E2E_PREFIX
HERE = os.... | [] | [] | [] | [] | [] | python | 0 | 0 | |
scripts/test_globalF.py | import argparse
import os
import time
import pickle
import numpy as np
import torch
from torch.utils.model_zoo import load_url
from torchvision import transforms
from cirtorch.models.GF_net import init_network, extract_vectors
from cirtorch.datasets.datahelpers import cid2filename
from cirtorch.datasets.testdataset ... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
utils/utils.go | package utils
import (
"bytes"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"index/suffixarray"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path/filepath"
"runtime"
"strconv"
"strings"
"sync"
"time"
)
// Go is a basic promise implementation: it wraps calls a function in a goroutine,... | [
"\"DEBUG\""
] | [] | [
"DEBUG"
] | [] | ["DEBUG"] | go | 1 | 0 | |
gomplate_test.go | package gomplate
import (
"bytes"
"context"
"net/http/httptest"
"os"
"path/filepath"
"testing"
"github.com/spf13/afero"
"text/template"
"github.com/hairyhenderson/gomplate/v3/aws"
"github.com/hairyhenderson/gomplate/v3/conv"
"github.com/hairyhenderson/gomplate/v3/data"
"github.com/hairyhenderson/gomplat... | [
"\"USER\""
] | [] | [
"USER"
] | [] | ["USER"] | go | 1 | 0 | |
mlapi/app.py | import json
# import sqlite3
import os
import logging
import coloredlogs
coloredlogs.install(level='DEBUG', format='%(levelname)s%(asctime)s:%(message)s',)
from flask import request, url_for, Response, jsonify, g, redirect
from flask_api import FlaskAPI, status, exceptions
from flask_api.decorators import set_parsers
... | [] | [] | [
"APP_SETTINGS"
] | [] | ["APP_SETTINGS"] | python | 1 | 0 | |
core/src/main/java/org/zstack/core/Platform.java | package org.zstack.core;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.LocaleUtils;
import org.apache.commons.lang.RandomStringUtils;
import org.apache.commons.lang.StringUtils;
import org.reflections.Reflections;
import org.springframework.beans.factory.BeanFactory;
import org.springframework... | [
"\"ZSTACK_MANAGEMENT_SERVER_IP\""
] | [] | [
"ZSTACK_MANAGEMENT_SERVER_IP"
] | [] | ["ZSTACK_MANAGEMENT_SERVER_IP"] | java | 1 | 0 | |
src/shotgunEventDaemon.py | #!/usr/bin/env python
#
# Init file for Shotgun event daemon
#
# chkconfig: 345 99 00
# description: Shotgun event daemon
#
### BEGIN INIT INFO
# Provides: shotgunEvent
# Required-Start: $network
# Should-Start: $remote_fs
# Required-Stop: $network
# Should-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Short-Description:... | [] | [] | [] | [] | [] | python | 0 | 0 | |
examples/custom_start.py | import asyncio
import sys
import logging
import json
from pymadoka.controller import Controller
from pymadoka.connection import discover_devices, force_device_disconnect
logger = logging.getLogger(__name__)
async def main(madoka):
try:
await force_device_disconnect(madoka.connection.address)
awai... | [] | [] | [] | [] | [] | python | null | null | null |
test/pr_sdk_test_server_test.py | # -*- coding: utf-8 -*-
import unittest
import os # noqa: F401
import json # noqa: F401
import time
import requests
from os import environ
try:
from ConfigParser import ConfigParser # py2
except:
from configparser import ConfigParser # py3
from pprint import pprint # noqa: F401
from biokbase.workspace.c... | [] | [] | [
"SDK_CALLBACK_URL"
] | [] | ["SDK_CALLBACK_URL"] | python | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.