hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
9ce720919b9f904e57fa538a3db7657a3599f63d
136
py
Python
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
5,362
2016-07-21T02:38:46.000Z
2022-03-23T13:34:51.000Z
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
5,897
2016-07-21T05:05:49.000Z
2022-03-17T09:21:35.000Z
pokemongo_bot/cell_workers/migrations/shadowban_log.py
timgates42/PokemonGo-Bot
5e80f20760f32478a84a8f0ced7ca24cdf41fe03
[ "MIT" ]
3,379
2016-07-21T02:38:48.000Z
2022-03-30T02:46:57.000Z
from yoyo import step step( "CREATE TABLE IF NOT EXISTS shadowban_log (username text, dated datetime DEFAULT CURRENT_TIMESTAMP)" )
22.666667
104
0.779412
0
0
0
0
0
0
0
0
100
0.735294
9ce9127e33056554245ec6ea9cf2a6b7954bef54
8,576
py
Python
test/unit/test_disco_elb.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
test/unit/test_disco_elb.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
4
2016-03-22T17:04:04.000Z
2016-03-23T18:03:45.000Z
test/unit/test_disco_elb.py
Angakkuit/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
"""Tests of disco_elb""" from unittest import TestCase from mock import MagicMock from moto import mock_elb from disco_aws_automation import DiscoELB TEST_ENV_NAME = 'unittestenv' TEST_HOSTCLASS = 'mhcunit' TEST_VPC_ID = 'vpc-56e10e3d' # the hard coded VPC Id that moto will always return TEST_DOMAIN_NAME = 'test.exam...
39.33945
105
0.645872
8,063
0.940182
0
0
6,804
0.793377
0
0
1,886
0.219916
9ce978cb516c10830f3bfe23b46648f71d09abc3
517
py
Python
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
Flask/6. Profile Pages/config.py
AndresAlb/Tutorials
d23800806f7286c405c45745f5e5a0bb7d8c954e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 15 23:54:49 2020 @author: Andres Angeles Albores """ import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): # Prevent CSRF attack on web forms SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess' # Define th...
25.85
71
0.682785
350
0.676983
0
0
0
0
0
0
244
0.471954
9ce9bb2a8ae8eb5792bff17cb6dc037088a6cdd3
2,765
py
Python
colorselect.py
aimuch/CarND-Advanced-Lane-Lines
d955d31e4f8d72b2651dd9ce1e58d5be64e9004f
[ "MIT" ]
1
2020-12-17T11:09:19.000Z
2020-12-17T11:09:19.000Z
colorselect.py
aimuch/CarND-Advanced-Lane-Lines
d955d31e4f8d72b2651dd9ce1e58d5be64e9004f
[ "MIT" ]
null
null
null
colorselect.py
aimuch/CarND-Advanced-Lane-Lines
d955d31e4f8d72b2651dd9ce1e58d5be64e9004f
[ "MIT" ]
1
2020-12-17T11:09:20.000Z
2020-12-17T11:09:20.000Z
# coding: utf-8 # In[2]: import cv2 import numpy as np import sys # callback function def nothing(x): pass # import image inputImageName = 'test_images/test1.jpg' try: img = cv2.imread(inputImageName) # BRG WindowName = 'Color Select V1.0' cv2.namedWindow(WindowName) cv2.imshow(WindowName,i...
30.054348
82
0.713562
0
0
0
0
0
0
0
0
349
0.126221
9ceab29943b8310e28f9a2de61cf44e20bdc7625
1,918
py
Python
src/deploy/tasks.py
bluesnailstw/flamingos
e13bf4ac4caa5fa50e45d7285877c64218c49723
[ "Apache-2.0" ]
null
null
null
src/deploy/tasks.py
bluesnailstw/flamingos
e13bf4ac4caa5fa50e45d7285877c64218c49723
[ "Apache-2.0" ]
null
null
null
src/deploy/tasks.py
bluesnailstw/flamingos
e13bf4ac4caa5fa50e45d7285877c64218c49723
[ "Apache-2.0" ]
null
null
null
from salt.salt_api import Pepper from asset.models import Host, HostGroup from deploy.models import Task, TASK_STATUS, History from django.conf import settings from users.models import User from pillars.models import Vars, Configuration from redis import StrictRedis def get_all_hosts(task: Task): hosts = set() ...
36.188679
95
0.642857
0
0
0
0
0
0
0
0
210
0.109489
9cec9b5ef5691da4f654da65ea5fb44ee14018a8
63
py
Python
certifi/__init__.py
andrew-aladev/certifi-shim
efbda777bfbdcf0676a789b15010b43a54e4da1a
[ "CC0-1.0" ]
null
null
null
certifi/__init__.py
andrew-aladev/certifi-shim
efbda777bfbdcf0676a789b15010b43a54e4da1a
[ "CC0-1.0" ]
null
null
null
certifi/__init__.py
andrew-aladev/certifi-shim
efbda777bfbdcf0676a789b15010b43a54e4da1a
[ "CC0-1.0" ]
null
null
null
from certifi.core import contents, where __version__ = "9999"
15.75
40
0.777778
0
0
0
0
0
0
0
0
6
0.095238
9cecd887cd2d7bcda8c9d8ae4eceae2fd8fa82da
547
py
Python
PythonDAdata/3358OS_07_Code/code7/spectrum.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:54.000Z
2020-02-22T18:55:54.000Z
PythonDAdata/3358OS_07_Code/code7/spectrum.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
null
null
null
PythonDAdata/3358OS_07_Code/code7/spectrum.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:57.000Z
2020-02-22T18:55:57.000Z
import numpy as np import statsmodels.api as sm import matplotlib.pyplot as plt from scipy.fftpack import rfft from scipy.fftpack import fftshift data_loader = sm.datasets.sunspots.load_pandas() sunspots = data_loader.data["SUNACTIVITY"].values transformed = fftshift(rfft(sunspots)) plt.subplot(311) plt.plot(sunspot...
23.782609
55
0.776965
0
0
0
0
0
0
0
0
55
0.100548
9ceebb2258c9e0ad6b3d981ef9099fdb41bb09c6
4,170
py
Python
task02/laughter_classification/sspnet_data_sampler.py
rebryk/SPbAU-Speech-Recognition
8b1993d17d223f507f4e80154823a075e713ee52
[ "MIT" ]
1
2019-04-22T14:10:46.000Z
2019-04-22T14:10:46.000Z
task02/laughter_classification/sspnet_data_sampler.py
rebryk/SPbAU-Speech-Recognition
8b1993d17d223f507f4e80154823a075e713ee52
[ "MIT" ]
15
2020-01-28T22:25:14.000Z
2022-03-11T23:24:04.000Z
task02/laughter_classification/sspnet_data_sampler.py
rebryk/SPbAU-Speech-Recognition
8b1993d17d223f507f4e80154823a075e713ee52
[ "MIT" ]
1
2019-04-22T14:01:21.000Z
2019-04-22T14:01:21.000Z
import os from os.path import join import numpy as np import pandas as pd import scipy.io.wavfile as wav from laughter_classification.utils import chunks, in_any, interv_to_range, get_sname from laughter_prediction.sample_audio import sample_wav_by_time, sample_by_frames class SSPNetDataSampler: """ Class f...
37.567568
117
0.652518
3,728
0.894005
159
0.038129
630
0.151079
0
0
956
0.229257
9cf06799512c6201d366260a7eba4f0f1f5ed5fa
3,292
py
Python
cvpods/checkpoint/utils.py
tonysy/cvpods
e322d7842ca0e34b1ef6237ea6d350633efc793a
[ "Apache-2.0" ]
758
2021-03-11T08:14:26.000Z
2022-03-31T07:24:13.000Z
cvpods/checkpoint/utils.py
tonysy/cvpods
e322d7842ca0e34b1ef6237ea6d350633efc793a
[ "Apache-2.0" ]
58
2020-12-04T19:47:10.000Z
2022-03-30T06:52:13.000Z
cvpods/checkpoint/utils.py
tonysy/cvpods
e322d7842ca0e34b1ef6237ea6d350633efc793a
[ "Apache-2.0" ]
110
2021-03-18T01:59:31.000Z
2022-03-18T21:26:56.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import collections from collections import defaultdict from termcolor import colored def get_missing_parameters_message(keys: list): """ Get a logging-friendly message to report parameter names (keys) that are in ...
29.132743
79
0.600547
0
0
0
0
0
0
0
0
1,639
0.497874
9cf240d5a20da7ecb3612e9bcfa120ca7475b3f0
1,653
py
Python
tests/demtools/scripts/test_input_path.py
uw-cryo/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
null
null
null
tests/demtools/scripts/test_input_path.py
uw-cryo/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
3
2019-09-30T19:40:42.000Z
2019-10-27T02:23:58.000Z
tests/demtools/scripts/test_input_path.py
jomey/dem-tools
c99a74b3361bca7d1733e9699c3cedd25a5b5948
[ "MIT" ]
1
2020-02-07T07:15:13.000Z
2020-02-07T07:15:13.000Z
import argparse from pathlib import Path import pytest from demtools.scripts import InputPath @pytest.fixture(scope='module') def tmp_test_file(tmp_input_path): file = Path(tmp_input_path.join('test_input_file.txt')) print(str(file)) file.touch(mode=0o644, exist_ok=True) return file @pytest.fixtur...
28.016949
80
0.687235
1,174
0.710224
0
0
371
0.22444
0
0
155
0.093769
9cf34c2b4493cdfb7aff2d968769acb0ab4ee469
578
py
Python
song_generator/tests.py
gorbulus/song_generator
ba527e7a0151177f794995d0d79fdeffff45b7fb
[ "MIT" ]
null
null
null
song_generator/tests.py
gorbulus/song_generator
ba527e7a0151177f794995d0d79fdeffff45b7fb
[ "MIT" ]
null
null
null
song_generator/tests.py
gorbulus/song_generator
ba527e7a0151177f794995d0d79fdeffff45b7fb
[ "MIT" ]
null
null
null
''' # tests.py # William Ponton # 5.9.21 # Tests for the song_generator project ''' # import pacagkes import song_generator.generator as gen import song_generator.song_data as s_data import song_generator.string_literals as s_lit from song_generator.SongClass import Song # Song class # test output from each import fil...
26.272727
54
0.743945
0
0
0
0
0
0
0
0
246
0.425606
9cf36044a78da6b44f50ef7880b953422fdb98f0
360
py
Python
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/Oracle/Jobs/LoadFromIDWithWorkflow.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _LoadFromIDWithWorkflow_ Oracle implementation of Jobs.LoadFromIDWithWorkflow. """ from WMCore.WMBS.MySQL.Jobs.LoadFromIDWithWorkflow import LoadFromIDWithWorkflow as MySQLLoadFromIDWithWorkflow class LoadFromIDWithWorkflow(MySQLLoadFromIDWithWorkflow): """ Load jobs by ID but inclu...
21.176471
111
0.788889
135
0.375
0
0
0
0
0
0
170
0.472222
9cf4544311c2e0722d765a266da005b76bf3bdb4
11,367
py
Python
Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py
EgonFerri/Ex2_NN_backpropr
3b9426bcda279188cf55908090da51845c9c2ca6
[ "MIT" ]
null
null
null
Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py
EgonFerri/Ex2_NN_backpropr
3b9426bcda279188cf55908090da51845c9c2ca6
[ "MIT" ]
null
null
null
Assignment/Pytorch_improvements/ex2_pytorch_grid_search.py
EgonFerri/Ex2_NN_backpropr
3b9426bcda279188cf55908090da51845c9c2ca6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torchvision import torchvision.transforms as transforms import numpy as np import pandas as pd from sklearn.model_selection import ParameterGrid from tqdm import tqdm_notebook as tqdm def kaiming_init(m): '''Initilize weights (with kaiming ini...
38.402027
127
0.590833
1,451
0.12765
0
0
0
0
0
0
3,844
0.338172
9cf472f4ca4830340edb61545a9592eaf91f9937
506
py
Python
quanttrade/test/SmaTest.py
dingmingliu/quanttrade
2d9eaf9f2339a51458ef1e130c60b0132d9e57bb
[ "Apache-2.0" ]
null
null
null
quanttrade/test/SmaTest.py
dingmingliu/quanttrade
2d9eaf9f2339a51458ef1e130c60b0132d9e57bb
[ "Apache-2.0" ]
null
null
null
quanttrade/test/SmaTest.py
dingmingliu/quanttrade
2d9eaf9f2339a51458ef1e130c60b0132d9e57bb
[ "Apache-2.0" ]
1
2021-10-02T12:22:30.000Z
2021-10-02T12:22:30.000Z
__author__ = 'tyler' import bt #%pylab inline # download data data = bt.get('aapl,msft', start='2013-01-01') data.head() import pandas as pd # a rolling mean is a moving average, right? sma = pd.rolling_mean(data, 50) s = bt.Strategy('above50sma', [ bt.algos.SelectWhere(data > sma), ...
25.3
66
0.58498
0
0
0
0
0
0
0
0
167
0.33004
9cf5db2bf88364cfebbc87d0de7355ee48538556
778
py
Python
mainsite/views.py
Anthlay/mblog
2f19f7eba6c1b77f829c88373f9ecf94de57024a
[ "Apache-2.0" ]
null
null
null
mainsite/views.py
Anthlay/mblog
2f19f7eba6c1b77f829c88373f9ecf94de57024a
[ "Apache-2.0" ]
4
2020-02-12T01:14:04.000Z
2021-06-10T21:48:09.000Z
mainsite/views.py
Anthlay/mblog
2f19f7eba6c1b77f829c88373f9ecf94de57024a
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from django.shortcuts import render, redirect from django.http import HttpResponse from .models import Post # Create your views here def homepage(request): posts = Post.objects.all() post_lists = list() for count,post in enumerate(posts): posts = Post.objects.all() ...
33.826087
72
0.650386
0
0
0
0
0
0
0
0
209
0.268638
9cf63d6fac7165c02677980da20f53fa501da497
12,911
py
Python
shellshock_scanner.py
CapTheFlag/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
25
2015-01-05T11:59:25.000Z
2022-01-27T13:27:15.000Z
shellshock_scanner.py
surajsinghbisht054/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
null
null
null
shellshock_scanner.py
surajsinghbisht054/shellshock-scanner
cb309ae4e4323613e05458ab3c3a7f9483c86a81
[ "MIT" ]
15
2015-01-06T07:35:53.000Z
2021-01-29T22:42:28.000Z
#!/usr/bin/env python # Author: Mario Rivas Vivar # https://twitter.com/Grifo """ Scan a list of hosts with a list of CGIs trying to exploit the ShellShock vulnerability with different methods and payloads (CVE-2014-6271, CVE-2014-6278) """ import httplib,sys,time import pprint import csv import argparse from threa...
38.311573
233
0.597552
0
0
0
0
0
0
0
0
3,550
0.274959
9cfc8c3c743996c080aad3979946e5244ed37a91
2,079
py
Python
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
null
null
null
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
1
2016-08-06T17:39:03.000Z
2016-08-06T17:39:03.000Z
jaraco/financial/records.py
jaraco/jaraco.financial
cb6700f6194c5bf144c0c6cf150487d89d8336c5
[ "MIT" ]
null
null
null
from __future__ import print_function import smtplib import email.mime.multipart import email.mime.text import getpass import io import codecs from path import Path from jaraco.ui import progress def email_message(body_text, subject=None): SMTP_SERVER = 'pod51011.outlook.com' SMTP_PORT = 587 SMTP_USERNA...
26.653846
72
0.68254
0
0
0
0
0
0
0
0
700
0.3367
9cfcd2e79df18ef7cc3ee64b85571df574a041c2
96
py
Python
python/testData/regexp/notEmptyGroup.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/regexp/notEmptyGroup.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/regexp/notEmptyGroup.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
import re some_re = re.compile(r""" (?P<abc>abc) (?P<name> (?(abc)yes|noo) ) """, re.VERBOSE)
12
25
0.572917
0
0
0
0
0
0
0
0
51
0.53125
9cfd44b4f9b3f25b6ece98512e0b6a0746c58433
2,680
py
Python
src/python/pants/backend/codegen/thrift/apache/java/rules.py
wimax-grapl/pants
0aabd417a772ea4e39999c4415c67db40de679a4
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/thrift/apache/java/rules.py
wimax-grapl/pants
0aabd417a772ea4e39999c4415c67db40de679a4
[ "Apache-2.0" ]
28
2021-12-27T15:53:46.000Z
2022-03-23T11:01:42.000Z
src/python/pants/backend/codegen/thrift/apache/java/rules.py
wimax-grapl/pants
0aabd417a772ea4e39999c4415c67db40de679a4
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.codegen.thrift.apache.java import subsystem from pants.backend.codegen.thrift.apache.java.subsystem import ApacheThriftJavaSubsystem from pants.backend.codegen.thrift.ap...
34.805195
96
0.776493
228
0.085075
0
0
1,201
0.448134
1,133
0.422761
171
0.063806
9cfead09c9dd64dc64989c8b12c4c6d06757ef47
10,427
py
Python
bughunter/action/ifels.py
ChrisTimperley/BugHunter
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
4
2017-03-01T05:10:01.000Z
2021-12-14T15:18:01.000Z
bughunter/action/ifels.py
ChrisTimperley/BugCollector
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
4
2016-10-16T22:57:17.000Z
2017-01-12T21:39:45.000Z
bughunter/action/ifels.py
ChrisTimperley/BugCollector
090201f491c50fff5a36507ea6861142570d18b9
[ "MIT" ]
null
null
null
from bughunter.action.core import * from bughunter.action.basic import ModifyStatement, InsertStatement, DeleteStatement import cgum.statement ##### # GROUP: If-Statement-Related ##### class WrapStatement(ReplaceRepairAction): @staticmethod def from_json(jsn, before, after): return ReplaceRepairAction....
37.239286
92
0.609667
10,132
0.971708
0
0
8,446
0.810012
0
0
1,487
0.142611
9cfeca7d709f2e090e6854d324dfeda0011d1640
11,124
py
Python
hana_automl/preprocess/preprocessor.py
dan0nchik/SAP-HANA-AutoML
68cde80bd7fbfc751fb56062af30aec9238f9fb3
[ "MIT" ]
59
2021-01-10T18:35:38.000Z
2022-02-28T16:49:06.000Z
hana_automl/preprocess/preprocessor.py
u1810291/SAP-HANA-AutoML
06200bd1f813916fc81eb1ccb0ed0b1275e22945
[ "MIT" ]
3
2021-02-01T19:33:39.000Z
2021-06-29T08:32:33.000Z
hana_automl/preprocess/preprocessor.py
u1810291/SAP-HANA-AutoML
06200bd1f813916fc81eb1ccb0ed0b1275e22945
[ "MIT" ]
10
2021-06-18T12:35:34.000Z
2021-12-28T18:48:36.000Z
import copy import math from hana_ml import DataFrame from hana_ml.algorithms.pal.neighbors import KNNRegressor from hana_ml.algorithms.pal.preprocessing import ( Imputer, FeatureNormalizer, variance_test, ) from hana_automl.algorithms.classification.decisiontreecls import DecisionTreeCls from hana_automl....
36.834437
87
0.548993
9,612
0.864078
0
0
859
0.07722
0
0
877
0.078839
9cff114514a4e53b9d73b004333fbe341dfc861e
10,438
py
Python
tests/bugs/core_2251_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_2251_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_2251_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_2251 # title: gbak doesn't return error code # decription: # Inaccessible folder is defined here as $tmp + GUID (i.e. it 100% not yet exists). # We have to check allof kind for inaccessible file: # * .fbk when ...
58.312849
189
0.617934
0
0
0
0
108
0.010347
0
0
10,024
0.960337
9cffe20ef35dd83ae3e95a578a5a23bf44a0fc19
2,534
py
Python
cwinsdk/um/wingdi.py
Vlastbia/ctypes-windows-sdk
ccb2c7e83086840a620358507cac5c3fccc7e8af
[ "ISC" ]
null
null
null
cwinsdk/um/wingdi.py
Vlastbia/ctypes-windows-sdk
ccb2c7e83086840a620358507cac5c3fccc7e8af
[ "ISC" ]
null
null
null
cwinsdk/um/wingdi.py
Vlastbia/ctypes-windows-sdk
ccb2c7e83086840a620358507cac5c3fccc7e8af
[ "ISC" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals from ctypes import POINTER, c_int, Structure from ctypes.wintypes import LPCSTR, HANDLE, LPCWSTR, DWORD, BOOL, UINT, LPVOID, WORD, LONG, BYTE from .. import windll HDC = HANDLE HGDIOBJ = HANDLE HBITMAP = HANDLE DIB_RGB_COLORS = 0 HOR...
24.843137
119
0.741121
725
0.286109
0
0
0
0
0
0
373
0.147198
1400297ab0c1bbad58a3bb093a0ed2a676260382
358
py
Python
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
15
2017-08-15T17:39:56.000Z
2019-12-30T18:06:15.000Z
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
13
2017-08-29T11:03:20.000Z
2019-07-04T19:51:16.000Z
pjbank/__init__.py
pjbank/pjbank-python-sdk
ddfaab13da8a56d67b233ad1628ac9d8223b6eab
[ "MIT" ]
7
2017-08-29T05:10:43.000Z
2019-07-23T17:59:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ pjbank """ from pjbank.api import PJBankAPI from pjbank.contadigital import ContaDigital from pjbank.recebimentos.boleto import Boleto from pjbank.recebimentos.cartaocredito import CartaoCredito from pjbank.config import __version__ conta_digital = ContaDigital() bole...
23.866667
59
0.787709
0
0
0
0
0
0
0
0
58
0.162011
1400e05a81e61584f76a1b7de9750c733259c909
1,081
py
Python
S1/TP7/ex5.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP7/ex5.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP7/ex5.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
dico = {25: 4, 8: 1, 12: 2, 3: 5} print(dico) print("5 dans dico ?", 5 in dico) print("25 dans dico ?", 25 in dico) dico[9] = 1 dico[8] = 2 print(dico) del dico[25] print(dico) print("-" * 10) inventaire = {"orange": 378, "pomme": 545, "banane": 422, "poire": 269} def checkStock(): fruit = input("Entrez un fruit...
21.196078
90
0.603145
0
0
0
0
0
0
0
0
358
0.329044
14026ffd736cbe43208ce8862e478324d4c76ffc
2,176
py
Python
rampwf/hyperopt/cli/hyperopt.py
albertcthomas/ramp-workflow
aee62742314f95ebcb3f226e535ff4ad64e88024
[ "BSD-3-Clause" ]
1
2020-12-03T12:22:22.000Z
2020-12-03T12:22:22.000Z
rampwf/hyperopt/cli/hyperopt.py
martin1tab/ramp-workflow
aee62742314f95ebcb3f226e535ff4ad64e88024
[ "BSD-3-Clause" ]
null
null
null
rampwf/hyperopt/cli/hyperopt.py
martin1tab/ramp-workflow
aee62742314f95ebcb3f226e535ff4ad64e88024
[ "BSD-3-Clause" ]
null
null
null
import click from ..hyperopt import run_hyperopt CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) @click.command(context_settings=CONTEXT_SETTINGS) @click.option('--submission', default='starting_kit', show_default=True, help='The kit to hyperopt. It should be located in the ' ...
44.408163
78
0.654871
0
0
0
0
1,995
0.91682
0
0
992
0.455882
14027a2ddc57fcac5fad84f5b3665608869fa996
3,675
py
Python
deployments/views.py
makaimc/pfisdi
45e897b374d50e2f5385f15cbf318da0e17900f7
[ "MIT" ]
2
2015-01-05T21:09:24.000Z
2015-07-31T16:52:38.000Z
deployments/views.py
makaimc/pfisdi
45e897b374d50e2f5385f15cbf318da0e17900f7
[ "MIT" ]
null
null
null
deployments/views.py
makaimc/pfisdi
45e897b374d50e2f5385f15cbf318da0e17900f7
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect from django.template import RequestContext from django.shortcuts import render_to_response, get_object_or_404 from django.core.context_processors import csrf from django.core.urlresolvers import reverse from django.views.decorators.csrf import csrf_protect from django.contri...
37.5
78
0.668027
0
0
0
0
2,319
0.63102
0
0
468
0.127347
1403046e6da2ce010da71e8998d42356dcbbc94e
780
py
Python
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
4
2020-07-15T13:47:10.000Z
2021-09-15T20:28:50.000Z
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
null
null
null
day1/if_else_statements.py
anishLearnsToCode/python-workshop-4
d34c312d17c0d4194b2a1d269b8c0e2a56a04699
[ "MIT" ]
2
2020-07-18T03:28:03.000Z
2020-11-01T00:56:02.000Z
""" If else predicate = is any logical expression if predicate: code elif predicate2: (not compulsory) code2 elif predicate3: code3 .. .. .. .. else: (not compulsory) code """ # switch statements not supported by python number = int(input()) if number > 10: print('i am in if block') print('s...
16.25
48
0.617949
0
0
0
0
0
0
0
0
570
0.730769
140436103b07b8beaed84d7d034c0ac05623632e
35
py
Python
similarweb_scraper/__init__.py
kilobyte2007/similarweb_scraper
049f8983845b7bd7504f5841bc712e970c39be66
[ "MIT" ]
18
2019-10-19T08:07:16.000Z
2021-12-17T06:11:59.000Z
similarweb_scraper/__init__.py
kilobyte2007/similarweb_scraper
049f8983845b7bd7504f5841bc712e970c39be66
[ "MIT" ]
1
2020-02-18T19:07:38.000Z
2020-04-26T12:05:15.000Z
similarweb_scraper/__init__.py
kilobyte2007/similarweb_scraper
049f8983845b7bd7504f5841bc712e970c39be66
[ "MIT" ]
2
2020-02-18T18:44:34.000Z
2021-12-17T06:01:03.000Z
from .similarweb_scraper import *
17.5
34
0.8
0
0
0
0
0
0
0
0
0
0
1404d7c78ab63ab6c44fb7aef71aaac733eb3dc8
578
py
Python
install_imports.py
surajssd/kube-hunter
0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1
[ "Apache-2.0" ]
1
2019-09-25T12:31:33.000Z
2019-09-25T12:31:33.000Z
install_imports.py
surajssd/kube-hunter
0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1
[ "Apache-2.0" ]
null
null
null
install_imports.py
surajssd/kube-hunter
0157ac83ce6a735d4a431e9e3a6d4ec847aa6fc1
[ "Apache-2.0" ]
1
2020-08-17T16:05:45.000Z
2020-08-17T16:05:45.000Z
from os.path import basename import glob def get_py_files(path): for py_file in glob.glob("{}*.py".format(path)): if not py_file.endswith("__init__.py"): yield basename(py_file)[:-3] def install_static_imports(path): with open("{}__init__.py".format(path), 'w') as init_f: for pf in...
32.111111
59
0.695502
0
0
165
0.285467
0
0
0
0
137
0.237024
1405502804e6766f590b833e1213c48823a5938b
989
py
Python
muchscript/__init__.py
SblipDev/MuchScript
dc12196fc3bafb1e7520f1390222c585e056d9d9
[ "MIT" ]
7
2021-12-16T05:00:12.000Z
2021-12-19T17:10:44.000Z
muchscript/__init__.py
shaurya-blip/MuchScript
ce30b8c3f5a80ea73588f76ef4e4cef3c014bf63
[ "MIT" ]
null
null
null
muchscript/__init__.py
shaurya-blip/MuchScript
ce30b8c3f5a80ea73588f76ef4e4cef3c014bf63
[ "MIT" ]
null
null
null
''' ░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░ ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░ ░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░ ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░ ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░ ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░ ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌░░ ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐░░ ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌░ ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌░ ▀▒▀▐▄█▄█▌▄░▀▒...
24.121951
58
0.325581
0
0
0
0
0
0
0
0
1,910
0.913439
1406030bc96045cc5ac86ac183e1b7807a173011
1,802
py
Python
blend2bam/blender_script_common.py
Clockwork-Muse/blend2bam
6680bc815b2c6dd1359949b7bcbe52a55de7301b
[ "MIT" ]
41
2019-11-14T07:42:37.000Z
2022-02-21T13:22:02.000Z
blend2bam/blender_script_common.py
Clockwork-Muse/blend2bam
6680bc815b2c6dd1359949b7bcbe52a55de7301b
[ "MIT" ]
58
2019-04-22T14:53:04.000Z
2022-03-15T10:04:36.000Z
blend2bam/blender_script_common.py
Clockwork-Muse/blend2bam
6680bc815b2c6dd1359949b7bcbe52a55de7301b
[ "MIT" ]
17
2019-08-24T13:59:01.000Z
2022-02-16T15:47:18.000Z
import json import os import sys import bpy #pylint: disable=import-error def convert_files(convertfn, outputext): args = sys.argv[sys.argv.index('--')+1:] #print(args) settings_fname, srcroot, dstdir, blendfiles = args[0], args[1], args[2], args[3:] if not srcroot.endswith(os.sep): srcroot ...
29.064516
105
0.602109
0
0
0
0
0
0
0
0
242
0.134295
1406cc74764fb413f8c4e2e6fa7df223ab8a97a3
4,191
py
Python
traffic_control/tests/test_owner_api.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
2
2020-11-23T22:08:58.000Z
2022-03-02T13:13:20.000Z
traffic_control/tests/test_owner_api.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
170
2019-12-31T13:37:04.000Z
2022-03-12T14:03:35.000Z
traffic_control/tests/test_owner_api.py
City-of-Helsinki/city-infrastructure-platform
c14513a9e54405412085f1047f91ec58b263eac0
[ "CC0-1.0" ]
3
2020-05-08T05:58:02.000Z
2022-03-15T16:07:25.000Z
import pytest from django.urls import reverse from rest_framework import status from traffic_control.models import Owner from traffic_control.tests.factories import get_api_client, get_owner, get_user @pytest.mark.django_db @pytest.mark.parametrize("is_admin", (True, False)) def test__owner_api__list(is_admin): ...
31.044444
81
0.675018
0
0
0
0
3,971
0.947507
0
0
447
0.106657
1407baf11e4f8bf8634e13cfdd86fac65a4deec4
989
py
Python
test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
null
null
null
test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
3
2021-04-30T21:12:42.000Z
2021-06-02T02:11:45.000Z
test/test_unit/test_ga4gh/test_refget/test_routes/test_sequence/test_get_service_info.py
ga4gh/refget-cloud
c39a65acba9818414789f004cced487562012bf0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for get_service_info method""" import json import pytest from ga4gh.refget.config.service_info import SERVICE_INFO from ga4gh.refget.http.status_codes import StatusCodes as SC from ga4gh.refget.routes.sequence.get_service_info import get_service_info from test.common.methods impor...
34.103448
74
0.73913
0
0
0
0
373
0.377149
0
0
193
0.195147
140a20b90e9925d43057fe27d47d950c88b00b9a
214
py
Python
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
1
2020-02-09T09:35:05.000Z
2020-02-09T09:35:05.000Z
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
null
null
null
cainiao/__init__.py
shengurun/cainiao
4cdd07716f47e99851dd6571e53b745401de5e85
[ "MIT" ]
1
2021-10-15T08:08:32.000Z
2021-10-15T08:08:32.000Z
from .clients import WayBillClient, CloudPrintClient from .waybill import WayBill from .cloudprint import CloudPrint __all__ = ("WayBillClient", "WayBill", "CloudPrint", "CloudPrintClient") __version__ = "0.2.0"
26.75
72
0.780374
0
0
0
0
0
0
0
0
61
0.285047
140a827ee20450927c1a2ee95317625a892e4780
4,215
py
Python
evewspace/Map/tasks.py
darkorb/eve-wspace
687f3aeb6cd0a446a74108b2a5c03cb21c464497
[ "Apache-2.0" ]
null
null
null
evewspace/Map/tasks.py
darkorb/eve-wspace
687f3aeb6cd0a446a74108b2a5c03cb21c464497
[ "Apache-2.0" ]
null
null
null
evewspace/Map/tasks.py
darkorb/eve-wspace
687f3aeb6cd0a446a74108b2a5c03cb21c464497
[ "Apache-2.0" ]
null
null
null
# Eve W-Space # Copyright 2014 Andrew Austin and contributors # # 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 requi...
33.188976
80
0.655753
0
0
0
0
3,316
0.786714
0
0
1,616
0.383393
140ab4bb1cd8dff6632e6d8cab39ecd830c56b75
887
py
Python
steam_acolyte/theme.py
Zaragata/steam-acolyte
9ddef5bd91ac5161281a90595301db0da1fafe0d
[ "Unlicense" ]
16
2020-04-18T16:07:39.000Z
2022-02-09T20:38:02.000Z
steam_acolyte/theme.py
Zaragata/steam-acolyte
9ddef5bd91ac5161281a90595301db0da1fafe0d
[ "Unlicense" ]
5
2020-09-14T09:42:54.000Z
2021-04-27T09:56:51.000Z
steam_acolyte/theme.py
Zaragata/steam-acolyte
9ddef5bd91ac5161281a90595301db0da1fafe0d
[ "Unlicense" ]
1
2022-02-09T21:41:49.000Z
2022-02-09T21:41:49.000Z
from PyQt5.QtGui import QIcon try: from importlib.resources import read_text, path except ImportError: from importlib_resources import read_text, path import os from types import SimpleNamespace def load_theme(): return SimpleNamespace( window_style = read_text(__package__, 'window.css'), ...
27.71875
60
0.695603
0
0
0
0
0
0
0
0
69
0.07779
140b00a4e0df52e767311698ec7c06d3fcf99b25
23,000
py
Python
bridges/data_src_dependent/data_source.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
bridges/data_src_dependent/data_source.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
bridges/data_src_dependent/data_source.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
import json import requests import pickle from bridges.data_src_dependent import earthquake_usgs from bridges.data_src_dependent import actor_movie_imdb from bridges.data_src_dependent import game from bridges.data_src_dependent import shakespeare from bridges.data_src_dependent import gutenberg_book from bridges.data_...
30.183727
160
0.608739
26
0.00113
0
0
0
0
0
0
7,824
0.340174
140b9b0b97e871cc880c6a62e7358c9920469b5f
494
py
Python
plotly/validators/choropleth/_locationmode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/choropleth/_locationmode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/choropleth/_locationmode.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class LocationmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name='locationmode', parent_name='choropleth', **kwargs ): super(LocationmodeValidator, self).__init__( plotly_name=plotly_name, ...
29.058824
78
0.62753
455
0.921053
0
0
0
0
0
0
72
0.145749
140c17ba4afc65f018668bbee8b508f1d484249a
924
py
Python
month04/Django/django6/mysite6/mysite6/views.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
4
2021-01-07T14:25:10.000Z
2021-02-01T10:36:01.000Z
month04/Django/django6/mysite6/mysite6/views.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month04/Django/django6/mysite6/mysite6/views.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
from django.http import HttpResponse def set_cookies(request): resp = HttpResponse('设置cookies成功') resp.set_cookie('uname', 'aid2010', 60) return resp def get_cookies(request): uname = request.COOKIES.get('uname', 'default value') res = f'uname is {uname}' return HttpResponse(res) def delet...
24.315789
74
0.691558
0
0
0
0
0
0
0
0
271
0.288298
140d58b062f440d69f4d9438bb9af96e8e79b82f
5,453
py
Python
server.py
rosinality/arxiv-sanity
8905f2ed8dcd873b216624705f26cdd4693bf499
[ "MIT" ]
3
2019-11-14T12:43:58.000Z
2021-01-10T15:29:21.000Z
server.py
rosinality/arxiv-sanity
8905f2ed8dcd873b216624705f26cdd4693bf499
[ "MIT" ]
null
null
null
server.py
rosinality/arxiv-sanity
8905f2ed8dcd873b216624705f26cdd4693bf499
[ "MIT" ]
1
2020-06-16T16:58:52.000Z
2020-06-16T16:58:52.000Z
import re import logging from math import ceil from datetime import datetime from starlette.applications import Starlette from starlette.responses import PlainTextResponse from starlette.templating import Jinja2Templates from starlette.staticfiles import StaticFiles import uvicorn from gensim.summarization.summarizer ...
26.342995
84
0.575096
0
0
0
0
663
0.121584
471
0.086374
769
0.141023
140d9fc18715129ce4df3ee2291a9af73b8ddedf
22
py
Python
src/dpsrvf/__init__.py
drewrl3v/dpsrvf
b78a83417bb59e5df7ebd831db6511116d16b638
[ "BSD-3-Clause" ]
null
null
null
src/dpsrvf/__init__.py
drewrl3v/dpsrvf
b78a83417bb59e5df7ebd831db6511116d16b638
[ "BSD-3-Clause" ]
1
2021-12-02T00:04:29.000Z
2021-12-02T00:04:29.000Z
src/dpsrvf/__init__.py
drewrl3v/dpsrvf
b78a83417bb59e5df7ebd831db6511116d16b638
[ "BSD-3-Clause" ]
null
null
null
from .dpsrvf import *
11
21
0.727273
0
0
0
0
0
0
0
0
0
0
140dcd138e5e9fd07dd672e8a40ec75a11c99019
2,786
py
Python
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
tests/tests.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
import unittest import re import os from report.parser import REGEX, parser, ParseError from report.app import Application class TestRegularExpressions(unittest.TestCase): def test_date(self): test_string = "1992-05-29 PDT" self.assertIsNotNone(re.match(REGEX.date, test_string)) def test_date...
32.022989
124
0.663317
1,387
0.497846
0
0
0
0
0
0
1,281
0.459799
140f20997a32115cc05697358fa597c854b552ef
1,061
py
Python
syncAlleMitarbeiter.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
syncAlleMitarbeiter.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
syncAlleMitarbeiter.py
wulmer/churchtools-automation
8fa7e3d96c42a6a03ffc37a269ba3b95a856d83e
[ "MIT" ]
null
null
null
import os from churchtools import ChurchToolsApi if __name__ == "__main__": ct = ChurchToolsApi(os.environ["API_BASE_URL"], os.environ["ADMIN_TOKEN"]) all_members_group_id = list(ct.get_groups(query="Auto-Gruppe: Alle Mitarbeiter"))[ 0 ]["id"] member_status_ids = [s["id"] for s in ct.get_sta...
34.225806
86
0.708765
0
0
0
0
0
0
0
0
155
0.146089
140f21754d995319df2daa1f16114bc1ac2e49b1
1,276
py
Python
exercises/concept/restaurant-rozalynn/none.py
ryanplusplus/python
6afbd74d3bce8f5f4b77f9bba166f1bed1e74968
[ "MIT" ]
1
2021-09-04T18:42:47.000Z
2021-09-04T18:42:47.000Z
exercises/concept/restaurant-rozalynn/none.py
daliboy/python
ff53de40180d871bb101fe8b084211cef7b10453
[ "MIT" ]
5
2021-11-03T10:20:40.000Z
2022-03-02T10:21:11.000Z
exercises/concept/restaurant-rozalynn/none.py
daliboy/python
ff53de40180d871bb101fe8b084211cef7b10453
[ "MIT" ]
1
2021-09-05T15:33:52.000Z
2021-09-05T15:33:52.000Z
def new_seating_chart(size=22): ''' :param size: int - number if seats in the seating chart. Default is 22. :return: dict - with number of seats specified, and placeholder values. ''' pass def arrange_reservations(guest_list): ''' :param guest_list: list - list of guest names for reserva...
22.385965
75
0.659091
0
0
0
0
0
0
0
0
952
0.746082
140fe5f12606142c8580449bd83609ef34673f2a
3,308
py
Python
ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
41
2015-01-29T20:10:48.000Z
2022-01-26T10:04:28.000Z
ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
null
null
null
ironicclient/tests/functional/osc/v1/test_baremetal_chassis_basic.py
sapcc/python-ironicclient
8dcbf5b6d0bc2c2dc3881dbc557e2e403e2fe2b4
[ "Apache-2.0" ]
46
2015-01-19T17:46:52.000Z
2021-12-19T01:22:47.000Z
# Copyright (c) 2016 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
38.022989
78
0.635429
2,637
0.797158
0
0
0
0
0
0
1,894
0.572551
14104a886f5961b0db75535cef7241d695e8b7c3
1,082
py
Python
ramses/scaffolds/__init__.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
178
2016-01-29T10:59:56.000Z
2021-09-17T18:28:24.000Z
ramses/scaffolds/__init__.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
35
2015-03-31T19:52:23.000Z
2016-01-11T22:44:30.000Z
ramses/scaffolds/__init__.py
timgates42/ramses
ea2e1e896325b7256cdf5902309e05fd98e0c14c
[ "Apache-2.0" ]
24
2016-02-12T02:38:28.000Z
2020-06-20T23:35:38.000Z
import os import subprocess from six import moves from pyramid.scaffolds import PyramidTemplate class RamsesStarterTemplate(PyramidTemplate): _template_dir = 'ramses_starter' summary = 'Ramses starter' def pre(self, command, output_dir, vars): dbengine_choices = {'1': 'sqla', '2': 'mongodb'} ...
31.823529
74
0.61183
982
0.907579
0
0
0
0
0
0
476
0.439926
1410a969a161ae8785f9907319a20cbaab2faf50
1,916
py
Python
data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold(arr, n): if (n <= 0): return 0 incl = arr[0] excl = 0 for i in range(1, n): incl_new ...
42.577778
118
0.454071
0
0
0
0
0
0
0
0
221
0.115344
1413cca6261680634828c3e223b5596d39503334
2,220
py
Python
Translations/parse.py
Bluefissure/RainbowMage.ActLocalizer
a63cca327eb4433382039fe338037062af962903
[ "MIT" ]
19
2019-06-18T16:05:27.000Z
2021-12-09T08:48:18.000Z
Translations/parse.py
Bluefissure/RainbowMage.ActLocalizer
a63cca327eb4433382039fe338037062af962903
[ "MIT" ]
null
null
null
Translations/parse.py
Bluefissure/RainbowMage.ActLocalizer
a63cca327eb4433382039fe338037062af962903
[ "MIT" ]
1
2020-08-24T15:35:56.000Z
2020-08-24T15:35:56.000Z
from xml.dom.minidom import parse import json, re import xml.dom.minidom import codecs from collections import defaultdict def readfrom_xml(xml_file, languge, textdict=None): if not textdict: textdict = defaultdict(dict) DOMTree = xml.dom.minidom.parse(xml_file) collection = DOMTree.documentElement...
46.25
113
0.609009
0
0
0
0
0
0
0
0
379
0.170721
1414d6a7f39b6d6d2fa543619d6402804985df1f
3,359
py
Python
sme_financing/main/service/fund_disbursement_service.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
1
2020-05-20T16:32:33.000Z
2020-05-20T16:32:33.000Z
sme_financing/main/service/fund_disbursement_service.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
23
2020-05-19T07:12:53.000Z
2020-06-21T03:57:54.000Z
sme_financing/main/service/fund_disbursement_service.py
BuildForSDG/team-214-backend
f1aff9c27d7b7588b4bbb2bc68956b35051d4506
[ "MIT" ]
1
2020-05-18T14:18:12.000Z
2020-05-18T14:18:12.000Z
from datetime import datetime from sqlalchemy.exc import SQLAlchemyError from sme_financing.main import db from ..models.fund_disbursement import FundDisbursement from ..service.funding_project_service import get_funding_project_by_id def update(): db.session.commit() def commit_changes(data): db.session...
31.101852
88
0.646621
0
0
0
0
0
0
0
0
675
0.200953
141608780ace7d6b13085fdb6ef40b7ba4d59c94
65,519
py
Python
billforward/apis/amendments_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
2
2016-11-23T17:32:37.000Z
2022-02-24T05:13:20.000Z
billforward/apis/amendments_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
null
null
null
billforward/apis/amendments_api.py
billforward/bf-python
d2b812329ca3ed1fd94364d7f46f69ad74665596
[ "Apache-2.0" ]
1
2016-12-30T20:02:48.000Z
2016-12-30T20:02:48.000Z
# coding: utf-8 """ BillForward REST API OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git 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...
47.719592
229
0.606358
64,574
0.985577
0
0
0
0
0
0
38,607
0.589249
1416902eab8e3f204c69d39e133b4de7dfd1e516
1,189
py
Python
src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py
samotarnik/grpc
3278bdceda8030d5aa130f12765e5f07263c860d
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py
SanjanaSingh897/grpc
2d858866eb95ce5de8ccc8c35189a12733d8ca79
[ "Apache-2.0" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
36.030303
78
0.776283
450
0.378469
0
0
0
0
0
0
621
0.522288
1419fea8415d6994c86ab88a7b541b03c4b88d54
3,323
py
Python
lwb_heartbeat/staff/migrations/0001_initial.py
jayadams011/lwb_heartbeat
6d9b594f317107cd26932485dd8d063e226970fa
[ "MIT" ]
1
2021-03-18T20:55:04.000Z
2021-03-18T20:55:04.000Z
lwb_heartbeat/staff/migrations/0001_initial.py
jayadams011/lwb_heartbeat
6d9b594f317107cd26932485dd8d063e226970fa
[ "MIT" ]
17
2018-05-23T15:14:17.000Z
2018-05-25T23:39:38.000Z
lwb_heartbeat/staff/migrations/0001_initial.py
jayadams011/lwb_heartbeat
6d9b594f317107cd26932485dd8d063e226970fa
[ "MIT" ]
2
2018-06-12T20:50:38.000Z
2021-03-18T20:55:21.000Z
# Generated by Django 2.0.5 on 2018-05-23 23:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import multiselectfield.db.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(setting...
75.522727
1,140
0.690641
3,130
0.94192
0
0
0
0
0
0
1,374
0.413482
141e2840866cc4a5199ed1f46de24c5823d73ae2
940
py
Python
sendmail/helpers.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
sendmail/helpers.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
sendmail/helpers.py
hmif-itb/hmif-send-mail
628e283d7de06b132fe72af97b76104ea5ff8c88
[ "MIT" ]
null
null
null
import json import yaml import csv def file_to_raw(filename): with open(filename, "r") as file: f = file.read() return f def dump_to_json(data, filename): with open(filename, "w", encoding="utf8") as file: json.dump(data, file, ensure_ascii=False) def read_csv(filename): rows =...
23.5
71
0.611702
0
0
0
0
0
0
0
0
31
0.032979
141e6c1e91f0326ea6e6f4822ced15004bab074a
2,828
py
Python
access-analyzer/enablement/create-account-analyzer-stack-set.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
88
2020-04-02T02:56:27.000Z
2022-03-18T13:22:02.000Z
access-analyzer/enablement/create-account-analyzer-stack-set.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
45
2020-06-26T11:11:28.000Z
2021-08-17T15:31:47.000Z
access-analyzer/enablement/create-account-analyzer-stack-set.py
lulukelu/aws-iam-permissions-guardrails
cae485e3d8589c85f55c50c442ce47916345e00d
[ "Apache-2.0" ]
32
2020-04-02T02:56:28.000Z
2021-12-20T18:53:04.000Z
import logging logger = logging.getLogger() logger.setLevel(logging.INFO) import argparse import boto3 from botocore.waiter import SingleWaiterConfig, Waiter excluded_regions=[] parser = argparse.ArgumentParser() parser.add_argument("--excluded_regions","-excluded_regions",help="Regions to exclude as comma separated...
26.933333
196
0.726308
0
0
0
0
0
0
0
0
1,123
0.3971
1420b5636f3d9df34dca6ec55321637de72a8c50
1,950
py
Python
packages/modification_rules.py
VoigtLab/ripp-design
5a83cc0e38b879d548ba836af5a9dadbe83aeadd
[ "MIT" ]
null
null
null
packages/modification_rules.py
VoigtLab/ripp-design
5a83cc0e38b879d548ba836af5a9dadbe83aeadd
[ "MIT" ]
null
null
null
packages/modification_rules.py
VoigtLab/ripp-design
5a83cc0e38b879d548ba836af5a9dadbe83aeadd
[ "MIT" ]
null
null
null
aas = 'FILWVMYCPAGTSQNEDHKR' core_rules_r = dict([ ['tgnb' , r"[GFL][PHL][DS][TSVH][T][IMEH][VSR][T][EKRSAVLG][T][ITS][E][NSQM][AVRFW][D][PI][DS][EAMW][YLST][FYEP][LAFQG]"], ['plpxy', r"[AT][VTCQSNKRP][AS][A][MLN][Y][G][VATS][V][FITEKP][P]"], ['paap' , r"[E][E][NSTDKRYV][AMTGP][MVSTNHD][YF][TSAVLWYG][KRSA...
40.625
126
0.551795
0
0
0
0
0
0
0
0
1,158
0.593846
142153febfd732a27d28ccaae5410a49667aa838
629
py
Python
mysort/quick_sort_2.py
UMP-45/Python_Study
75126a432230b226f27f2a7434d848bd0ce5696e
[ "Unlicense" ]
1
2022-03-29T09:20:19.000Z
2022-03-29T09:20:19.000Z
mysort/quick_sort_2.py
UMP-45/Python_Study
75126a432230b226f27f2a7434d848bd0ce5696e
[ "Unlicense" ]
null
null
null
mysort/quick_sort_2.py
UMP-45/Python_Study
75126a432230b226f27f2a7434d848bd0ce5696e
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- def quick_sort(array, left, right): if left<right: mid=adjust_array(array, left, right) quick_sort(array, left, mid-1) quick_sort(array, mid+1, right) def adjust_array(array, left, right): i=left j=right base_value=array[left] while i<j: while (i<j and arr...
17.472222
39
0.647059
0
0
0
0
0
0
0
0
54
0.085851
14219aade86da139c62f8446f9211557fa044d42
63
py
Python
tests/__init__.py
griff-rees/uk-boards
bf5726c9716caa5ab1e3a7134e6bc6ee6f4fe5db
[ "MIT" ]
4
2021-05-06T13:14:17.000Z
2022-01-17T17:25:11.000Z
tests/__init__.py
griff-rees/ukboards
338075813e7ac47a2f1c4f1dc8a16f92ea0fac68
[ "MIT" ]
139
2020-12-20T18:49:02.000Z
2022-03-31T18:25:08.000Z
tests/__init__.py
spool/uk_boards
bf5726c9716caa5ab1e3a7134e6bc6ee6f4fe5db
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for ukboards."""
15.75
37
0.571429
0
0
0
0
0
0
0
0
60
0.952381
142238b3e9c405d99ac6dba9ee0ddd6daa8d498b
761
py
Python
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
Enroll.py
olawale0254/Student-enrolment-Predictions-
039b3a46cf8a99543cb705eaaca9b8d9d44d1da6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[2]: import pandas as pd import numpy as np # In[3]: # reading data data = pd.read_csv('dattaa.csv') # In[4]: X = data.drop('verdit', axis=1).values y = data.verdit.values # In[5]: # splitting data as X_train and X_test from sklearn.model_selection import train_t...
14.634615
91
0.729304
0
0
0
0
0
0
0
0
195
0.256242
1422e6d346738741bc192a1637741c5504620cc0
172
py
Python
Out-20-2021/ex008.py
gianbianchi/Uniso
3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7
[ "MIT" ]
null
null
null
Out-20-2021/ex008.py
gianbianchi/Uniso
3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7
[ "MIT" ]
null
null
null
Out-20-2021/ex008.py
gianbianchi/Uniso
3abd036bde0b9d9e02ae4f95bae10af4f0a0bae7
[ "MIT" ]
null
null
null
#Desenvolva um gerador de tabuada n = int(input("Tabuada de que número? ")) i = 0 while i < 10: print("{} X {} = {}".format(n, i + 1, (n*(i + 1)))) i = i + 1
19.111111
55
0.5
0
0
0
0
0
0
0
0
73
0.421965
1422fadb9413758027aa22e397b5b6a3c5603dfb
1,430
py
Python
doto/__init__.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
1
2016-05-03T12:38:30.000Z
2016-05-03T12:38:30.000Z
doto/__init__.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
null
null
null
doto/__init__.py
raphaelahrens/doto
e1a8db42a29a9844322ecc58576a18d4782bfa1d
[ "BSD-2-Clause" ]
null
null
null
""" Doto main module """ import argparse import shutil import doto.cli import doto.cli.cmd import doto.cli.sub_cmds import doto.defaultconfig import doto.model def init_env(commands): """ Initialize the enviroment. This includes - the parser and subpurser, - and the enviroment variables...
26.481481
132
0.684615
0
0
0
0
0
0
0
0
478
0.334266
142316f2e2f7f3766a103d7cbfe23336f033018a
534
py
Python
requests/ungzip-data/example-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
requests/ungzip-data/example-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
requests/ungzip-data/example-2.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python3 '''Display data send as gzip''' import urllib import gzip import io url = 'http://www.stream-urls.de/webradio' r = urllib.urlopen(url) # create file-like object in memory buf = io.StringIO(r.read()) # create gzip object using file-like object instead of real file on disk f = gzip.GzipFile...
17.225806
72
0.67603
0
0
0
0
0
0
0
0
340
0.636704
1425874ed3b65aa3172f2c1bffc189ea1d8e25c8
1,660
py
Python
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
4
2018-09-25T16:10:54.000Z
2020-07-13T23:52:12.000Z
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
41
2018-08-16T23:54:04.000Z
2022-01-24T20:27:19.000Z
sdks/python/apache_beam/utils/plugin.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
6
2019-06-02T16:18:52.000Z
2020-11-04T04:17:08.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 us...
35.319149
76
0.753012
702
0.422892
0
0
520
0.313253
0
0
1,125
0.677711
1426c615ae8ca36340d1ad10524328d32710a591
2,922
py
Python
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
Supertrend Indicator/zrd_login.py
Alfin72/share-trade-indicator
163710bbbc493987176b00a1b3425a84c10daf0e
[ "Apache-2.0" ]
null
null
null
from kiteconnect import KiteConnect from kiteconnect import KiteTicker import pdb import pandas as pd import datetime import os api_k = "put_your_api_key_here" # api_key api_s = "put_your_api_secret_here" # api_secret filename = str(datetime.datetime.now().date()) + ' token' + '.txt' def read_acc...
50.37931
1,538
0.675565
0
0
0
0
0
0
0
0
1,522
0.520876
14276c092a95424f58621576868430ea2d310bcd
517
py
Python
artemis/fileman/temporary_filename.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
235
2016-08-26T14:18:51.000Z
2022-03-13T10:54:39.000Z
artemis/fileman/temporary_filename.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
112
2016-04-30T11:48:38.000Z
2021-01-12T20:17:32.000Z
artemis/fileman/temporary_filename.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
31
2016-11-05T19:09:19.000Z
2021-09-13T07:35:40.000Z
import os from contextlib import contextmanager @contextmanager def use_temporary_filename(file_path): """ Delete any existing file with this name, and delete this file after the block completes. :param file_path: A full file path :yield: A the file path again. """ directory, _ = os.path.split...
20.68
92
0.678917
0
0
450
0.870406
466
0.901354
0
0
178
0.344294
1428015a750bd87472b35db0b734cb0d701b1223
91
py
Python
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
null
null
null
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
null
null
null
LUCE-API/luce_vm/luce_django/luce/API/models.py
maastrichtlawtech/webmon-extension
74b0f449eac4417495e69bb3f6f711bdbebfb2fd
[ "MIT" ]
1
2022-03-31T09:22:49.000Z
2022-03-31T09:22:49.000Z
from django.db import models class Donor(models.Model): userName = models.TextField()
18.2
33
0.747253
60
0.659341
0
0
0
0
0
0
0
0
14291050527211ae9a73fbc73d445b07160f6925
46
py
Python
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
5
2020-02-14T02:38:02.000Z
2021-11-05T14:11:28.000Z
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
6
2019-11-24T02:42:03.000Z
2022-03-15T19:57:09.000Z
project/wsgi.py
Hazhzeng/functions-wsgi-demo
2b876fe04374c85a3f890dd32b928313bec40bdd
[ "MIT" ]
5
2021-02-21T18:24:19.000Z
2021-11-08T10:59:44.000Z
from . import app application = app.wsgi_app
11.5
26
0.76087
0
0
0
0
0
0
0
0
0
0
142ba29f3fd4ae894f72c4241be757baca5dc19a
19,375
py
Python
emilia/modules/antiflood.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
emilia/modules/antiflood.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
emilia/modules/antiflood.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
import html from typing import Optional, List from telegram import Message, Chat, Update, Bot, User, InlineKeyboardButton, InlineKeyboardMarkup, ParseMode, ChatPermissions from telegram.error import BadRequest from telegram.ext import Filters, MessageHandler, CommandHandler, run_async, CallbackQueryHandler from telegr...
49.935567
235
0.638813
0
0
0
0
11,991
0.61787
0
0
8,926
0.459937
142c155c6fbb50f6d6e41b47affd8bd4a1cac56d
2,792
py
Python
type_analysis.py
XYPB/SpecVQGAN
ed3c0f86c41bc408824979305d9c4f6df0877973
[ "MIT" ]
null
null
null
type_analysis.py
XYPB/SpecVQGAN
ed3c0f86c41bc408824979305d9c4f6df0877973
[ "MIT" ]
null
null
null
type_analysis.py
XYPB/SpecVQGAN
ed3c0f86c41bc408824979305d9c4f6df0877973
[ "MIT" ]
null
null
null
import json import os AMT_testset = json.load(open('data/AMT_test_set.json', 'r')) AMT_trainset = json.load(open('data/greatesthit_train_2.00.json', 'r')) AMT_validset = json.load(open('data/greatesthit_valid_2.00.json', 'r')) greatest_testset = json.load(open('data/greatesthit_test_2.00.json', 'r')) record_dir = 'dat...
32.465116
93
0.621777
0
0
0
0
0
0
0
0
971
0.347779
142c7611071a9367cf6a272e8d29329b7ce52109
193
py
Python
api/serializers/server.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
1
2019-08-06T07:31:40.000Z
2019-08-06T07:31:40.000Z
api/serializers/server.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
null
null
null
api/serializers/server.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from api.models import * class ServerListSerializers(serializers.ModelSerializer): class Meta: model = Server fields = "__all__"
16.083333
57
0.720207
123
0.637306
0
0
0
0
0
0
9
0.046632
142db2ec3da35e8ab5c751428643dacab3da2279
1,232
py
Python
tools/data_migration/data_migration/context.py
yantarou/midonet
11fea2549416588a9170f6ce872790ad907d2a4b
[ "Apache-2.0" ]
221
2015-01-04T17:49:57.000Z
2021-12-23T16:15:35.000Z
tools/data_migration/data_migration/context.py
yantarou/midonet
11fea2549416588a9170f6ce872790ad907d2a4b
[ "Apache-2.0" ]
8
2018-05-24T13:36:03.000Z
2021-02-19T16:01:43.000Z
tools/data_migration/data_migration/context.py
yantarou/midonet
11fea2549416588a9170f6ce872790ad907d2a4b
[ "Apache-2.0" ]
95
2015-01-07T02:06:23.000Z
2022-02-23T22:23:55.000Z
# Copyright (C) 2016 Midokura SARL # 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 require...
33.297297
78
0.742695
315
0.255682
0
0
0
0
0
0
688
0.558442
142e0ef36f1e50a80f773ead8542d87b2003badb
3,905
py
Python
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
srs/Tournament.py
jokvedaras/game-framework
9ff60e15d1beff54f94e280501929664ce59afe7
[ "Apache-2.0" ]
null
null
null
# Alex Ciaramella and Greg Suner # Abstract Tournament Class # Tournament is observable while players are observers import Message import Observable import ScoreKeeper class Tournament(Observable.Observable): # set up a list of players when tournament is initialized def __init__(self): Observable.Ob...
33.663793
100
0.660691
3,732
0.955698
0
0
0
0
0
0
1,274
0.326248
142f394af6643e95062c23f47632b2841495c600
2,512
py
Python
graphics/pellet_swrl_barchart.py
edlectrico/dissertation
eec342383ef4f15968e6417020681a3eb095bf08
[ "Apache-2.0" ]
null
null
null
graphics/pellet_swrl_barchart.py
edlectrico/dissertation
eec342383ef4f15968e6417020681a3eb095bf08
[ "Apache-2.0" ]
null
null
null
graphics/pellet_swrl_barchart.py
edlectrico/dissertation
eec342383ef4f15968e6417020681a3eb095bf08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import matplotlib matplotlib.rcParams['legend.fancybox'] = True import matplotlib.pyplot as plt import numpy as np #data x = [1, 2, 3, 4] #define some data x = [5000, 10000, 15000, 20000] pc_mean = [4.770, 6.327, 7.427, 8.147] s3mini_mean = [96.878, 101.656, 243.981, 331.433] s3_mean = [84.121,...
30.26506
128
0.632166
0
0
0
0
0
0
0
0
540
0.214968
14304bb0fc36ef4f288e68a1bc0d0727900e0859
6,039
py
Python
transfer_learning.py
benedictquartey/Chiromancer
9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec
[ "MIT" ]
4
2019-07-18T22:50:47.000Z
2021-01-20T22:02:15.000Z
transfer_learning.py
benedictquartey/Chiromancer
9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec
[ "MIT" ]
null
null
null
transfer_learning.py
benedictquartey/Chiromancer
9dcf2ffaf059680a8fa8c71a37c9156927ccc7ec
[ "MIT" ]
1
2019-11-22T13:47:17.000Z
2019-11-22T13:47:17.000Z
#adapted from PyimageSearch for testing accuracy between my standard NN_model architecture and a popular model # set the matplotlib backend so figures can be saved in the background import matplotlib matplotlib.use("Agg") import data_processing from keras.preprocessing.image import ImageDataGenerator from keras.app...
28.757143
110
0.741679
0
0
0
0
0
0
0
0
2,674
0.442789
143077d32ff1589b7aba438263ce1a1ace1fb22c
4,174
py
Python
app/voxity/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
app/voxity/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
app/voxity/__init__.py
voxity/vox-ui-api
9da442a2ae8e5fec92485cf7dc4adf1a560aa8f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Voxity api module.""" from __future__ import absolute_import, division, unicode_literals from requests_oauthlib import OAuth2Session from flask import current_app, session, abort from datetime import datetime, timedelta from app.utils import datetime_to_timestamp from requests.models import R...
26.585987
77
0.614279
0
0
0
0
0
0
0
0
982
0.235266
1431ad35fd48b141248d3253a46746d7e3f5e28a
551
py
Python
commands/cmdLook.py
fhaynes/slithermud
f14da3d65cdc5187678e8e7cc05e56643a663c56
[ "Artistic-1.0" ]
null
null
null
commands/cmdLook.py
fhaynes/slithermud
f14da3d65cdc5187678e8e7cc05e56643a663c56
[ "Artistic-1.0" ]
null
null
null
commands/cmdLook.py
fhaynes/slithermud
f14da3d65cdc5187678e8e7cc05e56643a663c56
[ "Artistic-1.0" ]
null
null
null
import MudCommand import MudAction import MudActionHandler import MudDatabase import MudWorld class cmdLook(MudCommand.MudCommand): def __init__(self): MudCommand.MudCommand.__init__(self) self.info['cmdName'] = "look" self.info['helpText'] = '''Look at your surroundings, or something ...
34.4375
89
0.655172
456
0.827586
0
0
0
0
0
0
125
0.22686
14328f5773d881a1cba21ca73ad3e092c25a5373
916
py
Python
servidor.py
robsonsilv4/socket-calculadora
a452163a5d02e2c9dbc0ecce57827010a4feb48d
[ "MIT" ]
null
null
null
servidor.py
robsonsilv4/socket-calculadora
a452163a5d02e2c9dbc0ecce57827010a4feb48d
[ "MIT" ]
null
null
null
servidor.py
robsonsilv4/socket-calculadora
a452163a5d02e2c9dbc0ecce57827010a4feb48d
[ "MIT" ]
null
null
null
import socket def soma(a, b): temp = a + b return str(temp) def sub(a, b): temp = a - b return str(temp) def mult(a, b): temp = a * b return str(temp) def div(a, b): if b == 0: return 0 else: temp = a / b temp = int(temp) return str(temp) host = '' porta = 12003 servidor = socket...
17.283019
65
0.606987
0
0
0
0
0
0
0
0
137
0.147629
1433e7c6bf5034dbcfa59dccb53b2a3d0e6d70f2
277
py
Python
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
samples-python1/500-forrange.py
LunaticNeko/chandrakasem-lectures
5c50bf16e606f54cb341369c812e23a50f1eee94
[ "CC-BY-4.0", "MIT" ]
null
null
null
# for in range # Print numbers 20XX where XX is 1..20 for i in range(1, 21): print("20", f"{i:02d}", sep="") # ^ formatting # ^ variable/value to format # ^^ 2 digits, with leading zero # ^ integer
21.307692
51
0.458484
0
0
0
0
0
0
0
0
208
0.750903
1434ce0589c0a8b52de0980ed3988de52ad85862
351
py
Python
space_mission_design/parturbations/drag.py
astronautix/space_mission_design
d40c327a3d16199607dabe0e40c3ff8003d7f85f
[ "MIT" ]
3
2020-05-26T06:32:47.000Z
2020-10-04T03:44:12.000Z
space_mission_design/parturbations/drag.py
astronautix/space_mission_design
d40c327a3d16199607dabe0e40c3ff8003d7f85f
[ "MIT" ]
1
2020-05-25T13:11:00.000Z
2020-05-25T13:11:00.000Z
space_mission_design/parturbations/drag.py
astronautix/space_mission_design
d40c327a3d16199607dabe0e40c3ff8003d7f85f
[ "MIT" ]
2
2020-05-26T06:33:09.000Z
2021-11-03T15:44:00.000Z
"""Dealing with the atmospheric drag need to be included : - [ ] Accomodation Coefficient (Cook and other) - [ ] Diffusive coefficient - [ ] Abserbtion (?? cf Célestlab) - [ ] Drag coefficient from a sphere - [ ] Drag and lift coefficient from a plane (fonction of the angle) - [ ] Drag force for a sphere - [ ] Drag a...
25.071429
68
0.68661
0
0
0
0
0
0
0
0
351
0.997159
143684501c853bd1f0eecaff8605ff54a74eb3e2
1,429
py
Python
threatstack/icon_threatstack/connection/connection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
threatstack/icon_threatstack/connection/connection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
threatstack/icon_threatstack/connection/connection.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
import insightconnect_plugin_runtime from .schema import ConnectionSchema, Input # Custom imports below from threatstack import ThreatStack from threatstack.errors import ThreatStackAPIError, ThreatStackClientError, APIRateLimitError from insightconnect_plugin_runtime.exceptions import ConnectionTestException import da...
38.621622
101
0.635409
1,099
0.769069
0
0
0
0
0
0
98
0.068579
1437eacaa0c14b24a0c529618cf50cc8b86516e3
101
py
Python
1-Iniciante-Beginner/1007 - Diferenca - Difference.py
Limarceu/Uri_Online_Judge
3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f
[ "MIT" ]
null
null
null
1-Iniciante-Beginner/1007 - Diferenca - Difference.py
Limarceu/Uri_Online_Judge
3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f
[ "MIT" ]
null
null
null
1-Iniciante-Beginner/1007 - Diferenca - Difference.py
Limarceu/Uri_Online_Judge
3328dacd5419b5a6bce4cb7dfc38e355e9fdab1f
[ "MIT" ]
null
null
null
a,b,c,d = int(input()),int(input()),int(input()),int(input()) print('DIFERENCA = {}'.format(a*b-c*d))
50.5
61
0.594059
0
0
0
0
0
0
0
0
16
0.158416
143819e8e38cf9f6b9a218a1dac3ea36b6289b08
3,719
py
Python
src/kgmk/ds/gen/models/tf/base.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/ds/gen/models/tf/base.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/ds/gen/models/tf/base.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.models \ import ( Model, ) tf.random.set_seed(0) from tensorflow.keras import ( layers, activations, regularizers, initializers, losses, optimizers, metrics, callbacks, ) from typing import ( Tuple, List, ) def define_callbacks( sa...
17.460094
35
0.653401
1,130
0.303845
0
0
0
0
0
0
57
0.015327
143a56af23b19f8f358aefd76e50c5a0b55a7cd6
578
py
Python
Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py
sssssch/jupyter-examples
cf9e26e22dcfa263bcd26323527911cdbcc2cd61
[ "MIT" ]
2
2020-07-29T13:07:52.000Z
2021-01-15T09:22:07.000Z
Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py
sssssch/jupyter-examples
cf9e26e22dcfa263bcd26323527911cdbcc2cd61
[ "MIT" ]
null
null
null
Project_Alibaba_workload/Alibaba_cluster_predict_Total/data_preprocess.py
sssssch/jupyter-examples
cf9e26e22dcfa263bcd26323527911cdbcc2cd61
[ "MIT" ]
null
null
null
#-*-coding:utf-8-*- import pandas as pd dataset = pd.read_csv( 'machine_usage_headed.csv', index_col=1) print(dataset.head()) dataset.drop('m_number', axis=1, inplace=True) dataset.drop('mem_gps', axis=1, inplace=True) dataset.drop('mpki', axis=1, inplace=True) print(dataset.head()) dataset.columns = [ '...
19.931034
46
0.688581
0
0
0
0
0
0
0
0
229
0.376645
143a71f0538e957183a42d1dc096bccb0dd0d05c
345
py
Python
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/MergeStringAlternately/test_merge_string_alternately.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from merge_string_alternately import mergeAlternately class Test(TestCase): def test_merge_alternately(self): self.assertEqual(mergeAlternately("abc", "pqr"), "apbqcr") self.assertEqual(mergeAlternately("ab", "pqrs"), "apbqrs") self.assertEqual(mergeAlternately...
43.125
66
0.727536
260
0.753623
0
0
0
0
0
0
54
0.156522
143b49e77f95faed0f33ec50d94bcc182f1daf5e
402
py
Python
torchreid/__init__.py
iankuoli/OSNet-TopDrop
3ab57ba507e9f8939762e27834137172375cd91c
[ "MIT" ]
null
null
null
torchreid/__init__.py
iankuoli/OSNet-TopDrop
3ab57ba507e9f8939762e27834137172375cd91c
[ "MIT" ]
null
null
null
torchreid/__init__.py
iankuoli/OSNet-TopDrop
3ab57ba507e9f8939762e27834137172375cd91c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function __author__ = 'Rodolfo Quispe' __description__ = 'Top Batch Dropblock for Person Re-Identification' __url__ = 'https://github.com/RQuispeC/top-batch-dropblock' __based_on__ = 'https://github.com/KaiyangZhou/deep-person-reid' from . import ( ...
22.333333
68
0.733831
0
0
0
0
0
0
0
0
164
0.40796
143cd949492ab20063e08fcf058c7b6fcccef20e
1,425
py
Python
examples/05-gray-scott-compression/paraview/animations.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
8
2018-07-11T19:55:37.000Z
2022-02-03T20:55:32.000Z
examples/05-gray-scott-compression/paraview/animations.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
196
2017-06-13T14:48:05.000Z
2022-03-02T21:53:39.000Z
examples/05-gray-scott-compression/paraview/animations.py
CODARcode/cheetah
2d7148fad2e549a080e902e4fac180d9f22a9dc9
[ "Apache-2.0" ]
7
2018-07-02T16:50:43.000Z
2022-02-08T16:06:54.000Z
from paraview.simple import * vars = ['U', 'V'] Xs = [1, 16] Ts = [0, 23] def look_at_angle(view1): view1.CameraPosition = [-91.79570803687004, -4.511485753227961, 32.24697211000749] view1.CameraFocalPoint = [15.499600000000001, 15.499600000000001, 15.499600000000001] view1.CameraViewUp = [0.1508633701950...
43.181818
89
0.590175
0
0
0
0
0
0
0
0
86
0.060351
143f866b2d562d6e58d70545f8b51ba4cdbd1e78
486
py
Python
gnosis/eth/oracles/__init__.py
titandac/gnosis-py
cf0af4f25e64b22256eabb415d0f3fe3a6180b14
[ "MIT" ]
64
2018-09-26T19:56:50.000Z
2022-03-18T21:45:59.000Z
gnosis/eth/oracles/__init__.py
zhanghao-ic/gnosis-py
d2a5912547b7d1b576c826909f4c1d0155db536f
[ "MIT" ]
151
2018-09-10T21:42:05.000Z
2022-03-31T12:33:31.000Z
gnosis/eth/oracles/__init__.py
zhanghao-ic/gnosis-py
d2a5912547b7d1b576c826909f4c1d0155db536f
[ "MIT" ]
50
2018-12-13T20:43:46.000Z
2022-03-30T09:32:32.000Z
# flake8: noqa F401 from .oracles import ( AaveOracle, BalancerOracle, CannotGetPriceFromOracle, ComposedPriceOracle, CreamOracle, CurveOracle, EnzymeOracle, InvalidPriceFromOracle, KyberOracle, MooniswapOracle, OracleException, PoolTogetherOracle, PriceOracle, Pr...
19.44
29
0.711934
0
0
0
0
0
0
0
0
19
0.039095
14419e865d5310216570696263e0af4f4d542f91
1,192
py
Python
glaciersat/tests/test_utils.py
jlandmann/glaciersat
7d4b108c17a31cc85e568193024dabc2d590caa3
[ "MIT" ]
2
2021-02-18T22:06:04.000Z
2021-06-23T13:04:20.000Z
glaciersat/tests/test_utils.py
jlandmann/glaciersat
7d4b108c17a31cc85e568193024dabc2d590caa3
[ "MIT" ]
null
null
null
glaciersat/tests/test_utils.py
jlandmann/glaciersat
7d4b108c17a31cc85e568193024dabc2d590caa3
[ "MIT" ]
1
2021-12-08T09:03:54.000Z
2021-12-08T09:03:54.000Z
import pytest from glaciersat.tests import requires_credentials from glaciersat.utils import * import configobj @requires_credentials def test_get_credentials(): cred = get_credentials(credfile=None) assert isinstance(cred, configobj.ConfigObj) cred = get_credentials(credfile='.\\.credentials') assert...
29.073171
57
0.676174
0
0
0
0
244
0.204698
0
0
127
0.106544
1443349cfe7290e5fde2e9b993127fa2b050e3ee
2,103
py
Python
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0354_remediationactiontaken_remediationactiontakendocument.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-12-20 07:11 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0353_auto_20191220_1334'), ] ...
45.717391
183
0.627675
1,912
0.909177
0
0
0
0
0
0
640
0.304327
1443eba36140a106439af6c4b73f1d1fea95754f
214
py
Python
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
2
2020-11-02T05:52:33.000Z
2021-06-09T01:28:22.000Z
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
null
null
null
files/read_lines.py
nv-krishna/python-crash-course
d481faeb2196712cd52ca1d34dc1fe967d13712f
[ "Apache-2.0" ]
2
2021-04-08T05:26:04.000Z
2021-06-09T01:28:23.000Z
file_name = 'pi_digits.txt' with open(file_name) as file_object: lines = file_object.readlines() pi_string = '' for line in lines: pi_string += line.strip() print(pi_string) print(len(pi_string))
19.454545
36
0.691589
0
0
0
0
0
0
0
0
17
0.079439
1444c2a69f4ae5a67cb69bbbd85ac69cbd3a414e
4,553
py
Python
scripts/pred_clef2018.py
rdenaux/acred
ffe44953a96338acfe3860a9898e7f0b70b5c9cb
[ "Apache-2.0" ]
8
2020-08-31T04:14:22.000Z
2021-09-29T06:00:31.000Z
scripts/pred_clef2018.py
expertailab/acred
ee45840c942ef2fac4f26da8d756b7c47e42847c
[ "Apache-2.0" ]
null
null
null
scripts/pred_clef2018.py
expertailab/acred
ee45840c942ef2fac4f26da8d756b7c47e42847c
[ "Apache-2.0" ]
1
2020-10-07T08:09:29.000Z
2020-10-07T08:09:29.000Z
# # 2020 ExpertSystem # '''Script for generating predictions for Task2 of CLEF 2018 using the acred predictor See https://github.com/clef2018-factchecking/clef2018-factchecking See also scripts/fetch-data.sh, which should download the v1.0 release and place it in the `data/evaluation/` folder. ''' import argparse im...
32.755396
91
0.62025
0
0
0
0
0
0
0
0
1,338
0.293872
1446ef1bbef7e5c334c8b012e9fde1d3a271f09c
2,712
py
Python
vnpy_pro/data/source/tdxdata.py
zhangjf76/vnpy
b7c507a90c84a6a3c34831d8daf5f8947b9858d2
[ "MIT" ]
1
2020-06-12T14:42:02.000Z
2020-06-12T14:42:02.000Z
vnpy_pro/data/source/tdxdata.py
zhangjf76/vnpy
b7c507a90c84a6a3c34831d8daf5f8947b9858d2
[ "MIT" ]
null
null
null
vnpy_pro/data/source/tdxdata.py
zhangjf76/vnpy
b7c507a90c84a6a3c34831d8daf5f8947b9858d2
[ "MIT" ]
null
null
null
from datetime import timedelta, datetime from typing import List from vnpy.trader.constant import Exchange, Interval from vnpy.trader.object import BarData, HistoryRequest from vnpy_pro.data.source.dataapi import SourceDataApi from vnpy_pro.data.tdx.tdx_future_data import TdxFutureData INTERVAL_VT2JQ = { Interva...
28.851064
86
0.588127
1,689
0.620044
0
0
0
0
0
0
216
0.079295
144811c35936d86235f73bcc74dc537fd45c6aff
3,796
py
Python
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
qinyanjuidavid/Dhana
5a97ab224897bb87ce69d476a88930f3012ae7c5
[ "MIT" ]
1
2022-02-14T19:11:08.000Z
2022-02-14T19:11:08.000Z
# Generated by Django 4.0.1 on 2022-02-01 12:57 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.db.models.manager import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ] o...
53.464789
168
0.613804
3,568
0.939937
0
0
0
0
0
0
654
0.172287
144bb1749b574daae9018e81890b3f972d50fc99
1,125
py
Python
draalcore/test_utils/upload.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
1
2017-04-25T10:54:55.000Z
2017-04-25T10:54:55.000Z
draalcore/test_utils/upload.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
1
2022-02-10T06:48:36.000Z
2022-02-10T06:48:36.000Z
draalcore/test_utils/upload.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """File upload utility""" # System imports import os TEST_FILE_IMAGE = os.path.join(os.path.dirname(__file__), 'pic.jpg') TEST_FILE_CONTENT_HEADER = 'attachment; filename="pic.jpg"' TEST_FILE_INVALID = os.path.join(os.path.dirname(__file__), 'test.invalid') TEST_FILE_GIF...
32.142857
89
0.673778
0
0
0
0
0
0
0
0
249
0.221333
144c3cf3a9fb5486330ac336fdca1f611c47ecb6
3,029
py
Python
mudpi/utils.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
163
2020-02-17T16:34:54.000Z
2022-02-28T23:12:11.000Z
mudpi/utils.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
28
2020-05-05T19:42:25.000Z
2021-08-04T18:36:32.000Z
mudpi/utils.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
31
2020-02-27T18:30:42.000Z
2022-01-18T21:14:56.000Z
import sys import json import socket import inspect import subprocess from mudpi.extensions import Component, BaseExtension, BaseInterface def get_ip(): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: # doesn't even have to be reachable s.connect(('10.255.255.255', 1)) IP = s....
29.125
86
0.601849
0
0
0
0
0
0
0
0
814
0.268736
144e7dc3bdd38db6b198578e9cb50720e54398ed
695
py
Python
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
Employee/models.py
TheStrixCoder/Parking-Lot-Management
dcb4c439928f9e2c8623e82e3acb860cf50d7041
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Employee(models.Model): user_name = models.CharField(u'user_name',default='abc',max_length = 20) user_first_name = models.CharField(u'Enter first name',max_length=15,default='Chaman') user_last_name = models.CharField(u'Enter first name',max_le...
36.578947
95
0.713669
636
0.915108
0
0
0
0
0
0
185
0.266187
144f22d32bbe5f4da41b97bb3ce594626e7bd532
1,421
py
Python
pyctuator/health/db_health_provider.py
TheCodingLand/pyctuator
a5c9f41e426b006892020ce3b98d5e56c27e9dbc
[ "Apache-2.0" ]
1
2020-10-24T16:31:15.000Z
2020-10-24T16:31:15.000Z
pyctuator/health/db_health_provider.py
yanoom/pyctuator
b3aff058e1193eb6db8b887b1c1cf8c116819f82
[ "Apache-2.0" ]
1
2020-07-06T20:37:11.000Z
2020-07-06T20:37:11.000Z
pyctuator/health/db_health_provider.py
yanoom/pyctuator
b3aff058e1193eb6db8b887b1c1cf8c116819f82
[ "Apache-2.0" ]
1
2020-07-02T21:37:52.000Z
2020-07-02T21:37:52.000Z
import importlib.util import time from dataclasses import dataclass from typing import Optional from sqlalchemy.engine import Engine from sqlalchemy.exc import OperationalError from pyctuator.health.health_provider import HealthProvider, HealthStatus, Status, HealthDetails @dataclass class DbHealthDetails(HealthDet...
28.42
104
0.683322
1,114
0.783955
0
0
192
0.135116
0
0
72
0.050669
144ff03552b9b5f4adb81f6c8238173d57c8615f
482
py
Python
examples/serializers/blowfishtest.py
Jumpscale/jumpscale_examples7
7d7be2401489a0c5465950c66bbdbb266fe57fe7
[ "Apache-2.0" ]
1
2015-10-26T10:38:37.000Z
2015-10-26T10:38:37.000Z
examples/serializers/blowfishtest.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
examples/serializers/blowfishtest.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
import os import struct from JumpScale import j import JumpScale.baselib.serializers j.application.start("blowfishtest") from random import randrange msg = "" for i in range(1000): msg += chr(randrange(0, 256)) key = "" for i in range(56): key += chr(randrange(0, 256)) # b means blowfish s = j.db.serial...
14.606061
52
0.690871
0
0
0
0
0
0
0
0
39
0.080913
1451936f6556fb61e6556f37e17327936762d700
2,385
py
Python
plico_motor/gui/motor_control_gui.py
ArcetriAdaptiveOptics/plico_motor
955be506c6dcd21b1cc794790008f33272b9c99f
[ "MIT" ]
null
null
null
plico_motor/gui/motor_control_gui.py
ArcetriAdaptiveOptics/plico_motor
955be506c6dcd21b1cc794790008f33272b9c99f
[ "MIT" ]
null
null
null
plico_motor/gui/motor_control_gui.py
ArcetriAdaptiveOptics/plico_motor
955be506c6dcd21b1cc794790008f33272b9c99f
[ "MIT" ]
null
null
null
import sys import plico_motor from guietta import Gui, _, G, Exceptions class Runner(object): def __init__(self): self.motor = None def _setUp(self, host='localhost', port=7200, axis=1): def moveby(gui): nsteps = int(gui.nstepsby) if self.motor: self...
26.5
81
0.472537
2,218
0.929979
0
0
0
0
0
0
236
0.098952
145305b18a0c50cfad6baef16c32b27105d46bdd
21,225
py
Python
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
emma/core/metadata.py
djangowebstudio/emma
afbdaa5c02b4164687356755fddba307eb682ef4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ metadata.py Created by Geert Dekkers on 2008-02-11. Copyright (c) 2008, 2009 Geert Dekkers Web Studio, 2010, 2011, 2012 Django Web Studio. All rights reserved. """ import string import sys import os import unittest import subprocess import re import datetime import time from...
44.403766
157
0.527962
20,398
0.961037
0
0
0
0
0
0
12,075
0.568905