max_stars_repo_path stringlengths 4 237 | max_stars_repo_name stringlengths 6 117 | max_stars_count int64 0 95.2k | id stringlengths 1 7 | content stringlengths 12 593k | input_ids listlengths 7 549k |
|---|---|---|---|---|---|
__init__.py | MycroftAI/skill-date | 1 | 1602411 | <reponame>MycroftAI/skill-date
# Copyright 2021, Mycroft AI 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 appli... | [
1,
529,
276,
1112,
420,
29958,
3421,
24077,
615,
23869,
29914,
808,
453,
29899,
1256,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
29892,
1619,
24077,
615,
319,
29902,
9266,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
2... |
venv/Lib/site-packages/moderngl_window/meta/data.py | net-oil-man/Oilman-Manim-Tools | 1 | 85218 | from moderngl_window.meta.base import ResourceDescription
class DataDescription(ResourceDescription):
"""Describes data file to load.
This is a generic resource description type
for loading resources that are not textures, programs and scenes.
That loaded class is used depends on the ``kind`` or the ... | [
1,
515,
5400,
3820,
29918,
7165,
29889,
7299,
29889,
3188,
1053,
18981,
9868,
13,
13,
13,
1990,
3630,
9868,
29898,
6848,
9868,
1125,
13,
1678,
9995,
4002,
699,
5707,
848,
934,
304,
2254,
29889,
13,
13,
1678,
910,
338,
263,
10035,
6503... |
othelloai/gui/__init__.py | jcarrete5/othello | 0 | 186801 | """GUI for the othello application."""
import logging
import tkinter as tk
import tkinter.messagebox
from random import choice as choose_from
from typing import Optional
from .player import GUIPlayer
from .. import bitboard as bb
from ..ai import ai_default, ai_options, AIOption
from ..board import Board
from ..color... | [
1,
9995,
29954,
3120,
363,
278,
288,
386,
3156,
2280,
1213,
15945,
13,
13,
5215,
12183,
13,
5215,
18883,
1639,
408,
18883,
13,
5215,
18883,
1639,
29889,
4906,
1884,
13,
3166,
4036,
1053,
7348,
408,
6755,
29918,
3166,
13,
3166,
19229,
... |
mod_stats/tools/dlcount.py | openSUSE/mirrorbrain | 24 | 81412 | #!/usr/bin/python
# Copyright 2008,2009 <NAME>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation;
#
# This program is distributed in the hope that it will be useful,
# ... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29900,
29947,
29892,
29906,
29900,
29900,
29929,
529,
5813,
29958,
13,
29937,
13,
29937,
268,
910,
1824,
338,
3889,
7047,
29936,
366,
508,
2654,
39... |
tests/libs/datasets/zeros_filter_test.py | ConsultingMD/covid-data-model | 0 | 111732 | import more_itertools
import structlog
from covidactnow.datapublic.common_fields import CommonFields
from libs.datasets.sources import zeros_filter
from libs.pipeline import Region
from tests import test_helpers
from tests.test_helpers import TimeseriesLiteral
import pandas as pd
def test_basic():
region_tx = Re... | [
1,
1053,
901,
29918,
1524,
8504,
13,
5215,
2281,
1188,
13,
3166,
18838,
333,
627,
3707,
29889,
4130,
481,
803,
29889,
9435,
29918,
9621,
1053,
13103,
14256,
13,
13,
3166,
4303,
29879,
29889,
14538,
1691,
29889,
29879,
2863,
1053,
24786,
... |
fypy/model/levy/__init__.py | jkirkby3/fypy | 16 | 1611163 | <filename>fypy/model/levy/__init__.py
from fypy.model.levy.VarianceGamma import VarianceGamma
from fypy.model.levy.BlackScholes import BlackScholes
from fypy.model.levy.CGMY import CMGY
from fypy.model.levy.KouJD import KouJD
from fypy.model.levy.MertonJD import MertonJD
from fypy.model.levy.NIG import NIG | [
1,
529,
9507,
29958,
29888,
1478,
29891,
29914,
4299,
29914,
2608,
29891,
29914,
1649,
2344,
26914,
2272,
13,
3166,
285,
1478,
29891,
29889,
4299,
29889,
2608,
29891,
29889,
9037,
8837,
6642,
1053,
11681,
8837,
6642,
13,
3166,
285,
1478,
... |
challenges/2021-10-26-the-24-game/solutions/mob/mob.py | JenniferToops/CodingDojo | 34 | 137990 | <gh_stars>10-100
import unittest
"""
# The 24 Game
The `24` game is played as follows. You are given a list of four integers, each in a fixed order. By
placing the operators +, -, *, and / between the numbers, and grouping them with parentheses, determine whether it is possible to reach the value `24`.
For example,... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
443,
27958,
13,
13,
15945,
29908,
13,
29937,
450,
29871,
29906,
29946,
8448,
13,
13,
1576,
421,
29906,
29946,
29952,
3748,
338,
5318,
408,
4477,
... |
create_dataset.py | KiLJ4EdeN/COVID_WEB | 5 | 1615527 | # Import dependencies.
import os
import numpy as np
import cv2
from scipy.io import savemat
# Create labels.
C = np.ones((349,))
N = np.zeros((397,))
labels = np.concatenate((C, N), axis=0)
# Load the datased and resize to imagenet size.
covid = os.listdir('CT_COVID')
n_covid = os.listdir('CT_NonCOVID')
data=[]
for... | [
1,
396,
16032,
9962,
29889,
13,
5215,
2897,
13,
5215,
12655,
408,
7442,
13,
5215,
13850,
29906,
13,
3166,
4560,
2272,
29889,
601,
1053,
4048,
4579,
13,
13,
29937,
6204,
11073,
29889,
13,
29907,
353,
7442,
29889,
2873,
3552,
29941,
29946... |
test.py | Aaron-Jin-Xu/DataIO | 1 | 142915 | from utils.io import inspect_data_dirs
from configs import DATA_DIRS
inspect_data_dirs(DATA_DIRS)
| [
1,
515,
3667,
29879,
29889,
601,
1053,
16096,
29918,
1272,
29918,
3972,
29879,
13,
3166,
2295,
29879,
1053,
360,
8254,
29918,
9464,
29903,
13,
13,
1144,
1103,
29918,
1272,
29918,
3972,
29879,
29898,
14573,
29918,
9464,
29903,
29897,
13,
2... |
river/optim/base.py | online-ml/creme | 1,105 | 47902 | import abc
import numbers
from typing import Union
import numpy as np
from river import base, optim, utils
VectorLike = Union[utils.VectorDict, np.ndarray]
__all__ = ["Initializer", "Scheduler", "Optimizer", "Loss"]
class Initializer(base.Base, abc.ABC):
"""An initializer is used to set initial weights in a ... | [
1,
1053,
25638,
13,
5215,
3694,
13,
3166,
19229,
1053,
7761,
13,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
8580,
1053,
2967,
29892,
5994,
29892,
3667,
29879,
13,
13,
12877,
27552,
353,
7761,
29961,
13239,
29889,
12877,
21533,
29892,
744... |
blog/templatetags/markdownify.py | darkLord19/blog | 12 | 26658 | from django import template
import mistune
register = template.Library()
@register.filter
def markdown(value):
markdown = mistune.Markdown()
return markdown(value)
| [
1,
515,
9557,
1053,
4472,
13,
5215,
5862,
1540,
13,
13,
9573,
353,
4472,
29889,
12284,
580,
13,
13,
13,
29992,
9573,
29889,
4572,
13,
1753,
2791,
3204,
29898,
1767,
1125,
13,
1678,
2791,
3204,
353,
5862,
1540,
29889,
9802,
3204,
580,
... |
problem0231.py | kmarcini/Project-Euler-Python | 0 | 50155 | ###########################
#
# #231 The prime factorisation of binomial coefficients - Project Euler
# https://projecteuler.net/problem=231
#
# Code by <NAME>
#
###########################
| [
1,
835,
13383,
7346,
13,
29937,
13,
29937,
396,
29906,
29941,
29896,
450,
6019,
7329,
4371,
310,
9016,
7615,
16127,
448,
8010,
382,
8584,
13,
29937,
2045,
597,
4836,
29872,
8584,
29889,
1212,
29914,
17199,
29922,
29906,
29941,
29896,
13,
... |
measurements/update_measurements.py | gvvynplaine/AutoEq | 1 | 82125 | <filename>measurements/update_measurements.py<gh_stars>1-10
# -*- coding: utf-8 -*-
import os
import sys
import argparse
from glob import glob
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
sys.path.insert(1, os.path.realpath(os.path.join(sys.path[0], os.pardir)))
from measurement... | [
1,
529,
9507,
29958,
26658,
1860,
29914,
5504,
29918,
26658,
1860,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5... |
01-Exercicios/Aula001/Ex2.py | AmandaRH07/Python_Entra21 | 0 | 23501 | #--- Exercício 2 - Variáveis
#--- Crie um menu para um sistema de cadastro de funcionários
#--- O menu deve ser impresso com a função format()
#--- As opções devem ser variáveis do tipo inteiro
#--- As descrições das opções serão:
#--- Cadastrar funcionário
#--- Listar funcionários
#--- Editar funcionário
#--... | [
1,
396,
5634,
1222,
6269,
24394,
29871,
29906,
29871,
448,
9586,
29976,
27072,
13,
29937,
5634,
315,
2546,
1922,
6143,
1702,
1922,
10502,
316,
13840,
23364,
316,
21802,
26047,
13,
29937,
5634,
438,
6143,
28542,
724,
21210,
29877,
419,
263... |
stage/factory/base.py | daveshed/linearstage | 0 | 74621 | #pylint: disable=missing-docstring
#pyling: enable=missing-docstring
import abc
class StageFactoryBase(abc.ABC):
"""
The factory base class that provides necessary objects required to
instantiate a Stage object.
"""
@abc.abstractproperty
def minimum_position(self):
"""The stage minimum... | [
1,
396,
2272,
27854,
29901,
11262,
29922,
27259,
29899,
1514,
1807,
13,
29937,
2272,
1847,
29901,
9025,
29922,
27259,
29899,
1514,
1807,
13,
5215,
25638,
13,
13,
13,
1990,
24906,
5126,
5160,
29898,
10736,
29889,
19658,
1125,
13,
1678,
999... |
sps/sps/doctype/attendance_sheet/attendance_sheet.py | tushar7724/SPS | 0 | 135641 | <reponame>tushar7724/SPS
# -*- coding: utf-8 -*-
# Copyright (c) 2019, <NAME> and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import cint, flt, add_months, today, date_diff, getdate, add_days, cstr, nowdate
from frappe.model.doc... | [
1,
529,
276,
1112,
420,
29958,
29873,
1878,
279,
29955,
29955,
29906,
29946,
29914,
5550,
29903,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29... |
power4.py | valentinp72/PuissanceQuatre_bot | 0 | 160924 | <gh_stars>0
'''
power4.py
<NAME> - 14/10/2016
MIT License
Version 0.1
====
This is the main file for the twitter bot power4
'''
# -------
# Imports
import tweepy
import sys
import os
# Import config file
from config import *
from msgLogger import *
from gridFunctions import *
# ---------
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
12008,
13,
1678,
3081,
29946,
29889,
2272,
13,
1678,
529,
5813,
29958,
448,
29871,
29896,
29946,
29914,
29896,
29900,
29914,
29906,
29900,
29896,
29953,
13,
1678,
341,
1806,
19245,
13,
16... |
gpu_speed_test.py | baumgach/gpu_speed_test | 1 | 189566 | <filename>gpu_speed_test.py
# Calculate the computation times for several matrix sizes on GPU
# Author: <NAME> (<EMAIL>)
from __future__ import print_function
import os
os.environ["CUDA_VISIBLE_DEVICES"] = os.environ['SGE_GPU']
import numpy as np
import tensorflow as tf
import time
import socket
def get_times(matrix... | [
1,
529,
9507,
29958,
29887,
3746,
29918,
19322,
29918,
1688,
29889,
2272,
13,
29937,
20535,
403,
278,
16287,
3064,
363,
3196,
4636,
15786,
373,
22796,
13,
29937,
13361,
29901,
529,
5813,
29958,
313,
29966,
26862,
6227,
12948,
13,
13,
3166... |
setup.py | Goggin/djeasyroute | 0 | 152426 | <filename>setup.py
#!/usr/bin/env python
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
setup(name='djeasyroute',
version='0.0.3',
description='A simple class based route system for django similar to flask',
author='<NAME>',
author_email='<E... | [
1,
529,
9507,
29958,
14669,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
2202,
29901,
13,
1678,
515,
731,
21245,
8789,
29889,
3221,
1053,
6230,
13,
19499,
16032,
2392,
29901,
13,
1678,
515,
1320,
13239,
2... |
lib/python2.7/site-packages/appionlib/apTaskLog.py | leschzinerlab/myami-3.2-freeHand | 0 | 138351 | import sys
import time
import subprocess
import math
import os
from appionlib import basicScript
from appionlib import apParam
from appionlib import apDisplay
class TaskLog(basicScript.BasicScript):
'''
TaskLog is used by TaskStatusLogger.py
on remote cluster host to parse the logfile or result of a task
for use... | [
1,
1053,
10876,
13,
5215,
931,
13,
5215,
1014,
5014,
13,
5215,
5844,
13,
5215,
2897,
13,
13,
3166,
623,
291,
1982,
1053,
6996,
4081,
13,
3166,
623,
291,
1982,
1053,
3095,
4736,
13,
3166,
623,
291,
1982,
1053,
3095,
9323,
13,
13,
1... |
commands/slotsjackpot.py | Dabomstew/goldenrod | 2 | 94878 | import config
import random
import datetime, time
import math
def execute(parser, bot, user, args):
slotsPool = bot.execQuerySelectOne("SELECT * FROM slotspool")
bot.addressUser(user, "The current slots jackpot is %d %s." % (slotsPool["slotspool"], config.currencyPlural))
def requiredPerm():
... | [
1,
1053,
2295,
30004,
13,
5215,
4036,
30004,
13,
5215,
12865,
29892,
931,
30004,
13,
5215,
5844,
30004,
13,
30004,
13,
1753,
6222,
29898,
16680,
29892,
9225,
29892,
1404,
29892,
6389,
1125,
30004,
13,
1678,
2243,
1862,
11426,
353,
9225,
... |
epde/Tokens.py | vnleonenko/EPDE | 15 | 162611 | <reponame>vnleonenko/EPDE
"""
Contains baseline prototypes of 'Token' instance as a gen in Individual chromosome.
Classes
----------
Token
TerminalToken
ComplexToken
"""
import random
import numpy as np
from copy import deepcopy, copy
from functools import reduce
from abc import ABC, abstractmethod, abstractproperty
... | [
1,
529,
276,
1112,
420,
29958,
18564,
280,
19131,
2901,
29914,
15488,
2287,
13,
15945,
29908,
13,
21409,
2362,
5570,
410,
4260,
7384,
310,
525,
6066,
29915,
2777,
408,
263,
2531,
297,
1894,
23352,
25173,
359,
608,
29889,
13,
13,
27403,
... |
spacy/lang/pt/lex_attrs.py | keshan/spaCy | 1 | 14125 | <filename>spacy/lang/pt/lex_attrs.py
# coding: utf8
from __future__ import unicode_literals
from ...attrs import LIKE_NUM
_num_words = ['zero', 'um', 'dois', 'três', 'tres', 'quatro', 'cinco', 'seis', 'sete', 'oito', 'nove', 'dez',
'onze', 'doze', 'dúzia', 'dúzias', 'duzia', 'duzias', 'treze', 'catorze... | [
1,
529,
9507,
29958,
1028,
4135,
29914,
3893,
29914,
415,
29914,
2506,
29918,
5552,
29879,
29889,
2272,
13,
29937,
14137,
29901,
23616,
29947,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
2023,
5552,
2... |
spider_service/app/spider/selenium/webdriver.py | seniortesting/python-spider | 0 | 20166 | # -*- coding:utf-8 -*-
import random
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from app.api.util.web_request import WebRequest, USER_AGENT_PC, USER_AGENT_MOBILE
class SpiderWebDriver(object):
def __init__(sel... | [
1,
396,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
5215,
4036,
13,
5215,
931,
13,
13,
3166,
18866,
1053,
1856,
9465,
13,
3166,
18866,
29889,
29813,
29889,
18114,
29889,
6768,
1053,
25186,
13,
3166,
18866,
... |
conanfile.py | torshind/conan-pcg-cpp | 0 | 125483 | from conans import ConanFile, CMake
class PcgCppConan(ConanFile):
name = "pcg-cpp"
version = "latest"
license = "MIT"
homepage = "http://www.pcg-random.org/"
url = "https://github.com/torshind/conan-pcg-cpp/"
description = "PCG — C++ Implementation"
settings = "os", "compiler", "build_type... | [
1,
515,
378,
550,
1053,
1281,
273,
2283,
29892,
315,
9984,
13,
13,
13,
1990,
349,
29883,
29887,
29907,
407,
1168,
273,
29898,
1168,
273,
2283,
1125,
13,
1678,
1024,
353,
376,
6739,
29887,
29899,
8223,
29908,
13,
1678,
1873,
353,
376,
... |
scripts/cosmoWindToNC.py | r-beer/RESKit | 0 | 104035 | <filename>scripts/cosmoWindToNC.py
#### Setup command line arguments
import argparse
parser = argparse.ArgumentParser(description='Process single-timestep 3D wind grib files and construct an output NC file')
parser.add_argument(dest="uFile", type=str, help='path to the file containing 3D U wind speeds')
parser.add_arg... | [
1,
529,
9507,
29958,
16713,
29914,
3944,
4346,
29956,
513,
1762,
15868,
29889,
2272,
13,
4136,
3789,
786,
1899,
1196,
6273,
13,
5215,
1852,
5510,
13,
13,
16680,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
2433,
7032,
2323,
29899,
... |
meeko/preparation.py | forlilab/Meeko | 19 | 138852 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Meeko preparation
#
import os
import sys
from collections import OrderedDict
import warnings
from rdkit import Chem
from .molsetup import OBMoleculeSetup
from .molsetup import RDKitMoleculeSetup
from .atomtyper import AtomTyper
from .bondtyper import BondTyperLegacy
... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
13,
29937,
2191,
1416,
29877,
10223,
362,
13,
29937,
13,
13,
5215,
2897,
13,
5215,
10876,
13,
... |
DL/live_camera_ocr/LC_layer.py | jay-z007/Deep-Learning | 0 | 167181 | <filename>DL/live_camera_ocr/LC_layer.py
import numpy as np
# data
# weights
# strides
# padding(opt)
# def get_patches():
# pass
"""
data : 3d [in_height 4, in_width 4, in_depth 64]
//weights : 5d [in_height (4), in_width (4), in_depth (64), kernel*kernel (3x3), depth (64)]
weights : [kernel, kernel, in_depth, in_... | [
1,
529,
9507,
29958,
19558,
29914,
9258,
29918,
26065,
29918,
8415,
29914,
12182,
29918,
13148,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
13,
29937,
848,
13,
29937,
18177,
13,
29937,
851,
2247,
13,
29937,
7164,
29898,
3670,
29897,
13,
... |
pre_commit_hooks/loaderon_hooks/util/file_helpers.py | alvaroscelza/pre-commit-hooks | 0 | 74856 | <gh_stars>0
# -*- coding: utf-8 -*-
import os
import re
def read_file(file_path, only_first_line=False):
opened_file = open(file_path)
if only_first_line:
lines = opened_file.readline()
else:
lines = opened_file.readlines()
opened_file.close()
return lines
def read_file_line(file... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
2897,
13,
5215,
337,
13,
13,
13,
1753,
1303,
29918,
1445,
29898,
1445,
29918,
2084,
29892,
871,
... |
agent/tests/test_input/test_1/test_kafka_http.py | anodot/daria | 16 | 153927 | <filename>agent/tests/test_input/test_1/test_kafka_http.py<gh_stars>10-100
import json
import subprocess
import traceback
from agent import cli, source, pipeline
from ..test_zpipeline_base import TestInputBase
from ...conftest import get_input_file_path
class TestKafka(TestInputBase):
__test__ = True
params ... | [
1,
529,
9507,
29958,
14748,
29914,
21150,
29914,
1688,
29918,
2080,
29914,
1688,
29918,
29896,
29914,
1688,
29918,
28510,
29918,
1124,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
439... |
chap02/calc/calc_parser.py | lutzhamel/plipy-code | 1 | 145195 | <gh_stars>1-10
'''
Parser for our calc language
explist : ({ NUM, PLUS, MINUS, LPAREN } exp)*
exp : { NUM } NUM
| { PLUS, MINUS } op exp exp
| { LPAREN } LPAREN op exp exp ({ NUM, PLUS, MINUS, LPAREN } exp)* RPAREN
op : { PLUS } PLUS
| { MINUS } MINUS
'''
def explist(stream):
while stream.pointer(... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
12008,
13,
11726,
363,
1749,
22235,
4086,
13,
13,
24516,
391,
584,
21313,
28019,
29892,
16507,
3308,
29892,
341,
1177,
3308,
29892,
365,
16320,
1430,
500,
1518,
11877... |
accounts/admin.py | Muson117/SharedAccountLibrary | 0 | 188642 | <reponame>Muson117/SharedAccountLibrary
''' models registered to Django admin interface '''
from django.contrib import admin
# Register your models here.
from .models import Employee, Account
#admin.site.register(Employee)
#admin.site.register(Account)
@admin.register(Employee)
class EmployeeAdmin(admin.ModelAdmin):... | [
1,
529,
276,
1112,
420,
29958,
14958,
265,
29896,
29896,
29955,
29914,
21741,
10601,
12284,
13,
12008,
4733,
15443,
304,
15337,
4113,
5067,
14550,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
13,
29937,
12577,
596,
4733,
1244,
29889,
13,... |
src/encoded/audit/dataset.py | Lattice-Data/encoded | 0 | 34565 | from snovault import (
AuditFailure,
audit_checker,
)
from .formatter import (
audit_link,
path_to_text,
)
def audit_contributor_institute(value, system):
if value['status'] in ['deleted']:
return
need_inst = []
if 'corresponding_contributors' in value:
for user in value['... | [
1,
515,
5807,
586,
1292,
1053,
313,
13,
1678,
8612,
277,
24155,
29892,
13,
1678,
12990,
277,
29918,
3198,
261,
29892,
13,
29897,
13,
3166,
869,
689,
2620,
1053,
313,
13,
1678,
12990,
277,
29918,
2324,
29892,
13,
1678,
2224,
29918,
517... |
src/simmate/website/core_components/filters/symmetry.py | laurenmm/simmate-1 | 9 | 73930 | <filename>src/simmate/website/core_components/filters/symmetry.py
# -*- coding: utf-8 -*-
from django_filters import rest_framework as filters
from simmate.database.base_data_types import Spacegroup as SpacegroupTable
class Spacegroup(filters.FilterSet):
class Meta:
model = SpacegroupTable
field... | [
1,
529,
9507,
29958,
4351,
29914,
3601,
25046,
29914,
22942,
29914,
3221,
29918,
14036,
29914,
26705,
29914,
11967,
2527,
719,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
95... |
happy_holding_server/db.py | gracewgao/happy-holding | 1 | 122870 | import os
import sqlite3
from flask import current_app, g
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATABASE = os.path.join(BASE_DIR, "data/database.db")
def get_db():
db = getattr(g, '_database', None)
if db is None:
db = g._database = sqlite3.connect(DATABASE)
return db
def close_c... | [
1,
1053,
2897,
13,
5215,
21120,
29941,
13,
13,
3166,
29784,
1053,
1857,
29918,
932,
29892,
330,
13,
13,
25416,
29918,
9464,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
22168,
1445,
1649,
876,
13... |
datasets/YelpDataset.py | aatifjiwani/yelp-rating-predictor | 0 | 156098 | import numpy as np
from torch.utils.data import Dataset
import jsonlines
import json
import random
from tqdm import tqdm
import pandas as pd
try:
from vocab_gen import *
except ImportError:
from datasets.vocab_gen import *
class YelpDataset(Dataset):
def __init__(self, jsonl_file:str, tokenizer=None, max_... | [
1,
1053,
12655,
408,
7442,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
13373,
24541,
13,
5215,
4390,
9012,
13,
5215,
4390,
13,
5215,
4036,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
5215,
11701,
408,
10518,
13,
... |
Facraft.py | lyk91471872/Facraft | 1 | 130667 | import pygame, random, math, sys, sqlite3
# Classes
class Bullet():
def __init__(self, type='a', dmg=1, dx=0):
self.image = pygame.image.load(type+'.png').convert_alpha()
self.dmg = dmg
self.dx = dx
self.existence = True
self.rect = self.image.get_rect()
self.rect.x... | [
1,
1053,
22028,
29892,
4036,
29892,
5844,
29892,
10876,
29892,
21120,
29941,
13,
13,
13,
29937,
4134,
267,
13,
1990,
8313,
1026,
7295,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1134,
2433,
29874,
742,
270,
29885,
29887,
29922,
29896,... |
sshsysmon/drivers/ssh.py | zix99/sshsysmon | 46 | 51918 | from lib.plugins import Driver
import os
from paramiko import SSHClient, RSAKey, AutoAddPolicy
from io import StringIO
class Ssh(Driver):
DEFAULT_KEY_PATH = "~/.ssh/id_rsa"
def __init__(self, host, username='root', password = None, key = None, port = 22, path = "/proc"):
Driver.__init__(self)
self._host = host
... | [
1,
515,
4303,
29889,
12800,
1053,
26391,
13,
5215,
2897,
13,
3166,
1828,
10349,
1053,
22343,
4032,
29892,
390,
8132,
2558,
29892,
11133,
2528,
15644,
13,
3166,
12013,
1053,
1714,
5971,
13,
13,
1990,
317,
845,
29898,
12376,
1125,
13,
12,... |
utils/The_Alchemist_Code/conceptcard.py | heboric/ouro | 3 | 25260 | <reponame>heboric/ouro
from ._main import DIRS,LinkDB,ConvertFields,StrBuff,StrCondition,Embed, Rarity,GitLabLink
import copy
def Conceptcard(iname, page):
#get card dir
card=DIRS['Conceptcard'][iname]
#create basic embed
embed= Embed(
title='', #page name
url=LinkDB('card',iname,'',True,'jp') #page link
)
... | [
1,
529,
276,
1112,
420,
29958,
354,
4089,
293,
29914,
283,
307,
13,
3166,
869,
29918,
3396,
1053,
360,
8193,
29903,
29892,
6595,
4051,
29892,
18455,
14256,
29892,
5015,
29933,
3096,
29892,
5015,
25255,
29892,
6026,
2580,
29892,
390,
279,
... |
botenv/lib/python3.9/site-packages/apscheduler/schedulers/twisted.py | 0xtuytuy/unit-crypto-ski-week-poap-bot | 3 | 130636 | <gh_stars>1-10
from __future__ import absolute_import
from functools import wraps
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.util import maybe_ref
try:
from twisted.internet import reactor as default_reactor
except ImportError: # pragma: nocover
raise ImportError('TwistedSchedule... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
13,
3166,
2090,
312,
8789,
1053,
11463,
567,
13,
13,
3166,
263,
567,
305,
14952,
29889,
816,
287,
352,
... |
artifacts/migrations/0010_auto_20201201_1208.py | Joe-Bentley/team_totem | 0 | 146946 | <reponame>Joe-Bentley/team_totem
# Generated by Django 3.1.3 on 2020-12-01 12:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('artifacts', '0009_auto_20201201_1205'),
]
operations = [
migrations.AlterField(
model_name='art... | [
1,
529,
276,
1112,
420,
29958,
29967,
7297,
29899,
29933,
296,
2330,
29914,
14318,
29918,
4260,
331,
13,
29937,
3251,
630,
491,
15337,
29871,
29941,
29889,
29896,
29889,
29941,
373,
29871,
29906,
29900,
29906,
29900,
29899,
29896,
29906,
29... |
pytype/__version__.py | souravbadami/pytype | 1 | 63513 | <filename>pytype/__version__.py
# pylint: skip-file
__version__ = '2020.04.01'
| [
1,
529,
9507,
29958,
2272,
1853,
29914,
1649,
3259,
26914,
2272,
13,
29937,
282,
2904,
524,
29901,
14383,
29899,
1445,
13,
1649,
3259,
1649,
353,
525,
29906,
29900,
29906,
29900,
29889,
29900,
29946,
29889,
29900,
29896,
29915,
13,
2
] |
ci/render_pipelines.py | vpnachev/gardenlinux | 0 | 160323 | <reponame>vpnachev/gardenlinux
#!/usr/bin/env python3
import dacite
import dataclasses
import itertools
import typing
import yaml
import glci.model
import tkn.model
GardenlinuxFlavour = glci.model.GardenlinuxFlavour
Pipeline = tkn.model.Pipeline
PipelineSpec = tkn.model.PipelineSpec
PipelineMetadata = tkn.model.Pi... | [
1,
529,
276,
1112,
420,
29958,
29894,
21257,
1829,
29894,
29914,
29887,
7879,
9389,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
270,
562,
568,
13,
5215,
848,
13203,
13,
5215,
4256,
8504,
13,
5215,
19229,... |
Latest/venv/Lib/site-packages/apptools/io/h5/utils.py | adamcvj/SatelliteTracker | 1 | 20740 | from contextlib import contextmanager
from .file import H5File
@contextmanager
def open_h5file(filename, mode='r+', **kwargs):
"""Context manager for reading an HDF5 file as an H5File object.
Parameters
----------
filename : str
HDF5 file name.
mode : str
Mode to open the file:
... | [
1,
515,
3030,
1982,
1053,
3030,
12847,
13,
13,
3166,
869,
1445,
1053,
379,
29945,
2283,
13,
13,
13,
29992,
4703,
12847,
13,
1753,
1722,
29918,
29882,
29945,
1445,
29898,
9507,
29892,
4464,
2433,
29878,
29974,
742,
3579,
19290,
1125,
13,... |
interpreter/interpreter.py | JASchilz/RoverMUD | 4 | 61585 | <reponame>JASchilz/RoverMUD
#------------------------------------------------------------------------------
# interpreter/interpreter.py
# Copyright 2011 <NAME>
# Licensed under Apache v2
#------------------------------------------------------------------------------
articles = [" a ", " the "]
def verb(comman... | [
1,
529,
276,
1112,
420,
29958,
29967,
3289,
305,
309,
29920,
29914,
29934,
957,
29924,
15789,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
29937,
259,
26997,
29914,
1639,
1457,
357,
29889,
2272,
13,
29937,
259,
14187,
1266,
29871,
... |
imperative/python/test/unit/core/test_interpreter.py | chenls/MegEngine | 3 | 66879 | <filename>imperative/python/test/unit/core/test_interpreter.py
import subprocess
import sys
import numpy as np
import pytest
import megengine as mge
import megengine.functional as F
from megengine.core._imperative_rt.core2 import (
_set_drop_flag,
_set_swap_flag,
config_async_level,
get_async_level,
)... | [
1,
529,
9507,
29958,
26039,
1230,
29914,
4691,
29914,
1688,
29914,
5441,
29914,
3221,
29914,
1688,
29918,
1639,
1457,
357,
29889,
2272,
13,
5215,
1014,
5014,
13,
5215,
10876,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
11451,
1688,
13,
13... |
pcbdl/netlistsvg.py | maxschommer/pcbdl | 117 | 1612064 | # 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 writing, ... | [
1,
396,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
5087,
365,
12182,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
... |
urls.py | markbate/whiskerboard | 20 | 29760 | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from board.feeds import EventFeed
from board.views import IndexView, ServiceView
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', IndexView.as_view(), name='index'),
url(r'^services/(?P<slug>[-\w]+)$', Serv... | [
1,
515,
9557,
29889,
5527,
29889,
26045,
29889,
4381,
29879,
1053,
15038,
29892,
3160,
29892,
3142,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
3166,
7613,
29889,
1725,
5779,
1053,
6864,
29737,
13,
3166,
7613,
29889,
7406,
1053,
11374,
... |
sdk/attestation/azure-security-attestation/azure/security/attestation/_administration_client.py | lynshi/azure-sdk-for-python | 0 | 171400 | # 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.
# -----------------------------------------------------------------------... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
29899,
13,
29937,
14187,
1266,
313,
29883,
29897,
7783,
15025,
29889,
2178,
10462,
21676,
29889,
13,
29937,
10413,
21144,
1090,
278,
341,
1806,
19245,
... |
newsCrawl/fakeNews/index/views.py | ARIF-KHAN-420/Fake_News | 1 | 150079 | <reponame>ARIF-KHAN-420/Fake_News
from django.shortcuts import render
# Create your views here.
def index(request):
data = {'d' : "Copy a NEWS and paste it."}
return render(request,'index.html',data) | [
1,
529,
276,
1112,
420,
29958,
1718,
6545,
29899,
29968,
29950,
2190,
29899,
29946,
29906,
29900,
29914,
29943,
1296,
29918,
29328,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
13,
29937,
6204,
596,
8386,
1244,
29889,
13,
17... |
get_phish_code.py | xschur/scripts | 0 | 152386 | <reponame>xschur/scripts
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author:schur
'''
Get phish_url in phishtank,and brute to get source code
'''
import aiohttp
import asyncio
import urllib.parse
success_dir = []
success_file = []
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (... | [
1,
529,
276,
1112,
420,
29958,
29916,
816,
332,
29914,
16713,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
13361,
29901,
816,
332,
1... |
src/utils/helpers.py | cengc13/2040FinalProject | 1 | 1617786 | <filename>src/utils/helpers.py
"""Helper functions for code sanity"""
import numpy as np
from tensorflow.keras.callbacks import Callback
from sklearn.metrics import accuracy_score, roc_auc_score
import re
from tqdm.notebook import tqdm
from sklearn import metrics
def regular_encode(texts, tokenizer, maxlen=512):
"... | [
1,
529,
9507,
29958,
4351,
29914,
13239,
29914,
3952,
6774,
29889,
2272,
13,
15945,
29908,
10739,
3168,
363,
775,
9753,
537,
15945,
29908,
13,
5215,
12655,
408,
7442,
13,
3166,
26110,
29889,
3946,
294,
29889,
14035,
29879,
1053,
8251,
162... |
mailadmin.py | FabianWe/pymailadmin | 0 | 160455 | <gh_stars>0
# Copyright (c) 2016, 2017 <NAME>
# MIT License
# 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, modif... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29953,
29892,
29871,
29906,
29900,
29896,
29955,
529,
5813,
29958,
13,
13,
29937,
341,
1806,
19245,
13,
29937,
20894,
2333... |
blisk/run_blisk_py.py | suleymanmuti/CalculiX-Examples | 0 | 113574 | #!/usr/bin/python
import os
os.system("cgx -bg blisk_pre.fbd")
os.system("ccx blisk")
os.system("cgx -bg blisk_post.fbd")
| [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
5215,
2897,
13,
13,
359,
29889,
5205,
703,
29883,
29887,
29916,
448,
16264,
1999,
3873,
29918,
1457,
29889,
29888,
6448,
1159,
13,
359,
29889,
5205,
703,
617,
29916,
1999,
3873,
1159,
13,
35... |
parsl/tests/test_error_handling/test_resource_spec.py | MatthewBM/parsl | 0 | 1417 | <gh_stars>0
import parsl
from parsl.app.app import python_app
from parsl.tests.configs.local_threads import config
from parsl.executors.errors import UnsupportedFeatureError
from parsl.executors import WorkQueueExecutor
@python_app
def double(x, parsl_resource_specification={}):
return x * 2
def test_resource(n... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
610,
2536,
13,
3166,
610,
2536,
29889,
932,
29889,
932,
1053,
3017,
29918,
932,
13,
3166,
610,
2536,
29889,
21150,
29889,
2917,
29879,
29889,
2997,
29918,
28993,
1053,
2295,
13,
3... |
peripheral/supc_u2407/config/supc.py | Unitek-KL/csp | 0 | 168043 | # coding: utf-8
"""*****************************************************************************
* Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* re... | [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
15945,
29908,
7775,
7775,
7775,
7775,
4189,
2328,
29930,
13,
29930,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29947,
20140,
305,
666,
17968,
9266,
29889,
322,
967,
11684,
8819... |
backend/backend/users/models.py | Redaloukil/PackageWay | 0 | 88766 | import uuid
from django.contrib.auth.models import AbstractUser , PermissionsMixin
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from backend.users.managers import UserManager
USER_TYPE = (
("0" , "client"),
("1" , "delivery")
)
class User... | [
1,
1053,
318,
5416,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9794,
1053,
25513,
2659,
1919,
20894,
6847,
29924,
861,
262,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
26045,
1053,
11837,
13,
3166,
9557,
29889,
... |
scripts/chi-to-json.py | paperquest/paperquest.github.io | 14 | 125132 | ################################################################################
#
# Parses a tab-separated dataset file of papers from CHI and UIST and
# turns it into JSON. Each row in the file has the columns:
#
# 1. conference
# 2. year
# 3. title
# 4. abstract
# 5. authors
# 6. doi
# 7. references
#
# where auth... | [
1,
835,
13383,
13383,
13383,
13383,
7346,
4136,
29937,
13,
29937,
29871,
13,
29937,
1459,
29879,
267,
263,
4434,
29899,
25048,
630,
8783,
934,
310,
15055,
515,
5868,
29902,
322,
3740,
1254,
322,
13,
29937,
12169,
372,
964,
4663,
29889,
... |
python/q904/q904.py | MatthewTsan/Leetcode | 0 | 169773 | from typing import List
"""
keyPoint:
sliding window. facing problems with multiple same numbers: consider sum it up.
"""
class Solution:
def totalFruit(self, tree: List[int]) -> int:
if len(tree) == 0:
return 0
treeList = []
totalNumber = 1
for i in range(len(tr... | [
1,
515,
19229,
1053,
2391,
13,
13,
15945,
29908,
13,
1989,
5228,
29901,
13,
1678,
2243,
4821,
3474,
29889,
14870,
4828,
411,
2999,
1021,
3694,
29901,
2050,
2533,
372,
701,
29889,
13,
15945,
29908,
13,
13,
13,
13,
1990,
24380,
29901,
1... |
LaylaCoin/main.py | Bhaney44/AlgorandDevelopment | 0 | 118244 | <gh_stars>0
#Imports
from config import *
from algosdk.v2client import algod
from algosdk import account, mnemonic
from algosdk.future.transaction import write_to_file
from algosdk.future.transaction import AssetConfigTxn, AssetTransferTxn
from util import sign_and_send, balance_formatter
from algosdk.future.transactio... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
1888,
4011,
13,
3166,
2295,
1053,
334,
13,
3166,
3093,
359,
8181,
29889,
29894,
29906,
4645,
1053,
3093,
397,
13,
3166,
3093,
359,
8181,
1053,
3633,
29892,
286,
15344,
8927,
13,
... |
ptstat/dist/uniform.py | timmyzhao/ptstat | 116 | 86080 | import torch
from torch.autograd import Variable
from ptstat.core import RandomVariable, _to_v
# TODO: Implement Uniform(a, b) constructor.
class Uniform(RandomVariable):
"""
Uniform(0, 1) iid rv.
"""
def __init__(self, size, cuda=False):
super(Uniform, self).__init__()
assert len(size... | [
1,
1053,
4842,
305,
13,
3166,
4842,
305,
29889,
1300,
468,
3665,
1053,
28736,
13,
3166,
19592,
6112,
29889,
3221,
1053,
16968,
16174,
29892,
903,
517,
29918,
29894,
13,
13,
13,
29937,
14402,
29901,
1954,
2037,
853,
5560,
29898,
29874,
2... |
migrations/versions/f7570724d06d_increase_length_of_artist_name_column.py | mukul-mehta/C-3PO | 34 | 55320 | """Increase length of artist name column
Revision ID: <KEY>
Revises: <KEY>8
Create Date: 2020-12-27 00:44:46.286228
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f<PASSWORD>'
down_revision = '<KEY>'
branch_labels = None
depends_on = None
def upgrade():
... | [
1,
9995,
797,
1037,
559,
3309,
310,
7664,
1024,
1897,
13,
13,
1123,
4924,
3553,
29901,
529,
10818,
29958,
13,
1123,
1730,
267,
29901,
529,
10818,
29958,
29947,
13,
4391,
4712,
29901,
29871,
29906,
29900,
29906,
29900,
29899,
29896,
29906,... |
slam.py | yycho0108/GraphSlam3D | 8 | 119314 | <filename>slam.py<gh_stars>1-10
"""
GraphSlam 3D Implementation.
TODO : support global initialization (initial pose + landmark estimates)
"""
import numpy as np
from utils import qmath_np
def block(ar):
""" Convert Block Matrix to Dense Matrix """
ni,nj,nk,nl = ar.shape
return np.swapaxes(ar, 1, 2).reshap... | [
1,
529,
9507,
29958,
2536,
314,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
9527,
29903,
5288,
29871,
29941,
29928,
1954,
14607,
29889,
13,
13,
4986,
3970,
584,
2304,
5534,
17865,
... |
optimizers.py | ivallesp/awesome-optimizers | 37 | 169050 | import numpy as np
def run_optimizer(opt, cost_f, iterations, *args, **kwargs):
errors = [cost_f.eval(cost_f.x_start, cost_f.y_start)]
xs,ys= [cost_f.x_start],[cost_f.y_start]
for epochs in range(iterations):
x, y= opt.step(*args, **kwargs)
xs.append(x)
ys.append(y)
errors.... | [
1,
1053,
12655,
408,
7442,
13,
13,
13,
1753,
1065,
29918,
20640,
3950,
29898,
3670,
29892,
3438,
29918,
29888,
29892,
24372,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
1678,
4436,
353,
518,
18253,
29918,
29888,
29889,
14513,
29898,
1... |
src/core/lib/errors.py | lilliputten/cam-rpi-server-2202 | 0 | 108547 | <gh_stars>0
# -*- coding:utf-8 -*-
# @module logger
# @since 2020.02.23, 02:18
# @changed 2022.02.24, 00:53
import traceback
# from . import utils
from . import yamlSupport
def toString(error, show_stacktrace=False):
errorName = type(error).__name__
errorExtra = str(error)
# TODO: Add all args?
e... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
29937,
732,
5453,
17927,
13,
29937,
732,
16076,
29871,
29906,
29900,
29906,
29900,
29889,
29900,
29906,
29... |
cgmodsel/base_solver.py | chrlen/cgmodsel | 0 | 109921 | # Copyright (c) 2019 <NAME> (<EMAIL>)
"""
@author: <NAME>
base class for CG models and solvers
"""
import abc
from typing import Iterable
import numpy as np
#from cgmodsel.models.model_base import get_modeltype
from cgmodsel.models.model_pwsl import ModelPWSL
from cgmodsel.models.model_pw import ModelPW
from cgmodsel... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29929,
529,
5813,
29958,
313,
29966,
26862,
6227,
12948,
13,
15945,
29908,
13,
29992,
8921,
29901,
529,
5813,
29958,
13,
13,
3188,
770,
363,
8446,
4733,
322,
899,
874,
... |
temporalio/bridge/proto/external_data/external_data_pb2.py | cretz/temporal-sdk-python | 55 | 1618002 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: temporal/sdk/core/external_data/external_data.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobu... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
278,
9608,
6835,
6516,
29889,
29871,
11662,
6058,
11488,
29991,
13,
29937,
2752,
29901,
25406,
29914,
15348,
29914,
3221,
29914,
231... |
lantz/drivers/newport/__init__.py | noelniles/lantz | 88 | 146796 | # -*- coding: utf-8 -*-
"""
lantz.drivers.newport
~~~~~~~~~~~~~~~~~~~~~
:company: Newport.
:description: Test and Measurement Equipment.
:website: http://www.newport.com/
---
:copyright: 2015 by Lantz Authors, see AUTHORS for more details.
:license: BSD,
"""
from .powermeter1830c im... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
1678,
301,
424,
29920,
29889,
24477,
874,
29889,
1482,
637,
13,
1678,
3695,
26594,
26594,
14087,
13,
13,
1678,
584,
14518,
29901,
1570,... |
covid_xrays/tests/test_client.py | hosamshahin/covid_xrays | 1 | 119212 | <gh_stars>1-10
import json
from base64 import b64encode
from app.models.users import User
from app.models.logs import Log
import pytest
def get_api_headers(username, password):
return {
'Authorization': 'Basic ' + b64encode(
(username + ':' + password).encode('utf-8')).decode('utf-8'),
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
4390,
13,
3166,
2967,
29953,
29946,
1053,
289,
29953,
29946,
12508,
13,
3166,
623,
29889,
9794,
29889,
7193,
1053,
4911,
13,
3166,
623,
29889,
9794,
29889,
2075... |
scripts/imdb_precompute_test.py | jovialio/visualDet3D | 250 | 173932 | from copy import deepcopy
import torch
import cv2
import time
import pickle
import os
import numpy as np
import ctypes
from _path_init import *
from visualDet3D.utils.timer import Timer
from visualDet3D.utils.utils import cfg_from_file
from visualDet3D.data.kitti.kittidata import KittiData
def read_one_split(cfg, i... | [
1,
515,
3509,
1053,
6483,
8552,
13,
5215,
4842,
305,
13,
5215,
13850,
29906,
13,
5215,
931,
13,
5215,
5839,
280,
13,
5215,
2897,
13,
5215,
12655,
408,
7442,
13,
5215,
274,
8768,
13,
13,
3166,
903,
2084,
29918,
2344,
1053,
334,
13,
... |
network_crawler/__main__.py | luigi-riefolo/network_crawler | 0 | 151773 | """Main stub."""
| [
1,
9995,
6330,
19281,
1213,
15945,
13,
2
] |
tests/ssim/ssim_test.py | XanderStaal/ganslate | 0 | 56541 | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
Changes made:
window is now 3D with size (1, 1, win_size, win_size, win_si`ze)
All convolutions for mean and variance comp. are 3D Conv
"""
impo... | [
1,
9995,
13,
11882,
1266,
313,
29883,
29897,
13327,
29892,
9266,
29889,
322,
967,
23736,
1078,
29889,
13,
4013,
2752,
775,
338,
7794,
21144,
1090,
278,
341,
1806,
19405,
1476,
297,
278,
13,
27888,
1430,
1660,
934,
297,
278,
3876,
3884,
... |
imagepy/menus/Plugins/Manager/console_wgt.py | cycleuser/imagepy | 1 | 25337 | # -*- coding: utf-8 -*-
import wx
from wx.py.shell import Shell
import scipy.ndimage as ndimg
import numpy as np
# from imagepy import IPy
from imagepy.core.engine import Free
from sciapp import Source
cmds = {'app':'app', 'np':np, 'ndimg':ndimg, 'update':None, 'get_img':None}
class Macros(dict):
def __init__(se... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
26437,
13,
3166,
26437,
29889,
2272,
29889,
15903,
1053,
1383,
514,
13,
5215,
4560,
2272,
29889,
299,
3027,
408,
29871,
299,
2492,
13,
5215,
12655,... |
kaggle_cat-in-the-dat.py | ak110/applications | 0 | 140022 | #!/usr/bin/env python3
"""Categorical Feature Encoding Challengeの実験用コード。"""
import pathlib
import numpy as np
import pandas as pd
import sklearn.metrics
import pytoolkit as tk
nfold = 5
params = {
"objective": "binary",
"metric": "auc",
"learning_rate": 0.01,
"nthread": -1,
# "verbosity": -1,
... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
15945,
29908,
29907,
20440,
936,
5169,
1535,
11346,
3689,
27211,
30199,
31525,
236,
171,
150,
30406,
30459,
30185,
30335,
30267,
15945,
29908,
13,
5215,
2224,
1982,
13,
13,
5215,
... |
src/python/pymm/memoryresource.py | IBM/artemis | 0 | 199388 | <reponame>IBM/artemis
#
# Copyright [2021] [IBM Corporation]
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless require... | [
1,
529,
276,
1112,
420,
29958,
8979,
29924,
29914,
442,
331,
275,
13,
29937,
29871,
13,
29937,
1678,
14187,
1266,
518,
29906,
29900,
29906,
29896,
29962,
518,
8979,
29924,
15025,
29962,
13,
29937,
1678,
10413,
21144,
1090,
278,
13380,
192... |
heat/engine/attributes.py | pshchelo/heat | 0 | 133540 | <reponame>pshchelo/heat
#
# 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... | [
1,
529,
276,
1112,
420,
29958,
567,
29882,
305,
7078,
29914,
354,
271,
13,
29937,
13,
29937,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
366,
1122,
13,
2... |
config.py | vanmo9/One-Minute-Pitches | 0 | 1614051 | <filename>config.py
import os
class Config:
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://mohamed:911@localhost/mo'
# email configurations
# We setup the SMTP server and configure the port to use the gmail SMTP server port.
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
# Then... | [
1,
529,
9507,
29958,
2917,
29889,
2272,
13,
5215,
2897,
29871,
13,
13,
1990,
12782,
29901,
13,
1678,
3758,
1964,
3210,
12665,
29979,
29918,
25832,
27982,
29918,
15551,
353,
525,
29272,
29974,
567,
29891,
9708,
29887,
29906,
597,
29885,
11... |
cogs/wallet.py | virtualCrypto-discord/VCrypto-Utilities | 0 | 186621 | from discord.ext import commands
from bot import MyBot
from virtualcrypto import AsyncVirtualCryptoClient
class Wallet(commands.Cog):
def __init__(self, bot: MyBot):
self.bot = bot
self.vcrypto: AsyncVirtualCryptoClient = self.bot.vcrypto
@commands.command(aliases=['bal', 'money'])
@comma... | [
1,
515,
2313,
536,
29889,
1062,
1053,
8260,
13,
3166,
9225,
1053,
1619,
29933,
327,
13,
3166,
6901,
29883,
17929,
1053,
20688,
21287,
29907,
17929,
4032,
13,
13,
13,
1990,
5260,
1026,
29898,
26381,
29889,
29907,
468,
1125,
13,
1678,
822... |
CH10/CH10c_Faster_Transformer_model_serving_using_Tensorflow_Extended/main.py | sharif618/Mastering-Transformers | 155 | 173997 | <filename>CH10/CH10c_Faster_Transformer_model_serving_using_Tensorflow_Extended/main.py
import uvicorn
from fastapi import FastAPI
from pydantic import BaseModel
from transformers import BertTokenizerFast, BertConfig
import requests
import json
import numpy as np
tokenizer = BertTokenizerFast.from_pretrained("nateraw/... | [
1,
529,
9507,
29958,
3210,
29896,
29900,
29914,
3210,
29896,
29900,
29883,
29918,
29943,
1901,
29918,
13372,
261,
29918,
4299,
29918,
643,
1747,
29918,
4746,
29918,
29911,
6073,
1731,
29918,
5647,
2760,
29914,
3396,
29889,
2272,
13,
5215,
3... |
flat_sales/flat_sales/doctype/flat_payment_schedule/test_flat_payment_schedule.py | swamedh/flat_sales | 1 | 124961 | # Copyright (c) 2013, deepak and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
test_records = frappe.get_test_records('Flat Payment Schedule')
class TestFlatPaymentSchedule(unittest.TestCase):
pass
| [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29941,
29892,
6483,
557,
322,
2866,
1091,
29560,
13,
29937,
2823,
19405,
29889,
3945,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
5215,
52... |
9020/main.py | yeonghoey/baekjoon | 1 | 21328 | MAX_N = 10000 + 1
isprime = [True] * (MAX_N)
isprime[0] = False
isprime[1] = False
for i in range(2, MAX_N):
if not isprime[i]:
continue
for j in range(i+i, MAX_N, i):
isprime[j] = False
T = int(input())
for _ in range(T):
n = int(input())
for i in range(n//2, 1, -1):
if isprim... | [
1,
18134,
29918,
29940,
353,
29871,
29896,
29900,
29900,
29900,
29900,
718,
29871,
29896,
13,
275,
10080,
353,
518,
5574,
29962,
334,
313,
12648,
29918,
29940,
29897,
13,
275,
10080,
29961,
29900,
29962,
353,
7700,
13,
275,
10080,
29961,
... |
dandeliondiary/household/tests.py | amberdiehl/dandeliondiary_project | 0 | 56233 | <gh_stars>0
import datetime
import json
from django.core.exceptions import ObjectDoesNotExist
from django.test import Client
from django.test import TestCase
from django.urls import reverse
from django.contrib.auth.models import User, Group
from account.models import Account
from core.models import BudgetModel, RigT... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12865,
13,
5215,
4390,
13,
13,
3166,
9557,
29889,
3221,
29889,
11739,
29879,
1053,
4669,
25125,
3664,
1252,
391,
13,
13,
3166,
9557,
29889,
1688,
1053,
12477,
13,
3166,
9557,
2988... |
Language Proficiency (Python)/ginortS.py | Muntaha-Islam0019/HackerRank-Solutions | 0 | 194929 | <reponame>Muntaha-Islam0019/HackerRank-Solutions
import string
print(*sorted(input(), key=(string.ascii_letters + '1357902468').index), sep='')
| [
1,
529,
276,
1112,
420,
29958,
29924,
1657,
25613,
29899,
29902,
2536,
314,
29900,
29900,
29896,
29929,
29914,
29950,
28940,
29934,
804,
29899,
13296,
17925,
13,
5215,
1347,
13,
2158,
10456,
24582,
29898,
2080,
3285,
1820,
7607,
1807,
29889... |
mingus/core/views.py | brixtonasias/sk-mingus | 1 | 79133 | from django.utils import simplejson
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from basic.blog.models import Post, Category
from django.conf import settings
from django import http
from django.template import loader, Context
from django_proxy.models import Proxy
from django.view... | [
1,
515,
9557,
29889,
13239,
1053,
2560,
3126,
13,
3166,
9557,
29889,
1124,
1053,
9056,
5103,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
679,
29918,
3318,
29918,
272,
29918,
29946,
29900,
29946,
13,
3166,
6996,
29889,
7312,
29889,
97... |
tests/webdriver_tests/test_content.py | sean-hayes/zoom | 1 | 196260 | <filename>tests/webdriver_tests/test_content.py<gh_stars>1-10
# -*- coding: utf-8 -*-
"""
zoom.tests.webdriver_tests.test_admin
test admin app functions
"""
from .common import WebdriverTestCase
class ContentTests(WebdriverTestCase):
"""Content App"""
def setUp(self):
WebdriverTestCase.s... | [
1,
529,
9507,
29958,
21150,
29914,
29813,
29918,
21150,
29914,
1688,
29918,
3051,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,... |
mysite/Tweet_Generator/urls.py | avinsit123/Tweet-o-Pedia | 1 | 157596 | <gh_stars>1-10
from django.conf.urls import url
from . import views
urlpatterns=[
url(r'^$',views.Tweet_form,name='Tweetform'),
url('yumyum',views.ProcessForm,name='vahmc')
]
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
13,
13,
3166,
869,
1053,
8386,
13,
13,
2271,
11037,
29879,
11759,
13,
632,
3142,
29898,
29878,
29915,
29985,
... |
src/duplex_feature_extraction_cv.py | BorisAnimal/across_sensor_har | 0 | 106085 | from keras.models import load_model, Model
import numpy as np
import os
from src.data.shl_data import shl_min, shl_max, mean, std
from tqdm import tqdm
import seaborn as sns
import shutil
from loguru import logger
x_min = shl_min()[np.newaxis, np.newaxis, :]
x_max = shl_max()[np.newaxis, np.newaxis, :]
x_mean = mean()... | [
1,
515,
13023,
294,
29889,
9794,
1053,
2254,
29918,
4299,
29892,
8125,
13,
5215,
12655,
408,
7442,
13,
5215,
2897,
13,
3166,
4765,
29889,
1272,
29889,
845,
29880,
29918,
1272,
1053,
528,
29880,
29918,
1195,
29892,
528,
29880,
29918,
3317,... |
fcts/blurple-old.py | ZRunner/ZBot | 19 | 1600443 | <filename>fcts/blurple-old.py
import datetime
import io
import math
import time
from io import BytesIO
import aiohttp
import discord
from discord.ext import commands
from discord.ext.commands.cooldowns import BucketType
from PIL import Image, ImageEnhance, ImageSequence
from resizeimage import resizeimage
from utils i... | [
1,
529,
9507,
29958,
29888,
312,
29879,
29914,
2204,
332,
552,
29899,
1025,
29889,
2272,
13,
5215,
12865,
13,
5215,
12013,
13,
5215,
5844,
13,
5215,
931,
13,
3166,
12013,
1053,
2648,
2167,
5971,
13,
13,
5215,
263,
601,
1124,
13,
5215,... |
Colab_setup/sample_colab_cell.py | FredAmouzgar/46_Simple_python_Exercise | 0 | 98992 | <gh_stars>0
"""
Instruction:
Copy this code to the first cell of the Jupyter notebook you want to run in the Google Colab. It automatically configures it for rendering.
"""
import sys, os
if 'google.colab' in sys.modules and not os.path.exists('.done'):
!wget -q https://raw.githubusercontent.com/FredAmouzgar/py... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
13,
3379,
4080,
29901,
13,
1678,
14187,
445,
775,
304,
278,
937,
3038,
310,
278,
27441,
25547,
451,
19273,
366,
864,
304,
1065,
297,
278,
5087,
1530,
370,
29889,
739,
63... |
changePositionToIndexUpstream.py | oicr-gsi/bam-statistics | 0 | 44427 | #!/usr/bin/python
## my upstream target intervals were of size 1000 each.
import sys
# use stdin if stdin is full
if not sys.stdin.isatty():
indexFile = sys.stdin
#otherwise, read from input
else:
try:
input_file = sys.argv[1]
except IndexError:
message = 'need filename as first argument if stdin is not ful... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
13,
2277,
590,
701,
5461,
3646,
18747,
892,
310,
2159,
29871,
29896,
29900,
29900,
29900,
1269,
29889,
13,
13,
13,
5215,
10876,
13,
13,
29937,
671,
3659,
262,
565,
3659,
262,
338,
2989,
13... |
ccnpy/tests/test_Name.py | mmosko/ccnpy | 1 | 74549 | # Copyright 2019 <NAME>
#
# 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,... | [
1,
396,
29871,
14187,
1266,
29871,
29906,
29900,
29896,
29929,
529,
5813,
29958,
13,
29937,
13,
29937,
29871,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937... |
codes/blocks/sand.py | shenjackyuanjie/Minecraft | 2 | 121871 |
def ben_update():
return
def ben_random_tick():
return
| [
1,
29871,
13,
13,
1753,
3856,
29918,
5504,
7295,
13,
1678,
736,
13,
13,
13,
1753,
3856,
29918,
8172,
29918,
24667,
7295,
13,
1678,
736,
13,
2
] |
assets/src/ba_data/python/bastd/ui/purchase.py | SahandAslani/ballistica | 0 | 162978 | # Copyright (c) 2011-2020 <NAME>
#
# 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, modify, merge, publish, distrib... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29896,
29899,
29906,
29900,
29906,
29900,
529,
5813,
29958,
13,
29937,
13,
29937,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
... |
models/ir_model.py | OSevangelist/vsf-odoo | 84 | 71571 | from odoo import fields, models
class IrModel(models.Model):
_inherit = 'ir.model'
rest_api = fields.Boolean('REST API', default=True,
help="Allow this model to be fetched through REST API")
| [
1,
515,
288,
1867,
29877,
1053,
29871,
4235,
29892,
4733,
13,
13,
1990,
6600,
3195,
29898,
9794,
29889,
3195,
1125,
13,
13,
1678,
903,
262,
27069,
353,
525,
381,
29889,
4299,
29915,
13,
1678,
1791,
29918,
2754,
353,
4235,
29889,
18146,
... |
models/Family.py | Eric-Fernandes-529/Final_Project_SW555 | 0 | 171104 | class Family:
'''
This is the class for Family.
id is the only variable that is required. If other variable does not exist, it would return None
If children does not exist, it would return an empty list
all date value are passed in as str, and saved as tuple with formate (year, month, day)
'''
... | [
1,
770,
14662,
29901,
13,
1678,
14550,
13,
1678,
910,
338,
278,
770,
363,
14662,
29889,
13,
1678,
1178,
338,
278,
871,
2286,
393,
338,
3734,
29889,
960,
916,
2286,
947,
451,
1863,
29892,
372,
723,
736,
6213,
13,
1678,
960,
4344,
947... |
thermo/flash/__init__.py | RoryKurek/thermo | 380 | 188466 | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2019, 2020 <NAME> <<EMAIL>>
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 wi... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
12008,
1451,
331,
936,
22557,
12037,
9538,
313,
1451,
3352,
29931,
467,
22310,
1907,
363,
1889,
1904,
292,
29889,
13,
11882,
1266,
313,
29907,
29897,
298... |
improved_ddm/run_multihead_split.py | mlii/variational-continual-learning | 0 | 168059 | import numpy as np
import tensorflow as tf
import gzip
import cPickle
import sys
sys.path.extend(['alg/'])
import vcl
import coreset
import utils
class SplitMnistGenerator():
def __init__(self):
# Open data file
f = gzip.open('data/mnist.pkl.gz', 'rb')
train_set, valid_set, test_set = cPic... | [
1,
1053,
12655,
408,
7442,
13,
5215,
26110,
408,
15886,
13,
5215,
330,
7554,
13,
5215,
274,
29925,
860,
280,
13,
5215,
10876,
13,
9675,
29889,
2084,
29889,
21843,
18959,
9564,
29914,
11287,
13,
5215,
325,
695,
13,
5215,
28337,
300,
13... |
django_push/__init__.py | bwold001/django-push | 38 | 1615540 | __version__ = '1.1'
UA = 'django-push/{0}'.format(__version__)
| [
1,
4770,
3259,
1649,
353,
525,
29896,
29889,
29896,
29915,
13,
13,
29965,
29909,
353,
525,
14095,
29899,
5910,
19248,
29900,
29913,
4286,
4830,
22168,
3259,
1649,
29897,
13,
2
] |
catalog/client/services/catalog.py | eoss-cloud/madxxx_catalog_api | 0 | 11611 | <gh_stars>0
#-*- coding: utf-8 -*-
""" EOSS catalog system
functionality for the catalog endpoint
"""
from utilities.web_utils import remote_file_exists
__author__ = "<NAME>, <NAME>"
__copyright__ = "Copyright 2016, EOSS GmbH"
__credits__ = ["<NAME>", "<NAME>"]
__license__ = "GPL"
__version__ = "1.0.0"
__maintainer_... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
29899,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
382,
29949,
1799,
16653,
1788,
13,
9863,
363,
278,
16653,
16248,
13,
15945,
29908,
... |
wmt-etl/config.py | ministryofjustice/hmpps-wmt | 3 | 31555 | import os
DB_SERVER = os.getenv('WMT_DB_SERVER', 'localhost')
DB_NAME = os.getenv('WMT_DB_NAME', 'wmt_db')
DB_USERNAME = os.getenv('WMT_DB_USERNAME', 'wmt')
DB_PASSWORD = os.getenv('WMT_DB_PASSWORD', '<PASSWORD>')
| [
1,
1053,
2897,
13,
13,
4051,
29918,
18603,
353,
2897,
29889,
657,
6272,
877,
29956,
11490,
29918,
4051,
29918,
18603,
742,
525,
7640,
1495,
13,
4051,
29918,
5813,
353,
2897,
29889,
657,
6272,
877,
29956,
11490,
29918,
4051,
29918,
5813,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.