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 |
|---|---|---|---|---|---|---|---|---|---|---|
config/configuration.go | // Package config defines the Cloudinary configuration.
package config
import (
"errors"
"net/url"
"os"
"github.com/creasty/defaults"
"github.com/gorilla/schema"
)
// Configuration is the main configuration struct.
type Configuration struct {
Cloud Cloud
API API
URL URL
AuthToken AuthToken
}... | [
"\"CLOUDINARY_URL\""
] | [] | [
"CLOUDINARY_URL"
] | [] | ["CLOUDINARY_URL"] | go | 1 | 0 | |
grpc/grpc_server.go | package main
import (
"fmt"
"log"
"net"
"os"
pb "myapp/rpc/math"
"myapp/grpc/resolver"
"google.golang.org/grpc"
)
const defaultPort = "8080"
func main() {
port := os.Getenv("PORT")
if port == "" {
port = defaultPort
}
lis, err := net.Listen("tcp", fmt.Sprintf(":%s", port))
if err != nil {
log.Fat... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
itest/starboard/starboard_cli_test.go | package starboard
import (
. "github.com/nilesh-akhade/starboard/itest/matcher"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gbytes"
. "github.com/onsi/gomega/gstruct"
"context"
"os"
"strings"
"time"
"github.com/nilesh-akhade/starboard/itest/helper"
"github.com/nilesh-ak... | [
"\"STARBOARD_TEST_DOCKERHUB_REGISTRY_USERNAME\"",
"\"STARBOARD_TEST_DOCKERHUB_REGISTRY_PASSWORD\""
] | [] | [
"STARBOARD_TEST_DOCKERHUB_REGISTRY_PASSWORD",
"STARBOARD_TEST_DOCKERHUB_REGISTRY_USERNAME"
] | [] | ["STARBOARD_TEST_DOCKERHUB_REGISTRY_PASSWORD", "STARBOARD_TEST_DOCKERHUB_REGISTRY_USERNAME"] | go | 2 | 0 | |
oauthlib/oauth2/rfc6749/utils.py | # -*- coding: utf-8 -*-
"""
oauthlib.utils
~~~~~~~~~~~~~~
This module contains utility methods used by various parts of the OAuth 2 spec.
"""
import datetime
import os
from urllib.parse import quote, urlparse
from oauthlib.common import urldecode
def list_to_scope(scope):
"""Convert a list of scopes to a space ... | [] | [] | [
"OAUTHLIB_INSECURE_TRANSPORT"
] | [] | ["OAUTHLIB_INSECURE_TRANSPORT"] | python | 1 | 0 | |
amfe/component/__init__.py | #
# Copyright (c) 2018 TECHNICAL UNIVERSITY OF MUNICH, DEPARTMENT OF MECHANICAL ENGINEERING, CHAIR OF APPLIED MECHANICS,
# BOLTZMANNSTRASSE 15, 85748 GARCHING/MUNICH, GERMANY, RIXEN@TUM.DE.
#
# Distributed under 3-Clause BSD license. See LICENSE file for more information.
#
"""
Component module.
Module for partitione... | [] | [] | [] | [] | [] | python | null | null | null |
pdfscraper/manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pdfscraper.settings.local")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [] | [] | [] | [] | [] | python | 0 | 0 | |
modules/setting/setting.go | // Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package setting
import (
"encoding/base64"
"fmt"
"net"
"net/mail"
"net/url"
"os"
"os/exec"
... | [
"\"GITEA_WORK_DIR\"",
"\"GITEA_CUSTOM\""
] | [] | [
"GITEA_CUSTOM",
"GITEA_WORK_DIR"
] | [] | ["GITEA_CUSTOM", "GITEA_WORK_DIR"] | go | 2 | 0 | |
tests/test_browser.py | # coding=utf-8
# Copyright 2013 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
import argparse
import json
import multiprocessing
imp... | [] | [] | [
"EMTEST_LACKS_SOUND_HARDWARE",
"EMTEST_LACKS_GRAPHICS_HARDWARE",
"EMTEST_LACKS_THREAD_SUPPORT",
"EMTEST_LACKS_OFFSCREEN_CANVAS",
"EMCC_STRICT"
] | [] | ["EMTEST_LACKS_SOUND_HARDWARE", "EMTEST_LACKS_GRAPHICS_HARDWARE", "EMTEST_LACKS_THREAD_SUPPORT", "EMTEST_LACKS_OFFSCREEN_CANVAS", "EMCC_STRICT"] | python | 5 | 0 | |
tests/e2e/pkg/tester/tester.go | /*
Copyright 2021 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, ... | [
"\"PATH\""
] | [] | [
"PATH"
] | [] | ["PATH"] | go | 1 | 0 | |
pkg/cmd/step/verify/step_verify_preinstall_integration_test.go | // +build integration
package verify_test
import (
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"
"github.com/jenkins-x/jx/pkg/cmd/opts/step"
"github.com/jenkins-x/jx/pkg/cmd/step/create"
"github.com/jenkins-x/jx/pkg/config"
"github.com/jenkins-x/jx/pkg/cmd/clients"
"github.com/jenkins-x/jx/pkg/cmd/na... | [
"\"JX_HOME\""
] | [] | [
"JX_HOME"
] | [] | ["JX_HOME"] | go | 1 | 0 | |
jira/examples/issue-watcher/delete/delete.go | package main
import (
"context"
"github.com/ctreminiom/go-atlassian/jira"
"log"
"os"
)
func main() {
/*
----------- Set an environment variable in git bash -----------
export HOST="https://ctreminiom.atlassian.net/"
export MAIL="MAIL_ADDRESS"
export TOKEN="TOKEN_API"
Docs: https://stackoverflow.com/q... | [
"\"HOST\"",
"\"MAIL\"",
"\"TOKEN\""
] | [] | [
"MAIL",
"HOST",
"TOKEN"
] | [] | ["MAIL", "HOST", "TOKEN"] | go | 3 | 0 | |
cmd/auctioneer/main_test.go | package main_test
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net"
"os"
"os/exec"
"path"
"time"
"code.cloudfoundry.org/auctioneer"
"code.cloudfoundry.org/auctioneer/cmd/auctioneer/config"
"code.cloudfoundry.org/bbs"
"code.cloudfoundry.org/bbs/models"
"code.cloudfoundry.org/bbs/models/test/mode... | [
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
release/lightgbm_tests/workloads/train_moderate.py | """Moderate cluster training
This training run will start 32 workers on 32 nodes (including head node).
Test owner: Yard1 (primary), krfricke
Acceptance criteria: Should run through and report final results.
"""
import json
import os
import time
import ray
from lightgbm_ray import RayParams
from ray.util.lightgbm.... | [] | [] | [
"TEST_OUTPUT_JSON"
] | [] | ["TEST_OUTPUT_JSON"] | python | 1 | 0 | |
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/wsgi.py | """
WSGI config for {{ cookiecutter.project_name }} 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 t... | [] | [] | [
"DJANGO_SETTINGS_MODULE"
] | [] | ["DJANGO_SETTINGS_MODULE"] | python | 1 | 0 | |
vendor/github.com/IBM-Cloud/terraform-provider-ibm/ibm/resource_ibm_dl_gateway.go | // Copyright IBM Corp. 2017, 2021 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0
package ibm
import (
"fmt"
"log"
"os"
"strings"
"time"
"github.com/IBM/networking-go-sdk/directlinkv1"
"github.com/hashicorp/terraform-plugin-sdk/helper/customdiff"
"github.com/hashicorp/terraform-plugin-... | [
"\"IC_ENV_TAGS\""
] | [] | [
"IC_ENV_TAGS"
] | [] | ["IC_ENV_TAGS"] | go | 1 | 0 | |
storm-server/src/main/java/org/apache/storm/daemon/supervisor/BasicContainer.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 ... | [
"\"STORM_CONF_DIR\"",
"\"STORM_CONF_DIR\"",
"\"STORM_EXT_CLASSPATH\""
] | [] | [
"STORM_EXT_CLASSPATH",
"STORM_CONF_DIR"
] | [] | ["STORM_EXT_CLASSPATH", "STORM_CONF_DIR"] | java | 2 | 0 | |
practice/interview_preparation_kit/warm_up_challenges/repeated_string/repeated_string.go | // Package main implements Repeated String problem
//
// https://www.hackerrank.com/challenges/repeated-string/problem
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
// Complete the repeatedString function below.
func repeatedString(s string, n int64) int64 {
var stringL... | [
"\"OUTPUT_PATH\"",
"\"OUTPUT_PATH\""
] | [] | [
"OUTPUT_PATH"
] | [] | ["OUTPUT_PATH"] | go | 1 | 0 | |
main.go | package main
import (
"flag"
"fmt"
"log"
"os"
"os/signal"
"path/filepath"
"strconv"
"strings"
"syscall"
"time"
"github.com/allan-simon/go-singleinstance"
"github.com/dlasky/gotk3-layershell/layershell"
"github.com/gotk3/gotk3/gdk"
"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
)
const vers... | [
"\"TERM\"",
"\"LANG\"",
"\"LANG\""
] | [] | [
"LANG",
"TERM"
] | [] | ["LANG", "TERM"] | go | 2 | 0 | |
pilot/pkg/networking/core/v1alpha3/listener.go | // Copyright 2017 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... | [
"\"PILOT_DUMP_ALPHA3\""
] | [] | [
"PILOT_DUMP_ALPHA3"
] | [] | ["PILOT_DUMP_ALPHA3"] | go | 1 | 0 | |
cmd/sms/main.go | // Copyright 2015 go-smpp authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// SMPP client for the command line.
//
// We bind to the SMSC as a transmitter, therefore can do SubmitSM
// (send Short Message) or QuerySM (query for messag... | [
"\"SMPP_USER\"",
"\"SMPP_PASSWD\""
] | [] | [
"SMPP_USER",
"SMPP_PASSWD"
] | [] | ["SMPP_USER", "SMPP_PASSWD"] | go | 2 | 0 | |
example/callee/main.go | package main
import (
"context"
"flag"
"fmt"
"log"
"os"
"os/signal"
"syscall"
"time"
"github.com/atotto/skyway-webrtc-gateway-go-client/client"
"github.com/atotto/skyway-webrtc-gateway-go-client/client/data"
"github.com/atotto/skyway-webrtc-gateway-go-client/client/media"
"github.com/atotto/skyway-webrtc-... | [
"\"SKYWAY_API_KEY\""
] | [] | [
"SKYWAY_API_KEY"
] | [] | ["SKYWAY_API_KEY"] | go | 1 | 0 | |
soracom/generated/cmd/lagoon_update_user_email.go | // Code generated by soracom-cli generate-cmd. DO NOT EDIT.
package cmd
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/url"
"os"
"strings"
"github.com/spf13/cobra"
)
// LagoonUpdateUserEmailCmdUserEmail holds value of 'userEmail' option
var LagoonUpdateUserEmailCmdUserEmail string
// LagoonUpdateUserEma... | [
"\"SORACOM_VERBOSE\""
] | [] | [
"SORACOM_VERBOSE"
] | [] | ["SORACOM_VERBOSE"] | go | 1 | 0 | |
c_all_in/manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "c_all_in.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [] | [] | [] | [] | [] | python | 0 | 0 | |
userbot/uniborgConfig.py | import os
from telethon.tl.types import ChatBannedRights
ENV = bool(os.environ.get("ENV", False))
if ENV:
import os
class Config(object):
LOGGER = True
# Get this value from my.telegram.org! Please do not steal
LOCATION = os.environ.get("LOCATION", None)
OPEN_WEATHER_MAP_APPID = ... | [] | [] | [
"SLAP_USERNAME",
"TEMP_DIR",
"GOOGLE_SEARCH_COUNT_LIMIT",
"NO_P_M_SPAM",
"CHANNEL_ID",
"GOOGLE_CHROME_BIN",
"G_DRIVE_CLIENT_SECRET",
"NO_SONGS",
"AUTH_TOKEN_DATA",
"OCR_SPACE_API_KEY",
"TG_BOT_USER_NAME_BF_HER",
"VERY_STREAM_LOGIN",
"NC_LOG_P_M_S",
"SUDO_USERS",
"SCREEN_SHOT_LAYER_ACCESS... | [] | ["SLAP_USERNAME", "TEMP_DIR", "GOOGLE_SEARCH_COUNT_LIMIT", "NO_P_M_SPAM", "CHANNEL_ID", "GOOGLE_CHROME_BIN", "G_DRIVE_CLIENT_SECRET", "NO_SONGS", "AUTH_TOKEN_DATA", "OCR_SPACE_API_KEY", "TG_BOT_USER_NAME_BF_HER", "VERY_STREAM_LOGIN", "NC_LOG_P_M_S", "SUDO_USERS", "SCREEN_SHOT_LAYER_ACCESS_KEY", "MAX_FLOOD_IN_P_M_s", "T... | python | 49 | 0 | |
operators/conv_autogenerated_test.go | package operators
import (
"os"
"testing"
onnx "github.com/owulveryck/onnx-go"
"github.com/stretchr/testify/assert"
"gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)
// TestConv_with_strides_and_asymmetric_padding is autogenerated from test_conv_with_strides_and_asymmetric_padding
func TestConv_with_strides_and_... | [
"\"SKIP_NOT_IMPLEMENTED\"",
"\"SKIP_NOT_IMPLEMENTED\"",
"\"SKIP_NOT_IMPLEMENTED\""
] | [] | [
"SKIP_NOT_IMPLEMENTED"
] | [] | ["SKIP_NOT_IMPLEMENTED"] | go | 1 | 0 | |
admin.go | package admin
import (
"html/template"
"os"
"path/filepath"
"reflect"
"strings"
// Inflection pluralizes and singularizes English nouns
"github.com/jinzhu/inflection"
// a golang library using Common Locale Data Repository to format dates
"github.com/theplant/cldr"
"github.com/Sky-And-Hammer/TM_EC"
"gith... | [
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
requires = [
]
version = os.environ.get('VERSION')
if version is None:
with open(os.path.join('.', 'VERSION')) as version_file:
version = version_file.read().strip()
setup_options = {
'name': 'iconcommons',
'version': ve... | [] | [] | [
"VERSION"
] | [] | ["VERSION"] | python | 1 | 0 | |
build/android/adb_install_apk.py | #!/usr/bin/env python
#
# Copyright (c) 2012 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.
"""Utility script to install APKs from the command line quickly."""
import argparse
import glob
import logging
import os
import ... | [] | [] | [
"BUILDTYPE"
] | [] | ["BUILDTYPE"] | python | 1 | 0 | |
src/main/java/edu/wpi/first/gradlerio/wpi/WPIExtension.java | package edu.wpi.first.gradlerio.wpi;
import java.io.File;
import java.util.List;
import javax.inject.Inject;
import org.gradle.api.Project;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.internal.os.OperatingSystem;
import org.gradle.nativeplatform.plugins.Nati... | [
"\"PUBLIC\""
] | [] | [
"PUBLIC"
] | [] | ["PUBLIC"] | java | 1 | 0 | |
docs/conch/howto/listings/echoclient_ssh.py | #!/usr/bin/env python
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from __future__ import print_function
if __name__ == '__main__':
import sys
import echoclient_ssh
from twisted.internet.task import react
react(echoclient_ssh.main, sys.argv[1:])
import os, getpass
from twis... | [] | [] | [
"SSH_AUTH_SOCK"
] | [] | ["SSH_AUTH_SOCK"] | python | 1 | 0 | |
ponylib_app/db/db.go | package db
import (
"context"
"fmt"
"os"
"github.com/jackc/pgx/v4/pgxpool"
)
func Connect() (*pgxpool.Pool, error) {
conn, err := pgxpool.Connect(context.Background(), os.Getenv("DATABASE_URL"))
if err != nil {
return nil, fmt.Errorf("unable to connect to database: %w", err)
}
return conn, nil
}
func Clos... | [
"\"DATABASE_URL\""
] | [] | [
"DATABASE_URL"
] | [] | ["DATABASE_URL"] | go | 1 | 0 | |
internal/klogs/loggers.go | /*
* MIT License
*
* Copyright (c) 2018 Kasun Vithanage
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy,... | [
"\"ENV\""
] | [] | [
"ENV"
] | [] | ["ENV"] | go | 1 | 0 | |
integration-tests/job_service_test.go | // +build integration
package integrationTests
import (
"encoding/json"
"flag"
"fmt"
"os"
"testing"
"time"
"github.com/sapcc/arc/api-server/models"
"github.com/sapcc/arc/arc"
)
var agentIdentityFlag = flag.String("agent-identity", "", "integration-test")
type systemFact struct {
Os string `jso... | [
"\"AGENT_IDENTITY\"",
"\"AGENT_IDENTITY\""
] | [] | [
"AGENT_IDENTITY"
] | [] | ["AGENT_IDENTITY"] | go | 1 | 0 | |
pkg/controller/dnsendpoint/nameserver/aws_live_test.go | package nameserver
import (
"fmt"
"math/rand"
"os"
"testing"
"time"
"github.com/stretchr/testify/suite"
"k8s.io/apimachinery/pkg/util/sets"
"github.com/openshift/hive/pkg/awsclient"
)
// This test will perform a test using real queries with AWS.
// By default, this test will be skipped.
// To enable the te... | [
"\"TEST_LIVE_AWS\""
] | [] | [
"TEST_LIVE_AWS"
] | [] | ["TEST_LIVE_AWS"] | go | 1 | 0 | |
pkg/scmprovider/client.go | package scmprovider
import (
"context"
"fmt"
"net/url"
"os"
"github.com/jenkins-x/go-scm/scm"
"k8s.io/apimachinery/pkg/util/sets"
)
// ToClient converts the scm client to an API that the prow plugins expect
func ToClient(client *scm.Client, botName string) *Client {
return &Client{client: client, botName: bot... | [
"\"GIT_USER\""
] | [] | [
"GIT_USER"
] | [] | ["GIT_USER"] | go | 1 | 0 | |
azure-samples/src/main/java/com/microsoft/azure/management/network/samples/ManageInternalLoadBalancer.java | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.network.samples;
import com.microsoft.azure.management.Azure;
import com.microsoft.azure.management.compute.Ava... | [
"\"AZURE_AUTH_LOCATION\""
] | [] | [
"AZURE_AUTH_LOCATION"
] | [] | ["AZURE_AUTH_LOCATION"] | java | 1 | 0 | |
boiler/__init__.py | import os
def load_dotenvs():
"""
Load dotenvs
Loads .env and .flaskenv files from project root directory.
:return:
"""
if not os.getenv('DOTENVS_LOADED'):
envs = ['.env', '.flaskenv']
for env in envs:
path = os.path.join(os.getcwd(), env)
if os.path.isf... | [] | [] | [
"DOTENVS_LOADED"
] | [] | ["DOTENVS_LOADED"] | python | 1 | 0 | |
server/handleAnalytics.go | package server
import (
"net/http"
"os"
)
func (s *Server) handleAnalytics() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
r.ParseForm()
d := r.FormValue("domain")
tp := r.FormValue("period")
if d == "" || tp == "" {
sendJSONError(w, http.StatusBadRequest, map[string]string... | [
"\"REPORTS_ROOT\""
] | [] | [
"REPORTS_ROOT"
] | [] | ["REPORTS_ROOT"] | go | 1 | 0 | |
django_project/manage.py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [] | [] | [] | [] | [] | python | 0 | 0 | |
test_package/conanfile.py | from conans.model.conan_file import ConanFile
from conans import CMake
import os
#This easily allows to copy the package in other user or channel
channel = os.getenv("CONAN_CHANNEL", "testing")
username = os.getenv("CONAN_USERNAME", "sunside")
class DefaultNameConan(ConanFile):
name = "DefaultName"
version = ... | [] | [] | [
"CONAN_USERNAME",
"CONAN_CHANNEL"
] | [] | ["CONAN_USERNAME", "CONAN_CHANNEL"] | python | 2 | 0 | |
core/cvt_00014.py | #!/usr/bin/env python
# -*- coding: utf8 -*-
print(unicode("積雪メソッド","UTF-8"))
__author__ = "Arlo Emerson <arlo.emerson@sekisetsumethod.com>"
__status__ = "production"
__version__ = "14.0"
__date__ = "17 August 2018"
#--- LICENSE ------------------------------------------------------------------
# This code cvt_[v... | [] | [] | [
"SDL_VIDEODRIVER"
] | [] | ["SDL_VIDEODRIVER"] | python | 1 | 0 | |
docs/conf.py | # -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(0, os.path.abspath(".."))
# -- General configuration ------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
exten... | [] | [] | [
"READTHEDOCS"
] | [] | ["READTHEDOCS"] | python | 1 | 0 | |
Lesson08/Activity09/main.go | package main
import (
"os"
"time"
"github.com/sirupsen/logrus"
)
var logger = logrus.New()
func main() {
logger.SetFormatter(&logrus.JSONFormatter{})
logLevel := os.Getenv("LOG_LEVEL")
if logLevel == "" {
logger.Warn("LOG_LEVEL is not set!")
}
switch logLevel {
case "DEBUG":
logger.Level = logrus.Deb... | [
"\"LOG_LEVEL\"",
"\"ENABLE_CONNECTION\""
] | [] | [
"ENABLE_CONNECTION",
"LOG_LEVEL"
] | [] | ["ENABLE_CONNECTION", "LOG_LEVEL"] | go | 2 | 0 | |
app/main.py | from fastapi import FastAPI
import random
import os
app = FastAPI()
prng = random.Random()
dice_min = int(os.getenv('DICE_MIN') or '1')
dice_max = int(os.getenv('DICE_MAX') or '6')
@app.get('/')
def roll_die():
return dict(result=prng.randint(dice_min, dice_max))
| [] | [] | [
"DICE_MIN",
"DICE_MAX"
] | [] | ["DICE_MIN", "DICE_MAX"] | python | 2 | 0 | |
engine/hatchery/swarm/swarm.go | package swarm
import (
"context"
"fmt"
"os"
"strconv"
"strings"
"sync"
"time"
"github.com/fsouza/go-dockerclient"
"github.com/moby/moby/pkg/namesgenerator"
"github.com/ovh/cds/sdk"
"github.com/ovh/cds/sdk/cdsclient"
"github.com/ovh/cds/sdk/hatchery"
"github.com/ovh/cds/sdk/log"
)
// New instanciates a n... | [
"\"DOCKER_HOST\""
] | [] | [
"DOCKER_HOST"
] | [] | ["DOCKER_HOST"] | go | 1 | 0 | |
e2e/e2e_test.go | /*
Copyright 2021 The Cockroach 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | [
"\"TEST_WORKSPACE\"",
"\"TEST_DO_NOT_USE_KIND\"",
"\"TEST_FLAKES\""
] | [] | [
"TEST_FLAKES",
"TEST_WORKSPACE",
"TEST_DO_NOT_USE_KIND"
] | [] | ["TEST_FLAKES", "TEST_WORKSPACE", "TEST_DO_NOT_USE_KIND"] | go | 3 | 0 | |
vendor/github.com/Azure/azure-sdk-for-go/tools/profileBuilder/program.go | // +build go1.9
// Copyright 2017 Microsoft Corporation and 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
//
// U... | [
"\"GOPATH\"",
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
sdk/digitaltwins/azure-digitaltwins-core/src/samples/java/com/azure/digitaltwins/core/DigitalTwinsLifecycleAsyncSample.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.digitaltwins.core;
import com.azure.core.http.policy.HttpLogDetailLevel;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.digitaltwins.core.implementation.models.ErrorResponseException;
... | [
"\"TENANT_ID\"",
"\"CLIENT_ID\"",
"\"CLIENT_SECRET\"",
"\"DIGITAL_TWINS_ENDPOINT\""
] | [] | [
"DIGITAL_TWINS_ENDPOINT",
"CLIENT_SECRET",
"TENANT_ID",
"CLIENT_ID"
] | [] | ["DIGITAL_TWINS_ENDPOINT", "CLIENT_SECRET", "TENANT_ID", "CLIENT_ID"] | java | 4 | 0 | |
src/os/env.go | // Copyright 2010 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.
// General environment variables.
package os
import "syscall"
// Expand replaces ${var} or $var in the string based on the mapping function.
// For example, ... | [] | [] | [] | [] | [] | go | 0 | 0 | |
python/paddle/fluid/tests/unittests/test_fleet_base_single.py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [] | [] | [
"PADDLE_TRAINER_ID",
"PADDLE_TRAINER_ENDPOINTS",
"PADDLE_CURRENT_ENDPOINTS",
"CUDA_VISIBLE_DEVICES",
"PADDLE_TRAINERS_NUM"
] | [] | ["PADDLE_TRAINER_ID", "PADDLE_TRAINER_ENDPOINTS", "PADDLE_CURRENT_ENDPOINTS", "CUDA_VISIBLE_DEVICES", "PADDLE_TRAINERS_NUM"] | python | 5 | 0 | |
cli/src/main/java/com/liferay/blade/cli/util/BladeUtil.java | /**
* Copyright (c) 2000-present Liferay, 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 requ... | [
"\"COMPUTERNAME\"",
"\"HOST\"",
"\"HOSTNAME\"",
"\"COMPUTERNAME\"",
"\"HOST\"",
"\"HOSTNAME\""
] | [] | [
"COMPUTERNAME",
"HOSTNAME",
"HOST"
] | [] | ["COMPUTERNAME", "HOSTNAME", "HOST"] | java | 3 | 0 | |
config/wsgi.py | """
WSGI config for teherangram 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 ``WSGI_APPLICATIO... | [] | [] | [
"DJANGO_SETTINGS_MODULE"
] | [] | ["DJANGO_SETTINGS_MODULE"] | python | 1 | 0 | |
pattern-proxy/src/main/java/org/kwrx/proxy/FabbricaImmagini.java | /*
* MIT License
*
* Copyright (c) 2020 Antonino Natale
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... | [
"\"NO_USE_PROXY\""
] | [] | [
"NO_USE_PROXY"
] | [] | ["NO_USE_PROXY"] | java | 1 | 0 | |
kie-ci/src/main/java/org/kie/scanner/embedder/MavenEmbedder.java | /*
* Copyright 2001-2005 The Apache Software Foundation.
*
* 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 ap... | [] | [] | [] | [] | [] | java | 0 | 0 | |
tools/test-proxy/sample-clients/python/pytest-httpsresponse/RecordedByProxy.py | import requests
import functools
import os
from contextlib import contextmanager
import pdb
PROXY_URL = "http://localhost:5000"
RECORDING_START_URL = "{}/record/start".format(PROXY_URL)
RECORDING_STOP_URL = "{}/record/stop".format(PROXY_URL)
PLAYBACK_START_URL = "{}/playback/start".format(PROXY_URL)
PLAYBACK_STOP_URL ... | [] | [] | [
"AZURE_RECORD_MODE"
] | [] | ["AZURE_RECORD_MODE"] | python | 1 | 0 | |
acceptance/openstack/networking/v2/extensions/quotas/quotas_test.go | //go:build acceptance || networking || quotas
// +build acceptance networking quotas
package quotas
import (
"log"
"os"
"reflect"
"testing"
"github.com/nexclipper/gophercloud/acceptance/clients"
"github.com/nexclipper/gophercloud/acceptance/tools"
"github.com/nexclipper/gophercloud/openstack/networking/v2/ext... | [
"\"OS_PROJECT_NAME\"",
"\"OS_PROJECT_NAME\"",
"\"OS_PROJECT_NAME\"",
"\"OS_PROJECT_NAME\""
] | [] | [
"OS_PROJECT_NAME"
] | [] | ["OS_PROJECT_NAME"] | go | 1 | 0 | |
replayer-agent/install/codeCov/main_test.go | package main
import (
"flag"
"os"
"os/signal"
"sync"
"syscall"
"testing"
"time"
_ "github.com/light-pan/sharingan"
)
const waitFlagParseTime = 10
var endRunning chan struct{}
var callback sync.Once
func stop() {
endRunning <- struct{}{}
}
func signalHandler() {
// 定义并监听 kill信号, On ^C or SIGTERM
sigc :=... | [
"\"BAN_SYSTEM_TEST\""
] | [] | [
"BAN_SYSTEM_TEST"
] | [] | ["BAN_SYSTEM_TEST"] | go | 1 | 0 | |
serial_scripts/floatingip/test_mx.py | from __future__ import absolute_import
# Need to import path to test/fixtures and test/scripts/
# Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/'
#
# To run tests, you can do 'python -m testtools.run mx_tests'. To run specific tests,
# You can do 'python -m testtools.run -l mx_test'
# Set the en... | [] | [] | [
"MX_GW_TEST"
] | [] | ["MX_GW_TEST"] | python | 1 | 0 | |
batch/batch/cloud/azure/worker/worker_api.py | import abc
import os
from typing import Dict, Optional, Tuple
import aiohttp
from hailtop import httpx
from hailtop.utils import request_retry_transient_errors, time_msecs
from ....worker.worker_api import CloudWorkerAPI
from ..instance_config import AzureSlimInstanceConfig
from .credentials import AzureUserCredenti... | [] | [] | [
"RESOURCE_GROUP",
"SUBSCRIPTION_ID",
"DOCKER_PREFIX"
] | [] | ["RESOURCE_GROUP", "SUBSCRIPTION_ID", "DOCKER_PREFIX"] | python | 3 | 0 | |
cmd/pipelineCreateScanSummary_generated.go | // Code generated by piper's step-generator. DO NOT EDIT.
package cmd
import (
"fmt"
"os"
"time"
"github.com/SAP/jenkins-library/pkg/config"
"github.com/SAP/jenkins-library/pkg/log"
"github.com/SAP/jenkins-library/pkg/splunk"
"github.com/SAP/jenkins-library/pkg/telemetry"
"github.com/spf13/cobra"
)
type pip... | [
"\"PIPER_pipelineLink\"",
"\"PIPER_pipelineLink\""
] | [] | [
"PIPER_pipelineLink"
] | [] | ["PIPER_pipelineLink"] | go | 1 | 0 | |
java/yb-pgsql/src/test/java/org/yb/pgsql/BasePgSQLTest.java | // Copyright (c) YugaByte, 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 writ... | [] | [] | [] | [] | [] | java | 0 | 0 | |
tests/integration/test_keycloak.py | # Copyright (C) 2020 Extreme Networks, 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 appl... | [] | [] | [
"ST2_OIDC_REALM",
"ST2_OIDC_CLIENT_NAME",
"ST2_OIDC_CLIENT_SECRET",
"ST2_OIDC_URL"
] | [] | ["ST2_OIDC_REALM", "ST2_OIDC_CLIENT_NAME", "ST2_OIDC_CLIENT_SECRET", "ST2_OIDC_URL"] | python | 4 | 0 | |
pkg/crd/client.go | /*
Copyright 2021 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... | [
"\"KUBECONFIG\""
] | [] | [
"KUBECONFIG"
] | [] | ["KUBECONFIG"] | go | 1 | 0 | |
freeport.go | package freeport
import (
"errors"
"fmt"
"net"
"os"
"strconv"
)
type Options struct {
Address string
Min int
Max int
}
// MakeOptions makes options to get non-privileged port [1024:49151]. It will use
// env var PORT, if set, as min value.
func MakeOptions(isAllInterfaces bool) (*Options, error) {
m... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
cmd/gateway/gcs/gateway-gcs.go | /*
* MinIO Cloud Storage, (C) 2017-2020 MinIO, 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 applicab... | [
"\"GOOGLE_APPLICATION_CREDENTIALS\""
] | [] | [
"GOOGLE_APPLICATION_CREDENTIALS"
] | [] | ["GOOGLE_APPLICATION_CREDENTIALS"] | go | 1 | 0 | |
sliderule/ipysliderule.py | # Copyright (c) 2021, University of Washington
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of condi... | [] | [] | [
"DISPLAY"
] | [] | ["DISPLAY"] | python | 1 | 0 | |
tpincrement.py | #!/usr/bin/env python3
"""Cyberjunky's 3Commas bot helpers."""
import argparse
import configparser
import json
import os
import sqlite3
import sys
import time
from pathlib import Path
from helpers.logging import Logger, NotificationHandler
from helpers.misc import check_deal, wait_time_interval
from helpe... | [] | [] | [
"TZ"
] | [] | ["TZ"] | python | 1 | 0 | |
tools/get-token/main.go | // Copyright 2020 the Exposure Notifications Verification Server 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... | [
"\"LOG_LEVEL\""
] | [] | [
"LOG_LEVEL"
] | [] | ["LOG_LEVEL"] | go | 1 | 0 | |
mrrt/mri/operators/tests/test_mri_noncartesian.py | """Tests related to Non-Cartesian MRI reconstruction."""
from itertools import product
import time
import numpy as np
from numpy.testing import assert_, assert_equal
import pytest
from mrrt.operators.LinOp import DiagonalOperatorMulti
from mrrt.mri.operators.tests._generate_testdata import generate_sim_data
from mrrt... | [] | [] | [
"OMIT_GPU",
"OMIT_CPU"
] | [] | ["OMIT_GPU", "OMIT_CPU"] | python | 2 | 0 | |
kayak/mock_kayak_test.go | /*
* Copyright 2018 The CovenantSQL 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 ... | [
"\"DEBUG\""
] | [] | [
"DEBUG"
] | [] | ["DEBUG"] | go | 1 | 0 | |
experiment/autobumper/main.go | /*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | [
"\"BUILD_WORKSPACE_DIRECTORY\""
] | [] | [
"BUILD_WORKSPACE_DIRECTORY"
] | [] | ["BUILD_WORKSPACE_DIRECTORY"] | go | 1 | 0 | |
test/unit/test_dashy_things.py | import pytest
import sys
import os
os.environ['SENTINEL_CONFIG'] = os.path.normpath(os.path.join(os.path.dirname(__file__), '../test_sentinel.conf'))
sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '../../lib')))
@pytest.fixture
def valid_ukkey_address(network='mainnet'):
return 'yYe8Kwya... | [] | [] | [
"SENTINEL_CONFIG"
] | [] | ["SENTINEL_CONFIG"] | python | 1 | 0 | |
subcmds/forall.py | #
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | [] | [] | [
"REPO_COUNT"
] | [] | ["REPO_COUNT"] | python | 1 | 0 | |
cla-backend-go/utils/auth_user.go | // Copyright The Linux Foundation and each contributor to CommunityBridge.
// SPDX-License-Identifier: MIT
package utils
import (
"os"
"strconv"
"github.com/LF-Engineering/lfx-kit/auth"
log "github.com/communitybridge/easycla/cla-backend-go/logging"
"github.com/sirupsen/logrus"
)
// SetAuthUserProperties adds ... | [
"\"USER_AUTH_TRACING\""
] | [] | [
"USER_AUTH_TRACING"
] | [] | ["USER_AUTH_TRACING"] | go | 1 | 0 | |
todoproject/wsgi.py | """
WSGI config for todoproject 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_S... | [] | [] | [] | [] | [] | python | 0 | 0 | |
pkg/ansi/ansi.go | package ansi
import (
"fmt"
"io"
"os"
"runtime"
"time"
"github.com/briandowns/spinner"
"github.com/logrusorgru/aurora"
"github.com/tidwall/pretty"
"golang.org/x/term"
)
var darkTerminalStyle = &pretty.Style{
Key: [2]string{"\x1B[34m", "\x1B[0m"},
String: [2]string{"\x1B[30m", "\x1B[0m"},
Number: [2]st... | [
"\"CLICOLOR\""
] | [] | [
"CLICOLOR"
] | [] | ["CLICOLOR"] | go | 1 | 0 | |
src/integration_runner/main.go | //
// Copyright 2020 New Relic Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io"
"net"
"net/http"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"
"strconv"
"sync"
"time"
"newrelic"
"newrelic/collector"
"newr... | [
"\"GOMAXPROCS\""
] | [] | [
"GOMAXPROCS"
] | [] | ["GOMAXPROCS"] | go | 1 | 0 | |
src/cmd/cgo/out.go | // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"debug/elf"
"debug/macho"
"debug/pe"
"fmt"
"go/ast"
"go/printer"
"go/token"
"github.com/c12o16h1/go/src/internal/xcoff"
... | [
"\"GCCGO\""
] | [] | [
"GCCGO"
] | [] | ["GCCGO"] | go | 1 | 0 | |
qa/rpc-tests/util.py | # Copyright (c) 2014 The Bitcoin Core developers
# Copyright (c) 2014-2015 The Dash developers
# Copyright (c) 2019 The Bluecoin developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helpful routines for regression tes... | [] | [] | [
"BITCOINCLI",
"BITCOIND"
] | [] | ["BITCOINCLI", "BITCOIND"] | python | 2 | 0 | |
train.py | import os
import gc
import json
import time
import tqdm
import argparse
import datetime
import torch.distributed as dist
import torch.utils.data.distributed
from warpctc_pytorch import CTCLoss
from novograd import (AdamW,
Novograd)
from linknet import (SemsegLoss,
MaskSimila... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
uncoverml/__init__.py | import os
import pkg_resources
import uncoverml
__author__ = 'Geoscience Australia, Mineral Systems Branch, ' \
'NICTA Spatial Inference Systems Team (now Data 61)'
__email__ = 'daniel.steinberg@nicta.com.au, basaks@gmail.com, brenainn.moushall@ga.gov.au'
__version__ = pkg_resources.get_distribution('unc... | [] | [] | [
"OMPI_MCA_btl_base_warn_component_unused"
] | [] | ["OMPI_MCA_btl_base_warn_component_unused"] | python | 1 | 0 | |
qa/rpc-tests/test_framework/util.py | # Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helpful routines for regression testing
#
# Add python-bitcoinrpc to module search path:
import os
import sys
from decimal impor... | [] | [] | [
"PYTHON_DEBUG",
"LAMBOCOINCLI",
"LAMBOCOIND"
] | [] | ["PYTHON_DEBUG", "LAMBOCOINCLI", "LAMBOCOIND"] | python | 3 | 0 | |
kicost/distributors/api_octopart.py | # MIT license
#
# Copyright (C) 2018 by XESS Corporation / Max Maisel / Hildo Guillardi Júnior
#
# 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 limitat... | [] | [] | [
"KICOST_OCTOPART",
"KICOST_OCTOPART_KEY_V3"
] | [] | ["KICOST_OCTOPART", "KICOST_OCTOPART_KEY_V3"] | python | 2 | 0 | |
peer/common/common.go | /*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package common
import (
"context"
"fmt"
"io/ioutil"
"os"
"runtime"
"strings"
"time"
"github.com/hyperledger/fabric-gm/bccsp/factory"
"github.com/hyperledger/fabric-gm/common/channelconfig"
"github.com/hyperledger/fabric-gm/... | [
"\"FABRIC_LOGGING_SPEC\"",
"\"FABRIC_LOGGING_FORMAT\""
] | [] | [
"FABRIC_LOGGING_SPEC",
"FABRIC_LOGGING_FORMAT"
] | [] | ["FABRIC_LOGGING_SPEC", "FABRIC_LOGGING_FORMAT"] | go | 2 | 0 | |
pkg/sources/adapter/awscloudwatchsource/adapter.go | /*
Copyright 2022 TriggerMesh 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, softwar... | [] | [] | [] | [] | [] | go | 0 | 0 | |
porta/wsgi.py | """
WSGI config for porta 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_SETTING... | [] | [] | [] | [] | [] | python | 0 | 0 | |
build/parse_test.go | /*
Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | [
"\"TEST_SRCDIR\"",
"\"TEST_WORKSPACE\""
] | [] | [
"TEST_WORKSPACE",
"TEST_SRCDIR"
] | [] | ["TEST_WORKSPACE", "TEST_SRCDIR"] | go | 2 | 0 | |
Pytorch/train.py | from __future__ import print_function
import time
import os
import argparse
import numpy as np
import cv2
from subprocess import Popen, PIPE
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
from torch.utils.data import DataLoader, Data... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
tests/test_fsl_utils_path.py | #!/usr/bin/env python
#
# test_fsl_utils_path.py - Tests functions in the fsl.utils.path module.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
from __future__ import print_function
import os
import os.path as op
import shutil
import tempfile
import pytest
import mock
import ... | [] | [] | [] | [] | [] | python | 0 | 0 | |
dynamodb/dynamodb.go | package dynamodb
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/aws/aws-sdk-go/service/dynamodbstreams"
"github.com/guregu/dynamo"
"github.com/mumoshu/crdb/api"
"github.com/mumoshu/crdb/dynamodb/awssession"
"githu... | [
"\"AWSDEBUG\"",
"\"AWSDEBUG\"",
"\"AWSDEBUG\""
] | [] | [
"AWSDEBUG"
] | [] | ["AWSDEBUG"] | go | 1 | 0 | |
bootstrap.py | #!/usr/bin/env python3
# coding: utf8
"""
Bootstrap helps you to test scripts without installing them
by patching your PYTHONPATH on the fly
example: ./bootstrap.py ipython
"""
__authors__ = ["Frédéric-Emmanuel Picca", "Jérôme Kieffer"]
__contact__ = "jerome.kieffer@esrf.eu"
__license__ = "MIT"
__date__ = "30/09/2020... | [] | [] | [
"PYTHONSTARTUP",
"PATH",
"PYTHONPATH"
] | [] | ["PYTHONSTARTUP", "PATH", "PYTHONPATH"] | python | 3 | 0 | |
docker-plugin/main.go | /*
* Minio Cloud Storage, (C) 2017 Minio, 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 | |
pkg/kubectl/cmd/util/editor/editor.go | /*
Copyright 2015 The Kubernetes 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 ag... | [
"\"SHELL\"",
"\"EDITOR\""
] | [] | [
"SHELL",
"EDITOR"
] | [] | ["SHELL", "EDITOR"] | go | 2 | 0 | |
pytools/requester.py | import os
import time
import requests
assert os.getenv("NYCKEL_CLIENT_ID"), "NYCKEL_CLIENT_ID env variable not set; can't setup connection."
assert os.getenv("NYCKEL_CLIENT_SECRET"), "NYCKEL_CLIENT_SECRET env variable not set; can't setup connection."
class Requester:
"""Class to talk to the Server. Manages the... | [] | [] | [
"NYCKEL_CLIENT_ID",
"NYCKEL_CLIENT_SECRET"
] | [] | ["NYCKEL_CLIENT_ID", "NYCKEL_CLIENT_SECRET"] | python | 2 | 0 | |
core/configs.go | package core
import (
"fmt"
"io"
"net/url"
"strconv"
)
// Telegram constants
const (
// APIEndpoint is the endpoint for all API methods,
// with formatting for Sprintf.
APIEndpoint = "https://api.telegram.org/bot%s/%s"
// FileEndpoint is the endpoint for downloading a file from Telegram.
FileEndpoint = "http... | [] | [] | [] | [] | [] | go | null | null | null |
geequery-commons/src/main/java/com/github/geequery/tools/resource/UrlResourceLoader.java | package com.github.geequery.tools.resource;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.List;
import java.util.Set;
impor... | [
"\"PATH\"",
"\"TEMP\"",
"\"windir\""
] | [] | [
"windir",
"PATH",
"TEMP"
] | [] | ["windir", "PATH", "TEMP"] | java | 3 | 0 | |
infrastructure-provisioning/src/general/scripts/gcp/common_create_notebook_image.py | #!/usr/bin/python3
# *****************************************************************************
#
# 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 ... | [] | [] | [
"notebook_instance_name",
"exploratory_name",
"gcp_zone",
"notebook_image_name",
"application",
"endpoint_name",
"project_name",
"conf_service_base_name",
"conf_billing_tag_key",
"conf_billing_tag_value"
] | [] | ["notebook_instance_name", "exploratory_name", "gcp_zone", "notebook_image_name", "application", "endpoint_name", "project_name", "conf_service_base_name", "conf_billing_tag_key", "conf_billing_tag_value"] | python | 10 | 0 | |
unix.go | // +build darwin linux
package main
import (
"os"
"syscall"
)
func sysExec(path string, args []string, env []string) error {
return syscall.Exec(path, args, env)
}
func homePath() string {
return os.Getenv("HOME")
}
| [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
cmd/frontend/graphqlbackend/site.go | package graphqlbackend
import (
"context"
"os"
"strconv"
"strings"
"github.com/cockroachdb/errors"
"github.com/graph-gophers/graphql-go"
"github.com/graph-gophers/graphql-go/relay"
"github.com/sourcegraph/sourcegraph/cmd/frontend/backend"
"github.com/sourcegraph/sourcegraph/cmd/frontend/internal/siteid"
"g... | [
"\"SITE_CONFIG_FILE\""
] | [] | [
"SITE_CONFIG_FILE"
] | [] | ["SITE_CONFIG_FILE"] | go | 1 | 0 | |
pkg/test-infra/tests/client.go | // Copyright 2019 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | [
"\"KUBECONFIG\""
] | [] | [
"KUBECONFIG"
] | [] | ["KUBECONFIG"] | go | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.