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 |
|---|---|---|---|---|---|---|---|---|---|---|
pycode/tinyflow/Scheduler.py | import copy
from enum import Enum
import multiprocessing
import numpy as np
from functools import cmp_to_key
import plotly as py
import plotly.figure_factory as ff
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import plotly
from collections import defaultdict
import os
from pynvml import *... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
disentanglement_lib/data/ground_truth/norb.py | # coding=utf-8
# Copyright 2018 The DisentanglementLib 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
#
# Un... | [] | [] | [
"DISENTANGLEMENT_LIB_DATA"
] | [] | ["DISENTANGLEMENT_LIB_DATA"] | python | 1 | 0 | |
ais/target.go | // Package ais provides core functionality for the AIStore object storage.
/*
* Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
*/
package ais
import (
"context"
"errors"
"fmt"
"io"
"net"
"net/http"
"net/url"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/... | [
"\"AIS_HOST_IP\"",
"\"AIS_HOST_PORT\""
] | [] | [
"AIS_HOST_IP",
"AIS_HOST_PORT"
] | [] | ["AIS_HOST_IP", "AIS_HOST_PORT"] | go | 2 | 0 | |
perf_dashboard/regression_alerts/views.py | # Copyright 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 in writing, soft... | [] | [] | [
"CUR_RELEASE"
] | [] | ["CUR_RELEASE"] | python | 1 | 0 | |
platform/util/src/com/intellij/util/EnvironmentUtil.java | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util;
import com.intellij.execution.CommandLineUtil;
import com.intellij.execution.process.UnixProcessManager;
import com.intellij.execution.process.WinProce... | [
"\"SHELL\""
] | [] | [
"SHELL"
] | [] | ["SHELL"] | java | 1 | 0 | |
analyzer/tests/functional/analyze_and_parse/test_analyze_and_parse.py | # -------------------------------------------------------------------------
#
# Part of the CodeChecker project, under the Apache License v2.0 with
# LLVM Exceptions. See LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# ---------------------------------------------------... | [] | [] | [
"TEST_WORKSPACE"
] | [] | ["TEST_WORKSPACE"] | python | 1 | 0 | |
examples/multi_app_transfer/main.go | package main
import (
"fmt"
"os"
"github.com/hashgraph/hedera-sdk-go/v2"
)
func main() {
// Our hypothetical primary service only knows the operator/sender's account ID and the recipient's accountID
operatorAccountID, err := hedera.AccountIDFromString(os.Getenv("OPERATOR_ID"))
if err != nil {
println(err.Err... | [
"\"OPERATOR_ID\"",
"\"OPERATOR_KEY\"",
"\"OPERATOR_KEY\""
] | [] | [
"OPERATOR_ID",
"OPERATOR_KEY"
] | [] | ["OPERATOR_ID", "OPERATOR_KEY"] | go | 2 | 0 | |
cmd/contour/serve.go | // Copyright Project Contour 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... | [
"\"CONTOUR_NAMESPACE\""
] | [] | [
"CONTOUR_NAMESPACE"
] | [] | ["CONTOUR_NAMESPACE"] | go | 1 | 0 | |
internal/buf/bufcheck/buflint/internal/util.go | package internal
import (
"strconv"
"strings"
"github.com/bufbuild/buf/internal/buf/bufcheck/internal"
"github.com/bufbuild/buf/internal/pkg/analysis"
"github.com/bufbuild/buf/internal/pkg/protodesc"
"github.com/bufbuild/buf/internal/pkg/stringutil"
)
// addFunc adds an annotation.
//
// Both the Descriptor an... | [] | [] | [] | [] | [] | go | null | null | null |
management-api-server/src/main/java/com/datastax/mgmtapi/Cli.java | /**
* Copyright DataStax, Inc.
*
* Please see the included license file for details.
*/
package com.datastax.mgmtapi;
import java.io.File;
import java.io.IOException;
import java.net.SocketAddress;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.InvalidPathException;
import java.nio.file.Path... | [
"\"CASSANDRA_HOME\"",
"\"CASSANDRA_HOME\""
] | [] | [
"CASSANDRA_HOME"
] | [] | ["CASSANDRA_HOME"] | java | 1 | 0 | |
main.go | package main
import (
"crypto/tls"
"fmt"
"log"
"net/http"
"os"
"github.com/certifi/gocertifi"
)
func main() {
addr := ":" + os.Getenv("PORT")
http.HandleFunc("/", handle)
log.Fatal(http.ListenAndServe(addr, nil))
}
func handle(w http.ResponseWriter, r *http.Request) {
if err := r.ParseForm(); err != nil {... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
iotservice/client_test.go | package iotservice
import (
"context"
"io"
"net/http"
"os"
"strconv"
"testing"
"time"
)
func TestSendWithNegativeFeedback(t *testing.T) {
client := newClient(t)
device := newDevice(t, client)
mid := genID()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
errc := make(chan error, ... | [
"\"TEST_IOTHUB_SERVICE_CONNECTION_STRING\""
] | [] | [
"TEST_IOTHUB_SERVICE_CONNECTION_STRING"
] | [] | ["TEST_IOTHUB_SERVICE_CONNECTION_STRING"] | go | 1 | 0 | |
hooks/charmhelpers/fetch/giturl.py | # Copyright 2014-2015 Canonical Limited.
#
# 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 ... | [] | [] | [
"CHARM_DIR"
] | [] | ["CHARM_DIR"] | python | 1 | 0 | |
qa/pull-tester/rpc-tests.py | #!/usr/bin/env python3
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Copyright (c) 2015-2017 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Run Regression Test Suite
This module cal... | [] | [] | [
"BITCOINCLI",
"TRAVIS",
"BITCOIND"
] | [] | ["BITCOINCLI", "TRAVIS", "BITCOIND"] | python | 3 | 0 | |
service/debug/collector/main.go | package main
import (
"os"
"path"
"github.com/micro/go-micro/v2"
log "github.com/micro/go-micro/v2/logger"
plugin "github.com/micro/micro/v2/service/debug/collector/micro"
"github.com/netdata/go-orchestrator"
"github.com/netdata/go-orchestrator/cli"
"github.com/netdata/go-orchestrator/pkg/multipath"
)
var (
... | [
"\"NETDATA_USER_CONFIG_DIR\"",
"\"NETDATA_STOCK_CONFIG_DIR\""
] | [] | [
"NETDATA_STOCK_CONFIG_DIR",
"NETDATA_USER_CONFIG_DIR"
] | [] | ["NETDATA_STOCK_CONFIG_DIR", "NETDATA_USER_CONFIG_DIR"] | go | 2 | 0 | |
TrainHumanGoalie1LastShooterSwitch.py | import sys
import csv
import numpy as np
import gpflow
import os
import pandas as pd
import h5py
from sklearn.model_selection import train_test_split
import tensorflow as tf
from scipy.cluster.vq import kmeans
tf.set_random_seed(1234)
import pickle
import argparse
import PKutils
def train_model(**kwargs):
npseed = kw... | [] | [] | [
"CUDA_DEVICE_ORDER",
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_DEVICE_ORDER", "CUDA_VISIBLE_DEVICES"] | python | 2 | 0 | |
selfdrive/controls/lib/long_mpc.py | import os
import math
import cereal.messaging as messaging
from common.numpy_fast import clip, interp
from selfdrive.swaglog import cloudlog
from common.realtime import sec_since_boot
from selfdrive.controls.lib.radar_helpers import _LEAD_ACCEL_TAU
from selfdrive.controls.lib.longitudinal_mpc import libmpc_py
from sel... | [] | [] | [
"LOG_MPC"
] | [] | ["LOG_MPC"] | python | 1 | 0 | |
reid/reid.py | # -*- coding:utf-8 -*-
import sys
import argparse
from data_loader import Market1501, RandomIdentitySampler, ImageDataset
import oneflow as flow
from bisect import bisect_right
import os
import os.path as osp
import numpy as np
from utils.loggers import Logger
from utils.distance import compute_distance_matrix
from lo... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
store/file/file_test.go | package file
import (
"fmt"
"os"
"path/filepath"
"strings"
"testing"
"time"
"github.com/davecgh/go-spew/spew"
"github.com/kr/pretty"
"github.com/panovateam/go-micro/store"
)
func cleanup(db string, s store.Store) {
s.Close()
dir := filepath.Join(DefaultDir, db+"/")
os.RemoveAll(dir)
}
func TestFileStore... | [
"\"IN_TRAVIS_CI\""
] | [] | [
"IN_TRAVIS_CI"
] | [] | ["IN_TRAVIS_CI"] | go | 1 | 0 | |
vendor/github.com/HewlettPackard/oneview-golang/examples/server_hardware.go | package main
import (
"fmt"
"github.com/HewlettPackard/oneview-golang/ov"
"os"
"strconv"
)
func main() {
var (
ClientOV *ov.OVClient
server_1 = "<server_hardware_name>"
server_2 = "<server_hardware_name>"
)
apiversion, _ := strconv.Atoi(os.Getenv("ONEVIEW_APIVERSION"))
ovc := ClientOV.NewOVClient(
os.... | [
"\"ONEVIEW_APIVERSION\"",
"\"ONEVIEW_OV_USER\"",
"\"ONEVIEW_OV_PASSWORD\"",
"\"ONEVIEW_OV_DOMAIN\"",
"\"ONEVIEW_OV_ENDPOINT\""
] | [] | [
"ONEVIEW_OV_ENDPOINT",
"ONEVIEW_OV_DOMAIN",
"ONEVIEW_APIVERSION",
"ONEVIEW_OV_PASSWORD",
"ONEVIEW_OV_USER"
] | [] | ["ONEVIEW_OV_ENDPOINT", "ONEVIEW_OV_DOMAIN", "ONEVIEW_APIVERSION", "ONEVIEW_OV_PASSWORD", "ONEVIEW_OV_USER"] | go | 5 | 0 | |
common/src/java/org/apache/hadoop/hive/conf/HiveConf.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 ... | [
"\"HIVE_CONF_DIR\"",
"\"HIVE_HOME\"",
"\"HADOOP_HOME\"",
"\"HADOOP_PREFIX\""
] | [] | [
"HADOOP_PREFIX",
"HADOOP_HOME",
"HIVE_CONF_DIR",
"HIVE_HOME"
] | [] | ["HADOOP_PREFIX", "HADOOP_HOME", "HIVE_CONF_DIR", "HIVE_HOME"] | java | 4 | 0 | |
internal/pipe/snapcraft/snapcraft_test.go | package snapcraft
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"testing"
"github.com/goreleaser/goreleaser/internal/artifact"
"github.com/goreleaser/goreleaser/internal/pipe"
"github.com/goreleaser/goreleaser/pkg/config"
"github.com/goreleaser/goreleaser/pkg/context"
"github.com/stretchr/testify/assert"
... | [
"\"PATH\""
] | [] | [
"PATH"
] | [] | ["PATH"] | go | 1 | 0 | |
wip/ray/archive/pytorch-huggingface.py | #########################
# Import required modules
#########################
import argparse
import pprint
import json
import logging
import os
import sys
import pandas as pd
import random
import time
import glob
import numpy as np
from collections import defaultdict
import torch
import torch.distributed as dist
imp... | [] | [] | [
"RANK",
"WORLD_SIZE"
] | [] | ["RANK", "WORLD_SIZE"] | python | 2 | 0 | |
src/cmd/linuxkit/vendor/github.com/docker/cli/cli/flags/common.go | package flags
import (
"fmt"
"os"
"path/filepath"
cliconfig "github.com/docker/cli/cli/config"
"github.com/docker/cli/opts"
"github.com/docker/go-connections/tlsconfig"
"github.com/sirupsen/logrus"
"github.com/spf13/pflag"
)
const (
// DefaultCaFile is the default filename for the CA pem file
DefaultCaFile... | [
"\"DOCKER_CERT_PATH\"",
"\"DOCKER_TLS_VERIFY\"",
"\"DOCKER_TLS\""
] | [] | [
"DOCKER_CERT_PATH",
"DOCKER_TLS_VERIFY",
"DOCKER_TLS"
] | [] | ["DOCKER_CERT_PATH", "DOCKER_TLS_VERIFY", "DOCKER_TLS"] | go | 3 | 0 | |
test/esme_op_test.go | // Copyright 2022 The sacloud/iaas-api-go 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... | [
"\"SAKURACLOUD_ESME_DESTINATION\""
] | [] | [
"SAKURACLOUD_ESME_DESTINATION"
] | [] | ["SAKURACLOUD_ESME_DESTINATION"] | go | 1 | 0 | |
hstore/hstore_test.go | package hstore
import (
"database/sql"
"os"
"testing"
_ "github.com/ownersroom/pq"
)
type Fatalistic interface {
Fatal(args ...interface{})
}
func openTestConn(t Fatalistic) *sql.DB {
datname := os.Getenv("PGDATABASE")
sslmode := os.Getenv("PGSSLMODE")
if datname == "" {
os.Setenv("PGDATABASE", "pqgotest... | [
"\"PGDATABASE\"",
"\"PGSSLMODE\""
] | [] | [
"PGSSLMODE",
"PGDATABASE"
] | [] | ["PGSSLMODE", "PGDATABASE"] | go | 2 | 0 | |
model_evaluation/score_test_data.py | # Copyright 2016 The TensorFlow 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 applica... | [] | [] | [
"GCS_READ_CACHE_MAX_SIZE_MB"
] | [] | ["GCS_READ_CACHE_MAX_SIZE_MB"] | python | 1 | 0 | |
secrets/hashivault/vault.go | // Copyright 2019 The Go Cloud Development Kit 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 appli... | [
"\"VAULT_SERVER_URL\"",
"\"VAULT_SERVER_TOKEN\""
] | [] | [
"VAULT_SERVER_URL",
"VAULT_SERVER_TOKEN"
] | [] | ["VAULT_SERVER_URL", "VAULT_SERVER_TOKEN"] | go | 2 | 0 | |
internal/controlplane/xdsmgr/xdsmgr.go | // Package xdsmgr implements a resource discovery manager for envoy.
package xdsmgr
import (
"context"
"encoding/json"
"errors"
"os"
"sync"
envoy_service_discovery_v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
"github.com/google/uuid"
lru "github.com/hashicorp/golang-lru"
"golang.org... | [
"\"HOSTNAME\""
] | [] | [
"HOSTNAME"
] | [] | ["HOSTNAME"] | go | 1 | 0 | |
config.py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
FLASK_ADMIN = os.environ.get('FLASK_ADMIN')
SQLALCHEMY_TRACK_MODIFICATIONS = False
FLASKY_POSTS_PER_PAGE = 5
FLASKY_COMMENTS_PER_PAGE = 5
FLASKY_FOLL... | [] | [] | [
"FLASK_ADMIN",
"DEV_DATABASE_URL",
"DATABASE_URL",
"SECRET_KEY",
"TEST_DATABASE_URL"
] | [] | ["FLASK_ADMIN", "DEV_DATABASE_URL", "DATABASE_URL", "SECRET_KEY", "TEST_DATABASE_URL"] | python | 5 | 0 | |
python/build.py | # coding=utf-8
"""
Build tasks
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import glob
import json
import os
import subprocess
import sys
from pynt import task
from pyntcontrib import execute, safe_cd
from semantic_version import Version
PROJECT_N... | [] | [] | [] | [] | [] | python | 0 | 0 | |
mSite/views.py | from django.shortcuts import render
# Create your views here.
from mSite.models import FirstPage
def web(request):
context = {
'data': FirstPage.objects.first(),
}
return render(request, 'index.html', context=context)
| [] | [] | [] | [] | [] | python | null | null | null |
ros2_batch_job/osx_batch/__init__.py | # Copyright 2015 Open Source Robotics Foundation, 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 ... | [] | [] | [
"OPENSSL_ROOT_DIR",
"CMAKE_PREFIX_PATH",
"OSPL_HOME",
"HOME",
"LANG",
"PATH"
] | [] | ["OPENSSL_ROOT_DIR", "CMAKE_PREFIX_PATH", "OSPL_HOME", "HOME", "LANG", "PATH"] | python | 6 | 0 | |
app/app/settings.py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bui... | [] | [] | [
"DB_HOST",
"DB_NAME",
"WEBSITE_DJANGO_SECRET",
"DB_PASS",
"DB_USER"
] | [] | ["DB_HOST", "DB_NAME", "WEBSITE_DJANGO_SECRET", "DB_PASS", "DB_USER"] | python | 5 | 0 | |
pkg/common/config/config.go | package config
import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"gopkg.in/yaml.v3"
)
var (
_, b, _, _ = runtime.Caller(0)
// Root folder of this project
Root = filepath.Join(filepath.Dir(b), "../../..")
)
var Config config
type callBackConfig struct {
Enable bool `yaml:"enable"`
Callba... | [
"\"CONFIG_NAME\""
] | [] | [
"CONFIG_NAME"
] | [] | ["CONFIG_NAME"] | go | 1 | 0 | |
django_reddit/settings/production.py | # -*- coding: utf-8 -*-
'''
Production Configurations
- Use djangosecure
- Use mailgun to send emails
'''
from django.utils import six
from .common import * # noqa
# SECRET CONFIGURATION
# ------------------------------------------------------------------------------
# See: https://docs.djangoproject.com/en/dev/ref... | [] | [] | [] | [] | [] | python | 0 | 0 | |
src/syscall/syscall_unix_test.go | // Copyright 2013-2016 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.
// +build darwin dragonfly freebsd linux netbsd openbsd solaris zos
package syscall_test
import (
"flag"
"fmt"
"internal/testenv"
"io/ioutil"
"net"
... | [
"\"GO_WANT_HELPER_PROCESS\"",
"\"GO_WANT_HELPER_PROCESS\""
] | [] | [
"GO_WANT_HELPER_PROCESS"
] | [] | ["GO_WANT_HELPER_PROCESS"] | go | 1 | 0 | |
sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | [] | [] | [
"TABLES_STORAGE_ACCOUNT_NAME",
"TABLES_STORAGE_ENDPOINT_SUFFIX",
"TABLES_PRIMARY_STORAGE_ACCOUNT_KEY"
] | [] | ["TABLES_STORAGE_ACCOUNT_NAME", "TABLES_STORAGE_ENDPOINT_SUFFIX", "TABLES_PRIMARY_STORAGE_ACCOUNT_KEY"] | python | 3 | 0 | |
pkg/cli/rsh/rsh.go | package rsh
import (
"fmt"
"os"
"time"
"github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/kubectl/pkg/cmd/exec"
kcmdutil "k8s.io/kubectl/pkg/cmd/util"
"k8s.io/kubectl/pkg/util/templates"
"k8s.io/kubectl/pkg/util/term"
)
const (
RshRecommendedName = "rsh"
DefaultShell = ... | [
"\"TERM\""
] | [] | [
"TERM"
] | [] | ["TERM"] | go | 1 | 0 | |
testutils/clustermanager/e2e-tests/setup_test.go | /*
Copyright 2020 The Knative 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, soft... | [
"\"GOOGLE_APPLICATION_CREDENTIALS\""
] | [] | [
"GOOGLE_APPLICATION_CREDENTIALS"
] | [] | ["GOOGLE_APPLICATION_CREDENTIALS"] | go | 1 | 0 | |
torch/distributed/elastic/agent/server/local_elastic_agent.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
import shutil
import signal
import tempfile
from typing import Any, Dict, Opti... | [] | [] | [
"OMP_NUM_THREADS"
] | [] | ["OMP_NUM_THREADS"] | python | 1 | 0 | |
zap/config/config.py | #!/usr/bin/env python3
"""
MIT License
Copyright (c) 2020 Srevin Saju
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, mo... | [] | [] | [
"SHELL",
"ZAP_PATH"
] | [] | ["SHELL", "ZAP_PATH"] | python | 2 | 0 | |
trafficlightsfsm.py | import RPi.GPIO as GPIO
import time
import os
import signal
import sys
class TrafficLightLEDs:
RED = 9
AMBER = 10
GREEN = 11
class TrafficLightStates:
INITIALIZING = 1
RED = 2
REDAMBER = 3
GREEN = 4
AMBER = 5
# Turn off all lights when user ends demo
def allLightsOff(signal, frame):
GPIO.output(TrafficLight... | [] | [] | [
"TRAFFIC_LIGHT_COUNTRY"
] | [] | ["TRAFFIC_LIGHT_COUNTRY"] | python | 1 | 0 | |
tools/notifications.py | #!/usr/bin/env python3
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [] | [] | [
"WEBHOOK",
"GITHUB_REPOSITORY",
"GITHUB_TOKEN"
] | [] | ["WEBHOOK", "GITHUB_REPOSITORY", "GITHUB_TOKEN"] | python | 3 | 0 | |
config/config.go | package config
import (
"os"
)
// Server configeration structure
type Config struct {
ServerAddress string
DBUser string
DBPassword string
DBName string
DBURI string // mongodb connection URI
}
// initialize will read the environment variables and store them in the config struct
func (config *Config) in... | [
"\"PORT\"",
"\"MONGODB_USER\"",
"\"MONGODB_PASSWORD\"",
"\"MONGODB_NAME\"",
"\"MONGODB_URI\""
] | [] | [
"PORT",
"MONGODB_PASSWORD",
"MONGODB_USER",
"MONGODB_NAME",
"MONGODB_URI"
] | [] | ["PORT", "MONGODB_PASSWORD", "MONGODB_USER", "MONGODB_NAME", "MONGODB_URI"] | go | 5 | 0 | |
integrations/integration_test.go | // 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 integrations
import (
"bytes"
"database/sql"
"fmt"
"io"
"log"
"net/http"
"net/http/cookiejar"
"net/url"
"os"
"strings"
"testing"
"code.... | [
"\"GITEA_CONF\"",
"\"GITEA_ROOT\""
] | [] | [
"GITEA_ROOT",
"GITEA_CONF"
] | [] | ["GITEA_ROOT", "GITEA_CONF"] | go | 2 | 0 | |
main.go | package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
)
func main() {
if len(os.Args) != 2 {
fmt.Printf("Error: You must provide the word whose definition you wish to retrieve.\n")
os.Exit(1)
}
word := os.Args[1]
url := fmt.Sprintf("https://od-api.oxforddictionaries.com/api/v2/entries... | [
"\"ODICTAPIID\"",
"\"ODICTAPIKEY\""
] | [] | [
"ODICTAPIID",
"ODICTAPIKEY"
] | [] | ["ODICTAPIID", "ODICTAPIKEY"] | go | 2 | 0 | |
api4/system_test.go | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package api4
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"strconv"
"strings"
"testing"
"time"
"github.com/adacta-ru/mattermost-server/v6/mlog"
"github.com/adacta-ru/mattermost... | [
"\"CI_INBUCKET_HOST\"",
"\"CI_INBUCKET_SMTP_PORT\"",
"\"CI_MINIO_HOST\"",
"\"CI_MINIO_PORT\""
] | [] | [
"CI_MINIO_PORT",
"CI_INBUCKET_SMTP_PORT",
"CI_MINIO_HOST",
"CI_INBUCKET_HOST"
] | [] | ["CI_MINIO_PORT", "CI_INBUCKET_SMTP_PORT", "CI_MINIO_HOST", "CI_INBUCKET_HOST"] | go | 4 | 0 | |
master/test/testutils/fixtures.go | //go:build integration
// +build integration
package testutils
import (
"context"
"fmt"
"os"
"strconv"
"time"
"github.com/jackc/pgconn"
"github.com/pkg/errors"
"github.com/determined-ai/determined/master/internal/config"
"github.com/determined-ai/determined/master/internal/elastic"
"github.com/determined-... | [
"\"DET_INTEGRATION_POSTGRES_URL\"",
"\"DET_INTEGRATION_ES_PORT\"",
"\"DET_INTEGRATION_ES_HOST\""
] | [] | [
"DET_INTEGRATION_POSTGRES_URL",
"DET_INTEGRATION_ES_HOST",
"DET_INTEGRATION_ES_PORT"
] | [] | ["DET_INTEGRATION_POSTGRES_URL", "DET_INTEGRATION_ES_HOST", "DET_INTEGRATION_ES_PORT"] | go | 3 | 0 | |
main.py | from model import *
from data import *
from keras.preprocessing.image import ImageDataGenerator
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
data_gen_args = dict(rotation_range=0.2,
width_shift_range=0.05,
height_shift_range=0.05,
shear_range=0.05,
... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
config/bosh_path_test.go | package config_test
import (
"io/ioutil"
"os"
"path/filepath"
"github.com/cloudfoundry/bosh-bootloader/config"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
)
var _ = Describe("GetBOSHPath", func() {
var (
originalPath string
pathToBOSH string
)
BeforeEach(func... | [
"\"PATH\""
] | [] | [
"PATH"
] | [] | ["PATH"] | go | 1 | 0 | |
utils/SwiftBuildSupport.py | # utils/SwiftBuildSupport.py - Utilities for Swift build scripts -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.t... | [] | [] | [
"SWIFT_BUILD_ROOT",
"HOME",
"SWIFT_SOURCE_ROOT"
] | [] | ["SWIFT_BUILD_ROOT", "HOME", "SWIFT_SOURCE_ROOT"] | python | 3 | 0 | |
tests/loggers/test_wandb.py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [] | [] | [
"WANDB_MODE"
] | [] | ["WANDB_MODE"] | python | 1 | 0 | |
docs/conf.py | # This file is execfile()d with the current directory set to its containing dir.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
#
# All configuration values have a default; values that are comme... | [] | [] | [
"READTHEDOCS_VERSION"
] | [] | ["READTHEDOCS_VERSION"] | python | 1 | 0 | |
mustache/mustache.go | package mustache
import (
"bytes"
"errors"
"fmt"
"html/template"
"io"
"io/ioutil"
"os"
"path"
"reflect"
"strings"
)
type textElement struct {
text []byte
}
type varElement struct {
name string
raw bool
}
type sectionElement struct {
name string
inverted bool
startline int
elems []interfa... | [
"\"CWD\""
] | [] | [
"CWD"
] | [] | ["CWD"] | go | 1 | 0 | |
system_tests/lifecycle/all_lifecycle_tests/feature_toggled_tests.go | package all_lifecycle_tests
import (
"crypto/tls"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"strings"
"time"
"github.com/cloudfoundry/noaa/consumer"
"github.com/cloudfoundry/sonde-go/events"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
"github.com/pborman/u... | [
"\"CF_CLIENT_ID\"",
"\"CF_CLIENT_SECRET\"",
"\"CF_UAA_URL\""
] | [] | [
"CF_CLIENT_ID",
"CF_CLIENT_SECRET",
"CF_UAA_URL"
] | [] | ["CF_CLIENT_ID", "CF_CLIENT_SECRET", "CF_UAA_URL"] | go | 3 | 0 | |
src/pkg/golang/build.go | // Copyright 2015-2018 the u-root 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 golang is an API to the Go compiler.
package golang
import (
"fmt"
"go/build"
"os"
"os/exec"
"path/filepath"
"strings"
)
type Environ... | [
"\"GO111MODULE\"",
"\"PATH\""
] | [] | [
"GO111MODULE",
"PATH"
] | [] | ["GO111MODULE", "PATH"] | go | 2 | 0 | |
assets/functions/ml_pipeline/upload_result/app.py | '''
Input event payload expected to be in the following format:
{
"Batch_start": "MAC000001",
"Batch_end": "MAC000010",
"Data_start": "2013-06-01",
"Data_end": "2014-01-01",
"Forecast_period": 7
}
'''
import boto3, os
import json
import pandas as pd
import numpy as np
from pyathena import connect
REGION = os.envir... | [] | [] | [
"Athena_bucket",
"Db_schema",
"Working_bucket",
"AWS_REGION"
] | [] | ["Athena_bucket", "Db_schema", "Working_bucket", "AWS_REGION"] | python | 4 | 0 | |
firestore/firestore_snippets/main.go | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | [
"\"GCLOUD_PROJECT\""
] | [] | [
"GCLOUD_PROJECT"
] | [] | ["GCLOUD_PROJECT"] | go | 1 | 0 | |
integration/test/test_geopmio.py | #!/usr/bin/env python3
#
# Copyright (c) 2015 - 2022, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
import sys
import unittest
import os
import subprocess
import io
import time
import signal
from contextlib import contextmanager
from integration.test import geopm_test_launcher
from integration.test im... | [] | [] | [] | [] | [] | python | 0 | 0 | |
models/redis.go | package models
import (
"context"
"fmt"
"os"
"github.com/go-redis/redis/v8"
)
var Rdb *redis.Client
// open redis connection
func RedisInit() {
Rdb = redis.NewClient(&redis.Options{
Addr: fmt.Sprintf("%s:%s", os.Getenv("redis_host"), os.Getenv("redis_port")),
})
pong, err := Rdb.Ping(context.TODO()).Result... | [
"\"redis_host\"",
"\"redis_port\""
] | [] | [
"redis_host",
"redis_port"
] | [] | ["redis_host", "redis_port"] | go | 2 | 0 | |
doc/source/conf.py | # -*- coding: utf-8 -*-
#
# Zaqar documentation build configuration file, created by
# sphinx-quickstart on Sat May 1 15:17:47 2010.
#
# This file is execfile()d with the current directory set
# to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | [] | [] | [
"HUDSON_PUBLISH_DOCS"
] | [] | ["HUDSON_PUBLISH_DOCS"] | python | 1 | 0 | |
entity_extractor/app.py | import json
import hashlib
import os
import boto3
import logging
import spacy
import redis
# Set up logger
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def get_redis():
redis_config = {
"host": os.environ['REDIS_ENDPOINT'],
"port": 6379,
"db": 0,
"ssl": True,
"ssl_cert_reqs": None
... | [] | [] | [
"ACCOUNT_ID",
"REDIS_ENDPOINT",
"REGION",
"QUEUE_NAME"
] | [] | ["ACCOUNT_ID", "REDIS_ENDPOINT", "REGION", "QUEUE_NAME"] | python | 4 | 0 | |
test/test_helpers.py | # Copyright 2019-2020 Canonical 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 in writi... | [] | [] | [
"PATH"
] | [] | ["PATH"] | python | 1 | 0 | |
ipfs-gateway/src/io_gateway/robonomics.py | import os
import typing as tp
from loguru import logger
from robonomicsinterface import RobonomicsInterface
DATALOG_ENABLED: bool = bool(os.getenv("ROBONOMICS_ENABLE_DATALOG", False))
ROBONOMICS_ACCOUNT_SEED: str = os.getenv("ROBONOMICS_ACCOUNT_SEED", "")
ROBONOMICS_CLIENT: tp.Optional[RobonomicsInterface] = None
if... | [] | [] | [
"ROBONOMICS_ACCOUNT_SEED",
"ROBONOMICS_ENABLE_DATALOG",
"ROBONOMICS_SUBSTRATE_NODE_URL"
] | [] | ["ROBONOMICS_ACCOUNT_SEED", "ROBONOMICS_ENABLE_DATALOG", "ROBONOMICS_SUBSTRATE_NODE_URL"] | python | 3 | 0 | |
integration-cli/docker_cli_daemon_test.go | // +build linux
package main
import (
"bufio"
"bytes"
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
"testing"
"time"
"github.com/cloudflare/cfssl/helpers"
"github.com/creack/pty"
"gith... | [
"\"DOCKER_HOST\""
] | [] | [
"DOCKER_HOST"
] | [] | ["DOCKER_HOST"] | go | 1 | 0 | |
config.py | # coding: utf-8
# project base path
import os
basedir = os.path.abspath(os.path.dirname(__file__))
"""
common configuration
-- SECRET_KEY: secret key
-- SQLALCHEMY_COMMIT_ON_TEARDOWN: True
-- SQLALCHEMY_RECORD_QUERIES:
-- Can be used to explicitly disable or enable query recording.
Query recording automa... | [] | [] | [
"CELERY_BACKEND_URI",
"DATABASE_ORM_URI",
"MAIL_PASSWORD",
"MAIL_DEFAULT_SENDER",
"SECRET_KEY",
"MAIL_USERNAME",
"CELERY_BROKER_URI"
] | [] | ["CELERY_BACKEND_URI", "DATABASE_ORM_URI", "MAIL_PASSWORD", "MAIL_DEFAULT_SENDER", "SECRET_KEY", "MAIL_USERNAME", "CELERY_BROKER_URI"] | python | 7 | 0 | |
baas-core/core/tools/fabric/core/config/config.go | /*
Copyright Greg Haskins <gregory.haskins@gmail.com> 2017, All Rights Reserved.
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package config
import (
"fmt"
"os"
"path/filepath"
"github.com/jonluo94/baasmanager/baas-core/core/tools/viper"
)
func dirExists(path string) bool {
... | [
"\"FABRIC_CFG_PATH\""
] | [] | [
"FABRIC_CFG_PATH"
] | [] | ["FABRIC_CFG_PATH"] | go | 1 | 0 | |
spreadsheets/spreadsheet.go | package spreadsheets
import (
"context"
"encoding/base64"
"encoding/json"
"fmt"
"github.com/cloudevents/sdk-go"
"github.com/heaptracetechnology/google-sheets/result"
"golang.org/x/oauth2/google"
driveV3 "google.golang.org/api/drive/v3"
sheetsV4 "google.golang.org/api/sheets/v4"
"log"
"net/http"
"net/url"
... | [
"\"CREDENTIAL_JSON\"",
"\"CREDENTIAL_JSON\"",
"\"CREDENTIAL_JSON\"",
"\"CREDENTIAL_JSON\"",
"\"CREDENTIAL_JSON\"",
"\"CREDENTIAL_JSON\"",
"\"CREDENTIAL_JSON\"",
"\"CREDENTIAL_JSON\""
] | [] | [
"CREDENTIAL_JSON"
] | [] | ["CREDENTIAL_JSON"] | go | 1 | 0 | |
src/manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
# CHANGED manage.py will use development settings by
# default. Change the DJANGO_SETTINGS_MODULE environment variable
# for using the environment specific settings file.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dnd_spellbook... | [] | [] | [] | [] | [] | python | 0 | 0 | |
bsm/cmd/pkg_edit.py | import os
import subprocess
from bsm.util import which
from bsm.cmd import CmdResult
from bsm.cmd import CmdError
from bsm.cmd.pkg_base import PkgBase
from bsm.logger import get_logger
_logger = get_logger()
DEFAULT_EDITOR = ['vim', 'vi']
def _detect_editor(editors):
for editor in editors:
if which(edi... | [] | [] | [
"VISUAL",
"EDITOR"
] | [] | ["VISUAL", "EDITOR"] | python | 2 | 0 | |
examples/pwr_run/checkpointing/short/max_par/job27.py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [] | [] | [
"CUDA_DEVICE_ORDER",
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_DEVICE_ORDER", "CUDA_VISIBLE_DEVICES"] | python | 2 | 0 | |
functional_tests/tests.py | import os
from django.test import LiveServerTestCase
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import WebDriverException
import time
MAX_WAIT = 10
class NewVisitorTest(StaticLi... | [] | [] | [
"STAGING_SERVER"
] | [] | ["STAGING_SERVER"] | python | 1 | 0 | |
go/internal/initutil/node.go | package initutil
import (
"context"
"crypto/ed25519"
"encoding/base64"
"flag"
"fmt"
"os"
"os/user"
"strings"
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
grpc_auth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
grpc_zap "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap"
grpc... | [
"\"USER\""
] | [] | [
"USER"
] | [] | ["USER"] | go | 1 | 0 | |
cli/export.py | import argparse
import os
from typing import List
def api_to_dict():
"""Convert Jina API to a dict
:return: dict
"""
from jina import __version__
from jina.parsers import get_main_parser
parsers = get_main_parser()._actions[-1].choices
all_d = {
'name': 'Jina',
'descripti... | [] | [] | [
"JINA_VCS_VERSION"
] | [] | ["JINA_VCS_VERSION"] | python | 1 | 0 | |
examples/bipedal_walk.py | import os
import sys
import numpy as np
import crocoddyl
import example_robot_data
import pinocchio
from crocoddyl.utils.biped import SimpleBipedGaitProblem, plotSolution
WITHDISPLAY = 'display' in sys.argv or 'CROCODDYL_DISPLAY' in os.environ
WITHPLOT = 'plot' in sys.argv or 'CROCODDYL_PLOT' in os.environ
# Creati... | [] | [] | [] | [] | [] | python | 0 | 0 | |
.github/automation/main.py | import os
import json
import requests
import sys
import semver
import github3
from jinja2 import Environment, FileSystemLoader
LATEST_RELEASES_PATH_TF = 'https://api.github.com/repos/hashicorp/terraform/releases/latest'
LATEST_RELEASES_PATH_DNX_TF = 'https://api.github.com/repos/DNXLabs/docker-terraform/releases/lates... | [] | [] | [
"GITHUB_TOKEN",
"DEFAULT_BRANCH"
] | [] | ["GITHUB_TOKEN", "DEFAULT_BRANCH"] | python | 2 | 0 | |
controllers/main.go | package controllers
import (
"context"
"crypto/tls"
"fmt"
"net/http"
"os"
"time"
as "github.com/aerospike/aerospike-client-go/v5"
log "github.com/sirupsen/logrus"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/aerospike-community/amc/common"
"github.com/aerospike-comm... | [
"\"AMC_AUTH_USER\"",
"\"AMC_AUTH_PASSWORD\""
] | [] | [
"AMC_AUTH_PASSWORD",
"AMC_AUTH_USER"
] | [] | ["AMC_AUTH_PASSWORD", "AMC_AUTH_USER"] | go | 2 | 0 | |
plugin/converter/jsonnet/jsonnet.go | package jsonnet
import (
"bytes"
"fmt"
"strconv"
"github.com/drone/drone/core"
"github.com/google/go-jsonnet"
)
const repo = "repo."
const build = "build."
const param = "param."
func Parse(req *core.ConvertArgs, template *core.Template, templateData map[string]interface{}) (string, error) {
vm := jsonnet.Ma... | [] | [] | [] | [] | [] | go | null | null | null |
dep/dep.go | // Package dep provides a Dependency struct, a DependencyMap from nicknames (strings) to Dependencies,
// and functions to read and write a DependencyMap to a deps.json file
package dep
// Copyright 2013-2014 Vubeology, Inc.
import (
"bytes"
"encoding/json"
"errors"
"io/ioutil"
"os"
"path/filepath"
"strings"
... | [
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
winners/nontargeted-attack/teaflow/attack_iter.py | """Implementation of sample attack."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import time
from cleverhans.attacks import MultiModelIterativeMethod
import numpy as np
from PIL import Image
import tensorflow as tf
from tensorflow.contrib.... | [] | [] | [] | [] | [] | python | null | null | null |
pkg/util/utils.go | package util
import (
"encoding/json"
"fmt"
"os"
"os/user"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
"syscall"
"time"
"github.com/BurntSushi/toml"
"github.com/containers/common/pkg/config"
"github.com/containers/image/v5/types"
"github.com/containers/podman/v3/pkg/errorhandling"
"github.com/... | [
"\"HOME\"",
"\"TMPDIR\""
] | [] | [
"HOME",
"TMPDIR"
] | [] | ["HOME", "TMPDIR"] | go | 2 | 0 | |
manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "palautebot.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [] | [] | [] | [] | [] | python | 0 | 0 | |
pkg/controller/operands/vmImport.go | package operands
import (
"errors"
"os"
"reflect"
vmimportv1beta1 "github.com/kubevirt/vm-import-operator/pkg/apis/v2v/v1beta1"
conditionsv1 "github.com/openshift/custom-resource-status/conditions/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
... | [
"\"CONVERSION_CONTAINER\"",
"\"VMWARE_CONTAINER\"",
"\"VIRTIOWIN_CONTAINER\""
] | [] | [
"CONVERSION_CONTAINER",
"VMWARE_CONTAINER",
"VIRTIOWIN_CONTAINER"
] | [] | ["CONVERSION_CONTAINER", "VMWARE_CONTAINER", "VIRTIOWIN_CONTAINER"] | go | 3 | 0 | |
examples/ilr/toy/evaluate_ard.py | import os
import argparse
os.environ["OMP_NUM_THREADS"] = "1"
import numpy as np
import numpy.random as npr
import mimo
from mimo.distributions import NormalGamma
from mimo.distributions import MatrixNormalWishart
from mimo.distributions import GaussianWithNormalGamma
from mimo.distributions import LinearGaussianWit... | [] | [] | [
"OMP_NUM_THREADS"
] | [] | ["OMP_NUM_THREADS"] | python | 1 | 0 | |
mne/viz/backends/_pyvista.py | """
Core visualization operations based on PyVista.
Actual implementation of _Renderer and _Projection classes.
"""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Eric Larson <larson.eric.d@gmail.com>
# Guillaume Favelier <guillaume.favelier@gmail.com>
# Joan Massich <mailsik... | [] | [] | [
"AZURE_CI_WINDOWS"
] | [] | ["AZURE_CI_WINDOWS"] | python | 1 | 0 | |
pkg/helm/render_test.go | package helm
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"sort"
"testing"
"time"
helmyaml "github.com/ghodss/yaml"
"github.com/mgoltzsche/khelm/pkg/config"
"github.com/stretchr/testify/require"
"k8s.io/helm/pkg/getter"
cli "k8s.io/helm/... | [
"\"HELM_HOME\""
] | [] | [
"HELM_HOME"
] | [] | ["HELM_HOME"] | go | 1 | 0 | |
bootloader/waflib/Configure.py | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
import os, re, shlex, shutil, sys, time, traceback
from waflib import ConfigSet, Utils, Options, Logs, Context, Build, Errors
WAF_CONFIG_LOG = 'config.log'
autoconfig = False
conf_template = '''# pr... | [] | [] | [] | [] | [] | python | 0 | 0 | |
spinup/run.py | import spinup
from spinup.user_config import DEFAULT_BACKEND
from spinup.utils.run_utils import ExperimentGrid
from spinup.utils.serialization_utils import convert_json
import argparse
import gym
import roboschool
import json
import os, subprocess, sys
import os.path as osp
import string
import tensorflow as tf
import ... | [] | [] | [] | [] | [] | python | 0 | 0 | |
dynaconf/vendor/click/_unicodefun.py | import codecs,os
def _verify_python_env():
M='.utf8';L='.utf-8';J=None;I='ascii'
try:import locale as A;G=codecs.lookup(A.getpreferredencoding()).name
except Exception:G=I
if G!=I:return
B=''
if os.name=='posix':
import subprocess as D
try:C=D.Popen(['locale','-a'],stdout=D.PIPE,stderr=D.PIPE).communicate()[0... | [] | [] | [
"LC_ALL",
"LANG"
] | [] | ["LC_ALL", "LANG"] | python | 2 | 0 | |
beekeeper/settings.py | """
Django settings for beekeeper project on Heroku. For more info, see:
https://github.com/heroku/heroku-django-template
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settin... | [] | [] | [
"DJ_SECRET_KEY",
"DJ_DEBUG"
] | [] | ["DJ_SECRET_KEY", "DJ_DEBUG"] | python | 2 | 0 | |
airflow/providers/amazon/aws/example_dags/example_s3_bucket.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [] | [] | [
"BUCKET_NAME"
] | [] | ["BUCKET_NAME"] | python | 1 | 0 | |
autoninja.py | #!/usr/bin/env vpython
# Copyright (c) 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script (intended to be invoked by autoninja or autoninja.bat) detects
whether a build is accelerated using a service like... | [] | [] | [
"NINJA_CORE_MULTIPLIER",
"NINJA_SUMMARIZE_BUILD",
"NINJA_CORE_ADDITION",
"NINJA_BUILD_IN_BACKGROUND",
"GOMA_DISABLED"
] | [] | ["NINJA_CORE_MULTIPLIER", "NINJA_SUMMARIZE_BUILD", "NINJA_CORE_ADDITION", "NINJA_BUILD_IN_BACKGROUND", "GOMA_DISABLED"] | python | 5 | 0 | |
config/config.go | package config
import (
"os"
"strconv"
)
type Config struct {
DataPath string
HttpPort int
}
var _singleConfig Config
func Get() Config {
return _singleConfig
}
func InitConfig() {
_singleConfig = Config{DataPath: "/tmp", HttpPort: 8087}
tmp := os.Getenv("TOTPD_DATA_PATH")
if len(tmp) > 0 {
_singleConf... | [
"\"TOTPD_DATA_PATH\"",
"\"TOTPD_HTTP_PORT\""
] | [] | [
"TOTPD_HTTP_PORT",
"TOTPD_DATA_PATH"
] | [] | ["TOTPD_HTTP_PORT", "TOTPD_DATA_PATH"] | go | 2 | 0 | |
python/inserting_into_sorted_dll.py | #!/bin/python3
# https://www.hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/ #
import os
class DoublyLinkedListNode:
def __init__(self, node_data):
self.data = node_data
self.next = None
self.prev = None
class DoublyLinkedList:
def __init__(self):
s... | [] | [] | [
"OUTPUT_PATH"
] | [] | ["OUTPUT_PATH"] | python | 1 | 0 | |
pytest_django/fixtures.py | """All pytest-django fixtures"""
from __future__ import with_statement
import copy
import os
import pytest
from . import live_server_helper
from .db_reuse import monkey_patch_creation_for_db_reuse
from .django_compat import is_django_unittest
from .lazy_django import skip_if_no_django
__all__ = ['_django_db_setup'... | [] | [] | [
"DJANGO_TEST_LIVE_SERVER_ADDRESS"
] | [] | ["DJANGO_TEST_LIVE_SERVER_ADDRESS"] | python | 1 | 0 | |
students/K33401/Goncharov_Vladimir/Lr3/hotel/hotel/asgi.py | """
ASGI config for hotel project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [] | [] | [] | [] | [] | python | 0 | 0 | |
manimlib/constants.py | import numpy as np
import os
# Initialize directories
env_MEDIA_DIR = os.getenv("MEDIA_DIR")
if env_MEDIA_DIR:
MEDIA_DIR = env_MEDIA_DIR
elif os.path.isfile("media_dir.txt"):
with open("media_dir.txt", 'rU') as media_file:
MEDIA_DIR = media_file.readline().strip()
else:
MEDIA_DIR = os.path.join(
... | [] | [] | [
"FILE_DIR",
"MEDIA_DIR"
] | [] | ["FILE_DIR", "MEDIA_DIR"] | python | 2 | 0 | |
cmd/peer-list/main.go | /*
Copyright 2014 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, ... | [
"\"POD_NAMESPACE\""
] | [] | [
"POD_NAMESPACE"
] | [] | ["POD_NAMESPACE"] | go | 1 | 0 | |
app/job/main/videoup-report/dao/email/dao_test.go | package email
import (
"flag"
"go-common/app/job/main/videoup-report/conf"
"os"
"testing"
)
var (
d *Dao
)
func TestMain(m *testing.M) {
if os.Getenv("DEPLOY_ENV") != "" {
flag.Set("app_id", "videoup-report")
flag.Set("conf_token", "")
flag.Set("tree_id", "")
flag.Set("conf_version", "server-1")
flag... | [
"\"DEPLOY_ENV\""
] | [] | [
"DEPLOY_ENV"
] | [] | ["DEPLOY_ENV"] | go | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.