hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
a26f99f8d854ce3c7fb2a966113557a4382f5ef8
4,109
py
Python
src/libnrl/classify.py
Tadelaide/OpenNE
53a558826e3ab38de96bd4be1f3f0f5f3cd0f377
[ "MIT" ]
2
2018-09-01T17:35:11.000Z
2020-10-22T13:52:07.000Z
src/libnrl/classify.py
Tadelaide/OpenNE
53a558826e3ab38de96bd4be1f3f0f5f3cd0f377
[ "MIT" ]
null
null
null
src/libnrl/classify.py
Tadelaide/OpenNE
53a558826e3ab38de96bd4be1f3f0f5f3cd0f377
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy from sklearn.multiclass import OneVsRestClassifier from sklearn.metrics import f1_score from sklearn.preprocessing import MultiLabelBinarizer from time import time from sklearn.preprocessing import LabelEncoder class TopKRanker(OneVsRestClassifier): def predict(s...
34.241667
106
0.583597
b071a015e2847597b09e83f26850ab5c50dc96bd
7,040
py
Python
lib/ziming_yang_1ConfigFilterApplicationDemo/ziming_yang_1ConfigFilterApplicationDemoImpl.py
Yzm1234/ConfigFilterDemoRepo
d40353a9c2d32d0b7471f80d717e3bd192cd3984
[ "MIT" ]
null
null
null
lib/ziming_yang_1ConfigFilterApplicationDemo/ziming_yang_1ConfigFilterApplicationDemoImpl.py
Yzm1234/ConfigFilterDemoRepo
d40353a9c2d32d0b7471f80d717e3bd192cd3984
[ "MIT" ]
null
null
null
lib/ziming_yang_1ConfigFilterApplicationDemo/ziming_yang_1ConfigFilterApplicationDemoImpl.py
Yzm1234/ConfigFilterDemoRepo
d40353a9c2d32d0b7471f80d717e3bd192cd3984
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #BEGIN_HEADER # The header block is where all import statments should live import logging import os from pprint import pformat from Bio import SeqIO from installed_clients.AssemblyUtilClient import AssemblyUtil from installed_clients.KBaseReportClient import KBaseReport #END_HEADER class zim...
44
113
0.634091
bbef751a1b46c9c1bbd9350a0de56593e6b73331
2,010
py
Python
NBApredict/br_web_scraper/http_client.py
anshu7919/NBApredict
59f4a128c1c964a5f78860227d3309edbc57766e
[ "MIT" ]
10
2019-08-23T07:49:52.000Z
2022-02-22T14:46:01.000Z
NBApredict/br_web_scraper/http_client.py
anshu7919/NBApredict
59f4a128c1c964a5f78860227d3309edbc57766e
[ "MIT" ]
9
2018-11-16T23:11:03.000Z
2019-08-07T21:17:22.000Z
NBApredict/br_web_scraper/http_client.py
Spencer-Weston/NBA_bet
e84867b18e2dbaf58340c30c061f172d62f52699
[ "MIT" ]
8
2020-02-01T07:47:41.000Z
2021-06-14T15:09:55.000Z
import requests from nbapredict.br_web_scraper.errors import InvalidDate from nbapredict.br_web_scraper.parsers.box_scores import parse_player_box_scores from nbapredict.br_web_scraper.parsers.schedule import parse_schedule, parse_schedule_for_month_url_paths from nbapredict.br_web_scraper.parsers.players_season_total...
30
105
0.758209
78a0517921044bf782731ec1d4d381b865e1821b
6,873
py
Python
homeassistant/components/mqtt/sensor.py
rr326/core
479ff92acbc9ec4db09b7a300d2beb67f00ab746
[ "Apache-2.0" ]
1
2021-02-22T11:57:01.000Z
2021-02-22T11:57:01.000Z
homeassistant/components/mqtt/sensor.py
hartley94ad/core
7148071be89b0ecbb5cfb33140b3f4702db7035f
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mqtt/sensor.py
hartley94ad/core
7148071be89b0ecbb5cfb33140b3f4702db7035f
[ "Apache-2.0" ]
null
null
null
"""Support for MQTT sensors.""" from datetime import timedelta import functools import logging from typing import Optional import voluptuous as vol from homeassistant.components import sensor from homeassistant.components.sensor import DEVICE_CLASSES_SCHEMA from homeassistant.const import ( CONF_DEVICE, CONF_...
33.202899
140
0.667103
f97bd414c6fcb2b89bc39e9d97e24f21cc4601ff
4,493
py
Python
src/malkit/utils.py
xymy/malkit
8e0d6f5e1c993c706f0f76e10fa8095b16f4208f
[ "MIT" ]
null
null
null
src/malkit/utils.py
xymy/malkit
8e0d6f5e1c993c706f0f76e10fa8095b16f4208f
[ "MIT" ]
null
null
null
src/malkit/utils.py
xymy/malkit
8e0d6f5e1c993c706f0f76e10fa8095b16f4208f
[ "MIT" ]
null
null
null
import functools import shutil from pathlib import Path from typing import Any, Iterable, List, Optional, Tuple import numpy as np import pandas as pd from .parallel import execute_parallel from .typing import FilePath __all__ = [ "categorize_folders", "split_labels", "build_srcs_dsts", "convert_byte...
30.358108
116
0.634543
e4d688c91f9aa54c27331b80dccb5f2074edd6de
9,020
py
Python
boot/rpi/tools/binman/entry.py
yodaos-project/yodaos
d0d7bbc277c0fc1c64e2e0a1c82fe6e63f6eb954
[ "Apache-2.0" ]
1,144
2018-12-18T09:46:47.000Z
2022-03-07T14:51:46.000Z
boot/rpi/tools/binman/entry.py
Rokid/YodaOS
d0d7bbc277c0fc1c64e2e0a1c82fe6e63f6eb954
[ "Apache-2.0" ]
16
2019-01-28T06:08:40.000Z
2019-12-04T10:26:41.000Z
boot/rpi/tools/binman/entry.py
Rokid/YodaOS
d0d7bbc277c0fc1c64e2e0a1c82fe6e63f6eb954
[ "Apache-2.0" ]
129
2018-12-18T09:46:50.000Z
2022-03-30T07:30:13.000Z
# SPDX-License-Identifier: GPL-2.0+ # Copyright (c) 2016 Google, Inc # # Base class for all entries # from __future__ import print_function # importlib was introduced in Python 2.7 but there was a report of it not # working in 2.7.12, so we work around this: # http://lists.denx.de/pipermail/u-boot/2016-October/269729...
35.511811
82
0.599446
f9b6cd01403202827461bdd7252577f1402274ca
546
py
Python
tests/test_csmotormanager.py
BenBradnick/csmotormanager
80c287ae57bcad53eb01f0b791378c8af394dc73
[ "Apache-2.0" ]
null
null
null
tests/test_csmotormanager.py
BenBradnick/csmotormanager
80c287ae57bcad53eb01f0b791378c8af394dc73
[ "Apache-2.0" ]
null
null
null
tests/test_csmotormanager.py
BenBradnick/csmotormanager
80c287ae57bcad53eb01f0b791378c8af394dc73
[ "Apache-2.0" ]
null
null
null
from csmotormanager import cli, hello def test_hello_class_formats_greeting() -> None: inst = hello.HelloClass("person") assert inst.format_greeting() == "Hello person" def test_hello_lots_defaults(capsys) -> None: hello.say_hello_lots() captured = capsys.readouterr() assert captured.out == "Hel...
26
51
0.672161
78f780cf252c01f861bc9aeffc02073479c7bd6d
752
py
Python
Multiple roi.py
guyfromthesky/OCR-Project
c126c9844ddecbeefd1de6ae49074d3b56062df3
[ "MIT" ]
null
null
null
Multiple roi.py
guyfromthesky/OCR-Project
c126c9844ddecbeefd1de6ae49074d3b56062df3
[ "MIT" ]
null
null
null
Multiple roi.py
guyfromthesky/OCR-Project
c126c9844ddecbeefd1de6ae49074d3b56062df3
[ "MIT" ]
null
null
null
import cv2 import numpy as np #image_path img_path= r"C:\Users\evan\Documents\GitHub\OCR-Project\sample.jpg" #read image img_raw = cv2.imread(img_path) #select ROIs function ROIs = cv2.selectROIs("Select Rois",img_raw) #print rectangle points of selected roi print(ROIs) #Crop selected roi ffrom raw image #counte...
18.341463
66
0.744681
c6d46fbc30b376e9845ffc8e8a8a764fe0774139
4,436
py
Python
molmodmt/rmsd.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
molmodmt/rmsd.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
molmodmt/rmsd.py
LMMV/MolModMT
5725d6d5627b07edcbbd5e55318345a136b28c35
[ "MIT" ]
null
null
null
import numpy as _np from copy import deepcopy as _deepcopy from .lib import rmsd as _librmsd from .multitool import get_form as _get_form, select as _select, convert as _convert from .utils.digest_inputs import _comparison_two_systems as _digest_comparison_two_systems def rmsd(ref_item=None, ref_selection=None, ref_fr...
41.457944
142
0.624662
c8ad1502b7cd9fe8f1efb985dc24bb7f7d3b8eda
11,552
py
Python
mdstudio_gromacs/gromacs_topology.py
MD-Studio/lie_md
fe85dbe164ffb119a8d1e4ca02e13b26d305fd38
[ "Apache-2.0" ]
null
null
null
mdstudio_gromacs/gromacs_topology.py
MD-Studio/lie_md
fe85dbe164ffb119a8d1e4ca02e13b26d305fd38
[ "Apache-2.0" ]
12
2018-08-13T09:45:51.000Z
2019-03-14T13:12:42.000Z
mdstudio_gromacs/gromacs_topology.py
MD-Studio/lie_md
fe85dbe164ffb119a8d1e4ca02e13b26d305fd38
[ "Apache-2.0" ]
1
2021-05-18T07:41:43.000Z
2021-05-18T07:41:43.000Z
# -*- coding: utf-8 -*- """ file: gromacs_setup.py Function for preparing input definitions for a GROMACS Linear Interaction Energy MD calculation """ import os import logging import re def correct_itp(topfile, topOutFn, posre=True, outitp={}, removeMols=[], replaceMols=[], excludePosre=[], excludeHH=[], ...
31.562842
135
0.522247
100b6b7eda9d5ca9f1a23a3e57137855b2b312c2
88
py
Python
passwords/data.py
k3170makan/PyMLProjects
0676bb89119d509c9c44d7af8820aa8d620d0e4a
[ "MIT" ]
156
2017-07-26T17:33:24.000Z
2021-11-17T16:52:20.000Z
passwords/data.py
k3170makan/PyMLProjects
0676bb89119d509c9c44d7af8820aa8d620d0e4a
[ "MIT" ]
1
2017-09-01T01:34:35.000Z
2017-09-01T01:34:35.000Z
passwords/data.py
k3170makan/PyMLProjects
0676bb89119d509c9c44d7af8820aa8d620d0e4a
[ "MIT" ]
29
2017-07-30T13:39:45.000Z
2021-06-01T06:17:51.000Z
DATA_LIB="../data/" DATA_SOURCE="downloads.skullsecurity.org/passwords/rockyou.txt.bz2"
29.333333
67
0.795455
514e7815b08f51c9304a5eac01b0287489c95e78
8,245
py
Python
themes/default/base16-synth-midnight-dark.config.py
dgmulf/base16-qutebrowser
3d71ea89adfb3ede9eee2f9764d4a59d26fe4f9b
[ "MIT" ]
null
null
null
themes/default/base16-synth-midnight-dark.config.py
dgmulf/base16-qutebrowser
3d71ea89adfb3ede9eee2f9764d4a59d26fe4f9b
[ "MIT" ]
null
null
null
themes/default/base16-synth-midnight-dark.config.py
dgmulf/base16-qutebrowser
3d71ea89adfb3ede9eee2f9764d4a59d26fe4f9b
[ "MIT" ]
null
null
null
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova # Synth Midnight Dark scheme by Michaël Ball (http://github.com/michael-ball/) base00 = "#040404" base01 = "#141414" base02 = "#242424" base03 = "#61507A" base04 = "#BFBBBF" base05 = "#DFDBDF" base06 = "#EFEBEF"...
29.446429
78
0.771377
01a3c43317c4c7cd220324d22c1117e705d108e7
6,861
py
Python
tests/scenario_tests_async/test_authorize.py
stevengill/bolt-python
e29e061928fc62c80eb162fab54dd09108e45d05
[ "MIT" ]
null
null
null
tests/scenario_tests_async/test_authorize.py
stevengill/bolt-python
e29e061928fc62c80eb162fab54dd09108e45d05
[ "MIT" ]
null
null
null
tests/scenario_tests_async/test_authorize.py
stevengill/bolt-python
e29e061928fc62c80eb162fab54dd09108e45d05
[ "MIT" ]
1
2022-03-26T12:13:53.000Z
2022-03-26T12:13:53.000Z
import asyncio import json from time import time from urllib.parse import quote import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.app.async_app import AsyncApp from slack_bolt.authorization import AuthorizeResult from slack_bolt.reque...
31.328767
86
0.643201
b8f45c6bb46b395c11c430d97789b5450c17a774
725
py
Python
setup.py
Spajderix/tinyserializable
bc2896681a762dccaeb8877d189c002983a48225
[ "MIT" ]
1
2021-08-01T11:24:57.000Z
2021-08-01T11:24:57.000Z
setup.py
Spajderix/tinyserializable
bc2896681a762dccaeb8877d189c002983a48225
[ "MIT" ]
null
null
null
setup.py
Spajderix/tinyserializable
bc2896681a762dccaeb8877d189c002983a48225
[ "MIT" ]
null
null
null
import setuptools import tinyserializable with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="tinyserializable", version=tinyserializable.__version__, author="Spajderix", author_email="spajderix@gmail.com", description="Library to allow of creation of serial...
31.521739
101
0.711724
333e35548fbb4ff9796752b99877e4bd0c4b57e3
513
py
Python
test/test_message.py
bilmyers/pyflock
b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39
[ "Apache-2.0" ]
14
2017-02-14T07:02:59.000Z
2022-03-30T13:59:59.000Z
test/test_message.py
bilmyers/pyflock
b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39
[ "Apache-2.0" ]
10
2016-10-22T20:52:00.000Z
2021-05-10T10:40:30.000Z
test/test_message.py
bilmyers/pyflock
b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39
[ "Apache-2.0" ]
8
2017-03-03T13:16:34.000Z
2020-07-23T17:59:54.000Z
# coding: utf-8 from __future__ import absolute_import import os import sys import unittest import flockos from flockos.rest import ApiException from flockos.models.message import Message class TestMessage(unittest.TestCase): """ Message unit test stubs """ def setUp(self): pass def tearDow...
15.088235
48
0.65692
b35de01b56e43138403ec288a1265af1154ee55a
94
py
Python
calculator/__init__.py
chlemagne/python-oop-calculator
0259ce0f7a72faab60b058588a6838fe107e88eb
[ "MIT" ]
null
null
null
calculator/__init__.py
chlemagne/python-oop-calculator
0259ce0f7a72faab60b058588a6838fe107e88eb
[ "MIT" ]
null
null
null
calculator/__init__.py
chlemagne/python-oop-calculator
0259ce0f7a72faab60b058588a6838fe107e88eb
[ "MIT" ]
null
null
null
""" Global constants. """ import os BASE_DIR = os.path.dirname(os.path.realpath(__file__))
11.75
54
0.702128
68f67d6a02e4b2b265964442709b5f58f6b32756
23,233
py
Python
vyper/parser/parser_utils.py
mkeen/vyper
0d92d86752bcfca875e042cec6048488db3d479c
[ "MIT" ]
1
2021-01-06T21:26:16.000Z
2021-01-06T21:26:16.000Z
vyper/parser/parser_utils.py
mkeen/vyper
0d92d86752bcfca875e042cec6048488db3d479c
[ "MIT" ]
null
null
null
vyper/parser/parser_utils.py
mkeen/vyper
0d92d86752bcfca875e042cec6048488db3d479c
[ "MIT" ]
null
null
null
import re from evm.constants import GAS_IDENTITY, GAS_IDENTITYWORD from vyper.exceptions import TypeMismatchException from vyper.opcodes import comb_opcodes from vyper.types import ( BaseType, ByteArrayType, NodeType, NullType, StructType, MappingType, TupleType, ListType, ) from vyper...
48.002066
152
0.56734
3254e885db5aad86d563e900fb5df486c5c4baf1
605
py
Python
python/crab/Moriond17/TTJets_PowhegPythia8_isrup.py
EmyrClement/NTupleProduction
4c1b67ac8826656e804912512f4c4dc6695c7674
[ "Apache-2.0" ]
1
2018-02-20T21:23:21.000Z
2018-02-20T21:23:21.000Z
python/crab/Moriond17/TTJets_PowhegPythia8_isrup.py
RickeyEstes/NTupleProduction
1319183de0ce00749c8f5841fa925479b9024b48
[ "Apache-2.0" ]
116
2015-01-09T22:38:07.000Z
2017-05-24T08:12:48.000Z
python/crab/Moriond17/TTJets_PowhegPythia8_isrup.py
RickeyEstes/NTupleProduction
1319183de0ce00749c8f5841fa925479b9024b48
[ "Apache-2.0" ]
1
2020-11-01T00:01:17.000Z
2020-11-01T00:01:17.000Z
import crab.base from copy import deepcopy NAME = __file__.split('/')[-1].replace('.pyc', '') NAME = NAME.split('/')[-1].replace('.py', '') CAMPAIGN = __file__.split('/')[-2] config = deepcopy(crab.base.config) config.General.requestName = NAME config.Data.outputDatasetTag = NAME config.Data.outLFNDirBase += '/' + CAM...
37.8125
168
0.765289
62a9d5e16ff2cb5d44222f2ae5ab69b895521038
38,475
py
Python
rl/core.py
NunoEdgarGFlowHub/keras-rl
544796e89a342b6a512aabacb3625cf1d215f11d
[ "MIT" ]
3
2018-10-22T11:13:06.000Z
2022-02-16T20:40:20.000Z
rl/core.py
NunoEdgarGFlowHub/keras-rl
544796e89a342b6a512aabacb3625cf1d215f11d
[ "MIT" ]
null
null
null
rl/core.py
NunoEdgarGFlowHub/keras-rl
544796e89a342b6a512aabacb3625cf1d215f11d
[ "MIT" ]
5
2018-10-22T11:13:08.000Z
2020-12-03T00:57:11.000Z
# -*- coding: utf-8 -*- import warnings from copy import deepcopy from collections import deque import os import numpy as np from keras.callbacks import History import pickle from rl.callbacks import ( CallbackList, TestLogger, TrainEpisodeLogger, TrainIntervalLogger, Visualizer, FileLogger ) ...
41.775244
202
0.579571
ce4067335f5903b91b780f66765b894afd158761
1,476
py
Python
208. Implement Trie (Prefix Tree).py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
208. Implement Trie (Prefix Tree).py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
208. Implement Trie (Prefix Tree).py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
class Trie: def __init__(self): """ Initialize your data structure here. """ self.trie = {} def insert(self, word: str) -> None: """ Inserts a word into the trie. """ t = self.trie for w in word: if w not in t: ...
24.196721
83
0.472222
99e01f364d03b761ee0f7d263c462720ba315ab3
3,525
py
Python
tests/sentry/web/frontend/test_js_sdk_loader.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/web/frontend/test_js_sdk_loader.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/web/frontend/test_js_sdk_loader.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from exam import fixture from django.conf import settings from django.core.urlresolvers import reverse from sentry.testutils import TestCase class JavaScriptSdkLoaderTest(TestCase): @fixture def path(self): settings.JS_SDK_LOADER_SDK_VERSION = '0.5.2' s...
43.518519
125
0.659858
b510f85cd27cbc041dcf6a0100533881e930a71d
692
py
Python
flask_start/flask_start/extensions.py
kostekci/flask_start
fa279fc8907aff9868e2596f4ed9c4d9428d2f75
[ "MIT" ]
null
null
null
flask_start/flask_start/extensions.py
kostekci/flask_start
fa279fc8907aff9868e2596f4ed9c4d9428d2f75
[ "MIT" ]
95
2021-09-13T21:23:12.000Z
2022-03-31T21:22:32.000Z
flask_start/flask_start/extensions.py
kostekci/flask_start
fa279fc8907aff9868e2596f4ed9c4d9428d2f75
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Extensions module. Each extension is initialized in the app factory located in app.py.""" from flask_bcrypt import Bcrypt from flask_caching import Cache from flask_debugtoolbar import DebugToolbarExtension from flask_login import LoginManager from flask_migrate import Migrate from flask_sqla...
30.086957
92
0.813584
8ec54cf83c738134fd852f24479ab8566b38c641
3,031
py
Python
projects/CodeThorn/src/regressiondata/validate.py
maurizioabba/rose
7597292cf14da292bdb9a4ef573001b6c5b9b6c0
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
projects/CodeThorn/src/regressiondata/validate.py
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
projects/CodeThorn/src/regressiondata/validate.py
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
#!/usr/bin/python def boundscheck(n): if n < 1 or n > 100: print "** PARSE ERROR" exit(1) # needs python 2.7? import argparse if __name__ == '__main__': # Command line argument handling cmdline = argparse.ArgumentParser( description='compare counterexample output with rers csv out...
34.83908
103
0.555262
e9c8ef5396db976c29bce78563205f85774c15f5
330
py
Python
p2d/tests/test_baseconfig.py
cubercsl/polygon2domjudge
7760fb6fb45e3024f85d72d64b41d44db58eb4d3
[ "MIT" ]
8
2021-04-18T14:03:38.000Z
2021-11-18T11:54:34.000Z
p2d/tests/test_baseconfig.py
cubercsl/polygon2domjudge
7760fb6fb45e3024f85d72d64b41d44db58eb4d3
[ "MIT" ]
null
null
null
p2d/tests/test_baseconfig.py
cubercsl/polygon2domjudge
7760fb6fb45e3024f85d72d64b41d44db58eb4d3
[ "MIT" ]
null
null
null
import pytest from p2d import checkers from p2d import problems from p2d import results from p2d import misc def test_checkers(): checkers.load_checker_config() def test_problems(): problems.load_problem_config('') def test_results(): results.load_result_config() def test_misc(): misc.load_misc...
14.347826
36
0.754545
f84e47b15ff04990e3fd5a93c65ec0b11850cf97
9,792
py
Python
tests/test_cdb_maker.py
willmaclean/MedCAT
528a4765acbdf04acf8a8bd90a4f19bc1e3e33c3
[ "MIT" ]
4
2019-03-18T11:54:58.000Z
2019-06-26T02:53:38.000Z
tests/test_cdb_maker.py
willmaclean/MedCAT
528a4765acbdf04acf8a8bd90a4f19bc1e3e33c3
[ "MIT" ]
null
null
null
tests/test_cdb_maker.py
willmaclean/MedCAT
528a4765acbdf04acf8a8bd90a4f19bc1e3e33c3
[ "MIT" ]
null
null
null
import unittest import logging import os import numpy as np from medcat.cdb_maker import CDBMaker from medcat.cdb import CDB from medcat.config import Config from medcat.preprocessing.cleaners import prepare_name #cdb.csv #cui name ontologies name_status type_ids description #C0000039 Virus MSH P T109|T123 Synthet...
48.236453
568
0.668811
9c5dfacf62a22cd7d4a89d5e8ab459f85ceb7e82
29,107
py
Python
tests/python/relay/test_op_level3.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
3
2021-02-23T22:06:01.000Z
2021-09-30T09:59:17.000Z
tests/python/relay/test_op_level3.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
4
2021-03-30T11:59:59.000Z
2022-03-12T00:40:23.000Z
tests/python/relay/test_op_level3.py
ravikumarvc/incubator-tvm
9826947ffce0ed40e9d47a0db2abb033e394279e
[ "Apache-2.0" ]
3
2021-07-20T07:40:15.000Z
2021-08-03T08:39: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 u...
40.709091
97
0.586526
fba3ceac83f123e4217592febba595c7fd8ddb5d
12,698
py
Python
Lib/test/test_urllib2net.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_urllib2net.py
idobatter/cpython
c7b03e7b57cedccb77e37f65f9bbcb82050c2bb5
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_urllib2net.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
#!/usr/bin/env python3 import unittest from test import support from test.test_urllib2 import sanepathname2url import os import socket import urllib.error import urllib.request import sys try: import ssl except ImportError: ssl = None TIMEOUT = 60 # seconds def _retry_thrice(func, exc, *args, **kwargs): ...
36.912791
92
0.578674
29aa0bad70406f0778ecec681799bfc9f7d60b46
18,715
py
Python
messaging/migrations/0004_auto__del_emailbox__del_field_messagestream_email_outgoing__del_field_.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
242
2015-01-01T15:08:23.000Z
2022-01-19T21:14:24.000Z
messaging/migrations/0004_auto__del_emailbox__del_field_messagestream_email_outgoing__del_field_.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
52
2015-01-05T09:13:17.000Z
2018-12-26T14:52:43.000Z
messaging/migrations/0004_auto__del_emailbox__del_field_messagestream_email_outgoing__del_field_.py
nuwainfo/treeio
f57bf9114d9774c11468a1b0e44614b04631beb1
[ "MIT" ]
99
2015-01-09T23:28:14.000Z
2021-12-30T09:19:51.000Z
# encoding: utf-8 # Copyright 2011 Tree.io Limited # This file is part of Treeio. # License www.tree.io/license # encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleti...
83.923767
217
0.577184
7fbaefdc55521e8475a9f5b97332209e3551265d
2,998
py
Python
predict_ML/ML/create_model.py
KeThien/3D-houses
2ebde67734889c77cbe101fcc8e9fdd4f566a245
[ "MIT", "Unlicense" ]
null
null
null
predict_ML/ML/create_model.py
KeThien/3D-houses
2ebde67734889c77cbe101fcc8e9fdd4f566a245
[ "MIT", "Unlicense" ]
null
null
null
predict_ML/ML/create_model.py
KeThien/3D-houses
2ebde67734889c77cbe101fcc8e9fdd4f566a245
[ "MIT", "Unlicense" ]
null
null
null
import os import numpy as np import pandas as pd import xgboost import xgboost as xgb from sklearn.impute import KNNImputer from sklearn.model_selection import train_test_split import time import pickle from .preprocess import preprocess_data data_path = os.path.join(os.path.dirname(__file__), "Data", "database.csv") ...
26.298246
108
0.630754
1e33d9428ac76afea5c55cd614fa3106acb04f19
9,282
py
Python
cfgov/v1/util/ref.py
alexandersirris/consumerfinance.gov
611bd5d88188177759faa1fbc63ae57deb88cfbd
[ "CC0-1.0" ]
null
null
null
cfgov/v1/util/ref.py
alexandersirris/consumerfinance.gov
611bd5d88188177759faa1fbc63ae57deb88cfbd
[ "CC0-1.0" ]
null
null
null
cfgov/v1/util/ref.py
alexandersirris/consumerfinance.gov
611bd5d88188177759faa1fbc63ae57deb88cfbd
[ "CC0-1.0" ]
null
null
null
import itertools limited_categories = [ ('speech-bubble', 'Blog'), ('newspaper', 'Newsroom'), ('document', 'Report'), ('pencil', "Director's notebook"), ('date', 'Events'), ('microphone', 'Speech'), ('bullhorn', 'Press release'), ('contract', 'Op-ed'), ('double-quote', 'Testimony')...
34.377778
77
0.582956
dc4f8bd9d78e6bd46e1a82b4458f73db8958b3b8
359
py
Python
serializers.py
shiv27395/Smart-Cam-2017
aab7b1275050239a55dfc6d1f13e3806e29f1cee
[ "MIT" ]
null
null
null
serializers.py
shiv27395/Smart-Cam-2017
aab7b1275050239a55dfc6d1f13e3806e29f1cee
[ "MIT" ]
null
null
null
serializers.py
shiv27395/Smart-Cam-2017
aab7b1275050239a55dfc6d1f13e3806e29f1cee
[ "MIT" ]
null
null
null
from myapp.models import Mode, Action from rest_framework import serializers class ModeSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Mode fields = ('url', 'name') class ActionSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Act...
27.615385
64
0.679666
701eaf3a4874223d93b2460f4dbc60eab5bf96d6
3,445
py
Python
tests/test_localscope.py
tillahoffmann/localscope
3f757edadfa042cbbb90e98cddc2c242be74428b
[ "MIT" ]
2
2020-11-01T20:18:47.000Z
2021-05-15T21:08:33.000Z
tests/test_localscope.py
tillahoffmann/localscope
3f757edadfa042cbbb90e98cddc2c242be74428b
[ "MIT" ]
3
2020-10-17T17:51:19.000Z
2020-10-23T10:37:03.000Z
tests/test_localscope.py
tillahoffmann/localscope
3f757edadfa042cbbb90e98cddc2c242be74428b
[ "MIT" ]
null
null
null
from localscope import localscope import uuid import pytest allowed_global = uuid.uuid4() forbidden_global = uuid.uuid4() integer_global = 17 def test_vanilla_function(): @localscope def add(a, b): return a + b assert add(1, 2) == 3 def test_missing_global(): with pytest.raises(NameError): ...
20.753012
79
0.615675
c7d5326dc3e7d820d745b5836d018681385b625a
3,308
py
Python
TrivialImageGen/TrivialImageGen/settings.py
memoriasIT/TriviaCardGenerator
e33178fbad37050c7477c8d79729c47e40a4d6e7
[ "WTFPL" ]
2
2021-04-04T12:33:32.000Z
2022-03-27T01:35:59.000Z
TrivialImageGen/TrivialImageGen/settings.py
memoriasIT/TriviaCardGenerator
e33178fbad37050c7477c8d79729c47e40a4d6e7
[ "WTFPL" ]
3
2020-02-13T12:42:49.000Z
2022-03-12T00:15:18.000Z
TrivialImageGen/TrivialImageGen/settings.py
memoriasIT/TriviaCardGenerator
e33178fbad37050c7477c8d79729c47e40a4d6e7
[ "WTFPL" ]
null
null
null
""" Django settings for TrivialImageGen project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ impo...
25.643411
91
0.699214
d5e7f4ab0dfee0372e34b0f68d087b50d0cc1d0c
798
py
Python
eventpy/lock.py
wqking/eventpy
3922afa47843523f4d68f30c755101472f8f1aca
[ "Apache-2.0" ]
19
2020-02-16T02:00:49.000Z
2022-03-31T20:28:51.000Z
eventpy/lock.py
wqking/eventpy
3922afa47843523f4d68f30c755101472f8f1aca
[ "Apache-2.0" ]
1
2020-05-06T09:11:02.000Z
2020-05-09T12:47:40.000Z
eventpy/lock.py
wqking/eventpy
3922afa47843523f4d68f30c755101472f8f1aca
[ "Apache-2.0" ]
5
2020-07-23T01:36:18.000Z
2021-09-02T05:35:28.000Z
# eventpy library # Copyright (C) 2020 Wang Qi (wqking) # Github: https://github.com/wqking/eventpy # 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....
31.92
74
0.734336
b69a25e8f9a1c024885fa59efcc6b83cc65c43cd
6,551
py
Python
wargame/migrations/0001_initial.py
radl97/wargame-web
4062b05717bacb5c1a2c178f3a8bd07af7a18b10
[ "MIT" ]
2
2020-10-06T17:07:32.000Z
2020-10-15T09:25:42.000Z
wargame/migrations/0001_initial.py
radl97/wargame-web
4062b05717bacb5c1a2c178f3a8bd07af7a18b10
[ "MIT" ]
67
2018-06-22T09:12:44.000Z
2022-03-11T23:34:39.000Z
wargame/migrations/0001_initial.py
radl97/wargame-web
4062b05717bacb5c1a2c178f3a8bd07af7a18b10
[ "MIT" ]
2
2020-10-05T21:13:48.000Z
2020-10-10T13:46:20.000Z
# Generated by Django 2.0.3 on 2018-03-18 22:09 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
47.129496
138
0.528622
0c87a70b6bc1d4ececf437cfbf013fa0602b705f
429
py
Python
plotly/validators/contour/_selectedpoints.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/contour/_selectedpoints.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/contour/_selectedpoints.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): def __init__( self, plotly_name='selectedpoints', parent_name='contour', **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, pa...
26.8125
75
0.641026
0db5b8c26fe7389933b88ea5ae3284256c6eb8c1
196
py
Python
PYTHON/Python-Estudos/cars_01.py
sourcery-ai-bot/Estudos
de88ba326cdd9c17a456161cdb2f9ca69f7da65e
[ "MIT" ]
null
null
null
PYTHON/Python-Estudos/cars_01.py
sourcery-ai-bot/Estudos
de88ba326cdd9c17a456161cdb2f9ca69f7da65e
[ "MIT" ]
1
2021-03-02T07:45:49.000Z
2021-03-02T07:45:49.000Z
PYTHON/Python-Estudos/cars_01.py
angrycaptain19/Estudos
bbdc6a7399635312da272a62639157132bcff4a0
[ "MIT" ]
2
2021-03-02T07:31:47.000Z
2021-03-03T08:12:05.000Z
cars = ['audi', 'bmw', 'subaru', 'toyota'] for car in cars: if car == 'bmw': # SE O VALOR DA VARIAVEL == VALOR DE INTERESSE: print(car.upper()) else: print(car.title())
28
71
0.545918
e6bf52b60a67294a1386715320b25ea6f628fd77
304
py
Python
affo/wipe_and_create.py
Djcoldcrown/unfinished-natsim-code
a0e9bd2bcffd90bffb01aeaf5aa6e5d4d6b6847b
[ "BSD-2-Clause" ]
2
2020-07-28T05:50:39.000Z
2020-08-17T20:01:43.000Z
affo/wipe_and_create.py
Djcoldcrown/unfinished-natsim-code
a0e9bd2bcffd90bffb01aeaf5aa6e5d4d6b6847b
[ "BSD-2-Clause" ]
1
2020-07-28T14:53:30.000Z
2020-07-28T15:36:56.000Z
affo/wipe_and_create.py
Djcoldcrown/unfinished-natsim-code
a0e9bd2bcffd90bffb01aeaf5aa6e5d4d6b6847b
[ "BSD-2-Clause" ]
null
null
null
import sqlite3 conn = sqlite3.connect('aao.db') db = conn.cursor() tables = ["air", "coalitions", "colNames", "ground", "provinces", "requests", "special", "stats", "users", "water"] for i in tables: db.execute(f"DROP TABLE {i}") txt = open(f"raw/{i}.txt", "r") db.execute(txt.read())
23.384615
65
0.605263
abab57ae15bef2e978bb8d63b8b67cdae9636f4e
6,185
py
Python
HostAgent/agentFreFrp.py
pupeng/hone
8fb2618a51478049c73158f1d54e7165a37dffcf
[ "BSD-3-Clause" ]
5
2017-02-18T12:39:13.000Z
2021-03-29T09:21:58.000Z
HostAgent/agentFreFrp.py
pupeng/hone
8fb2618a51478049c73158f1d54e7165a37dffcf
[ "BSD-3-Clause" ]
null
null
null
HostAgent/agentFreFrp.py
pupeng/hone
8fb2618a51478049c73158f1d54e7165a37dffcf
[ "BSD-3-Clause" ]
7
2015-08-12T10:08:21.000Z
2018-08-30T12:55:25.000Z
################################################################################ # The Frenetic Project # # frenetic@frenetic-lang.org # #############################################################################...
37.035928
105
0.55861
024b5dc8ebefd3220dd6af1c910af965b0e0f593
509
py
Python
user_admin.py
heidingew/enable-disable-network-adapter
1cbcd6f526098160630399be13ac9e2bf6e4a8f8
[ "MIT" ]
null
null
null
user_admin.py
heidingew/enable-disable-network-adapter
1cbcd6f526098160630399be13ac9e2bf6e4a8f8
[ "MIT" ]
null
null
null
user_admin.py
heidingew/enable-disable-network-adapter
1cbcd6f526098160630399be13ac9e2bf6e4a8f8
[ "MIT" ]
null
null
null
import os import ctypes class AdminStateUnknownError(Exception): """Cannot determine whether the user is an admin.""" pass # Function checks if application is running as Administrator # type: () -> bool def is_user_admin(): """Return True if user has admin privileges. Raises: AdminStateUnkn...
23.136364
71
0.70334
64593f42021c21469f3da0051093061a61a13e16
73,612
py
Python
gpMgmt/bin/gppylib/programs/clsSystemState.py
iyerr3/gpdb
19f36828368e407a883de79134b34c3e33e1865a
[ "PostgreSQL", "Apache-2.0" ]
2
2019-01-29T06:59:26.000Z
2019-05-17T08:59:11.000Z
gpMgmt/bin/gppylib/programs/clsSystemState.py
iyerr3/gpdb
19f36828368e407a883de79134b34c3e33e1865a
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/programs/clsSystemState.py
iyerr3/gpdb
19f36828368e407a883de79134b34c3e33e1865a
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Greenplum Inc 2010. All Rights Reserved. # # import mainUtils FIRST to get python version check # THIS IMPORT SHOULD COME FIRST from gppylib.mainUtils import * from optparse import Option, OptionGroup, OptionParser, OptionValueError, SUPPRESS_USAGE import os, sys, getopt, socket...
48.52472
185
0.607116
5216ae1404d6d3a007f004d61dd88e641a14726b
1,229
py
Python
app/bookingapp/models.py
kamleshmj07/movie-ticketing-app-api
8b6d4ba71202485e0589bbc1bfc5c9aef4c035ce
[ "MIT" ]
null
null
null
app/bookingapp/models.py
kamleshmj07/movie-ticketing-app-api
8b6d4ba71202485e0589bbc1bfc5c9aef4c035ce
[ "MIT" ]
null
null
null
app/bookingapp/models.py
kamleshmj07/movie-ticketing-app-api
8b6d4ba71202485e0589bbc1bfc5c9aef4c035ce
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin # Create your models here. class UserManager(BaseUserManager): def create_user(self, email, password=None, **args): """Creates and saves a new ...
31.512821
75
0.664768
cd324b7b415da4c91e78c6a42d7df3b8527364c3
853
py
Python
main.py
rakesh160/azureTest
73e01853be5313ca6be7864b10dce48989a8f167
[ "MIT" ]
null
null
null
main.py
rakesh160/azureTest
73e01853be5313ca6be7864b10dce48989a8f167
[ "MIT" ]
null
null
null
main.py
rakesh160/azureTest
73e01853be5313ca6be7864b10dce48989a8f167
[ "MIT" ]
null
null
null
from flask import Flask, redirect, url_for from sqlalchemy import * app = Flask(__name__) @app.route('/hello/<name>') def hello_name(name): hello_name_default() return 'Hello %s!' % name @app.route('/hello') def hello_name_default(): return 'Hello default' @app.route('/helloall/<word>') def hello_all...
23.694444
112
0.692849
d201f4c6bfc3502b7fe21791170aac64f16eeed8
1,635
py
Python
rowcolremove.py
dnaneet/numcode
7ec9345f65367a2690f4b9815d476e241edc2d52
[ "MIT" ]
null
null
null
rowcolremove.py
dnaneet/numcode
7ec9345f65367a2690f4b9815d476e241edc2d52
[ "MIT" ]
null
null
null
rowcolremove.py
dnaneet/numcode
7ec9345f65367a2690f4b9815d476e241edc2d52
[ "MIT" ]
null
null
null
#Code to remove Multiple rows and columns from a numpy array import numpy as np from scipy.linalg import eigh import math from matplotlib import pyplot as plt import time import os os.system('clear') #Clear screen on linux. For Win, use os.system('cls') ## FUNCTION DECLARATION ## #SpringElementStiffness: takes lin...
30.849057
87
0.66422
d43086756769a16dc63114c6b743d2ed4fe41903
14,163
py
Python
scripts/validate_docstrings.py
Quansight/pandas
511fd46e68b12317eb925d4bf7405c2d33daba6c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-06T16:50:48.000Z
2020-04-06T16:50:48.000Z
scripts/validate_docstrings.py
Quansight/pandas
511fd46e68b12317eb925d4bf7405c2d33daba6c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
scripts/validate_docstrings.py
Quansight/pandas
511fd46e68b12317eb925d4bf7405c2d33daba6c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-07-04T10:32:38.000Z
2020-07-04T10:32:38.000Z
#!/usr/bin/env python3 """ Analyze docstrings to detect errors. If no argument is provided, it does a quick check of docstrings and returns a csv with all API functions and results of basic checks. If a function or method is provided in the form "pandas.function", "pandas.module.class.method", etc. a list of all erro...
32.042986
85
0.606863
b3e408bbebd20d3e642859a41fcb44f2afd63fcb
577
py
Python
mint/wallet/puzzles/p2_m_of_n_delegate_direct.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
12
2021-08-18T20:53:31.000Z
2022-03-15T21:45:13.000Z
mint/wallet/puzzles/p2_m_of_n_delegate_direct.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
34
2021-08-18T19:12:11.000Z
2022-01-06T17:15:34.000Z
mint/wallet/puzzles/p2_m_of_n_delegate_direct.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
7
2021-08-18T20:53:34.000Z
2022-03-15T08:37:40.000Z
""" Pay to m of n direct This puzzle program is like p2_delegated_puzzle except instead of one public key, it includes N public keys, any M of which needs to sign the delegated puzzle. """ from mint.types.blockchain_format.program import Program from .load_clvm import load_clvm MOD = load_clvm("p2_m_of_n_delegate_d...
27.47619
81
0.783362
9228071ce953d6320fcdd1333aec36a94a39b57b
51
py
Python
src/adresses/__init__.py
marquesds/zipnator
fe6102d3e69e9adfa343e2ead5099817a1cf742f
[ "Unlicense" ]
null
null
null
src/adresses/__init__.py
marquesds/zipnator
fe6102d3e69e9adfa343e2ead5099817a1cf742f
[ "Unlicense" ]
null
null
null
src/adresses/__init__.py
marquesds/zipnator
fe6102d3e69e9adfa343e2ead5099817a1cf742f
[ "Unlicense" ]
null
null
null
class InvalidZipcodeException(Exception): pass
17
41
0.803922
71f788f23823c285b749036f2a8b36bce2e20def
10,790
py
Python
interaction_manager/view/ui_spotify_dialog.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
1
2021-03-07T12:36:13.000Z
2021-03-07T12:36:13.000Z
interaction_manager/view/ui_spotify_dialog.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
null
null
null
interaction_manager/view/ui_spotify_dialog.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
1
2021-02-20T15:10:37.000Z
2021-02-20T15:10:37.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interaction_manager/ui/spotifydialog.ui' # # Created by: PyQt5 UI code generator 5.12.2 # # WARNING! All changes made in this file will be lost! from es_common.utils.qt import QtCore, QtGui, QtWidgets class Ui_SpotifyDialog(object): d...
57.393617
114
0.732808
5784d8b7874a78f4fc4277061290f3063b7a902b
2,295
py
Python
Section 4/section_4.py
PacktPublishing/Hands-On-Computer-Vision-with-PyTorch-1.x
bad073f7489792d3c4bc860a2d56fa133ba63617
[ "MIT" ]
6
2020-03-11T23:39:12.000Z
2021-10-04T04:53:02.000Z
Section 4/section_4.py
PacktPublishing/Hands-On-Computer-Vision-with-PyTorch-1.x
bad073f7489792d3c4bc860a2d56fa133ba63617
[ "MIT" ]
null
null
null
Section 4/section_4.py
PacktPublishing/Hands-On-Computer-Vision-with-PyTorch-1.x
bad073f7489792d3c4bc860a2d56fa133ba63617
[ "MIT" ]
2
2020-05-02T14:50:05.000Z
2020-09-19T06:01:54.000Z
import torch import torch.nn as nn import torch.nn.functional as f import torch.optim as optim from torchvision import datasets, transforms class Net(nn.Module): def __init__(self): super(Net, self).__init__() # single input cconhannel and 6 output, 5*5 kernel self.conv1 = nn.Conv2d(1, 6, ...
30.6
89
0.599564
ef4b6ac7f7467242a434ca02473f1eecaba2e2e1
19,576
py
Python
ParlAI/projects/image_chat/transresnet_multimodal/modules.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
163
2019-06-23T14:07:57.000Z
2022-02-25T23:06:07.000Z
ParlAI/projects/image_chat/transresnet_multimodal/modules.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
8
2019-07-24T12:41:31.000Z
2022-02-10T00:17:20.000Z
ParlAI/projects/image_chat/transresnet_multimodal/modules.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
31
2019-06-26T01:21:07.000Z
2021-09-06T17:23:24.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Modules for TransresnetMultimodalAgent.""" import torch from torch import nn from parlai.agents.transformer.modules i...
35.019678
93
0.581784
8d1a5dbfeba30249b4aab70c8af9d7b18f89590d
39,372
py
Python
code/qa_model.py
akshaynavalakha/cs224n-win18-squad
2ac0b63321468819f2d0bc4f1ddb3946d53fbed8
[ "Apache-2.0" ]
6
2018-10-13T15:51:49.000Z
2022-03-25T00:53:57.000Z
code/qa_model.py
orkuntemiz/cs224n-win18-squad
2ac0b63321468819f2d0bc4f1ddb3946d53fbed8
[ "Apache-2.0" ]
null
null
null
code/qa_model.py
orkuntemiz/cs224n-win18-squad
2ac0b63321468819f2d0bc4f1ddb3946d53fbed8
[ "Apache-2.0" ]
2
2018-10-13T15:51:50.000Z
2020-03-20T21:34:36.000Z
# Copyright 2018 Stanford University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
53.494565
226
0.670476
6e81057949c6cf17a5995ea905ad6faeab30cfab
121
py
Python
cosycar-runner.py
eragnms/cosy-car
73290ee01cf79b75d42fdd4b0fdb9188af797113
[ "MIT" ]
null
null
null
cosycar-runner.py
eragnms/cosy-car
73290ee01cf79b75d42fdd4b0fdb9188af797113
[ "MIT" ]
null
null
null
cosycar-runner.py
eragnms/cosy-car
73290ee01cf79b75d42fdd4b0fdb9188af797113
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from cosycar.cosycar import main if __name__ == '__main__': main()
13.444444
32
0.628099
e19dc60de952da108e3017025ebb908820135231
315
py
Python
deeppages/tests.py
ricardofalasca/deep-pages
d1b2a48f62c31e20d767df5c6345e07e4d05290d
[ "MIT" ]
null
null
null
deeppages/tests.py
ricardofalasca/deep-pages
d1b2a48f62c31e20d767df5c6345e07e4d05290d
[ "MIT" ]
null
null
null
deeppages/tests.py
ricardofalasca/deep-pages
d1b2a48f62c31e20d767df5c6345e07e4d05290d
[ "MIT" ]
null
null
null
from django.test import TestCase # from model_mommy import mommy class PageTestCase(TestCase): def test_deep_page_settings(self): pass def test_create_deep_page(self): pass def test_create_duplicated_path_pages(self): pass def test_request_deep_page(self): pass
18.529412
48
0.704762
aa72d3332eed5898f83208037eb6a19a4b6e70fe
2,309
py
Python
tools/install_venv.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
tools/install_venv.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
tools/install_venv.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
1
2019-10-25T08:12:03.000Z
2019-10-25T08:12:03.000Z
#!/usr/bin/env python # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2010 OpenStack Foundation. # Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); yo...
31.630137
79
0.728887
a05a5d66eccd65badfda70360c19d617fb1ea6ab
9,678
py
Python
app/main/views.py
finndai/flasky
75e7ba6d561a63b8ec3f58aca4732d4aa0f51d74
[ "MIT" ]
null
null
null
app/main/views.py
finndai/flasky
75e7ba6d561a63b8ec3f58aca4732d4aa0f51d74
[ "MIT" ]
null
null
null
app/main/views.py
finndai/flasky
75e7ba6d561a63b8ec3f58aca4732d4aa0f51d74
[ "MIT" ]
null
null
null
from flask import render_template,abort,redirect,flash,url_for,request,\ current_app,make_response from flask_login import login_required,current_user from flask_sqlalchemy import get_debug_queries from . import main from .forms import EditProfileForm,EditProfileAdminForm,PostForm,CommentForm from ..import db from ...
38.557769
122
0.687332
f1ce91416d3d6d8b6f04fc5d269dcdddb192ec52
77,595
py
Python
translators/apis.py
duandaxei/translators
af661ebb7b797e0e9493f1a1c8d30a1ea2edef90
[ "MIT" ]
null
null
null
translators/apis.py
duandaxei/translators
af661ebb7b797e0e9493f1a1c8d30a1ea2edef90
[ "MIT" ]
null
null
null
translators/apis.py
duandaxei/translators
af661ebb7b797e0e9493f1a1c8d30a1ea2edef90
[ "MIT" ]
null
null
null
# coding=utf-8 # author=UlionTse """MIT License Copyright (c) 2022 UlionTse Warning: Prohibition of commercial use! This module is designed to help students and individuals with translation services. For commercial use, please purchase API services from translation suppliers. Don't make high frequency requests! Ent...
48.740578
148
0.620336
498cce0a4be4259615164d7ce5a0ff83df2fec10
1,584
py
Python
tests/testapp/settings.py
jghyllebert/django-translated-fields
5a812331b11342faafc99a9e707c16d33edb3fa2
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/settings.py
jghyllebert/django-translated-fields
5a812331b11342faafc99a9e707c16d33edb3fa2
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/settings.py
jghyllebert/django-translated-fields
5a812331b11342faafc99a9e707c16d33edb3fa2
[ "BSD-3-Clause" ]
null
null
null
import os DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}} INSTALLED_APPS = [ "django.contrib.auth", "django.contrib.admin", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.staticfiles", "django.contrib.messages", "testapp", ]...
29.886792
85
0.666035
50b3729a1e4415a3c05a47aea62a2bf1c3809c85
2,886
py
Python
vta/python/vta/top/bitpack.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
vta/python/vta/top/bitpack.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
3,022
2020-11-24T14:02:31.000Z
2022-03-31T23:55:31.000Z
vta/python/vta/top/bitpack.py
XiaoSong9905/tvm
48940f697e15d5b50fa1f032003e6c700ae1e423
[ "Apache-2.0" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.369565
89
0.658697
fe8cbcf7fa12b6363415fce6cc06772e7cbf3b0e
23,679
py
Python
ontology/FlatOntologyManager.py
Dagu9/Reinforcement-learning-SGD
eb4a2546d6c99917b33e8cc4c210709e7d4cc15e
[ "Apache-2.0" ]
2
2020-01-20T14:43:27.000Z
2021-04-29T12:21:05.000Z
ontology/FlatOntologyManager.py
vmishra04/Pydial
a689fa1177cd34f32dd4d30a5a6140fb721855bf
[ "Apache-2.0" ]
null
null
null
ontology/FlatOntologyManager.py
vmishra04/Pydial
a689fa1177cd34f32dd4d30a5a6140fb721855bf
[ "Apache-2.0" ]
null
null
null
############################################################################### # PyDial: Multi-domain Statistical Spoken Dialogue System Software ############################################################################### # # Copyright 2015 - 2019 # Cambridge University Engineering Department Dialogue Systems Grou...
41.615114
134
0.604586
b1b4fa2c292ca7c2a903b8f350591e9911ac3c60
3,038
py
Python
packages/hagrid/hagrid/launch.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
8,428
2017-08-10T09:17:49.000Z
2022-03-31T08:20:14.000Z
packages/hagrid/hagrid/launch.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
4,779
2017-08-09T23:19:00.000Z
2022-03-29T11:49:36.000Z
packages/hagrid/hagrid/launch.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
2,307
2017-08-10T08:52:12.000Z
2022-03-30T05:36:07.000Z
# stdlib from typing import Dict as TypeDict from typing import List as TypeList from typing import Optional # relative from .cache import DEFAULT_BRANCH from .grammar import GrammarTerm from .grammar import GrammarVerb from .grammar import HostGrammarTerm from .grammar import SourceGrammarTerm from .names import rand...
26.189655
76
0.442067
974f9dc9c84b365919eb91c004ef46719babe476
7,035
py
Python
src/ui/Complaint.py
madhav-datt/kgp-hms
c948d1d3580cb23baccf24cc59fe116e0ce8e700
[ "MIT" ]
3
2016-04-10T17:48:10.000Z
2016-04-24T04:44:39.000Z
src/ui/Complaint.py
madhav-datt/kgp-hms
c948d1d3580cb23baccf24cc59fe116e0ce8e700
[ "MIT" ]
null
null
null
src/ui/Complaint.py
madhav-datt/kgp-hms
c948d1d3580cb23baccf24cc59fe116e0ce8e700
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Complaint.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s):...
55.393701
112
0.725942
f982eb3e510966f66a5ff9cdd6ee970cbd9d8170
978
py
Python
jabba/test/test_include_graph/test_include_graph.py
puppetlabs/jabba
71c1d008ab497020fba6ffa12a600721eb3f5ef7
[ "MIT" ]
1
2017-05-10T19:07:57.000Z
2017-05-10T19:07:57.000Z
jabba/test/test_include_graph/test_include_graph.py
OSLL/jenkins_job_builder_visualization
71c1d008ab497020fba6ffa12a600721eb3f5ef7
[ "MIT" ]
39
2017-02-23T10:29:13.000Z
2017-04-18T16:19:38.000Z
jabba/test/test_include_graph/test_include_graph.py
isabella232/jabba
71c1d008ab497020fba6ffa12a600721eb3f5ef7
[ "MIT" ]
1
2021-03-17T17:12:44.000Z
2021-03-17T17:12:44.000Z
import sys import os sys.path.append("../") sys.path.append("../../") from jabba.yaml_unfolder import YamlUnfolder from test.graph_test import GraphTest class TestIncludeGraph(GraphTest): def setUpYamlUnfolder(self, main_file): export_name = self.yaml_root + main_file + self.ext self.yaml_un...
25.736842
80
0.703476
5895bd602f559669b88fbc2f2287b007205819f1
2,076
py
Python
setup.py
thops/cue-sdk-python
ee14846958163b1c18268e44d0bf0a852514e564
[ "MIT" ]
null
null
null
setup.py
thops/cue-sdk-python
ee14846958163b1c18268e44d0bf0a852514e564
[ "MIT" ]
null
null
null
setup.py
thops/cue-sdk-python
ee14846958163b1c18268e44d0bf0a852514e564
[ "MIT" ]
null
null
null
import os import platform import re import sys from setuptools import setup def read_version(filename='cuesdk/version.py'): """Parse a __version__ number from a source file""" with open(filename) as source: text = source.read() match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", text) ...
30.086957
72
0.615607
ab33cce512c0598dce7be18c8e4f24e750a1bdca
7,097
py
Python
django-olwidget/olwidget/forms.py
RobertoMaurizzi/olwidget
105738ad140f06a2a50407e9d309255a5e420aaf
[ "BSD-3-Clause" ]
null
null
null
django-olwidget/olwidget/forms.py
RobertoMaurizzi/olwidget
105738ad140f06a2a50407e9d309255a5e420aaf
[ "BSD-3-Clause" ]
null
null
null
django-olwidget/olwidget/forms.py
RobertoMaurizzi/olwidget
105738ad140f06a2a50407e9d309255a5e420aaf
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.contrib.gis.forms.fields import GeometryField from olwidget.widgets import Map, BaseVectorLayer, EditableLayer from olwidget.fields import MapField from olwidget import utils __all__ = ('MapModelForm', ) class BaseMapModelForm(forms.models.BaseModelForm): """ ModelForm ty...
39.870787
113
0.629844
41ffdbade65f34def77b1e3a78d762dc407d0eaa
514
py
Python
countries/migrations/0003_auto_20210219_1422.py
baikov/dj-cc-dep
5ae66b1a638c040e6497d56c2a9299fac335d608
[ "MIT" ]
null
null
null
countries/migrations/0003_auto_20210219_1422.py
baikov/dj-cc-dep
5ae66b1a638c040e6497d56c2a9299fac335d608
[ "MIT" ]
3
2021-11-02T21:08:31.000Z
2022-02-04T21:07:13.000Z
countries/migrations/0003_auto_20210219_1422.py
baikov/dj-cc-dep
5ae66b1a638c040e6497d56c2a9299fac335d608
[ "MIT" ]
null
null
null
# Generated by Django 3.0.12 on 2021-02-19 11:22 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('countries', '0002_auto_20210217_2124'), ] operations = [ migrations.AlterField( model_nam...
25.7
139
0.657588
7d40e74792ed336875b7ff44ba1a92e1d573684a
9,232
py
Python
lark/visitors.py
timofurrer/lark
f3714a572f047c5857a2b3ab8d8a161e142f20bf
[ "MIT" ]
3
2021-08-12T15:29:35.000Z
2022-02-24T21:59:10.000Z
lark/visitors.py
timofurrer/lark
f3714a572f047c5857a2b3ab8d8a161e142f20bf
[ "MIT" ]
null
null
null
lark/visitors.py
timofurrer/lark
f3714a572f047c5857a2b3ab8d8a161e142f20bf
[ "MIT" ]
1
2021-03-14T18:30:11.000Z
2021-03-14T18:30:11.000Z
from functools import wraps from .utils import smart_decorator from .tree import Tree from .exceptions import VisitError, GrammarError from .lexer import Token ###{standalone from inspect import getmembers, getmro class Discard(Exception): pass # Transformers class Transformer: """Visits the tree recursive...
30.468647
119
0.633124
535094af573812332a50dd39792aa0b452af27d5
2,106
py
Python
Week 2/src/blosum.py
klxu03/SEAP2020
0bcebd4c972be5e6fafcada5eb1f19e8bee671ae
[ "MIT" ]
null
null
null
Week 2/src/blosum.py
klxu03/SEAP2020
0bcebd4c972be5e6fafcada5eb1f19e8bee671ae
[ "MIT" ]
1
2021-08-23T20:48:21.000Z
2021-08-23T20:48:21.000Z
Week 2/src/blosum.py
klxu03/SEAP2020
0bcebd4c972be5e6fafcada5eb1f19e8bee671ae
[ "MIT" ]
1
2020-09-15T01:26:09.000Z
2020-09-15T01:26:09.000Z
import numpy as np from pathlib import Path import pandas as pd class BLOSUM: def __init__(self, filepath): # Importing in the file path (have to add a . because it is in /~/src instead of /~ self.filepath = '.' + filepath """ I/O the 136 HIV panel fasta sequence """ base_path = ...
36.310345
98
0.525641
2facdc7117e82bfdc67162f67e208c859353369b
391
py
Python
desafio/wsgi.py
felipemaia02/desafio4linux
d4ebcfbd767a506b7babba3206b4a370bef35449
[ "MIT" ]
null
null
null
desafio/wsgi.py
felipemaia02/desafio4linux
d4ebcfbd767a506b7babba3206b4a370bef35449
[ "MIT" ]
null
null
null
desafio/wsgi.py
felipemaia02/desafio4linux
d4ebcfbd767a506b7babba3206b4a370bef35449
[ "MIT" ]
null
null
null
""" WSGI config for desafio 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
a660b4592169f0d0487670525afbcec727ee5522
921
py
Python
ggde/patches.py
gg-de/backend
42208526333c4b31925b03a90600a9005fad3087
[ "Apache-2.0" ]
1
2021-01-20T21:12:25.000Z
2021-01-20T21:12:25.000Z
ggde/patches.py
gg-de/backend
42208526333c4b31925b03a90600a9005fad3087
[ "Apache-2.0" ]
null
null
null
ggde/patches.py
gg-de/backend
42208526333c4b31925b03a90600a9005fad3087
[ "Apache-2.0" ]
null
null
null
import logging from functools import wraps from django.http.response import JsonResponse logger = logging.getLogger(__name__) def patch_jsonresponse_disable_ensure_ascii(): if getattr(JsonResponse, '_utf8_patched', False): # Already patched. Add warning in logs with stack to see what location # is...
40.043478
82
0.739414
3c5827db92b2b627399e889d0279b31d80fcec30
1,506
py
Python
pcat2py/class/22243176-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/22243176-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/22243176-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # 22243176-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
39.631579
164
0.610226
504550b7434360814c7d42c60552044d49d64bdd
9,052
py
Python
tests/xls2xform_tests.py
ukanga/pyxform
f4ce2ec7f90d3e197b9b5b58fecccabe31d213f8
[ "BSD-2-Clause" ]
67
2015-02-02T17:49:25.000Z
2022-02-18T06:31:52.000Z
tests/xls2xform_tests.py
ukanga/pyxform
f4ce2ec7f90d3e197b9b5b58fecccabe31d213f8
[ "BSD-2-Clause" ]
477
2015-01-14T15:48:44.000Z
2022-03-29T16:37:22.000Z
tests/xls2xform_tests.py
ukanga/pyxform
f4ce2ec7f90d3e197b9b5b58fecccabe31d213f8
[ "BSD-2-Clause" ]
86
2015-01-26T13:16:26.000Z
2022-01-20T21:40:54.000Z
# -*- coding: utf-8 -*- """ Test xls2xform module. """ # The Django application xls2xform uses the function # pyxform.create_survey. We have a test here to make sure no one # breaks that function. import argparse import logging from unittest import TestCase import pyxform from pyxform.xls2xform import ( _create_p...
35.920635
90
0.63091
16aea8e6fe520c5091cf1315e9f7406fd158e8fb
538
py
Python
vnpy/api/t2sdk/py_t2sdk/setup.py
jerryhe26/vnpy
d7607da780c57a2ab182688f4e52bc3a300acfda
[ "MIT" ]
2
2020-04-17T03:10:17.000Z
2020-04-17T03:15:10.000Z
vnpy/api/t2sdk/py_t2sdk/setup.py
jerryhe26/vnpy
d7607da780c57a2ab182688f4e52bc3a300acfda
[ "MIT" ]
1
2020-04-21T02:42:32.000Z
2020-04-21T02:42:32.000Z
vnpy/api/t2sdk/py_t2sdk/setup.py
jerryhe26/vnpy
d7607da780c57a2ab182688f4e52bc3a300acfda
[ "MIT" ]
1
2021-02-19T07:25:22.000Z
2021-02-19T07:25:22.000Z
#from distutils.core import setup, Extension from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext from Cython.Build import cythonize setup( name='py_t2sdk', version='1.0.0', author='rdc@hundsun', author_email='', url='', ext_modules = cythonize...
24.454545
49
0.697026
31478e79ea3305a4fb5de4a63763a9d240b66bcd
18,408
py
Python
domainbed/hparams_registry.py
alexrame/domainbedresearch
6255da9aedf4584115324f8cf3a45be6e9004602
[ "MIT" ]
1
2022-03-15T16:30:14.000Z
2022-03-15T16:30:14.000Z
domainbed/hparams_registry.py
alexrame/domainbedresearch
6255da9aedf4584115324f8cf3a45be6e9004602
[ "MIT" ]
null
null
null
domainbed/hparams_registry.py
alexrame/domainbedresearch
6255da9aedf4584115324f8cf3a45be6e9004602
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import os import numpy as np from domainbed.lib import misc def _define_hparam(hparams, hparam_name, default_val, random_val_fn): hparams[hparam_name] = (hparams, hparam_name, default_val, random_val_fn) def _hparams(algorithm, dataset, ran...
43.620853
112
0.570567
9f3e141d00a9372377ebf767423de29e8d93e267
3,535
py
Python
tests/test/generic/export_alias.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
6
2019-01-09T11:55:15.000Z
2021-06-25T19:52:42.000Z
tests/test/generic/export_alias.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
65
2018-12-12T08:40:38.000Z
2022-02-28T09:19:45.000Z
tests/test/generic/export_alias.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
9
2018-11-23T08:59:09.000Z
2020-02-04T12:56:35.000Z
#!/usr/bin/env python2.7 import os import sys sys.path.append(os.path.realpath(__file__ + '/../../../lib')) import udf from udf import requires import exatest # ATTENTION! # The logic for the tests had to be put in the export_alias.sql files for each language. # This was required because EXPORT INTO SCRIPT can only...
43.641975
182
0.712023
19ef00ba83c578439c0fe515b521888fddfff1db
2,473
py
Python
python/paddle/fluid/tests/unittests/test_sequence_unpad_op.py
frankwhzhang/Paddle
131b1dc3240e53ea295cc49323bb2a7e7dcc717f
[ "Apache-2.0" ]
1
2019-10-10T05:58:26.000Z
2019-10-10T05:58:26.000Z
python/paddle/fluid/tests/unittests/test_sequence_unpad_op.py
frankwhzhang/Paddle
131b1dc3240e53ea295cc49323bb2a7e7dcc717f
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_sequence_unpad_op.py
frankwhzhang/Paddle
131b1dc3240e53ea295cc49323bb2a7e7dcc717f
[ "Apache-2.0" ]
4
2019-09-30T02:15:34.000Z
2019-09-30T02:41:30.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
28.425287
79
0.621512
b397292066c0233bb8d66ca308e5b02ba556d76c
197
py
Python
CrownstoneYodiwo/lib/ports/OutputPorts.py
crownstone/yodiwo-crownstone-node
ba5afc6d92f70f8c795256621dd47fab754cbd35
[ "MIT" ]
null
null
null
CrownstoneYodiwo/lib/ports/OutputPorts.py
crownstone/yodiwo-crownstone-node
ba5afc6d92f70f8c795256621dd47fab754cbd35
[ "MIT" ]
null
null
null
CrownstoneYodiwo/lib/ports/OutputPorts.py
crownstone/yodiwo-crownstone-node
ba5afc6d92f70f8c795256621dd47fab754cbd35
[ "MIT" ]
null
null
null
from enum import Enum class OutputPorts(Enum): powerUsage = "PowerUsage" personEnter = "PersonEnter" personExit = "PersonExit" occupancyChange = "occupancyChanged"
19.7
40
0.664975
0f45cf81f223f1b588713da29b2b09f1a8e7ea9e
639
py
Python
UnitTest.py
Himself65/chenzheBot
034f63910700878a79afbbf313ed412910b6c367
[ "MIT" ]
10
2018-06-19T11:11:06.000Z
2018-10-30T13:03:27.000Z
UnitTest.py
Himself65/chenzheBot
034f63910700878a79afbbf313ed412910b6c367
[ "MIT" ]
2
2018-06-20T04:56:09.000Z
2018-06-20T15:34:29.000Z
UnitTest.py
Himself65/chenzheBot
034f63910700878a79afbbf313ed412910b6c367
[ "MIT" ]
1
2018-10-04T14:53:47.000Z
2018-10-04T14:53:47.000Z
import json def CZBotWordTest(): from bot.CZBotWord import CZBotWord def display(s): print(bot.getSentence(s)) bot = CZBotWord() CZBotWord.initRedis() display("chenzhe好强啊") display("chenzhe为什么这么强") display("will爷") display("chenzhe强") display("基础知识") display("人类的本质是什么"...
19.96875
44
0.608764
5d3de0cdc73a7cccb5c852a2d7e68bfc28aef0a0
261
gyp
Python
deps/libgdal/gyp-formats/aaigrid.gyp
jimgambale/node-gdal
dc5c89fb23f1004732106250c8b7d57f380f9b61
[ "Apache-2.0" ]
462
2015-01-07T23:09:18.000Z
2022-03-30T03:58:09.000Z
deps/libgdal/gyp-formats/aaigrid.gyp
jimgambale/node-gdal
dc5c89fb23f1004732106250c8b7d57f380f9b61
[ "Apache-2.0" ]
196
2015-01-07T11:10:35.000Z
2022-03-29T08:50:30.000Z
deps/libgdal/gyp-formats/aaigrid.gyp
jimgambale/node-gdal
dc5c89fb23f1004732106250c8b7d57f380f9b61
[ "Apache-2.0" ]
113
2015-01-15T02:24:18.000Z
2021-11-22T06:05:52.000Z
{ "includes": [ "../common.gypi" ], "targets": [ { "target_name": "libgdal_aaigrid_frmt", "type": "static_library", "sources": [ "../gdal/frmts/aaigrid/aaigriddataset.cpp" ], "include_dirs": [ "../gdal/frmts/aaigrid" ] } ] }
14.5
46
0.544061
0d88d3e87f088fdab1eefb71ff98baa547afc344
1,467
py
Python
the-pattern-bart-summary/experiments/tokenizer_gears_summary.py
redis-developer/the-pattern
faa629b8152f405f92987c1436565938fa302932
[ "MIT" ]
3
2021-09-22T15:24:24.000Z
2022-02-14T02:40:42.000Z
the-pattern-bart-summary/experiments/tokenizer_gears_summary.py
redis-developer/the-pattern
faa629b8152f405f92987c1436565938fa302932
[ "MIT" ]
null
null
null
the-pattern-bart-summary/experiments/tokenizer_gears_summary.py
redis-developer/the-pattern
faa629b8152f405f92987c1436565938fa302932
[ "MIT" ]
2
2021-09-22T15:24:27.000Z
2022-02-14T01:00:34.000Z
tokenizer = None model= None def loadTokeniser(): global tokenizer global model import torch from transformers import AutoTokenizer, T5ForConditionalGeneration tokenizer = AutoTokenizer.from_pretrained("t5-small") # Try RobertaTokenizerFast and BART # tokenizer = AutoTokenizer.from_pretr...
33.340909
121
0.728698
0266b850f8d9ebfaa66a3de14c657f413f24369f
2,156
py
Python
5_deep_learning/solution/01_DL_framework/GradientDescentOptimizer.py
karanchawla/ai_for_robotics
03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8
[ "BSD-3-Clause" ]
65
2017-03-03T07:30:28.000Z
2021-08-19T01:12:47.000Z
5_deep_learning/solution/01_DL_framework/GradientDescentOptimizer.py
karanchawla/ai_for_robotics
03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8
[ "BSD-3-Clause" ]
4
2017-03-02T13:51:40.000Z
2017-11-01T16:49:22.000Z
5_deep_learning/solution/01_DL_framework/GradientDescentOptimizer.py
ethz-asl/ai_for_robotics
03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8
[ "BSD-3-Clause" ]
43
2017-03-02T11:31:21.000Z
2020-10-30T07:10:59.000Z
# Copyright 2017 Mark Pfeiffer, ASL, ETH Zurich, Switzerland # Copyright 2017 Fadri Furrer, ASL, ETH Zurich, Switzerland # Copyright 2017 Renaud Dubé, ASL, ETH Zurich, Switzerland import Support as sup import numpy as np class GradientDescentOptimizer(): """Gradient descent optimization for neural network parame...
37.824561
163
0.662338
7656c3f4e7cdd23a81b46e615cbda44ce43d1554
12,637
py
Python
test/test_sixrd.py
tsyesika/VPP
5d28c7afbc0abd172d0053768b2ebe37b7a6c348
[ "Apache-2.0" ]
1
2020-05-21T16:26:02.000Z
2020-05-21T16:26:02.000Z
test/test_sixrd.py
tsyesika/VPP
5d28c7afbc0abd172d0053768b2ebe37b7a6c348
[ "Apache-2.0" ]
2
2018-09-10T21:43:09.000Z
2021-06-01T22:36:51.000Z
test/test_sixrd.py
tsyesika/VPP
5d28c7afbc0abd172d0053768b2ebe37b7a6c348
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ 6RD RFC5969 functional tests """ import unittest from scapy.layers.inet import IP, UDP, Ether from scapy.layers.inet6 import IPv6 from scapy.packet import Raw from framework import VppTestCase, VppTestRunner from vpp_ip_route import VppIpRoute, VppRoutePath, DpoProto, VppIpTable from socket i...
35.497191
79
0.570547
d7e3dca1b638a5c010d45fb228ac03b2c1fdbf0e
205,377
py
Python
Lib/test/test_email/test_email.py
pelotoncycle/cpython-fork
1ab99a0e912aac9c3f16555f23284d7e381f2f69
[ "PSF-2.0" ]
70
2015-06-20T17:59:24.000Z
2021-05-03T02:01:49.000Z
Lib/test/test_email/test_email.py
sky-skynet/Python3
b816507f56ee14b730b7ab52a61eb17f9eb9d815
[ "PSF-2.0" ]
16
2015-06-11T14:57:43.000Z
2016-12-03T00:22:13.000Z
Lib/test/test_email/test_email.py
sky-skynet/Python3
b816507f56ee14b730b7ab52a61eb17f9eb9d815
[ "PSF-2.0" ]
36
2015-05-15T20:30:44.000Z
2020-11-14T19:31:40.000Z
# Copyright (C) 2001-2010 Python Software Foundation # Contact: email-sig@python.org # email package unit tests import re import time import base64 import unittest import textwrap from io import StringIO, BytesIO from itertools import chain from random import choice try: from threading import Thread except Import...
38.503375
460
0.620006
d5c48dc166521235e69b3aa1d57bd546e5ff40c6
10,347
py
Python
tools/get_action_list.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
tools/get_action_list.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
tools/get_action_list.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 - Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
29.818444
78
0.718083
730fd313671a32636302e9dc7f34278c964feed0
566
py
Python
scripts/hail_batch/af_tob_wgs/main.py
populationgenomics/ancestry
faf6fd4bc3a1f8b2a2adb7e59cf584d4bfdf79e6
[ "MIT" ]
null
null
null
scripts/hail_batch/af_tob_wgs/main.py
populationgenomics/ancestry
faf6fd4bc3a1f8b2a2adb7e59cf584d4bfdf79e6
[ "MIT" ]
21
2021-03-09T06:35:59.000Z
2022-02-21T22:56:15.000Z
scripts/hail_batch/af_tob_wgs/main.py
populationgenomics/ancestry
faf6fd4bc3a1f8b2a2adb7e59cf584d4bfdf79e6
[ "MIT" ]
null
null
null
"""Entry point for the analysis runner.""" import os import hailtop.batch as hb from analysis_runner import dataproc service_backend = hb.ServiceBackend( billing_project=os.getenv("HAIL_BILLING_PROJECT"), bucket=os.getenv("HAIL_BUCKET") ) batch = hb.Batch(name="calculate-maf", backend=service_backend) dataproc....
23.583333
86
0.745583
e295296ee0eec5ecdd2d8e4637141b6333619143
322
py
Python
remote_tutor/users/apps.py
wasim2263/remote-tutor
803dbd5b500bf5b82e4888f40463cbd2db1125ac
[ "MIT" ]
null
null
null
remote_tutor/users/apps.py
wasim2263/remote-tutor
803dbd5b500bf5b82e4888f40463cbd2db1125ac
[ "MIT" ]
null
null
null
remote_tutor/users/apps.py
wasim2263/remote-tutor
803dbd5b500bf5b82e4888f40463cbd2db1125ac
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): name = "remote_tutor.users" verbose_name = _("Users") def ready(self): try: import remote_tutor.users.signals # noqa F401 except ImportError: pas...
23
58
0.664596
9d2f56d4c00029c1ed4d8e6f1665488d2f7f7f87
7,864
py
Python
gen2-fire-detection/main.py
Thrada/depthai-experiments
f06312596b47427f9699a300ae8bc143dbbac000
[ "MIT" ]
381
2020-05-31T22:36:51.000Z
2022-03-31T15:39:36.000Z
gen2-fire-detection/main.py
Thrada/depthai-experiments
f06312596b47427f9699a300ae8bc143dbbac000
[ "MIT" ]
211
2020-09-12T20:49:18.000Z
2022-03-31T17:22:52.000Z
gen2-fire-detection/main.py
Thrada/depthai-experiments
f06312596b47427f9699a300ae8bc143dbbac000
[ "MIT" ]
189
2020-06-01T19:09:51.000Z
2022-03-31T15:39:28.000Z
# coding=utf-8 from pathlib import Path import argparse import cv2 import depthai import numpy as np from imutils.video import FPS parser = argparse.ArgumentParser() parser.add_argument( "-nd", "--no-debug", action="store_true", help="prevent debug output" ) parser.add_argument( "-cam", "--camera", a...
28.18638
116
0.569939
6e0dffca045af1c5b37991a610fb4bb2cfc1e39a
1,685
py
Python
cilium/setup.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
cilium/setup.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
cilium/setup.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from codecs import open # To use a consistent encoding from os import path from setuptools import setup HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HER...
30.636364
76
0.679525
f040b8e76a3118ad0bd16e2096c51350b340289f
4,426
py
Python
krb5/src/lib/krb5/krb/t_in_ccache_patypes.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
krb5/src/lib/krb5/krb/t_in_ccache_patypes.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
krb5/src/lib/krb5/krb/t_in_ccache_patypes.py
kenferrara/pbis-open
690c325d947b2bf6fb3032f9d660e41b94aea4be
[ "Apache-2.0" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
#!/usr/bin/python # Copyright (C) 2010,2012 by the Massachusetts Institute of Technology. # All rights reserved. # # Export of this software from the United States of America may # require a specific license from the United States Government. # It is the responsibility of any person or organization contemplating #...
47.591398
79
0.713059
040a91e489582bbdd69c217da3c9aaf0d3b81904
4,485
py
Python
vertex/test/test_sigma.py
twisted/vertex
feb591aa1b9a3b2b8fdcf53e4962dad2a0bc38ca
[ "MIT" ]
56
2015-01-09T03:52:07.000Z
2021-09-26T22:17:06.000Z
vertex/test/test_sigma.py
DalavanCloud/vertex
feb591aa1b9a3b2b8fdcf53e4962dad2a0bc38ca
[ "MIT" ]
34
2015-03-05T02:57:48.000Z
2017-05-23T22:34:13.000Z
vertex/test/test_sigma.py
DalavanCloud/vertex
feb591aa1b9a3b2b8fdcf53e4962dad2a0bc38ca
[ "MIT" ]
17
2015-04-17T02:03:16.000Z
2021-11-12T03:31:07.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from twisted.python.failure import Failure from twisted.python.filepath import FilePath from twisted.internet.error import ConnectionDone from twisted.trial import unittest from vertex.q2q import Q2QAddress from vertex import sigma, conncache f...
31.808511
75
0.613824
dee7ab37320daf84773b768f1d5f72c2ab86a0a8
160
py
Python
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/easyprocess/examples/ver.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
null
null
null
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/easyprocess/examples/ver.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
9
2020-02-03T15:50:10.000Z
2022-03-02T07:11:34.000Z
CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/easyprocess/examples/ver.py
moazzamwaheed2017/carparkapi
e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a
[ "MIT" ]
null
null
null
from easyprocess import EasyProcess import sys python = sys.executable v = EasyProcess([python, '--version']).call().stderr print('your python version:%s' % v)
26.666667
52
0.74375
21d4b2cc64ffede263df2d3651fd044f2cb98cc3
4,787
py
Python
tern/utils/general.py
oc37ejuc/tern
0a18807d1d8089d2a7a73b5a3f83cd90bc4bfda2
[ "BSD-2-Clause" ]
null
null
null
tern/utils/general.py
oc37ejuc/tern
0a18807d1d8089d2a7a73b5a3f83cd90bc4bfda2
[ "BSD-2-Clause" ]
null
null
null
tern/utils/general.py
oc37ejuc/tern
0a18807d1d8089d2a7a73b5a3f83cd90bc4bfda2
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2017-2020 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause import os import random import re import tarfile import subprocess # nosec from contextlib import contextmanager from pathlib import Path from pbr.version import VersionInfo from tern.utils i...
33.475524
77
0.661583
e79e8ce748cec7462ebaaa522d163a16a51dc170
12,469
py
Python
src/sage/combinat/species/product_species.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
5
2015-01-04T07:15:06.000Z
2022-03-04T15:15:18.000Z
src/sage/combinat/species/product_species.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/species/product_species.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
10
2016-09-28T13:12:40.000Z
2022-02-12T09:28:34.000Z
""" Sum species """ #***************************************************************************** # Copyright (C) 2008 Mike Hansen <mhansen@gmail.com>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, # but WITHOUT ANY...
32.899736
105
0.502286
8359c26b36f43239eb6febc38b313dcbd9a20b75
1,523
py
Python
orgparse/tests/data/01_attributes.py
olopost/orgparse
91cdec1edeffc953e28dfae4139a431780f52576
[ "BSD-2-Clause" ]
null
null
null
orgparse/tests/data/01_attributes.py
olopost/orgparse
91cdec1edeffc953e28dfae4139a431780f52576
[ "BSD-2-Clause" ]
null
null
null
orgparse/tests/data/01_attributes.py
olopost/orgparse
91cdec1edeffc953e28dfae4139a431780f52576
[ "BSD-2-Clause" ]
1
2019-03-24T07:09:02.000Z
2019-03-24T07:09:02.000Z
from orgparse.date import ( OrgDate, OrgDateScheduled, OrgDateDeadline, OrgDateClosed, OrgDateClock, ) node1 = dict( heading="A node with a lot of attributes", priority='A', scheduled=OrgDateScheduled((2010, 8, 6)), deadline=OrgDateDeadline((2010, 8, 10)), closed=OrgDateClosed((2010, 8, 8, ...
26.719298
72
0.571241
b954e1b0de676d556ca7c4513232e0f77a89d3c2
7,432
py
Python
sales/models.py
jorgesaw/kmarket_old
4a7ddb22cd96f8c223a21bef9a614a0ac4a08f06
[ "MIT" ]
null
null
null
sales/models.py
jorgesaw/kmarket_old
4a7ddb22cd96f8c223a21bef9a614a0ac4a08f06
[ "MIT" ]
5
2021-03-19T09:28:21.000Z
2022-02-10T12:11:57.000Z
sales/models.py
jorgesaw/kmarket_old
4a7ddb22cd96f8c223a21bef9a614a0ac4a08f06
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import Sum, F, FloatField, Max from django.utils import timezone from django.db.models.signals import post_save, pre_save from django.dispatch import receiver import datetime from decimal import Decimal from customers.models import Customer from products.models impo...
35.056604
172
0.692277
e8af68e81da53d627bc22ba2a2b0fd657f0225d8
9,797
py
Python
Controller/adminManager.py
AleksandarDjurov/MeterReaderWeb-MobileApp
29655fff2a3e7c1961026ec4a3f2205c4e667d8e
[ "MIT" ]
null
null
null
Controller/adminManager.py
AleksandarDjurov/MeterReaderWeb-MobileApp
29655fff2a3e7c1961026ec4a3f2205c4e667d8e
[ "MIT" ]
null
null
null
Controller/adminManager.py
AleksandarDjurov/MeterReaderWeb-MobileApp
29655fff2a3e7c1961026ec4a3f2205c4e667d8e
[ "MIT" ]
null
null
null
from flask_httpauth import HTTPBasicAuth from model import * from sqlalchemy import func, text from flask_sqlalchemy import SQLAlchemy from flask import Flask, abort, request, jsonify, g, url_for, json, session from werkzeug.security import generate_password_hash, check_password_hash from datetime import datetime def...
43.542222
236
0.611514
10e168cbcdd6f01100b9e7e50571e05c0f627bab
1,572
py
Python
speech_synth.py
ramrom/haus
6ad300be0c1dd0818248503ffe70695a878a1ace
[ "MIT" ]
1
2019-11-30T03:45:38.000Z
2019-11-30T03:45:38.000Z
speech_synth.py
ramrom/haus
6ad300be0c1dd0818248503ffe70695a878a1ace
[ "MIT" ]
null
null
null
speech_synth.py
ramrom/haus
6ad300be0c1dd0818248503ffe70695a878a1ace
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import os # ESPEAK CODE #from espeak import espeak #import time from gtts import gTTS import logging import pdb # #espeak.synth('hello world') #time.sleep(2) import pyttsx def pspeak(phrase = 'hello'): engine = pyttsx.init() engine.say(phrase) engine.runAndWait() def gspeak(phrase = 'he...
21.243243
68
0.639949
db1ff6387df1845d9bab030c7d6cb95dfb833083
6,737
py
Python
cannula/datasource/http.py
rmyers/cannula
eb6fd76d2a9daed0df73b0bf389da0182f797972
[ "MIT" ]
9
2015-11-05T08:52:49.000Z
2019-11-18T10:20:58.000Z
cannula/datasource/http.py
rmyers/cannula
eb6fd76d2a9daed0df73b0bf389da0182f797972
[ "MIT" ]
null
null
null
cannula/datasource/http.py
rmyers/cannula
eb6fd76d2a9daed0df73b0bf389da0182f797972
[ "MIT" ]
1
2015-12-22T15:15:08.000Z
2015-12-22T15:15:08.000Z
import asyncio import functools import inspect import logging import os import threading import types import typing from concurrent.futures import ThreadPoolExecutor import requests from ..context import Context LOG = logging.getLogger('cannula.datasource.http') MAX_WORKERS = int(os.getenv('CANNULA_HTTP_MAX_WORKERS'...
30.484163
79
0.619564
06096c589f1791f9389f07b6ecef0f6b88299580
18,620
py
Python
tests/data/expression.py
henrikhorluck/black
5379d4f3f460ec9b7063dd1cc10f437b0edf9ae3
[ "MIT" ]
2
2022-01-13T08:10:07.000Z
2022-01-13T08:35:37.000Z
tests/data/expression.py
marnixah/black-but-usable
83b83d3066d1d857983bfa1a666a409e7255d79d
[ "MIT" ]
12
2022-01-17T16:17:43.000Z
2022-03-28T16:38:39.000Z
tests/data/expression.py
marnixah/black-but-usable
83b83d3066d1d857983bfa1a666a409e7255d79d
[ "MIT" ]
null
null
null
... 'some_string' b'\\xa3' Name None True False 1 1.0 1j True or False True or False or None True and False True and False and None (Name1 and Name2) or Name3 Name1 and Name2 or Name3 Name1 or (Name2 and Name3) Name1 or Name2 and Name3 (Name1 and Name2) or (Name3 and Name4) Name1 and Name2 or Name3 and Name4 Name1 or (...
29.508716
280
0.665199
f636b179e1ccf07a557d2cd33d43faa9dcb4df2f
1,159
py
Python
tests/providers/test_rage4.py
chibiegg/lexicon
6230ea1e567a730243dc77c08ff6c4c16f136157
[ "MIT" ]
null
null
null
tests/providers/test_rage4.py
chibiegg/lexicon
6230ea1e567a730243dc77c08ff6c4c16f136157
[ "MIT" ]
null
null
null
tests/providers/test_rage4.py
chibiegg/lexicon
6230ea1e567a730243dc77c08ff6c4c16f136157
[ "MIT" ]
null
null
null
# Test for one implementation of the interface from lexicon.providers.rage4 import Provider from integration_tests import IntegrationTests from unittest import TestCase import pytest # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interfa...
39.965517
91
0.786022
f62d1170c1342e8c87fe6020560585ff03183a71
3,772
py
Python
ihatexml/parser/parser.py
gsnedders/ihatexml
69d43f921a9595f7913be43d922a7b4ff8fe70c8
[ "MIT" ]
null
null
null
ihatexml/parser/parser.py
gsnedders/ihatexml
69d43f921a9595f7913be43d922a7b4ff8fe70c8
[ "MIT" ]
null
null
null
ihatexml/parser/parser.py
gsnedders/ihatexml
69d43f921a9595f7913be43d922a7b4ff8fe70c8
[ "MIT" ]
null
null
null
import ply.yacc as yacc from . import ast from .lexer import lexer, tokens precedence = ( ('left', 'QUESTION', 'PLUS', 'ASTERISK'), ('left', 'HYPHEN'), ) def p_error(p): if not p: # EOF return while True: tok = p.token() if not tok or tok.type == 'NEWLINE': ...
23.873418
68
0.567603