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 |
|---|---|---|---|---|---|---|---|---|---|---|
setup.py | """`Dependency injector` setup script."""
import os
import re
from setuptools import setup, Extension
# Defining setup variables:
defined_macros = dict()
defined_macros['CYTHON_CLINE_IN_TRACEBACK'] = 0
# Getting description:
with open('README.rst') as readme_file:
description = readme_file.read()
# Getting re... | [] | [] | [
"DEPENDENCY_INJECTOR_DEBUG_MODE"
] | [] | ["DEPENDENCY_INJECTOR_DEBUG_MODE"] | python | 1 | 0 | |
litmus-portal/graphql-server/pkg/handlers/file_handler.go | package handlers
import (
"errors"
"log"
"net/http"
"os"
"github.com/gorilla/mux"
"github.com/litmuschaos/litmus/litmus-portal/graphql-server/pkg/cluster"
dbOperationsCluster "github.com/litmuschaos/litmus/litmus-portal/graphql-server/pkg/database/mongodb/cluster"
"github.com/litmuschaos/litmus/litmus-portal... | [
"\"AGENT_NAMESPACE\"",
"\"AGENT_SCOPE\"",
"\"AGENT_DEPLOYMENTS\"",
"\"SUBSCRIBER_IMAGE\"",
"\"EVENT_TRACKER_IMAGE\"",
"\"ARGO_WORKFLOW_CONTROLLER_IMAGE\"",
"\"LITMUS_CHAOS_OPERATOR_IMAGE\"",
"\"ARGO_WORKFLOW_EXECUTOR_IMAGE\"",
"\"LITMUS_CHAOS_RUNNER_IMAGE\"",
"\"LITMUS_CHAOS_EXPORTER_IMAGE\"",
"... | [] | [
"AGENT_SCOPE",
"AGENT_NAMESPACE",
"SUBSCRIBER_IMAGE",
"AGENT_DEPLOYMENTS",
"VERSION",
"LITMUS_CHAOS_EXPORTER_IMAGE",
"CONTAINER_RUNTIME_EXECUTOR",
"ARGO_WORKFLOW_CONTROLLER_IMAGE",
"LITMUS_CHAOS_OPERATOR_IMAGE",
"PORTAL_SCOPE",
"LITMUS_CHAOS_RUNNER_IMAGE",
"EVENT_TRACKER_IMAGE",
"ARGO_WORKFL... | [] | ["AGENT_SCOPE", "AGENT_NAMESPACE", "SUBSCRIBER_IMAGE", "AGENT_DEPLOYMENTS", "VERSION", "LITMUS_CHAOS_EXPORTER_IMAGE", "CONTAINER_RUNTIME_EXECUTOR", "ARGO_WORKFLOW_CONTROLLER_IMAGE", "LITMUS_CHAOS_OPERATOR_IMAGE", "PORTAL_SCOPE", "LITMUS_CHAOS_RUNNER_IMAGE", "EVENT_TRACKER_IMAGE", "ARGO_WORKFLOW_EXECUTOR_IMAGE", "PORTAL... | go | 14 | 0 | |
main.go | package main
import (
"database/sql"
"encoding/json"
"fmt"
"net/http"
"strconv"
"time"
"github.com/dgrijalva/jwt-go"
"github.com/gorilla/mux"
_ "github.com/mattn/go-sqlite3"
)
var database, _ = sql.Open("sqlite3", "./post.db")
var jwtKey = []byte("kartaca")
var userId string
type Middleware func(http.Handl... | [
"\"ORIGIN_ALLOWED\""
] | [] | [
"ORIGIN_ALLOWED"
] | [] | ["ORIGIN_ALLOWED"] | go | 1 | 0 | |
src/results/show_first_convs.py | """
File: show_first_convs.py
Author: David Solanas Sanz
TFG
"""
import argparse
import os
import keras
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
from keras.models import load_model
def plot_conv_weights(res):
... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
watson/cli.py | import datetime
import itertools
import json
import operator
import os
from dateutil import tz
from functools import reduce, wraps
import arrow
import click
from click_didyoumean import DYMGroup
import watson as _watson
from .autocompletion import (
get_frames,
get_project_or_task_completion,
get_projects... | [] | [] | [
"TZ"
] | [] | ["TZ"] | python | 1 | 0 | |
digits/config/torch.py | # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
from __future__ import absolute_import
import os
from . import option_list
def find_executable(path=None):
"""
Finds th on the given path and returns it if found
If path is None, searches through PATH
"""
if path is None:
... | [] | [] | [
"PATH",
"TORCH_ROOT",
"TORCH_HOME"
] | [] | ["PATH", "TORCH_ROOT", "TORCH_HOME"] | python | 3 | 0 | |
pkg/acceptance/cluster/docker.go | // Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... | [
"\"DOCKER_HOST\""
] | [] | [
"DOCKER_HOST"
] | [] | ["DOCKER_HOST"] | go | 1 | 0 | |
cloud/scope/virtualmachine.go | /*
Copyright 2020 The Kubernetes Authors.
Portions Copyright © Microsoft Corporation.
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... | [
"\"AZURESTACKHCI_CLOUDAGENT_FQDN\""
] | [] | [
"AZURESTACKHCI_CLOUDAGENT_FQDN"
] | [] | ["AZURESTACKHCI_CLOUDAGENT_FQDN"] | go | 1 | 0 | |
src/server/pkg/testutil/kubeclient.go | package testutil
import (
"fmt"
"os"
"testing"
"time"
"github.com/pachyderm/pachyderm/src/client/pkg/require"
"github.com/pachyderm/pachyderm/src/server/pkg/backoff"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kube "k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/cli... | [
"\"KUBERNETES_SERVICE_HOST\""
] | [] | [
"KUBERNETES_SERVICE_HOST"
] | [] | ["KUBERNETES_SERVICE_HOST"] | go | 1 | 0 | |
handle_model_files.py | import site
import os
import sys
import glob
import time
from mpi4py import MPI
from settings import req_dirs, models_folder, ray_folder
from shutil import copyfile
import subprocess
pathname = os.getcwd()
homepath = os.path.expanduser("~")
s3pathname = homepath+'/s3-drive/groups/Behavior/Pinaki'
def makedirpath(pa... | [] | [] | [
"OPENAI_LOGDIR",
"OPENAI_LOG_FORMAT",
"PYTHONPATH"
] | [] | ["OPENAI_LOGDIR", "OPENAI_LOG_FORMAT", "PYTHONPATH"] | python | 3 | 0 | |
lib/streamer/jsonstreamer.go | /*
Copyright IBM Corp. 2017 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 ag... | [
"\"ZIGLEDGER_CA_JSON_STREAM_DEBUG\""
] | [] | [
"ZIGLEDGER_CA_JSON_STREAM_DEBUG"
] | [] | ["ZIGLEDGER_CA_JSON_STREAM_DEBUG"] | go | 1 | 0 | |
config/config.go | package config
import (
"html/template"
"os"
"github.com/jinzhu/configor"
"github.com/microcosm-cc/bluemonday"
"github.com/qor/render"
)
type SMTPConfig struct {
Host string
Port string
User string
Password string
Site string
}
var Config = struct {
Port uint `default:"80" env:"PORT"`
DB... | [
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.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"); ... | [
"\"HBASE_JAAS_DEBUG\""
] | [] | [
"HBASE_JAAS_DEBUG"
] | [] | ["HBASE_JAAS_DEBUG"] | java | 1 | 0 | |
eventarc/audit_storage/main.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 ... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
python_modules/dagit/dagit/cli.py | import os
import sys
import threading
from contextlib import contextmanager
from typing import Optional
import click
from dagster import check
from dagster.cli.utils import get_instance_for_service
from dagster.cli.workspace import (
get_workspace_process_context_from_kwargs,
workspace_target_argument,
)
from ... | [] | [] | [
"PYTHONWARNINGS"
] | [] | ["PYTHONWARNINGS"] | python | 1 | 0 | |
pb/dfuse/eosio/codec/v1/merge_events_test.go | // Copyright 2019 dfuse Platform 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 agre... | [
"\"DEBUG\""
] | [] | [
"DEBUG"
] | [] | ["DEBUG"] | go | 1 | 0 | |
plc4go/tests/initializetest/init.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 ... | [
"\"JENKINS_URL\""
] | [] | [
"JENKINS_URL"
] | [] | ["JENKINS_URL"] | go | 1 | 0 | |
src/main/java/org/asciidoc/intellij/AsciiDoc.java | /*
* Copyright 2013 Julien Viet
*
* 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 ... | [
"\"GRAPHVIZ_DOT\""
] | [] | [
"GRAPHVIZ_DOT"
] | [] | ["GRAPHVIZ_DOT"] | java | 1 | 0 | |
server_test.go | package main_test
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gbytes"
"github.com/onsi/gomega/gexec"
)
var goodConfig = []byte(`---
environments:
- name: test
domain: examples.are.cool.com
authenticate: false
... | [
"\"DEPLOYADACTYL_LOGLEVEL\"",
"\"DEPLOYADACTYL_LOGLEVEL\""
] | [] | [
"DEPLOYADACTYL_LOGLEVEL"
] | [] | ["DEPLOYADACTYL_LOGLEVEL"] | go | 1 | 0 | |
realtime_detection.py | import numpy as np
# from numpy_ringbuffer import RingBuffer
import librosa
import librosa.display
import matplotlib.pyplot as plt
import noisereduce as nr
from tensorflow.keras.models import model_from_json
from sklearn.preprocessing import LabelEncoder
import pyaudio
import wave # for save audio file
import datetime
... | [] | [] | [
"TF_CPP_MIN_LOG_LEVEL"
] | [] | ["TF_CPP_MIN_LOG_LEVEL"] | python | 1 | 0 | |
start.go | package main
import (
"context"
"fmt"
"io"
"os"
"os/exec"
"path"
"path/filepath"
"strconv"
"strings"
"syscall"
"time"
eventsapi "github.com/containerd/containerd/api/events"
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/namespaces"
... | [
"\"UNIT_NAME\"",
"\"UNIT_NAME\"",
"\"UNIT_NAME\""
] | [] | [
"UNIT_NAME"
] | [] | ["UNIT_NAME"] | go | 1 | 0 | |
novajoin/configure_ipa.py | #!/usr/bin/python
# Copyright 2016 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 appl... | [] | [] | [
"KRB5CCNAME"
] | [] | ["KRB5CCNAME"] | python | 1 | 0 | |
rates/rates_test.go | package rates
import (
"os"
"testing"
)
func TestApiClient_GetRates_Integration(t *testing.T) {
// Marked as integration test because it requires network connection
// to Open Exchange Rates API
if testing.Short() {
t.Skip("Skipping test because it requires network")
}
// Fail test if not set, with descript... | [
"\"GOPHER_MONEY_API_KEY\""
] | [] | [
"GOPHER_MONEY_API_KEY"
] | [] | ["GOPHER_MONEY_API_KEY"] | go | 1 | 0 | |
resource_pool/resource_pool.go | package resource_pool
import (
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"net/url"
"os"
"os/exec"
"path"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/blang/semver"
"code.cloudfoundry.org/garden"
"github.com/cloudfoundry/gunk/command_runner"
"code.cloudfoundry.org/lager"
"code... | [
"\"PATH\"",
"\"PATH\""
] | [] | [
"PATH"
] | [] | ["PATH"] | go | 1 | 0 | |
docs/source/conf.py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [] | [] | [
"READTHEDOCS_LANGUAGE",
"SPHINX_NO_SEARCH",
"SPHINX_NO_GDSCRIPT",
"SPHINX_NO_DESCRIPTIONS",
"SPHINX_TAGS",
"READTHEDOCS"
] | [] | ["READTHEDOCS_LANGUAGE", "SPHINX_NO_SEARCH", "SPHINX_NO_GDSCRIPT", "SPHINX_NO_DESCRIPTIONS", "SPHINX_TAGS", "READTHEDOCS"] | python | 6 | 0 | |
openmcp-dns-controller/pkg/mypdns/pdns.go | package mypdns
import (
"context"
"github.com/mittwald/go-powerdns"
"github.com/mittwald/go-powerdns/apis/zones"
dnsv1alpha1 "openmcp/openmcp/apis/dns/v1alpha1"
"openmcp/openmcp/omcplog"
"os"
"sigs.k8s.io/controller-runtime/pkg/client"
)
var (
PDNS_IP = os.Getenv("PDNS_IP") // "10.0.3.12"
PDNS_PORT... | [
"\"PDNS_IP\"",
"\"PDNS_PORT\"",
"\"PDNS_API_KEY\""
] | [] | [
"PDNS_API_KEY",
"PDNS_PORT",
"PDNS_IP"
] | [] | ["PDNS_API_KEY", "PDNS_PORT", "PDNS_IP"] | go | 3 | 0 | |
sdk/resourcemanager/operationsmanagement/armoperationsmanagement/zz_generated_solutions_client.go | //go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... | [] | [] | [] | [] | [] | go | null | null | null |
appengine-java8/datastore-schedule-export/src/main/java/com/example/datastore/DatastoreExportServlet.java | /*
* Copyright 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | [
"\"GOOGLE_CLOUD_PROJECT\""
] | [] | [
"GOOGLE_CLOUD_PROJECT"
] | [] | ["GOOGLE_CLOUD_PROJECT"] | java | 1 | 0 | |
pkg/util/cmdutil/path.go | // Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... | [
"\"HOME\"",
"\"HOMEDRIVE\"",
"\"HOMEPATH\"",
"\"USERPROFILE\""
] | [] | [
"USERPROFILE",
"HOME",
"HOMEPATH",
"HOMEDRIVE"
] | [] | ["USERPROFILE", "HOME", "HOMEPATH", "HOMEDRIVE"] | go | 4 | 0 | |
chain/store/store.go | package store
import (
"bytes"
"context"
"encoding/binary"
"encoding/json"
"io"
"os"
"strconv"
"sync"
"github.com/filecoin-project/go-state-types/crypto"
"github.com/minio/blake2b-simd"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project... | [
"\"LOTUS_CHAIN_TIPSET_CACHE\"",
"\"LOTUS_CHAIN_MSGMETA_CACHE\"",
"\"LOTUS_IGNORE_DRAND\""
] | [] | [
"LOTUS_CHAIN_TIPSET_CACHE",
"LOTUS_IGNORE_DRAND",
"LOTUS_CHAIN_MSGMETA_CACHE"
] | [] | ["LOTUS_CHAIN_TIPSET_CACHE", "LOTUS_IGNORE_DRAND", "LOTUS_CHAIN_MSGMETA_CACHE"] | go | 3 | 0 | |
completers/gh_completer/cmd/action/run/run.go | package run
import (
"bytes"
"fmt"
exec "golang.org/x/sys/execabs"
"io"
"os"
"path/filepath"
"strings"
)
// Runnable is typically an exec.Cmd or its stub in tests
type Runnable interface {
Output() ([]byte, error)
Run() error
}
// PrepareCmd extends exec.Cmd with extra error reporting features and provides ... | [
"\"DEBUG\"",
"\"DEBUG\""
] | [] | [
"DEBUG"
] | [] | ["DEBUG"] | go | 1 | 0 | |
manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TwitterClone.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django.... | [] | [] | [] | [] | [] | python | 0 | 0 | |
tests/dist/utils.py | import subprocess
import multiprocessing as mp
from typing import Optional
import os
def run(ssh_cmd):
subprocess.check_call(ssh_cmd, shell=True)
def execute_remote(
cmd: str,
ip: str,
port: Optional[int] = 22,
username: Optional[str] = ""
) -> mp.Process:
"""Execute command line on remote ma... | [] | [] | [
"DIST_DGL_TEST_SSH_KEY",
"DIST_DGL_TEST_SSH_PORT",
"DIST_DGL_TEST_SSH_SETUP"
] | [] | ["DIST_DGL_TEST_SSH_KEY", "DIST_DGL_TEST_SSH_PORT", "DIST_DGL_TEST_SSH_SETUP"] | python | 3 | 0 | |
vendor/github.com/HewlettPackard/oneview-golang/examples/storage_pool.go | package main
import (
"fmt"
"github.com/HewlettPackard/oneview-golang/ov"
"os"
"strconv"
)
func main() {
var (
ClientOV *ov.OVClient
storage_pool = "Cluster-1"
)
apiversion, _ := strconv.Atoi(os.Getenv("ONEVIEW_APIVERSION"))
ovc := ClientOV.NewOVClient(
os.Getenv("ONEVIEW_OV_USER"),
os.Getenv("ON... | [
"\"ONEVIEW_APIVERSION\"",
"\"ONEVIEW_OV_USER\"",
"\"ONEVIEW_OV_PASSWORD\"",
"\"ONEVIEW_OV_DOMAIN\"",
"\"ONEVIEW_OV_ENDPOINT\""
] | [] | [
"ONEVIEW_OV_ENDPOINT",
"ONEVIEW_OV_DOMAIN",
"ONEVIEW_APIVERSION",
"ONEVIEW_OV_PASSWORD",
"ONEVIEW_OV_USER"
] | [] | ["ONEVIEW_OV_ENDPOINT", "ONEVIEW_OV_DOMAIN", "ONEVIEW_APIVERSION", "ONEVIEW_OV_PASSWORD", "ONEVIEW_OV_USER"] | go | 5 | 0 | |
common/constants.py | import os
from common import cli_helpers
# HOTSOS GLOBALS
DATA_ROOT = os.environ.get('DATA_ROOT', '/')
MASTER_YAML_OUT = os.environ.get('MASTER_YAML_OUT')
PLUGIN_TMP_DIR = os.environ.get('PLUGIN_TMP_DIR')
PLUGIN_NAME = os.environ.get('PLUGIN_NAME')
PART_NAME = os.environ.get('PART_NAME')
USE_ALL_LOGS = os.environ.get... | [] | [] | [
"DATA_ROOT",
"USE_ALL_LOGS",
"PLUGIN_NAME",
"PART_NAME",
"MASTER_YAML_OUT",
"PLUGIN_TMP_DIR"
] | [] | ["DATA_ROOT", "USE_ALL_LOGS", "PLUGIN_NAME", "PART_NAME", "MASTER_YAML_OUT", "PLUGIN_TMP_DIR"] | python | 6 | 0 | |
main.go | /*
Copyright The Stash 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, software
d... | [
"\"GOMAXPROCS\""
] | [] | [
"GOMAXPROCS"
] | [] | ["GOMAXPROCS"] | go | 1 | 0 | |
imageops/imageops/server.py | """
# Copyright 2021 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 ... | [] | [] | [
"IMAGE_PATH",
"TMP_PATH"
] | [] | ["IMAGE_PATH", "TMP_PATH"] | python | 2 | 0 | |
elastalert/util.py | # -*- coding: utf-8 -*-
import collections
import datetime
import logging
import os
import re
import sys
import dateutil.parser
import pytz
from six import string_types
from . import ElasticSearchClient
from .auth import Auth
logging.basicConfig()
elastalert_logger = logging.getLogger('elastalert')
def get_module(... | [] | [] | [
"ES_USE_SSL",
"ES_HOST",
"ES_USERNAME",
"ES_PASSWORD",
"ES_PORT"
] | [] | ["ES_USE_SSL", "ES_HOST", "ES_USERNAME", "ES_PASSWORD", "ES_PORT"] | python | 5 | 0 | |
utils/authentication.go | package utils
import (
"fmt"
"os"
"time"
"github.com/dgrijalva/jwt-go"
"github.com/hculpan/lordsofcrime/entity"
)
var jwtSecret []byte = []byte{}
// Claims defines the keys we want to put
// in the JWT token
type Claims struct {
Username string `json:"username"`
Password string `json:"password"`
FullN... | [
"\"LOC_SECRET_KEY\"",
"\"LOC_SECRET_KEY\""
] | [] | [
"LOC_SECRET_KEY"
] | [] | ["LOC_SECRET_KEY"] | go | 1 | 0 | |
layers/poky/meta/lib/oeqa/selftest/cases/wic.py | #!/usr/bin/env python
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (c) 2015, Intel Corporation.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# ... | [] | [] | [
"PATH"
] | [] | ["PATH"] | python | 1 | 0 | |
utils/config.go | package utils
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"os"
"strconv"
)
type TCPConfig struct {
IP string
Port int
CertPath string
KeyPath string
BufSize uint32
}
type DBConfig struct {
IP string
Port int
DbName string
User string
Password string
}
var Config str... | [
"\"IP\"",
"\"PORT\""
] | [] | [
"PORT",
"IP"
] | [] | ["PORT", "IP"] | go | 2 | 0 | |
libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/RuntimeTest.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... | [] | [] | [] | [] | [] | java | 0 | 0 | |
src/main/java/com/google/googleidentity/oauth2/endpoint/RiscDocEndpoint.java | /*
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 w... | [
"\"WEB_URL\"",
"\"WEB_URL\""
] | [] | [
"WEB_URL"
] | [] | ["WEB_URL"] | java | 1 | 0 | |
acareeg/visualization.py | # Authors: Christian O'Reilly <christian.oreilly@gmail.com>
# License: MIT
import matplotlib.pyplot as plt
from mne.externals.pymatreader import read_mat
from mne.transforms import apply_trans
import numpy as np
import nibabel as nib
import pandas as pd
from scipy.spatial import KDTree
from nibabel.freesurfer.io impor... | [] | [] | [
"SUBJECTS_DIR"
] | [] | ["SUBJECTS_DIR"] | python | 1 | 0 | |
service-base/src/test/java/fi/nls/oskari/util/PropertyUtilTest.java | package fi.nls.oskari.util;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import static org.junit.As... | [] | [] | [] | [] | [] | java | 0 | 0 | |
selfdrive/car/car_helpers.py | import os
from common.params import Params
from common.basedir import BASEDIR
from selfdrive.car.fingerprints import eliminate_incompatible_cars, all_known_cars
from selfdrive.car.vin import get_vin, VIN_UNKNOWN
from selfdrive.car.fw_versions import get_fw_versions, match_fw_to_car
from selfdrive.swaglog import cloudlo... | [] | [] | [
"FINGERPRINT"
] | [] | ["FINGERPRINT"] | python | 1 | 0 | |
config.py | import os
TOKEN = os.environ.get("2066417340:AAERvi25V1oe1iV_chpl1VF44Q7FyUHS-xk")
API_HASH = os.environ.get("6ac53d0c86a0afb6c3f1d956304912e0")
API_ID = int(os.environ.get("8973350"))
START_MESSAGE = os.environ.get("START_MESSAGE", "<b>Hi ! I am a simple torrent searcher using @chirag's Torrent Searcher api.\n\n... | [] | [] | [
"8973350",
"2066417340:AAERvi25V1oe1iV_chpl1VF44Q7FyUHS-xk",
"search anything",
"6ac53d0c86a0afb6c3f1d956304912e0",
"START_MESSAGE"
] | [] | ["8973350", "2066417340:AAERvi25V1oe1iV_chpl1VF44Q7FyUHS-xk", "search anything", "6ac53d0c86a0afb6c3f1d956304912e0", "START_MESSAGE"] | python | 5 | 0 | |
src/embedding/FaceProcessing.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import base64
from StringIO import StringIO
from PIL import Image
import numpy as np
import cv2
import os
import time
from scipy import misc
from scipy.misc import imread, imresize
import torch
from torchvisio... | [] | [] | [
"HAS_OPENCL",
"DATA_RUNTIME_FOLDER"
] | [] | ["HAS_OPENCL", "DATA_RUNTIME_FOLDER"] | python | 2 | 0 | |
go/cmd/zk/zkcmd.go | /*
Copyright 2017 Google 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 agreedto in writing, software
dist... | [
"\"EDITOR\""
] | [] | [
"EDITOR"
] | [] | ["EDITOR"] | go | 1 | 0 | |
resources/lib/speech_recognition/__init__.py | #!/usr/bin/env python3
"""Library for performing speech recognition, with support for several engines and APIs, online and offline."""
import io
import os
import sys
import subprocess
import wave
import aifc
import math
import audioop
import collections
import json
import base64
import threading
import platform
impor... | [] | [] | [
"PATH"
] | [] | ["PATH"] | python | 1 | 0 | |
test/fields/fields.go | // Copyright 2014 The go-github AUTHORS. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This tool tests for the JSON mappings in the go-github data types. It will
// identify fields that are returned by the live GitHub API, but that ar... | [
"\"GITHUB_AUTH_TOKEN\""
] | [] | [
"GITHUB_AUTH_TOKEN"
] | [] | ["GITHUB_AUTH_TOKEN"] | go | 1 | 0 | |
pkg/awsglue/integration_test.go | package awsglue
/**
* Copyright 2020 Panther Labs 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 applic... | [
"\"INTEGRATION_TEST\""
] | [] | [
"INTEGRATION_TEST"
] | [] | ["INTEGRATION_TEST"] | go | 1 | 0 | |
non_essentials/ss.py | ''' get date '''
def id_to_date(id):
import re, os
file = "/afs/slac.stanford.edu/u/ki/pkelly/pipeline/bluh2"
command = "/afs/slac/u/ki/anja/software/ldacpipeline-0.12.20/bin/Linux_64/caldate -d 31/12/1998 -i " + id + " > " + file
os.system(command)
yy = open(file,'r').readlines()
... | [] | [] | [
"dougdir",
"skyflatraw",
"subdir",
"xoc"
] | [] | ["dougdir", "skyflatraw", "subdir", "xoc"] | python | 4 | 0 | |
template_extends/template_extends/wsgi.py | """
WSGI config for template_extends 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [] | [] | [] | [] | [] | python | 0 | 0 | |
concurrent/concurrent.go | // DBDeployer - The MySQL Sandbox
// Copyright © 2006-2018 Giuseppe Maxia
//
// 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... | [
"\"DEBUG_CONCURRENCY\"",
"\"VERBOSE_CONCURRENCY\""
] | [] | [
"DEBUG_CONCURRENCY",
"VERBOSE_CONCURRENCY"
] | [] | ["DEBUG_CONCURRENCY", "VERBOSE_CONCURRENCY"] | go | 2 | 0 | |
bccsp/pkcs11/impl_test.go | // +build pkcs11
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package pkcs11
import (
"bytes"
"github.com/studyzy/crypto"
"github.com/studyzy/crypto/elliptic"
"crypto/rand"
"github.com/studyzy/crypto/rsa"
"github.com/studyzy/crypto/sha256"
"crypto/sha512"
"github.com/stu... | [
"\"PKCS11_LIB\"",
"\"PKCS11_PIN\"",
"\"PKCS11_LABEL\""
] | [] | [
"PKCS11_PIN",
"PKCS11_LIB",
"PKCS11_LABEL"
] | [] | ["PKCS11_PIN", "PKCS11_LIB", "PKCS11_LABEL"] | go | 3 | 0 | |
mwdust/Combined19.py | ###############################################################################
#
# Combined19: extinction model obtained from a combination of Marshall et al.
# (2006), Green et al. (2019), and Drimmel et al. (2003)
#
###############################################################################
impor... | [] | [] | [
"DUST_DIR"
] | [] | ["DUST_DIR"] | python | 1 | 0 | |
substrabac/substrabac/wsgi.py | """
WSGI config for substrabac 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_SE... | [] | [] | [] | [] | [] | python | 0 | 0 | |
config.py | import os
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', '').replace(
'pos... | [] | [] | [
"MAIL_SERVER",
"MAIL_PASSWORD",
"DATABASE_URL",
"MAIL_PORT",
"SECRET_KEY",
"LOG_TO_STDOUT",
"MAIL_USERNAME",
"MAIL_USE_TLS",
"MS_TRANSLATOR_KEY",
"ELASTICSEARCH_URL"
] | [] | ["MAIL_SERVER", "MAIL_PASSWORD", "DATABASE_URL", "MAIL_PORT", "SECRET_KEY", "LOG_TO_STDOUT", "MAIL_USERNAME", "MAIL_USE_TLS", "MS_TRANSLATOR_KEY", "ELASTICSEARCH_URL"] | python | 10 | 0 | |
send.go | package main
import (
"fmt"
"log"
"math/rand"
"os"
"strconv"
"github.com/streadway/amqp"
)
// failOnError is a helper function, so I can type if err != nil less.
func failOnError(err error, msg string) {
if err != nil {
log.Fatalf("%s: %s", msg, err)
}
}
func main() {
// Grab parameters
username := os.G... | [
"\"RABBITMQ_USERNAME\"",
"\"RABBITMQ_PASSWORD\"",
"\"ROO_TEST_SERVICE_HOST\""
] | [] | [
"ROO_TEST_SERVICE_HOST",
"RABBITMQ_USERNAME",
"RABBITMQ_PASSWORD"
] | [] | ["ROO_TEST_SERVICE_HOST", "RABBITMQ_USERNAME", "RABBITMQ_PASSWORD"] | go | 3 | 0 | |
server.go | // Package server implements a HTTP(S) server for kites.
package kite
import (
"crypto/tls"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"strconv"
"strings"
"sync"
)
// Run is a blocking method. It runs the kite server and then accepts requests
// asynchronously. It supports graceful restart via SIGUSR2.
func (k ... | [
"\"KITE_VERSION\""
] | [] | [
"KITE_VERSION"
] | [] | ["KITE_VERSION"] | go | 1 | 0 | |
services/common/golib/sns.go | package golib
import (
"fmt"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/sns"
"github.com/sirupsen/logrus"
)
// SNSPublishMsg publishes a message to an SNS topic
func SNSPublishMsg(ctx aws.Context, snsSvc *sns.SNS, input string, topicArn *string) error {
if input == "" {
return fm... | [
"\"LOCAL\""
] | [] | [
"LOCAL"
] | [] | ["LOCAL"] | go | 1 | 0 | |
vendor/github.com/vmware/govmomi/govc/flags/output.go | /*
Copyright (c) 2014-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 applicable law or agr... | [
"\"GOVC_INDENT\"",
"\"GOVC_FORMAT_ERROR\""
] | [] | [
"GOVC_INDENT",
"GOVC_FORMAT_ERROR"
] | [] | ["GOVC_INDENT", "GOVC_FORMAT_ERROR"] | go | 2 | 0 | |
collector/main.go | // Copyright 2017 Daniel Erat <dan@erat.org>
// All rights reserved.
// Package main implements a daemon that collects local data and sends it to the App Engine server.
package main
import (
"flag"
"fmt"
"log"
"os"
"path/filepath"
)
func main() {
var configPath string
flag.Usage = func() {
fmt.Fprintf(os.S... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
mantle/cmd/ore/gcloud/create-image.go | // Copyright 2015 CoreOS, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | [
"\"USER\""
] | [] | [
"USER"
] | [] | ["USER"] | go | 1 | 0 | |
enterprise/dev/ci/internal/ci/pipeline.go | // Package ci is responsible for generating a Buildkite pipeline configuration. It is invoked by the
// gen-pipeline.go command.
package ci
import (
"context"
"fmt"
"net/http"
"os"
"strconv"
"strings"
"time"
"github.com/google/go-github/v41/github"
"github.com/slack-go/slack"
"github.com/sourcegraph/source... | [
"\"BUILDKITE_PULL_REQUEST\"",
"\"BUILDKITE_PULL_REQUEST_BASE_BRANCH\"",
"\"BUILDKITE_PULL_REQUEST_REPO\"",
"\"BUILDKITE_COMMIT\"",
"\"BUILDKITE_MESSAGE\"",
"\"BUILDKITE_MESSAGE\""
] | [] | [
"BUILDKITE_PULL_REQUEST",
"BUILDKITE_COMMIT",
"BUILDKITE_MESSAGE",
"BUILDKITE_PULL_REQUEST_REPO",
"BUILDKITE_PULL_REQUEST_BASE_BRANCH"
] | [] | ["BUILDKITE_PULL_REQUEST", "BUILDKITE_COMMIT", "BUILDKITE_MESSAGE", "BUILDKITE_PULL_REQUEST_REPO", "BUILDKITE_PULL_REQUEST_BASE_BRANCH"] | go | 5 | 0 | |
cmd/cloudFoundryCreateService_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 cloudFoundryCreateServiceOptions struct {
CfAPI... | [
"\"PIPER_username\"",
"\"PIPER_password\"",
"\"PIPER_cfOrg\"",
"\"PIPER_cfSpace\"",
"\"PIPER_cfService\"",
"\"PIPER_cfServicePlan\"",
"\"PIPER_cfServiceInstanceName\"",
"\"PIPER_cfServiceBroker\"",
"\"PIPER_cfCreateServiceConfig\"",
"\"PIPER_cfServiceTags\""
] | [] | [
"PIPER_cfServiceTags",
"PIPER_cfSpace",
"PIPER_cfServicePlan",
"PIPER_password",
"PIPER_cfService",
"PIPER_username",
"PIPER_cfServiceInstanceName",
"PIPER_cfServiceBroker",
"PIPER_cfOrg",
"PIPER_cfCreateServiceConfig"
] | [] | ["PIPER_cfServiceTags", "PIPER_cfSpace", "PIPER_cfServicePlan", "PIPER_password", "PIPER_cfService", "PIPER_username", "PIPER_cfServiceInstanceName", "PIPER_cfServiceBroker", "PIPER_cfOrg", "PIPER_cfCreateServiceConfig"] | go | 10 | 0 | |
tests/secretbox_test.py | """Unit tests against secretbox.py"""
import os
from typing import Any
from typing import Generator
from unittest.mock import patch
import pytest
from secretbox import SecretBox
from tests.conftest import ENV_FILE_EXPECTED
@pytest.fixture
def secretbox() -> Generator[SecretBox, None, None]:
"""Default instance ... | [] | [] | [] | [] | [] | python | 0 | 0 | |
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-unmanaged-am-launcher/src/main/java/org/apache/hadoop/yarn/applications/unmanagedamlauncher/UnmanagedAMLauncher.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... | [] | [] | [] | [] | [] | java | 0 | 0 | |
setup.py | # -*- coding: utf-8 -*-
"""
Setup file for sabato.
Use setup.cfg to configure your project.
This file was generated with PyScaffold 3.2.3.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: https://pyscaffold.org/
"""
import sys
from pkg_resources import Vers... | [] | [] | [] | [] | [] | python | null | null | null |
cmd/breakCaesar/breakCaesar.go | package main
import "fmt"
import "io/ioutil"
import "log"
import "os"
import "github.com/karlek/tombraid/broken"
import "github.com/karlek/tombraid/frequency"
import "github.com/karlek/tombraid/caesar"
const (
charset = "abcdefghijklmnopqrstuvwxyz"
)
func main() {
err := breakCaesar()
if err != nil {
log.Print... | [
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
tools/train_face_netDivFC.py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
r"""
Basic training script for PyTorch
"""
# Set up custom environment before nearly anything else is imported
# NOTE: this should be the first import (no not reorder)
import os,sys
sys.path.insert(0,'/data/hongwei/face_benchmark')
from maskrcnn_b... | [] | [] | [
"CUDA_VISIBLE_DEVICES",
"WORLD_SIZE"
] | [] | ["CUDA_VISIBLE_DEVICES", "WORLD_SIZE"] | python | 2 | 0 | |
internal/env/env.go | // Package env holds environment variables used by the application. They differ
// in use to the fflags package which also uses environment variables, but is
// only to enable or disable feature flags.
package env
import "os"
type Vars struct {
}
//
// Options
//
func (v *Vars) LogFile() string {
return os.Getenv(... | [
"\"KICK_LOG\"",
"\"KICK_DEBUG\""
] | [] | [
"KICK_LOG",
"KICK_DEBUG"
] | [] | ["KICK_LOG", "KICK_DEBUG"] | go | 2 | 0 | |
config/wsgi.py | """
WSGI config for Django GeoIP Middleware project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSG... | [] | [] | [
"DJANGO_SETTINGS_MODULE"
] | [] | ["DJANGO_SETTINGS_MODULE"] | python | 1 | 0 | |
cmd/event-driven/listener/confirmation/main.go | package main
import (
"go-kafka-example/utils"
"os"
)
func main() {
// give your group name and custom group handler
utils.LoadConfigs()
utils.GetNewConsumerGroup("confirmation-worker", os.Getenv("PROVIDER_TOPIC"), utils.ConsumerGroupHandler{})
}
| [
"\"PROVIDER_TOPIC\""
] | [] | [
"PROVIDER_TOPIC"
] | [] | ["PROVIDER_TOPIC"] | go | 1 | 0 | |
final_project/machinetranslation/translator.py | import os
from ibm_watson import LanguageTranslatorV3
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
from dotenv import load_dotenv
load_dotenv()
apikey = os.environ['apikey']
url = os.environ['url']
authenticator = IAMAuthenticator(apikey)
language_translator = LanguageTranslatorV3(
version... | [] | [] | [
"url",
"apikey"
] | [] | ["url", "apikey"] | python | 2 | 0 | |
worker/executor.go | package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"runtime"
"strconv"
"sync"
"github.com/sethgrid/pester"
docker "github.com/fsouza/go-dockerclient"
. "github.com/smartfog/fogflow/common/config"
. "github.com/smartfog/fogflow/common/datamodel"
. "github.com/smartfo... | [
"\"DOCKER_HOST\"",
"\"DOCKER_CERT_PATH\""
] | [] | [
"DOCKER_HOST",
"DOCKER_CERT_PATH"
] | [] | ["DOCKER_HOST", "DOCKER_CERT_PATH"] | go | 2 | 0 | |
providers/dns/dyn/dyn.go | // Package dyn implements a DNS provider for solving the DNS-01 challenge
// using Dyn Managed DNS.
package dyn
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
"strconv"
"time"
"github.com/nicky-dev/lego/acmev2"
)
var dynBaseURL = "https://api.dynect.net/REST"
type dynResponse struct {
// One of 'su... | [
"\"DYN_CUSTOMER_NAME\"",
"\"DYN_USER_NAME\"",
"\"DYN_PASSWORD\""
] | [] | [
"DYN_CUSTOMER_NAME",
"DYN_USER_NAME",
"DYN_PASSWORD"
] | [] | ["DYN_CUSTOMER_NAME", "DYN_USER_NAME", "DYN_PASSWORD"] | go | 3 | 0 | |
mysql-practice/mysql-sqlalchemy-practice.py | import mysql.connector as mysql
from mysqlx import Error
from sqlalchemy import Column, String, ForeignKey, create_engine, Integer
from sqlalchemy.orm import sessionmaker, relationship
from sqlalchemy.ext.declarative import declarative_base
import os
# Since sqlalchemy does not initialize database, it just connects to... | [] | [] | [
"ROOT_PASSWORD"
] | [] | ["ROOT_PASSWORD"] | python | 1 | 0 | |
starport/pkg/gocmd/gocmd.go | package gocmd
import (
"context"
"errors"
"fmt"
"os"
"path/filepath"
"strings"
"github.com/tendermint/starport/starport/pkg/cmdrunner/exec"
"github.com/tendermint/starport/starport/pkg/cmdrunner/step"
"github.com/tendermint/starport/starport/pkg/goenv"
)
const (
// CommandInstall represents go "install" co... | [
"\"GONAME\""
] | [] | [
"GONAME"
] | [] | ["GONAME"] | go | 1 | 0 | |
pkg/services/slack/slack_test.go | package slack_test
import (
"errors"
. "github.com/containrrr/shoutrrr/pkg/services/slack"
"github.com/containrrr/shoutrrr/pkg/util"
"github.com/jarcoal/httpmock"
"log"
"net/url"
"os"
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func TestSlack(t *testing.T) {
RegisterFailHandler(Fail... | [
"\"SHOUTRRR_SLACK_URL\""
] | [] | [
"SHOUTRRR_SLACK_URL"
] | [] | ["SHOUTRRR_SLACK_URL"] | go | 1 | 0 | |
src/yajsw/src/main/java/org/rzo/yajsw/os/ms/win/w32/OperatingSystemWindowsXP.java | /*******************************************************************************
* Copyright 2015 rzorzorzo@users.sf.net
*
* 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
*
* ... | [] | [] | [] | [] | [] | java | 0 | 0 | |
rest/_examples/zones.go | package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"time"
api "gopkg.in/nkpetko/ns1-go-dev.v2/rest"
"gopkg.in/nkpetko/ns1-go-dev.v2/rest/model/dns"
"gopkg.in/nkpetko/ns1-go-dev.v2/rest/model/filter"
)
var client *api.Client
// Helper that initializes rest api client from environment variable... | [
"\"NS1_APIKEY\""
] | [] | [
"NS1_APIKEY"
] | [] | ["NS1_APIKEY"] | go | 1 | 0 | |
ml-agents/tests/yamato/yamato_utils.py | import os
import shutil
import subprocess
import yaml
from typing import List, Optional
def get_unity_executable_path():
UNITY_VERSION = os.environ["UNITY_VERSION"]
BOKKEN_UNITY = f"/Users/bokken/{UNITY_VERSION}/Unity.app/Contents/MacOS/Unity"
HUB_UNITY = (
f"/Applications/Unity/Hub/Editor/{UNITY_... | [] | [] | [
"UNITY_VERSION"
] | [] | ["UNITY_VERSION"] | python | 1 | 0 | |
manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "search_engine.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [] | [] | [] | [] | [] | python | 0 | 0 | |
datalad/core/distributed/tests/test_push.py | # -*- coding: utf-8 -*-
# ex: set sts=4 ts=4 sw=4 et:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ... | [] | [] | [] | [] | [] | python | 0 | 0 | |
mongo/integration/mtest/setup.go | // Copyright (C) MongoDB, Inc. 2017-present.
//
// 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
package mtest
import (
"context"
"errors"
"fmt... | [
"\"ATLAS_DATA_LAKE_INTEGRATION_TEST\"",
"\"REQUIRE_API_VERSION\"",
"\"AUTH\"",
"\"SSL\"",
"\"MONGO_GO_DRIVER_CA_FILE\"",
"\"MONGO_GO_DRIVER_COMPRESSOR\"",
"\"MONGODB_URI\""
] | [] | [
"REQUIRE_API_VERSION",
"SSL",
"AUTH",
"ATLAS_DATA_LAKE_INTEGRATION_TEST",
"MONGO_GO_DRIVER_CA_FILE",
"MONGO_GO_DRIVER_COMPRESSOR",
"MONGODB_URI"
] | [] | ["REQUIRE_API_VERSION", "SSL", "AUTH", "ATLAS_DATA_LAKE_INTEGRATION_TEST", "MONGO_GO_DRIVER_CA_FILE", "MONGO_GO_DRIVER_COMPRESSOR", "MONGODB_URI"] | go | 7 | 0 | |
tests/flask/test_oauth2/oauth2_server.py | import os
import base64
import unittest
from flask import Flask, request
from authlib.common.security import generate_token
from authlib.common.encoding import to_bytes, to_unicode
from authlib.common.urls import url_encode
from authlib.flask.oauth2.sqla import (
create_query_client_func,
create_save_token_func... | [] | [] | [
"AUTHLIB_INSECURE_TRANSPORT"
] | [] | ["AUTHLIB_INSECURE_TRANSPORT"] | python | 1 | 0 | |
pp/pp_item_server.py | import pp_keys
import pp_lineage
from pp_item import Item
import cPickle
import logging
import os
import time
from jsonrpc import ServiceProxy
USER_ACCOUNT_FILENAME = 'user_account.pickle'
#BLOCK_DIRECTORY = '/home/than/windows-than/bitcoin_testnet/testnet-box/1/testnet3'
BLOCK_DIRECTORY = '/home/' + os.environ['USER... | [] | [] | [
"USER"
] | [] | ["USER"] | python | 1 | 0 | |
openNMT_integ_dataset.py | import os
import torch
import datasets
import translation_models.model as tmm
import translation_models.help_fun as transl_hf
import onmt
import model_manager
import quantization
import copy
import pickle
import functools
import quantization.help_functions as qhf
import helpers.functions as mhf
cuda_devices = os.envir... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
homeassistant/components/alarm_control_panel/__init__.py | """Component to interface with an alarm control panel."""
from __future__ import annotations
from dataclasses import dataclass
from datetime import timedelta
import logging
from typing import Any, Final, final
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.const impo... | [] | [] | [] | [] | [] | python | null | null | null |
main.go | package main
import (
"io"
"log"
"net/http"
"os"
"strconv"
"github.com/didip/tollbooth"
"github.com/didip/tollbooth_negroni"
"github.com/urfave/negroni"
)
var apiList Entries
var categories []string
func main() {
jsonFile := os.Getenv("JSONFILE")
if jsonFile == "" {
jsonFile = "/entries.json"
}
getLis... | [
"\"JSONFILE\"",
"\"PORT\"",
"\"RATE\"",
"\"LOGFILE\""
] | [] | [
"PORT",
"RATE",
"LOGFILE",
"JSONFILE"
] | [] | ["PORT", "RATE", "LOGFILE", "JSONFILE"] | go | 4 | 0 | |
logkit/logkit/asgi.py | """
ASGI config for logkit 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('DJANGO_SETTIN... | [] | [] | [] | [] | [] | python | 0 | 0 | |
app.go | package main
import (
"bufio"
"fmt"
"log"
"os"
"regexp"
"time"
"github.com/mitchellh/go-homedir"
)
const (
// AppName コマンドの名前
AppName = "dt"
unixSeconds = "unix"
unixMilliSeconds = "unixm"
)
// AdjustDay 対応する月に同じ日が存在しないときの調整
type AdjustDay int
const (
// AdjustToEndOfMonth 対応する月に同じ日が存在しない... | [
"\"XDG_CONFIG_HOME\""
] | [] | [
"XDG_CONFIG_HOME"
] | [] | ["XDG_CONFIG_HOME"] | go | 1 | 0 | |
pkg/apis/management.cattle.io/v3/authn_types.go | package v3
import (
"github.com/rancher/wrangler/pkg/genericcondition"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +genclient
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type User struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"me... | [] | [] | [] | [] | [] | go | null | null | null |
pkg/go209/modules.go | package go209
import (
"errors"
"fmt"
"os"
"plugin"
"strings"
log "github.com/sirupsen/logrus"
)
// PreloadedModules is the list of .so files from the root directory we load by default
const PreloadedModules = "email-mod:slackwebhook-mod"
var modules = LoadedModules{}
// Module defines what our plugins have ... | [
"\"DYNAMIC_MODULES\"",
"\"DYNAMIC_MODULES\""
] | [] | [
"DYNAMIC_MODULES"
] | [] | ["DYNAMIC_MODULES"] | go | 1 | 0 | |
kubetest/federation.go | /*
Copyright 2017 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, ... | [
"\"FEDERATION_REPO\""
] | [] | [
"FEDERATION_REPO"
] | [] | ["FEDERATION_REPO"] | go | 1 | 0 | |
colcon_acceleration/subverb/__init__.py | # ____ ____
# / /\/ /
# /___/ \ / Copyright (c) 2021, Xilinx®.
# \ \ \/ Author: Víctor Mayoral Vilches <victorma@xilinx.com>
# \ \
# / /
# /___/ /\
# \ \ / \
# \___\/\___\
#
# Licensed under the Apache License, Version 2.0
#
import os
import subprocess
import sys
from colcon_co... | [] | [] | [
"XILINX_VIVADO",
"PWD",
"XILINX_HLS",
"XILINX_VITIS"
] | [] | ["XILINX_VIVADO", "PWD", "XILINX_HLS", "XILINX_VITIS"] | python | 4 | 0 | |
src/main/java/cn/leancloud/demo/todo/Application.java | package cn.leancloud.demo.todo;
import javax.servlet.ServletContextListener;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.... | [
"\"LEANCLOUD_APP_ID\"",
"\"LEANCLOUD_APP_KEY\"",
"\"LEANCLOUD_APP_MASTER_KEY\"",
"\"LEANCLOUD_APP_ENV\""
] | [] | [
"LEANCLOUD_APP_ID",
"LEANCLOUD_APP_ENV",
"LEANCLOUD_APP_MASTER_KEY",
"LEANCLOUD_APP_KEY"
] | [] | ["LEANCLOUD_APP_ID", "LEANCLOUD_APP_ENV", "LEANCLOUD_APP_MASTER_KEY", "LEANCLOUD_APP_KEY"] | java | 4 | 0 | |
countingStrategy.go | package wonging
type CountingStrategy func(*Counter) float32
// strategies
func getHiLo(c *Counter) float32 {
return float32(c.HiLo)
}
func getHiOpt1(c *Counter) float32 {
return float32(c.HiOpt1)
}
func getHiOpt2(c *Counter) float32 {
return float32(c.HiOpt2)
}
func getKO(c *Counter) float32 {
return float32(... | [] | [] | [] | [] | [] | go | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.