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 |
|---|---|---|---|---|---|---|---|---|---|---|
manage.py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'open_library.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [] | [] | [] | [] | [] | python | 0 | 0 | |
parser_test.go | package gitprompt
import (
"bufio"
"bytes"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
"testing"
)
func TestParseValues(t *testing.T) {
tests := []struct {
name string
setup string
expected *GitStatus
}{
{
name: "not git repo",
expected: nil,
},
{
name: "dirty",
setup: `
g... | [
"\"PATH\""
] | [] | [
"PATH"
] | [] | ["PATH"] | go | 1 | 0 | |
tests/e2e/volume_health_test.go | /*
Copyright 2020 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, ... | [
"\"RAID_0_STORAGE_POLICY\"",
"\"RAID_0_STORAGE_POLICY\"",
"\"RAID_0_STORAGE_POLICY\"",
"\"RAID_0_STORAGE_POLICY\"",
"\"RAID_0_STORAGE_POLICY\"",
"\"RAID_0_STORAGE_POLICY\"",
"\"RAID_0_STORAGE_POLICY\""
] | [] | [
"RAID_0_STORAGE_POLICY"
] | [] | ["RAID_0_STORAGE_POLICY"] | go | 1 | 0 | |
go/src/github.com/hashicorp/terraform/builtin/providers/heroku/resource_heroku_app_test.go | package heroku
import (
"fmt"
"os"
"testing"
"github.com/cyberdelia/heroku-go/v3"
"github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
func TestAccHerokuApp_Basic(t *testing.T) {
var app heroku.App
appName := fmt.Sprint... | [
"\"HEROKU_ORGANIZATION\""
] | [] | [
"HEROKU_ORGANIZATION"
] | [] | ["HEROKU_ORGANIZATION"] | go | 1 | 0 | |
account-service/internal/connections.go | package internal
import (
"github.com/ProjectReferral/Get-me-in/account-service/configs"
"github.com/ProjectReferral/Get-me-in/pkg/dynamodb"
"github.com/aws/aws-sdk-go/aws/credentials"
)
func ConnectToDynamoDB(){
c := credentials.NewSharedCredentials("", "default")
err := dynamodb.Connect(c, configs.EU_WEST_2)... | [] | [] | [] | [] | [] | go | null | null | null |
cmd/apiserver/main.go | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | [
"\"LOG_DEBUG\""
] | [] | [
"LOG_DEBUG"
] | [] | ["LOG_DEBUG"] | go | 1 | 0 | |
sock-merchant/main.go | package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)
// Complete the sockMerchant function below.
func sockMerchant(n int, ar []int) int {
counter := make(map[int]int)
for i := int(0); i < n; i++ {
counter[ar[i]] += 1
}
numPairs := 0
for _, v := range counter {
numPairs += v / 2
}
retu... | [
"\"OUTPUT_PATH\""
] | [] | [
"OUTPUT_PATH"
] | [] | ["OUTPUT_PATH"] | go | 1 | 0 | |
goal-notifier/main.go | // Program goal-notifier is a AWS Lambda function that's invoked via DynamoDB stream events,
// processes the added goal and sends Slack notifications to configred Slack webhook URLs.
package main
import (
"context"
"encoding/json"
"log"
"os"
"strings"
"time"
"github.com/aws/aws-lambda-go/events"
"github.com/... | [
"\"SLACK_WEBHOOK_URLS\""
] | [] | [
"SLACK_WEBHOOK_URLS"
] | [] | ["SLACK_WEBHOOK_URLS"] | go | 1 | 0 | |
main.go | package main
import (
"flag"
"log"
"os"
"regexp"
dingtalk "github.com/hugozhu/godingtalk"
)
var img *bool
var f *string
func init() {
img = flag.Bool("img", false, "Sending Image")
f = flag.String("f", "", "File Path")
flag.Parse()
}
func stripeMarkdown(str string) string {
str = regexp.MustCompile("[*|#]... | [
"\"corpid\"",
"\"corpsecret\"",
"\"token\""
] | [] | [
"token",
"corpid",
"corpsecret"
] | [] | ["token", "corpid", "corpsecret"] | go | 3 | 0 | |
pkg/jx/cmd/step_post_build.go | package cmd
import (
"io"
"fmt"
"os"
"os/exec"
"strings"
"bufio"
"path/filepath"
"github.com/jenkins-x/jx/pkg/jx/cmd/templates"
cmdutil "github.com/jenkins-x/jx/pkg/jx/cmd/util"
"github.com/jenkins-x/jx/pkg/kube"
"github.com/jenkins-x/jx/pkg/log"
"github.com/jenkins-x/jx/pkg/util"
"github.com/spf13/... | [
"\"JENKINS_X_DOCKER_REGISTRY_SERVICE_HOST\"",
"\"JENKINS_X_DOCKER_REGISTRY_SERVICE_PORT\""
] | [] | [
"JENKINS_X_DOCKER_REGISTRY_SERVICE_PORT",
"JENKINS_X_DOCKER_REGISTRY_SERVICE_HOST"
] | [] | ["JENKINS_X_DOCKER_REGISTRY_SERVICE_PORT", "JENKINS_X_DOCKER_REGISTRY_SERVICE_HOST"] | go | 2 | 0 | |
kowalski/alert_broker_ztf.py | import argparse
from ast import literal_eval
from astropy.io import fits
from astropy.visualization import (
AsymmetricPercentileInterval,
LinearStretch,
LogStretch,
ImageNormalize,
)
import base64
from bson.json_util import loads
import confluent_kafka
from copy import deepcopy
import dask.distributed
... | [] | [] | [
"HOSTNAME"
] | [] | ["HOSTNAME"] | python | 1 | 0 | |
utils/alias_win.go | package utils
import (
"bufio"
"io"
"os"
)
//AddAlias will add the alias for the package name specified
func (u *Utility) AddAliasWin(name string, ed string) error {
//Set the alias for Powershell
//--------------------------------
pwshPath := os.Getenv("USERPROFILE") + "/Documents/WindowsPowerShell/"
//Creat... | [
"\"USERPROFILE\"",
"\"USERPROFILE\""
] | [] | [
"USERPROFILE"
] | [] | ["USERPROFILE"] | go | 1 | 0 | |
tools/generate.go | package main
import (
"crypto/sha1"
"fmt"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path/filepath"
"regexp"
"strings"
"text/template"
"github.com/russross/blackfriday"
)
var cacheDir = "/tmp/gobyexample-cache"
var siteDir = "./public"
var pygmentizeBin = "./vendor/pygments/py... | [
"\"DEBUG\""
] | [] | [
"DEBUG"
] | [] | ["DEBUG"] | go | 1 | 0 | |
train.py | from __future__ import print_function
import yaml
import easydict
import os
import torch
from torch import nn
import torch.nn.functional as F
from torch.autograd import Variable
from apex import amp, optimizers
from utils.utils import log_set, save_model
from utils.loss import ova_loss, open_entropy
from utils.lr_sched... | [] | [] | [
"CUDA_VISIBLE_DEVICES"
] | [] | ["CUDA_VISIBLE_DEVICES"] | python | 1 | 0 | |
src/download_stories.py | import instaloader
import os
class InstaStories():
def __init__(self):
self.obj = instaloader.Instaloader(save_metadata=False,
filename_pattern="{owner_username}_{date_utc}", download_video_thumbnails='')
self.obj.load_session_from_file(os.getenv('SESSION_NAME'))
def upda... | [] | [] | [
"SESSION_NAME"
] | [] | ["SESSION_NAME"] | python | 1 | 0 | |
tests/__init__.py | """Retrieve test functions from submodules."""
from setuptools import find_packages
import pathlib
import importlib
import sys
import os
import re
import json
ROOT = pathlib.Path(__file__).parent.parent
# Filched from nose.config.Config().testMatch
TESTMATCH = re.compile(
os.environ.get('NOSE_TESTMATCH', r'(?:^|[... | [] | [] | [
"NOSE_TESTMATCH"
] | [] | ["NOSE_TESTMATCH"] | python | 1 | 0 | |
vendor/github.com/buildpack/packs/cf/fixtures/go-app/main.go | package main
import (
"fmt"
"html"
"log"
"net/http"
"os"
"strings"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Path: %s", html.EscapeString(r.URL.Path))
})
http.HandleFunc("/env", func(w http.ResponseWriter, _ *http.Request) {
fmt.Fprintln(w, strin... | [
"\"PORT\"",
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
chain/stmgr/utils.go | package stmgr
import (
"bytes"
"context"
"fmt"
"os"
"reflect"
"runtime"
"strings"
"github.com/filecoin-project/go-state-types/big"
"github.com/filecoin-project/go-state-types/network"
cid "github.com/ipfs/go-cid"
cbg "github.com/whyrusleeping/cbor-gen"
"golang.org/x/xerrors"
"github.com/filecoin-proje... | [
"\"LOTUS_IGNORE_DRAND\""
] | [] | [
"LOTUS_IGNORE_DRAND"
] | [] | ["LOTUS_IGNORE_DRAND"] | go | 1 | 0 | |
src/runtime/runtime-gdb_test.go | // Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package runtime_test
import (
"bytes"
"fmt"
"internal/testenv"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"
"strconv"
"strings"
"t... | [
"\"GOROOT_FINAL\""
] | [] | [
"GOROOT_FINAL"
] | [] | ["GOROOT_FINAL"] | go | 1 | 0 | |
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py | import os
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule, build_conv_layer, build_upsample_layer
from mmcv.ops.carafe import CARAFEPack
from mmcv.runner import BaseModule, ModuleList, auto_fp16, force_fp32
from torch.nn.modules.utils import _pair
... | [] | [] | [
"ONNX_BACKEND"
] | [] | ["ONNX_BACKEND"] | python | 1 | 0 | |
adversarial_defense/model/feature_defense_model.py | import glob
import os
import pretrainedmodels
import torch
from torch import nn
from torchvision import models as torch_models
import cifar_models as models
from adversarial_defense.model.denoise_resnet import DenoiseResNet50, DenoiseResNet101, DenoiseResNet152
from adversarial_defense.model.pcl_resnet import Prototype... | [] | [] | [
"TORCH_HOME"
] | [] | ["TORCH_HOME"] | python | 1 | 0 | |
core/src/test/python/custom_folder_helper_test.py | """
Copyright (c) 2019, Oracle Corporation and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0
"""
import unittest
from org.python.modules import jarray
from java.lang import Boolean
from java.util import HashMap
from java.lang import String
from java.io import ByteArrayO... | [] | [] | [] | [] | [] | python | null | null | null |
example_test.go | package darksky_test
import (
"context"
"fmt"
"os"
"time"
"github.com/trende-jp/go-darksky"
)
func ExampleClient_Forecast() {
c, err := darksky.NewClient(
darksky.WithKey(os.Getenv("DARKSKY_KEY")),
)
if err != nil {
fmt.Println(err)
return
}
ctx := context.Background()
forecast, err := c.Forecast(c... | [
"\"DARKSKY_KEY\"",
"\"DARKSKY_KEY\"",
"\"DARKSKY_KEY\""
] | [] | [
"DARKSKY_KEY"
] | [] | ["DARKSKY_KEY"] | go | 1 | 0 | |
squad_game/squad_game/asgi.py | """
ASGI config for squad_game 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/4.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [] | [] | [] | [] | [] | python | 0 | 0 | |
examples/suppression/GetAllSpamReports.java | import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sendgrid.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
//////////////////////////////////////////////////////////////////
// Retrieve all spam reports
// GET /suppression/sp... | [
"\"SENDGRID_API_KEY\""
] | [] | [
"SENDGRID_API_KEY"
] | [] | ["SENDGRID_API_KEY"] | java | 1 | 0 | |
test/e2e/operator/validate/validate.go | /*
Copyright 2019 Intel Corporation.
SPDX-License-Identifier: Apache-2.0
*/
// Package validate contains code to check objects deployed by the operator
// as part of an E2E test.
package validate
import (
"context"
"errors"
"fmt"
"os"
"reflect"
"sort"
"strings"
"time"
api "github.com/intel/pmem-csi/pkg/api... | [
"\"PMEM_CSI_IMAGE\""
] | [] | [
"PMEM_CSI_IMAGE"
] | [] | ["PMEM_CSI_IMAGE"] | go | 1 | 0 | |
test/toolset-mock/src/MockProgram.py | # Copyright 2017 Steven Watanabe
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
from __future__ import print_function
import sys
import os
import re
import fnmatch
# Represents a sequence of arguments that mus... | [] | [] | [
"B2_PROPERTIES"
] | [] | ["B2_PROPERTIES"] | python | 1 | 0 | |
release/.buildkite/build_pipeline.py | import copy
import logging
import os
import sys
import yaml
# Env variables:
# RAY_REPO Repo to use for finding the wheel
# RAY_BRANCH Branch to find the wheel
# RAY_VERSION Version to find the wheel
# RAY_WHEELS Direct Ray wheel URL
# RAY_TEST_REPO Repo to use for test scripts
# RAY... | [] | [] | [
"RAY_WHEELS",
"RAY_REPO",
"FILTER_FILE",
"RAY_BRANCH",
"FILTER_TEST",
"RAY_VERSION",
"RELEASE_TEST_SUITE",
"RAY_TEST_BRANCH",
"RAY_TEST_REPO",
"RELEASE_ALERT",
"AUTOMATIC"
] | [] | ["RAY_WHEELS", "RAY_REPO", "FILTER_FILE", "RAY_BRANCH", "FILTER_TEST", "RAY_VERSION", "RELEASE_TEST_SUITE", "RAY_TEST_BRANCH", "RAY_TEST_REPO", "RELEASE_ALERT", "AUTOMATIC"] | python | 11 | 0 | |
Python/String/Capatilize.py | """
You are asked to ensure that the first and last names of people begin with a capital letter in their passports.
For example, alison heck should be capitalised correctly as Alison Heck.
Given a full name, your task is to capitalize the name appropriately.
Input Format
A single line of input containing the full name... | [] | [] | [
"OUTPUT_PATH"
] | [] | ["OUTPUT_PATH"] | python | 1 | 0 | |
tests/grpc/grpc_test.go | // Copyright 2021 ChainSafe Systems
// SPDX-License-Identifier: MIT
package grpc
import (
"context"
"errors"
"os"
"path/filepath"
"testing"
"time"
"github.com/ChainSafe/chainlink-cosmos/app"
testnet "github.com/ChainSafe/chainlink-cosmos/testutil/network"
"github.com/ChainSafe/chainlink-cosmos/x/chainlink/t... | [
"\"GRPC_INTEGRATION_TEST\""
] | [] | [
"GRPC_INTEGRATION_TEST"
] | [] | ["GRPC_INTEGRATION_TEST"] | go | 1 | 0 | |
feathr_project/feathr/client.py | import base64
import logging
import os
import tempfile
from datetime import datetime, timedelta
from pathlib import Path
from typing import Dict, List, Optional, Union
import redis
from azure.identity import DefaultAzureCredential
from jinja2 import Template
from pyhocon import ConfigFactory
from feathr._databricks_s... | [] | [] | [] | [] | [] | python | 0 | 0 | |
main.go | package main
import (
"bufio"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
"time"
"github.com/bitrise-io/go-steputils/input"
"github.com/bitrise-io/go-steputils/stepconf"
"github.com/bitrise-io/go-utils/colorstring"
"github.com/bitrise-io/go-utils/command"
"github.com/bitrise-io/go-utils/errorutil"
"git... | [
"\"BITRISE_DEFAULT_PROVISION_URL\""
] | [] | [
"BITRISE_DEFAULT_PROVISION_URL"
] | [] | ["BITRISE_DEFAULT_PROVISION_URL"] | go | 1 | 0 | |
src/mask_rcnn_ros/scripts/mask_rcnn_node.py | #!/usr/bin/env python
import os
import threading
import numpy as np
import cv2
from cv_bridge import CvBridge
import matplotlib.pyplot as plt
import rospy
from sensor_msgs.msg import Image
from sensor_msgs.msg import RegionOfInterest
from mask_rcnn_ros import coco
from mask_rcnn_ros import utils
from mask_rcnn_ros im... | [] | [] | [
"ROS_HOME",
"HOME"
] | [] | ["ROS_HOME", "HOME"] | python | 2 | 0 | |
lambda_functions/download/features/aws.py | import os
import json
import boto3
from dependencies import yaml
class S3Data(object):
"""
Class for AWS S3
"""
def __init__(self):
"""
Initialize the s3 client.
"""
self.s3 = boto3.client('s3')
self.bucket = os.environ['S3_BUCKET']
def fetch(self, key):
... | [] | [] | [
"S3_BUCKET"
] | [] | ["S3_BUCKET"] | python | 1 | 0 | |
sdk/keyvault/azure-keyvault-keys/src/test/java/com/azure/security/keyvault/keys/cryptography/CryptographyClientTestBase.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys.cryptography;
import com.azure.core.credentials.AccessToken;
import com.azure.core.credentials.TokenCredential;
import com.azure.core.exception.HttpResponseException;
import com.azu... | [
"\"AZURE_KEYVAULT_ENDPOINT\"",
"\"AZURE_TENANT_ID\"",
"\"AZURE_CLIENT_ID\"",
"\"AZURE_CLIENT_SECRET\"",
"\"AZURE_KEYVAULT_ENDPOINT\""
] | [] | [
"AZURE_CLIENT_ID",
"AZURE_CLIENT_SECRET",
"AZURE_TENANT_ID",
"AZURE_KEYVAULT_ENDPOINT"
] | [] | ["AZURE_CLIENT_ID", "AZURE_CLIENT_SECRET", "AZURE_TENANT_ID", "AZURE_KEYVAULT_ENDPOINT"] | java | 4 | 0 | |
test/rlai/utils.py | import os
from typing import Dict
from xvfbwrapper import Xvfb
from rlai.actions import Action
from rlai.policies import Policy
from rlai.policies.tabular import TabularPolicy
from rlai.q_S_A.tabular import TabularStateActionValueEstimator
from rlai.states.mdp import MdpState
from rlai.utils import IncrementalSampleA... | [] | [] | [
"HEADLESS"
] | [] | ["HEADLESS"] | python | 1 | 0 | |
30 Days of Code/Recursion 3.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 {
// Complete the factorial function below.
static int factorial(int n) {
if(n==0)
{
return 1;
}
... | [
"\"OUTPUT_PATH\""
] | [] | [
"OUTPUT_PATH"
] | [] | ["OUTPUT_PATH"] | java | 1 | 0 | |
Backend/open_garden/open_garden/wsgi.py | """
WSGI config for open_garden project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [] | [] | [] | [] | [] | python | 0 | 0 | |
cmd/osm-bootstrap/osm-bootstrap.go | // Package main implements the main entrypoint for osm-bootstrap and utility routines to
// bootstrap the various internal components of osm-bootstrap.
// osm-bootstrap provides crd conversion capability in OSM.
package main
import (
"context"
"encoding/json"
"flag"
"fmt"
"os"
"github.com/pkg/errors"
"github.c... | [
"\"BOOTSTRAP_POD_NAME\""
] | [] | [
"BOOTSTRAP_POD_NAME"
] | [] | ["BOOTSTRAP_POD_NAME"] | go | 1 | 0 | |
cmd/manager/main.go | /*
Copyright 2020 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, ... | [
"\"WATCH_NAMESPACE\"",
"\"OPERATOR_POD_NAME\"",
"\"OPERATOR_NAMESPACE\""
] | [] | [
"OPERATOR_NAMESPACE",
"WATCH_NAMESPACE",
"OPERATOR_POD_NAME"
] | [] | ["OPERATOR_NAMESPACE", "WATCH_NAMESPACE", "OPERATOR_POD_NAME"] | go | 3 | 0 | |
python/src/disorder_annotators.py | #!/usr/bin/env python
"""
Classes designed to obtain MobiDB-Lite disorder annotations for all proteins in a specified fasta file.
Annotations are either calculated locally (LocalDisorderAnnotator), or retrieved from MobiDB
through the API (APIDisorderAnnotator). The former is written specifically to function in the Mob... | [] | [] | [] | [] | [] | python | 0 | 0 | |
Source/Controller/controller.go | package main
import (
"github.com/rs/cors"
"log"
"net/http"
)
func main() {
log.Println("Starting DConsole Controller")
//runtime.GOMAXPROCS(2)
router := createRouter()
handler := cors.Default().Handler(router)
//log.Fatal(http.ListenAndServe(":"+os.Getenv("PORT"), handler))
srv := &http.Server{
Handler: ... | [
"\"PORT\""
] | [] | [
"PORT"
] | [] | ["PORT"] | go | 1 | 0 | |
main.go | package main
import (
"fmt"
"github.com/line/line-bot-sdk-go/linebot"
"log"
"math/rand"
"net/http"
"os"
"strconv"
"strings"
"time"
)
const (
imageURL = "https://avatars1.githubusercontent.com/u/6083986"
)
type config struct {
HostPort string `default:":8080"`
IsDebug bool `env:"DEBUG"`
Secret strin... | [
"\"LineSecret\"",
"\"LineToken\""
] | [] | [
"LineToken",
"LineSecret"
] | [] | ["LineToken", "LineSecret"] | go | 2 | 0 | |
pkg/cmd/sctool/root.go | // Copyright (C) 2017 ScyllaDB
package main
import (
"crypto/tls"
"net/http"
"os"
"github.com/pkg/errors"
"github.com/scylladb/scylla-manager/pkg"
"github.com/scylladb/scylla-manager/pkg/command/flag"
"github.com/scylladb/scylla-manager/pkg/managerclient"
"github.com/scylladb/scylla-manager/pkg/util/cfgutil"... | [
"\"SCYLLA_MANAGER_API_URL\""
] | [] | [
"SCYLLA_MANAGER_API_URL"
] | [] | ["SCYLLA_MANAGER_API_URL"] | go | 1 | 0 | |
models/search_test.go | package models
import (
"database/sql"
"log"
"os"
"testing"
_ "github.com/lib/pq"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
)
type SearchSuite struct {
suite.Suite
db *sql.DB
accDB AccountDB
txnDB TransactionDB
}
func (ss *SearchSuite) SetupSuite() {
t := ss.T()
databa... | [
"\"TEST_DATABASE_URL\""
] | [] | [
"TEST_DATABASE_URL"
] | [] | ["TEST_DATABASE_URL"] | go | 1 | 0 | |
pulsar-io/elastic-search/src/test/java/org/apache/pulsar/io/elasticsearch/ElasticSearchSinkTests.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... | [
"\"ELASTICSEARCH_IMAGE\""
] | [] | [
"ELASTICSEARCH_IMAGE"
] | [] | ["ELASTICSEARCH_IMAGE"] | java | 1 | 0 | |
go-apps/meep-virt-engine/server/virt-engine.go | /*
* Copyright (c) 2019 InterDigital Communications, 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 ap... | [
"\"HOME\""
] | [] | [
"HOME"
] | [] | ["HOME"] | go | 1 | 0 | |
main.py | from requests_oauthlib import OAuth2Session
from flask import Flask, request, redirect, session, url_for, render_template
from flask.json import jsonify
from dotenv import load_dotenv
import os
load_dotenv()
app = Flask(__name__)
app.secret_key = os.urandom(24)
# This information is obtained upon registration of ... | [] | [] | [
"CLIENT_SECRET",
"OAUTHLIB_INSECURE_TRANSPORT",
"CLIENT_ID"
] | [] | ["CLIENT_SECRET", "OAUTHLIB_INSECURE_TRANSPORT", "CLIENT_ID"] | python | 3 | 0 | |
NaschpunkteDP/NaschpunkteDP/wsgi.py | """
WSGI config for NaschpunkteDP project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [] | [] | [] | [] | [] | python | 0 | 0 | |
examples/cvm/v20170312/describe_zones.go | package main
import (
"fmt"
"os"
"github.com/iftechio/tencentcloud-sdk-go/tencentcloud/common"
"github.com/iftechio/tencentcloud-sdk-go/tencentcloud/common/errors"
"github.com/iftechio/tencentcloud-sdk-go/tencentcloud/common/profile"
cvm "github.com/iftechio/tencentcloud-sdk-go/tencentcloud/cvm/v20170312"
)
fu... | [
"\"TENCENTCLOUD_SECRET_ID\"",
"\"TENCENTCLOUD_SECRET_KEY\""
] | [] | [
"TENCENTCLOUD_SECRET_ID",
"TENCENTCLOUD_SECRET_KEY"
] | [] | ["TENCENTCLOUD_SECRET_ID", "TENCENTCLOUD_SECRET_KEY"] | go | 2 | 0 | |
py/scripts/nightly_gfa_redux.py | #!/usr/bin/env python
import os
import glob
from astropy.table import Table
import astropy.io.fits as fits
import numpy as np
import random
import argparse
from gfa_reduce.common import expid_from_filename
import gfa_reduce.gfa_red as gfa_red
out_basedir = 'gfa_redux'
basedir = os.environ['DESI_SPECTRO_DATA']
lostf... | [] | [] | [
"DESI_LOST_FOUND",
"DESI_SPECTRO_DATA"
] | [] | ["DESI_LOST_FOUND", "DESI_SPECTRO_DATA"] | python | 2 | 0 | |
src/firestone_engine/calculate.py | # -*- coding: utf-8 -*-
"""
This is a skeleton file that can serve as a starting point for a Python
console script. To run this script uncomment the following lines in the
[options.entry_points] section in setup.cfg:
console_scripts =
firerock = firestone_engine.calculate:run
Then run `python se... | [] | [] | [
"FR_DB"
] | [] | ["FR_DB"] | python | 1 | 0 | |
server/database/mysql.go | package database
import (
"aske-w/itu-minitwit/models"
"fmt"
"log"
"os"
"time"
// Sqlite driver based on GGO
// "github.com/glebarez/sqlite" // Pure go SQLite driver, checkout https://github.com/glebarez/sqlite for details
"gorm.io/driver/mysql"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"gorm.io/gorm/logger"... | [
"\"MYSQL_USER\"",
"\"MYSQL_PASSWORD\"",
"\"MYSQL_ADDRESS\"",
"\"MYSQL_PORT\"",
"\"MYSQL_DATABASE\""
] | [] | [
"MYSQL_PASSWORD",
"MYSQL_USER",
"MYSQL_ADDRESS",
"MYSQL_PORT",
"MYSQL_DATABASE"
] | [] | ["MYSQL_PASSWORD", "MYSQL_USER", "MYSQL_ADDRESS", "MYSQL_PORT", "MYSQL_DATABASE"] | go | 5 | 0 | |
scripts/west_commands/build.py | # Copyright (c) 2018 Foundries.io
#
# SPDX-License-Identifier: Apache-2.0
import argparse
import os
from west import log
from west.configuration import config
from zcmake import DEFAULT_CMAKE_GENERATOR, run_cmake, run_build, CMakeCache
from build_helpers import is_zephyr_build, find_build_dir, \
FIND_BUILD_DIR_DE... | [] | [] | [
"BOARD",
"ZEPHYR_BASE"
] | [] | ["BOARD", "ZEPHYR_BASE"] | python | 2 | 0 | |
train_tromis.py | #!/usr/bin/env python3
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
os.environ['TF_FORCE_GPU_ALLOW_GROWTH'] = 'true'
import tensorflow as tf
import tensorflow.keras as keras
tf.get_logger().setLevel('ERROR')
from rl.games import tromis
from rl.agents import dqn
from rl.memory import uniqmemory
from rl.callbacks... | [] | [] | [
"TF_FORCE_GPU_ALLOW_GROWTH",
"TF_CPP_MIN_LOG_LEVEL"
] | [] | ["TF_FORCE_GPU_ALLOW_GROWTH", "TF_CPP_MIN_LOG_LEVEL"] | python | 2 | 0 | |
vendor/github.com/mozillazg/go-cos/examples/object/initiateMultipartUpload.go | package main
import (
"context"
"fmt"
"net/url"
"os"
"time"
"net/http"
"github.com/mozillazg/go-cos"
"github.com/mozillazg/go-cos/examples"
)
func main() {
u, _ := url.Parse("https://test-1253846586.cn-north.myqcloud.com")
b := &cos.BaseURL{BucketURL: u}
c := cos.NewClient(b, &http.Client{
Transport: &... | [
"\"COS_SECRETID\"",
"\"COS_SECRETKEY\""
] | [] | [
"COS_SECRETKEY",
"COS_SECRETID"
] | [] | ["COS_SECRETKEY", "COS_SECRETID"] | go | 2 | 0 | |
cfgov/cfgov/settings/test.py | from .local import *
# A test database may be specified through use of the TEST_DATABASE_URL
# environment variable. If not provided, unit tests will be run against an
# in-memory SQLite database.
TEST_DATABASE_URL = os.getenv('TEST_DATABASE_URL')
if TEST_DATABASE_URL:
TEST_DATABASE = dj_database_url.parse(TEST_D... | [] | [] | [
"TEST_DATABASE_URL",
"TEST_RUNNER"
] | [] | ["TEST_DATABASE_URL", "TEST_RUNNER"] | python | 2 | 0 | |
cmd/virtualroutermanager/main.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, ... | [
"\"POD_NAMESPACE\""
] | [] | [
"POD_NAMESPACE"
] | [] | ["POD_NAMESPACE"] | go | 1 | 0 | |
pgxs/pgx.go | package pgxs
import (
"crypto/tls"
"fmt"
"github.com/jackc/pgconn"
"github.com/jackc/pgx/v4/pgxpool"
"go.uber.org/zap"
"os"
)
type Config struct {
DbUri string `json:"db_uri" yaml:"db_uri"`
MigrationsPath string `json:"migration_schemas" yaml:"migration_schemas"`
DataDir string ... | [
"\"DB_URL\""
] | [] | [
"DB_URL"
] | [] | ["DB_URL"] | go | 1 | 0 | |
contrib/devtools/security-check.py | #!/usr/bin/env python
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Copyright (c) 2017 The Raven Core developers
# Copyright (c) 2018 The Kimora Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Perform ... | [] | [] | [
"OBJDUMP",
"READELF"
] | [] | ["OBJDUMP", "READELF"] | python | 2 | 0 | |
libs/mosquitto-1.4.14/test/lib/08-ssl-connect-no-auth.py | #!/usr/bin/env python
# Test whether a client produces a correct connect and subsequent disconnect when using SSL.
# The client should connect to port 1888 with keepalive=60, clean session set,
# and client id 08-ssl-connect-no-auth
# It should use the CA certificate ssl/test-ca.crt for verifying the server.
# The te... | [] | [] | [] | [] | [] | python | 0 | 0 | |
lang/einstein_v2.py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import re
import copy
import json
import numpy as np
# Tensor name: the first charactor must be lower case letter, and the following charactors must be within [a-zA-Z_]
# Axis name: the first charactor must be upper case letter, and th... | [] | [] | [
"MEDIATE_TENSORS"
] | [] | ["MEDIATE_TENSORS"] | python | 1 | 0 | |
script/release/uploaders/upload.py | #!/usr/bin/env python3
from __future__ import print_function
import argparse
import datetime
import hashlib
import json
import mmap
import os
import shutil
import subprocess
from struct import Struct
import sys
sys.path.append(
os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + "/../.."))
from zipfile im... | [] | [] | [] | [] | [] | python | 0 | 0 | |
plugins/registry/gossip/gossip_test.go | package gossip
import (
"os"
"sync"
"testing"
"time"
"github.com/google/uuid"
"github.com/hashicorp/memberlist"
"go-micro.dev/v4/registry"
)
func newMemberlistConfig() *memberlist.Config {
mc := memberlist.DefaultLANConfig()
mc.DisableTcpPings = false
mc.GossipVerifyIncoming = false
mc.GossipVerifyOutgoin... | [
"\"TRAVIS\"",
"\"TRAVIS\""
] | [] | [
"TRAVIS"
] | [] | ["TRAVIS"] | go | 1 | 0 | |
providers/intercom/intercom_test.go | package intercom_test
import (
"encoding/json"
"fmt"
"github.com/gorilla/pat"
"github.com/floatingghost/goth"
"github.com/floatingghost/goth/providers/intercom"
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"
"os"
"testing"
)
type fetchUserPayload struct {
ID string `json:"id... | [
"\"INTERCOM_KEY\"",
"\"INTERCOM_SECRET\"",
"\"INTERCOM_KEY\"",
"\"INTERCOM_KEY\"",
"\"INTERCOM_SECRET\""
] | [] | [
"INTERCOM_SECRET",
"INTERCOM_KEY"
] | [] | ["INTERCOM_SECRET", "INTERCOM_KEY"] | go | 2 | 0 | |
Gecko/scripts/seed/GraphReconstructionKarateClub.py | import matplotlib
#matplotlib.use('GTKAgg')
import os
os.environ["THEANO_FLAGS"]="mode=FAST_RUN,device=gpu,floatX=float32"
import matplotlib.pyplot as plt
from gem.utils import graph_util, plot_util
from gem.evaluation import visualize_embedding as viz
from gem.evaluation import evaluate_graph_reconstruction as gr
f... | [] | [] | [
"THEANO_FLAGS"
] | [] | ["THEANO_FLAGS"] | python | 1 | 0 | |
keras/utils/tf_utils_test.py | # Copyright 2018 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... | [] | [] | [] | [] | [] | python | null | null | null |
proc/crossref.py | import argparse
import asyncio
import html
import json
import logging
import os
import textwrap
import time
import xmltodict
from aiohttp import ClientSession, ClientConnectorError, ServerDisconnectedError, ContentTypeError
from articlemeta.client import RestfulClient
from datetime import datetime
from json import JSO... | [] | [] | [
"MONGO_STDCITS_COLLECTION",
"CROSSREF_URL_WORKS",
"CROSSREF_SEMAPHORE_LIMIT",
"CROSSREF_URL_OPENURL",
"DIR_DATA"
] | [] | ["MONGO_STDCITS_COLLECTION", "CROSSREF_URL_WORKS", "CROSSREF_SEMAPHORE_LIMIT", "CROSSREF_URL_OPENURL", "DIR_DATA"] | python | 5 | 0 | |
cmd/xsDeploy_generated.go | // Code generated by piper's step-generator. DO NOT EDIT.
package cmd
import (
"fmt"
"os"
"path/filepath"
"time"
"github.com/SAP/jenkins-library/pkg/config"
"github.com/SAP/jenkins-library/pkg/log"
"github.com/SAP/jenkins-library/pkg/piperenv"
"github.com/SAP/jenkins-library/pkg/telemetry"
"github.com/spf13... | [
"\"PIPER_deployOpts\"",
"\"PIPER_mtaPath\"",
"\"PIPER_operationId\"",
"\"PIPER_apiUrl\"",
"\"PIPER_user\"",
"\"PIPER_password\"",
"\"PIPER_org\"",
"\"PIPER_space\"",
"\"PIPER_loginOpts\"",
"\"PIPER_xsSessionFile\""
] | [] | [
"PIPER_org",
"PIPER_password",
"PIPER_deployOpts",
"PIPER_user",
"PIPER_apiUrl",
"PIPER_operationId",
"PIPER_loginOpts",
"PIPER_space",
"PIPER_xsSessionFile",
"PIPER_mtaPath"
] | [] | ["PIPER_org", "PIPER_password", "PIPER_deployOpts", "PIPER_user", "PIPER_apiUrl", "PIPER_operationId", "PIPER_loginOpts", "PIPER_space", "PIPER_xsSessionFile", "PIPER_mtaPath"] | go | 10 | 0 | |
internal/middleware/jwt.go | package middleware
import (
"net/http"
"os"
"strconv"
"strings"
"time"
"github.com/cazyw/shakespeare-go/internal/responses"
"github.com/gofiber/fiber/v2"
jwtMiddleware "github.com/gofiber/jwt/v2"
"github.com/golang-jwt/jwt"
)
// TokenMetadata struct to describe metadata in JWT.
type TokenMetadata struct {
... | [
"\"JWT_SECRET_KEY\"",
"\"JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT\"",
"\"JWT_SECRET_KEY\"",
"\"JWT_SECRET_KEY\""
] | [] | [
"JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT",
"JWT_SECRET_KEY"
] | [] | ["JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT", "JWT_SECRET_KEY"] | go | 2 | 0 | |
go/examples/test/create_tenant_test.go | // Copyright 2021 VMware, Inc.
// SPDX-License-Identifier: Apache License 2.0
package test
import (
"fmt"
"os"
"testing"
"github.com/vmware/alb-sdk/go/clients"
"github.com/vmware/alb-sdk/go/models"
"github.com/vmware/alb-sdk/go/session"
)
func TestCreateTenant(t *testing.T) {
aviClient, err := clients.NewAviC... | [
"\"AVI_CONTROLLER\"",
"\"AVI_USERNAME\"",
"\"AVI_PASSWORD\"",
"\"AVI_TENANT\"",
"\"AVI_VERSION\""
] | [] | [
"AVI_PASSWORD",
"AVI_VERSION",
"AVI_USERNAME",
"AVI_TENANT",
"AVI_CONTROLLER"
] | [] | ["AVI_PASSWORD", "AVI_VERSION", "AVI_USERNAME", "AVI_TENANT", "AVI_CONTROLLER"] | go | 5 | 0 | |
test/integration/shared_int_test.go | package integration
import (
"fmt"
"os"
"runtime"
"github.com/ActiveState/cli/internal/logging"
"github.com/gobuffalo/packr"
"github.com/ActiveState/cli/internal/constants"
"github.com/ActiveState/cli/internal/language"
"github.com/ActiveState/cli/internal/strutils"
)
var (
testUser = "test-user"
... | [
"\"VERBOSE\"",
"\"VERBOSE_TESTS\""
] | [] | [
"VERBOSE_TESTS",
"VERBOSE"
] | [] | ["VERBOSE_TESTS", "VERBOSE"] | go | 2 | 0 | |
rabbit/src/main/java/istu/bacs/rabbit/RabbitConfiguration.java | package istu.bacs.rabbit;
import org.springframework.amqp.core.AmqpAdmin;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitAdmin;... | [
"\"CLOUDAMQP_URL\""
] | [] | [
"CLOUDAMQP_URL"
] | [] | ["CLOUDAMQP_URL"] | java | 1 | 0 | |
conf_test.go | package main
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestParseConf(t *testing.T) {
*ignore = ""
*args = ""
*suffixes = ""
cnf, err := parseConf("./test/config.json")
assert.Nil(t, err, "Error should not happen if file is ok")
AssertArraysEq(t, []string{"some/path/to/ignore", "s... | [
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
pkg/tester/client.go | // Copyright 2017 Quentin Machu & eco 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 ... | [
"\"SSH_AUTH_SOCK\""
] | [] | [
"SSH_AUTH_SOCK"
] | [] | ["SSH_AUTH_SOCK"] | go | 1 | 0 | |
internal/lsp/cache/view.go | // Copyright 2018 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 cache implements the caching layer for gopls.
package cache
import (
"context"
"encoding/json"
"fmt"
"go/ast"
"io"
"io/ioutil"
"os"
"path"
... | [
"\"GOPACKAGESDRIVER\""
] | [] | [
"GOPACKAGESDRIVER"
] | [] | ["GOPACKAGESDRIVER"] | go | 1 | 0 | |
service/appmesh/api.go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appmesh
import (
"fmt"
"time"
"github.com/santhoshs123/aws-sdk-go/aws"
"github.com/santhoshs123/aws-sdk-go/aws/awsutil"
"github.com/santhoshs123/aws-sdk-go/aws/request"
"github.com/santhoshs123/aws-sdk-go/private/protocol"
"github.co... | [] | [] | [] | [] | [] | go | null | null | null |
rcnn/modeling/cascade_rcnn/inference.py | import torch
import torch.nn.functional as F
from torch import nn
from utils.data.structures.bounding_box import BoxList
from utils.data.structures.boxlist_ops import boxlist_nms, boxlist_soft_nms, boxlist_box_voting
from utils.data.structures.boxlist_ops import cat_boxlist
from rcnn.utils.box_coder import BoxCoder
fr... | [] | [] | [] | [] | [] | python | null | null | null |
src/pcgr/vcf2tsv.py | #!/usr/bin/env python
import argparse
from cyvcf2 import VCF, Writer
import numpy as np
import re
import math
import subprocess
version = '0.3.5'
def __main__():
parser = argparse.ArgumentParser(description='Convert a VCF file with genomic variants to a file with tab-separated values (TSV). One entry (TSV line) ... | [] | [] | [] | [] | [] | python | null | null | null |
tripleo_common/image/image_uploader.py | # Copyright 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [] | [] | [] | [] | [] | python | 0 | 0 | |
tuner.py | import subprocess
import os
import sys
logdir = 'dp_tuning'
data_size = 10_000
hidden_sizes = [128, 256, 512]
epsilons = [0.01, 0.1, 1.0, 10.0]
lambdas = [0.01, 0.1, 1.0, 10.0]
dropouts = [0.0, 0.2, 0.4]
learning_rate = [0.01, 0.001, 0.0001]
# for hidden_size in hidden_sizes:
# for lr in learning_rate:
# ... | [] | [] | [] | [] | [] | python | 0 | 0 | |
contrib/spendfrom/spendfrom.py | #!/usr/bin/env python
#
# Use the raw transactions API to spend bitcoins received on particular addresses,
# and send any change back to that same address.
#
# Example usage:
# spendfrom.py # Lists available funds
# spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00
#
# Assumes it will talk to a bitcoind or Bit... | [] | [] | [
"APPDATA"
] | [] | ["APPDATA"] | python | 1 | 0 | |
shell/shell/wsgi.py | """
WSGI config for shell 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from mezzanine.utils.conf import real_... | [] | [] | [] | [] | [] | python | 0 | 0 | |
soracom/generated/cmd/users_permissions_update.go | // Code generated by soracom-cli generate-cmd. DO NOT EDIT.
package cmd
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/url"
"os"
"strings"
"github.com/spf13/cobra"
)
// UsersPermissionsUpdateCmdDescription holds value of 'description' option
var UsersPermissionsUpdateCmdDescription string
// UsersPermissio... | [
"\"SORACOM_VERBOSE\""
] | [] | [
"SORACOM_VERBOSE"
] | [] | ["SORACOM_VERBOSE"] | go | 1 | 0 | |
pqparser.go | package pqparser
import (
"crypto/tls"
"encoding/csv"
"fmt"
"net/url"
"os"
"os/user"
"strconv"
"strings"
"time"
"github.com/go-pg/pg"
)
const (
// TODO: we should find something better
slashReplacement = "HereWasASlash"
)
// Parse a connection string or URI.
// The connection string is parsed as defined... | [
"\"PGHOST\"",
"\"PGPORT\"",
"\"PGDATABASE\"",
"\"PGUSER\"",
"\"PGPASSWORD\"",
"\"PGAPPNAME\"",
"\"PGSSLMODE\"",
"\"PGREQUIRESSL\"",
"\"PGSSLCERT\"",
"\"PGSSLKEY\"",
"\"PGCONNECT_TIMEOUT\""
] | [] | [
"PGAPPNAME",
"PGPORT",
"PGSSLKEY",
"PGDATABASE",
"PGUSER",
"PGSSLMODE",
"PGHOST",
"PGPASSWORD",
"PGREQUIRESSL",
"PGSSLCERT",
"PGCONNECT_TIMEOUT"
] | [] | ["PGAPPNAME", "PGPORT", "PGSSLKEY", "PGDATABASE", "PGUSER", "PGSSLMODE", "PGHOST", "PGPASSWORD", "PGREQUIRESSL", "PGSSLCERT", "PGCONNECT_TIMEOUT"] | go | 11 | 0 | |
register_pairs_flirt.py | import argparse
import os
import sys
parser = argparse.ArgumentParser('Register pairs of images (eg, baseline and follow-up) using FSL flirt')
parser.add_argument("--ref_dir", type=str, nargs=1, required=True, help="Directory containing the reference images")
parser.add_argument("--ref_suffix", type=str, nargs=1, requ... | [] | [] | [
"FSLDIR"
] | [] | ["FSLDIR"] | python | 1 | 0 | |
src/main/java/org/javacs/Lib.java | package org.javacs;
import java.io.File;
import java.lang.System;
import java.util.Optional;
import java.util.Arrays;
import java.nio.file.*;
class Lib {
static Optional<Path> srcZipPath() {
return Optional.ofNullable(System.getenv("JAVA_HOME"))
.map(home -> {
return Arrays.asL... | [
"\"JAVA_HOME\""
] | [] | [
"JAVA_HOME"
] | [] | ["JAVA_HOME"] | java | 1 | 0 | |
build.go | // +build ignore
package main
import (
"bytes"
"crypto/md5"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"
"strconv"
"strings"
"time"
)
var (
versionRe = regexp.MustCompile(`-[0-9]{1,3}-g[0-9a-f]{5,10}`)
goarch string
goos string
vers... | [
"\"GOPATH\"",
"\"GOPATH\"",
"\"GOPATH\"",
"\"GOPATH\""
] | [] | [
"GOPATH"
] | [] | ["GOPATH"] | go | 1 | 0 | |
config.py | import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or "chaihongjing"
SSL_REDIRECT = False
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_RECORD_QUERIES = True
FLASKY_PER_PAGE = 10
SQLALCHEMY_POOL_SIZE = 5
@staticmethod
def init_app(app):
pass
class Developmen... | [] | [] | [
"SECRET_KEY"
] | [] | ["SECRET_KEY"] | python | 1 | 0 | |
src/react-material-backend/routes/off.py | import os
import sys,json
def read_in():
lines = sys.stdin.readlines()
# Since our input would only be having one line, parse our JSON data from that
return json.loads(lines[0])
var=read_in()
t=int(var[0])
# print(t)
os.system("sshpass -p 'mouni1995' ssh 'user@10.2.24.157' 'cd tools;python off.py %d' "%t)
#... | [] | [] | [] | [] | [] | python | null | null | null |
compiler/tests/22_sram_1bank_nomux_func_test.py | #!/usr/bin/env python3
# See LICENSE for licensing information.
#
# Copyright (c) 2016-2021 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import unittest
from test... | [] | [] | [
"OPENRAM_HOME"
] | [] | ["OPENRAM_HOME"] | python | 1 | 0 | |
pkg/config/raw_meta.go | package config
import (
"fmt"
"os"
"github.com/werf/werf/pkg/slug"
)
type rawMeta struct {
ConfigVersion *int `yaml:"configVersion,omitempty"`
Project *string `yaml:"project,omitempty"`
DeployTemplates *rawMetaDeployTemplates `yaml:"deploy,omitempty"`
Cleanup ... | [
"\"WERF_PROJECT_NAME\""
] | [] | [
"WERF_PROJECT_NAME"
] | [] | ["WERF_PROJECT_NAME"] | go | 1 | 0 | |
core/creator/src/main/java/io/quarkus/creator/phase/nativeimage/NativeImagePhase.java | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apa... | [] | [] | [] | [] | [] | java | 0 | 0 | |
samples/snippets/conftest.py | # 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 agreed to in writing, s... | [] | [] | [
"GOOGLE_CLOUD_PROJECT"
] | [] | ["GOOGLE_CLOUD_PROJECT"] | python | 1 | 0 | |
kernel_image_puller.py | import logging
import os
import queue
import requests
import time
from threading import Thread
cri_sock = os.getenv("KIP_CRI_SOCK", "unix:///var/run/containerd/containerd.sock")
cri_client = os.getenv("KIP_CRI_CLI", False)
gateway_host = os.getenv("KIP_GATEWAY_HOST", "http://localhost:8888")
num_pullers = int(os.ge... | [] | [] | [
"KIP_GATEWAY_HOST",
"KIP_CRI_CLI",
"KIP_LOG_LEVEL",
"KIP_NUM_PULLERS",
"KIP_CRI_SOCK",
"KIP_INTERVAL",
"KIP_PULL_POLICY",
"KIP_NUM_RETRIES"
] | [] | ["KIP_GATEWAY_HOST", "KIP_CRI_CLI", "KIP_LOG_LEVEL", "KIP_NUM_PULLERS", "KIP_CRI_SOCK", "KIP_INTERVAL", "KIP_PULL_POLICY", "KIP_NUM_RETRIES"] | python | 8 | 0 | |
conf.py | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
# flake8: noqa
# -*- coding: utf-8 -*-
#
# Spack documentation build configuration file, created by
# sphinx-quickstart on... | [] | [] | [
"COLIFY_SIZE",
"SPACK_ROOT",
"PATH",
"COLUMNS"
] | [] | ["COLIFY_SIZE", "SPACK_ROOT", "PATH", "COLUMNS"] | python | 4 | 0 | |
backend/cloud-function-trigger/slack.py | from slacker import Slacker
import os
API_KEY = os.environ["SLACK_API_KEY"]
CHANNEL = os.environ["SLACK_CHANNEL"]
slacker = Slacker(API_KEY)
def post(_str, pretext=None, title=None, color="good", channel=None, image_url=None):
if channel is None:
channel = CHANNEL
slacker.chat.post_message(
c... | [] | [] | [
"SLACK_API_KEY",
"SLACK_CHANNEL"
] | [] | ["SLACK_API_KEY", "SLACK_CHANNEL"] | python | 2 | 0 | |
conf.py | #!/usr/bin/env python3# -*- coding: utf-8 -*-
# This is the configuration file of Sphynx, edit it as needed.
import sys
sys.path.append('.') # for rtd
import os
on_rtd = os.environ.get('READTHEDOCS') == 'True'
#keep it first so we don't get deprecation warnings
import jupman_tools as jmt
import recommonmark
from... | [] | [] | [
"GOOGLE_ANALYTICS",
"READTHEDOCS"
] | [] | ["GOOGLE_ANALYTICS", "READTHEDOCS"] | python | 2 | 0 | |
jax/experimental/jax2tf/tests/jax_primitives_coverage_test.py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [] | [] | [
"JAX_OUTPUT_LIMITATIONS_DOC"
] | [] | ["JAX_OUTPUT_LIMITATIONS_DOC"] | python | 1 | 0 | |
muses.go | package muses
import (
"fmt"
"github.com/goecology/muses/pkg/app"
"github.com/goecology/muses/pkg/common"
"github.com/goecology/muses/pkg/logger"
"github.com/goecology/muses/pkg/prom"
)
func Container(cfg interface{}, callerFuncs ...common.CallerFunc) (err error) {
var cfgByte []byte
switch cfg.(type) {
case ... | [] | [] | [] | [] | [] | go | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.