hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
1c448be188fe77732f9991217edb9ad012e025a7
20
py
Python
tvlibre/settings/prod.py
mjroson/tvlibre
b0ac862710c7f22242e2adb29c4fef32d604daf3
[ "MIT" ]
null
null
null
tvlibre/settings/prod.py
mjroson/tvlibre
b0ac862710c7f22242e2adb29c4fef32d604daf3
[ "MIT" ]
3
2016-04-01T20:48:54.000Z
2016-04-02T16:06:20.000Z
tvlibre/settings/__init__.py
mjroson/tvlibre
b0ac862710c7f22242e2adb29c4fef32d604daf3
[ "MIT" ]
1
2019-05-07T20:34:07.000Z
2019-05-07T20:34:07.000Z
__author__ = 'docn'
10
19
0.7
__author__ = 'docn'
true
true
1c448c7c722c4c7389efd5f9e82ed4dd6eb3774d
538
py
Python
manage.py
kirega/stocks
11b0d86054bb54feca5a59d40ddd50f11ce216da
[ "MIT" ]
1
2020-07-16T08:12:27.000Z
2020-07-16T08:12:27.000Z
manage.py
pankleshwaria/Django-REST-API
3844234036e3d6906f0ca8656d559be3dd8bcc95
[ "MIT" ]
6
2019-03-19T12:16:29.000Z
2020-06-05T20:08:39.000Z
manage.py
kirega/stocks
11b0d86054bb54feca5a59d40ddd50f11ce216da
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'stocks.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are y...
33.625
73
0.685874
import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'stocks.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed...
true
true
1c448ce9fdfe3ff6f29e0154046191dddead72a0
381
py
Python
tests/test_vis.py
scott-trinkle/fiberorient
306cf2741008eb46a97cfccdcf81e9ec33189a8d
[ "MIT" ]
null
null
null
tests/test_vis.py
scott-trinkle/fiberorient
306cf2741008eb46a97cfccdcf81e9ec33189a8d
[ "MIT" ]
null
null
null
tests/test_vis.py
scott-trinkle/fiberorient
306cf2741008eb46a97cfccdcf81e9ec33189a8d
[ "MIT" ]
null
null
null
import pytest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from context import fiberorient as fo def test_img_to_dec(img, vectors): true_dec = np.zeros_like(vectors) true_dec[..., 0] = fo.util.rescale(img, scale=255).astype(np.uint8) test_dec = fo.vis.img_to_...
29.307692
71
0.766404
import pytest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from context import fiberorient as fo def test_img_to_dec(img, vectors): true_dec = np.zeros_like(vectors) true_dec[..., 0] = fo.util.rescale(img, scale=255).astype(np.uint8) test_dec = fo.vis.img_to_...
true
true
1c448d527ba265f27954470348b0ff3bc8772d49
25,215
py
Python
ansible/modules/network/nxos/nxos_igmp_interface.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/network/nxos/nxos_igmp_interface.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/network/nxos/nxos_igmp_interface.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
36.072961
79
0.608209
ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: nxos_igmp_interface extends_documentation_fragment: nxos version_added: "2.2" short_description: Manages IGMP interface configuration. description...
true
true
1c448dbcb82a77112b5b4abec69896d7f3d2a467
664
py
Python
tests/pymath/test_expanded_form.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/pymath/test_expanded_form.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/pymath/test_expanded_form.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from pymath.expanded_form import expanded_form, expanded_form_2 class ExpandedFormTests(unittest.TestCase): def test_12(self): self.assertEqual("10 + 2", expanded_form(12)) def test_42(self): self.assertEqual('40 + 2', expanded_form(42)) def test_70304(self): se...
26.56
67
0.683735
import unittest from pymath.expanded_form import expanded_form, expanded_form_2 class ExpandedFormTests(unittest.TestCase): def test_12(self): self.assertEqual("10 + 2", expanded_form(12)) def test_42(self): self.assertEqual('40 + 2', expanded_form(42)) def test_70304(self): se...
true
true
1c448e3b094d67eacf7c5e088b00bbf10ceaeef8
479
py
Python
scatterplot.py
daithimarkham/pands-project
f3d6dcb82fda1db851a3d78571a9d4a48f908eba
[ "Apache-2.0" ]
null
null
null
scatterplot.py
daithimarkham/pands-project
f3d6dcb82fda1db851a3d78571a9d4a48f908eba
[ "Apache-2.0" ]
null
null
null
scatterplot.py
daithimarkham/pands-project
f3d6dcb82fda1db851a3d78571a9d4a48f908eba
[ "Apache-2.0" ]
1
2021-01-24T01:21:57.000Z
2021-01-24T01:21:57.000Z
# David Markham # Fisher Iris Data set # Use a Multivariate scatter-plot to distinguish the relationship between the flowers. # Import Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sn from pandas.plotting import scatter_matrix # Load dataset data = ("iris.csv")...
21.772727
86
0.753653
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sn from pandas.plotting import scatter_matrix data = ("iris.csv") names = ['sepal-length', 'sepal-width', 'petal-length', 'petal-width', 'species'] dataset = pd.read_csv(data, header = 0) scatter_matrix(dataset) plt.show()
true
true
1c448fbc518db24521418d3b53a5690ab14edbbd
583
py
Python
docassemble/setup.py
ttamg/docassemble
1429fbbddfeb60b9f8fe74c928a479236d6a6113
[ "MIT" ]
1
2020-06-01T15:46:11.000Z
2020-06-01T15:46:11.000Z
docassemble/setup.py
ttamg/docassemble
1429fbbddfeb60b9f8fe74c928a479236d6a6113
[ "MIT" ]
null
null
null
docassemble/setup.py
ttamg/docassemble
1429fbbddfeb60b9f8fe74c928a479236d6a6113
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name='docassemble', version='1.1.15', python_requires='>=3.5', description=('The namespace package for the docassemble system.'), long_description...
29.15
72
0.665523
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name='docassemble', version='1.1.15', python_requires='>=3.5', description=('The namespace package for the docassemble system.'), long_description...
true
true
1c4490d3bc0bfdfa9fc91679f196a39d1ed17257
81,315
py
Python
python/pyspark/tests.py
bopopescu/wso2-spark
6982456ded39a8fef0ad26600218f8f575aac2a5
[ "Apache-2.0", "MIT" ]
11
2016-05-26T12:06:38.000Z
2020-07-06T20:37:07.000Z
python/pyspark/tests.py
bopopescu/wso2-spark
6982456ded39a8fef0ad26600218f8f575aac2a5
[ "Apache-2.0", "MIT" ]
null
null
null
python/pyspark/tests.py
bopopescu/wso2-spark
6982456ded39a8fef0ad26600218f8f575aac2a5
[ "Apache-2.0", "MIT" ]
9
2016-07-29T01:13:50.000Z
2020-07-23T16:16:17.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...
40.902918
99
0.59465
from array import array from glob import glob import os import re import shutil import subprocess import sys import tempfile import time import zipfile import random import threading import hashlib from py4j.protocol import Py4JJavaError if sys.version_info[:2] <= (2, 6): try: import unittest2 as unitte...
true
true
1c44913b32f366f87742a6a4c2126b81e0bf5d8f
1,632
py
Python
Module2/Day17/module2_day17_userInput.py
sydneybeal/100DaysPython
d1b004bd27a0644983f3af100172f394ee039f30
[ "MIT" ]
2
2019-06-02T12:17:18.000Z
2019-07-12T16:55:55.000Z
Module2/Day17/module2_day17_userInput.py
sydneybeal/100DaysPython
d1b004bd27a0644983f3af100172f394ee039f30
[ "MIT" ]
null
null
null
Module2/Day17/module2_day17_userInput.py
sydneybeal/100DaysPython
d1b004bd27a0644983f3af100172f394ee039f30
[ "MIT" ]
null
null
null
""" Author: <REPLACE> Project: 100DaysPython File: module1_day16_userInput.py Creation Date: <REPLACE> Description: <REPLACE> """ # print(input()) # print(input("How many questions will you get asked?")) name = input("What is your name?") print(name) resp = input("Do ...
45.333333
137
0.664216
name = input("What is your name?") print(name) resp = input("Do you approach the bridge keeper? (y/n)") if "y" in resp.lower(): print("Those who approach the Bridge of Death must answer me these questions three. There the other side he see.") print(input("How do you respond?")) name = input("What is you nam...
true
true
1c44914fc1c38f634cff5b91eb98ea2a6b442953
1,029
py
Python
day-13/problem.py
mkemp/aoc-2021
03573a0e865ff86324245896e26260b14650d2ba
[ "MIT" ]
1
2021-12-04T15:18:56.000Z
2021-12-04T15:18:56.000Z
day-13/problem.py
mkemp/aoc-2021
03573a0e865ff86324245896e26260b14650d2ba
[ "MIT" ]
null
null
null
day-13/problem.py
mkemp/aoc-2021
03573a0e865ff86324245896e26260b14650d2ba
[ "MIT" ]
null
null
null
with open('input') as f: coordinates, creases = f.read().strip().split('\n\n') dots = [tuple(map(int, line.split(','))) for line in coordinates.split('\n')] folds = [(line[11:12], int(line[13:])) for line in creases.split('\n')] def do_fold(dots, x_or_y, at): new_dots = set() if x_or_y == 'x': ...
22.866667
81
0.489796
with open('input') as f: coordinates, creases = f.read().strip().split('\n\n') dots = [tuple(map(int, line.split(','))) for line in coordinates.split('\n')] folds = [(line[11:12], int(line[13:])) for line in creases.split('\n')] def do_fold(dots, x_or_y, at): new_dots = set() if x_or_y == 'x': ...
true
true
1c44930d11306e39af7a6ffbd3814e73e7a26fb9
521
py
Python
Famcy/_elements_/span/span.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
null
null
null
Famcy/_elements_/span/span.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
12
2022-02-05T04:56:44.000Z
2022-03-30T09:59:26.000Z
Famcy/_elements_/span/span.py
nexuni/Famcy
80f8f18fe1614ab3c203ca3466b9506b494470bf
[ "Apache-2.0" ]
null
null
null
import Famcy import json class span(Famcy.FamcyElement): def __init__(self): super(span, self).__init__() def render_element(self): html = "" if self.innerHTML and self.innerHTML != "": html += self.innerHTML self.children = [] else: for chi...
27.421053
67
0.539347
import Famcy import json class span(Famcy.FamcyElement): def __init__(self): super(span, self).__init__() def render_element(self): html = "" if self.innerHTML and self.innerHTML != "": html += self.innerHTML self.children = [] else: for chi...
true
true
1c4497e7978fbbf7db672a1f8b3185fdccee9f54
1,473
py
Python
nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/ns/__init__.py
culbertm/NSttyPython
ff9f6aedae3fb8495342cd0fc4247c819cf47397
[ "Apache-2.0" ]
null
null
null
nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/ns/__init__.py
culbertm/NSttyPython
ff9f6aedae3fb8495342cd0fc4247c819cf47397
[ "Apache-2.0" ]
null
null
null
nitro-python/nssrc/com/citrix/netscaler/nitro/resource/config/ns/__init__.py
culbertm/NSttyPython
ff9f6aedae3fb8495342cd0fc4247c819cf47397
[ "Apache-2.0" ]
null
null
null
__all__ = ['nsacl', 'nsacl6', 'nsacls', 'nsacls6', 'nsappflowcollector', 'nsappflowparam', 'nsaptlicense', 'nsassignment', 'nscapacity', 'nscentralmanagementserver', 'nsconfig', 'nsconnectiontable', 'nsconsoleloginprompt', 'nsdhcpip', 'nsdhcpparams', 'nsdiameter', 'nsencryptionparams', 'nsevents', 'nsextension', 'nsext...
1,473
1,473
0.783435
__all__ = ['nsacl', 'nsacl6', 'nsacls', 'nsacls6', 'nsappflowcollector', 'nsappflowparam', 'nsaptlicense', 'nsassignment', 'nscapacity', 'nscentralmanagementserver', 'nsconfig', 'nsconnectiontable', 'nsconsoleloginprompt', 'nsdhcpip', 'nsdhcpparams', 'nsdiameter', 'nsencryptionparams', 'nsevents', 'nsextension', 'nsext...
true
true
1c4498665b8aae85e1fcc79ae9ad664e8e4f74fe
2,454
py
Python
script/map_design_layer.py
matteli/histemul
61f1ea8e1263b92fd2bead0c808f67940faad802
[ "BSD-2-Clause" ]
1
2019-07-05T09:40:50.000Z
2019-07-05T09:40:50.000Z
script/map_design_layer.py
matteli/histemul
61f1ea8e1263b92fd2bead0c808f67940faad802
[ "BSD-2-Clause" ]
null
null
null
script/map_design_layer.py
matteli/histemul
61f1ea8e1263b92fd2bead0c808f67940faad802
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 ''' Copyright (c) 2012-2015, Matthieu Nué All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of con...
40.9
154
0.765689
import shlex, subprocess print("1/5") p = subprocess.Popen(shlex.split("convert worldid.png -morphology Edge Disk:1.0 -threshold 0.1 -negate worldedge.png")) p.wait() print("2/5") p = subprocess.Popen(shlex.split("convert worldedge.png -blur 0x2 -shade 115x30 worldtemp1.png")) p.wait() print("3/5") p = subprocess.P...
true
true
1c449b22c9baf8b37615b192cc1ac043d84ca6f0
4,960
py
Python
arviz/plots/energyplot.py
aseyboldt/arviz
1fb40ff442f5ba4b8d11ceeaef27e6c339eb1685
[ "Apache-2.0" ]
null
null
null
arviz/plots/energyplot.py
aseyboldt/arviz
1fb40ff442f5ba4b8d11ceeaef27e6c339eb1685
[ "Apache-2.0" ]
null
null
null
arviz/plots/energyplot.py
aseyboldt/arviz
1fb40ff442f5ba4b8d11ceeaef27e6c339eb1685
[ "Apache-2.0" ]
null
null
null
"""Plot energy transition distribution in HMC inference.""" from itertools import cycle from matplotlib.pyplot import rcParams import numpy as np from ..data import convert_to_dataset from .plot_utils import _scale_fig_size, get_plotting_function def plot_energy( data, kind="kde", bfmi=True, figsize=...
33.066667
99
0.644355
from itertools import cycle from matplotlib.pyplot import rcParams import numpy as np from ..data import convert_to_dataset from .plot_utils import _scale_fig_size, get_plotting_function def plot_energy( data, kind="kde", bfmi=True, figsize=None, legend=True, fill_alpha=(1, 0.75), fill_co...
true
true
1c449b7027e666e7274fd83f44ad36f1462257cb
7,573
py
Python
addons/house_location/models/house_location.py
nathanbangwa243/house-location
fa38203b2c92dd97f253fc3b4354af228f1b0338
[ "MIT" ]
1
2021-11-17T18:49:44.000Z
2021-11-17T18:49:44.000Z
addons/house_location/models/house_location.py
nathanbangwa243/house-location
fa38203b2c92dd97f253fc3b4354af228f1b0338
[ "MIT" ]
null
null
null
addons/house_location/models/house_location.py
nathanbangwa243/house-location
fa38203b2c92dd97f253fc3b4354af228f1b0338
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # odoo imports from odoo import models from odoo import fields from odoo import api from odoo import exceptions # others imports import datetime class HouseLocation(models.Model): _name = 'house.location' _description = 'House Location' name = fields.Char(string="Title", require...
28.469925
105
0.589727
from odoo import models from odoo import fields from odoo import api from odoo import exceptions import datetime class HouseLocation(models.Model): _name = 'house.location' _description = 'House Location' name = fields.Char(string="Title", required=True, help="",) description = fields.Text(string=...
true
true
1c449c41e70e7280767ce5dd935f25659bbe4897
2,825
py
Python
salt/modules/scsi.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
salt/modules/scsi.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
salt/modules/scsi.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ SCSI administration module """ from __future__ import absolute_import, print_function, unicode_literals import logging import os.path import salt.utils.path log = logging.getLogger(__name__) __func_alias__ = {"ls_": "ls"} def ls_(get_size=True): """ List SCSI devices, with deta...
27.427184
88
0.513274
from __future__ import absolute_import, print_function, unicode_literals import logging import os.path import salt.utils.path log = logging.getLogger(__name__) __func_alias__ = {"ls_": "ls"} def ls_(get_size=True): if not salt.utils.path.which("lsscsi"): __context__["retcode"] = 1 return "scs...
true
true
1c449cfee90b6a41e6c2ac62cbebd76da108bf37
241
py
Python
approxhaynet/runsinglecellLFP.py
ModelDBRepository/237469
15f71106b4f99577ee503178aaedbf2781ec61f6
[ "CC-BY-4.0" ]
null
null
null
approxhaynet/runsinglecellLFP.py
ModelDBRepository/237469
15f71106b4f99577ee503178aaedbf2781ec61f6
[ "CC-BY-4.0" ]
null
null
null
approxhaynet/runsinglecellLFP.py
ModelDBRepository/237469
15f71106b4f99577ee503178aaedbf2781ec61f6
[ "CC-BY-4.0" ]
null
null
null
import simseedburst_func_withLFP data = simseedburst_func_withLFP.simseedburst_func(Nmc=1, tstop=11000,mutID=0,rdSeed=1,Econ=0.00039,Icon=0.0006,nseg=5,rateCoeff=1.0,gNoiseCoeff=1.07,gSynCoeff=1.07,Ncells2save=1,sparsedt=1.0,Nsyns2save=1)
48.2
205
0.821577
import simseedburst_func_withLFP data = simseedburst_func_withLFP.simseedburst_func(Nmc=1, tstop=11000,mutID=0,rdSeed=1,Econ=0.00039,Icon=0.0006,nseg=5,rateCoeff=1.0,gNoiseCoeff=1.07,gSynCoeff=1.07,Ncells2save=1,sparsedt=1.0,Nsyns2save=1)
true
true
1c449dd14a675bb11a5d0b4e04f1b1f2dd18faf5
1,083
py
Python
poptimizer/data/adapters/gateways/tests/test_cbr.py
poliyev/poptimizer
71935c4365b0572e65b6d3172f925701dda283db
[ "Unlicense" ]
94
2018-12-04T13:14:16.000Z
2022-03-31T17:53:11.000Z
poptimizer/data/adapters/gateways/tests/test_cbr.py
poliyev/poptimizer
71935c4365b0572e65b6d3172f925701dda283db
[ "Unlicense" ]
55
2019-11-25T21:18:50.000Z
2022-02-16T07:06:50.000Z
poptimizer/data/adapters/gateways/tests/test_cbr.py
poliyev/poptimizer
71935c4365b0572e65b6d3172f925701dda283db
[ "Unlicense" ]
25
2019-05-14T19:04:09.000Z
2022-03-21T05:22:28.000Z
"""Тесты загрузки данных о максимальных ставках депозитов с сайта ЦБР.""" from datetime import datetime import pandas as pd import pytest from poptimizer.data.adapters.gateways import cbr from poptimizer.data.adapters.html import parser from poptimizer.shared import col def test_date_parser(): """Проверка обраб...
27.769231
73
0.689751
from datetime import datetime import pandas as pd import pytest from poptimizer.data.adapters.gateways import cbr from poptimizer.data.adapters.html import parser from poptimizer.shared import col def test_date_parser(): assert cbr.date_parser("III.05.2021") == datetime(2021, 5, 21) assert cbr.date_parser("...
true
true
1c449e1964a8cbe044f07acdc9c0bc3aa308f42c
2,810
py
Python
setup.py
NarekA/olmos
740c1ec6351d96bcea4969ab87afdfb4686efbaf
[ "MIT" ]
null
null
null
setup.py
NarekA/olmos
740c1ec6351d96bcea4969ab87afdfb4686efbaf
[ "MIT" ]
null
null
null
setup.py
NarekA/olmos
740c1ec6351d96bcea4969ab87afdfb4686efbaf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ .. currentmodule:: setup.py .. moduleauthor:: NarekA <my_email> This file is used to create the package we'll publish to PyPI. """ import importlib.util import os from pathlib import Path from setuptools import setup, find_packages, Command from codecs import open #...
29.893617
79
0.649466
import importlib.util import os from pathlib import Path from setuptools import setup, find_packages, Command from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() # file in the src d...
true
true
1c449e4c0f9b6812e2ad6eb27f9fcdb6e97545d0
9,541
py
Python
Gabarito FlappyBird.py
eduardomoraespy/flappy_bird_with_neural-network
d394b9a5dea6eef684ed7a0179cfe8272c1e3bdc
[ "MIT" ]
null
null
null
Gabarito FlappyBird.py
eduardomoraespy/flappy_bird_with_neural-network
d394b9a5dea6eef684ed7a0179cfe8272c1e3bdc
[ "MIT" ]
null
null
null
Gabarito FlappyBird.py
eduardomoraespy/flappy_bird_with_neural-network
d394b9a5dea6eef684ed7a0179cfe8272c1e3bdc
[ "MIT" ]
null
null
null
import pygame import os import random import neat ai_jogando = True geracao = 0 TELA_LARGURA = 500 TELA_ALTURA = 700 IMAGEM_CANO = pygame.transform.scale2x(pygame.image.load(os.path.join('imgs', 'pipe.png'))) IMAGEM_CHAO = pygame.transform.scale2x(pygame.image.load(os.path.join('imgs', 'base.png'))) IMAGEM_BACKGROUN...
31.281967
96
0.579289
import pygame import os import random import neat ai_jogando = True geracao = 0 TELA_LARGURA = 500 TELA_ALTURA = 700 IMAGEM_CANO = pygame.transform.scale2x(pygame.image.load(os.path.join('imgs', 'pipe.png'))) IMAGEM_CHAO = pygame.transform.scale2x(pygame.image.load(os.path.join('imgs', 'base.png'))) IMAGEM_BACKGROUN...
true
true
1c449f9ed77b754c5bdb3a79fb6a5638a020d7b7
10,053
py
Python
pyjsviz/lib/python3.4/site-packages/pip/vcs/git.py
Geege/dataviz-with-python-and-js
2cb40ae243298d22ee98675692b44e8da950a812
[ "MIT" ]
null
null
null
pyjsviz/lib/python3.4/site-packages/pip/vcs/git.py
Geege/dataviz-with-python-and-js
2cb40ae243298d22ee98675692b44e8da950a812
[ "MIT" ]
null
null
null
pyjsviz/lib/python3.4/site-packages/pip/vcs/git.py
Geege/dataviz-with-python-and-js
2cb40ae243298d22ee98675692b44e8da950a812
[ "MIT" ]
null
null
null
from __future__ import absolute_import import logging import tempfile import os.path from pip.compat import samefile from pip.exceptions import BadCommand from pip._vendor.six.moves.urllib import parse as urllib_parse from pip._vendor.six.moves.urllib import request as urllib_request from pip.utils import display_pa...
36.556364
78
0.562718
from __future__ import absolute_import import logging import tempfile import os.path from pip.compat import samefile from pip.exceptions import BadCommand from pip._vendor.six.moves.urllib import parse as urllib_parse from pip._vendor.six.moves.urllib import request as urllib_request from pip.utils import display_pa...
true
true
1c449ff6839fb7088eca4a84f73092fc0c50bfd1
51,092
py
Python
tests/core/test_Transaction.py
ademcan/QRL
8eed7305c8a055758343ea414d8183f21b2bf6aa
[ "MIT" ]
1
2020-07-11T15:32:52.000Z
2020-07-11T15:32:52.000Z
tests/core/test_Transaction.py
ademcan/QRL
8eed7305c8a055758343ea414d8183f21b2bf6aa
[ "MIT" ]
null
null
null
tests/core/test_Transaction.py
ademcan/QRL
8eed7305c8a055758343ea414d8183f21b2bf6aa
[ "MIT" ]
null
null
null
from unittest import TestCase import simplejson as json from mock import Mock from pyqrllib.pyqrllib import bin2hstr from qrl.core.misc import logger from qrl.core.BlockHeader import BlockHeader from qrl.core.Transaction import Transaction, TransferTransaction, CoinBase, TokenTransaction, \ TransferTokenTransacti...
61.779927
145
0.630627
from unittest import TestCase import simplejson as json from mock import Mock from pyqrllib.pyqrllib import bin2hstr from qrl.core.misc import logger from qrl.core.BlockHeader import BlockHeader from qrl.core.Transaction import Transaction, TransferTransaction, CoinBase, TokenTransaction, \ TransferTokenTransacti...
true
true
1c44a1470ed6157280477e07c867ba2749afc4e3
8,947
py
Python
aggregate-reconstruction/reconstruct_aggregates.py
joncdavid/pymol-extras
89a6a85e442892bd3c3c4e69d738673798d02efb
[ "MIT" ]
null
null
null
aggregate-reconstruction/reconstruct_aggregates.py
joncdavid/pymol-extras
89a6a85e442892bd3c3c4e69d738673798d02efb
[ "MIT" ]
null
null
null
aggregate-reconstruction/reconstruct_aggregates.py
joncdavid/pymol-extras
89a6a85e442892bd3c3c4e69d738673798d02efb
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 ## #!/usr/bin/env python3 # filename: reconstruct_aggregates.py # author: Jon David # date: Wednesday, March 21, 2018 # description: # Reads a vizmo path file are renders a subset of those # configurations in PyMOL. #-------------------------------------------------------------------- # notes...
44.735
105
0.627473
from pymol import cmd class PathData(object): def __init__(self, fname, numModels): self.stepDict = {} self.readFile(fname, numModels) def readFile(self, fname, numModels): stepID = 0 with open(fname, 'r') as f: for line in f: modelConfigList = s...
true
true
1c44a236c91b224f4e6cf8cf92d6dda93dbb02b4
341
py
Python
lib/pool.py
Lufedi/reaper
bdf56b499e5b704c27b9f6c053d798c2a10fa4cf
[ "Apache-2.0" ]
106
2015-07-21T16:18:26.000Z
2022-03-31T06:45:34.000Z
lib/pool.py
Kowndinya2000/enhanced_repo_reaper
744f794ba53bde5667b3b0f99b07273d0e32a495
[ "Apache-2.0" ]
21
2015-07-11T03:48:28.000Z
2022-01-18T12:57:30.000Z
lib/pool.py
Kowndinya2000/enhanced_repo_reaper
744f794ba53bde5667b3b0f99b07273d0e32a495
[ "Apache-2.0" ]
26
2015-07-22T22:38:21.000Z
2022-03-14T10:11:56.000Z
import multiprocessing import multiprocessing.pool class NonDaemonicProcess(multiprocessing.Process): def _get_daemon(self): return False def _set_daemon(self, value): pass daemon = property(_get_daemon, _set_daemon) class NonDaemonicProcessPool(multiprocessing.pool.Pool): Process ...
20.058824
56
0.756598
import multiprocessing import multiprocessing.pool class NonDaemonicProcess(multiprocessing.Process): def _get_daemon(self): return False def _set_daemon(self, value): pass daemon = property(_get_daemon, _set_daemon) class NonDaemonicProcessPool(multiprocessing.pool.Pool): Process ...
true
true
1c44a23a3372712f8db5d46c920eaa64d7901173
621
py
Python
download_skipthought.py
prakashpandey9/Text2Image-PyTorch
1cafacdc284590c30c635e7e519a5acaabd4463c
[ "MIT" ]
28
2018-11-25T18:40:33.000Z
2021-07-30T03:17:29.000Z
download_skipthought.py
prakashpandey9/Text2Image-PyTorch
1cafacdc284590c30c635e7e519a5acaabd4463c
[ "MIT" ]
1
2019-07-22T15:28:33.000Z
2019-07-22T15:28:33.000Z
download_skipthought.py
prakashpandey9/Text2Image-PyTorch
1cafacdc284590c30c635e7e519a5acaabd4463c
[ "MIT" ]
4
2020-04-18T08:48:33.000Z
2021-04-15T10:00:36.000Z
import os print ('Downloading Skip-Thought Model ...........') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/dictionary.txt') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/utable.npy') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/btable.npy') os.sysytem('wget http://www.cs.toronto....
51.75
76
0.723027
import os print ('Downloading Skip-Thought Model ...........') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/dictionary.txt') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/utable.npy') os.sysytem('wget http://www.cs.toronto.edu/~rkiros/models/btable.npy') os.sysytem('wget http://www.cs.toronto....
true
true
1c44a2f703726e0b57034ec9391f3a3d4cc34e07
5,464
py
Python
meiduo03/meiduo03/settings/dev.py
physili/django_test
09aa61f36e5d32f98af11057ea206dde8d082ac7
[ "MIT" ]
1
2020-04-25T04:50:30.000Z
2020-04-25T04:50:30.000Z
meiduo03/meiduo03/settings/dev.py
physili/django_test
09aa61f36e5d32f98af11057ea206dde8d082ac7
[ "MIT" ]
null
null
null
meiduo03/meiduo03/settings/dev.py
physili/django_test
09aa61f36e5d32f98af11057ea206dde8d082ac7
[ "MIT" ]
null
null
null
""" Django settings for meiduo03 project. Generated by 'django-admin startproject' using Django 2.2.5. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os i...
27.32
91
0.625
import os import sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, os.path.join(BASE_DIR,'apps')) SECRET_KEY = 's5(_7x3_(ls=$_sts_6g*$arw1l7wj!yha2hz)t_$$^ua!!n!+' DEBUG = True ALLOWED_HOSTS = ['127.0.0.1','localhost','www.meiduo.site',] AUTH_USER_MODEL = 'users.User' ...
true
true
1c44a300424e00e2d85f0ffb0cabd4407222539d
1,290
py
Python
setup.py
tfiers/piprelease
37bbea7788bb55408a10156e9d113a7532f20e29
[ "MIT" ]
null
null
null
setup.py
tfiers/piprelease
37bbea7788bb55408a10156e9d113a7532f20e29
[ "MIT" ]
null
null
null
setup.py
tfiers/piprelease
37bbea7788bb55408a10156e9d113a7532f20e29
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup GITHUB_URL = "https://github.com/tfiers/puprelease" with open("ReadMe.md", mode="r", encoding="utf-8") as f: readme = f.read() setup( name="puprelease", description="Publishing a new version of your Python package has never been easier", author="Tomas Fier...
31.463415
90
0.627907
from setuptools import find_packages, setup GITHUB_URL = "https://github.com/tfiers/puprelease" with open("ReadMe.md", mode="r", encoding="utf-8") as f: readme = f.read() setup( name="puprelease", description="Publishing a new version of your Python package has never been easier", author="Tomas Fier...
true
true
1c44a48fdd16495155236d2c05304496a7bd5de7
840
py
Python
Oauth/app/routers/templates.py
837477/Oauth
8d01a84d71563d9d510950cdb77ae67de0da2a40
[ "MIT" ]
2
2022-01-09T09:26:50.000Z
2022-01-16T15:56:10.000Z
Oauth/app/routers/templates.py
837477/Oauth
8d01a84d71563d9d510950cdb77ae67de0da2a40
[ "MIT" ]
null
null
null
Oauth/app/routers/templates.py
837477/Oauth
8d01a84d71563d9d510950cdb77ae67de0da2a40
[ "MIT" ]
1
2022-03-02T05:30:13.000Z
2022-03-02T05:30:13.000Z
from fastapi import APIRouter, Request from fastapi.templating import Jinja2Templates from config import config from controller.google import GoogleOauth from controller.kakao import KakaoOauth from controller.naver import NaverOauth from controller.facebook import FacebookOauth router = APIRouter() templates = Jinja...
27.096774
60
0.70119
from fastapi import APIRouter, Request from fastapi.templating import Jinja2Templates from config import config from controller.google import GoogleOauth from controller.kakao import KakaoOauth from controller.naver import NaverOauth from controller.facebook import FacebookOauth router = APIRouter() templates = Jinja...
true
true
1c44a6cdf5d3d9445c99399658fd28df0e8e2d8b
96
py
Python
python3/help/set1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python3/help/set1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
python3/help/set1.py
jtraver/dev
c7cd2181594510a8fa27e7325566ed2d79371624
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #!/usr/bin/python import apihelper set1 = set() apihelper.info(set1)
9.6
22
0.697917
import apihelper set1 = set() apihelper.info(set1)
true
true
1c44a7936b88cb93c79a780c2dc47a1095d6da76
1,356
py
Python
PyEngine3D/Render/RenderOptions.py
ubuntunux/PyEngine3D
e5542b5b185e8b9b56fc4669a6f22eb06c386c4f
[ "BSD-2-Clause" ]
121
2017-06-07T19:42:30.000Z
2022-03-31T04:42:29.000Z
PyEngine3D/Render/RenderOptions.py
MatthewPChapdelaine/PyEngine3D
e5542b5b185e8b9b56fc4669a6f22eb06c386c4f
[ "BSD-2-Clause" ]
16
2015-12-21T16:57:55.000Z
2017-03-06T15:22:37.000Z
PyEngine3D/Render/RenderOptions.py
ubuntunux/GuineaPig
f32852ecbfa3ebdbba00afc466719fc78e37361c
[ "BSD-2-Clause" ]
16
2018-01-15T03:12:13.000Z
2022-03-31T04:42:41.000Z
from enum import Enum from PyEngine3D.Common import logger from PyEngine3D.Utilities import * class BlendMode(Enum): BLEND = 0 ADDITIVE = 1 MULTIPLY = 2 SUBTRACT = 3 class RenderOption: RENDER_LIGHT_PROBE = False RENDER_ONLY_ATMOSPHERE = False RENDER_FONT = True RENDER_STATIC_ACTOR ...
21.1875
81
0.679941
from enum import Enum from PyEngine3D.Common import logger from PyEngine3D.Utilities import * class BlendMode(Enum): BLEND = 0 ADDITIVE = 1 MULTIPLY = 2 SUBTRACT = 3 class RenderOption: RENDER_LIGHT_PROBE = False RENDER_ONLY_ATMOSPHERE = False RENDER_FONT = True RENDER_STATIC_ACTOR ...
true
true
1c44a7add9bb2ee186aadb91834062e0c8e8fe58
18,039
py
Python
r2r_src/speaker.py
MarSaKi/NvEM
a636245c96c07f3b507b69f2a9837a4ff127f4aa
[ "MIT" ]
16
2021-07-16T02:00:33.000Z
2022-03-28T03:57:11.000Z
r2r_src/speaker.py
MarSaKi/NvEM
a636245c96c07f3b507b69f2a9837a4ff127f4aa
[ "MIT" ]
null
null
null
r2r_src/speaker.py
MarSaKi/NvEM
a636245c96c07f3b507b69f2a9837a4ff127f4aa
[ "MIT" ]
1
2022-01-18T09:16:46.000Z
2022-01-18T09:16:46.000Z
import torch import numpy as np from param import args import os import utils import model import torch.nn.functional as F import time class Speaker(): env_actions = { 'left': (0,-1, 0), # left 'right': (0, 1, 0), # right 'up': (0, 0, 1), # up 'down': (0, 0,-1), # down 'for...
43.890511
144
0.543489
import torch import numpy as np from param import args import os import utils import model import torch.nn.functional as F import time class Speaker(): env_actions = { 'left': (0,-1, 0), 'right': (0, 1, 0), 'up': (0, 0, 1), 'down': (0, 0,-1), 'forward': (1, 0, 0), '...
true
true
1c44a87a151e7c36edf8003106e7947c0ba32f65
48,907
py
Python
promgen/views.py
XILEF-Labs/promgen
f93b395df6e17a387edb9c4fcb431b10ce0a80cc
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
promgen/views.py
XILEF-Labs/promgen
f93b395df6e17a387edb9c4fcb431b10ce0a80cc
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
promgen/views.py
XILEF-Labs/promgen
f93b395df6e17a387edb9c4fcb431b10ce0a80cc
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import collections import concurrent.futures import datetime import json import logging import platform import time from itertools import chain import prometheus_client import requests from prometheus_cl...
36.79985
147
0.631566
import collections import concurrent.futures import datetime import json import logging import platform import time from itertools import chain import prometheus_client import requests from prometheus_client.core import CounterMetricFamily, GaugeMetricFamily from django.contrib import messages from django.contrib.au...
true
true
1c44a983770db16ec1a6f33dad6de70d9d9f5c16
5,443
py
Python
build/update_version.py
ruanyijian/QRCodeScanner
de3df01dec09a662d035dd43091dd024b322daf0
[ "MIT" ]
1
2019-03-07T14:07:59.000Z
2019-03-07T14:07:59.000Z
build/update_version.py
ruanyijian/QRCodeScanner
de3df01dec09a662d035dd43091dd024b322daf0
[ "MIT" ]
null
null
null
build/update_version.py
ruanyijian/QRCodeScanner
de3df01dec09a662d035dd43091dd024b322daf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import xml.etree.cElementTree as etree import datetime TARGET_SRC_ROOT = "../src" TARGET_PROJECT_NAMES = ["organic"] TARGET_PLIST_FILES = ["Info.plist"] DEBUG_ENABLE = False def get_value_node_by_key(dict_node, key): key_node = None value_node = None ...
28.497382
107
0.693184
import os import xml.etree.cElementTree as etree import datetime TARGET_SRC_ROOT = "../src" TARGET_PROJECT_NAMES = ["organic"] TARGET_PLIST_FILES = ["Info.plist"] DEBUG_ENABLE = False def get_value_node_by_key(dict_node, key): key_node = None value_node = None for key_value_node in dict_node: tex...
true
true
1c44aa3d721e63405060a14d3289a34802de3b56
336
py
Python
Python/widest-vertical-area-between-two-points-containing-no-points.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/widest-vertical-area-between-two-points-containing-no-points.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/widest-vertical-area-between-two-points-containing-no-points.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
# Time: O(nlogn) # Space: O(n) import itertools class Solution(object): def maxWidthOfVerticalArea(self, points): """ :type points: List[List[int]] :rtype: int """ sorted_x = sorted({x for x, y in points}) return max([b-a for a, b in itertools.zip(sorted_x, sorted...
22.4
81
0.568452
import itertools class Solution(object): def maxWidthOfVerticalArea(self, points): sorted_x = sorted({x for x, y in points}) return max([b-a for a, b in itertools.zip(sorted_x, sorted_x[1:])] + [0])
true
true
1c44aa96dbe8157f19e95301eb7b709329e47002
380
py
Python
engine/src/hopeit/testing/__init__.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
15
2020-07-09T17:41:14.000Z
2021-10-04T20:13:08.000Z
engine/src/hopeit/testing/__init__.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
48
2020-07-10T15:16:17.000Z
2022-03-03T19:46:46.000Z
engine/src/hopeit/testing/__init__.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
3
2020-07-08T20:12:58.000Z
2021-01-10T15:57:21.000Z
""" hopeit.engine testing module Provides utilities to test and write unit or integration tests for App Events: * **apps**: load config and execute app events for testing behaviour. Allows execution of events without starting a server. * **encryption**: provides data encryption for tests. Useful to test...
31.666667
90
0.705263
__all__ = ['apps', 'encryption']
true
true
1c44ab3987f668f224f7607d88fa170256a0b39a
661
py
Python
6 Web Page with Flask/basic page/script1.py
mself9/pythonteachingcode
45da22291ef38fa4cc971bc196e9bba968b9fe9e
[ "MIT" ]
null
null
null
6 Web Page with Flask/basic page/script1.py
mself9/pythonteachingcode
45da22291ef38fa4cc971bc196e9bba968b9fe9e
[ "MIT" ]
null
null
null
6 Web Page with Flask/basic page/script1.py
mself9/pythonteachingcode
45da22291ef38fa4cc971bc196e9bba968b9fe9e
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request app=Flask(__name__) @app.route('/greet', methods=['POST']) def greet(): inputName = request.form['myName'] ip = request.remote_addr #write data to file or to DB inputName = inputName.upper()+" hi! Visiting from " + str(ip) return render_temp...
26.44
67
0.652042
from flask import Flask, render_template, request app=Flask(__name__) @app.route('/greet', methods=['POST']) def greet(): inputName = request.form['myName'] ip = request.remote_addr inputName = inputName.upper()+" hi! Visiting from " + str(ip) return render_template("home.html",myName=inputN...
true
true
1c44adf778926c615954fa37210f146b492819bd
573
py
Python
active_directory2/log.py
tjguk/active_directory2
0338ea9ea168fd37869689c108fe08f716408c95
[ "MIT" ]
2
2016-05-30T14:15:42.000Z
2021-05-15T03:26:22.000Z
active_directory2/log.py
tjguk/active_directory2
0338ea9ea168fd37869689c108fe08f716408c95
[ "MIT" ]
null
null
null
active_directory2/log.py
tjguk/active_directory2
0338ea9ea168fd37869689c108fe08f716408c95
[ "MIT" ]
null
null
null
import os, sys import logging formatter = logging.Formatter ("[%(levelname)s] %(module)s.%(funcName)s: %(message)s") logger = logging.getLogger ("active_directory2") logger.setLevel (logging.DEBUG) stderr_handler = logging.StreamHandler (sys.stderr) stderr_handler.setLevel (logging.WARN) stderr_handler.setFo...
33.705882
87
0.77836
import os, sys import logging formatter = logging.Formatter ("[%(levelname)s] %(module)s.%(funcName)s: %(message)s") logger = logging.getLogger ("active_directory2") logger.setLevel (logging.DEBUG) stderr_handler = logging.StreamHandler (sys.stderr) stderr_handler.setLevel (logging.WARN) stderr_handler.setFo...
true
true
1c44ae6d5a623af6a8eb72eb8c395b5f3d6c50e0
146
py
Python
travis_test/__init__.py
Fixdq/Pagination
3497bc72f1a010c382c7ca686d50dc95566f0a96
[ "MIT" ]
1
2019-02-19T06:04:50.000Z
2019-02-19T06:04:50.000Z
travis_test/__init__.py
Fixdq/pagination
3497bc72f1a010c382c7ca686d50dc95566f0a96
[ "MIT" ]
null
null
null
travis_test/__init__.py
Fixdq/pagination
3497bc72f1a010c382c7ca686d50dc95566f0a96
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 18-7-26 上午12:01 # @Author : fixdq # @File : __init__.py.py # @Software: PyCharm
16.222222
28
0.568493
true
true
1c44aeadb7721c811d2848f1f8dd459a92307775
294
py
Python
rss_scrapper/tasks/dummy.py
abrioy/rss_scrapper
b4778ae922ca7e2ef3a7720dc1c69eafffccf0af
[ "MIT" ]
null
null
null
rss_scrapper/tasks/dummy.py
abrioy/rss_scrapper
b4778ae922ca7e2ef3a7720dc1c69eafffccf0af
[ "MIT" ]
null
null
null
rss_scrapper/tasks/dummy.py
abrioy/rss_scrapper
b4778ae922ca7e2ef3a7720dc1c69eafffccf0af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from rss_scrapper.tasks.task import Task logger = logging.getLogger(__name__) class DummyTask(Task): name = "dummy" def init(self): pass def init_conf(self, conf): pass def do_execute(self, data): yield data
14.7
40
0.62585
import logging from rss_scrapper.tasks.task import Task logger = logging.getLogger(__name__) class DummyTask(Task): name = "dummy" def init(self): pass def init_conf(self, conf): pass def do_execute(self, data): yield data
true
true
1c44aec2f19d1cb0ee064b23305e2fcaf8df3269
10,034
py
Python
test/data/test_modules.py
abhinavarora/text
69f67f3a775f3d3c6f85cfaa4ac3819500b90696
[ "BSD-3-Clause" ]
1
2022-01-03T17:30:57.000Z
2022-01-03T17:30:57.000Z
test/data/test_modules.py
abhinavarora/text
69f67f3a775f3d3c6f85cfaa4ac3819500b90696
[ "BSD-3-Clause" ]
null
null
null
test/data/test_modules.py
abhinavarora/text
69f67f3a775f3d3c6f85cfaa4ac3819500b90696
[ "BSD-3-Clause" ]
null
null
null
import torch from torch.nn import Linear from torch.nn.functional import multi_head_attention_forward as mha_forward from torchtext.nn import InProjContainer, MultiheadAttentionContainer, ScaledDotProduct from ..common.torchtext_test_case import TorchtextTestCase class TestModels(TorchtextTestCase): def test_mul...
44.794643
119
0.607435
import torch from torch.nn import Linear from torch.nn.functional import multi_head_attention_forward as mha_forward from torchtext.nn import InProjContainer, MultiheadAttentionContainer, ScaledDotProduct from ..common.torchtext_test_case import TorchtextTestCase class TestModels(TorchtextTestCase): def test_mul...
true
true
1c44af7b481705d54dd67e7ed0c411ed35f66a39
9,372
py
Python
docs/conf.py
MasterScott/pem
9d910ab8b5d1b965ad696ddb19060d100dd6aba6
[ "MIT" ]
89
2015-01-31T20:54:34.000Z
2022-03-09T08:24:43.000Z
docs/conf.py
MasterScott/pem
9d910ab8b5d1b965ad696ddb19060d100dd6aba6
[ "MIT" ]
41
2015-01-13T14:46:20.000Z
2021-04-07T15:01:29.000Z
docs/conf.py
MasterScott/pem
9d910ab8b5d1b965ad696ddb19060d100dd6aba6
[ "MIT" ]
32
2015-01-09T20:45:11.000Z
2021-04-23T13:30:54.000Z
# -*- coding: utf-8 -*- # # pem documentation build configuration file, created by # sphinx-quickstart on Thu Jul 9 13:12:00 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
31.662162
79
0.705079
import pem try: import sphinx_rtd_theme except ImportError: sphinx_rtd_theme = None linkcheck_ignore = [ r"https://github.com/.*/(issues|pull)/\d+", ] extensions = [ "sphinx.ext.autodoc", "sphinx.ext.doctest", "sphinx.ext.intersphinx", ] templates_path = ["_templates"] source_suffix =...
true
true
1c44afe65f59be39bef35bdf6165a67aa4f650fc
92
py
Python
app/auth/__init__.py
Bernicetwili/Pitch
35d49df19eaff05bff77af1e4c71e155165c74ad
[ "MIT" ]
null
null
null
app/auth/__init__.py
Bernicetwili/Pitch
35d49df19eaff05bff77af1e4c71e155165c74ad
[ "MIT" ]
null
null
null
app/auth/__init__.py
Bernicetwili/Pitch
35d49df19eaff05bff77af1e4c71e155165c74ad
[ "MIT" ]
null
null
null
from flask import Blueprint from . import views,forms auth = Blueprint('auth',__name__)
11.5
33
0.75
from flask import Blueprint from . import views,forms auth = Blueprint('auth',__name__)
true
true
1c44b02f6ceca7ed58c6127bce66e10cd451cce5
3,984
py
Python
CLIDice.py
DNEAVES/CLIDice
d1cd7b069ea892f4747fc21da3e6623f2ecdacc7
[ "MIT" ]
null
null
null
CLIDice.py
DNEAVES/CLIDice
d1cd7b069ea892f4747fc21da3e6623f2ecdacc7
[ "MIT" ]
null
null
null
CLIDice.py
DNEAVES/CLIDice
d1cd7b069ea892f4747fc21da3e6623f2ecdacc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.10 import sys import random import re from pprint import pprint from Print.help import dice_help from Print.help2 import dice_help_two from Print.credits import dice_credits standard_dice = [2, 4, 6, 8, 10, 00, 12, 20, 30, 100] def roll(dice: int, idv_mod: int, ignore_zero: bool = False): ...
30.181818
91
0.490462
import sys import random import re from pprint import pprint from Print.help import dice_help from Print.help2 import dice_help_two from Print.credits import dice_credits standard_dice = [2, 4, 6, 8, 10, 00, 12, 20, 30, 100] def roll(dice: int, idv_mod: int, ignore_zero: bool = False): if dice != 00: d...
true
true
1c44b16a40d680be969d40f8ef3debeda1405080
7,935
py
Python
2019-2020/Lato/Sztuczna Inteligencja/Lista01/zad5.py
ldept/University
f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee
[ "FTL" ]
null
null
null
2019-2020/Lato/Sztuczna Inteligencja/Lista01/zad5.py
ldept/University
f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee
[ "FTL" ]
null
null
null
2019-2020/Lato/Sztuczna Inteligencja/Lista01/zad5.py
ldept/University
f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee
[ "FTL" ]
null
null
null
import random from zad4 import opt_dist def print_nonogram(nonogram): print(" ", end='') for i in range(len(nonogram)): print(col_numbers[i], end='') print() for index, row in enumerate(nonogram): print(row_numbers[index], end='') for col in row: print("#" if col==1 ...
40.075758
148
0.616761
import random from zad4 import opt_dist def print_nonogram(nonogram): print(" ", end='') for i in range(len(nonogram)): print(col_numbers[i], end='') print() for index, row in enumerate(nonogram): print(row_numbers[index], end='') for col in row: print("#" if col==1 ...
true
true
1c44b1733cd51ce1847605ee462170363bfdd49d
1,671
py
Python
post/models.py
bluesky0960/MiniProject1-DjangoWebApp_n
368457dfde8ba6601b82ff218aa3bb3eed639a5a
[ "MIT" ]
null
null
null
post/models.py
bluesky0960/MiniProject1-DjangoWebApp_n
368457dfde8ba6601b82ff218aa3bb3eed639a5a
[ "MIT" ]
null
null
null
post/models.py
bluesky0960/MiniProject1-DjangoWebApp_n
368457dfde8ba6601b82ff218aa3bb3eed639a5a
[ "MIT" ]
null
null
null
from email.policy import default from django.db import models from ckeditor.fields import RichTextField from tagging.fields import TagField from django.conf import settings class Post(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) author = models.CharField(m...
34.102041
100
0.701376
from email.policy import default from django.db import models from ckeditor.fields import RichTextField from tagging.fields import TagField from django.conf import settings class Post(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) author = models.CharField(m...
true
true
1c44b2b95aa8c78f49081c3ed36d75f8f3b16d67
4,321
py
Python
data/process_data.py
akiaohk/Udacity-Disaster-Response-Pipelines
9a6042a0d288381c1310de1948121bccf647f418
[ "RSA-MD" ]
null
null
null
data/process_data.py
akiaohk/Udacity-Disaster-Response-Pipelines
9a6042a0d288381c1310de1948121bccf647f418
[ "RSA-MD" ]
null
null
null
data/process_data.py
akiaohk/Udacity-Disaster-Response-Pipelines
9a6042a0d288381c1310de1948121bccf647f418
[ "RSA-MD" ]
null
null
null
""" Project: Disaster Response Pipeline Script Syntax for execution: > python process_data.py <path to messages csv file> <path to categories csv file> <path to sqllite destination db> > python process_data.py disaster_messages.csv disaster_categories.csv DisasterResponse.db """ # Import libraries import sys import ...
35.130081
124
0.674612
import sys import pandas as pd import sqlite3 from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): messages = pd.read_csv(messages_filepath) categories = pd.read_csv(categories_filepath) df = messages.merge(categories, on = ['id']) return df ...
true
true
1c44b2d75035252cf0824ee80a4607398785d535
148
py
Python
tests/context.py
tetio/green_snake
014d5cf4c96858abb09ee1a4bda0ee84b80b5666
[ "BSD-2-Clause" ]
null
null
null
tests/context.py
tetio/green_snake
014d5cf4c96858abb09ee1a4bda0ee84b80b5666
[ "BSD-2-Clause" ]
null
null
null
tests/context.py
tetio/green_snake
014d5cf4c96858abb09ee1a4bda0ee84b80b5666
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import green_snake
21.142857
82
0.689189
import sys import os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import green_snake
true
true
1c44b32a5d9cf46b962dd89bdbf7c6993962dd46
9,077
py
Python
convokit/politeness_collections/politeness_api/features/politeness_strategies.py
CornellNLP/Cornell-Conversational-Analysis-Toolkit
0bc4d1a4baf25eec0861440dc3166c60d4cbe339
[ "MIT" ]
371
2016-07-19T22:10:13.000Z
2022-03-28T08:04:32.000Z
convokit/politeness_collections/politeness_api/features/politeness_strategies.py
CornellNLP/Cornell-Conversational-Analysis-Toolkit
0bc4d1a4baf25eec0861440dc3166c60d4cbe339
[ "MIT" ]
92
2017-07-25T22:04:11.000Z
2022-03-29T13:46:07.000Z
convokit/politeness_collections/politeness_api/features/politeness_strategies.py
CornellNLP/Cornell-Conversational-Analysis-Toolkit
0bc4d1a4baf25eec0861440dc3166c60d4cbe339
[ "MIT" ]
105
2016-07-04T15:04:53.000Z
2022-03-30T01:36:38.000Z
import pkg_resources import os ##### # Word lists hedges = [ "think", "thought", "thinking", "almost", "apparent", "apparently", "appear", "appeared", "appears", "approximately", "around", "assume", "assumed", "certain amount", "certain extent", "certain level", "claim", "claimed", "doubt", "doubtful"...
39.125
157
0.577393
import pkg_resources import os hedges = [ "think", "thought", "thinking", "almost", "apparent", "apparently", "appear", "appeared", "appears", "approximately", "around", "assume", "assumed", "certain amount", "certain extent", "certain level", "claim", "claimed", "doubt", "doubtful", "essentially", "e...
true
true
1c44b3943158b819f95a2467b6baf9a67b1af264
4,385
py
Python
33RL/02maze/maze_env.py
cheerfulwang/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
2
2021-01-04T10:44:44.000Z
2022-02-13T07:53:41.000Z
33RL/02maze/maze_env.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
null
null
null
33RL/02maze/maze_env.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
2
2020-11-23T08:58:51.000Z
2022-02-13T07:53:42.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ """ Reinforcement learning maze example. Red rectangle: explorer. Black rectangles: hells [reward = -1]. Yellow bin circle: paradise [reward = +1]. All other states: ground [reward = 0]. This script ...
29.039735
84
0.51927
import numpy as np import time import sys if sys.version_info.major == 2: import Tkinter as tk else: import tkinter as tk UNIT = 40 MAZE_H = 4 MAZE_W = 4 class Maze(tk.Tk, object): def __init__(self): super(Maze, self).__init__() self.action_space = ['u', 'd', 'l', 'r'] se...
true
true
1c44b5b492fbfda587fd4612218f612dc17333a7
1,124
py
Python
fuzzysort.py
TylerZeroMaster/Fuzzysorting
fc894707dd3af001e809fcdad83170b1963fbab4
[ "MIT" ]
null
null
null
fuzzysort.py
TylerZeroMaster/Fuzzysorting
fc894707dd3af001e809fcdad83170b1963fbab4
[ "MIT" ]
null
null
null
fuzzysort.py
TylerZeroMaster/Fuzzysorting
fc894707dd3af001e809fcdad83170b1963fbab4
[ "MIT" ]
null
null
null
from random import randint from time import time from array import array def clock(): start = time() while 1: yield time() - start def bubble_sort(a): n = len(a) while n != 0: newn = 0 i = 1 while i < n: fir = a[i - 1] if fir > a[i]: ...
22.039216
67
0.456406
from random import randint from time import time from array import array def clock(): start = time() while 1: yield time() - start def bubble_sort(a): n = len(a) while n != 0: newn = 0 i = 1 while i < n: fir = a[i - 1] if fir > a[i]: ...
true
true
1c44b6516f38798433717035c3debbc803b324b5
1,566
py
Python
src/rl/AtariAgent.py
fronovics/AI_playground
ac302c0694fa2182af343c257b28a033bc4cf5b9
[ "Apache-2.0" ]
null
null
null
src/rl/AtariAgent.py
fronovics/AI_playground
ac302c0694fa2182af343c257b28a033bc4cf5b9
[ "Apache-2.0" ]
null
null
null
src/rl/AtariAgent.py
fronovics/AI_playground
ac302c0694fa2182af343c257b28a033bc4cf5b9
[ "Apache-2.0" ]
null
null
null
import random import numpy as np import gym import cv2 from random import random from src.rl.ReplayMemory import ReplayMemory class AtariAgent(object): def __init__(self, env: gym.Env, net, config): self.mem = ReplayMemory(config) self.env = env self.net = net self.eps = config['e...
27.964286
78
0.57599
import random import numpy as np import gym import cv2 from random import random from src.rl.ReplayMemory import ReplayMemory class AtariAgent(object): def __init__(self, env: gym.Env, net, config): self.mem = ReplayMemory(config) self.env = env self.net = net self.eps = config['e...
true
true
1c44b8d5c17ebb7a41d93d6912bd998e1d2841bf
4,284
py
Python
src/models/model_lightning.py
granatb/mlops_handin
b0992be9667bf7f1e226efd0174289327a548efb
[ "MIT" ]
null
null
null
src/models/model_lightning.py
granatb/mlops_handin
b0992be9667bf7f1e226efd0174289327a548efb
[ "MIT" ]
null
null
null
src/models/model_lightning.py
granatb/mlops_handin
b0992be9667bf7f1e226efd0174289327a548efb
[ "MIT" ]
null
null
null
import os import sys from typing import Callable, List, Optional, Tuple, Union import matplotlib.pyplot as plt # type: ignore import pytorch_lightning as pl import torch import torch.nn.functional as F from pytorch_lightning import loggers from torch import nn from torch.utils.data import Dataset sys.path.insert(1, ...
31.733333
88
0.65056
import os import sys from typing import Callable, List, Optional, Tuple, Union import matplotlib.pyplot as plt import pytorch_lightning as pl import torch import torch.nn.functional as F from pytorch_lightning import loggers from torch import nn from torch.utils.data import Dataset sys.path.insert(1, os.path.join(sy...
true
true
1c44b965ae0544a2d5f9e1d40e2c8c42d789fbb0
13,724
py
Python
models/resnet.py
eyov7/CV_LTH_Pre-training-LLNL
bb18ba2093328aeb4e5ab3929f2749264ef3c981
[ "MIT" ]
47
2020-12-15T03:40:50.000Z
2022-03-30T03:38:29.000Z
models/resnet.py
eyov7/CV_LTH_Pre-training-LLNL
bb18ba2093328aeb4e5ab3929f2749264ef3c981
[ "MIT" ]
null
null
null
models/resnet.py
eyov7/CV_LTH_Pre-training-LLNL
bb18ba2093328aeb4e5ab3929f2749264ef3c981
[ "MIT" ]
10
2021-03-17T01:28:57.000Z
2022-02-24T20:23:57.000Z
import torch import torch.nn as nn from advertorch.utils import NormalizeByChannelMeanStd from torchvision.models.utils import load_state_dict_from_url __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d', 'wide_resnet50_2', 'wide_res...
38.659155
107
0.634509
import torch import torch.nn as nn from advertorch.utils import NormalizeByChannelMeanStd from torchvision.models.utils import load_state_dict_from_url __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d', 'wide_resnet50_2', 'wide_res...
true
true
1c44ba1d050a5c452efb2e0f80a6341a0cd138e5
13,908
py
Python
open_spiel/python/rl_environment.py
antonevenepoel/open_spiel
f2f0c786410018675fc40e9a5b82c40814555fa8
[ "Apache-2.0" ]
null
null
null
open_spiel/python/rl_environment.py
antonevenepoel/open_spiel
f2f0c786410018675fc40e9a5b82c40814555fa8
[ "Apache-2.0" ]
null
null
null
open_spiel/python/rl_environment.py
antonevenepoel/open_spiel
f2f0c786410018675fc40e9a5b82c40814555fa8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
36.124675
80
0.704774
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections from absl import logging import enum import numpy as np import pyspiel SIMULTANEOUS_PLAYER_ID = pyspiel.PlayerId.SIMULTANEOUS class TimeStep( collections.namedtuple( "TimeS...
true
true
1c44bc896af0886897c2340327fd5e82882c9c91
467
py
Python
malcolm/modules/builtin/parts/float64part.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
malcolm/modules/builtin/parts/float64part.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
malcolm/modules/builtin/parts/float64part.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
from malcolm.core import method_also_takes from malcolm.modules.builtin.vmetas import NumberMeta from .attributepart import AttributePart @method_also_takes( "initialValue", NumberMeta("float64", "Initial value of attribute"), 0.0, ) class Float64Part(AttributePart): def get_initial_value(self): retur...
31.133333
77
0.768737
from malcolm.core import method_also_takes from malcolm.modules.builtin.vmetas import NumberMeta from .attributepart import AttributePart @method_also_takes( "initialValue", NumberMeta("float64", "Initial value of attribute"), 0.0, ) class Float64Part(AttributePart): def get_initial_value(self): retur...
true
true
1c44bde50b8bbe235553d6be40f12534a7ddeb26
15,857
py
Python
test_reporting/junit_xml_parser.py
vkuma82/sonic-mgmt
131764317fe590141b6fa38fc60f243b43bf616c
[ "Apache-2.0" ]
1
2021-09-15T17:06:16.000Z
2021-09-15T17:06:16.000Z
test_reporting/junit_xml_parser.py
vkuma82/sonic-mgmt
131764317fe590141b6fa38fc60f243b43bf616c
[ "Apache-2.0" ]
null
null
null
test_reporting/junit_xml_parser.py
vkuma82/sonic-mgmt
131764317fe590141b6fa38fc60f243b43bf616c
[ "Apache-2.0" ]
null
null
null
"""Utilities for validating and parsing JUnit XML files generated by Pytest and Spytest. This library/script should work for any test result XML file generated by Pytest or Spytest. CLI Usage: % python3 junit_xml_parser.py -h usage: junit_xml_parser.py [-h] [--validate-only] [--compact] [--output-file OUTPUT_FILE] fi...
32.627572
122
0.648483
import argparse import glob import json import sys import os from collections import defaultdict from datetime import datetime import defusedxml.ElementTree as ET TEST_REPORT_CLIENT_VERSION = (1, 1, 0) MAXIMUM_XML_SIZE = 20e7 MAXIMUM_SUMMARY_SIZE = 1024 TESTSUITE_TAG = "testsuite" REQUIRED_TESTSUITE_ATTRIBUTES ...
true
true
1c44be78f0de124dc36c88eff98e426707185e4e
614
py
Python
src/coincheck/withdraw.py
coincheckjp/coincheck-python
85e8f9a9b9245e047a95cd33615284259e9ba399
[ "MIT" ]
46
2017-03-29T00:18:00.000Z
2022-03-19T12:55:43.000Z
coincheck/withdraw.py
gamma-github/cryptCurrency
efb67f3a4ba0819224f73fefec53dfadcc2cbf78
[ "MIT" ]
3
2017-08-04T05:31:29.000Z
2018-08-09T06:42:25.000Z
coincheck/withdraw.py
gamma-github/cryptCurrency
efb67f3a4ba0819224f73fefec53dfadcc2cbf78
[ "MIT" ]
21
2017-03-11T14:31:09.000Z
2021-01-07T02:07:41.000Z
from coincheck.servicebase import ServiceBase class Withdraw(ServiceBase): baseUrl = '/api/withdraws' def create(self, params = {}): return self.coinCheck.request(ServiceBase.METHOD_POST, self.baseUrl, params) def all(self, params = {}): return self.coinCheck.request(ServiceBase.METHO...
34.111111
112
0.640065
from coincheck.servicebase import ServiceBase class Withdraw(ServiceBase): baseUrl = '/api/withdraws' def create(self, params = {}): return self.coinCheck.request(ServiceBase.METHOD_POST, self.baseUrl, params) def all(self, params = {}): return self.coinCheck.request(ServiceBase.METHO...
true
true
1c44c0e71ba8b171137bece871c14f3ee1b13891
592
py
Python
qingmi/__about__.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
20
2018-05-22T09:29:40.000Z
2020-12-11T04:53:15.000Z
qingmi/__about__.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
65
2019-03-07T02:43:06.000Z
2021-01-07T03:43:52.000Z
qingmi/__about__.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
6
2019-03-08T06:39:47.000Z
2021-07-01T11:02:56.000Z
__name__ = 'qingmi' __description__ = 'Common modules and toolsets for rapid and efficient development of flask Web.' __url__ = 'https://github.com/xiongxianzhu/qingmi' __version_info__ = ('0', '1', '4') __version__ = '.'.join(__version_info__) __fullname__ = '-'.join((__name__, __version__)) __author__ = 'zhuxiongxian...
42.285714
97
0.765203
__name__ = 'qingmi' __description__ = 'Common modules and toolsets for rapid and efficient development of flask Web.' __url__ = 'https://github.com/xiongxianzhu/qingmi' __version_info__ = ('0', '1', '4') __version__ = '.'.join(__version_info__) __fullname__ = '-'.join((__name__, __version__)) __author__ = 'zhuxiongxian...
true
true
1c44c145c66898134fa0294e53de15df16edc466
3,992
py
Python
youtube_dl/extractor/veoh.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
66,635
2019-03-10T21:34:18.000Z
2022-03-31T23:50:31.000Z
youtube_dl/extractor/veoh.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
10,936
2019-03-10T21:35:47.000Z
2022-03-31T23:46:52.000Z
youtube_dl/extractor/veoh.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
15,194
2019-03-10T21:09:27.000Z
2022-03-31T22:13:49.000Z
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, parse_duration, qualities, ) class VeohIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?veoh\.com/(?:watch|embed|iphone/#_Watch)/(?P<id>(?:v|e|yapi-)[\da-zA-Z]+)' _TESTS = [{ ...
38.384615
270
0.549098
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( int_or_none, parse_duration, qualities, ) class VeohIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?veoh\.com/(?:watch|embed|iphone/#_Watch)/(?P<id>(?:v|e|yapi-)[\da-zA-Z]+)' _TESTS = [{ ...
true
true
1c44c19e674fd96d888109c3073edd9787436023
3,193
py
Python
annotation/management/commands/fix_annotation_link_transcripts.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
annotation/management/commands/fix_annotation_link_transcripts.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
annotation/management/commands/fix_annotation_link_transcripts.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python3 import logging from django.core.management.base import BaseCommand from django.db.models import Q, Func, Value, F from annotation.models import VariantAnnotation, VariantTranscriptAnnotation, VariantAnnotationVersion, \ TranscriptVersion, defaultdict from snpdb.models.models_genome import ...
54.118644
122
0.656123
import logging from django.core.management.base import BaseCommand from django.db.models import Q, Func, Value, F from annotation.models import VariantAnnotation, VariantTranscriptAnnotation, VariantAnnotationVersion, \ TranscriptVersion, defaultdict from snpdb.models.models_genome import GenomeBuild class Com...
true
true
1c44c2e440428fbf8e99bba9838287b19cd3fed5
195
py
Python
bindsnet_master/bindsnet/pipeline/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
6
2021-06-01T03:43:35.000Z
2022-02-11T10:41:06.000Z
bindsnet_master/bindsnet/pipeline/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
1
2022-03-31T03:22:14.000Z
2022-03-31T03:22:14.000Z
bindsnet_master/bindsnet/pipeline/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
3
2021-10-30T02:30:40.000Z
2021-11-16T04:23:12.000Z
from .environment_pipeline import EnvironmentPipeline from .base_pipeline import BasePipeline from .dataloader_pipeline import DataLoaderPipeline, TorchVisionDatasetPipeline from . import action
39
79
0.887179
from .environment_pipeline import EnvironmentPipeline from .base_pipeline import BasePipeline from .dataloader_pipeline import DataLoaderPipeline, TorchVisionDatasetPipeline from . import action
true
true
1c44c32533d248651d10865ab48ee508be5c4361
9,815
py
Python
reports/configs/only_logs_dmpnn8_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2021-10-18T03:44:53.000Z
2021-10-18T03:44:53.000Z
reports/configs/only_logs_dmpnn8_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
null
null
null
reports/configs/only_logs_dmpnn8_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2022-02-22T08:32:01.000Z
2022-02-22T08:32:01.000Z
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN8_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN8_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: """ Config for model1/2/3 run file. ...
44.013453
169
0.669791
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN8_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN8_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: model_name: str = 'only_logs_dmpnn8_1' ...
true
true
1c44c44a7fd2e2d21d12c9a07e5e73afb826cc4f
351
py
Python
app/__init__.py
demuk/Spare-Manager
670cac9a58e66cee58cd2ad3f6062d982c214903
[ "CC0-1.0" ]
1
2021-08-25T12:13:15.000Z
2021-08-25T12:13:15.000Z
app/__init__.py
demuk/Spare-Manager
670cac9a58e66cee58cd2ad3f6062d982c214903
[ "CC0-1.0" ]
null
null
null
app/__init__.py
demuk/Spare-Manager
670cac9a58e66cee58cd2ad3f6062d982c214903
[ "CC0-1.0" ]
null
null
null
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) migrate = Migrate(app, db) login = LoginManager(app) login.login_view = 'login' f...
19.5
39
0.803419
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) migrate = Migrate(app, db) login = LoginManager(app) login.login_view = 'login' f...
true
true
1c44c46aec892b9cb0523ce25ff5abdb3d142a87
256
py
Python
film/urls.py
mamalmaleki/kolbe_cl
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
1
2020-01-02T05:51:11.000Z
2020-01-02T05:51:11.000Z
film/urls.py
mamalmaleki/kolbe
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
2
2021-03-30T12:38:16.000Z
2021-09-22T18:30:59.000Z
film/urls.py
mamalmaleki/kolbe
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
1
2020-12-01T09:47:12.000Z
2020-12-01T09:47:12.000Z
from django.urls import path from film import views app_name = 'front-film' urlpatterns = [ path('call', views.call, name='call'), path('omdbapi-search', views.omdbapi_search, name='omdbapi-search'), path('', views.film_list, name='list'), ]
23.272727
72
0.683594
from django.urls import path from film import views app_name = 'front-film' urlpatterns = [ path('call', views.call, name='call'), path('omdbapi-search', views.omdbapi_search, name='omdbapi-search'), path('', views.film_list, name='list'), ]
true
true
1c44c4774817045f4ce1c5be7b351739522ce15c
12,993
py
Python
metadata-ingestion/src/datahub/cli/docker.py
naboudieng/datahub
1a5121a5aeb3940960e9994362860d4130b840f2
[ "Apache-2.0" ]
null
null
null
metadata-ingestion/src/datahub/cli/docker.py
naboudieng/datahub
1a5121a5aeb3940960e9994362860d4130b840f2
[ "Apache-2.0" ]
null
null
null
metadata-ingestion/src/datahub/cli/docker.py
naboudieng/datahub
1a5121a5aeb3940960e9994362860d4130b840f2
[ "Apache-2.0" ]
null
null
null
import datetime import itertools import logging import os import pathlib import platform import subprocess import sys import tempfile import time from typing import List, NoReturn, Optional import click import requests from datahub.cli.docker_check import ( check_local_docker_containers, get_client_with_error...
32.893671
124
0.633572
import datetime import itertools import logging import os import pathlib import platform import subprocess import sys import tempfile import time from typing import List, NoReturn, Optional import click import requests from datahub.cli.docker_check import ( check_local_docker_containers, get_client_with_error...
true
true
1c44c8b72eadfbead01d993a5e1364203d654373
2,784
py
Python
DisFormers/disformers.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
null
null
null
DisFormers/disformers.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
14
2021-11-01T08:23:06.000Z
2022-03-31T08:32:24.000Z
DisFormers/disformers.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
null
null
null
""" Adapted from: https://www.machinecurve.com/index.php/2021/03/16/easy-chatbot-with-dialogpt-machine-learning-and-huggingface-transformers/ """ import asyncio from typing import Union from transformers import AutoModelForCausalLM, AutoTokenizer import os from discord import ( Message, Client ) from discord.e...
40.941176
123
0.650503
import asyncio from typing import Union from transformers import AutoModelForCausalLM, AutoTokenizer import os from discord import ( Message, Client ) from discord.ext import commands from aioify import aioify class DisFormersBot: def __init__( self, client: Union[commands.Bot,Client], ...
true
true
1c44c9bafb9eb7bf07b6cf5ae9faa8f6dfb48e92
64
py
Python
src/http_server/__meta__.py
explodingnuggets/HTTP-Server
adb829f14ea22f3791e90e093d0b2a1a13e80738
[ "MIT" ]
null
null
null
src/http_server/__meta__.py
explodingnuggets/HTTP-Server
adb829f14ea22f3791e90e093d0b2a1a13e80738
[ "MIT" ]
null
null
null
src/http_server/__meta__.py
explodingnuggets/HTTP-Server
adb829f14ea22f3791e90e093d0b2a1a13e80738
[ "MIT" ]
null
null
null
__author__ = 'Matheus Bortoleto da Silva' __version__ = '0.0.1'
21.333333
41
0.734375
__author__ = 'Matheus Bortoleto da Silva' __version__ = '0.0.1'
true
true
1c44ca6ab4d39dcd1e39ea389b325bfce7fa4529
1,896
py
Python
A1014280203/4/4.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
A1014280203/4/4.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
A1014280203/4/4.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
import string # simply extend word like: it's => it is def extend_word(text): if text.find('\'') > 0: old2new = dict() words = text.split() for word in words: if word.find('\'') > 0: parts = word.split('\'') if parts[1] == 'm': ...
32.689655
72
0.456224
import string def extend_word(text): if text.find('\'') > 0: old2new = dict() words = text.split() for word in words: if word.find('\'') > 0: parts = word.split('\'') if parts[1] == 'm': parts[1] = 'am' ...
true
true
1c44cb2358ef226020e523a70bf6b334447775e4
2,162
py
Python
main.py
AntoniosBarotsis/midi2img
848f54c0f3a5175ee636c693b04b6363d00ee9c8
[ "MIT" ]
null
null
null
main.py
AntoniosBarotsis/midi2img
848f54c0f3a5175ee636c693b04b6363d00ee9c8
[ "MIT" ]
null
null
null
main.py
AntoniosBarotsis/midi2img
848f54c0f3a5175ee636c693b04b6363d00ee9c8
[ "MIT" ]
null
null
null
import sys import os import time from midi2img import main_midi from img2midi import main_img from contextlib import contextmanager,redirect_stderr,redirect_stdout from os import devnull from progress.bar import Bar # Clear log file open('out.log', 'w').close() # Suppress warning messages @contextmanager def suppress...
27.025
89
0.651711
import sys import os import time from midi2img import main_midi from img2midi import main_img from contextlib import contextmanager,redirect_stderr,redirect_stdout from os import devnull from progress.bar import Bar open('out.log', 'w').close() @contextmanager def suppress_stdout_stderr(): with open(devnull, 'w')...
true
true
1c44ccfcfcc208fed41386c0340da79ce7f18c39
383
py
Python
c3i/c3i/wsgi.py
addinall/python-C3I
be72f026fb7c6b5084404876cd1296d3c3cb9b85
[ "Unlicense" ]
null
null
null
c3i/c3i/wsgi.py
addinall/python-C3I
be72f026fb7c6b5084404876cd1296d3c3cb9b85
[ "Unlicense" ]
null
null
null
c3i/c3i/wsgi.py
addinall/python-C3I
be72f026fb7c6b5084404876cd1296d3c3cb9b85
[ "Unlicense" ]
null
null
null
""" WSGI config for c3i project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_...
22.529412
78
0.780679
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "c3i.settings") application = get_wsgi_application()
true
true
1c44ce797a5c460258f52bac245631d4c3a93ac6
258
py
Python
tensorflow_tts/configs/__init__.py
ashishpatel26/TensorflowTTS
bd29c3eefa51041b76fd355d94025b4c13084296
[ "Apache-2.0" ]
2
2020-06-01T07:39:25.000Z
2021-11-08T09:31:33.000Z
tensorflow_tts/configs/__init__.py
ashishpatel26/TensorflowTTS
bd29c3eefa51041b76fd355d94025b4c13084296
[ "Apache-2.0" ]
null
null
null
tensorflow_tts/configs/__init__.py
ashishpatel26/TensorflowTTS
bd29c3eefa51041b76fd355d94025b4c13084296
[ "Apache-2.0" ]
1
2020-10-05T06:06:20.000Z
2020-10-05T06:06:20.000Z
from tensorflow_tts.configs.fastspeech import FastSpeechConfig from tensorflow_tts.configs.melgan import MelGANGeneratorConfig from tensorflow_tts.configs.melgan import MelGANDiscriminatorConfig from tensorflow_tts.configs.tacotron2 import Tacotron2Config
36.857143
67
0.899225
from tensorflow_tts.configs.fastspeech import FastSpeechConfig from tensorflow_tts.configs.melgan import MelGANGeneratorConfig from tensorflow_tts.configs.melgan import MelGANDiscriminatorConfig from tensorflow_tts.configs.tacotron2 import Tacotron2Config
true
true
1c44cf402bf3cc203667af282d9dee25fdc98243
313
py
Python
pi_utils.py
georgeblck/creepydoll
7b0a5d811cfbf5bc65c91b25af56702f6077c10c
[ "MIT" ]
null
null
null
pi_utils.py
georgeblck/creepydoll
7b0a5d811cfbf5bc65c91b25af56702f6077c10c
[ "MIT" ]
null
null
null
pi_utils.py
georgeblck/creepydoll
7b0a5d811cfbf5bc65c91b25af56702f6077c10c
[ "MIT" ]
null
null
null
from picamera import PiCamera import os def record_video(destination): filename = os.path.join( destination, datetime.now().strftime('%Y-%m-%d_%H.%M.%S.h264')) camera.start_preview() camera.start_recording(filename) def finish_video(): camera.stop_recording() camera.stop_preview()
22.357143
71
0.702875
from picamera import PiCamera import os def record_video(destination): filename = os.path.join( destination, datetime.now().strftime('%Y-%m-%d_%H.%M.%S.h264')) camera.start_preview() camera.start_recording(filename) def finish_video(): camera.stop_recording() camera.stop_preview()
true
true
1c44cf439ceed23a243d6c564ce0b570a3316160
1,166
py
Python
english/data_processing/lessons/code/sphere.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
english/data_processing/lessons/code/sphere.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
english/data_processing/lessons/code/sphere.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
import numpy as np from math import sqrt from sys import argv def sphere(x_, y_, z_): """ calculate best fitting sphere (LSM) on points :param returns: x0, y0, z0, R """ n_ = x_.shape[0] a = np.c_[x_, y_, z_, np.full(n_, 1, 'float64')] b = -np.square(x_) - np.square(y_) - np.square(...
37.612903
100
0.531732
import numpy as np from math import sqrt from sys import argv def sphere(x_, y_, z_): n_ = x_.shape[0] a = np.c_[x_, y_, z_, np.full(n_, 1, 'float64')] b = -np.square(x_) - np.square(y_) - np.square(z_) res = np.linalg.lstsq(a, b, rcond=None)[0] return -0.5 * res[0], -0.5 * res[1], -0.5 * res[2], \...
true
true
1c44d06afab9a86e82ffdf346b95617bf5c67311
4,277
py
Python
test/functional/rpc_invalidateblock.py
HashUnlimited/chaincoin
9a035680d6d9b9a0524dc7524c55cfedd1a683ca
[ "MIT" ]
null
null
null
test/functional/rpc_invalidateblock.py
HashUnlimited/chaincoin
9a035680d6d9b9a0524dc7524c55cfedd1a683ca
[ "MIT" ]
null
null
null
test/functional/rpc_invalidateblock.py
HashUnlimited/chaincoin
9a035680d6d9b9a0524dc7524c55cfedd1a683ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the invalidateblock RPC.""" from test_framework.test_framework import BitcoinTestFramework from t...
44.552083
100
0.680617
from test_framework.test_framework import BitcoinTestFramework from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE_DESCRIPTOR from test_framework.util import ( assert_equal, connect_nodes, wait_until, ) class InvalidateTest(BitcoinTestFramework): def __init__(self): super().__init__...
true
true
1c44d1c65c48745bd98f1e4b6e8a7460fd9bcbc8
10,468
py
Python
neural_network.py
marcvergees/rieffel_method
5377284c10010691238f10d5d6f77935c44d8f3d
[ "BSD-3-Clause" ]
null
null
null
neural_network.py
marcvergees/rieffel_method
5377284c10010691238f10d5d6f77935c44d8f3d
[ "BSD-3-Clause" ]
null
null
null
neural_network.py
marcvergees/rieffel_method
5377284c10010691238f10d5d6f77935c44d8f3d
[ "BSD-3-Clause" ]
null
null
null
# Big Data, Xarxes Neuronals i Màrqueting: la clau de l'èxit? # Treball de recerca (TR) # Marc Vergés Santiago - Escola Pia Mataró # # # # Copyright (c) 2021, Marc Vergés Santiago # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provid...
40.731518
131
0.62992
# Treball de recerca (TR) # Marc Vergés Santiago - Escola Pia Mataró # # # # Copyright (c) 2021, Marc Vergés Santiago # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributi...
true
true
1c44d28b5a3327e8b46e68b17d3f1e122eb9c8c0
140
py
Python
pentagraph/__init__.py
Penta-Game/pentagraph
39a84dc06466bbff0a4f9692a24166ecfb839b84
[ "MIT" ]
1
2020-07-25T10:07:53.000Z
2020-07-25T10:07:53.000Z
pentagraph/__init__.py
Penta-Game/pentagraph
39a84dc06466bbff0a4f9692a24166ecfb839b84
[ "MIT" ]
43
2020-07-31T05:28:08.000Z
2021-07-27T05:11:03.000Z
pentagraph/__init__.py
Penta-Game/pentagraph
39a84dc06466bbff0a4f9692a24166ecfb839b84
[ "MIT" ]
null
null
null
from . import lib __version__ = "0.0.1b5" __author__ = "Cobalt" __doc__ = "Graph representation and tools for programming with pentagame."
23.333333
74
0.757143
from . import lib __version__ = "0.0.1b5" __author__ = "Cobalt" __doc__ = "Graph representation and tools for programming with pentagame."
true
true
1c44d343222bdd8581be68438ee3d2be5a1cb5b4
5,997
py
Python
payments/paymentswobill.py
lkerxhalli/tools
bb9391ab7e1312619e705ca4da4f8cda3c201f99
[ "MIT" ]
null
null
null
payments/paymentswobill.py
lkerxhalli/tools
bb9391ab7e1312619e705ca4da4f8cda3c201f99
[ "MIT" ]
null
null
null
payments/paymentswobill.py
lkerxhalli/tools
bb9391ab7e1312619e705ca4da4f8cda3c201f99
[ "MIT" ]
null
null
null
### Auth: Lorenc Kerxhalli ### Creates a estimated payment schedule per week ### input: ### 1. AP Payment report exported from Netsuite ### 2. Open Bills report exported from Netsuite ### ### output: ### Estimated payment schedule per vendor per week ### import sys import os import csv import datetim...
28.023364
92
0.576121
import sys import os import csv import datetime from datetime import timedelta import re from re import sub from decimal import Decimal directory = '/Users/lkerxhalli/Documents/iris/jun13/' name = 'NPS 1.1.19 4.30.19' csvinputfile = directory + name + '.csv' csvoutputfile = directory + name + ' out.csv' hName = '...
true
true
1c44d3ce85fdcbffb545fbcfd8c5b98209705ad1
5,068
py
Python
q2_feature_table/tests/test_merge.py
jairideout/q2-feature-table
494e0b8080799c746c55be2271278891798b8e56
[ "BSD-3-Clause" ]
null
null
null
q2_feature_table/tests/test_merge.py
jairideout/q2-feature-table
494e0b8080799c746c55be2271278891798b8e56
[ "BSD-3-Clause" ]
null
null
null
q2_feature_table/tests/test_merge.py
jairideout/q2-feature-table
494e0b8080799c746c55be2271278891798b8e56
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2017, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
39.286822
78
0.48165
import unittest import skbio import numpy as np from biom.table import Table import pandas as pd import pandas.util.testing as pdt from q2_feature_table import (merge, merge_seq_data, merge_taxa_data) from q2_feature_table._merge import _merge_feature_data class MergeTableTests(unitte...
true
true
1c44d430b2eeaaad52c4aa52a38f7b194de4bb78
3,626
py
Python
pyinfra/api/connectors/sshuserclient/client.py
ryanwersal/pyinfra
350c9053953531d1d258512f1e0761879df772fb
[ "MIT" ]
null
null
null
pyinfra/api/connectors/sshuserclient/client.py
ryanwersal/pyinfra
350c9053953531d1d258512f1e0761879df772fb
[ "MIT" ]
null
null
null
pyinfra/api/connectors/sshuserclient/client.py
ryanwersal/pyinfra
350c9053953531d1d258512f1e0761879df772fb
[ "MIT" ]
null
null
null
''' This file as originally part of the "sshuserclient" pypi package. The GitHub source has now vanished (https://github.com/tobald/sshuserclient). ''' from os import path from paramiko import ( AutoAddPolicy, ProxyCommand, SSHClient as ParamikoClient, ) from pyinfra.api.util import memoize from .config...
33.266055
79
0.585769
from os import path from paramiko import ( AutoAddPolicy, ProxyCommand, SSHClient as ParamikoClient, ) from pyinfra.api.util import memoize from .config import SSHConfig @memoize def get_ssh_config(): user_config_file = path.expanduser('~/.ssh/config') if path.exists(user_config_file): ...
true
true
1c44d59547bb28cda69dfd6ea00db05d926f2024
3,035
py
Python
test/test_base_processor.py
tienanh-1999/TensorFlowTTS
cd3a5e1f9915fa7dd646771fd50fe6fef94fe9fc
[ "Apache-2.0" ]
1,961
2020-07-31T07:31:27.000Z
2022-03-31T20:39:29.000Z
test/test_base_processor.py
neso613/TensorFlowTTS
978f397c244a4987e2aa11e5db8d1e5902332826
[ "Apache-2.0" ]
587
2020-07-31T03:24:54.000Z
2022-03-29T02:31:50.000Z
test/test_base_processor.py
neso613/TensorFlowTTS
978f397c244a4987e2aa11e5db8d1e5902332826
[ "Apache-2.0" ]
483
2020-07-31T17:48:32.000Z
2022-03-31T13:55:49.000Z
import pytest from tensorflow_tts.processor.base_processor import BaseProcessor, DataProcessorError import string from dataclasses import dataclass from shutil import copyfile @dataclass class LJ(BaseProcessor): def get_one_sample(self, item): sample = { "raw_text": None, "text_ids...
28.101852
85
0.670181
import pytest from tensorflow_tts.processor.base_processor import BaseProcessor, DataProcessorError import string from dataclasses import dataclass from shutil import copyfile @dataclass class LJ(BaseProcessor): def get_one_sample(self, item): sample = { "raw_text": None, "text_ids...
true
true
1c44d6adc5f4ee15843ce36776690e20cbf7f159
1,363
py
Python
meregistro/apps/registro/models/EstablecimientoAutoridad.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/EstablecimientoAutoridad.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/EstablecimientoAutoridad.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from apps.registro.models.Establecimiento import Establecimiento from apps.seguridad.models.TipoDocumento import TipoDocumento from apps.registro.models.AutoridadCargo import AutoridadCargo from django.core.exceptions import ValidationError class EstablecimientoAut...
45.433333
100
0.752018
from django.db import models from apps.registro.models.Establecimiento import Establecimiento from apps.seguridad.models.TipoDocumento import TipoDocumento from apps.registro.models.AutoridadCargo import AutoridadCargo from django.core.exceptions import ValidationError class EstablecimientoAutoridad(models.Model): ...
true
true
1c44d7fbd04a0e2096ef3888fde21248877de8f1
4,060
py
Python
python/tests/server/test_http_output.py
dashstander/cog
0aee3c9ef50ac346d053010e39c4e7becbbcb70d
[ "Apache-2.0" ]
null
null
null
python/tests/server/test_http_output.py
dashstander/cog
0aee3c9ef50ac346d053010e39c4e7becbbcb70d
[ "Apache-2.0" ]
null
null
null
python/tests/server/test_http_output.py
dashstander/cog
0aee3c9ef50ac346d053010e39c4e7becbbcb70d
[ "Apache-2.0" ]
null
null
null
import base64 import io import os import tempfile import numpy as np from PIL import Image import responses from responses.matchers import multipart_matcher from cog import BaseModel, BasePredictor, Path, File from .test_http import make_client def test_return_wrong_type(): class Predictor(BasePredictor): ...
28.391608
94
0.61133
import base64 import io import os import tempfile import numpy as np from PIL import Image import responses from responses.matchers import multipart_matcher from cog import BaseModel, BasePredictor, Path, File from .test_http import make_client def test_return_wrong_type(): class Predictor(BasePredictor): ...
true
true
1c44d821b673acb2343e06993bdaf8292215ca6a
26,336
py
Python
rnn.py
hamk-uas/HAMK_Smart_City
c9408ea1caac995522489a331207737b37971314
[ "Apache-2.0" ]
1
2021-12-19T09:53:28.000Z
2021-12-19T09:53:28.000Z
rnn.py
hamk-uas/HAMK_Smart_City
c9408ea1caac995522489a331207737b37971314
[ "Apache-2.0" ]
null
null
null
rnn.py
hamk-uas/HAMK_Smart_City
c9408ea1caac995522489a331207737b37971314
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np from tensorflow import Variable from tensorflow.keras.models import Sequential, load_model from tensorflow.keras.layers import Dense, GRU, LSTM, SimpleRNN, BatchNormalization from tensorflow.keras.optimizers import Adam from tensorflow.keras.callbacks import EarlyStopping from skl...
48.500921
179
0.606508
import pandas as pd import numpy as np from tensorflow import Variable from tensorflow.keras.models import Sequential, load_model from tensorflow.keras.layers import Dense, GRU, LSTM, SimpleRNN, BatchNormalization from tensorflow.keras.optimizers import Adam from tensorflow.keras.callbacks import EarlyStopping from skl...
true
true
1c44d872e71fe39535f712ec003d271474cc86bc
772
py
Python
qcloudsdkds/ContractRecoveryRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkds/ContractRecoveryRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkds/ContractRecoveryRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from qcloudsdkcore.request import Request class ContractRecoveryRequest(Request): def __init__(self): super(ContractRecoveryRequest, self).__init__( 'ds', 'qcloudcliV1', 'ContractRecovery', 'ds.api.qcloud.com') def get_contractResId(self): return self.get_...
27.571429
73
0.676166
from qcloudsdkcore.request import Request class ContractRecoveryRequest(Request): def __init__(self): super(ContractRecoveryRequest, self).__init__( 'ds', 'qcloudcliV1', 'ContractRecovery', 'ds.api.qcloud.com') def get_contractResId(self): return self.get_params().get('contractRe...
true
true
1c44d8736d714d113497f524b08d44eb57ca8a35
2,233
py
Python
feedler/feedparser.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
2
2020-10-29T16:27:21.000Z
2021-06-07T12:47:46.000Z
feedler/feedparser.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
11
2017-05-09T10:50:28.000Z
2021-12-15T17:01:23.000Z
feedler/feedparser.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
4
2017-04-24T13:06:55.000Z
2021-06-04T02:18:32.000Z
# -*- coding: utf-8 -*- from datetime import datetime from guess_language import guess_language def parse(obj, raw, stream): """ Parse raw JSON implementation from the Feedly API """ obj.raw = raw obj.stream = stream obj.entry_id = raw['id'] # Date stamp handling ts = raw['published']...
30.589041
58
0.545455
from datetime import datetime from guess_language import guess_language def parse(obj, raw, stream): obj.raw = raw obj.stream = stream obj.entry_id = raw['id'] ts = raw['published'] / 1000 obj.published = datetime.fromtimestamp(ts) obj.title = raw['title'][:250] if 'author' in ra...
true
true
1c44da8cd8e14680cabbb02c8fd7a7fdb43c144d
393
py
Python
rockwell/rockwell/asgi.py
Xiangyongluo/Hackathon-Project
815eb9b4e1ea9d41d4ddc90e204bbe919b8bc2ba
[ "Apache-2.0" ]
null
null
null
rockwell/rockwell/asgi.py
Xiangyongluo/Hackathon-Project
815eb9b4e1ea9d41d4ddc90e204bbe919b8bc2ba
[ "Apache-2.0" ]
1
2021-12-04T04:35:52.000Z
2021-12-04T04:35:52.000Z
rockwell/rockwell/asgi.py
Xiangyongluo/Hackathon-Project
815eb9b4e1ea9d41d4ddc90e204bbe919b8bc2ba
[ "Apache-2.0" ]
null
null
null
""" ASGI config for rockwell project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rockwell.settings') application = get_asgi_application()
true
true
1c44db39a1bbd369f3b8ca3833e06ce7a09f36e3
6,679
py
Python
dm_control/locomotion/walkers/base.py
h8907283/dm_control
fe4449606742a7b8bec81930790b98244cddc538
[ "Apache-2.0" ]
1
2022-03-22T11:53:38.000Z
2022-03-22T11:53:38.000Z
dm_control/locomotion/walkers/base.py
krakhit/dm_control
4e1a35595124742015ae0c7a829e099a5aa100f5
[ "Apache-2.0" ]
null
null
null
dm_control/locomotion/walkers/base.py
krakhit/dm_control
4e1a35595124742015ae0c7a829e099a5aa100f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The dm_control 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 i...
33.562814
80
0.690972
import abc import collections from dm_control import composer from dm_control.composer.observation import observable from dm_env import specs import numpy as np def _make_readonly_float64_copy(value): if np.isscalar(value): return np.float64(value) else: out = np.array(value, dtype=np.float64) out...
true
true
1c44dce31e003e663b608bdf55046a067adb45b9
6,765
py
Python
fonts/connect3d_infineon_8x16.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
6
2020-07-11T16:59:19.000Z
2021-07-16T19:32:49.000Z
ports/esp32/user_modules/st7735_mpy/fonts/connect3d_infineon_8x16.py
d4niele/micropython
a1f7b37d392bf46b28045ce215ae899fda8d8c38
[ "MIT" ]
1
2020-04-14T03:14:45.000Z
2020-04-14T03:14:45.000Z
fonts/connect3d_infineon_8x16.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
null
null
null
"""converted from ..\fonts\Connect3d_Infineon_8x16.bin """ WIDTH = 8 HEIGHT = 16 FIRST = 0x20 LAST = 0x7f _FONT =\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x18\x3c\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00'\ b'\x00\x36\x36\x36\x36\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'...
64.428571
68
0.709978
WIDTH = 8 HEIGHT = 16 FIRST = 0x20 LAST = 0x7f _FONT =\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x18\x3c\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00'\ b'\x00\x36\x36\x36\x36\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x6c\x6c\x6c\xfe\x6c\x6c\xfe\x6c\x6c\x6c\x00\x0...
true
true
1c44ddb53005f0348306ada9b2eb5fc4041f1299
6,990
py
Python
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# 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. # Changes ...
43.962264
100
0.634621
from msrest.serialization import Model class VirtualMachineTemplate(Model): _validation = { 'uuid': {'readonly': True}, 'mo_name': {'readonly': True}, 'memory_size_mb': {'readonly': True}, 'num_cp_us': {'readonly': True}, 'num_cores_per_socket': {'readonly': True}, ...
true
true
1c44ddf468ea1fa13eb77cec4667348d4bc60c09
7,181
py
Python
main.py
zhangchenkai/piwise_segmentation
3dfecaae32cde9097d9c312e3373a834b0884319
[ "BSD-3-Clause" ]
null
null
null
main.py
zhangchenkai/piwise_segmentation
3dfecaae32cde9097d9c312e3373a834b0884319
[ "BSD-3-Clause" ]
null
null
null
main.py
zhangchenkai/piwise_segmentation
3dfecaae32cde9097d9c312e3373a834b0884319
[ "BSD-3-Clause" ]
null
null
null
import sys from argparse import ArgumentParser import numpy as np import pandas as pd import torch from torch.autograd import Variable from torch.optim import Adam from torch.utils.data import DataLoader from torchvision.transforms import Compose, Normalize from torchvision.transforms import ToTensor, ToPILImage, Resi...
35.374384
100
0.604512
import sys from argparse import ArgumentParser import numpy as np import pandas as pd import torch from torch.autograd import Variable from torch.optim import Adam from torch.utils.data import DataLoader from torchvision.transforms import Compose, Normalize from torchvision.transforms import ToTensor, ToPILImage, Resi...
true
true
1c44de44632df44a415f68c307e8e4ac5cfde4f8
183
py
Python
PAT/pythonSrc/PAT-B1011.A+B和C.py
OS-EDU/KO--CSP
615a3a02853be6832f0e958969a2cb26106d3908
[ "Apache-2.0" ]
30
2020-11-07T06:56:26.000Z
2022-02-21T09:12:39.000Z
PAT/pythonSrc/PAT-B1011.A+B和C.py
OS-EDU/KO--CSP
615a3a02853be6832f0e958969a2cb26106d3908
[ "Apache-2.0" ]
166
2020-11-05T07:28:15.000Z
2022-03-28T04:00:08.000Z
PAT/pythonSrc/PAT-B1011.A+B和C.py
OS-EDU/KO--CSP
615a3a02853be6832f0e958969a2cb26106d3908
[ "Apache-2.0" ]
28
2020-11-07T06:56:29.000Z
2021-09-14T11:20:27.000Z
n = int(input()) #测试数据组数 i = 1 #记录循环次数 while i <= n: a, b, c = map(int, input().split()) print("Case #%d: "%i, end="") if a + b > c: print("true") else: print("false") i += 1
18.3
36
0.508197
n = int(input()) i = 1 while i <= n: a, b, c = map(int, input().split()) print("Case #%d: "%i, end="") if a + b > c: print("true") else: print("false") i += 1
true
true
1c44de9cdbe7f0da12017ec35e71d4438341fccc
2,577
py
Python
03_train_model/source_dir/training_debug.py
alar0330/amazon-sagemaker-build-train-deploy
b476c5ba5b3bd55a99709e7788079763fa498682
[ "Apache-2.0" ]
23
2020-03-30T08:02:48.000Z
2022-02-01T16:16:43.000Z
03_train_model/source_dir/training_debug.py
alar0330/amazon-sagemaker-build-train-deploy
b476c5ba5b3bd55a99709e7788079763fa498682
[ "Apache-2.0" ]
null
null
null
03_train_model/source_dir/training_debug.py
alar0330/amazon-sagemaker-build-train-deploy
b476c5ba5b3bd55a99709e7788079763fa498682
[ "Apache-2.0" ]
11
2020-04-04T09:01:27.000Z
2021-06-02T12:10:21.000Z
import argparse import json import os import random import pandas as pd import glob import pickle as pkl import xgboost from smdebug import SaveConfig from smdebug.xgboost import Hook def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--max_depth", type=int, default=5) parser.add...
29.62069
98
0.684517
import argparse import json import os import random import pandas as pd import glob import pickle as pkl import xgboost from smdebug import SaveConfig from smdebug.xgboost import Hook def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--max_depth", type=int, default=5) parser.add...
true
true
1c44df28fd3a2056d9abd1da319c0912766c6417
41
py
Python
sksurgerybard/ui/__init__.py
SciKit-Surgery/scikit-surgerybard
4ac2ea28acb150437361c9abd53db3e3bba6d803
[ "BSD-3-Clause" ]
1
2021-06-30T15:55:21.000Z
2021-06-30T15:55:21.000Z
sksurgerybard/ui/__init__.py
UCL/scikit-surgerybard
7ebe4d15d3d3fa67218424c9f737a9e8d93bfbf3
[ "BSD-3-Clause" ]
68
2020-04-30T07:29:33.000Z
2022-01-20T09:47:54.000Z
sksurgerybard/ui/__init__.py
SciKit-Surgery/scikit-surgerybard
4ac2ea28acb150437361c9abd53db3e3bba6d803
[ "BSD-3-Clause" ]
1
2021-06-30T15:55:48.000Z
2021-06-30T15:55:48.000Z
# coding=utf-8 """scikit-surgerybard"""
10.25
24
0.658537
true
true
1c44e010fefb96406841d2144b608e607f89b5a7
7,410
py
Python
apps/tests/test_measurement_on_request1.py
sanchezcarlosjr/PyK-Ar
13ed535b85a9025464ae85feda46d94887d75e3e
[ "Apache-2.0" ]
1
2021-09-24T23:13:22.000Z
2021-09-24T23:13:22.000Z
apps/tests/test_measurement_on_request1.py
sanchezcarlosjr/PyK-Ar
13ed535b85a9025464ae85feda46d94887d75e3e
[ "Apache-2.0" ]
10
2021-09-25T05:15:04.000Z
2021-10-04T20:02:27.000Z
apps/tests/test_measurement_on_request1.py
sanchezcarlosjr/PyK-Ar
13ed535b85a9025464ae85feda46d94887d75e3e
[ "Apache-2.0" ]
null
null
null
import json import sys from datetime import datetime from firebase_admin import initialize_app from domain.Ar36_Ar38_composition_of_atmospheric import Ar36Ar38CompositionOfAtmospheric from domain.Ar36_Ar38_ratio_for_tracer import Ar36Ar38RatioForTracer from domain.Ar40_Ar38_composition_of_atmospheric import Ar40Ar38C...
38
109
0.778812
import json import sys from datetime import datetime from firebase_admin import initialize_app from domain.Ar36_Ar38_composition_of_atmospheric import Ar36Ar38CompositionOfAtmospheric from domain.Ar36_Ar38_ratio_for_tracer import Ar36Ar38RatioForTracer from domain.Ar40_Ar38_composition_of_atmospheric import Ar40Ar38C...
true
true
1c44e1b28f76d59aab7443a816e6b848c0913e2f
3,663
py
Python
tests/lib/test_binary.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
629
2015-01-06T03:01:56.000Z
2022-03-23T13:13:26.000Z
tests/lib/test_binary.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
897
2015-02-28T15:46:06.000Z
2022-03-30T08:19:13.000Z
tests/lib/test_binary.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
151
2015-01-08T16:36:24.000Z
2022-03-10T16:59:49.000Z
from tests.declarativeunittest import * from construct.lib.binary import * def test_integer2bits(): assert integer2bits(0, 0, False) == b"" assert integer2bits(0, 0, True) == b"" assert integer2bits(19, 5) == b"\x01\x00\x00\x01\x01" assert integer2bits(19, 8) == b"\x00\x00\x00\x01\x00\x00\x01\x01" ...
44.670732
99
0.658204
from tests.declarativeunittest import * from construct.lib.binary import * def test_integer2bits(): assert integer2bits(0, 0, False) == b"" assert integer2bits(0, 0, True) == b"" assert integer2bits(19, 5) == b"\x01\x00\x00\x01\x01" assert integer2bits(19, 8) == b"\x00\x00\x00\x01\x00\x00\x01\x01" ...
true
true
1c44e1d0468e64809d81b9a7adc2c74263251bc9
1,943
py
Python
common_config.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
null
null
null
common_config.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
null
null
null
common_config.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
3
2020-01-12T13:34:35.000Z
2021-11-01T17:50:21.000Z
import os from name import app_name # from datetime import timedelta SECRET_KEY = 'iQfPvB6sZaNHqVFI5CJa9rM1xOEVHKIM0LwifT04yLsPlZhSSvaDuZXOgJFSpJVq' PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) class Config: NAME = app_name API_TITLE = 'BSidesNS' API_VERSION = '0' PROJECT_ROOT = PROJE...
25.233766
79
0.647967
import os from name import app_name SECRET_KEY = 'iQfPvB6sZaNHqVFI5CJa9rM1xOEVHKIM0LwifT04yLsPlZhSSvaDuZXOgJFSpJVq' PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) class Config: NAME = app_name API_TITLE = 'BSidesNS' API_VERSION = '0' PROJECT_ROOT = PROJECT_ROOT DEBUG = False SECU...
true
true
1c44e32562aa9115a0e38ce8b781e766efe4afaa
4,287
py
Python
pirates/effects/SteamCloud.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/effects/SteamCloud.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/effects/SteamCloud.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.effects.SteamCloud from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import P...
46.096774
176
0.696991
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import ParticleEffect from direct.particles import Particles from direct.particles import ForceGroup from pirates.piratesgui.GameOptions import Options from EffectController import EffectController from PooledEffect imp...
true
true
1c44e3c2f33006b5c3dda27583e1334edfeee1e7
3,581
py
Python
examples_progress_bar.py
ElCap1tan/ProgressPrinter
fd144e94543175b87a4d16234b05220a65c0140b
[ "MIT" ]
null
null
null
examples_progress_bar.py
ElCap1tan/ProgressPrinter
fd144e94543175b87a4d16234b05220a65c0140b
[ "MIT" ]
2
2019-09-10T21:48:21.000Z
2019-09-28T16:28:36.000Z
examples_progress_bar.py
ElCap1tan/ProgressPrinter
fd144e94543175b87a4d16234b05220a65c0140b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from time import sleep from ProgressPrinter import ProgressBar def main(): """ Choose which examples to run in this method """ ex1() ex2() ex3() ex4() ex5() def ex1(): """ **Example 1** :: pb1 = ProgressBar(100, '%', pre='Downloading file'...
27.335878
146
0.527506
from time import sleep from ProgressPrinter import ProgressBar def main(): ex1() ex2() ex3() ex4() ex5() def ex1(): pb1 = ProgressBar(100, '%', pre='Downloading file', post='Download finished', length=25) pb1.print_progress() for mb in range(1, 101): pb1.print_progress(m...
true
true
1c44e4c3291a1e3a80c99161ea4d923297721848
415
py
Python
grakel/kernels/_isomorphism/__init__.py
vishalbelsare/GraKeL
1330c7ee4e66e6b273bcad83fff5be5df3230128
[ "BSD-3-Clause" ]
null
null
null
grakel/kernels/_isomorphism/__init__.py
vishalbelsare/GraKeL
1330c7ee4e66e6b273bcad83fff5be5df3230128
[ "BSD-3-Clause" ]
null
null
null
grakel/kernels/_isomorphism/__init__.py
vishalbelsare/GraKeL
1330c7ee4e66e6b273bcad83fff5be5df3230128
[ "BSD-3-Clause" ]
null
null
null
"""Init file for the _isomorphism submodule project.""" # Author: Ioannis Siglidis <y.siglidis@gmail.com> # This file is a modification and extension of the [GNU LPGL] licensed # PyBliss which can be found at: http://www.tcs.hut.fi/Software/bliss/ # PyBliss and Bliss are copyright of their respective owners. # License:...
34.583333
70
0.749398
from grakel.kernels._isomorphism.bliss import Graph __all__ = [ "Graph", ]
true
true
1c44e4e779a113971e0da7c7ed64813dda5530f5
11,232
py
Python
custom_components/hacs/hacsbase/hacs.py
Lucstricke/integration
1543686f3d99c8f16ec4fc37b2edd70b2a3e29a5
[ "MIT" ]
1
2021-12-12T18:19:48.000Z
2021-12-12T18:19:48.000Z
custom_components/hacs/hacsbase/hacs.py
Lucstricke/integration
1543686f3d99c8f16ec4fc37b2edd70b2a3e29a5
[ "MIT" ]
null
null
null
custom_components/hacs/hacsbase/hacs.py
Lucstricke/integration
1543686f3d99c8f16ec4fc37b2edd70b2a3e29a5
[ "MIT" ]
null
null
null
"""Initialize the HACS base.""" from datetime import timedelta from aiogithubapi import GitHubException from aiogithubapi.exceptions import GitHubNotModifiedException from custom_components.hacs.helpers import HacsHelpers from custom_components.hacs.helpers.functions.get_list_from_default import ( async_get_list_...
38.597938
105
0.631855
from datetime import timedelta from aiogithubapi import GitHubException from aiogithubapi.exceptions import GitHubNotModifiedException from custom_components.hacs.helpers import HacsHelpers from custom_components.hacs.helpers.functions.get_list_from_default import ( async_get_list_from_default, ) from custom_comp...
true
true