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
reseval/server/heroku.py
import http.client import json import os import tarfile import tempfile import time from pathlib import Path import reseval ############################################################################### # Heroku server management ############################################################################### def ...
[]
[]
[ "HerokuAccessKey" ]
[]
["HerokuAccessKey"]
python
1
0
python/dglke/models/general_models.py
# -*- coding: utf-8 -*- # # general_models.py # # Copyright 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. # You may obtain a copy of the License at # # http://www.ap...
[]
[]
[ "DGLBACKEND" ]
[]
["DGLBACKEND"]
python
1
0
sdk/identity/azure-identity/tests/test_client_secret_credential_async.py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import time from unittest.mock import Mock, patch from urllib.parse import urlparse from azure.core.credentials import AccessToken from azure.core.exceptions import Cli...
[]
[]
[]
[]
[]
python
0
0
wgengine/magicsock/magicsock_test.go
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package magicsock import ( "bytes" "context" crand "crypto/rand" "crypto/tls" "encoding/binary" "encoding/json" "errors" "fmt" "io/ioutil"...
[ "\"RUN_CURSED_TESTS\"" ]
[]
[ "RUN_CURSED_TESTS" ]
[]
["RUN_CURSED_TESTS"]
go
1
0
run_summarization.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # Modifications Copyright 2017 Abigail See # # 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...
[]
[]
[ "CUDA_VISIBLE_DEVICES" ]
[]
["CUDA_VISIBLE_DEVICES"]
python
1
0
pkg/api/testapi/testapi.go
/* Copyright 2014 Google 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 applicable law or agreed to in ...
[ "\"KUBE_API_VERSION\"" ]
[]
[ "KUBE_API_VERSION" ]
[]
["KUBE_API_VERSION"]
go
1
0
commons/facts.go
package commons import ( log "github.com/Sirupsen/logrus" "net" "os/exec" "os" ) //Facts store useful info about the node type Facts struct { Addresses map[string]string HasChanged bool `json:"-"` Container string City string CountryCode string CountryName...
[ "\"container\"", "\"container\"" ]
[]
[ "container" ]
[]
["container"]
go
1
0
update_pic.py
import os import django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "movie.settings") django.setup() base_dir = '../media/movie_cover' files = os.listdir(base_dir) from populate_data.populate_movies import replace_special_char for file in files: os.rename(os.path.join(base_dir, file), os.path.join(base_dir...
[]
[]
[]
[]
[]
python
0
0
setup.py
#!/usr/bin/env python # # Copyright 2017 Pixar Animation Studios # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted...
[]
[]
[ "OTIO_DEFAULT_MEDIA_LINKER" ]
[]
["OTIO_DEFAULT_MEDIA_LINKER"]
python
1
0
nodeup/pkg/model/containerd_test.go
/* Copyright 2019 The Kubernetes 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, ...
[ "\"VERIFY_HASHES\"" ]
[]
[ "VERIFY_HASHES" ]
[]
["VERIFY_HASHES"]
go
1
0
plugins/inputs/eii_msgbus/config.go
/* Copyright (c) 2021 Intel Corporation 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, merge, publish, distribut...
[ "\"DEV_MODE\"" ]
[]
[ "DEV_MODE" ]
[]
["DEV_MODE"]
go
1
0
test/TEX/multi-run.py
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, merge, publish, ...
[]
[]
[ "PATH" ]
[]
["PATH"]
python
1
0
SimpleCV/Features/HaarLikeFeature.py
from SimpleCV.base import * from SimpleCV.ImageClass import Image class HaarLikeFeature(): """ Create a single Haar feature and optionally set the regions that define the Haar feature and its name. The formal of the feature is The format is [[[TL],[BR],SIGN],[[TL],[BR],SIGN].....] Where TR and B...
[]
[]
[]
[]
[]
python
null
null
null
trypy.py
from flask import Flask, render_template, request, redirect, url_for import base64 import re import numpy as np from io import BytesIO from tkinter import * from PIL import Image, ImageTk import time import threading import cv2 import os from sklearn.model_selection import train_test_split import matplotl...
[]
[]
[ "TF_CPP_MIN_LOG_LEVEL" ]
[]
["TF_CPP_MIN_LOG_LEVEL"]
python
1
0
src/server/oasisapi/wsgi.py
""" WSGI config for oasisapi 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
[]
[]
[]
[]
[]
python
0
0
conanfile.py
# -*- coding: utf-8 -*- # # Copyright 2012-2019 CNRS-UM LIRMM, CNRS-AIST JRL # from conans import ConanFile, CMake, tools from conans.tools import os_info, SystemPackageTool import os import shutil import subprocess import sys def get_python_version(cmd = 'python'): # Get the version of the `cmd` command assumed ...
[]
[]
[ "PATH", "PYTHONPATH" ]
[]
["PATH", "PYTHONPATH"]
python
2
0
owner/manager.go
// Copyright 2017 PingCAP, 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 i...
[ "\"tidb_manager_ttl\"" ]
[]
[ "tidb_manager_ttl" ]
[]
["tidb_manager_ttl"]
go
1
0
bot.py
''' MIT License Copyright (c) 2017 Kyb3r 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, merge, publish, distrib...
[]
[]
[ "OWNERS", "STATUS", "TOKEN", "PREFIX", "GUILD_ID" ]
[]
["OWNERS", "STATUS", "TOKEN", "PREFIX", "GUILD_ID"]
python
5
0
locallibrary/settings.py
""" Django settings for locallibrary project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import...
[]
[]
[ "DJANGO_DEBUG", "DJANGO_SECRET_KEY" ]
[]
["DJANGO_DEBUG", "DJANGO_SECRET_KEY"]
python
2
0
data/raw/hbase/hbase-examples/src/main/java/org/apache/hadoop/hbase/thrift/HttpDoAsClient.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"); ...
[ "\"KRB5CCNAME\"" ]
[]
[ "KRB5CCNAME" ]
[]
["KRB5CCNAME"]
java
1
0
torch/testing/_internal/common_distributed.py
from contextlib import contextmanager from datetime import timedelta from enum import Enum import faulthandler import multiprocessing from io import StringIO import os import sys import tempfile import threading import time import unittest import logging import traceback import types from typing import NamedTuple, Opt...
[]
[]
[ "TEMP_DIR", "INIT_METHOD", "NCCL_ASYNC_ERROR_HANDLING\"\n ", "NCCL_ASYNC_ERROR_HANDLING", "BACKEND", "NCCL_BLOCKING_WAIT", "TORCH_DISTRIBUTED_DEBUG", "NCCL_ASYNC_ERROR_HANDLING\"\n ", "NCCL_BLOCKING_WAIT\"\n ", "WORLD_SIZE" ]
[]
["TEMP_DIR", "INIT_METHOD", "NCCL_ASYNC_ERROR_HANDLING\"\n ", "NCCL_ASYNC_ERROR_HANDLING", "BACKEND", "NCCL_BLOCKING_WAIT", "TORCH_DISTRIBUTED_DEBUG", "NCCL_ASYNC_ERROR_HANDLING\"\n ", "NCCL_BLOCKING_WAIT\"\n ", "WORLD_SIZE"]
python
10
0
testrunner.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2017, wradlib developers. # Distributed under the MIT License. See LICENSE.txt for more info. import sys import os import io import getopt import unittest import doctest import inspect from multiprocessing import Process, Queue import nbformat from nbconver...
[]
[]
[ "WRADLIB_NOTEBOOKS", "WRADLIB_BUILD_DIR" ]
[]
["WRADLIB_NOTEBOOKS", "WRADLIB_BUILD_DIR"]
python
2
0
bot_tg.py
import logging import os import random import redis import telegram from dotenv import load_dotenv from functools import partial from bot_utils import get_arguments from bot_utils import get_quiz_qa from enum import Enum from telegram.ext import ConversationHandler from telegram.ext import CommandHandler from telegra...
[]
[]
[ "REDIS-BASE", "TELEGRAM-TOKEN", "REDIS-PASSWORD", "REDIS-PORT" ]
[]
["REDIS-BASE", "TELEGRAM-TOKEN", "REDIS-PASSWORD", "REDIS-PORT"]
python
4
0
hackpack/app.py
import re from flask import Flask from flask import render_template from flask import url_for from flask import request from flask import session import random import json import os import redis from twilio import twiml from twilio.util import TwilioCapability # Declare and configure application app = Flask(__name__...
[]
[]
[ "REDISTOGO_URL" ]
[]
["REDISTOGO_URL"]
python
1
0
recipes_exam/wsgi.py
""" WSGI config for recipes_exam 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_...
[]
[]
[]
[]
[]
python
0
0
pkg/terminal/terminal.go
package terminal import ( "fmt" "io" "net/rpc" "os" "os/signal" "runtime" "strings" "sync" "syscall" "github.com/peterh/liner" "github.com/go-delve/delve/pkg/config" "github.com/go-delve/delve/pkg/terminal/starbind" "github.com/go-delve/delve/service" "github.com/go-delve/delve/service/api" ) const ( ...
[ "\"TERM\"" ]
[]
[ "TERM" ]
[]
["TERM"]
go
1
0
mongo/change_stream_test.go
package mongo import ( "context" "os" "testing" "time" "github.com/Vincent20101/mongo-go-driver/bson" "github.com/Vincent20101/mongo-go-driver/core/command" "github.com/Vincent20101/mongo-go-driver/core/option" "github.com/stretchr/testify/require" ) func isServerError(err error) bool { _, ok := err.(comman...
[ "\"TOPOLOGY\"", "\"TOPOLOGY\"", "\"TOPOLOGY\"", "\"TOPOLOGY\"", "\"TOPOLOGY\"", "\"TOPOLOGY\"" ]
[]
[ "TOPOLOGY" ]
[]
["TOPOLOGY"]
go
1
0
src/main/java/com/github/quartz/config/QuartzAutoConfiguration.java
package com.github.quartz.config; import com.github.quartz.PropertyPlaceholder; import com.github.quartz.http.ScheduleExecutor; import com.github.quartz.http.ScheduleExecutorImpl; import com.github.quartz.http.ScheduleServlet; import com.github.quartz.jdbc.QuartzRepository; import com.github.quartz.model.assist.STATUS...
[ "\"QUARTZ_CONFIG_LOCATION\"" ]
[]
[ "QUARTZ_CONFIG_LOCATION" ]
[]
["QUARTZ_CONFIG_LOCATION"]
java
1
0
scripts/mixexpDemoOneToMany.py
import pyprobml_utils as pml import matplotlib.pyplot as plt import numpy as np import pandas as pd from scipy.special import logsumexp from sklearn.linear_model import LinearRegression from scipy.stats import multivariate_normal import pyprobml_utils as pml n = 200 np.random.seed(1) y = np.random.rand(n, 1) eta = np....
[]
[]
[]
[]
[]
python
null
null
null
ddtrace/tracer/sampler.go
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016 Datadog, Inc. package tracer import ( "encoding/json" "fmt" "io" "math" "os" "regexp" "...
[ "\"DD_TRACE_SAMPLING_RULES\"", "\"DD_TRACE_SAMPLE_RATE\"", "\"DD_TRACE_RATE_LIMIT\"" ]
[]
[ "DD_TRACE_SAMPLE_RATE", "DD_TRACE_RATE_LIMIT", "DD_TRACE_SAMPLING_RULES" ]
[]
["DD_TRACE_SAMPLE_RATE", "DD_TRACE_RATE_LIMIT", "DD_TRACE_SAMPLING_RULES"]
go
3
0
tests/test___main__.py
import os import random import pytest from click.testing import CliRunner from finance.__main__ import ( create_all, drop_all, fetch_stock_values, import_fund, import_sp500_records, import_stock_records, import_stock_values, insert_stock_assets, insert_test_data, ) from finance.exc...
[]
[]
[ "SBF_TEST_DB_URL" ]
[]
["SBF_TEST_DB_URL"]
python
1
0
client/lcd/lcd_test.go
package lcd import ( "encoding/base64" "encoding/hex" "fmt" "net/http" "os" "regexp" "strings" "testing" "time" "github.com/stretchr/testify/require" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/keys" clienttx "github.com/cosmos/cosmos-sdk/client/tx" "github.com/cosmos/cos...
[ "\"VERSION\"" ]
[]
[ "VERSION" ]
[]
["VERSION"]
go
1
0
pkg/controller/jmeter_integration_test.go
package controller import ( "context" "log" "os" "testing" "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" batchV1 "k8s.io/api/batch/v1" coreV1 "k8s.io/api/core/v1" metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" _ "github.com/hellofresh/kanga...
[ "\"KUBECONFIG\"" ]
[]
[ "KUBECONFIG" ]
[]
["KUBECONFIG"]
go
1
0
test/integration/test_pulsar_embedded_containers.py
import os from galaxy_test.base.populators import ( DatasetPopulator, ) from galaxy_test.driver import integration_util from .test_containerized_jobs import ( disable_dependency_resolution, MulledJobTestCases, skip_if_container_type_unavailable, ) SCRIPT_DIRECTORY = os.path.abspath(os.path.dirname(__f...
[]
[]
[ "HOME" ]
[]
["HOME"]
python
1
0
djpsilobus/bin/delete_item.py
# -*- coding: utf-8 -*- import os, sys # env sys.path.append('/usr/lib/python2.7/dist-packages/') sys.path.append('/usr/lib/python2.7/') sys.path.append('/usr/local/lib/python2.7/dist-packages/') sys.path.append('/data2/django_1.9/') sys.path.append('/data2/django_projects/') sys.path.append('/data2/django_third/') os...
[]
[]
[]
[]
[]
python
0
0
current-service/svc/server/cli/cli.go
// Code generated by truss. DO NOT EDIT. // Rerunning truss will overwrite this file. // Version: d5b3153b9f // Version Date: Thu Jul 27 18:20:46 UTC 2017 package cli import ( "flag" "fmt" "os" "github.com/zaquestion/current/current-service/svc/server" ) // Config will be populated by ENV vars on initilization ...
[ "\"DEBUG_ADDR\"", "\"PORT\"", "\"HTTP_ADDR\"", "\"GRPC_ADDR\"" ]
[]
[ "PORT", "DEBUG_ADDR", "HTTP_ADDR", "GRPC_ADDR" ]
[]
["PORT", "DEBUG_ADDR", "HTTP_ADDR", "GRPC_ADDR"]
go
4
0
rrs/tools/common.py
# Common functionality for RRS tools. # # Copyright (C) 2015 Intel Corporation # Author: Anibal Limon <anibal.limon@linux.intel.com> # # Licensed under the MIT license, see COPYING.MIT for details import sys import os import logging class DryRunRollbackException(Exception): pass def common_setup(): sys.pat...
[]
[]
[ "SSH_ASKPASS", "GIT_ASKPASS", "GIT_TERMINAL_PROMPT" ]
[]
["SSH_ASKPASS", "GIT_ASKPASS", "GIT_TERMINAL_PROMPT"]
python
3
0
scripts/deta-micros/quotes-api/main.py
import json import os import random from deta import App, Deta from dotenv import load_dotenv from fastapi import FastAPI load_dotenv('env') app = App(FastAPI()) deta = Deta(os.environ.get('PROJECT_KEY')) db = deta.Base('quotes') db_appends = { 'posted_facebook_at': 'NULL', 'posted_telegram_at': 'NULL', ...
[]
[]
[ "PROJECT_KEY" ]
[]
["PROJECT_KEY"]
python
1
0
runtime/bots/irc/main.py
import socket import random import os import requests import re import github import minecraft import string import sys HOST = "irc.libera.chat" PORT = 6667 NICK = "DoveBot" #PASSWORD = os.getenv("PASSWORD") CHANNEL = "#dovegaming" SERVER = "" readbuffer = "" def send(message): s.send(message) print(message) s ...
[]
[]
[ "PASSWORD" ]
[]
["PASSWORD"]
python
1
0
pkg/csi/service/wcpguest/controller.go
/* Copyright 2019 The Kubernetes 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, ...
[]
[]
[]
[]
[]
go
null
null
null
internal/geo/resolver_test.go
package geo import ( "os" "strings" "testing" "github.com/stretchr/testify/require" ) func Test_GeoLiteImpl(t *testing.T) { geoResolver, err := NewGeoResolver(&MaxMindGeoLiteConfig{"../../deploy/GeoLite2-City.mmdb"}) if strings.Contains(err.Error(), "no such file") { t.Skip(err.Error()) return } require....
[ "\"IPSTACK_ACCESS_KEY\"" ]
[]
[ "IPSTACK_ACCESS_KEY" ]
[]
["IPSTACK_ACCESS_KEY"]
go
1
0
pkg/api/api.go
// Copyright (c) The Thanos Authors. // Licensed under the Apache License 2.0. // Copyright 2016 The Prometheus 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....
[ "\"GOGC\"", "\"GODEBUG\"" ]
[]
[ "GOGC", "GODEBUG" ]
[]
["GOGC", "GODEBUG"]
go
2
0
imcsdk/mometa/mgmt/MgmtBackup.py
"""This module contains the general information for MgmtBackup ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class MgmtBackupConsts: ADMIN_STATE_DISABLED = "disabled" ADMIN_STATE_ENABLED = "enabled" FSM_RMT_INV_ER...
[]
[]
[]
[]
[]
python
null
null
null
pkg/server/etcd.go
package server import ( "context" "io/ioutil" "os" "path/filepath" "time" "github.com/rancher/k3s/pkg/etcd" "github.com/sirupsen/logrus" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // setETCDLabelsAndAnnotations will set the etcd role label if not exists also it // sets special annotaitons on the node ob...
[ "\"NODE_NAME\"" ]
[]
[ "NODE_NAME" ]
[]
["NODE_NAME"]
go
1
0
cmd/sqlflow/main_test.go
// Copyright 2020 The SQLFlow 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 applicab...
[ "\"SQLFLOW_TEST_DB\"", "\"SQLFLOW_TEST_REPL_FAST_FAIL_INTERACTIVE_OR_NOT\"", "\"SQLFLOW_TEST_REPL_FAST_FAIL_INTERACTIVE_OR_NOT\"", "\"SQLFLOW_TEST_DOT_ENV\"", "\"SQLFLOW_TEST_DOT_ENV\"", "\"SQLFLOW_TEST_DOT_ENV\"", "\"SQLFLOW_TEST_DOT_ENV\"" ]
[]
[ "SQLFLOW_TEST_DB", "SQLFLOW_TEST_DOT_ENV", "SQLFLOW_TEST_REPL_FAST_FAIL_INTERACTIVE_OR_NOT" ]
[]
["SQLFLOW_TEST_DB", "SQLFLOW_TEST_DOT_ENV", "SQLFLOW_TEST_REPL_FAST_FAIL_INTERACTIVE_OR_NOT"]
go
3
0
audioset/dataset.py
import io import os import random import av from torch.utils.data import Dataset as TorchDataset, ConcatDataset, DistributedSampler, WeightedRandomSampler, RandomSampler import torch import numpy as np import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from audioset.audiodatasets ...
[]
[]
[ "num_nodes", "NODE_RANK", "DDP", "LMODE", "TMPDIR" ]
[]
["num_nodes", "NODE_RANK", "DDP", "LMODE", "TMPDIR"]
python
5
0
electrumsv_sdk/builtin_components/node/node.py
import logging import os from argparse import ArgumentParser from pathlib import Path from typing import Optional, Tuple, List, Set from electrumsv_sdk.sdk_types import AbstractPlugin from electrumsv_sdk.config import CLIInputs, Config from electrumsv_sdk.components import Component, ComponentTypedDict, ComponentMetad...
[]
[]
[ "NODE_ZMQ_PORT", "BITCOIN_NETWORK", "NODE_P2P_PORT", "NODE_RPCALLOWIP", "NODE_RPCBIND", "NODE_PORT" ]
[]
["NODE_ZMQ_PORT", "BITCOIN_NETWORK", "NODE_P2P_PORT", "NODE_RPCALLOWIP", "NODE_RPCBIND", "NODE_PORT"]
python
6
0
src/robusta/runner/log_init.py
import logging import os import os.path import colorlog def init_logging(): logging_level = os.environ.get("LOG_LEVEL", "INFO") logging_format = "%(log_color)s%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s" logging_datefmt = "%Y-%m-%d %H:%M:%S" if os.environ.get("ENABLE_COLORED_LOGS", "false").l...
[]
[]
[ "ENABLE_COLORED_LOGS", "LOG_LEVEL" ]
[]
["ENABLE_COLORED_LOGS", "LOG_LEVEL"]
python
2
0
commands/qotd/qotd.go
package qotd import ( "errors" "fmt" "io/ioutil" "net/http" "os" "time" "gopkg.in/yaml.v2" "github.com/forestgiant/go-simpletime" "github.com/jesselucas/slackcmd/slack" "github.com/jesselucas/validator" ) // Command struct is only defined to add the Request method type Command struct { } // Request is us...
[ "\"SLACK_KEY_QOTD\"", "\"QOTD_URL\"" ]
[]
[ "QOTD_URL", "SLACK_KEY_QOTD" ]
[]
["QOTD_URL", "SLACK_KEY_QOTD"]
go
2
0
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/evaluation_worker.py
'''This module is responsible for launching evaluation jobs''' import argparse import json import logging import os import time import rospy from rl_coach.base_parameters import TaskParameters from rl_coach.core_types import EnvironmentSteps from rl_coach.data_stores.data_store import SyncFiles from markov import util...
[]
[]
[ "AWS_ROBOMAKER_SIMULATION_JOB_ARN" ]
[]
["AWS_ROBOMAKER_SIMULATION_JOB_ARN"]
python
1
0
lspy/src/bot.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple micro-framework for small web applications. It offers request dispatching (Routes) with url parameter support, templates, a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and template engines - all in a single file an...
[]
[]
[ "BOTTLE_LOCKFILE", "BOTTLE_CHILD" ]
[]
["BOTTLE_LOCKFILE", "BOTTLE_CHILD"]
python
2
0
example/exclient/db/db.go
package db import ( "database/sql" "flag" "os" "testing" _ "github.com/go-sql-driver/mysql" "github.com/luno/reflex/example/internal/db" "github.com/luno/reflex/rsql" "github.com/stretchr/testify/require" ) var dbURI = flag.String("db_example_uri", getDefaultURI(), "URI of reflex example client DB") var Curs...
[ "\"DB_EXAMPLE_CLIENT_URI\"" ]
[]
[ "DB_EXAMPLE_CLIENT_URI" ]
[]
["DB_EXAMPLE_CLIENT_URI"]
go
1
0
gopls/internal/regtest/diagnostics/diagnostics_test.go
// Copyright 2020 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. package diagnostics import ( "context" "fmt" "os/exec" "testing" "golang.org/x/tools/gopls/internal/hooks" . "golang.org/x/tools/internal/lsp/regtest" ...
[ "\"\"" ]
[]
[ "" ]
[]
[""]
go
1
0
main.go
package main import ( "context" "errors" "fmt" "log" "os" "time" dialogflow "cloud.google.com/go/dialogflow/apiv2" dialogflowpb "google.golang.org/genproto/googleapis/cloud/dialogflow/v2" "github.com/go-telegram-bot-api/telegram-bot-api" ) const ( ruLanguage = "ru" errorMessage = "Повторите, пожалуйста...
[ "\"TELEGRAM_API_TOKEN\"", "\"PROJECT_ID\"", "\"SESSION_ID\"" ]
[]
[ "SESSION_ID", "TELEGRAM_API_TOKEN", "PROJECT_ID" ]
[]
["SESSION_ID", "TELEGRAM_API_TOKEN", "PROJECT_ID"]
go
3
0
training/utils.py
import numpy as np import os os.environ["TOKENIZERS_PARALLELISM"] = "false" # disable warning when using smart batching import pandas as pd from torch.utils.data import Dataset from sklearn.model_selection import StratifiedKFold from torch.utils.data import Dataset from pytorch_lightning.callbacks import ModelCheckpo...
[]
[]
[ "TOKENIZERS_PARALLELISM" ]
[]
["TOKENIZERS_PARALLELISM"]
python
1
0
api/config.py
import os from dotenv import load_dotenv, find_dotenv #this will load all the envars from a .env file located in the project root (api) load_dotenv(find_dotenv()) CONFIGURATION = { "development": "config.DevConfig", "testing": "config.TestConfig", "production": "config.Config", "default": "config.Conf...
[]
[]
[ "DATABASE_TEST_HOST", "DATABASE_HOST", "SOLR_BASE_URL", "NRO_EXTRACTOR_URI", "JWT_OIDC_CLIENT_SECRET", "DATABASE_PORT", "JWT_OIDC_ISSUER", "JWT_OIDC_JWKS_URI", "JWT_OIDC_AUDIENCE", "DATABASE_TEST_NAME", "DATABASE_NAME", "DATABASE_TEST_PASSWORD", "DATABASE_TEST_PORT", "NRO_DB_NAME", "NRO_...
[]
["DATABASE_TEST_HOST", "DATABASE_HOST", "SOLR_BASE_URL", "NRO_EXTRACTOR_URI", "JWT_OIDC_CLIENT_SECRET", "DATABASE_PORT", "JWT_OIDC_ISSUER", "JWT_OIDC_JWKS_URI", "JWT_OIDC_AUDIENCE", "DATABASE_TEST_NAME", "DATABASE_NAME", "DATABASE_TEST_PASSWORD", "DATABASE_TEST_PORT", "NRO_DB_NAME", "NRO_PORT", "DATABASE_TEST_USERNAME"...
python
28
0
bindings/python/setup.py
from setuptools import setup, Extension from codecs import open import os cmdclass = {} long_description = "" # Build directly from cython source file(s) if user wants so (probably for some experiments). # Otherwise, pre-generated c source file(s) are used. # User has to set environment variable EDLIB_USE_CYTHON. # e...
[]
[]
[ "EDLIB_USE_CYTHON", "EDLIB_OMIT_README_RST" ]
[]
["EDLIB_USE_CYTHON", "EDLIB_OMIT_README_RST"]
python
2
0
gonder_rc.py
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.13.0) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x04\x1a\ \x00\ \x01\x08\x3e\x78\x9c\xed\x9c\x4d\x6e\xd3\x50\x14\x85\x1d\x65\x10\ \x66\x61\xc4\x...
[]
[]
[]
[]
[]
python
null
null
null
python/pyarrow/tests/test_parquet.py
# -*- coding: utf-8 -*- # 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 # "...
[]
[]
[ "PYARROW_TEST_S3_BUCKET", "PYARROW_TEST_S3_SECRET_KEY", "PYARROW_TEST_S3_ACCESS_KEY" ]
[]
["PYARROW_TEST_S3_BUCKET", "PYARROW_TEST_S3_SECRET_KEY", "PYARROW_TEST_S3_ACCESS_KEY"]
python
3
0
octavia/certificates/common/local.py
# Copyright (c) 2014 Rackspace US, 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 req...
[]
[]
[ "TLS_PASS_AMPS_DEFAULT", "OS_OCTAVIA_TLS_CA_CERT", "OS_OCTAVIA_CA_SIGNING_DIGEST", "OS_OCTAVIA_CA_KEY_PASS", "OS_OCTAVIA_TLS_CA_KEY", "OS_OCTAVIA_TLS_STORAGE" ]
[]
["TLS_PASS_AMPS_DEFAULT", "OS_OCTAVIA_TLS_CA_CERT", "OS_OCTAVIA_CA_SIGNING_DIGEST", "OS_OCTAVIA_CA_KEY_PASS", "OS_OCTAVIA_TLS_CA_KEY", "OS_OCTAVIA_TLS_STORAGE"]
python
6
0
examples/replicator/replicator_test.go
package main import ( "context" "fmt" "log" "os" "reflect" "regexp" "testing" "time" "github.com/gocql/gocql" scyllacdc "github.com/scylladb/scylla-cdc-go" ) const ( sourceAddress = "127.0.0.1" destinationAddress = "127.0.0.2" ) type schema struct { tableName string createQuery string } var ud...
[ "\"REPLICATOR_TEST_FILTER\"" ]
[]
[ "REPLICATOR_TEST_FILTER" ]
[]
["REPLICATOR_TEST_FILTER"]
go
1
0
cubanoshaciamiami/settings.py
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) try: import pymysql pymysql.install_as_MySQLdb() except ImportError: pass import dotenv env_file = os.path.join(BASE_DIR, '.env') # dotenv.read_dotenv(env_file) DEBUG = bool(int(os.environ.get('DEBUG', '0'))) DEBUG=True TEMPLATE_DEBUG = ...
[]
[]
[ "PORT", "HOST", "PASSWORD", "IN_DEV", "DEBUG", "USER_NAME", "NAME" ]
[]
["PORT", "HOST", "PASSWORD", "IN_DEV", "DEBUG", "USER_NAME", "NAME"]
python
7
0
spatial_exps/mnist_eval.py
""" Evaluation of a given checkpoint in the standard and adversarial sense. Can be called as an infinite loop going through the checkpoints in the model directory as they appear and evaluating them. Accuracy and average loss are printed and added as tensorboard summaries. """ from __future__ import absolute_import fro...
[]
[]
[ "TF_CPP_MIN_LOG_LEVEL" ]
[]
["TF_CPP_MIN_LOG_LEVEL"]
python
1
0
mi/platform/rsn/simulator/process_util.py
#!/usr/bin/env python """ @package ion.agents.platform.rsn.simulator.process_util @file ion/agents/platform/rsn/simulator/process_util.py @author Carlos Rueda @brief Utility to launch/shutdown the RSN OMS simulator as an external process. (elements adapted/simplified from driver_process.py) simple test...
[]
[]
[]
[]
[]
python
0
0
PythonVirtEnv/Lib/site-packages/win32/lib/regcheck.py
# This module is very old and useless in this day and age! It will be # removed in a few years (ie, 2009 or so...) import warnings warnings.warn("The regcheck module has been pending deprecation since build 210", category=PendingDeprecationWarning) import win32con import regutil import win32api import os impo...
[]
[]
[]
[]
[]
python
0
0
pkg/firestore/transactional_test.go
package firestore_test import ( "context" "os" "testing" "time" stdFirestore "cloud.google.com/go/firestore" "github.com/ThreeDotsLabs/watermill" "github.com/ThreeDotsLabs/watermill-firestore/pkg/firestore" "github.com/ThreeDotsLabs/watermill/message" "github.com/stretchr/testify/assert" "github.com/stretch...
[ "\"FIRESTORE_PROJECT_ID\"" ]
[]
[ "FIRESTORE_PROJECT_ID" ]
[]
["FIRESTORE_PROJECT_ID"]
go
1
0
main.go
package main import ( "encoding/json" "errors" "fmt" "io/ioutil" "net/url" "os" "os/exec" "path/filepath" "strconv" "sync" "time" log "github.com/Sirupsen/logrus" "github.com/daneshih1125/docker-volume-freenas/freenas" "github.com/daneshih1125/docker-volume-freenas/utils" "github.com/docker/go-plugins-...
[ "\"FREENAS_API_URL\"", "\"FREENAS_API_USER\"", "\"FREENAS_API_PASSWORD\"" ]
[]
[ "FREENAS_API_USER", "FREENAS_API_PASSWORD", "FREENAS_API_URL" ]
[]
["FREENAS_API_USER", "FREENAS_API_PASSWORD", "FREENAS_API_URL"]
go
3
0
concepts/concepts_service_test.go
//go:build integration // +build integration package concepts import ( "encoding/json" "errors" "fmt" "io/ioutil" "os" "path/filepath" "reflect" "sort" "strconv" "strings" "testing" "time" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/jmcvetta/neoism" "github.com/m...
[ "\"NEO4J_TEST_URL\"" ]
[]
[ "NEO4J_TEST_URL" ]
[]
["NEO4J_TEST_URL"]
go
1
0
api-examples/rbacv1/main.py
# !/usr/bin/env python3 import csv import json import os import urllib import requests try: SHIFTLEFT_ORG_ID = os.environ["SHIFTLEFT_ORG_ID"] SHIFTLEFT_ACCESS_TOKEN = os.environ["SHIFTLEFT_ACCESS_TOKEN"] except KeyError: raise SystemExit("Oops! Do not forget to set both SHIFTLEFT_ORG_ID and SHIFTLEFT_ACCE...
[]
[]
[ "SHIFTLEFT_ACCESS_TOKEN", "SHIFTLEFT_ORG_ID" ]
[]
["SHIFTLEFT_ACCESS_TOKEN", "SHIFTLEFT_ORG_ID"]
python
2
0
enterprise/dev/ci/internal/buildkite/buildkite.go
// Package buildkite defines data types that reflect Buildkite's YAML pipeline format. // // Usage: // // pipeline := buildkite.Pipeline{} // pipeline.AddStep("check_mark", buildkite.Cmd("./dev/check/all.sh")) package buildkite import ( "encoding/json" "fmt" "io" "math/rand" "os" "strconv" "strings" "tim...
[ "\"CI_FEATURE_FLAG_STATELESS\"", "\"BUILDKITE_REBUILT_FROM_BUILD_NUMBER\"" ]
[]
[ "BUILDKITE_REBUILT_FROM_BUILD_NUMBER", "CI_FEATURE_FLAG_STATELESS" ]
[]
["BUILDKITE_REBUILT_FROM_BUILD_NUMBER", "CI_FEATURE_FLAG_STATELESS"]
go
2
0
parties-and-accounts/get-accounts-with-Vega-API-client.go
package main import ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http" "os" "strings" "github.com/vegaprotocol/api-clients/go/generated/code.vegaprotocol.io/vega/proto/api" "code.vegaprotocol.io/go-wallet/wallet" "golang.org/x/net/context" "google.golang.org/grpc" ) type Req struct { Wallet strin...
[ "\"NODE_URL_GRPC\"", "\"WALLETSERVER_URL\"", "\"WALLET_NAME\"", "\"WALLET_PASSPHRASE\"" ]
[]
[ "NODE_URL_GRPC", "WALLETSERVER_URL", "WALLET_NAME", "WALLET_PASSPHRASE" ]
[]
["NODE_URL_GRPC", "WALLETSERVER_URL", "WALLET_NAME", "WALLET_PASSPHRASE"]
go
4
0
ros/node.go
package ros import ( "fmt" "net" "net/http" "os" "os/signal" "reflect" "strconv" "sync" "time" "github.com/cnord/rosgo/xmlrpc" ) const ( ApiStatusError = -1 ApiStatusFailure = 0 ApiStatusSuccess = 1 ) // *defaultNode implements Node interface // a defaultNode instance must be accessed in user gorouti...
[ "\"ROS_MASTER_URI\"" ]
[]
[ "ROS_MASTER_URI" ]
[]
["ROS_MASTER_URI"]
go
1
0
cmd/infrakit/x/vmwscript.go
package x // import "github.com/docker/infrakit/cmd/infrakit/x" import ( "context" "io/ioutil" "os" logutil "github.com/docker/infrakit/pkg/log" "github.com/docker/infrakit/pkg/types" "github.com/docker/infrakit/pkg/x/vmwscript" "github.com/spf13/cobra" ) var cmdResults = map[string]string{} //var log = logu...
[ "\"INFRAKIT_VSPHERE_VCURL\"", "\"INFRAKIT_VSPHERE_VCDATACENTER\"", "\"INFRAKIT_VSPHERE_VCDATASTORE\"", "\"INFRAKIT_VSPHERE_VCNETWORK\"", "\"INFRAKIT_VSPHERE_VCHOST\"", "\"INFRAKIT_VSPHERE_VMUSER\"", "\"INFRAKIT_VSPHERE_VMPASS\"" ]
[]
[ "INFRAKIT_VSPHERE_VMUSER", "INFRAKIT_VSPHERE_VCHOST", "INFRAKIT_VSPHERE_VCNETWORK", "INFRAKIT_VSPHERE_VCDATASTORE", "INFRAKIT_VSPHERE_VCURL", "INFRAKIT_VSPHERE_VCDATACENTER", "INFRAKIT_VSPHERE_VMPASS" ]
[]
["INFRAKIT_VSPHERE_VMUSER", "INFRAKIT_VSPHERE_VCHOST", "INFRAKIT_VSPHERE_VCNETWORK", "INFRAKIT_VSPHERE_VCDATASTORE", "INFRAKIT_VSPHERE_VCURL", "INFRAKIT_VSPHERE_VCDATACENTER", "INFRAKIT_VSPHERE_VMPASS"]
go
7
0
examples/supply-policy/main.go
package main import ( "bytes" "fmt" "html/template" "log" "net/http" "os" "time" "github.com/brianfoshee/s3post" ) // Payload is used to fill out the policy template type Payload struct { Expiration string Bucket string Key string // Redirect looks like: localhost:8080/?bucket=brianfoshee&key...
[ "\"AWS_SECRET_ACCESS_KEY\"", "\"AWS_ACCESS_KEY_ID\"" ]
[]
[ "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY" ]
[]
["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY"]
go
2
0
enterprise/internal/campaigns/resolvers/resolver_test.go
package resolvers import ( "context" "database/sql" "encoding/json" "flag" "fmt" "net/http" "os" "path/filepath" "reflect" "strings" "testing" "time" "github.com/dnaeon/go-vcr/cassette" "github.com/google/go-cmp/cmp" graphql "github.com/graph-gophers/graphql-go" gqlerrors "github.com/graph-gophers/gra...
[ "\"GITHUB_TOKEN\"", "\"BITBUCKET_SERVER_URL\"", "\"BITBUCKET_SERVER_TOKEN\"", "\"GITHUB_TOKEN\"" ]
[]
[ "BITBUCKET_SERVER_URL", "BITBUCKET_SERVER_TOKEN", "GITHUB_TOKEN" ]
[]
["BITBUCKET_SERVER_URL", "BITBUCKET_SERVER_TOKEN", "GITHUB_TOKEN"]
go
3
0
software/motion_estimate/vo_estimate/scripts/send_a_minimal_lidar_state.py
#!/usr/bin/python import os,sys home_dir =os.getenv("HOME") #print home_dir sys.path.append(home_dir + "/drc/software/build/lib/python2.7/site-packages") sys.path.append(home_dir + "/drc/software/build/lib/python2.7/dist-packages") import math import lcm from bot_core.pose_t import pose_t from bot_core.rigid_transform...
[]
[]
[ "HOME" ]
[]
["HOME"]
python
1
0
firestorefastapi/main.py
import os import time from typing import Any, Callable from fastapi import FastAPI, Request from firestorefastapi import __project_id__, __version__ from firestorefastapi.routers import health, item os.environ["TZ"] = "UTC" # # create the api # api = FastAPI(title=f"Firestore FastAPI: {__project_id__}", version=_...
[]
[]
[ "TZ" ]
[]
["TZ"]
python
1
0
hotelrooms/hotelrooms/settings.py
""" Django settings for hotelrooms project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os...
[]
[]
[ "DB_HOST" ]
[]
["DB_HOST"]
python
1
0
vendor/github.com/oracle/oci-go-sdk/v53/core/attach_instance_pool_instance_details.go
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei...
[]
[]
[]
[]
[]
go
null
null
null
vendor/github.com/docker/swarmkit/cmd/swarmctl/main.go
package main import ( "os" "github.com/docker/swarmkit/cmd/swarmctl/cluster" "github.com/docker/swarmkit/cmd/swarmctl/network" "github.com/docker/swarmkit/cmd/swarmctl/node" "github.com/docker/swarmkit/cmd/swarmctl/service" "github.com/docker/swarmkit/cmd/swarmctl/task" "github.com/docker/swarmkit/version" "g...
[ "\"SWARM_SOCKET\"" ]
[]
[ "SWARM_SOCKET" ]
[]
["SWARM_SOCKET"]
go
1
0
pype/plugins/maya/load/load_ass.py
from avalon import api import pype.hosts.maya.plugin import os from pype.api import config import clique class AssProxyLoader(pype.hosts.maya.plugin.ReferenceLoader): """Load the Proxy""" families = ["ass"] representations = ["ass"] label = "Reference .ASS standin with Proxy" order = -10 ico...
[]
[]
[ "AVALON_PROJECT" ]
[]
["AVALON_PROJECT"]
python
1
0
contrib/nydusify/tests/nydusify.go
// Copyright 2020 Ant Group. All rights reserved. // // SPDX-License-Identifier: Apache-2.0 package tests import ( "context" "fmt" "os" "path/filepath" "testing" "github.com/stretchr/testify/assert" "github.com/dragonflyoss/image-service/contrib/nydusify/pkg/checker" "github.com/dragonflyoss/image-service/c...
[ "\"NYDUS_IMAGE\"", "\"NYDUSD\"", "\"BACKEND_TYPE\"", "\"BACKEND_TYPE\"", "\"BACKEND_CONFIG\"", "\"BACKEND_CONFIG\"" ]
[]
[ "BACKEND_TYPE", "NYDUSD", "BACKEND_CONFIG", "NYDUS_IMAGE" ]
[]
["BACKEND_TYPE", "NYDUSD", "BACKEND_CONFIG", "NYDUS_IMAGE"]
go
4
0
incubator/virtualcluster/pkg/syncer/resources/service/controller.go
/* Copyright 2019 The Kubernetes 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, ...
[]
[]
[]
[]
[]
go
null
null
null
scripts/insert.py
#!/usr/bin/env python3 import os import subprocess import sys import shutil import binascii import textwrap import platform import sys from datetime import datetime OFFSET_TO_PUT = 0x900000 SOURCE_ROM = "BPRE0.gba" def get_path(): if platform.system() == 'Windows': return os.environ.get('Path').split(';') return...
[]
[]
[ "PATH", "Path" ]
[]
["PATH", "Path"]
python
2
0
code/common/preprocessing.py
from nltk.tokenize import RegexpTokenizer # from stop_words import get_stop_words from nltk.stem.porter import PorterStemmer from string import punctuation import re from nltk.corpus import stopwords en_stop = stopwords.words('english') from nltk.corpus import wordnet import html from common.commons import * CODE_PATH...
[]
[]
[ "CODE_PATH" ]
[]
["CODE_PATH"]
python
1
0
deploy/aws-lambda/main.go
package main import ( "os" "fmt" "strconv" "time" "github.com/akrylysov/algnhsa" "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/jhaals/yopass/pkg/yopass" ) func main() { maxLength, _ := strconv.Atoi(os.Getenv("MAX_LENGTH"))...
[ "\"MAX_LENGTH\"", "\"TABLE_NAME\"" ]
[]
[ "TABLE_NAME", "MAX_LENGTH" ]
[]
["TABLE_NAME", "MAX_LENGTH"]
go
2
0
tools/dns.go
package tools import ( "context" "errors" "log" "os" "github.com/cloudflare/cloudflare-go" ) var ErrorDnsProviderNotFound = errors.New("DNS provider cannot be found") type DnsProviderType string const ( DnsCloudflare DnsProviderType = "cf" ) type IDnsProvider interface { AddRecord(record string, ip string)...
[ "\"CF_TOKEN\"", "\"CF_ZONE_ID\"" ]
[]
[ "CF_ZONE_ID", "CF_TOKEN" ]
[]
["CF_ZONE_ID", "CF_TOKEN"]
go
2
0
ssl_check/send_to_prometheus.py
import requests import urllib.parse import os from prometheus_client import CollectorRegistry, Gauge, push_to_gateway def to_prometheus_pushgateway(prometheus_pushgateway, url): try: timeout = 1 if not os.getenv('PUSH_GATEWAY_TIMEOUT') else os.getenv('PUSH_GATEWAY_TIMEOUT') pg_server = os...
[]
[]
[ "PUSH_GATEWAY_TIMEOUT", "PUSH_GATEWAY_PORT", "PUSH_GATEWAY_SERVER" ]
[]
["PUSH_GATEWAY_TIMEOUT", "PUSH_GATEWAY_PORT", "PUSH_GATEWAY_SERVER"]
python
3
0
train.py
import os, sys import time import torch from torch import optim import torch.nn as nn import timeit import math import numpy as np import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import torch.backends.cudnn as cudnn from argparse import ArgumentParser # user from builders.model_builder imp...
[]
[]
[ "CUDA_VISIBLE_DEVICES" ]
[]
["CUDA_VISIBLE_DEVICES"]
python
1
0
api/src/opentrons/hardware_control/module_control.py
import logging import asyncio import os import re from typing import List, Tuple, Optional from glob import glob from opentrons.config import IS_ROBOT, IS_LINUX from opentrons.drivers.rpi_drivers import types from opentrons.hardware_control.modules import ModuleAtPort from .execution_manager import ExecutionManager f...
[]
[]
[ "OT_THERMOCYCLER_EMULATOR_URI", "OT_TEMPERATURE_EMULATOR_URI", "OT_MAGNETIC_EMULATOR_URI" ]
[]
["OT_THERMOCYCLER_EMULATOR_URI", "OT_TEMPERATURE_EMULATOR_URI", "OT_MAGNETIC_EMULATOR_URI"]
python
3
0
pkg/scmprovider/client.go
package scmprovider import ( "context" "fmt" "net/url" "os" "github.com/jenkins-x/go-scm/scm" "k8s.io/apimachinery/pkg/util/sets" ) // ToClient converts the scm client to an API that the prow plugins expect func ToClient(client *scm.Client, botName string) *Client { return &Client{client: client, botName: bot...
[ "\"GIT_USER\"" ]
[]
[ "GIT_USER" ]
[]
["GIT_USER"]
go
1
0
test/integration/test_containerized_jobs.py
"""Integration tests for running tools in Docker containers.""" import os import unittest from base import integration_util from base.populators import ( DatasetPopulator, ) from galaxy.tools.deps.commands import which from .test_job_environments import RunsEnvironmentJobs SCRIPT_DIRECTORY = os.path.abspath(os....
[]
[]
[ "HOME" ]
[]
["HOME"]
python
1
0
device_control_backend/src/app.py
from fastapi import FastAPI, Request from starlette.websockets import WebSocket import traceback import asyncio import psycopg2 from enums import * import smtplib from email.mime.text import MIMEText from backend_lib.websocket_manager import WebsocketManager, getVersion from backend_lib.auth import Auth import os fro...
[]
[]
[ "DB_HOST", "SLACK_BOT_TOKEN" ]
[]
["DB_HOST", "SLACK_BOT_TOKEN"]
python
2
0
tests/unit/cli/test_envutils.py
# Copyright 2013: Mirantis 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 b...
[]
[]
[ "OS_USERNAME" ]
[]
["OS_USERNAME"]
python
1
0
vendor/github.com/golangci/golangci-lint/pkg/lint/runner.go
package lint import ( "context" "fmt" "os" "runtime/debug" "strings" "github.com/pkg/errors" "github.com/golangci/golangci-lint/internal/errorutil" "github.com/golangci/golangci-lint/pkg/config" "github.com/golangci/golangci-lint/pkg/fsutils" "github.com/golangci/golangci-lint/pkg/goutil" "github.com/gola...
[ "\"GOLANGCI_COM_RUN\"" ]
[]
[ "GOLANGCI_COM_RUN" ]
[]
["GOLANGCI_COM_RUN"]
go
1
0
pkg/config/config.go
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2019 Datadog, Inc. package config import ( "bytes" "fmt" "net/url" "os" "path/filepath" ...
[ "\"DOCKER_DD_AGENT\"", "\"KUBERNETES_SERVICE_PORT\"", "\"KUBERNETES\"" ]
[]
[ "DOCKER_DD_AGENT", "KUBERNETES", "KUBERNETES_SERVICE_PORT" ]
[]
["DOCKER_DD_AGENT", "KUBERNETES", "KUBERNETES_SERVICE_PORT"]
go
3
0
atriaapp/manage.py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "atriaapp.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are...
[]
[]
[]
[]
[]
python
0
0
allennlp/common/file_utils.py
""" Utilities for working with the local dataset cache. """ import weakref from contextlib import contextmanager import glob import io import os import logging import tempfile import json from abc import ABC from collections import defaultdict from dataclasses import dataclass, asdict from datetime import timedelta fro...
[]
[]
[ "ALLENNLP_CACHE_ROOT" ]
[]
["ALLENNLP_CACHE_ROOT"]
python
1
0
pyaims/doc/sphinx/conf.py
# -*- coding: utf-8 -*- # # totor documentation build configuration file, created by # sphinx-quickstart on Mon Jan 24 17:33:44 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
[]
[]
[ "ALLOW_GUI" ]
[]
["ALLOW_GUI"]
python
1
0
drivers/spanner/spanner_test.go
package spanner import ( "context" "fmt" "os" "path/filepath" "testing" "cloud.google.com/go/spanner" cloudspanner "cloud.google.com/go/spanner" "github.com/k1LoW/tbls/schema" ) var ctx context.Context var s *schema.Schema var client *spanner.Client func TestAnalyze(t *testing.T) { ctx, client := initClien...
[ "\"GCLOUD_PROJECT\"" ]
[]
[ "GCLOUD_PROJECT" ]
[]
["GCLOUD_PROJECT"]
go
1
0