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 |
|---|---|---|---|---|---|---|---|---|---|---|
s3/pkg/service.go | package pkg
import (
"context"
"github.com/opensds/go-panda/s3/pkg/db"
"github.com/micro/go-log"
pb "github.com/opensds/go-panda/s3/proto"
"os"
. "github.com/opensds/go-panda/dataflow/pkg/utils"
. "github.com/opensds/go-panda/s3/pkg/exception"
)
type s3Service struct{}
func (b *s3Service) ListBuckets(ctx con... | [
"\"DB_HOST\""
] | [] | [
"DB_HOST"
] | [] | ["DB_HOST"] | go | 1 | 0 | |
pkg/helmexec/exec.go | package helmexec
import (
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"sync"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
const (
command = "helm"
)
type execer struct {
helmBinary string
runner Runner
logger *zap.SugaredLogger
kubeContext string
extra ... | [
"\"HELM_SECRETS_DEC_SUFFIX\""
] | [] | [
"HELM_SECRETS_DEC_SUFFIX"
] | [] | ["HELM_SECRETS_DEC_SUFFIX"] | go | 1 | 0 | |
airflow/executors/celery_executor.py | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | [] | [] | [] | [] | [] | python | 0 | 0 | |
spades/config.py | # -*- coding: utf-8 -*-
# copyright: (c) 2020 by Jesse Johnson.
# license: Apache 2.0, see LICENSE for more details.
'''Provide book package.'''
import os
from passlib.pwd import genword
from redis import Redis
# logging
loglevel: str = os.getenv('LOGLEVEL', 'INFO').upper()
# spades settings
player_max: int = 2
win... | [] | [] | [
"SQLALCHEMY_ECHO",
"SQLALCHEMY_TRACK_MODIFICATIONS",
"REDIS_PORT",
"POSTGRESQL_HOST",
"SESSION_TYPE",
"REDIS_HOST",
"POSTGRESQL_PORT",
"REDIS_PASSWORD",
"POSTGRESQL_DATABASE",
"LOGLEVEL",
"REDIS_TIMEOUT",
"POSTGRESQL_PASSWORD",
"SQLALCHEMY_DATABASE_URI",
"POSTGRESQL_USER",
"DB_TYPE"
] | [] | ["SQLALCHEMY_ECHO", "SQLALCHEMY_TRACK_MODIFICATIONS", "REDIS_PORT", "POSTGRESQL_HOST", "SESSION_TYPE", "REDIS_HOST", "POSTGRESQL_PORT", "REDIS_PASSWORD", "POSTGRESQL_DATABASE", "LOGLEVEL", "REDIS_TIMEOUT", "POSTGRESQL_PASSWORD", "SQLALCHEMY_DATABASE_URI", "POSTGRESQL_USER", "DB_TYPE"] | python | 15 | 0 | |
source/git/gitsource.go | package git
import (
"bytes"
"context"
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"net/url"
"os"
"os/exec"
"os/user"
"path"
"path/filepath"
"regexp"
"strconv"
"strings"
"github.com/moby/buildkit/cache"
"github.com/moby/buildkit/client"
"github.com/moby/buildkit/identity"
"github.com/moby/buildkit/ses... | [
"\"PATH\""
] | [] | [
"PATH"
] | [] | ["PATH"] | go | 1 | 0 | |
cmd/pillbox/config.go | package main
import (
"fmt"
"os"
"github.com/fteem/pbox/launchd"
)
var (
agentConfig = &launchd.Config{
ExecutableName: "pillboxd",
Program: fmt.Sprintf("%s/bin/pillboxd", os.Getenv("GOPATH")),
WorkingDirectory: "/Users/ie/projects/go/bin",
Name: "com.ieftimov.pillbox",
DisplayNa... | [
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
google/appengine/tools/devappserver2/devappserver2.py | #!/usr/bin/env python
#
# Copyright 2007 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 o... | [] | [] | [
"OAUTH_IS_ADMIN",
"TZ",
"APPLICATION_ID"
] | [] | ["OAUTH_IS_ADMIN", "TZ", "APPLICATION_ID"] | python | 3 | 0 | |
images/wallarm-api-proxy/proxy.go | /*
Copyright 2019 Wallarm 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 writing, software
dis... | [
"\"WALLARM_API_USE_SSL\"",
"\"WALLARM_API_HOST\"",
"\"WALLARM_API_PORT\"",
"\"WALLARM_API_HOST\"",
"\"WALLARM_API_PORT\""
] | [] | [
"WALLARM_API_PORT",
"WALLARM_API_USE_SSL",
"WALLARM_API_HOST"
] | [] | ["WALLARM_API_PORT", "WALLARM_API_USE_SSL", "WALLARM_API_HOST"] | go | 3 | 0 | |
pkg/params/info/pac.go | package info
import (
"io/ioutil"
"os"
"strings"
"github.com/spf13/cobra"
)
type PacOpts struct {
LogURL string
ApplicationName string // the Application Name for example "Pipelines as Code"
SecretAutoCreation bool // secret auto creation in target namespace
ProviderToken string... | [
"\"PAC_GIT_PROVIDER_TYPE\"",
"\"PAC_GIT_PROVIDER_TOKEN\"",
"\"PAC_GIT_PROVIDER_APIURL\"",
"\"PAC_PAYLOAD_FILE\"",
"\"PAC_APPLICATION_NAME\"",
"\"PAC_SECRET_AUTO_CREATE\""
] | [] | [
"PAC_GIT_PROVIDER_APIURL",
"PAC_SECRET_AUTO_CREATE",
"PAC_GIT_PROVIDER_TOKEN",
"PAC_GIT_PROVIDER_TYPE",
"PAC_PAYLOAD_FILE",
"PAC_APPLICATION_NAME"
] | [] | ["PAC_GIT_PROVIDER_APIURL", "PAC_SECRET_AUTO_CREATE", "PAC_GIT_PROVIDER_TOKEN", "PAC_GIT_PROVIDER_TYPE", "PAC_PAYLOAD_FILE", "PAC_APPLICATION_NAME"] | go | 6 | 0 | |
data_conversion_subsystem/test/data_converter/test_data_converter.py | import datetime
from copy import deepcopy
from os import environ
from unittest import TestCase, mock
from unittest.mock import Mock
from pytz import UTC
from requests import Timeout
import data_conversion_subsystem.data_converter.data_converter as data_converter
from data_conversion_subsystem.config.config import DCS... | [] | [] | [] | [] | [] | python | 0 | 0 | |
main.go | package main
import (
"crypto/tls"
"encoding/json"
"flag"
"fmt"
"log"
"os"
"strconv"
"github.com/jle35/proxmox-api-go/proxmox"
)
func main() {
var insecure *bool
insecure = flag.Bool("insecure", false, "TLS insecure mode")
proxmox.Debug = flag.Bool("debug", false, "debug mode")
taskTimeout := flag.Int("t... | [
"\"PM_API_URL\"",
"\"PM_USER\"",
"\"PM_PASS\"",
"\"PM_OTP\""
] | [] | [
"PM_PASS",
"PM_USER",
"PM_OTP",
"PM_API_URL"
] | [] | ["PM_PASS", "PM_USER", "PM_OTP", "PM_API_URL"] | go | 4 | 0 | |
run_lualatex.py | #!/usr/bin/env python
import glob
import os
import subprocess
import sys
# Walk through all externals. If they start with the special prefix
# texlive_{extra,texmf}__ prefix, it means they should be part of the
# texmf directory. LaTeX utilities don't seem to like the use of
# symlinks, so move the externals into the... | [] | [] | [] | [] | [] | python | 0 | 0 | |
config/db.go | package config
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
"log"
"os"
)
var DB *sql.DB
func init() {
//Set Variables
dbName := os.Getenv("dbName")
dbPass := os.Getenv("dbPass")
dbHost := os.Getenv("dbHost")
dbUser := os.Getenv("dbUser")
var err error
//Open DB Connection
dsn := dbUser + "... | [
"\"dbName\"",
"\"dbPass\"",
"\"dbHost\"",
"\"dbUser\""
] | [] | [
"dbUser",
"dbName",
"dbPass",
"dbHost"
] | [] | ["dbUser", "dbName", "dbPass", "dbHost"] | go | 4 | 0 | |
inference/models/encoders/ordered_memory.py | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
class Distribution(nn.Module):
def __init__(self, nslot, hidden_size, dropout):
super(Distribution, self).__init__()
self.query = nn.Sequential(
nn.Dropout(dropout),
nn.Linear(hidden_size, hidde... | [] | [] | [] | [] | [] | python | null | null | null |
attacks/momentum_iterative_attack.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from advertorch.context import ctx_noparamgrad_... | [] | [] | [
"WANDB_API_KEY"
] | [] | ["WANDB_API_KEY"] | python | 1 | 0 | |
parser_test.go | package swag
import (
"encoding/json"
goparser "go/parser"
"go/token"
"io/ioutil"
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
)
const defaultParseDepth = 100
const mainAPIFile = "main.go"
func TestNew(t *testing.T) {
swagMode = test
New()
}
func TestSetMarkdownFileDirectory(t *te... | [
"\"GOPATH\"",
"\"GOPATH\"",
"\"GOPATH\"",
"\"GOPATH\"",
"\"GOPATH\"",
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
deployments/cloudfoundry/buildpack-windows/src/supply/supply.go | package main
import (
"io"
"net/http"
"os"
"os/exec"
"path/filepath"
"time"
)
// Please don't change the formatting of this line - it's automatically updated by SetAllVersions.cs
const LatestVersion = "0.1.16"
func getAgentVersion() string {
version, ok := os.LookupEnv("SIGNALFX_DOTNET_TRACING_VERSION")
if !... | [
"\"SIGNALFX_USE_HWC\""
] | [] | [
"SIGNALFX_USE_HWC"
] | [] | ["SIGNALFX_USE_HWC"] | go | 1 | 0 | |
main.go | package main
// A CNI IPAM plugin that takes /proc/cmdline and the environment variables and
// outputs the CNI configuration required for the external IP address for the
// pod in question. IPAM plugins send and receive JSON on stdout and stdin,
// respectively, and are passed arguments and configuration information... | [
"\"CNI_COMMAND\""
] | [] | [
"CNI_COMMAND"
] | [] | ["CNI_COMMAND"] | go | 1 | 0 | |
app/app/settings.py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.1.15.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [] | [] | [
"DB_PASS",
"DB_USER",
"DB_NAME",
"DB_HOST"
] | [] | ["DB_PASS", "DB_USER", "DB_NAME", "DB_HOST"] | python | 4 | 0 | |
nsd1904/devops/day01/mtping3.py | import subprocess
import threading
class Ping:
def __init__(self, host):
self.host = host
def __call__(self):
result = subprocess.run(
'ping -c2 %s &> /dev/null' % self.host,
shell=True
)
if result.returncode == 0:
print('%s:up' % self.host)
... | [] | [] | [] | [] | [] | python | null | null | null |
fiaas_deploy_daemon/pipeline/consumer.py | #!/usr/bin/env python
# -*- coding: utf-8
# Copyright 2017-2019 The FIAAS 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
#
# Unle... | [] | [] | [
"ALLOW_WITHOUT_MESSAGES_MIN"
] | [] | ["ALLOW_WITHOUT_MESSAGES_MIN"] | python | 1 | 0 | |
pkg/executor/newdeploy/newdeploymgr.go | /*
Copyright 2016 The Fission 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, sof... | [
"\"ENABLE_ISTIO\"",
"\"ENABLE_ISTIO\"",
"\"RUNTIME_IMAGE_PULL_POLICY\""
] | [] | [
"ENABLE_ISTIO",
"RUNTIME_IMAGE_PULL_POLICY"
] | [] | ["ENABLE_ISTIO", "RUNTIME_IMAGE_PULL_POLICY"] | go | 2 | 0 | |
salt/modules/dockerio.py | # -*- coding: utf-8 -*-
'''
Management of Docker Containers
.. versionadded:: 2014.1.0
.. deprecated:: 2015.8.0
Future feature development will be done only in :mod:`dockerng
<salt.modules.dockerng>`. See the documentation for this module for
information on the deprecation path.
.. note::
The Docker... | [] | [] | [
"DOCKER_HOST"
] | [] | ["DOCKER_HOST"] | python | 1 | 0 | |
nodehost_test.go | // Copyright 2017-2021 Lei Ni (nilei81@gmail.com) and other contributors.
//
// 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... | [
"\"DRAGONBOAT_TEST_PORT\"",
"\"SLOW_TEST\""
] | [] | [
"SLOW_TEST",
"DRAGONBOAT_TEST_PORT"
] | [] | ["SLOW_TEST", "DRAGONBOAT_TEST_PORT"] | go | 2 | 0 | |
cancel.py | import gdax
import os
import json
API_KEY = os.environ['GDAX_API_KEY']
API_SECRET = os.environ['GDAX_API_SECRET']
API_PASS = os.environ['GDAX_API_PASS']
def main():
'''
Cancels all bitcoin orders.
'''
client = gdax.AuthenticatedClient(API_KEY, API_SECRET, API_PASS)
r = client.cancel_all(product='... | [] | [] | [
"GDAX_API_SECRET",
"GDAX_API_KEY",
"GDAX_API_PASS"
] | [] | ["GDAX_API_SECRET", "GDAX_API_KEY", "GDAX_API_PASS"] | python | 3 | 0 | |
backend/config/wsgi.py | """
WSGI config for web project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [] | [] | [] | [] | [] | python | 0 | 0 | |
sdk/java/src/main/java/org/arvados/sdk/Arvados.java | // Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
package org.arvados.sdk;
import com.google.api.client.http.javanet.*;
import com.google.api.client.http.ByteArrayContent;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpBackOffIOEx... | [] | [] | [] | [] | [] | java | 0 | 0 | |
tilda/__init__.py | from freenit.api import register_endpoints
def create_api(app):
register_endpoints(app, '/api/v0', [])
| [] | [] | [] | [] | [] | python | null | null | null |
run_project_tests.py | #!/usr/bin/env python3
# Copyright 2012-2019 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by... | [] | [] | [
"VALAC",
"compiler"
] | [] | ["VALAC", "compiler"] | python | 2 | 0 | |
cmd/nerdctl/build.go | /*
Copyright The containerd Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | [
"\"BUILDKIT_HOST\""
] | [] | [
"BUILDKIT_HOST"
] | [] | ["BUILDKIT_HOST"] | go | 1 | 0 | |
greenlight-agent/src/greenlight/views.py | from datetime import datetime
import os
import json
import time
from importlib import import_module
from django.http import JsonResponse
from django.shortcuts import render, redirect
from django.http import Http404
from von_connector.config import Configurator
from von_connector.schema import SchemaManager
from von_... | [] | [] | [
"REDIS_PASSWORD",
"{}_SERVICE_PORT'.format(redis_key_nam",
"REDIS_SERVICE_NAME",
"{}_SERVICE_HOST'.format(redis_key_nam"
] | [] | ["REDIS_PASSWORD", "{}_SERVICE_PORT'.format(redis_key_nam", "REDIS_SERVICE_NAME", "{}_SERVICE_HOST'.format(redis_key_nam"] | python | 4 | 0 | |
cmd/publish.go | package cmd
import (
"os"
"github.com/rubiojr/tavern/client"
"github.com/spf13/cobra"
)
var url, charmHost *string
var charmHTTPPort, charmSSHPort *int
const defaultURL = "https://pub.rbel.co"
var publishCmd = &cobra.Command{
Use: "publish",
Short: "Publish Charm FS files to a Tavern server",
Args: cobra.... | [
"\"TAVERN_SERVER_URL\"",
"\"TAVERN_SERVER_URL\""
] | [] | [
"TAVERN_SERVER_URL"
] | [] | ["TAVERN_SERVER_URL"] | go | 1 | 0 | |
tests/testutils/utils.go | // Copyright (c) 2017 Tigera, 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 appli... | [
"\"PRIVATE_KEY\"",
"\"HYPERKUBE_IMAGE\"",
"\"PRIVATE_KEY\"",
"\"HYPERKUBE_IMAGE\"",
"\"ETCD_IMAGE\""
] | [] | [
"HYPERKUBE_IMAGE",
"PRIVATE_KEY",
"ETCD_IMAGE"
] | [] | ["HYPERKUBE_IMAGE", "PRIVATE_KEY", "ETCD_IMAGE"] | go | 3 | 0 | |
boskos/cmd/mason_client/main.go | // Copyright 2018 Istio 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 i... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
configuration.go | package iris
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"os"
"os/exec"
"os/user"
"path/filepath"
"runtime"
"strings"
"github.com/kataras/iris/v12/context"
"github.com/kataras/iris/v12/core/netutil"
"github.com/BurntSushi/toml"
"github.com/kataras/sitemap"
"gopkg.in/yaml.v... | [
"\"HOME\"",
"\"home\"",
"\"HOMEDRIVE\"",
"\"HOMEPATH\"",
"\"USERPROFILE\""
] | [] | [
"home",
"HOMEPATH",
"HOMEDRIVE",
"USERPROFILE",
"HOME"
] | [] | ["home", "HOMEPATH", "HOMEDRIVE", "USERPROFILE", "HOME"] | go | 5 | 0 | |
aicupboard/asgi.py | """
ASGI config for aicupboard 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [] | [] | [] | [] | [] | python | 0 | 0 | |
datalabeling/beta/cloud-client/src/test/java/com/example/datalabeling/LabelImageIT.java | /*
* Copyright 2019 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... | [] | [] | [] | [] | [] | java | 0 | 0 | |
pkg/driver/plugin/plugin_test.go | package plugin_test
import (
"context"
"encoding/json"
"errors"
"os"
"os/exec"
"testing"
"github.com/graphql-editor/stucco/pkg/driver"
"github.com/graphql-editor/stucco/pkg/driver/drivertest"
"github.com/graphql-editor/stucco/pkg/driver/plugin"
goplugin "github.com/hashicorp/go-plugin"
"github.com/stretchr... | [
"\"GO_WANT_HELPER_PROCESS\"",
"\"GO_WANT_HELPER_PROCESS\""
] | [] | [
"GO_WANT_HELPER_PROCESS"
] | [] | ["GO_WANT_HELPER_PROCESS"] | go | 1 | 0 | |
src/synapse_downloader/synapse_downloader_old.py | import os
import getpass
import synapseclient as syn
import logging
from datetime import datetime
class SynapseDownloaderOld:
def __init__(self, starting_entity_id, download_path, username=None, password=None):
self._synapse_client = None
self._starting_entity_id = starting_entity_id
self.... | [] | [] | [
"SYNAPSE_PASSWORD",
"SYNAPSE_USERNAME"
] | [] | ["SYNAPSE_PASSWORD", "SYNAPSE_USERNAME"] | python | 2 | 0 | |
mtslogger/main.py | import logging
import os
import sys
from colorama import Back, Fore, Style
from datetime import datetime
class Logger(logging.Logger):
"""Encapsulate the logging methods.
This is the standard logger for use with this package. It is in its basic
stage, but it is functional. The basic usage is
```
... | [] | [] | [
"log_user_error",
"log_file",
"log_output",
"log_level"
] | [] | ["log_user_error", "log_file", "log_output", "log_level"] | python | 4 | 0 | |
flink-kubernetes/src/main/java/org/apache/flink/kubernetes/KubernetesResourceManager.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 | |
CartPole-basic.py | # OpenGym CartPole-v0
# -------------------
#
# This code demonstrates use of a basic Q-network (without target network)
# to solve OpenGym CartPole-v0 problem.
#
# Made as part of blog series Let's make a DQN, available at:
# https://jaromiru.com/2016/10/03/lets-make-a-dqn-implementation/
#
# author: Jaromir Janisch... | [] | [] | [
"THEANO_FLAGS"
] | [] | ["THEANO_FLAGS"] | python | 1 | 0 | |
citrixadc/resource_citrixadc_interface.go | package citrixadc
import (
"github.com/chiradeep/go-nitro/config/network"
"github.com/chiradeep/go-nitro/netscaler"
"github.com/hashicorp/terraform/helper/schema"
"fmt"
"log"
)
func resourceCitrixAdcInterface() *schema.Resource {
return &schema.Resource{
SchemaVersion: 1,
Create: createInterfaceFun... | [] | [] | [] | [] | [] | go | null | null | null |
code/register/register_model.py | """
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft Corporation (“Microsoft”) grants you a nonexclusive, perpetual,
royalty-free right to use, copy, and modify the software code provided by us
("Software Code"). You may not sublicense the Software Code or any use of it
(except to your affiliates... | [] | [] | [
"RESOURCE_GROUP",
"WORKSPACE_NAME",
"EXPERIMENT_NAME",
"SUBSCRIPTION_ID",
"BUILD_BUILDID"
] | [] | ["RESOURCE_GROUP", "WORKSPACE_NAME", "EXPERIMENT_NAME", "SUBSCRIPTION_ID", "BUILD_BUILDID"] | python | 5 | 0 | |
docs/sphinx/make.py | #! python3
import os
import sys
import subprocess
import shutil
from os import path
class SphinxBuild(object):
'''Sphinx Build Script'''
def __init__(self):
'''Class Init'''
self.SOURCEDIR = path.abspath('source')
self.BUILDDIR = path.abspath('build')
self.SPHINXBUILD = 'sphinx... | [] | [] | [
"SOURCEDIR",
"BUILDDIR",
"SPHINXBUILD"
] | [] | ["SOURCEDIR", "BUILDDIR", "SPHINXBUILD"] | python | 3 | 0 | |
database/database.go | package database
import (
"context"
"fmt"
"os"
"github.com/sthorer/api/ent"
)
type Database struct {
*ent.Client
}
const (
defaultDatabaseDriver = "sqlite3"
defaultDatabaseURL = "db.sqlite?_fk=1"
)
func Initialize() (*Database, error) {
databaseDriver := os.Getenv("STHORER_DB_DRIVER")
if databaseDriver... | [
"\"STHORER_DB_DRIVER\"",
"\"STHORER_DB_URL\""
] | [] | [
"STHORER_DB_URL",
"STHORER_DB_DRIVER"
] | [] | ["STHORER_DB_URL", "STHORER_DB_DRIVER"] | go | 2 | 0 | |
examples/edgefunctions/function/hello_world.py | import os
def handler(req, context):
name = os.getenv('NAME') or 'Unknown'
return {
'body': f'Hello, {name}!',
'statusCode': 200
}
| [] | [] | [
"NAME"
] | [] | ["NAME"] | python | 1 | 0 | |
sage/manage.py | ##
# @package manage
# This code to start server and application
# additional argument is find initial to start processing of intruppted
# files
# @author amarjeet kapoor
#
#
#!/usr/bin/env python
import os
import sys,threading
import initial_file
if __name__ == "__main__":
os.environ.setdefault("DJANGO_... | [] | [] | [] | [] | [] | python | 0 | 0 | |
cmd/release/release.go | // Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Command release builds a Go release.
package main
import (
"archive/tar"
"archive/zip"
"bufio"
"bytes"
"compress/gzip"
"context"
"flag"
"fmt"
gobui... | [
"\"HOMEDRIVE\"",
"\"HOMEPATH\"",
"\"HOME\"",
"\"APPDATA\"",
"\"XDG_CONFIG_HOME\"",
"\"USERNAME\"",
"\"USER\""
] | [] | [
"USERNAME",
"APPDATA",
"HOMEPATH",
"HOMEDRIVE",
"USER",
"HOME",
"XDG_CONFIG_HOME"
] | [] | ["USERNAME", "APPDATA", "HOMEPATH", "HOMEDRIVE", "USER", "HOME", "XDG_CONFIG_HOME"] | go | 7 | 0 | |
third_party/android_deps/libs/org_codehaus_mojo_animal_sniffer_annotations/3pp/fetch.py | #!/usr/bin/env python
# Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This is generated, do not edit. Update BuildConfigGenerator.groovy and
# 3ppFetch.template instead.
from __future__ import print_fun... | [] | [] | [
"_3PP_VERSION"
] | [] | ["_3PP_VERSION"] | python | 1 | 0 | |
app/auth.go | package app
import (
"context"
"fmt"
"github.com/dgrijalva/jwt-go"
"github.com/amber-iot/go-jwt-auth/models"
u "github.com/amber-iot/go-jwt-auth/utils"
"log"
"net/http"
"os"
)
var JwtAuthentication = func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {... | [
"\"token_password\""
] | [] | [
"token_password"
] | [] | ["token_password"] | go | 1 | 0 | |
mlchain/base/client.py | import os
import warnings
from mlchain.base.serializer import JsonSerializer, MsgpackSerializer, MsgpackBloscSerializer, JpgMsgpackSerializer, PngMsgpackSerializer
import mlchain
class ClientBase:
"""
Mlchain Client base class
"""
def __init__(self, api_key = None, api_address = None, serializer = 'm... | [] | [] | [
"MLCHAIN_API_KEY",
"MLCHAIN_API_ADDRESS"
] | [] | ["MLCHAIN_API_KEY", "MLCHAIN_API_ADDRESS"] | python | 2 | 0 | |
src/cmd/go/internal/get/get.go | // Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package get implements the ``go get'' command.
package get
import (
"fmt"
"go/build"
"os"
"path/filepath"
"runtime"
"strings"
"cmd/go/internal/base"... | [
"\"GIT_TERMINAL_PROMPT\"",
"\"GIT_SSH\"",
"\"GIT_SSH_COMMAND\""
] | [] | [
"GIT_SSH",
"GIT_SSH_COMMAND",
"GIT_TERMINAL_PROMPT"
] | [] | ["GIT_SSH", "GIT_SSH_COMMAND", "GIT_TERMINAL_PROMPT"] | go | 3 | 0 | |
wandb/sdk/launch/_project_spec.py | """
Internal utility for converting arguments from a launch spec or call to wandb launch
into a runnable wandb launch script
"""
import enum
import json
import logging
import os
from shlex import quote
import tempfile
from typing import Any, Dict, Optional, Tuple
import wandb
from wandb.apis.internal import Api
impor... | [] | [] | [
"SHELL"
] | [] | ["SHELL"] | python | 1 | 0 | |
src/github.com/smartystreets/goconvey/web/goconvey-server/watcher.go | package main
import (
"fmt"
"os"
"path/filepath"
"strings"
)
func updateWatch(root string) {
addNewWatches(root)
removeExpiredWatches()
}
func addNewWatches(root string) {
if rootWatch != root {
setGoPath(root)
adjustRoot(root)
}
watchNestedPaths(root)
}
func setGoPath(root string) {
goPath := root
fm... | [
"\"GOPATH\"",
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
scripts/devSetup/factories.py | __author__ = u'schmatz'
import errors
import configuration
import mongo
import node
import repositoryInstaller
import ruby
import shutil
import os
import glob
import subprocess
def print_computer_information(os_name,address_width):
print(os_name + " detected, architecture: " + str(address_width) + " bit")
def constr... | [] | [] | [
"SUDO_USER"
] | [] | ["SUDO_USER"] | python | 1 | 0 | |
CellProfiler-Analyst.py | # =============================================================================
#
# Main file for CellProfiler-Analyst
#
# =============================================================================
import sys
import os
import os.path
import logging
from cpa.dimensionreduction import DimensionReduction
from cpa... | [] | [] | [
"CP_JAVA_HOME"
] | [] | ["CP_JAVA_HOME"] | python | 1 | 0 | |
xcnet-common/src/main/java/org/itas/xcnet/common/monitor/MonitorServiceImpl.java | /*
* Copyright 2014-2015 itas group
*
* 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 t... | [
"\"windir\""
] | [] | [
"windir"
] | [] | ["windir"] | java | 1 | 0 | |
scons/llvm.py | """llvm
Tool-specific initialization for LLVM
"""
#
# Copyright (c) 2009 VMware, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation ... | [] | [] | [
"LLVM_CONFIG",
"LLVM"
] | [] | ["LLVM_CONFIG", "LLVM"] | python | 2 | 0 | |
Find-Words in Clipboard.py | #Pyhton 3.x
# -*- coding: UTF-8 -*-
import time
import traceback
import re
import os,sys
import win32gui
import win32con
import win32api
import win32clipboard
import win32ui
import ctypes
from tkinter import *
from tkinter import messagebox, tix as Tix
import tkinter.font as tf
import threading
... | [] | [] | [
"COMPUTERNAME"
] | [] | ["COMPUTERNAME"] | python | 1 | 0 | |
tests/main.go | package main
import (
"fmt"
"net/http"
"os"
"github.com/qor/admin/tests/dummy"
"github.com/qor/qor/utils"
)
func main() {
port := os.Getenv("PORT")
if port == "" {
port = "3000"
}
fmt.Printf("Listening on: %s\n", port)
mux := http.NewServeMux()
mux.Handle("/system/", utils.FileServer(http.Dir("public"... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
module01/src/myapptodo/src/main/java/com/microsoft/azuresample/acscicdtodo/Utils/SqlHelper.java | package com.microsoft.azuresample.acscicdtodo.Utils;
import org.springframework.stereotype.Component;
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Component
public class SqlHelper {
static ... | [] | [] | [] | [] | [] | java | 0 | 0 | |
vendor/github.com/moby/buildkit/frontend/gateway/grpcclient/client.go | package grpcclient
import (
"context"
"encoding/json"
"fmt"
"io"
"net"
"os"
"strings"
"sync"
"time"
"github.com/moby/buildkit/util/bklog"
"github.com/gogo/googleapis/google/rpc"
gogotypes "github.com/gogo/protobuf/types"
"github.com/golang/protobuf/ptypes/any"
"github.com/moby/buildkit/client/llb"
"gi... | [
"\"BUILDKIT_SESSION_ID\"",
"\"BUILDKIT_WORKERS\"",
"\"BUILDKIT_EXPORTEDPRODUCT\""
] | [] | [
"BUILDKIT_WORKERS",
"BUILDKIT_SESSION_ID",
"BUILDKIT_EXPORTEDPRODUCT"
] | [] | ["BUILDKIT_WORKERS", "BUILDKIT_SESSION_ID", "BUILDKIT_EXPORTEDPRODUCT"] | go | 3 | 0 | |
pythonlearn/Third-Module/django/django_scrpt.py | # -*- coding: utf-8 -*-
#
" django模块导入作为脚本,结合gevent "
from gevent import monkey
monkey.patch_all()
import gevent
import gevent.pool
import os
import re
import sys
import signal
import json
import datetime
import traceback
import django
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file... | [] | [] | [] | [] | [] | python | 0 | 0 | |
docs/source/conf.py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [] | [] | [
"READTHEDOCS"
] | [] | ["READTHEDOCS"] | python | 1 | 0 | |
greaterwms/wsgi.py | """
WSGI config for greaterwms project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [] | [] | [] | [] | [] | python | 0 | 0 | |
services/bssopenapi/allocate_cost_unit_resource.go | package bssopenapi
//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
//di... | [] | [] | [] | [] | [] | go | null | null | null |
internal/driver/keys.go | // Copyright 2013 The Ebiten 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... | [] | [] | [] | [] | [] | go | null | null | null |
src/subscriber.py | #!/usr/bin/env python
#
# =============================================================================
#
# Consume Avro messages to Kafka getting the schema from the Confluent registry
# Using Confluent Python Client
#
# =============================================================================
from confluent_kafk... | [] | [] | [
"SCHEMA_REGISTRY_URL",
"KAFKA_GROUP_ID",
"KAFKA_POLL_MAX_RECS_PER_POLL",
"BOOTSTRAP_SERVERS",
"KAFKA_POLL_TIMEOUT",
"TOPIC"
] | [] | ["SCHEMA_REGISTRY_URL", "KAFKA_GROUP_ID", "KAFKA_POLL_MAX_RECS_PER_POLL", "BOOTSTRAP_SERVERS", "KAFKA_POLL_TIMEOUT", "TOPIC"] | python | 6 | 0 | |
mesonbuild/modules/python.py | # Copyright 2018 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to ... | [] | [] | [
"PKG_CONFIG_LIBDIR",
"PKG_CONFIG_PATH"
] | [] | ["PKG_CONFIG_LIBDIR", "PKG_CONFIG_PATH"] | python | 2 | 0 | |
test/common/astron.py | import os, time, socket, struct, tempfile, subprocess, ssl
__all__ = ['Daemon', 'Datagram', 'DatagramIterator',
'MDConnection', 'ChannelConnection', 'ClientConnection']
class Daemon(object):
DAEMON_PATH = './astrond'
def __init__(self, config):
self.config = config
self.daemon = N... | [] | [] | [
"MANUAL_LAUNCH_CONFIG",
"USE_LOGLEVEL"
] | [] | ["MANUAL_LAUNCH_CONFIG", "USE_LOGLEVEL"] | python | 2 | 0 | |
api/server/server.go | package server
import (
"crypto/tls"
"net"
"net/http"
"os"
"strings"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/api/server/httputils"
"github.com/docker/docker/api/server/router"
"github.com/docker/docker/api/server/router/container"
"github.com/docker/docker/api/server/router/local"
"github.co... | [
"\"DEBUG\""
] | [] | [
"DEBUG"
] | [] | ["DEBUG"] | go | 1 | 0 | |
create_flask_app/app/config.py | import os
import random
class Config:
{% if extras_includes('sqlite') -%}
SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URL") or "sqlite:///db.sqlite"
SQLALCHEMY_TRACK_MODIFICATIONS = False
{% elif extras_includes('mongodb') %}
MONGO_URI = os.getenv("MONGO_URI") or "mongodb://localhost:27017/myData... | [] | [] | [
"MONGO_URI",
"SECRET_KEY",
"DATABASE_URL"
] | [] | ["MONGO_URI", "SECRET_KEY", "DATABASE_URL"] | python | 3 | 0 | |
aws/lambda/rotate-ebs-snapshots.py |
import boto3
import datetime
import time
import os
# Manually configure EC2 region, account IDs, timezone
ec = boto3.client('ec2', region_name='us-west-1')
aws_account_ids = ['728118514760']
default_days_of_retention = 2
os.environ['TZ'] = 'Brazil/East'
# Nothing to configure below this line
def create_new_backups(... | [] | [] | [
"TZ"
] | [] | ["TZ"] | python | 1 | 0 | |
release/nightly_tests/placement_group_tests/placement_group_performance_test.py | import argparse
import json
import os
import ray
from ray._private.ray_microbenchmark_helpers import timeit
RESOURCES_VALUE = 0.01
def test_placement_group_perf(num_pgs, num_bundles, num_pending_pgs):
# Run the placement group performance benchmark given arguments.
assert ray.cluster_resources()["custom"] >... | [] | [] | [
"TEST_OUTPUT_JSON"
] | [] | ["TEST_OUTPUT_JSON"] | python | 1 | 0 | |
DeepLearningFramework/train.py | import os
import torch
from torch import optim
from torch.utils.data import DataLoader
from utils.solvers import PolyLR
from utils.loss import HDRLoss
from utils.HDRutils import tonemap
from utils.dataprocessor import dump_sample
from dataset.HDR import KalantariDataset, KalantariTestDataset
from utils.configs import ... | [] | [] | [
"PYTHONHASHSEED"
] | [] | ["PYTHONHASHSEED"] | python | 1 | 0 | |
tools/fuzz/process_test.go | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package fuzz
import (
"flag"
"fmt"
"io"
"math/rand"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"testing"
"time"
)
// Note: In order to... | [
"\"MOCK_PROCESS\"",
"\"RAND_SEED\""
] | [] | [
"RAND_SEED",
"MOCK_PROCESS"
] | [] | ["RAND_SEED", "MOCK_PROCESS"] | go | 2 | 0 | |
pkg/client/listers/machine/internalversion/machineset.go | /*
Copyright (c) SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may ... | [] | [] | [] | [] | [] | go | null | null | null |
main.go | package main
import (
"bufio"
"flag"
"fmt"
"io/ioutil"
"os"
"os/user"
"regexp"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/iam"
"github.com/aws/aws-sdk-go/service/sts"
)
const version = "... | [
"\"AWS_SHARED_CREDENTIALS_FILE\""
] | [] | [
"AWS_SHARED_CREDENTIALS_FILE"
] | [] | ["AWS_SHARED_CREDENTIALS_FILE"] | go | 1 | 0 | |
train_ssd.py | from tensorflow.python.lib.io import file_io
from keras.optimizers import Adam, SGD
from keras.callbacks import ModelCheckpoint, LearningRateScheduler, TerminateOnNaN, CSVLogger
from keras import backend as K
import tensorflow as tf
from keras.models import load_model
from keras.utils import plot_model
from math import... | [] | [] | [
"TF_CPP_MIN_LOG_LEVEL"
] | [] | ["TF_CPP_MIN_LOG_LEVEL"] | python | 1 | 0 | |
docusign_test.go | // Copyright 2015 James Cote and Liberty Fund, Inc.
// All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// docusign implements a service to use the version 2 Docusign
// rest api. Api documentation may be found at:
// https://www.docusign.com/... | [
"\"DOCUSIGN_TESTENVID\"",
"\"DOCUSIGN_TEMPLATEID\"",
"\"DOCUSIGN_TOKEN\"",
"\"DOCUSIGN_USERNAME\"",
"\"DOCUSIGN_PASSWORD\"",
"\"DOCUSIGN_APIKEY\"",
"\"DOCUSIGN_ACCTID\"",
"\"DOCUSIGN_HOST\""
] | [] | [
"DOCUSIGN_HOST",
"DOCUSIGN_USERNAME",
"DOCUSIGN_TOKEN",
"DOCUSIGN_TEMPLATEID",
"DOCUSIGN_ACCTID",
"DOCUSIGN_PASSWORD",
"DOCUSIGN_APIKEY",
"DOCUSIGN_TESTENVID"
] | [] | ["DOCUSIGN_HOST", "DOCUSIGN_USERNAME", "DOCUSIGN_TOKEN", "DOCUSIGN_TEMPLATEID", "DOCUSIGN_ACCTID", "DOCUSIGN_PASSWORD", "DOCUSIGN_APIKEY", "DOCUSIGN_TESTENVID"] | go | 8 | 0 | |
_example/basic/server.go | package main
import (
"log"
"net/http"
"os"
"time"
"github.com/appleboy/gin-jwt/v2"
"github.com/gin-gonic/gin"
)
type login struct {
Username string `form:"username" json:"username" binding:"required"`
Password string `form:"password" json:"password" binding:"required"`
}
var identityKey = "id"
func helloH... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
nova/api/openstack/wsgi_app.py | # 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... | [] | [] | [] | [] | [] | python | 0 | 0 | |
pkg/metrics/api_rate_limiting.go | package metrics
import (
"context"
"os"
"time"
log "github.com/sirupsen/logrus"
"github.com/sylr/prometheus-azure-exporter/pkg/azure"
)
func init() {
if GetUpdateMetricsFunctionInterval("api_rate_limiting") == nil {
RegisterUpdateMetricsFunctionWithInterval("api_rate_limiting", UpdateAPIRateLimitingMetrics, ... | [
"\"AZURE_SUBSCRIPTION_ID\""
] | [] | [
"AZURE_SUBSCRIPTION_ID"
] | [] | ["AZURE_SUBSCRIPTION_ID"] | go | 1 | 0 | |
google/appengine/api/appinfo.py | #!/usr/bin/env python
#
# Copyright 2007 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 o... | [] | [] | [
"APPENGINE_RUNTIME"
] | [] | ["APPENGINE_RUNTIME"] | python | 1 | 0 | |
repairTools/objectScanner/objectScanner.go | package main
import (
"ObjectStorage/apiServer/object"
"ObjectStorage/src/lib/es"
"ObjectStorage/src/lib/utils"
"log"
"os"
"path/filepath"
"strings"
)
func main() {
files, _ := filepath.Glob(os.Getenv("STORAGE_ROOT") + "/objects/*")
for i := range files {
hash := strings.Split(filepath.Base(files[i]), "."... | [
"\"STORAGE_ROOT\""
] | [] | [
"STORAGE_ROOT"
] | [] | ["STORAGE_ROOT"] | go | 1 | 0 | |
python/pub-sub-bot/bot.py | # 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 agreed to in writing, ... | [] | [] | [
"SUBSCRIPTION_ID"
] | [] | ["SUBSCRIPTION_ID"] | python | 1 | 0 | |
djangorestautomatepm/djangorestautomatepm/wsgi.py | """
WSGI config for djangorestautomatepm project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [] | [] | [] | [] | [] | python | 0 | 0 | |
vendor/github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/server/Server.go | /* Copyright © 2019 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: BSD-2-Clause */
package server
import (
"fmt"
"net"
"net/http"
"github.com/vmware/vsphere-automation-sdk-go/runtime/l10n"
"github.com/vmware/vsphere-automation-sdk-go/runtime/log"
"golang.org/x/net/context"
)
// Server Wraps htt... | [] | [] | [] | [] | [] | go | null | null | null |
repo/repo_test.go | /* Copyright 2017 The Bazel 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 applicable law or agreed ... | [
"\"TEST_TEMPDIR\""
] | [] | [
"TEST_TEMPDIR"
] | [] | ["TEST_TEMPDIR"] | go | 1 | 0 | |
integration-tests/smoke_test.go | // +build integration
package integrationTests
import (
"bytes"
"flag"
"os"
"strings"
"testing"
)
var apiVersion = flag.String("api-version", "2015.01.01", "Expected version of Api Server")
func TestApiServerIsUp(t *testing.T) {
// override flags if enviroment variable exists
if e := os.Getenv("API_VERSION")... | [
"\"API_VERSION\""
] | [] | [
"API_VERSION"
] | [] | ["API_VERSION"] | go | 1 | 0 | |
test/resources/ray_cartpole/train_ray_torch.py | import os
import ray
import ray.rllib.agents.ppo as ppo
from ray.tune.logger import pretty_print
# Based on https://github.com/ray-project/ray/blob/master/doc/source/rllib-training.rst#python-api
ray.init(log_to_driver=False, webui_host='127.0.0.1')
config = ppo.DEFAULT_CONFIG.copy()
config["num_gpus"] = int(os.envir... | [] | [] | [
"SM_MODEL_DIR",
"SM_NUM_GPUS"
] | [] | ["SM_MODEL_DIR", "SM_NUM_GPUS"] | python | 2 | 0 | |
py2app/bootstrap/site_packages.py | def _site_packages():
import os
import site
import sys
paths = []
prefixes = [sys.prefix]
if sys.exec_prefix != sys.prefix:
prefixes.append(sys.exec_prefix)
for prefix in prefixes:
paths.append(
os.path.join(
prefix, "lib", "python%d.%d" % (sys.ve... | [] | [] | [
"HOME"
] | [] | ["HOME"] | python | 1 | 0 | |
go1.5/test/const.go | // run
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Test simple boolean and numeric constants.
package main
import "os"
const (
c0 = 0
cm1 = -1
chuge = 1 << 100
chuge_1 = chuge - 1
c... | [
"\"GOSSAINTERP\""
] | [] | [
"GOSSAINTERP"
] | [] | ["GOSSAINTERP"] | go | 1 | 0 | |
qa/rpc-tests/rpcbind_test.py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Test for -rpcbind, as well as -rpcallowip and -rpcconnect
# TODO extend this test from the test framew... | [] | [] | [
"PATH"
] | [] | ["PATH"] | python | 1 | 0 | |
helper/sniffer.py | import os
from helpers import *
import subprocess
def init_sniffer(run,site,node_type,sniffer_nodes,exp_id):
if len(sniffer_nodes) == 0:
return
try:
SNIFFER_PATH = os.path.join(os.environ['COMETOS_PATH'], 'examples/hardware/sniffer/PureSniffer')
SNIFFER_CMD = "cob platform=M3OpenNode ... | [] | [] | [
"COMETOS_PATH"
] | [] | ["COMETOS_PATH"] | python | 1 | 0 | |
dao_universal_sqlite_test.go | package henge
import (
"fmt"
"os"
"strings"
"testing"
"github.com/btnguyen2k/prom"
_ "github.com/mattn/go-sqlite3"
)
func _testSqliteInitSqlConnect(t *testing.T, testName string) *prom.SqlConnect {
driver := strings.ReplaceAll(os.Getenv("SQLITE_DRIVER"), `"`, "")
url := strings.ReplaceAll(os.Getenv("SQLITE_U... | [
"\"SQLITE_DRIVER\"",
"\"SQLITE_URL\"",
"\"TIMEZONE\""
] | [] | [
"TIMEZONE",
"SQLITE_URL",
"SQLITE_DRIVER"
] | [] | ["TIMEZONE", "SQLITE_URL", "SQLITE_DRIVER"] | go | 3 | 0 | |
cmd/executor/cmd/root.go | /*
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 writing, software
dist... | [
"\"BENCHMARK_FILE\""
] | [] | [
"BENCHMARK_FILE"
] | [] | ["BENCHMARK_FILE"] | go | 1 | 0 | |
main.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 appli... | [
"\"ISTIO_ENABLED\"",
"\"CTRL_USERNAME\"",
"\"CTRL_PASSWORD\"",
"\"CTRL_IPADDRESS\"",
"\"HOME\""
] | [] | [
"CTRL_USERNAME",
"CTRL_IPADDRESS",
"CTRL_PASSWORD",
"ISTIO_ENABLED",
"HOME"
] | [] | ["CTRL_USERNAME", "CTRL_IPADDRESS", "CTRL_PASSWORD", "ISTIO_ENABLED", "HOME"] | go | 5 | 0 | |
config.go | // Copyright (c) 2013-2017 The btcsuite developers
// Copyright (c) 2015-2019 The Decred developers
// Copyright (C) 2015-2020 The Lightning Network Developers
package dcrlnd
import (
"errors"
"fmt"
"io/ioutil"
"net"
"os"
"os/user"
"path/filepath"
"regexp"
"runtime"
"strconv"
"strings"
"time"
"github.co... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.