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 |
|---|---|---|---|---|---|---|---|---|---|---|
ipfs.go | package blockfrost
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"mime/multipart"
"net/http"
"net/url"
"os"
"path/filepath"
"sync"
"github.com/hashicorp/go-retryablehttp"
)
const (
resourceIPFSAdd = "ipfs/add"
resourceIPFSPin = "ipfs/pin/add"
resourceIPFSPinList = "i... | [
"\"BLOCKFROST_IPFS_PROJECT_ID\""
] | [] | [
"BLOCKFROST_IPFS_PROJECT_ID"
] | [] | ["BLOCKFROST_IPFS_PROJECT_ID"] | go | 1 | 0 | |
libcontainer/init_linux.go | // +build linux
package libcontainer
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
"unsafe"
"github.com/containerd/console"
"github.com/opencontainers/runc/libcontainer/capabilities"
"github.com/opencontainers/runc/libcontainer/cgroups"
"github.com/opencontainers/runc/libc... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
awx/settings/production.py | # Copyright (c) 2015 Ansible, Inc.
# All Rights Reserved.
# Production settings for AWX project.
# Python
import os
import copy
import errno
import sys
import traceback
# Django Split Settings
from split_settings.tools import optional, include
# Load default settings.
from defaults import * # NOQA
DEBUG = False
T... | [] | [] | [
"AWX_SETTINGS_DIR",
"AWX_SETTINGS_FILE"
] | [] | ["AWX_SETTINGS_DIR", "AWX_SETTINGS_FILE"] | python | 2 | 0 | |
app-services/cloud-event-transforms/main.go | //
// Copyright (c) 2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | [
"\"EDGEX_SECURITY_SECRET_STORE\""
] | [] | [
"EDGEX_SECURITY_SECRET_STORE"
] | [] | ["EDGEX_SECURITY_SECRET_STORE"] | go | 1 | 0 | |
server.go | package main
import (
"bones/config"
"bones/db/sqlrepositories"
"bones/repositories"
"bones/web/authentication"
"bones/web/filters"
"bones/web/handlers"
"bones/web/sessions"
"bones/web/templating"
"github.com/gorilla/pat"
"log"
"net/http"
"os"
)
// Router
var r *pat.Router
// Services
var templateRendere... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
manage.py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'aa_hu_pair.settings')
try:
from django.core.management import execute_from_command_line
except I... | [] | [] | [] | [] | [] | python | 0 | 0 | |
pkg/internal/diskutil_test.go | package internal
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
)
const (
lsblkOutput1 = `NAME="sda" KNAME="sda" ROTA="1" TYPE="disk" SIZE="62914560000" MODEL="VBOX HARDDISK" VENDOR="ATA" RO="0" RM="0" STATE="running" FSTYPE="" SERIAL="" PARTLABEL=""
... | [
"\"GO_WANT_HELPER_PROCESS\"",
"\"STDOUT\""
] | [] | [
"STDOUT",
"GO_WANT_HELPER_PROCESS"
] | [] | ["STDOUT", "GO_WANT_HELPER_PROCESS"] | go | 2 | 0 | |
tests/test_sgschema.py | import os
import sys
import datetime
import unittest
from shotgun_api3 import Shotgun
import py_shotgun
url = r'https://{}.shotgunstudio.com'.format(os.environ['SHOTGUNSTUDIO'])
script_name = os.environ['PYSHOTGUN_NAME']
api_key = os.environ['PYSHOTGUN_KEY']
sg = Shotgun(
url,
script_name=script_name,
ap... | [] | [] | [
"SHOTGUNSTUDIO",
"PYSHOTGUN_KEY",
"PYSHOTGUN_NAME"
] | [] | ["SHOTGUNSTUDIO", "PYSHOTGUN_KEY", "PYSHOTGUN_NAME"] | python | 3 | 0 | |
internal/pipe/git/git.go | package git
import (
"fmt"
"net/url"
"os"
"os/exec"
"strconv"
"strings"
"time"
"github.com/apex/log"
"github.com/goreleaser/goreleaser/internal/git"
"github.com/goreleaser/goreleaser/internal/pipe"
"github.com/goreleaser/goreleaser/pkg/context"
)
// Pipe that sets up git state.
type Pipe struct{}
func (... | [
"\"GORELEASER_CURRENT_TAG\"",
"\"GORELEASER_PREVIOUS_TAG\""
] | [] | [
"GORELEASER_PREVIOUS_TAG",
"GORELEASER_CURRENT_TAG"
] | [] | ["GORELEASER_PREVIOUS_TAG", "GORELEASER_CURRENT_TAG"] | go | 2 | 0 | |
app/providers/mongo/utils.go | package mongo
import (
"fmt"
"log"
"os"
"github.com/globalsign/mgo"
"github.com/globalsign/mgo/bson"
"github.com/smileinnovation/imannotate/api/admin"
"github.com/smileinnovation/imannotate/api/project"
"github.com/smileinnovation/imannotate/api/user"
)
var sess *mgo.Session
func getMongo() *mgo.Database {
... | [
"\"DB_HOST\"",
"\"DB_USER\"",
"\"DB_PASS\"",
"\"DB_NAME\"",
"\"DB_AUTH\""
] | [] | [
"DB_HOST",
"DB_AUTH",
"DB_NAME",
"DB_PASS",
"DB_USER"
] | [] | ["DB_HOST", "DB_AUTH", "DB_NAME", "DB_PASS", "DB_USER"] | go | 5 | 0 | |
lib/clients/cryovac_clients/RGA_client.py | import numpy as np
from datetime import datetime
from twisted.internet.defer import inlineCallbacks
from EGGS_labrad.lib.clients.cryovac_clients.RGA_gui import RGA_gui
class RGA_client(RGA_gui):
name = 'RGA Client'
BUFFERID = 289961
def __init__(self, reactor, cxn=None, parent=None):
super().__... | [] | [] | [
"LABRADHOST"
] | [] | ["LABRADHOST"] | python | 1 | 0 | |
src/com.mentor.nucleus.bp.docgen/src/com/mentor/nucleus/bp/docgen/generator/Generator.java | //====================================================================
//
// File: $RCSfile: Generator.java,v $
// Version: $Revision: 1.23 $
// Modified: $Date: 2013/01/10 23:43:41 $
//
// (c) Copyright 2004-2014 by Mentor Graphics Corp. All rights reserved.
//
//======================================... | [
"\"MGC_EMBEDDED_HOME\"",
"\"MGC_EMBEDDED_HOME\""
] | [] | [
"MGC_EMBEDDED_HOME"
] | [] | ["MGC_EMBEDDED_HOME"] | java | 1 | 0 | |
.github/script/build_trade-data.py | import os
import time
import datetime
import pathlib
import json
import requests
from datetime import date, timedelta, datetime
from newsapi import NewsApiClient
def send_post_json(url, req_data):
try:
headers = {'content-type': 'application/json'}
res = requests.post(url, req_data, headers=header... | [] | [] | [
"NEWS_API_KEY"
] | [] | ["NEWS_API_KEY"] | python | 1 | 0 | |
pypeapp/lib/mongo.py | import os
try:
from urllib.parse import urlparse, parse_qs, unquote, urlsplit, urlunsplit
except ImportError:
from urlparse import urlparse, parse_qs
class MongoEnvNotSet(Exception):
pass
def build_netloc(host, port):
# type: (str, Optional[int]) -> str
"""
Build a netloc from a host-port p... | [] | [] | [
"AVALON_MONGO"
] | [] | ["AVALON_MONGO"] | python | 1 | 0 | |
nemo/collections/nlp/models/language_modeling/megatron_base_model.py | # Copyright (c) 2022, NVIDIA CORPORATION. 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... | [] | [] | [
"NVIDIA_PYTORCH_VERSION"
] | [] | ["NVIDIA_PYTORCH_VERSION"] | python | 1 | 0 | |
cmd/minikube/cmd/start_test.go | /*
Copyright 2019 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... | [
"\"HTTP_PROXY\""
] | [] | [
"HTTP_PROXY"
] | [] | ["HTTP_PROXY"] | go | 1 | 0 | |
chat_server/chat_server/wsgi.py | """
WSGI config for chat_server 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('DJANGO_S... | [] | [] | [] | [] | [] | python | 0 | 0 | |
example_problems/pure_java/sum/services/sum_and_product/simple/sum_and_product_server.java | import java.util.Scanner;
import java.util.Map;
import java.util.Random;
public class sum_and_product_server {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String spoon = "";
String numbers = "";
int num_question=0;
int x = 0;
int ... | [] | [] | [] | [] | [] | java | 0 | 0 | |
sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import datetime
import os
import asyncio
from azure.keyvault.secrets.aio import SecretClient
from azure.identity.aio import DefaultAzureCredential
from azure.core.except... | [] | [] | [
"VAULT_URL"
] | [] | ["VAULT_URL"] | python | 1 | 0 | |
repo/blob/gcs/gcs_storage_test.go | package gcs_test
import (
"bytes"
"compress/gzip"
"encoding/base64"
"io/ioutil"
"os"
"testing"
"github.com/kopia/kopia/internal/blobtesting"
"github.com/kopia/kopia/internal/testlogging"
"github.com/kopia/kopia/internal/testutil"
"github.com/kopia/kopia/repo/blob"
"github.com/kopia/kopia/repo/blob/gcs"
)
... | [
"\"KOPIA_GCS_TEST_BUCKET\"",
"\"KOPIA_GCS_CREDENTIALS_JSON_GZIP\"",
"\"KOPIA_GCS_TEST_BUCKET\"",
"\"KOPIA_GCS_CREDENTIALS_FILE\""
] | [] | [
"KOPIA_GCS_CREDENTIALS_JSON_GZIP",
"KOPIA_GCS_TEST_BUCKET",
"KOPIA_GCS_CREDENTIALS_FILE"
] | [] | ["KOPIA_GCS_CREDENTIALS_JSON_GZIP", "KOPIA_GCS_TEST_BUCKET", "KOPIA_GCS_CREDENTIALS_FILE"] | go | 3 | 0 | |
closed/Alibaba/code/common/system_list.py | # Copyright (c) 2021, NVIDIA CORPORATION. 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... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
megatron/utils.py | # coding=utf-8
# Copyright (c) 2021 Josh Levy-Kramer <josh@levykramer.co.uk>.
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
... | [] | [] | [
"LOCAL_RANK",
"WANDB_API_KEY"
] | [] | ["LOCAL_RANK", "WANDB_API_KEY"] | python | 2 | 0 | |
providers/dropbox/dropbox_test.go | package dropbox
import (
"net/http"
"net/http/httptest"
"os"
"testing"
"github.com/stretchr/testify/assert"
"github.com/yoyoyard/goth"
)
func provider() *Provider {
return New(os.Getenv("DROPBOX_KEY"), os.Getenv("DROPBOX_SECRET"), "/foo", "email")
}
func Test_New(t *testing.T) {
t.Parallel()
a := assert.Ne... | [
"\"DROPBOX_KEY\"",
"\"DROPBOX_SECRET\"",
"\"DROPBOX_KEY\"",
"\"DROPBOX_SECRET\""
] | [] | [
"DROPBOX_SECRET",
"DROPBOX_KEY"
] | [] | ["DROPBOX_SECRET", "DROPBOX_KEY"] | go | 2 | 0 | |
http-echo-test/httpd.go | package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"sort"
"strings"
)
var hostname string
func requestHandler(response http.ResponseWriter, request *http.Request) {
fmt.Fprintf(response, "Server: %v\n\n", hostname)
fmt.Fprintln(response, "Method:", request.Method)
fmt.Fprintln(response, "Host:"... | [
"\"PORT\"",
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
MySite/wsgi.py | """
WSGI config for MySite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [] | [] | [] | [] | [] | python | 0 | 0 | |
pkg/rootless/rootless_linux.go | // +build linux
package rootless
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
gosignal "os/signal"
"os/user"
"runtime"
"strconv"
"sync"
"syscall"
"unsafe"
"github.com/containers/storage/pkg/idtools"
"github.com/docker/docker/pkg/signal"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
/*
#cgo remo... | [
"\"_CONTAINERS_USERNS_CONFIGURED\"",
"\"_CONTAINERS_ROOTLESS_UID\"",
"\"_CONTAINERS_ROOTLESS_GID\"",
"\"_CONTAINERS_ROOTLESS_UID\"",
"\"_CONTAINERS_USERNS_CONFIGURED\"",
"\"_CONTAINERS_USERNS_CONFIGURED\"",
"\"_CONTAINERS_USERNS_CONFIGURED\"",
"\"USER\""
] | [] | [
"_CONTAINERS_ROOTLESS_UID",
"_CONTAINERS_USERNS_CONFIGURED",
"USER",
"_CONTAINERS_ROOTLESS_GID"
] | [] | ["_CONTAINERS_ROOTLESS_UID", "_CONTAINERS_USERNS_CONFIGURED", "USER", "_CONTAINERS_ROOTLESS_GID"] | go | 4 | 0 | |
orders/src/get_order/main.py | """
GetOrdersFunction
"""
import os
from typing import Optional
import boto3
from aws_lambda_powertools.tracing import Tracer # pylint: disable=import-error
from aws_lambda_powertools.logging import logger_setup, logger_inject_lambda_context # pylint: disable=import-error
from ecom.apigateway import iam_user_id, resp... | [] | [] | [
"ENVIRONMENT",
"TABLE_NAME"
] | [] | ["ENVIRONMENT", "TABLE_NAME"] | python | 2 | 0 | |
tools/predict.py | # -*- coding: utf-8 -*-
# @Time : 2019/8/24 12:06
# @Author : zhoujun
import os
import sys
import pathlib
import struct
__dir__ = pathlib.Path(os.path.abspath(__file__))
sys.path.append(str(__dir__))
sys.path.append(str(__dir__.parent.parent))
# project = 'DBNet.pytorch' # 工作项目根目录
# sys.path.append(os.getcwd().s... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
main.go | package main
import (
"fmt"
"log"
"net/http"
"os"
// Import gorm and postgres
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
// Import go-twitter modules
"github.com/dghubble/go-twitter/twitter"
"github.com/dghubble/oauth1"
// Import echo and autoload
_ "github.com/joho/godotenv/auto... | [
"\"ACCESS_TOKEN\"",
"\"ACCESS_TOKEN_SECRET\"",
"\"CONSUMER_KEY\"",
"\"CONSUMER_SECRET\"",
"\"host\"",
"\"DB_PORT\"",
"\"user\"",
"\"dbname\"",
"\"PORT\""
] | [] | [
"PORT",
"CONSUMER_SECRET",
"DB_PORT",
"CONSUMER_KEY",
"host",
"dbname",
"user",
"ACCESS_TOKEN",
"ACCESS_TOKEN_SECRET"
] | [] | ["PORT", "CONSUMER_SECRET", "DB_PORT", "CONSUMER_KEY", "host", "dbname", "user", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET"] | go | 9 | 0 | |
internal/db/dbutil/dbutil.go | package dbutil
import (
"context"
"database/sql"
"database/sql/driver"
"encoding/json"
"fmt"
"net/url"
"os"
"strconv"
"strings"
"time"
// Register driver
"github.com/lib/pq"
"github.com/golang-migrate/migrate/v4"
"github.com/golang-migrate/migrate/v4/database/postgres"
bindata "github.com/golang-migra... | [
"\"LOG_MIGRATE_TO_STDOUT\""
] | [] | [
"LOG_MIGRATE_TO_STDOUT"
] | [] | ["LOG_MIGRATE_TO_STDOUT"] | go | 1 | 0 | |
venv/Lib/site-packages/fitz/frontend.py | """Forward facing fitz tools with information about ecosystem."""
import os
import re
import sys
import imp
import os.path as op
import numpy as np
import subprocess
from nipype import config, logging
from .tools import make_subject_source
def gather_project_info():
"""Import project information based on environm... | [] | [] | [
"FITZ_DIR"
] | [] | ["FITZ_DIR"] | python | 1 | 0 | |
cli/create_admin.go | // Copyright 2018 Frédéric Guillot. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package cli // import "miniflux.app/cli"
import (
"fmt"
"os"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/storage"
)
func createAdmin(s... | [
"\"ADMIN_USERNAME\"",
"\"ADMIN_PASSWORD\""
] | [] | [
"ADMIN_USERNAME",
"ADMIN_PASSWORD"
] | [] | ["ADMIN_USERNAME", "ADMIN_PASSWORD"] | go | 2 | 0 | |
server/vcr-server/agent_webhooks/views.py | import json
import logging
import time
import os
import random
import base64
from django.conf import settings
from drf_yasg.utils import swagger_auto_schema
from rest_framework import permissions, status
from rest_framework.decorators import api_view, permission_classes
from rest_framework.response import Response
fr... | [] | [] | [
"PROCESS_INBOUND_CREDENTIALS",
"RANDOM_ERRORS"
] | [] | ["PROCESS_INBOUND_CREDENTIALS", "RANDOM_ERRORS"] | python | 2 | 0 | |
cmd/root.go | package cmd
import (
"fmt"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"os"
"os/signal"
"runtime"
)
const (
// ExitSetupFailed defines exit code
ExitSetupFailed = 1
)
var (
configPath string
defaultConfigPath string
logLevel string
rootCmd = &cobra.Command{
Use: "wiretr... | [
"\"PROGRAMDATA\""
] | [] | [
"PROGRAMDATA"
] | [] | ["PROGRAMDATA"] | go | 1 | 0 | |
agents/eval/evaluate_vision_dagger.py | import copy
import numpy as np
import torch
import os
import sys
sys.path.insert(0, os.environ['ALFRED_ROOT'])
from agents.utils.misc import extract_admissible_commands
def evaluate_vision_dagger(env, agent, num_games, debug=False):
env.seed(42)
agent.eval()
episode_no = 0
res_points, res_steps, res_... | [] | [] | [
"ALFRED_ROOT"
] | [] | ["ALFRED_ROOT"] | python | 1 | 0 | |
fuzzers/045-hclk-cmt-pips/generate.py | #!/usr/bin/env python3
from prjxray.segmaker import Segmaker
import os
import os.path
def bitfilter(frame, word):
if frame < 26:
return False
return True
IOCLK_MAP = {
'HCLK_IOI_I2IOCLK_TOP0': 'HCLK_CMT_CCIO0',
'HCLK_IOI_I2IOCLK_TOP1': 'HCLK_CMT_CCIO1',
'HCLK_IOI_I2IOCLK_BOT0': 'HCLK_C... | [] | [] | [
"FUZDIR"
] | [] | ["FUZDIR"] | python | 1 | 0 | |
app/public/manage.py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'public.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [] | [] | [] | [] | [] | python | 0 | 0 | |
pkg/server/server.go | package server
import (
"context"
"crypto/sha256"
"encoding/hex"
"fmt"
"io/ioutil"
net2 "net"
"os"
"path"
"path/filepath"
"strconv"
"strings"
"time"
corev1 "k8s.io/api/core/v1"
"github.com/k3s-io/helm-controller/pkg/helm"
"github.com/pkg/errors"
"github.com/rancher/k3s/pkg/apiaddresses"
"github.com/... | [
"\"NO_PROXY\"",
"\"no_proxy\"",
"\"NODE_NAME\""
] | [] | [
"NO_PROXY",
"NODE_NAME",
"no_proxy"
] | [] | ["NO_PROXY", "NODE_NAME", "no_proxy"] | go | 3 | 0 | |
internal/search/run/repository_test.go | package run
import (
"context"
"os"
"strconv"
"testing"
"github.com/google/zoekt"
"github.com/sourcegraph/sourcegraph/internal/search"
searchbackend "github.com/sourcegraph/sourcegraph/internal/search/backend"
"github.com/sourcegraph/sourcegraph/internal/search/result"
"github.com/sourcegraph/sourcegraph/int... | [
"\"CI\""
] | [] | [
"CI"
] | [] | ["CI"] | go | 1 | 0 | |
pkg/runner/run_context.go | package runner
import (
"context"
"encoding/json"
"fmt"
"os"
"path/filepath"
"regexp"
"runtime"
"strings"
"github.com/google/shlex"
"github.com/spf13/pflag"
"github.com/mitchellh/go-homedir"
log "github.com/sirupsen/logrus"
selinux "github.com/opencontainers/selinux/go-selinux"
"github.com/nektos/act... | [
"\"ACTIONS_RUNTIME_URL\"",
"\"ACTIONS_RUNTIME_TOKEN\""
] | [] | [
"ACTIONS_RUNTIME_URL",
"ACTIONS_RUNTIME_TOKEN"
] | [] | ["ACTIONS_RUNTIME_URL", "ACTIONS_RUNTIME_TOKEN"] | go | 2 | 0 | |
src/main/java/com/programmer74/GradientDescentApplication.java | package com.programmer74;
import com.programmer74.GradientDescent.BasicGradientDescentCalculator;
import com.programmer74.GradientDescent.GradientDescentCalculator;
import com.programmer74.GradientDescent.SparkGradientDescentCalculator;
import com.programmer74.GradientDescent.LinearHypothesis;
import com.programmer74.... | [
"\"GDA_JAR_FILE\""
] | [] | [
"GDA_JAR_FILE"
] | [] | ["GDA_JAR_FILE"] | java | 1 | 0 | |
Bot1/instrumented_file/twitterRetweet.py | import boto3
import tweepy
import os
import json
from aws_xray_sdk.core import xray_recorder
from aws_xray_sdk.core import patch_all
ssm = boto3.client('ssm', region_name='us-west-2')
def authenticate_twitter():
xray_recorder.begin_subsegment('twitter-authentication')
xray_recorder.begin_subsegment('ssm-get_... | [] | [] | [
"TweetSearchString"
] | [] | ["TweetSearchString"] | python | 1 | 0 | |
cmd/config.go | package cmd
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"os"
"os/exec"
"os/user"
"reflect"
"regexp"
"runtime"
"runtime/pprof"
"sort"
"strings"
"text/template"
"time"
"unicode"
"github.com/Masterminds/sprig/v3"
"github.com/coreos/go-semver/semver"
"github.com/go-git/go-git/v5/plumbing/form... | [
"\"PAGER\"",
"\"VISUAL\"",
"\"EDITOR\""
] | [] | [
"PAGER",
"VISUAL",
"EDITOR"
] | [] | ["PAGER", "VISUAL", "EDITOR"] | go | 3 | 0 | |
pkg/resources/statefulset.go | // Copyright 2020 Oracle and/or its affiliates. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | [
"\"NDB_AGENT_VERSION\""
] | [] | [
"NDB_AGENT_VERSION"
] | [] | ["NDB_AGENT_VERSION"] | go | 1 | 0 | |
model_zoo/official/cv/mobilenetv2/src/launch.py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [] | [] | [] | [] | [] | python | 0 | 0 | |
pkg/commandbus/memory/command_bus_test.go | package commandbus
import (
"runtime"
"testing"
"github.com/vardius/golog"
)
func TestNew(t *testing.T) {
bus := New(runtime.NumCPU())
if bus == nil {
t.Fail()
}
}
func TestWithLogger(t *testing.T) {
logger := golog.New("debug")
parent := New(runtime.NumCPU())
bus := WithLogger(parent, logger)
if bus ... | [] | [] | [] | [] | [] | go | null | null | null |
pkg/checkpoint/checkpoint.go | // Copyright 2021 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... | [
"\"DEBUG_CHECKPOINT\""
] | [] | [
"DEBUG_CHECKPOINT"
] | [] | ["DEBUG_CHECKPOINT"] | go | 1 | 0 | |
bot.py | # -*- coding: utf-8 -*-
import os
import telebot
import time
import random
import threading
from emoji import emojize
from telebot import types
from pymongo import MongoClient
import traceback
from datetime import datetime
token = os.environ['TELEGRAM_TOKEN']
bot = telebot.TeleBot(token)
britmsgs=0
client=MongoClient... | [] | [] | [
"database",
"TELEGRAM_TOKEN"
] | [] | ["database", "TELEGRAM_TOKEN"] | python | 2 | 0 | |
tencentcloud/iotexplorer/v20190423/client.go | // Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
//
... | [] | [] | [] | [] | [] | go | null | null | null |
test/e2e/storage/sanity.go | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | [
"\"REPO_ROOT\"",
"\"CLUSTER\"",
"\"REPO_ROOT\"",
"\"CLUSTER\""
] | [] | [
"CLUSTER",
"REPO_ROOT"
] | [] | ["CLUSTER", "REPO_ROOT"] | go | 2 | 0 | |
src/python/importer.py | # Copyright (c) 2008 The Hewlett-Packard Development Company
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this list of... | [] | [] | [
"M5_OVERRIDE_PY_SOURCE"
] | [] | ["M5_OVERRIDE_PY_SOURCE"] | python | 1 | 0 | |
main.go | package main
//all made to work even if there is no db
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strings"
)
type HTTPHandler struct {
token string
}
func (h *HTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, h.token)
}
func main() {
log.Println("v 1.0")
log.Println("I... | [
"\"WEAKPROTECTION\"",
"\"DEBUG\""
] | [] | [
"WEAKPROTECTION",
"DEBUG"
] | [] | ["WEAKPROTECTION", "DEBUG"] | go | 2 | 0 | |
tests/unit/gapic/compute_v1/test_firewalls.py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [] | [] | [] | [] | [] | python | 0 | 0 | |
python/ray/tests/test_multi_node.py | import os
import pytest
import psutil
import sys
import time
import ray
from ray import ray_constants
from ray._private.test_utils import (
RayTestTimeoutException, run_string_as_driver,
run_string_as_driver_nonblocking, init_error_pubsub, get_error_message,
object_memory_usage, wait_for_condition)
@pyte... | [] | [] | [
"LC_ALL",
"LANG"
] | [] | ["LC_ALL", "LANG"] | python | 2 | 0 | |
staging/src/k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go | /*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | [
"\"HOME\"",
"\"USERPROFILE\""
] | [] | [
"HOME",
"USERPROFILE"
] | [] | ["HOME", "USERPROFILE"] | go | 2 | 0 | |
python/ray/tune/tests/test_trial_runner_3.py | import time
from collections import Counter
import os
import pickle
import shutil
import sys
import tempfile
import unittest
from unittest.mock import patch
import ray
from ray.rllib import _register_all
from ray.tune import TuneError
from ray.tune.ray_trial_executor import RayTrialExecutor
from ray.tune.result impor... | [] | [] | [
"TUNE_PLACEMENT_GROUP_WAIT_S",
"TUNE_TRIAL_STARTUP_GRACE_PERIOD",
"TUNE_RESULT_BUFFER_LENGTH",
"TUNE_RESULT_BUFFER_MIN_TIME_S",
"TUNE_TRIAL_RESULT_WAIT_TIME_S",
"TUNE_MAX_PENDING_TRIALS_PG",
"CUDA_VISIBLE_DEVICES"
] | [] | ["TUNE_PLACEMENT_GROUP_WAIT_S", "TUNE_TRIAL_STARTUP_GRACE_PERIOD", "TUNE_RESULT_BUFFER_LENGTH", "TUNE_RESULT_BUFFER_MIN_TIME_S", "TUNE_TRIAL_RESULT_WAIT_TIME_S", "TUNE_MAX_PENDING_TRIALS_PG", "CUDA_VISIBLE_DEVICES"] | python | 7 | 0 | |
utils.py | import os
def get_token(args):
"""
Parse command line arguments
Args:
args: object : Parsed arguments
Returns:
Tellus API token
"""
if args.token is not None:
return args.token
if "TELLUS_API_TOKEN" in os.environ:
return os.environ["TELLUS_API_TOKEN"]
... | [] | [] | [
"TELLUS_API_TOKEN"
] | [] | ["TELLUS_API_TOKEN"] | python | 1 | 0 | |
sdk/identity/azure-identity/tests/test_authn_client_async.py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import asyncio
from unittest.mock import Mock, patch
from urllib.parse import urlparse
import pytest
from azure.identity._constants import EnvironmentVariables
from azu... | [] | [] | [] | [] | [] | python | 0 | 0 | |
DjangoBasic/DjangoBasic/asgi.py | """
ASGI config for DjangoBasic 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [] | [] | [] | [] | [] | python | 0 | 0 | |
tools/proto-gae/proto_gae.go | // Copyright 2015 The LUCI 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... | [
"\"GOPACKAGE\""
] | [] | [
"GOPACKAGE"
] | [] | ["GOPACKAGE"] | go | 1 | 0 | |
dragonchain/lib/error_reporter.py | # Copyright 2019 Dragonchain, Inc.
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
# 6. Tr... | [] | [] | [
"ERROR_REPORTING_TYPE",
"LEVEL",
"INTERNAL_ID",
"SERVICE"
] | [] | ["ERROR_REPORTING_TYPE", "LEVEL", "INTERNAL_ID", "SERVICE"] | python | 4 | 0 | |
manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'site_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django.... | [] | [] | [] | [] | [] | python | 0 | 0 | |
internal/dao/helm.go | package dao
import (
"context"
"fmt"
"os"
"github.com/derailed/k9s/internal/client"
"github.com/derailed/k9s/internal/render"
"github.com/rs/zerolog/log"
"helm.sh/helm/v3/pkg/action"
"k8s.io/apimachinery/pkg/runtime"
)
var (
_ Accessor = (*Helm)(nil)
_ Nuker = (*Helm)(nil)
_ Describer = (*Helm)(nil)
... | [
"\"HELM_DRIVER\""
] | [] | [
"HELM_DRIVER"
] | [] | ["HELM_DRIVER"] | go | 1 | 0 | |
tests/unit/gapic/documentai_v1beta2/test_document_understanding_service.py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [] | [] | [] | [] | [] | python | 0 | 0 | |
manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "geovinci.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [] | [] | [] | [] | [] | python | 0 | 0 | |
setup.py | # Copyright (c) 2012 Spotify AB
#
# 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, s... | [] | [] | [
"READTHEDOCS"
] | [] | ["READTHEDOCS"] | python | 1 | 0 | |
model_zoo/official/cv/resnet/eval.py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [] | [] | [
"DEVICE_ID"
] | [] | ["DEVICE_ID"] | python | 1 | 0 | |
packaging/piptool.py | # 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 la... | [] | [] | [
"PYTHONPATH"
] | [] | ["PYTHONPATH"] | python | 1 | 0 | |
vendor/k8s.io/client-go/1.4/rest/config.go | /*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | [
"\"KUBERNETES_SERVICE_HOST\"",
"\"KUBERNETES_SERVICE_PORT\""
] | [] | [
"KUBERNETES_SERVICE_HOST",
"KUBERNETES_SERVICE_PORT"
] | [] | ["KUBERNETES_SERVICE_HOST", "KUBERNETES_SERVICE_PORT"] | go | 2 | 0 | |
controllers/provider-gcp/cmd/gardener-extension-provider-gcp/app/app.go | // Copyright (c) 2019 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 Lice... | [
"\"LEADER_ELECTION_NAMESPACE\"",
"\"WEBHOOK_CONFIG_NAMESPACE\""
] | [] | [
"LEADER_ELECTION_NAMESPACE",
"WEBHOOK_CONFIG_NAMESPACE"
] | [] | ["LEADER_ELECTION_NAMESPACE", "WEBHOOK_CONFIG_NAMESPACE"] | go | 2 | 0 | |
src/cmd/pprof/internal/driver/driver.go | // Copyright 2014 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 driver implements the core pprof functionality. It can be
// parameterized with a flag implementation, fetch and symbolize
// mechanisms.
package dri... | [
"\"PPROF_TMPDIR\"",
"\"PPROF_TOOLS\"",
"\"PPROF_TMPDIR\"",
"\"HOME\""
] | [] | [
"PPROF_TOOLS",
"PPROF_TMPDIR",
"HOME"
] | [] | ["PPROF_TOOLS", "PPROF_TMPDIR", "HOME"] | go | 3 | 0 | |
pkg/credentials/iam_aws.go | /*
* MinIO Go Library for Amazon S3 Compatible Cloud Storage
* Copyright 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/LICENS... | [
"\"AWS_CONTAINER_AUTHORIZATION_TOKEN\"",
"\"AWS_WEB_IDENTITY_TOKEN_FILE\"",
"\"AWS_REGION\"",
"\"AWS_REGION\"",
"\"AWS_REGION\"",
"\"AWS_REGION\"",
"\"AWS_WEB_IDENTITY_TOKEN_FILE\"",
"\"AWS_ROLE_ARN\"",
"\"AWS_ROLE_SESSION_NAME\"",
"\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\"",
"\"AWS_CONTAINER_C... | [] | [
"AWS_ROLE_ARN",
"AWS_REGION",
"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",
"AWS_CONTAINER_AUTHORIZATION_TOKEN",
"AWS_CONTAINER_CREDENTIALS_FULL_URI",
"AWS_WEB_IDENTITY_TOKEN_FILE",
"AWS_ROLE_SESSION_NAME"
] | [] | ["AWS_ROLE_ARN", "AWS_REGION", "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", "AWS_CONTAINER_AUTHORIZATION_TOKEN", "AWS_CONTAINER_CREDENTIALS_FULL_URI", "AWS_WEB_IDENTITY_TOKEN_FILE", "AWS_ROLE_SESSION_NAME"] | go | 7 | 0 | |
internal/testenv/testenv.go | // Copyright 2019 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 testenv contains helper functions for skipping tests
// based on which tools are present in the environment.
package testenv
import (
"bytes"
"fmt... | [
"\"GO_BUILDER_NAME\"",
"\"GO_BUILDER_NAME\"",
"\"GO_BUILDER_NAME\"",
"\"GO_BUILDER_NAME\"",
"\"GO_BUILDER_NAME\""
] | [] | [
"GO_BUILDER_NAME"
] | [] | ["GO_BUILDER_NAME"] | go | 1 | 0 | |
Problem Solving/Algorithms/Number Line Jumps.java | import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
static String kangaroo(int x1, int v1, int x2, int v2) {
if (v1 > v2) {
int remainder = (x1 - x2) ... | [
"\"OUTPUT_PATH\""
] | [] | [
"OUTPUT_PATH"
] | [] | ["OUTPUT_PATH"] | java | 1 | 0 | |
cmd/webhook/main.go | package main
import (
"fmt"
"k8s.io/api/admission/v1beta1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"log"
"net/http"
"os"
"path/filepath"
)
const (
tlsDir = `/run/secrets/tls`
tlsCertFile = `tls.crt`
tlsKeyFile = `tls.key`
envVarName ... | [
"\"envLabel\""
] | [] | [
"envLabel"
] | [] | ["envLabel"] | go | 1 | 0 | |
example/main.go | package main
import (
"github.com/diggs/glog"
"github.com/diggs/gone"
"net"
"os"
"time"
)
func redisLock(id string, value string) (gone.GoneLock, error) {
return gone.NewRedisLock(&net.TCPAddr{Port: 6379}, id, value)
}
func runner(r *gone.GoneRunner) {
ticker := time.NewTicker(25 * time.Second).C
for {
sel... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
backend/data/postgres.go | package data
import (
"fmt"
"github.com/go-pg/pg/v10"
"github.com/go-pg/pg/v10/orm"
"github.com/eikona-org/eikona/v2/data/datamodels"
"os"
)
var db *pg.DB
func Init() error {
opt, err := pg.ParseURL(os.Getenv("DATABASE_URL"))
if err != nil {
panic(err)
}
db = pg.Connect(opt)
err = createSchema()
if er... | [
"\"DATABASE_URL\""
] | [] | [
"DATABASE_URL"
] | [] | ["DATABASE_URL"] | go | 1 | 0 | |
algorithm/math/nCr.py | def combination(n, r):
result = 1
for i in range(1, r + 1):
result *= (n - (r - i)) / (r - (r - i))
return int(result)
if __name__ == "__main__":
print("[nCr]")
n = int(input("Input the n: "))
r = int(input("Input the r: "))
result = combination(n, r)
print(result)
| [] | [] | [] | [] | [] | python | null | null | null |
google/cloud/dialogflow_v2/services/session_entity_types/client.py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [] | [] | [
"GOOGLE_API_USE_MTLS_ENDPOINT",
"GOOGLE_API_USE_CLIENT_CERTIFICATE"
] | [] | ["GOOGLE_API_USE_MTLS_ENDPOINT", "GOOGLE_API_USE_CLIENT_CERTIFICATE"] | python | 2 | 0 | |
main_dasalc.py | import argparse
import logging
import os
import time
import uuid
import numpy as np
import pyltr
import tensorflow as tf
from evaluation import compute_mean_ndcg, compute_perf_metrics, create_trec_eval_format_run_qrels
from lambdamart import compute_lambdamart_preds
# from model import ReRanker
from dasalc_model impo... | [] | [] | [
"TF_CPP_MIN_LOG_LEVEL"
] | [] | ["TF_CPP_MIN_LOG_LEVEL"] | python | 1 | 0 | |
webapp/app/routes/utils.py | from flask.helpers import url_for
from ..connection.functions import get_job_type
from flask_login import current_user
from flask import redirect, flash
admin_modify = ['country', 'airport', 'airline', 'contains', 'employee',
'flight', 'airport_authority', 'administration', 'engineer',
... | [] | [] | [] | [] | [] | python | null | null | null |
app.go | package main
import (
"encoding/json"
"log"
"net/http"
"os"
"github.com/julienschmidt/httprouter"
)
// How to try: PORT=3000 go run app.go version.go
func main() {
port := os.Getenv("PORT")
if len(port) == 0 {
log.Fatal("Couldn't start the service, port is not set")
}
router := httprouter.New()
router.G... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
config/config.go | package config
import (
"encoding/json"
"fmt"
"os"
"io/ioutil"
"regexp"
"github.com/xichengh/xcblog/utils"
)
type DataType struct {
Mongodb Mongodb `json:"mongodb"`
Base Base `json:"base"`
}
type Base struct {
APIPrefix string `json:"APIPrefix"` /*Api接口前缀*/
UploadImgDi... | [
"\"GO_ENV\""
] | [] | [
"GO_ENV"
] | [] | ["GO_ENV"] | go | 1 | 0 | |
command/root.go | package command
import (
"errors"
"fmt"
"io"
"net/http"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"
"runtime/debug"
"strings"
"github.com/MakeNowJust/heredoc"
"github.com/cli/cli/api"
"github.com/cli/cli/context"
"github.com/cli/cli/git"
"github.com/cli/cli/internal/config"
"github.com/cli/cli/... | [
"\"GH_REPO\"",
"\"DEBUG\"",
"\"GITHUB_TOKEN\"",
"\"DEBUG\"",
"\"GITHUB_TOKEN\"",
"\"DEBUG\"",
"\"GH_EDITOR\""
] | [] | [
"DEBUG",
"GITHUB_TOKEN",
"GH_EDITOR",
"GH_REPO"
] | [] | ["DEBUG", "GITHUB_TOKEN", "GH_EDITOR", "GH_REPO"] | go | 4 | 0 | |
binderhub/app.py | """
The binderhub application
"""
import asyncio
import ipaddress
import json
import logging
import os
import re
import secrets
from binascii import a2b_hex
from concurrent.futures import ThreadPoolExecutor
from glob import glob
from urllib.parse import urlparse
import kubernetes.client
import kubernetes.config
from j... | [] | [] | [
"JUPYTERHUB_API_TOKEN",
"JUPYTERHUB_OAUTH_CALLBACK_URL",
"BINDERHUB_BUILD_TOKEN_SECRET"
] | [] | ["JUPYTERHUB_API_TOKEN", "JUPYTERHUB_OAUTH_CALLBACK_URL", "BINDERHUB_BUILD_TOKEN_SECRET"] | python | 3 | 0 | |
playbooks/osp/inventory/openstack.py | #!/usr/bin/env python
# Copyright (c) 2012, Marco Vito Moscaritolo <marco@agavee.com>
# Copyright (c) 2013, Jesse Keating <jesse.keating@rackspace.com>
# Copyright (c) 2015, Hewlett-Packard Development Company, L.P.
# Copyright (c) 2016, Rackspace Australia
#
# This module is free software: you can redistribute it and... | [] | [] | [
"OS_CLOUD"
] | [] | ["OS_CLOUD"] | python | 1 | 0 | |
cmd/cue/cmd/common.go | // Copyright 2018 The CUE 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... | [
"\"CUE_SYNTAX_OVERRIDE\"",
"\"LC_ALL\"",
"\"LANG\""
] | [] | [
"CUE_SYNTAX_OVERRIDE",
"LC_ALL",
"LANG"
] | [] | ["CUE_SYNTAX_OVERRIDE", "LC_ALL", "LANG"] | go | 3 | 0 | |
Sav_s_nb_30_m/setrun.py | # encoding: utf-8
"""
Module to set up run time parameters for Clawpack.
The values set in the function setrun are then written out to data files
that will be read in by the Fortran code.
"""
from __future__ import absolute_import
from __future__ import print_function
# import netCDF4
import os
import datetime
impo... | [] | [] | [
"CLAW"
] | [] | ["CLAW"] | python | 1 | 0 | |
compiler/core/src/main/java/com/asakusafw/compiler/batch/experimental/DumpEnvironmentProcessor.java | /**
* Copyright 2011-2021 Asakusa Framework 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... | [] | [] | [] | [] | [] | java | 0 | 0 | |
refprice/chainlink.go | package refprice
import (
"context"
"errors"
"fmt"
"github.com/KyberNetwork/cache/libs/contracts"
etherCommon "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/ethclient"
"log"
"math/big"
"os"
"time"
)
type ChainlinkFetcher struct ... | [
"\"NODE_ENDPOINT\"",
"\"KYBER_ENV\""
] | [] | [
"KYBER_ENV",
"NODE_ENDPOINT"
] | [] | ["KYBER_ENV", "NODE_ENDPOINT"] | go | 2 | 0 | |
cmd/examples/main.go | // Copyright © 2018 Banzai Cloud
//
// 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 ... | [
"\"VAULT_PATH\""
] | [] | [
"VAULT_PATH"
] | [] | ["VAULT_PATH"] | go | 1 | 0 | |
publish-results-pr/internal/appargs/args_githubaction_test.go | package appargs
import (
"os"
"path"
"reflect"
"strings"
"testing"
)
func TestGitHubActionArgs_ErrorWhenMissingEnv(t *testing.T) {
if os.Getenv("GITHUB_ACTIONS") != "" {
t.Skip("Skipping test in GitHub Actions")
return
}
envs := map[string]string{
"GITHUB_ACTIONS": "true",
"GITHUB_REPOSITORY": "... | [
"\"GITHUB_ACTIONS\"",
"\"GITHUB_ACTIONS\""
] | [] | [
"GITHUB_ACTIONS"
] | [] | ["GITHUB_ACTIONS"] | go | 1 | 0 | |
kcontainer/order-query-quarkus-ms/src/main/java/ibm/gse/orderqueryms/infrastructure/kafka/OrderAgent.java | package ibm.gse.orderqueryms.infrastructure.kafka;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import java.util.Properties;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerR... | [
"\"KAFKA_BROKERS\""
] | [] | [
"KAFKA_BROKERS"
] | [] | ["KAFKA_BROKERS"] | java | 1 | 0 | |
qa/rpc-tests/maxblocksinflight.py | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import logging
... | [] | [] | [
"CRIPTOREALD"
] | [] | ["CRIPTOREALD"] | python | 1 | 0 | |
client/BrocConfig.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
#
# Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
#
################################################################################
"""
Description : manage config file $HOME/.b... | [] | [] | [
"HOME"
] | [] | ["HOME"] | python | 1 | 0 | |
runnable-petri-server/src/it/java/com/wixpress/petri/RunnableServerIT.java | package com.wixpress.petri;
import com.ning.http.client.AsyncHttpClient;
import com.wixpress.guineapig.drivers.PetriBackofficeUiDriver;
import com.wixpress.petri.petri.FullPetriClient;
import com.wixpress.petri.test.TestBuilders;
import org.apache.commons.io.FileUtils;
import org.junit.After;
import org.junit.Before;... | [] | [] | [] | [] | [] | java | 0 | 0 | |
exl_env/lib/python3.6/site-packages/IPython/core/tests/test_magic.py | # -*- coding: utf-8 -*-
"""Tests for various magic functions.
Needs to be run by nose (to make ipython session available).
"""
import io
import os
import re
import sys
import warnings
from unittest import TestCase
from importlib import invalidate_caches
from io import StringIO
import nose.tools as nt
import shlex
... | [] | [] | [
"var"
] | [] | ["var"] | python | 1 | 0 | |
cmd/Run/run.go | // Copyright 2013 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 (
"log"
"os"
"os/exec"
"fmt"
"time"
"path"
"strings"
"strconv"
"syscall"
"code.google.com/p/goplan9/plan9/acme"
)
var _ = fmt.... | [
"\"samfile\"",
"\"winid\"",
"\"samfile\""
] | [] | [
"samfile",
"winid"
] | [] | ["samfile", "winid"] | go | 2 | 0 | |
tests/vitriolic/wsgi.py | """
WSGI config for vitriolic project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [] | [] | [] | [] | [] | python | 0 | 0 | |
dued/config.py | import copy
import json
import os
import types
from os.path import join, splitext, expanduser
from .entorno import Entorno
from .excepciones import TipoDeArchivoDesconocido, MiembroDeConfigNoSeleccionable
from .corredores import Local
from .terminales import WINDOWS
from .util import debug, six, yaml
if six.PY3:
... | [] | [] | [
"COMSPEC"
] | [] | ["COMSPEC"] | python | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.