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
gds_metrics/__init__.py
import gzip import hmac import json import os from time import monotonic from flask import abort, g, request, Response from flask.signals import got_request_exception, request_finished # set multiprocess temp directory before we import prometheus_client os.environ.setdefault('prometheus_multiproc_dir', '/tmp') # noqa...
[]
[]
[ "VCAP_APPLICATION", "METRICS_BASIC_AUTH", "PROMETHEUS_METRICS_PATH" ]
[]
["VCAP_APPLICATION", "METRICS_BASIC_AUTH", "PROMETHEUS_METRICS_PATH"]
python
3
0
scripts/generate_postgres_toml.py
#!/usr/bin/python import os REPO = [ 'aws_app_rust', 'calendar_app_rust', 'diary_app_rust', 'garmin_rust', 'movie_collection_rust', 'podcatch_rust', 'security_log_analysis_rust', 'sync_app_rust', ] HOME = os.environ['HOME'] def generate_postgres_toml(): for repo in REPO: co...
[]
[]
[ "HOME" ]
[]
["HOME"]
python
1
0
test/extended/util/azure/config_file.go
package azure import ( "context" "encoding/json" "errors" "io/ioutil" "os" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" clientcorev1 "k8s.io/client-go/kubernetes/typed/core/v1" e2e "k8s.io/kubernetes/test/e2e/framework" "k8s.io/legacy-cloud-providers/azure" "sigs.k8s.io/yaml" ) // LoadConfigFile uses the ...
[ "\"AZURE_AUTH_LOCATION\"" ]
[]
[ "AZURE_AUTH_LOCATION" ]
[]
["AZURE_AUTH_LOCATION"]
go
1
0
cherrytree/github_utils.py
import os import re from collections import OrderedDict from typing import Generator, List, Optional, Reversible import delegator from git import Commit from git.exc import InvalidGitRepositoryError from git.repo import Repo from github import Github from github.Label import Label from github.Issue import Issue from g...
[]
[]
[ "GITHUB_TOKEN" ]
[]
["GITHUB_TOKEN"]
python
1
0
vendor/github.com/containers/common/pkg/auth/auth.go
package auth import ( "bufio" "context" "fmt" "os" "path/filepath" "strings" "github.com/containers/image/v5/docker" "github.com/containers/image/v5/docker/reference" "github.com/containers/image/v5/pkg/docker/config" "github.com/containers/image/v5/pkg/sysregistriesv2" "github.com/containers/image/v5/type...
[ "\"REGISTRY_AUTH_FILE\"", "\"DOCKER_CONFIG\"" ]
[]
[ "DOCKER_CONFIG", "REGISTRY_AUTH_FILE" ]
[]
["DOCKER_CONFIG", "REGISTRY_AUTH_FILE"]
go
2
0
apps/phaseofmoon/phaseofmoon.go
// Package phaseofmoon provides details for the Phase Of Moon applet. package phaseofmoon import ( _ "embed" "tidbyt.dev/community/apps/manifest" ) //go:embed phase_of_moon.star var source []byte // New creates a new instance of the Phase Of Moon applet. func New() manifest.Manifest { return manifest.Manifest{ ...
[]
[]
[]
[]
[]
go
null
null
null
internal/projector/datastore/fetch_test.go
package datastore_test import ( "context" "encoding/json" "errors" "fmt" "testing" "github.com/OpenSlides/openslides-autoupdate-service/internal/projector/datastore" "github.com/OpenSlides/openslides-autoupdate-service/pkg/dsmock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) ...
[]
[]
[]
[]
[]
go
null
null
null
api/server/server.go
package server import ( "log" "net/http" "os" "time" "github.com/cristianblar/restaurant-manager/api/lib" "github.com/cristianblar/restaurant-manager/api/utils" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" "github.com/rs/cors" ) type Server struct { Port string Router *chi.Mux } fun...
[ "\"API_PORT\"" ]
[]
[ "API_PORT" ]
[]
["API_PORT"]
go
1
0
start.py
#!/usr/bin/env python import getpass import sys import re from optparse import OptionParser from minecraft import authentication from minecraft.exceptions import YggdrasilError from minecraft.networking.connection import Connection from minecraft.networking.packets import Packet, clientbound, serverbound def get_op...
[]
[]
[]
[]
[]
python
null
null
null
python/helpers/pydev/build_tools/build.py
''' Helper to build pydevd. It should: * recreate our generated files * compile cython deps (properly setting up the environment first). Note that it's used in the CI to build the cython deps based on the PYDEVD_USE_CYTHON environment variable. ''' from __future__ import print_function import os import subpr...
[]
[]
[ "PYDEVD_USE_CYTHON" ]
[]
["PYDEVD_USE_CYTHON"]
python
1
0
tst/accept/steps/predict_customers_test.py
import os import boto3 import time from src.modules.get_export import get_export from src.modules.queue_message_writer import write_message from src.modules.type_enum import Types from src.predictors.predict_customers import make_prediction from src.dependencies.boto3_sqs_provider import get_sqs_provider from src.depen...
[]
[]
[ "CHECKIN_ACTION_URL" ]
[]
["CHECKIN_ACTION_URL"]
python
1
0
chatbotconfig.py
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY=os.environ.get('SECRET_KEY') or 'you-will-never-guess'
[]
[]
[ "SECRET_KEY" ]
[]
["SECRET_KEY"]
python
1
0
test/python/docker/__init__.py
import configparser import json import os import pathlib import shutil import subprocess import tempfile from docker import DockerClient from .compat import constant class Podman(object): """ Instances hold the configuration and setup for running podman commands """ def __init__(self): """I...
[]
[]
[ "CNI_CONFIG_PATH", "CGROUP_MANAGER", "CONTAINERS_REGISTRIES_CONF", "PODMAN_PYTHON_TEST_DEBUG", "PODMAN" ]
[]
["CNI_CONFIG_PATH", "CGROUP_MANAGER", "CONTAINERS_REGISTRIES_CONF", "PODMAN_PYTHON_TEST_DEBUG", "PODMAN"]
python
5
0
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', 'control.settings') try: from django.core.management import execute_from_command_line except Impo...
[]
[]
[]
[]
[]
python
0
0
database.go
package main import ( "database/sql" "log" "os" "strconv" ) // dbConn ... func dbInit() (*sql.DB, *sql.DB) { dbDriver := "mysql" dbName := os.Getenv("MYSQL_DB") dbUser := os.Getenv("MYSQL_USER") dbPass := os.Getenv("MYSQL_PASS") readServer := os.Getenv("MYSQL_READ") writeServer := os.Getenv("MYSQL_WRITE") ...
[ "\"MYSQL_DB\"", "\"MYSQL_USER\"", "\"MYSQL_PASS\"", "\"MYSQL_READ\"", "\"MYSQL_WRITE\"", "\"MYSQL_READ_OPEN\"", "\"MYSQL_WRITE_OPEN\"" ]
[]
[ "MYSQL_DB", "MYSQL_WRITE", "MYSQL_USER", "MYSQL_PASS", "MYSQL_READ_OPEN", "MYSQL_WRITE_OPEN", "MYSQL_READ" ]
[]
["MYSQL_DB", "MYSQL_WRITE", "MYSQL_USER", "MYSQL_PASS", "MYSQL_READ_OPEN", "MYSQL_WRITE_OPEN", "MYSQL_READ"]
go
7
0
api/conf/conf.go
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
[ "\"APISIX_API_WORKDIR\"", "\"ENV\"" ]
[]
[ "APISIX_API_WORKDIR", "ENV" ]
[]
["APISIX_API_WORKDIR", "ENV"]
go
2
0
lib/python2.7/site-packages/django/core/management/commands/shell.py
import os from django.core.management.base import NoArgsCommand from optparse import make_option class Command(NoArgsCommand): option_list = NoArgsCommand.option_list + ( make_option('--plain', action='store_true', dest='plain', help='Tells Django to use plain Python, not IPython.'), ) ...
[]
[]
[ "PYTHONSTARTUP" ]
[]
["PYTHONSTARTUP"]
python
1
0
docker_images/spacy/app/pipelines/sentence_similarity.py
import os import subprocess import sys from typing import Dict, List, Union from app.pipelines import Pipeline class SentenceSimilarityPipeline(Pipeline): def __init__( self, model_id: str, ): # At the time, only public models from spaCy are allowed in the inference API. full_...
[]
[]
[ "HF_ENDPOINT", "PIP_CACHE" ]
[]
["HF_ENDPOINT", "PIP_CACHE"]
python
2
0
main.go
package main import ( "fmt" "log" "net/http" "os" "github.com/g-harel/gothrough/internal/typeindex" "github.com/g-harel/gothrough/pages" ) func headerResponse(w http.ResponseWriter, statusCode int) { w.WriteHeader(statusCode) fmt.Fprintf(w, "%d %s", statusCode, http.StatusText(statusCode)) } func main() { ...
[ "\"PORT\"", "\"INDEX\"" ]
[]
[ "PORT", "INDEX" ]
[]
["PORT", "INDEX"]
go
2
0
staging/src/k8s.io/client-go/1.4/pkg/security/apparmor/validate.go
/* Copyright 2016 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, ...
[ "\"container\"" ]
[]
[ "container" ]
[]
["container"]
go
1
0
api/v1alpha2/conversion_test.go
/* Copyright 2020 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
fuse/ipns/ipns_unix.go
// +build !nofuse // package fuse/ipns implements a fuse filesystem that interfaces // with ipns, the naming system for ipfs. package ipns import ( "context" "errors" "fmt" "io" "os" core "github.com/ipfs/go-ipfs/core" namesys "github.com/ipfs/go-ipfs/namesys" path "gx/ipfs/QmR3bNAtBoTN6xZ2HQNqpRQARcDoazH9jU...
[ "\"IPFS_FUSE_DEBUG\"" ]
[]
[ "IPFS_FUSE_DEBUG" ]
[]
["IPFS_FUSE_DEBUG"]
go
1
0
accountsynchr/tests/dao/test_inactive_accounts.py
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase from django.conf import settings from accountsynchr.dao.inactive_accounts import ( get_accounts_to_purge1, get_accounts_to_purge, get_file_path) class TestInactiveAccounts(TestCase): def t...
[]
[]
[]
[]
[]
python
null
null
null
tests/models.py
from typing import List, Optional from sqlmodel import Field, Relationship, SQLModel class Sport(SQLModel, table=True): id: Optional[int] = Field(default=None, primary_key=True) name: str athletes: List["Athlete"] = Relationship(back_populates="sport") class Athlete(SQLModel, table=True): id: O...
[]
[]
[]
[]
[]
python
null
null
null
soracom/generated/cmd/groups_delete_config_namespace.go
// Code generated by soracom-cli generate-cmd. DO NOT EDIT. package cmd import ( "fmt" "net/url" "os" "github.com/spf13/cobra" ) // GroupsDeleteConfigNamespaceCmdGroupId holds value of 'group_id' option var GroupsDeleteConfigNamespaceCmdGroupId string // GroupsDeleteConfigNamespaceCmdNamespace holds value of 'n...
[ "\"SORACOM_VERBOSE\"" ]
[]
[ "SORACOM_VERBOSE" ]
[]
["SORACOM_VERBOSE"]
go
1
0
pkg/helm/tiller.go
package helm import ( "os" "path/filepath" "github.com/jenkins-x/jx-logging/pkg/log" "github.com/jenkins-x/jx/v2/pkg/util" "github.com/pkg/errors" ) // GetTillerAddress returns the address that tiller is listening on func GetTillerAddress() string { tillerAddress := os.Getenv("TILLER_ADDR") if tillerAddress =...
[ "\"TILLER_ADDR\"", "\"TILLER_ARGS\"" ]
[]
[ "TILLER_ADDR", "TILLER_ARGS" ]
[]
["TILLER_ADDR", "TILLER_ARGS"]
go
2
0
kernel/groovy/src/main/java/com/twosigma/beakerx/groovy/evaluator/GroovyEvaluator.java
/* * Copyright 2014 TWO SIGMA OPEN SOURCE, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
[]
[]
[]
[]
[]
java
0
0
vendor/github.com/rancher/remotedialer/session.go
package remotedialer import ( "context" "errors" "fmt" "io" "net" "os" "strconv" "strings" "sync" "sync/atomic" "time" "github.com/gorilla/websocket" "github.com/sirupsen/logrus" ) type Session struct { sync.Mutex nextConnID int64 clientKey string sessionKey int64 conn ...
[ "\"CATTLE_TUNNEL_DATA_DEBUG\"" ]
[]
[ "CATTLE_TUNNEL_DATA_DEBUG" ]
[]
["CATTLE_TUNNEL_DATA_DEBUG"]
go
1
0
services/bitcou/bitcou2.go
package bitcou import ( b64 "encoding/base64" "encoding/json" "errors" "github.com/grupokindynos/common/ladon" "io/ioutil" "log" "net/http" "os" "strconv" "time" ) type ServiceV2 struct { BitcouURL string BitcouToken string ImageMap map[int]ProviderImage } func InitServiceV2() *ServiceV2 { service :=...
[ "\"BITCOU_URL_DEV_V2\"", "\"BITCOU_TOKEN_V2\"", "\"BITCOU_URL_DEV_V2\"", "\"BITCOU_URL_PROD_V2\"", "\"BITCOU_TOKEN_V2\"", "\"BITCOU_URL_DEV_V2\"", "\"BITCOU_URL_PROD_V2\"", "\"BITCOU_TOKEN_V2\"", "\"BITCOU_URL_DEV_V2\"", "\"BITCOU_URL_PROD_V2\"", "\"BITCOU_TOKEN_V2\"", "\"BITCOU_TOKEN_V2\"" ]
[]
[ "BITCOU_TOKEN_V2", "BITCOU_URL_DEV_V2", "BITCOU_URL_PROD_V2" ]
[]
["BITCOU_TOKEN_V2", "BITCOU_URL_DEV_V2", "BITCOU_URL_PROD_V2"]
go
3
0
gdalplugin/gcs_adapter.go
package main import "C" import ( "context" "log" "os" "strconv" "strings" "unicode" "github.com/airbusgeo/godal/gcs" ) var ctx context.Context func blockSize() int { s := os.Getenv("GODAL_BLOCKSIZE") const ( BYTE = 1 << (10 * iota) KILOBYTE MEGABYTE GIGABYTE TERABYTE PETABYTE EXABYTE ) s =...
[ "\"GODAL_BLOCKSIZE\"", "\"GODAL_NUMBLOCKS\"", "\"GODAL_SPLIT_CONSECUTIVE_RANGES\"" ]
[]
[ "GODAL_NUMBLOCKS", "GODAL_BLOCKSIZE", "GODAL_SPLIT_CONSECUTIVE_RANGES" ]
[]
["GODAL_NUMBLOCKS", "GODAL_BLOCKSIZE", "GODAL_SPLIT_CONSECUTIVE_RANGES"]
go
3
0
examples/v1/dashboards/GetDashboard_4262333854.java
// Get a dashboard returns 'author_name' import com.datadog.api.v1.client.ApiClient; import com.datadog.api.v1.client.ApiException; import com.datadog.api.v1.client.Configuration; import com.datadog.api.v1.client.api.DashboardsApi; import com.datadog.api.v1.client.model.Dashboard; import java.time.*; import java.util....
[ "\"DASHBOARD_ID\"" ]
[]
[ "DASHBOARD_ID" ]
[]
["DASHBOARD_ID"]
java
1
0
test/soak/serve_hostnames/serve_hostnames.go
/* Copyright 2015 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, ...
[ "\"HOME\"", "\"HOME\"" ]
[]
[ "HOME" ]
[]
["HOME"]
go
1
0
examples/run_session_peer.py
#!/usr/bin/env python __author__ = 'RADICAL-Cybertools Team' __email__ = 'info@radical-cybertools.org' __copyright__ = 'Copyright 2021, The RADICAL-Cybertools Team' __license__ = 'MIT' import os from radical.dreamer import Session, Resource, Workload from radical.dreamer.configs import cfg_default if __na...
[]
[]
[ "RADICAL_DREAMER_LOG_LVL" ]
[]
["RADICAL_DREAMER_LOG_LVL"]
python
1
0
internal/readpassword/extpass_test.go
package readpassword import ( "os" "os/exec" "testing" "github.com/rfjakob/gocryptfs/internal/tlog" ) var testPw = []byte("test") func TestMain(m *testing.M) { // Shut up info output tlog.Info.Enabled = false os.Exit(m.Run()) } func TestExtpass(t *testing.T) { p1 := "ads2q4tw41reg52" p2 := string(readPass...
[ "\"TEST_SLAVE\"" ]
[]
[ "TEST_SLAVE" ]
[]
["TEST_SLAVE"]
go
1
0
docs/conf.py
# -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. exten...
[]
[]
[ "READTHEDOCS" ]
[]
["READTHEDOCS"]
python
1
0
tools/main.py
# coding=utf-8 # # Copyright (c) 2006-2020, RT-Thread Development Team # # SPDX-License-Identifier: Apache-2.0 # # Change Logs: # Date Author Notes # 2020-05-08 SummerGift first version # 2020-05-11 SummerGift optimize schema checking # import os import json import logging import requests i...
[]
[]
[ "client_id", "username", "UPDATE_SDK_INDEX_ADDRESS", "client_secret", "UPDATE_SDK_ABROAD_INDEX_ADDRESS", "password", "MIRROR_REG_URL" ]
[]
["client_id", "username", "UPDATE_SDK_INDEX_ADDRESS", "client_secret", "UPDATE_SDK_ABROAD_INDEX_ADDRESS", "password", "MIRROR_REG_URL"]
python
7
0
src/python/hooks/hooks_debug.go
package hooks import ( "fmt" "os" "github.com/cloudfoundry/libbuildpack" ) type hooks1 struct { libbuildpack.DefaultHook } type hooks2 struct { libbuildpack.DefaultHook } func init() { if os.Getenv("BP_DEBUG") != "" { libbuildpack.AddHook(hooks1{}) libbuildpack.AddHook(hooks2{}) } } func (h hooks1) Bef...
[ "\"BP_DEBUG\"" ]
[]
[ "BP_DEBUG" ]
[]
["BP_DEBUG"]
go
1
0
testframework/config.go
package testframework import ( "bufio" "fmt" "os" "strings" "time" ) var TIMEOUT = setTimeout() func setTimeout() time.Duration { if os.Getenv("SLOW_MACHINE") == "1" { return 180 * time.Second } return 60 * time.Second } func WriteConfig(filename string, config map[string]string, regtestConfig map[string]...
[ "\"SLOW_MACHINE\"" ]
[]
[ "SLOW_MACHINE" ]
[]
["SLOW_MACHINE"]
go
1
0
functests/utils/client/clients.go
package client import ( "os" "github.com/golang/glog" clientconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1" clientmachineconfigv1 "github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned/typed/machineconfiguration.openshift.io/v1" discovery "k8s.io/cli...
[ "\"KUBECONFIG\"" ]
[]
[ "KUBECONFIG" ]
[]
["KUBECONFIG"]
go
1
0
util/log/clog.go
// Go support for leveled logs, analogous to https://code.google.com/p/google-clog/ // // Copyright 2013 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 /...
[ "\"TERM\"" ]
[]
[ "TERM" ]
[]
["TERM"]
go
1
0
ResNet-50/SVHN/train.py
import torchvision import torchvision.transforms as transforms import torch import torch.utils.data import resnet from torch.autograd import Variable from torch import nn import early_stop from tqdm import tqdm import os,sys import numpy as np os.environ["CUDA_VISIBLE_DEVICES"] = "2" train_globa_step=0 val_globa_ste...
[]
[]
[ "CUDA_VISIBLE_DEVICES" ]
[]
["CUDA_VISIBLE_DEVICES"]
python
1
0
cli/make_prebuilts.py
import os import sys import argparse import blobconverter import itertools try: from artifactory import ArtifactoryPath except: print("Package \"artifactory\" not found! Please run {} -m pip install artifactory".format(sys.executable), file=sys.stderr) sys.exit(1) parser = argparse.ArgumentParser() parser...
[]
[]
[ "ARTIFACTORY_PASSWORD", "ARTIFACTORY_USERNAME" ]
[]
["ARTIFACTORY_PASSWORD", "ARTIFACTORY_USERNAME"]
python
2
0
tests/test_functional_misc.py
#!/usr/bin/python3 -OO # Copyright 2007-2020 The SABnzbd-Team <team@sabnzbd.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any late...
[]
[]
[]
[]
[]
python
0
0
cmd/generate-lint/generate-lint.go
package main import ( "encoding/json" "fmt" "io/ioutil" "os" "os/exec" "path" "strings" "github.com/evergreen-ci/shrub" "github.com/google/shlex" "github.com/mongodb/grip" "github.com/pkg/errors" ) const ( lintPrefix = "lint" lintVariant = "lint" lintGroup = "lint-group" commitMax...
[ "\"GO_BIN_PATH\"" ]
[]
[ "GO_BIN_PATH" ]
[]
["GO_BIN_PATH"]
go
1
0
starshipcreator/starshipcreator/wsgi.py
""" WSGI config for starshipcreator 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("DJAN...
[]
[]
[]
[]
[]
python
0
0
kubernetes-model/vendor/github.com/openshift/origin/pkg/apps/generated/internalclientset/scheme/register.go
/** * Copyright (C) 2015 Red Hat, 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...
[ "\"KUBE_API_VERSIONS\"" ]
[]
[ "KUBE_API_VERSIONS" ]
[]
["KUBE_API_VERSIONS"]
go
1
0
HACKERRANK/Problem Solving/Warmup/A Very Big Sum/AVeryBigSum.go
package main import ( "bufio" "fmt" "io" "os" "strconv" "strings" ) func aVeryBigSum(ar []int64) int64 { sum := int64(0) for i := 0; i < len(ar); i++ { sum += ar[i] } return sum } func main() { reader := bufio.NewReaderSize(os.Stdin, 1024*1024) stdout, err := os.Create(os.Getenv("OUTPUT_PATH")) chec...
[ "\"OUTPUT_PATH\"" ]
[]
[ "OUTPUT_PATH" ]
[]
["OUTPUT_PATH"]
go
1
0
src/bot.py
import os import telebot # Initialize bot bot = telebot.TeleBot(os.environ["TELEGRAM_BOT_TOKEN"], parse_mode="MARKDOWN")
[]
[]
[ "TELEGRAM_BOT_TOKEN" ]
[]
["TELEGRAM_BOT_TOKEN"]
python
1
0
methods.py
import os def add_source_files(self, sources, filetype, lib_env=None, shared=False): import glob import string # if not lib_objects: if not lib_env: lib_env = self if type(filetype) == type(""): dir = self.Dir('.').abspath list = glob.glob(dir + "/" + filetype) for...
[]
[]
[ "BUILD_REVISION" ]
[]
["BUILD_REVISION"]
python
1
0
snxconnect.py
#!/usr/bin/python from __future__ import print_function, unicode_literals import os import os.path import sys import socket try : import httplib import urllib2 import ssl from urllib2 import build_opener, HTTPCookieProcessor, Request from urllib import urlencode from httplib import Inco...
[]
[]
[]
[]
[]
python
0
0
hospital/manage.py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hospital.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
fuse/ipns/ipns_unix.go
// +build !nofuse // package fuse/ipns implements a fuse filesystem that interfaces // with ipns, the naming system for ipfs. package ipns import ( "errors" "fmt" "os" fuse "github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse" fs "github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse/fs" "gx/ip...
[ "\"IPFS_FUSE_DEBUG\"" ]
[]
[ "IPFS_FUSE_DEBUG" ]
[]
["IPFS_FUSE_DEBUG"]
go
1
0
search_test.go
package themovieapi import ( "os" "reflect" "testing" "github.com/joho/godotenv" ) func TestGetGengre(t *testing.T) { type args struct { apiKey string langu string } type tyTests struct { name string args args want TypGengres wantErr bool } var tests []tyTests { var myArgs args va...
[ "\"apikey\"", "\"apikey\"", "\"apikey\"", "\"apikey\"", "\"apikey\"", "\"apikey\"" ]
[]
[ "apikey" ]
[]
["apikey"]
go
1
0
jsonde.gui/src/main/java/com/jsonde/gui/dialog/about/AboutDialog.java
package com.jsonde.gui.dialog.about; import java.awt.BorderLayout; import java.awt.Container; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.util.Map; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.sw...
[]
[]
[]
[]
[]
java
0
0
uploader/helper/helper.go
package helper import ( "context" "fmt" "inspirationalquotes/uploader/util" "os" "github.com/joho/godotenv" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" ) func ConnectDB() *mongo.Collection { config, err := GetConfiguration() if err != nil { util.Exit(err) } // Set ...
[ "\"CONNECTION_STRING\"", "\"DB_NAME\"", "\"COLLECTION_NAME\"" ]
[]
[ "COLLECTION_NAME", "DB_NAME", "CONNECTION_STRING" ]
[]
["COLLECTION_NAME", "DB_NAME", "CONNECTION_STRING"]
go
3
0
bokeh/settings.py
from __future__ import absolute_import import logging import os from os.path import join, dirname, abspath, exists class Settings(object): _prefix = "BOKEH_" debugjs = False @property def _environ(self): return os.environ def _get(self, key, default=None): return self._environ.ge...
[]
[]
[]
[]
[]
python
0
0
tests/integration/sync_test.go
//go:build integration package integration import ( "context" "os" "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kong/deck/cmd" "github.com/kong/deck/dump" "github.com/kong/deck/utils" "github.com/kong/go-kong/kong" ) var deckCmd = cmd.RootCmdOnlyForDocsAndTest...
[ "\"DECK_KONG_ADDR\"" ]
[]
[ "DECK_KONG_ADDR" ]
[]
["DECK_KONG_ADDR"]
go
1
0
glearn/crf/ixx_glodon/model/config/__init__.py
# coding=utf-8 u""" User: xulin Date: 13-6-6 Time: 上午11:19 """ import os from model.config import development as config, production ENV = os.environ.get('MODEL_ENV', 'development') print 'MODEL: %s' % ENV if ENV == 'development': import development as config if ENV == 'production': import production as conf...
[]
[]
[ "MODEL_ENV" ]
[]
["MODEL_ENV"]
python
1
0
enforcer/store/filesystem/filesystem_store_test.go
/* Copyright 2018 Ignasi Barrera 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 dis...
[ "\"GOPATH\"" ]
[]
[ "GOPATH" ]
[]
["GOPATH"]
go
1
0
ignite/pkg/gitpod/gitpod.go
package gitpod import ( "bytes" "context" "os" "strings" "github.com/ignite-hq/cli/ignite/pkg/cmdrunner/exec" "github.com/ignite-hq/cli/ignite/pkg/cmdrunner/step" ) // IsOnGitpod reports whether if running on Gitpod or not. func IsOnGitpod() bool { return os.Getenv("GITPOD_WORKSPACE_ID") != "" } func URLForP...
[ "\"GITPOD_WORKSPACE_ID\"" ]
[]
[ "GITPOD_WORKSPACE_ID" ]
[]
["GITPOD_WORKSPACE_ID"]
go
1
0
hadoop-common-project/hadoop-registry/src/test/java/org/apache/hadoop/registry/secure/TestSecureLogins.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 ...
[ "\"KRB5CCNAME\"" ]
[]
[ "KRB5CCNAME" ]
[]
["KRB5CCNAME"]
java
1
0
server/services/metrics/metrics.go
package metrics import ( "os" "github.com/prometheus/client_golang/prometheus" ) const ( MetricsNamespace = "focalboard" MetricsSubsystemBlocks = "blocks" MetricsSubsystemWorkspaces = "workspaces" MetricsSubsystemSystem = "system" MetricsCloudInstallationLabel = "installationId" ) type Ins...
[ "\"MM_CLOUD_INSTALLATION_ID\"" ]
[]
[ "MM_CLOUD_INSTALLATION_ID" ]
[]
["MM_CLOUD_INSTALLATION_ID"]
go
1
0
tests/oauth2/rfc6749/test_utils.py
from __future__ import absolute_import, unicode_literals import datetime import os from ...unittest import TestCase from oauthlib.oauth2.rfc6749.utils import escape, host_from_uri from oauthlib.oauth2.rfc6749.utils import generate_age from oauthlib.oauth2.rfc6749.utils import is_secure_transport from oauthlib.oauth2....
[]
[]
[ "DEBUG" ]
[]
["DEBUG"]
python
1
0
scripts/fetch_all_metrics.py
""" Generate METRICS-%Y-%m-%d.json for all the repositories tracked by repos-to-include.txt and save them in their respective _data directory. """ import datetime import json import os import requests import graphql_queries print("LOG: Assuming the current path to be the root of the metrics repository.") PATH_TO_MET...
[]
[]
[ "GH_USERNAME", "OAUTH_TOKEN" ]
[]
["GH_USERNAME", "OAUTH_TOKEN"]
python
2
0
nitjcompiler/wsgi.py
""" WSGI config for nitjcompiler 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
[]
[]
[]
[]
[]
python
0
0
var/spack/repos/builtin/packages/esmf/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import * class Esmf(MakefilePackage): """The Earth System Modeling Framework (ESMF) is high-pe...
[]
[]
[ "ESMF_OS", "ESMF_INSTALL_LIBDIR", "ESMF_F90", "ESMF_LAPACK_LIBS", "ESMF_COMPILER", "ESMF_DIR", "FC", "ESMF_NETCDF", "ESMF_CXXCOMPILEOPTS", "ESMF_XERCES", "ESMF_INSTALL_PREFIX", "ESMF_BOPT", "ESMF_PNETCDF", "ESMF_INSTALL_BINDIR", "CXX", "ESMF_CXXLINKLIBS", "ESMF_INSTALL_MODDIR", "ES...
[]
["ESMF_OS", "ESMF_INSTALL_LIBDIR", "ESMF_F90", "ESMF_LAPACK_LIBS", "ESMF_COMPILER", "ESMF_DIR", "FC", "ESMF_NETCDF", "ESMF_CXXCOMPILEOPTS", "ESMF_XERCES", "ESMF_INSTALL_PREFIX", "ESMF_BOPT", "ESMF_PNETCDF", "ESMF_INSTALL_BINDIR", "CXX", "ESMF_CXXLINKLIBS", "ESMF_INSTALL_MODDIR", "ESMF_F90COMPILEOPTS", "ESMF_LAPACK_LIBP...
python
23
0
setup.py
from setuptools import setup, Extension, Distribution import setuptools.command.build_ext import sys import sysconfig import os import os.path import distutils.sysconfig import itertools from glob import iglob def _get_turbodbc_libname(): builder = setuptools.command.build_ext.build_ext(Distribution()) full...
[]
[]
[ "BOOST_ROOT", "UNIXODBC_INCLUDE_DIR", "UNIXODBC_LIBRARY_DIR" ]
[]
["BOOST_ROOT", "UNIXODBC_INCLUDE_DIR", "UNIXODBC_LIBRARY_DIR"]
python
3
0
test/functional/test_framework/test_framework.py
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Base class for RPC testing.""" import configparser from enum import Enum import argparse import loggin...
[]
[]
[ "BITCOINCLI", "PREVIOUS_RELEASES_DIR", "PATH", "BITCOIND" ]
[]
["BITCOINCLI", "PREVIOUS_RELEASES_DIR", "PATH", "BITCOIND"]
python
4
0
services/billing-aws/src/main/java/com/epam/dlab/configuration/FreeMarkerConfig.java
/*************************************************************************** Copyright (c) 2016, EPAM SYSTEMS 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...
[]
[]
[]
[]
[]
java
0
0
cmd/githubCreateIssue_generated.go
// Code generated by piper's step-generator. DO NOT EDIT. package cmd import ( "fmt" "os" "time" "github.com/SAP/jenkins-library/pkg/config" "github.com/SAP/jenkins-library/pkg/log" "github.com/SAP/jenkins-library/pkg/splunk" "github.com/SAP/jenkins-library/pkg/telemetry" "github.com/spf13/cobra" ) type git...
[ "\"PIPER_body\"", "\"PIPER_bodyFilePath\"", "\"PIPER_owner\"", "\"PIPER_repository\"", "\"PIPER_title\"", "\"PIPER_token\"" ]
[]
[ "PIPER_title", "PIPER_body", "PIPER_token", "PIPER_bodyFilePath", "PIPER_repository", "PIPER_owner" ]
[]
["PIPER_title", "PIPER_body", "PIPER_token", "PIPER_bodyFilePath", "PIPER_repository", "PIPER_owner"]
go
6
0
basic-apps/env-vars/render-template.py
import sys, os, json, re from flask import Flask, render_template app = Flask(__name__) @app.route("/") def main(): return render_template('environ.html',vars=sorted(os.environ.items()), json=json, re=re) if __name__ == "__main__": app.run(host='0.0.0.0', port=int(os.environ.get('PORT','8080')))
[]
[]
[ "PORT" ]
[]
["PORT"]
python
1
0
generic_store/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', 'generic_store.settings') try: from django.core.management import execute_from_command_line excep...
[]
[]
[]
[]
[]
python
0
0
tests/integration/local/helpers.go
package tests import ( "context" "math/rand" "os" "path/filepath" "strings" "testing" "time" "get.porter.sh/plugin/kubernetes/pkg/kubernetes" portercontext "get.porter.sh/porter/pkg/context" "github.com/stretchr/testify/require" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8s "k...
[ "\"KUBECONFIG\"", "\"HOME\"", "\"KUBERNETES_SERVICE_HOST\"" ]
[]
[ "KUBERNETES_SERVICE_HOST", "HOME", "KUBECONFIG" ]
[]
["KUBERNETES_SERVICE_HOST", "HOME", "KUBECONFIG"]
go
3
0
paddlex/interpret/core/_session_preparation.py
#copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # #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 l...
[]
[]
[ "FLAGS_selected_gpus", "HOME" ]
[]
["FLAGS_selected_gpus", "HOME"]
python
2
0
students/K33401/Kunal_Shubham/lab2/homework_board-main/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', 'homework_board.settings') try: from django.core.management import execute_from_command_line exce...
[]
[]
[]
[]
[]
python
0
0
config.py
import os class Config: UPLOADED_PHOTOS_DEST ='app/static/photos' SECRET_KEY = 'SECRET' SQLALCHEMY_TRACK_MODIFICATIONS = False # email configurations MAIL_SERVER = 'smtp.googlemail.com' MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_USERNAME = os.environ.get("MAIL_USERNAME") MAIL_PASSWORD = os.e...
[]
[]
[ "MAIL_PASSWORD", "DATABASE_URL", "MAIL_USERNAME" ]
[]
["MAIL_PASSWORD", "DATABASE_URL", "MAIL_USERNAME"]
python
3
0
relay/relay_test.go
// Copyright 2019 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...
[ "\"MYSQL_HOST\"", "\"MYSQL_PORT\"", "\"MYSQL_USER\"", "\"MYSQL_PSWD\"" ]
[]
[ "MYSQL_PORT", "MYSQL_USER", "MYSQL_PSWD", "MYSQL_HOST" ]
[]
["MYSQL_PORT", "MYSQL_USER", "MYSQL_PSWD", "MYSQL_HOST"]
go
4
0
examples/IntradayBarExample.py
# IntradayBarExample.py from __future__ import print_function from __future__ import absolute_import import copy import datetime from optparse import OptionParser, Option, OptionValueError import os import platform as plat import sys if sys.version_info >= (3, 8) and plat.system().lower() == "windows": # pylint: ...
[]
[]
[ "BLPAPI_LIBDIR" ]
[]
["BLPAPI_LIBDIR"]
python
1
0
pkg/integrations/mysqld_exporter/mysqld-exporter.go
// Package mysqld_exporter embeds https://github.com/prometheus/mysqld_exporter package mysqld_exporter //nolint:golint import ( "context" "fmt" "os" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/grafana/agent/pkg/integrations" "github.com/grafana/agent/pkg/integrations/config" "gi...
[ "\"MYSQLD_EXPORTER_DATA_SOURCE_NAME\"" ]
[]
[ "MYSQLD_EXPORTER_DATA_SOURCE_NAME" ]
[]
["MYSQLD_EXPORTER_DATA_SOURCE_NAME"]
go
1
0
cmd/argo/commands/common.go
package commands import ( "fmt" "os" "strconv" "strings" "github.com/spf13/cobra" wfv1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1" ) // Global variables var ( jobStatusIconMap map[wfv1.NodePhase]string nodeTypeIconMap map[wfv1.NodeType]string noColor bool ) func init() { cobra.OnIniti...
[ "\"TERM\"" ]
[]
[ "TERM" ]
[]
["TERM"]
go
1
0
vendor/github.com/containers/storage/drivers/overlay/overlay.go
// +build linux package overlay import ( "bytes" "fmt" "io" "io/ioutil" "os" "os/exec" "path" "path/filepath" "strconv" "strings" "sync" "syscall" graphdriver "github.com/containers/storage/drivers" "github.com/containers/storage/drivers/overlayutils" "github.com/containers/storage/drivers/quota" "gi...
[ "\"_TEST_FORCE_SUPPORT_SHIFTING\"" ]
[]
[ "_TEST_FORCE_SUPPORT_SHIFTING" ]
[]
["_TEST_FORCE_SUPPORT_SHIFTING"]
go
1
0
appengine/app/main.go
package main import ( "crypto/rsa" "crypto/x509" "encoding/pem" "io/ioutil" "log" "net/http" "os" "strings" "github.com/aktsk/kalvados/server" ) func init() { // Get a private key var key *rsa.PrivateKey keyFile, err := os.Open("key.pem") defer keyFile.Close() if err == nil { keyPEM, err := ioutil....
[ "\"PRIVATE_KEY\"", "\"CERTIFICATE\"" ]
[]
[ "CERTIFICATE", "PRIVATE_KEY" ]
[]
["CERTIFICATE", "PRIVATE_KEY"]
go
2
0
utils/utils.go
/* * [2013] - [2018] Avi Networks Incorporated * 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 ...
[ "\"CTRL_VERSION\"" ]
[]
[ "CTRL_VERSION" ]
[]
["CTRL_VERSION"]
go
1
0
staged.go
package main import ( "flag" "fmt" "io/ioutil" "log" "os" "os/exec" "path" "path/filepath" "strings" ) func Usage() { fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0]) fmt.Fprintf(os.Stderr, " %s COMMAND..\n", os.Args[0]) flag.PrintDefaults() } func get_git_dir() (string, error) { cmd := exec.Comman...
[ "\"GOPATH\"", "\"GOPATH\"" ]
[]
[ "GOPATH" ]
[]
["GOPATH"]
go
1
0
python/paddle/fluid/parallel_executor.py
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[]
[]
[ "CPU_NUM" ]
[]
["CPU_NUM"]
python
1
0
vendor/google.golang.org/genproto/googleapis/ads/googleads/v1/errors/customer_manager_link_error.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/errors/customer_manager_link_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v1/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.gol...
[]
[]
[]
[]
[]
go
null
null
null
python/bbgo/utils/grpc_utils.py
import os import grpc def read_binary(f): with open(f, 'rb') as fp: return fp.read() def get_grpc_cert_file_from_env(): cert_file = os.environ.get('BBGO_GRPC_CERT_FILE') return cert_file def get_grpc_key_file_from_env(): key_file = os.environ.get('BBGO_GRPC_KEY_FILE') return key_file ...
[]
[]
[ "BBGO_GRPC_CERT_FILE", "BBGO_GRPC_PORT", "BBGO_GRPC_KEY_FILE", "BBGO_GRPC_HOST" ]
[]
["BBGO_GRPC_CERT_FILE", "BBGO_GRPC_PORT", "BBGO_GRPC_KEY_FILE", "BBGO_GRPC_HOST"]
python
4
0
cmd/githubCreatePullRequest_generated.go
// Code generated by piper's step-generator. DO NOT EDIT. package cmd import ( "fmt" "os" "time" "github.com/SAP/jenkins-library/pkg/config" "github.com/SAP/jenkins-library/pkg/log" "github.com/SAP/jenkins-library/pkg/telemetry" "github.com/spf13/cobra" ) type githubCreatePullRequestOptions struct { Assigne...
[ "\"PIPER_base\"", "\"PIPER_body\"", "\"PIPER_head\"", "\"PIPER_owner\"", "\"PIPER_repository\"", "\"PIPER_title\"", "\"PIPER_token\"" ]
[]
[ "PIPER_title", "PIPER_body", "PIPER_token", "PIPER_head", "PIPER_base", "PIPER_repository", "PIPER_owner" ]
[]
["PIPER_title", "PIPER_body", "PIPER_token", "PIPER_head", "PIPER_base", "PIPER_repository", "PIPER_owner"]
go
7
0
src/main.go
package main import ( "fmt" "os" "time" "github.com/Mic-U/gofeed_line_notifier/src/notifier" "github.com/Mic-U/gofeed_line_notifier/src/selector" "github.com/mmcdole/gofeed" ) var ( //RSSURL RSSフィードの URL RSSURL = os.Getenv("RSS_URL") ) func main() { fp := gofeed.NewParser() for { exec(fp) time.Sleep(...
[ "\"RSS_URL\"" ]
[]
[ "RSS_URL" ]
[]
["RSS_URL"]
go
1
0
eventbus/gcp/eventbus_test.go
// Copyright (c) 2014 - The Event Horizon 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...
[ "\"PUBSUB_EMULATOR_HOST\"" ]
[]
[ "PUBSUB_EMULATOR_HOST" ]
[]
["PUBSUB_EMULATOR_HOST"]
go
1
0
objectModel/Java/objectmodel/src/test/java/com/microsoft/commondatamodel/objectmodel/cdm/storage/AdlsAdapterTest.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. package com.microsoft.commondatamodel.objectmodel.cdm.storage; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper...
[ "\"USERNAME\"", "\"COMPUTERNAME\"" ]
[]
[ "COMPUTERNAME", "USERNAME" ]
[]
["COMPUTERNAME", "USERNAME"]
java
2
0
cmd/db/db.go
package main import( "bufio" "fmt" "os" "github.com/abworrall/dicebot/pkg/bot" "github.com/abworrall/dicebot/pkg/rules" "github.com/abworrall/dicebot/pkg/verbs" "github.com/abworrall/dicebot/pkg/state" ) // run this from the mnain dicebot dir, to puck up ./rules func main() { rules.Init("./data/") homedir...
[ "\"GOOGLE_APPLICATION_CREDENTIALS\"", "\"GOOGLE_CLOUD_PROJECT\"", "\"GOOGLE_CLOUD_PROJECT\"" ]
[]
[ "GOOGLE_CLOUD_PROJECT", "GOOGLE_APPLICATION_CREDENTIALS" ]
[]
["GOOGLE_CLOUD_PROJECT", "GOOGLE_APPLICATION_CREDENTIALS"]
go
2
0
eend/chainer_backend/train.py
#!/usr/bin/env python3 # Copyright 2019 Hitachi, Ltd. (author: Yusuke Fujita) # Licensed under the MIT license. # import os import numpy as np import chainer from chainer import optimizers from chainer import serializers from chainer import iterators from chainer import training from chainer.training import extensions...
[]
[]
[ "CHAINER_SEED" ]
[]
["CHAINER_SEED"]
python
1
0
src/easy_share_portal/settings.py
""" Django settings for easy_share_portal project. Generated by 'django-admin startproject' using Django 1.10.1. 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/ """ ...
[]
[]
[ "REDIS_URL" ]
[]
["REDIS_URL"]
python
1
0
gorackhd_test.go
package gorackhd import ( "encoding/json" "fmt" "log" "os" "testing" rc "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" apiclient "github.com/codedellemc/gorackhd/client" "github.com/codedellemc/gorackhd/client/lookups" "github.com/codedellemc/gorackhd/client/nodes" ) func TestNodeGe...
[ "\"GORACKHD_ENDPOINT\"", "\"GORACKHD_ENDPOINT\"", "\"GORACKHD_ENDPOINT\"", "\"GORACKHD_ENDPOINT\"", "\"GORACKHD_ENDPOINT\"", "\"GORACKHD_ENDPOINT\"", "\"GORACKHD_ENDPOINT\"", "\"GORACKHD_ENDPOINT\"" ]
[]
[ "GORACKHD_ENDPOINT" ]
[]
["GORACKHD_ENDPOINT"]
go
1
0
submitit/local/test_debug.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # import os from pathlib import Path from typing import Any, Tuple import pytest from ..core import utils from ..core.core import Job from ....
[]
[]
[]
[]
[]
python
0
0
samples/wrapping-existing-ml-scripts-tutorial/ml_service/util/env_variables.py
import os from dataclasses import dataclass from typing import Optional from dotenv import load_dotenv # See /.env file @dataclass(frozen=True) class Env: load_dotenv() subscription_id: Optional[str] = os.getenv("SUBSCRIPTION_ID") resource_group: Optional[str] = os.getenv("RESOURCE_GROUP") aml_worksp...
[]
[]
[ "AML_ENVIRONMENT_NAME", "AML_COMPUTE_NAME", "AML_PIPELINE_NAME", "AML_PIPELINE_ENDPOINT_NAME", "AML_WORKSPACE_LOCATION", "RESOURCE_GROUP", "AML_EXPERIMENT_NAME", "AML_MODEL_NAME", "SUBSCRIPTION_ID", "AML_WORKSPACE_NAME" ]
[]
["AML_ENVIRONMENT_NAME", "AML_COMPUTE_NAME", "AML_PIPELINE_NAME", "AML_PIPELINE_ENDPOINT_NAME", "AML_WORKSPACE_LOCATION", "RESOURCE_GROUP", "AML_EXPERIMENT_NAME", "AML_MODEL_NAME", "SUBSCRIPTION_ID", "AML_WORKSPACE_NAME"]
python
10
0
tools/checkspecs.py
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Attempt to check each interface in nipype """ # Stdlib imports import os import re import sys import warnings import black # Functions and classes class InterfaceChecker(object): """Class for chec...
[]
[]
[ "NIPYPE_NO_ET" ]
[]
["NIPYPE_NO_ET"]
python
1
0
vendor/github.com/nats-io/nats.go/nats.go
// Copyright 2012-2019 The NATS 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 ...
[ "\"HOMEDRIVE\"", "\"HOMEPATH\"", "\"USERPROFILE\"", "\"HOME\"" ]
[]
[ "USERPROFILE", "HOME", "HOMEPATH", "HOMEDRIVE" ]
[]
["USERPROFILE", "HOME", "HOMEPATH", "HOMEDRIVE"]
go
4
0
internal/pkg/utils/test_utils.go
/* * Copyright 2020 Nalej * * 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 wri...
[ "\"RUN_INTEGRATION_TEST\"" ]
[]
[ "RUN_INTEGRATION_TEST" ]
[]
["RUN_INTEGRATION_TEST"]
go
1
0