hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
029bd971467b50c7eb6bed9f96f5aee865257af7
6,358
py
Python
capresize.py
fictorial/pygame-capresize
4084b05c7646be6d45acaedf7b274d9164bea7bf
[ "MIT" ]
3
2017-01-03T09:21:06.000Z
2017-09-17T02:47:56.000Z
capresize.py
fictorial/pygame-capresize
4084b05c7646be6d45acaedf7b274d9164bea7bf
[ "MIT" ]
null
null
null
capresize.py
fictorial/pygame-capresize
4084b05c7646be6d45acaedf7b274d9164bea7bf
[ "MIT" ]
null
null
null
"""This module creates a Pygame surface from a source surface that has "end caps" on its corners. The caps remain unscaled in the destination surface and the rest is scaled/tiled. This was inspired by Android's NinePatch and iOS' resizableImageWithCapInsets """ import pygame AUTHOR = 'Brian Hammond <brian@fictori...
30.714976
79
0.56134
"""This module creates a Pygame surface from a source surface that has "end caps" on its corners. The caps remain unscaled in the destination surface and the rest is scaled/tiled. This was inspired by Android's NinePatch and iOS' resizableImageWithCapInsets """ import pygame AUTHOR = 'Brian Hammond <brian@fictori...
462
0
62
4e046307ff114abcb6a89f63202cc7a58a62ddb1
2,231
py
Python
Exercises/Exercise_Database-and-SQL/script2.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
1
2021-10-16T16:22:14.000Z
2021-10-16T16:22:14.000Z
Exercises/Exercise_Database-and-SQL/script2.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
null
null
null
Exercises/Exercise_Database-and-SQL/script2.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
null
null
null
import psycopg2 #insert("Water Glass", 10, 5) #delete("Wine Glass") #update(12,6,"Water Glass") #print(view()) #create_table() #insert("Orange",10,15) delete("Orange") print(view())
43.745098
207
0.693859
import psycopg2 def create_table(): conn = psycopg2.connect("dbname='database1' user='postgres' password ='naak' host ='localhost' port='5432'") # Create connection to database, if no database then it will be created with this line of code cur = conn.cursor() # Create cursor object cur.execute("CREATE TABL...
1,930
0
115
5da3320712a6045998829ed16068f41ad2ccdd8a
6,391
py
Python
scripts/nuscenes/eval/common/utils.py
mengmengliu1998/qd-3dt
9fcd1c0b165793e259deb46a64fcbbdc33735f2f
[ "BSD-3-Clause" ]
1
2019-11-28T10:39:36.000Z
2019-11-28T10:39:36.000Z
scripts/nuscenes/eval/common/utils.py
mengmengliu1998/qd-3dt
9fcd1c0b165793e259deb46a64fcbbdc33735f2f
[ "BSD-3-Clause" ]
null
null
null
scripts/nuscenes/eval/common/utils.py
mengmengliu1998/qd-3dt
9fcd1c0b165793e259deb46a64fcbbdc33735f2f
[ "BSD-3-Clause" ]
null
null
null
# nuScenes dev-kit. # Code written by Holger Caesar, 2018. from typing import List, Dict, Any import numpy as np from pyquaternion import Quaternion from nuscenes.eval.common.data_classes import EvalBox from nuscenes.utils.data_classes import Box DetectionBox = Any # Workaround as direct imports lead to cyclic dep...
37.594118
117
0.688625
# nuScenes dev-kit. # Code written by Holger Caesar, 2018. from typing import List, Dict, Any import numpy as np from pyquaternion import Quaternion from nuscenes.eval.common.data_classes import EvalBox from nuscenes.utils.data_classes import Box DetectionBox = Any # Workaround as direct imports lead to cyclic dep...
0
0
0
0a483189639b429b0cd7104b8693e926d0cfbfc5
46,506
py
Python
parsetab.py
XgDuan/gem5-nvp-hw
c25d5511aac1816f3b4e31ced71017504c285e78
[ "BSD-3-Clause" ]
null
null
null
parsetab.py
XgDuan/gem5-nvp-hw
c25d5511aac1816f3b4e31ced71017504c285e78
[ "BSD-3-Clause" ]
null
null
null
parsetab.py
XgDuan/gem5-nvp-hw
c25d5511aac1816f3b4e31ced71017504c285e78
[ "BSD-3-Clause" ]
null
null
null
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = 'l\x16\x9efz%\xc1\x8b\xa8O\x02{\x0b\xd1qJ' _lr_action_items = {'PEEK':([179,247,248,253,293,299,321,345,352,355,366,368,369,370,372,375,376,],[242,242,-95,-80,-79,-86,-94,-87,-92,-96,-88,-9...
275.183432
23,804
0.667505
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = 'l\x16\x9efz%\xc1\x8b\xa8O\x02{\x0b\xd1qJ' _lr_action_items = {'PEEK':([179,247,248,253,293,299,321,345,352,355,366,368,369,370,372,375,376,],[242,242,-95,-80,-79,-86,-94,-87,-92,-96,-88,-9...
0
0
0
be98e688f595d130727ae63ee7025e42be5b6796
7,044
py
Python
src/clean.py
JohnlNguyen/Comment2Code
5875d0ce708f8d4965ef39cdae282f3995cdd7c0
[ "MIT" ]
null
null
null
src/clean.py
JohnlNguyen/Comment2Code
5875d0ce708f8d4965ef39cdae282f3995cdd7c0
[ "MIT" ]
null
null
null
src/clean.py
JohnlNguyen/Comment2Code
5875d0ce708f8d4965ef39cdae282f3995cdd7c0
[ "MIT" ]
null
null
null
from pdb import set_trace import json import itertools # import pygments import random import csv # from pygments.token import Comment, Text, Keyword, Name # from bpe import Encoder # from nltk import everygrams, ngrams # from nltk.tokenize import word_tokenize # from lexer import build_lexer if __...
29.974468
116
0.579784
from pdb import set_trace import json import itertools # import pygments import random import csv # from pygments.token import Comment, Text, Keyword, Name # from bpe import Encoder # from nltk import everygrams, ngrams # from nltk.tokenize import word_tokenize # from lexer import build_lexer def remove_blank(code...
6,169
0
368
725d256051bd7ea01ba4437dbc95fe10da88d43d
254
py
Python
dpq_scheduler/models.py
Neamar/django-postgres-queue
70c2033a2c814515e94d56d8c8997aca47ff841a
[ "BSD-2-Clause" ]
93
2017-09-21T05:00:25.000Z
2022-03-11T08:50:46.000Z
dpq_scheduler/models.py
Neamar/django-postgres-queue
70c2033a2c814515e94d56d8c8997aca47ff841a
[ "BSD-2-Clause" ]
13
2017-08-09T01:20:45.000Z
2021-07-16T20:02:08.000Z
dpq_scheduler/models.py
Neamar/django-postgres-queue
70c2033a2c814515e94d56d8c8997aca47ff841a
[ "BSD-2-Clause" ]
9
2018-03-15T11:20:40.000Z
2022-01-19T16:00:00.000Z
from django.db import models
25.4
61
0.708661
from django.db import models class LastScheduledFor(models.Model): task = models.CharField(max_length=255, primary_key=True) execute_at = models.DateTimeField() def __str__(self): return '{}: {}'.format(self.task, self.execute_at)
56
145
23
6235c564de1c5d9eb2e8c3c549bcbcf767da3967
17,199
py
Python
pyawx/models/instances.py
irunasroot/pyawx-client
ad2cdae2997d3026774ed89506c5fc5ac15f0002
[ "Apache-2.0" ]
null
null
null
pyawx/models/instances.py
irunasroot/pyawx-client
ad2cdae2997d3026774ed89506c5fc5ac15f0002
[ "Apache-2.0" ]
null
null
null
pyawx/models/instances.py
irunasroot/pyawx-client
ad2cdae2997d3026774ed89506c5fc5ac15f0002
[ "Apache-2.0" ]
null
null
null
from pyawx.models._mixins import DataModelMixin from pyawx.models.utils import set_changes, types from pyawx.exceptions import ValueReadOnly
31.732472
289
0.639049
from pyawx.models._mixins import DataModelMixin from pyawx.models.utils import set_changes, types from pyawx.exceptions import ValueReadOnly class Instance(DataModelMixin): __endpoint__ = "/api/v2/instances" def __init__(self, **kwargs): """ Instances Attributes: :param c...
1,968
15,042
46
fa54df8ef50460a558172de0f2f2c4bd5f3c25e7
8,100
py
Python
qa/rpc-tests/zmq_test.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
535
2015-09-04T15:10:08.000Z
2022-03-17T20:51:05.000Z
qa/rpc-tests/zmq_test.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
1,269
2016-01-31T20:21:24.000Z
2022-03-16T01:20:08.000Z
qa/rpc-tests/zmq_test.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
295
2015-10-19T16:12:29.000Z
2021-08-02T20:05:17.000Z
#!/usr/bin/env python3 # Copyright (c) 2015 The Bitcoin Core developers # Copyright (c) 2015-2017 The Bitcoin Unlimited developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test ZMQ interface # import time import test_f...
37.850467
245
0.564691
#!/usr/bin/env python3 # Copyright (c) 2015 The Bitcoin Core developers # Copyright (c) 2015-2017 The Bitcoin Unlimited developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test ZMQ interface # import time import test_f...
7,303
173
69
083ca184ae9015b2a796f748eed530d0a8d956fc
1,204
py
Python
purifier_reader/hello.py
gittubbs/giuliot
5053d1355f3db8ce184f0e7a890228f261f3a27e
[ "MIT" ]
null
null
null
purifier_reader/hello.py
gittubbs/giuliot
5053d1355f3db8ce184f0e7a890228f261f3a27e
[ "MIT" ]
null
null
null
purifier_reader/hello.py
gittubbs/giuliot
5053d1355f3db8ce184f0e7a890228f261f3a27e
[ "MIT" ]
null
null
null
#!/usr/bin/env pipenv-shebang import csv import time import yaml import configReader from datetime import datetime from miio import AirPurifierMiot configFile = "config.yaml" ip = configReader.fetchIpAddress(configFile,"airpurifier") token = configReader.fetchToken(configFile,"airpurifier") air = AirPurifierMiot(ip,t...
26.173913
97
0.563123
#!/usr/bin/env pipenv-shebang import csv import time import yaml import configReader from datetime import datetime from miio import AirPurifierMiot configFile = "config.yaml" ip = configReader.fetchIpAddress(configFile,"airpurifier") token = configReader.fetchToken(configFile,"airpurifier") air = AirPurifierMiot(ip,t...
0
0
0
289ddd19b53f8e810f7c2c16c9a4e2eb67fa678d
767
py
Python
devtools/conda-recipe-dev/manage_local_dev_version.py
uibcdf/NetLabTools
a61732c341fbb700dcacf8a66d3776e6dd7e4fa4
[ "MIT" ]
1
2022-02-22T02:19:15.000Z
2022-02-22T02:19:15.000Z
devtools/conda-recipe-dev/manage_local_dev_version.py
uibcdf/NetLabTools
a61732c341fbb700dcacf8a66d3776e6dd7e4fa4
[ "MIT" ]
null
null
null
devtools/conda-recipe-dev/manage_local_dev_version.py
uibcdf/NetLabTools
a61732c341fbb700dcacf8a66d3776e6dd7e4fa4
[ "MIT" ]
null
null
null
import os import sys from numpy.distutils.exec_command import exec_command if '--install' in sys.argv[1:]: print('Building and installing local dev version via conda') installing() elif '--remove' in sys.argv[1:]: print('Removing local dev package') remove() elif '--update' in sys.argv[1:]: print('...
25.566667
71
0.681877
import os import sys from numpy.distutils.exec_command import exec_command def installing(): status, output = exec_command('conda build . --no-anaconda-upload') status, output = exec_command('conda build . --output') status, output = exec_command('conda install --use-local '+output) status, output = e...
336
0
69
c03fa08f9a8575bf60141ba2ce0270b9fa23f1bc
911
py
Python
setup.py
awslabs/aws-sdk-api-changes
a3e6cbad729bb69f9d63373dc52c5e53faa349f2
[ "Apache-2.0" ]
11
2020-04-27T22:53:01.000Z
2021-09-09T16:19:09.000Z
setup.py
awslabs/aws-sdk-api-changes
a3e6cbad729bb69f9d63373dc52c5e53faa349f2
[ "Apache-2.0" ]
4
2020-03-05T17:41:25.000Z
2021-06-02T02:39:34.000Z
setup.py
awslabs/aws-sdk-api-changes
a3e6cbad729bb69f9d63373dc52c5e53faa349f2
[ "Apache-2.0" ]
2
2020-03-12T10:23:51.000Z
2021-01-27T10:56:10.000Z
import os from io import open from setuptools import setup, find_packages setup( name="apichanges", version='0.0.1', description="AWS API Changes", long_description=read('readme.md'), long_description_content_type='text/markdown', license="Apache-2.0", packages=find_packages(), entry_...
22.775
55
0.553238
import os from io import open from setuptools import setup, find_packages def read(fname): return open( os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read() setup( name="apichanges", version='0.0.1', description="AWS API Changes", long_description=read('readme...
101
0
23
bfffe9a27da276a65e6f804ee59cd334d91df562
19,977
py
Python
core/utils.py
Special-K-s-Flightsim-Bots/DCSServerBot
7913a3ce684817d1033b7f45720d815668f71c34
[ "MIT" ]
12
2021-05-05T05:21:57.000Z
2022-03-15T06:07:28.000Z
core/utils.py
Special-K-s-Flightsim-Bots/DCSServerBot
7913a3ce684817d1033b7f45720d815668f71c34
[ "MIT" ]
5
2021-05-04T21:28:12.000Z
2022-01-11T21:29:59.000Z
core/utils.py
Special-K-s-Flightsim-Bots/DCSServerBot
7913a3ce684817d1033b7f45720d815668f71c34
[ "MIT" ]
3
2021-05-15T17:57:23.000Z
2022-02-20T18:40:32.000Z
# utils.py import asyncio import aiohttp import discord import math import os import psutil import re import socket import subprocess import psycopg2 import xmltodict from core import const from datetime import datetime, timedelta from configparser import ConfigParser from contextlib import closing, suppress from disco...
44.892135
330
0.580818
# utils.py import asyncio import aiohttp import discord import math import os import psutil import re import socket import subprocess import psycopg2 import xmltodict from core import const from datetime import datetime, timedelta from configparser import ConfigParser from contextlib import closing, suppress from disco...
18,877
0
437
5f2b905591861c9888da34fd68f816a7a4aefabb
666
py
Python
lab/urls.py
kuipumu/pharma_test_project
52c7604fe0a1e484510a41be9fad3ca39f321c0a
[ "MIT" ]
null
null
null
lab/urls.py
kuipumu/pharma_test_project
52c7604fe0a1e484510a41be9fad3ca39f321c0a
[ "MIT" ]
null
null
null
lab/urls.py
kuipumu/pharma_test_project
52c7604fe0a1e484510a41be9fad3ca39f321c0a
[ "MIT" ]
null
null
null
"""lab app URL configuration""" from django.urls import path from django.utils.translation import gettext_lazy as _ from .views import (SampleCreateView, SampleDeleteView, SampleListView, SampleUpdateView) urlpatterns = [ path( _(''), SampleListView.as_view(), name='sa...
21.483871
71
0.578078
"""lab app URL configuration""" from django.urls import path from django.utils.translation import gettext_lazy as _ from .views import (SampleCreateView, SampleDeleteView, SampleListView, SampleUpdateView) urlpatterns = [ path( _(''), SampleListView.as_view(), name='sa...
0
0
0
b004d79f50725319cce1ec5475065cba56b98f8a
83
py
Python
rmsectkf/core/modules/others/add/add_module.py
MartinR2295/rm-sec-toolkit
c3906dc97a8b778a29421efa982c3ab9d72873ff
[ "Apache-2.0" ]
null
null
null
rmsectkf/core/modules/others/add/add_module.py
MartinR2295/rm-sec-toolkit
c3906dc97a8b778a29421efa982c3ab9d72873ff
[ "Apache-2.0" ]
15
2021-05-07T07:44:48.000Z
2021-05-09T08:59:19.000Z
rmsectkf/core/modules/others/add/add_module.py
MartinR2295/rm-sec-toolkit
c3906dc97a8b778a29421efa982c3ab9d72873ff
[ "Apache-2.0" ]
null
null
null
from ..others_module import OthersModule
13.833333
40
0.783133
from ..others_module import OthersModule class AddModule(OthersModule): pass
0
18
23
a26b8dd049891ebc316fd75851d679a7536ef505
2,614
py
Python
examples/reverse_regex/run.py
PatrikValkovic/grammpy
8308a1fd349bf9ea0d267360cc9a4ab20d1629e8
[ "MIT" ]
1
2021-02-04T12:41:08.000Z
2021-02-04T12:41:08.000Z
examples/reverse_regex/run.py
PatrikValkovic/grammpy
8308a1fd349bf9ea0d267360cc9a4ab20d1629e8
[ "MIT" ]
3
2017-07-08T16:28:52.000Z
2020-04-23T18:06:24.000Z
examples/reverse_regex/run.py
PatrikValkovic/grammpy
8308a1fd349bf9ea0d267360cc9a4ab20d1629e8
[ "MIT" ]
1
2021-02-04T12:41:10.000Z
2021-02-04T12:41:10.000Z
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 19.03.2019 12:21 :Licence MIT Part of grammpy """ from string import ascii_lowercase from grammpy import * from grammpy.transforms import ContextFree, InverseContextFree, InverseCommon from grammpy.parsers import cyk g = Grammar(terminals=list(ascii...
24.429907
113
0.620888
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 19.03.2019 12:21 :Licence MIT Part of grammpy """ from string import ascii_lowercase from grammpy import * from grammpy.transforms import ContextFree, InverseContextFree, InverseCommon from grammpy.parsers import cyk class BaseNonterminal(Nonterminal): @...
640
664
296
49f3c7adc5bd9f88344a480098ff3f9f794adb46
5,625
py
Python
rivalcfg/devices/aerox3_wireless_wired.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
604
2016-03-31T12:22:26.000Z
2022-03-31T18:51:50.000Z
rivalcfg/devices/aerox3_wireless_wired.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
162
2016-04-17T10:58:08.000Z
2022-03-11T18:59:18.000Z
rivalcfg/devices/aerox3_wireless_wired.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
89
2016-04-10T08:56:58.000Z
2022-03-18T21:04:10.000Z
from .. import usbhid _BATTERY_CHARGING_FLAG = 0b10000000 profile = { "name": "SteelSeries Aerox 3 Wireless", "models": [ { "name": "SteelSeries Aerox 3 Wireless (wired mode)", "vendor_id": 0x1038, "product_id": 0x183A, "endpoint": 3, }, ],...
38.793103
188
0.487467
from .. import usbhid _BATTERY_CHARGING_FLAG = 0b10000000 profile = { "name": "SteelSeries Aerox 3 Wireless", "models": [ { "name": "SteelSeries Aerox 3 Wireless (wired mode)", "vendor_id": 0x1038, "product_id": 0x183A, "endpoint": 3, }, ],...
0
0
0
ba1e29dc08a0b2d8d84f5c9d56cbf91a9679293a
2,921
py
Python
wtl/wtlib/tests/models.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
null
null
null
wtl/wtlib/tests/models.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
1
2017-09-19T17:06:49.000Z
2017-09-19T17:06:49.000Z
wtl/wtlib/tests/models.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.test import TestCase from wtl.wtlib.models import Library, LibraryVersion from wtl.wtlib.tests.factories import (LibraryFactory, LibraryVersionFactory, ProjectFactory)
38.434211
79
0.690175
from __future__ import unicode_literals from django.test import TestCase from wtl.wtlib.models import Library, LibraryVersion from wtl.wtlib.tests.factories import (LibraryFactory, LibraryVersionFactory, ProjectFactory) class LibraryTestCase(TestCase): def test_str(self): ...
2,416
40
201
2e4bea81e1ee83caa0412c214e95dd141dc84725
795
py
Python
setup.py
muchrooms/esp8266.py
f1a61ffd65b157b392b7e3fba2394db86167e0f6
[ "MIT" ]
2
2017-06-17T13:57:39.000Z
2018-01-05T12:52:35.000Z
setup.py
muchrooms/esp8266.py
f1a61ffd65b157b392b7e3fba2394db86167e0f6
[ "MIT" ]
null
null
null
setup.py
muchrooms/esp8266.py
f1a61ffd65b157b392b7e3fba2394db86167e0f6
[ "MIT" ]
1
2022-01-16T13:32:11.000Z
2022-01-16T13:32:11.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="esp8266.py", version="0.0.3", author="letli", author_email="letli@74ls74.org", description="ESP8266 python library, a wrapper for AT commands (Hayes command set) using UART serial.", l...
29.444444
107
0.647799
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="esp8266.py", version="0.0.3", author="letli", author_email="letli@74ls74.org", description="ESP8266 python library, a wrapper for AT commands (Hayes command set) using UART serial.", l...
0
0
0
a4230e78f330762f47b06e0b4892c0e8814460aa
443
py
Python
PYTHON-SALA DE AULA/Exercicios condicionais/exercicio-09-2.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
PYTHON-SALA DE AULA/Exercicios condicionais/exercicio-09-2.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
PYTHON-SALA DE AULA/Exercicios condicionais/exercicio-09-2.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
sal = float ( input ('Saldo médio ? ' )) if (sal <= 200) : nsal1= (sal* 0.90) print ('Valor do crédito 10% > R${}'.format(nsal1)) if (300 >= sal > 200) : nsal2 = (sal* 0.80) print ('Valor do crédito 20% > R${}'.format(nsal2)) if ( 400 >= sal > 300) : nsal3= (sal* 0.85) print ('Valor do crédito ...
31.642857
55
0.534989
sal = float ( input ('Saldo médio ? ' )) if (sal <= 200) : nsal1= (sal* 0.90) print ('Valor do crédito 10% > R${}'.format(nsal1)) if (300 >= sal > 200) : nsal2 = (sal* 0.80) print ('Valor do crédito 20% > R${}'.format(nsal2)) if ( 400 >= sal > 300) : nsal3= (sal* 0.85) print ('Valor do crédito ...
0
0
0
283c050fe512d7f3367c0888bdda57bb2a71a4be
3,438
py
Python
extractors/TFIDF.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
8
2020-05-14T19:29:41.000Z
2022-03-09T03:29:51.000Z
extractors/TFIDF.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
null
null
null
extractors/TFIDF.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
null
null
null
import os import numpy as np from sklearn.feature_extraction.text import TfidfTransformer from tqdm import tqdm from utils.file import loadJson, dumpJson ############################################## # 根据序列数据集(ngram,api),先统计元素的样本内频率, # 然后计算各个特征的TF-IDF值 ############################################## if __name__ == ...
31.254545
106
0.575044
import os import numpy as np from sklearn.feature_extraction.text import TfidfTransformer from tqdm import tqdm from utils.file import loadJson, dumpJson ############################################## # 根据序列数据集(ngram,api),先统计元素的样本内频率, # 然后计算各个特征的TF-IDF值 ############################################## def calTFIDF(dat...
3,083
0
22
55fdabe59356478a8bbb3c2ada5b0253a4277315
4,722
py
Python
pijuice/main.py
hferentschik/balena-strand
09a905110d95e8bab2a65cb94e4a3babc6d2a9d3
[ "MIT" ]
null
null
null
pijuice/main.py
hferentschik/balena-strand
09a905110d95e8bab2a65cb94e4a3babc6d2a9d3
[ "MIT" ]
null
null
null
pijuice/main.py
hferentschik/balena-strand
09a905110d95e8bab2a65cb94e4a3babc6d2a9d3
[ "MIT" ]
null
null
null
import datetime import json import os import time import paho.mqtt.client as mqtt from pijuice import PiJuice from balena import Balena from datetime import datetime, timedelta from dateutil.tz import tzutc from time import sleep from w1thermsensor import W1ThermSensor WAKEALARM = '/sys/class/rtc/rtc0/wakealarm' BR...
31.691275
119
0.653748
import datetime import json import os import time import paho.mqtt.client as mqtt from pijuice import PiJuice from balena import Balena from datetime import datetime, timedelta from dateutil.tz import tzutc from time import sleep from w1thermsensor import W1ThermSensor WAKEALARM = '/sys/class/rtc/rtc0/wakealarm' BR...
0
0
0
a89480e4be4df81910a15ef7357fd7cb7699984d
5,629
py
Python
v2ex_spider/rss_spider.py
yingziwu/v2ex_delete
8f1befcd43bd83c9531bf7180e23bbaf8b12b4ed
[ "Apache-2.0" ]
82
2017-05-20T02:31:51.000Z
2021-12-29T08:08:10.000Z
v2ex_spider/rss_spider.py
yingziwu/v2ex_delete
8f1befcd43bd83c9531bf7180e23bbaf8b12b4ed
[ "Apache-2.0" ]
8
2017-06-13T16:07:33.000Z
2018-04-01T07:35:07.000Z
v2ex_spider/rss_spider.py
yingziwu/v2ex_delete
8f1befcd43bd83c9531bf7180e23bbaf8b12b4ed
[ "Apache-2.0" ]
4
2017-06-14T13:25:16.000Z
2020-12-15T09:52:44.000Z
''' Created on May 9, 2017 @author: yingziwu ''' import feedparser import time import re import requests from redis import Redis from rq import Queue import json import os import logging from v2ex_spider import topic_spider from v2ex_base.v2_sql import SQL import settings class Rss_spider(object): ''' A Spi...
34.746914
122
0.570794
''' Created on May 9, 2017 @author: yingziwu ''' import feedparser import time import re import requests from redis import Redis from rq import Queue import json import os import logging from v2ex_spider import topic_spider from v2ex_base.v2_sql import SQL import settings class Rss_spider(object): ''' A Spi...
3,659
15
166
06b5e7449239a7083bbc31f928e2608669ee09f3
84
py
Python
alisu/custom_core/bot_raw_custom_methods_core/__init__.py
sh-himanshu/alisurobot
4d315acaf28156feb79864b56b64636c4217b4d4
[ "MIT" ]
9
2021-08-17T18:30:13.000Z
2021-10-02T09:22:34.000Z
alisu/custom_core/bot_raw_custom_methods_core/__init__.py
sh-himanshu/alisurobot
4d315acaf28156feb79864b56b64636c4217b4d4
[ "MIT" ]
1
2021-12-20T19:48:44.000Z
2021-12-20T19:48:44.000Z
alisu/custom_core/bot_raw_custom_methods_core/__init__.py
aksr-aashish/alisurobot
0b0c05ea74ba6126ca9b328de16c808c72be365d
[ "MIT" ]
8
2021-08-17T21:14:13.000Z
2022-01-29T23:34:14.000Z
from typing import List from . import langs __all__: List[str] = [ "langs", ]
10.5
23
0.642857
from typing import List from . import langs __all__: List[str] = [ "langs", ]
0
0
0
6c8d7db68476f02b98f3c577ee4055d5696455d9
2,657
py
Python
lxmls/sequences/extended_feature.py
khui/lxmls-toolkit
f1a2fb9aa46257b509c79e83182d7d5495061398
[ "MIT" ]
null
null
null
lxmls/sequences/extended_feature.py
khui/lxmls-toolkit
f1a2fb9aa46257b509c79e83182d7d5495061398
[ "MIT" ]
null
null
null
lxmls/sequences/extended_feature.py
khui/lxmls-toolkit
f1a2fb9aa46257b509c79e83182d7d5495061398
[ "MIT" ]
1
2020-01-09T17:02:50.000Z
2020-01-09T17:02:50.000Z
from lxmls.sequences.id_feature import IDFeatures # ---------- # Feature Class # Extracts features from a labeled corpus (only supported features are extracted # ----------
33.632911
80
0.517877
from lxmls.sequences.id_feature import IDFeatures # ---------- # Feature Class # Extracts features from a labeled corpus (only supported features are extracted # ---------- class ExtendedFeatures(IDFeatures): def add_emission_features(self, sequence, pos, y, features): x = sequence.x[pos] # Get t...
2,419
14
49
e6c11cff9e76a688302b2d8a124c1cb1d590607b
13,081
py
Python
ml4a/dataset/dataset_utils.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
1,110
2016-06-02T23:58:41.000Z
2020-11-29T07:24:20.000Z
ml4a/dataset/dataset_utils.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
49
2016-08-14T22:58:41.000Z
2020-07-17T17:59:56.000Z
ml4a/dataset/dataset_utils.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
300
2016-06-13T23:06:55.000Z
2020-11-18T22:42:55.000Z
import os import sys from random import random, sample import argparse from tqdm import tqdm import matplotlib.pyplot as plt import numpy as np from PIL import Image, ImageDraw, ImageFile from imutils import video import cv2 ImageFile.LOAD_TRUNCATED_IMAGES = True allowable_actions = ['none', 'quantize', 'trace', 'hed'...
45.578397
205
0.655684
import os import sys from random import random, sample import argparse from tqdm import tqdm import matplotlib.pyplot as plt import numpy as np from PIL import Image, ImageDraw, ImageFile from imutils import video import cv2 ImageFile.LOAD_TRUNCATED_IMAGES = True allowable_actions = ['none', 'quantize', 'trace', 'hed'...
8,306
0
115
af4b747e08e26a56b9c717b8ed199674ed5f60b8
480
py
Python
python/coursera_python/SEC/sc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/SEC/sc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/SEC/sc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# to decrypt a msg msg = input("Enter the encrypted message :") en_msg = msg.upper() #print(en_msg) key = 1 for i in range(27): str1 = "" #key = 1 for letter in en_msg: l = ord(letter) + key if l > 90: l = l - 90 + 64 str1 = str1 + chr(l) key = key + 1 print(str1) key = 1 '''for i in range(27): str1 =...
12.972973
44
0.5375
# to decrypt a msg msg = input("Enter the encrypted message :") en_msg = msg.upper() #print(en_msg) key = 1 for i in range(27): str1 = "" #key = 1 for letter in en_msg: l = ord(letter) + key if l > 90: l = l - 90 + 64 str1 = str1 + chr(l) key = key + 1 print(str1) key = 1 '''for i in range(27): str1 =...
0
0
0
69a90c7760017acd17017d5d6de993c2c9c75622
181
py
Python
NHentai/entities/links.py
calibear20/NHentai-API
c543f96f4088dd0f25842e9935f2f6c84317dc55
[ "MIT" ]
33
2020-07-12T04:00:05.000Z
2022-03-27T12:50:57.000Z
NHentai/entities/links.py
calibear20/NHentai-API
c543f96f4088dd0f25842e9935f2f6c84317dc55
[ "MIT" ]
16
2020-07-24T14:37:11.000Z
2022-03-06T01:57:02.000Z
NHentai/entities/links.py
calibear20/NHentai-API
c543f96f4088dd0f25842e9935f2f6c84317dc55
[ "MIT" ]
14
2020-07-09T18:42:13.000Z
2022-03-11T13:30:06.000Z
from dataclasses import dataclass from .base_entity import BaseClass @dataclass
18.1
34
0.751381
from dataclasses import dataclass from .base_entity import BaseClass @dataclass class CharacterLink(BaseClass): section: str title: str url: str total_entries: int
0
78
22
cb800acabcc465078e1b3bddd2513be5b3b3a472
22,294
py
Python
code/map_graph_Custom.py
thedrdos/covid-map
745b1ea679da52638abd586e5357aec2cda4cb09
[ "MIT" ]
null
null
null
code/map_graph_Custom.py
thedrdos/covid-map
745b1ea679da52638abd586e5357aec2cda4cb09
[ "MIT" ]
null
null
null
code/map_graph_Custom.py
thedrdos/covid-map
745b1ea679da52638abd586e5357aec2cda4cb09
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created Jul 2020 @author: TheDrDOS """ # # Clear the Spyder console and variables # try: # from IPython import get_ipython # get_ipython().magic('clear') # get_ipython().magic('reset -f') # except: # pass from bokeh.io import show, save, output_file ...
37.280936
825
0.661344
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created Jul 2020 @author: TheDrDOS """ # # Clear the Spyder console and variables # try: # from IPython import get_ipython # get_ipython().magic('clear') # get_ipython().magic('reset -f') # except: # pass from bokeh.io import show, save, output_file ...
382
0
46
fceabbb74d3274f16916b7935a7ec5684e3f5c21
193
py
Python
blog/urls.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
blog/urls.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
blog/urls.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'blog' urlpatterns=[ url(r'^$',views.index,name='index'), url(r'^post/(?P<pk>[0-9]+)/$',views.detail,name='detail'), ]
19.3
62
0.632124
from django.conf.urls import url from . import views app_name = 'blog' urlpatterns=[ url(r'^$',views.index,name='index'), url(r'^post/(?P<pk>[0-9]+)/$',views.detail,name='detail'), ]
0
0
0
275a93d01f327c22e46db6bb02fd9ad490838980
1,033
py
Python
reversi/strategies/coordinator/selector.py
y-tetsu/othello
73eabfe22d6b44bbfa0b436e6287e3e7356620f4
[ "MIT" ]
10
2020-07-24T22:04:51.000Z
2022-03-25T06:09:48.000Z
reversi/strategies/coordinator/selector.py
y-tetsu/othello
73eabfe22d6b44bbfa0b436e6287e3e7356620f4
[ "MIT" ]
12
2021-04-30T09:53:18.000Z
2022-02-25T04:16:02.000Z
reversi/strategies/coordinator/selector.py
y-tetsu/othello
73eabfe22d6b44bbfa0b436e6287e3e7356620f4
[ "MIT" ]
1
2021-11-25T13:12:32.000Z
2021-11-25T13:12:32.000Z
"""Selector """ from reversi.strategies.common import AbstractSelector class Selector(AbstractSelector): """Selector """ def select_moves(self, color, board, moves, scores, depth): """select_moves """ return moves class Selector_W(Selector): """Selector_W ワースト値に基...
25.825
86
0.592449
"""Selector """ from reversi.strategies.common import AbstractSelector class Selector(AbstractSelector): """Selector """ def select_moves(self, color, board, moves, scores, depth): """select_moves """ return moves class Selector_W(Selector): """Selector_W ワースト値に基...
70
0
26
de65064f55beb0b25a599d489a5b2d753e5481b3
3,105
py
Python
turnovertools/video/output.py
morganwl/turnovertools
ea911853033ed5087b40852b5adc3b8f5d0a903d
[ "MIT" ]
null
null
null
turnovertools/video/output.py
morganwl/turnovertools
ea911853033ed5087b40852b5adc3b8f5d0a903d
[ "MIT" ]
3
2021-03-22T00:44:24.000Z
2021-06-26T19:32:31.000Z
turnovertools/video/output.py
morganwl/turnovertools
ea911853033ed5087b40852b5adc3b8f5d0a903d
[ "MIT" ]
null
null
null
"""Video output tools for turnovertools.""" import ffmpeg from timecode import Timecode class VideoFile(object): """A videofile which can either be imported or exported from."""
34.5
74
0.589372
"""Video output tools for turnovertools.""" import ffmpeg from timecode import Timecode class VideoFile(object): """A videofile which can either be imported or exported from.""" def __init__(self, filepath, **kwargs): self.filepath = filepath self._probe() def _probe(self): probe ...
2,485
155
280
de9ec2fa7a690686c868ff79459cba2ad12aba35
325
py
Python
app/stops/migrations/0005_auto_20190622_2032.py
IvanBodnar/subway-api
36d17533995394fc5a5e6e1707ef312778296869
[ "MIT" ]
null
null
null
app/stops/migrations/0005_auto_20190622_2032.py
IvanBodnar/subway-api
36d17533995394fc5a5e6e1707ef312778296869
[ "MIT" ]
9
2019-12-04T23:23:07.000Z
2022-02-10T08:12:30.000Z
app/stops/migrations/0005_auto_20190622_2032.py
IvanBodnar/subway-api
36d17533995394fc5a5e6e1707ef312778296869
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-22 20:32 from django.db import migrations
18.055556
47
0.587692
# Generated by Django 2.2.2 on 2019-06-22 20:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stops', '0004_auto_20190622_1914'), ] operations = [ migrations.RenameModel( old_name='Stops', new_name='Stop', ), ...
0
219
23
6d211e6dff89896320320bc5f8bea4a1d0f85732
544
py
Python
webapp/news/views.py
Varlok009/tabletop-games-bboard
41037d4c1bcbbf563051979b630e104006254c4f
[ "MIT" ]
null
null
null
webapp/news/views.py
Varlok009/tabletop-games-bboard
41037d4c1bcbbf563051979b630e104006254c4f
[ "MIT" ]
1
2022-03-20T07:47:04.000Z
2022-03-20T07:47:04.000Z
webapp/news/views.py
Varlok009/tabletop-games-bboard
41037d4c1bcbbf563051979b630e104006254c4f
[ "MIT" ]
1
2022-03-01T18:09:26.000Z
2022-03-01T18:09:26.000Z
from flask import Blueprint, render_template, request from webapp.methods import get_news blueprint = Blueprint('news', __name__, url_prefix='/news') @blueprint.route('/news', methods=['GET']) @blueprint.route('/news/<int:id>', methods=['GET'])
32
78
0.674632
from flask import Blueprint, render_template, request from webapp.methods import get_news blueprint = Blueprint('news', __name__, url_prefix='/news') @blueprint.route('/news', methods=['GET']) @blueprint.route('/news/<int:id>', methods=['GET']) def news(): news_id = request.args['id'] news_data = list(filter...
281
0
22
1c2aebb86482ed8ba85003c7cb15999950ea331e
5,125
py
Python
ape_trezor/client.py
unparalleled-js/ape-trezor
61cf94e3d49089a3c9f753ce18bc9b7323e82e6a
[ "Apache-2.0" ]
null
null
null
ape_trezor/client.py
unparalleled-js/ape-trezor
61cf94e3d49089a3c9f753ce18bc9b7323e82e6a
[ "Apache-2.0" ]
null
null
null
ape_trezor/client.py
unparalleled-js/ape-trezor
61cf94e3d49089a3c9f753ce18bc9b7323e82e6a
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Tuple from eth_typing.evm import ChecksumAddress from trezorlib import ethereum # type: ignore from trezorlib.client import get_default_client # type: ignore from trezorlib.exceptions import PinException, TrezorFailure # type: ignore from trezorlib.messages import TransactionType # ty...
34.166667
96
0.636098
from typing import Any, Dict, Tuple from eth_typing.evm import ChecksumAddress from trezorlib import ethereum # type: ignore from trezorlib.client import get_default_client # type: ignore from trezorlib.exceptions import PinException, TrezorFailure # type: ignore from trezorlib.messages import TransactionType # ty...
2,503
0
161
64939646e87c224c58ffcfd8cf705c67c41ee7e3
16,321
py
Python
cornflow-server/cornflow/tests/integration/test_cornflowclient.py
baobabsoluciones/cornflow
bd7cae22107e5fe148704d5f41d4f58f9c410b40
[ "Apache-2.0" ]
1
2022-03-30T16:44:50.000Z
2022-03-30T16:44:50.000Z
cornflow-server/cornflow/tests/integration/test_cornflowclient.py
baobabsoluciones/cornflow
bd7cae22107e5fe148704d5f41d4f58f9c410b40
[ "Apache-2.0" ]
2
2022-03-31T08:42:10.000Z
2022-03-31T12:05:23.000Z
cornflow-server/cornflow/tests/integration/test_cornflowclient.py
baobabsoluciones/cornflow
bd7cae22107e5fe148704d5f41d4f58f9c410b40
[ "Apache-2.0" ]
null
null
null
""" """ # Full imports import json import pulp import logging as log import time # Imports from environment from cornflow_client import CornFlowApiError from cornflow_client.constants import INSTANCE_SCHEMA, SOLUTION_SCHEMA # Import internal modules from cornflow.app import create_app from cornflow.shared.const impo...
40.298765
85
0.658477
""" """ # Full imports import json import pulp import logging as log import time # Imports from environment from cornflow_client import CornFlowApiError from cornflow_client.constants import INSTANCE_SCHEMA, SOLUTION_SCHEMA # Import internal modules from cornflow.app import create_app from cornflow.shared.const impo...
14,040
132
1,084
c99d93e1bf1ed54873350ee1c6e4595ebffd5172
594
py
Python
code/lufangxiao/contrastive_methods/DiResNet_model/__init__.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
1
2021-12-20T07:20:25.000Z
2021-12-20T07:20:25.000Z
code/lufangxiao/contrastive_methods/DiResNet_model/__init__.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
null
null
null
code/lufangxiao/contrastive_methods/DiResNet_model/__init__.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
null
null
null
from torchvision.models import resnet from .DirectionNet import DirectionNet from .DiResNet import FCN_Ref import torch import torch.nn as nn
42.428571
110
0.80303
from torchvision.models import resnet from .DirectionNet import DirectionNet from .DiResNet import FCN_Ref import torch import torch.nn as nn def build_model(in_channels=3, num_classes=1, pretrained=True): return FCN_Ref(in_channels=in_channels, num_classes=num_classes, pretrained=pretrained) def build_aux_part(i...
407
0
46
22a8a0d2c8c3c3243f0a109f3a38561aaac804cd
1,581
py
Python
scrapers/fanfictionnet.py
Jemeni11/Fic-Retriever
9f0d94e5b266a9c2469512bbb46c7099f61796f5
[ "MIT" ]
null
null
null
scrapers/fanfictionnet.py
Jemeni11/Fic-Retriever
9f0d94e5b266a9c2469512bbb46c7099f61796f5
[ "MIT" ]
null
null
null
scrapers/fanfictionnet.py
Jemeni11/Fic-Retriever
9f0d94e5b266a9c2469512bbb46c7099f61796f5
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup
25.918033
93
0.651486
import requests from bs4 import BeautifulSoup def fanfictiondotnet(url: str): try: headers = { 'User-Agent': 'fichub-client/0.0.1 +@Jemeni11/Summarium/1.0.0', } payload = {'q': url} response = requests.get(f'https://fichub.net/api/v0/epub', headers=headers, params=payload) FICTION_DATA = response.json(...
1,511
0
23
32c510321206b11b0e0f4d12dc5852d212e9a734
4,668
py
Python
pysnmp/INTEL-IP-MULTICAST-ROUTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/INTEL-IP-MULTICAST-ROUTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/INTEL-IP-MULTICAST-ROUTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module INTEL-IP-MULTICAST-ROUTER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/INTEL-IP-MULTICAST-ROUTER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:43:05 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python ve...
116.7
496
0.76928
# # PySNMP MIB module INTEL-IP-MULTICAST-ROUTER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/INTEL-IP-MULTICAST-ROUTER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:43:05 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python ve...
0
0
0
adc2c97cbe4ef08ab5968eeb58293ab3cbed3fc5
1,836
py
Python
python/day04a.py
hurryabit/adventofcode-2021
3f9949895fc5541eb050b427f1432a6c91b6297e
[ "Unlicense" ]
null
null
null
python/day04a.py
hurryabit/adventofcode-2021
3f9949895fc5541eb050b427f1432a6c91b6297e
[ "Unlicense" ]
null
null
null
python/day04a.py
hurryabit/adventofcode-2021
3f9949895fc5541eb050b427f1432a6c91b6297e
[ "Unlicense" ]
null
null
null
import io from collections.abc import Iterable from typing import Optional EXAMPLE = """7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1 22 13 17 11 0 8 2 23 4 24 21 9 14 16 7 6 10 3 18 5 1 12 20 15 19 3 15 0 2 22 9 18 13 17 5 19 8 7 25 23 20 11 10 24 4 14 21 16 12 6 14 21 1...
23.240506
83
0.601307
import io from collections.abc import Iterable from typing import Optional EXAMPLE = """7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1 22 13 17 11 0 8 2 23 4 24 21 9 14 16 7 6 10 3 18 5 1 12 20 15 19 3 15 0 2 22 9 18 13 17 5 19 8 7 25 23 20 11 10 24 4 14 21 16 12 6 14 21 1...
1,204
0
115
d8adf4335ffbc8c602a605d3ce3a80a4d9fb7c26
1,854
py
Python
src/main/python/validate_endpoint/source.py
cwilloughby-bw/vra-ipam-racktables
f21654030dd51e4f007fef762c0156a53e568715
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/main/python/validate_endpoint/source.py
cwilloughby-bw/vra-ipam-racktables
f21654030dd51e4f007fef762c0156a53e568715
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/main/python/validate_endpoint/source.py
cwilloughby-bw/vra-ipam-racktables
f21654030dd51e4f007fef762c0156a53e568715
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 VMware, Inc. This product is licensed to you under the Apache License, Version 2.0 (the "License"). You may not use this product except in compliance with the License. This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomp...
31.423729
100
0.705502
""" Copyright (c) 2020 VMware, Inc. This product is licensed to you under the Apache License, Version 2.0 (the "License"). You may not use this product except in compliance with the License. This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomp...
1,013
0
45
321e7306b1a7d4ad384977ababad304302502533
325
py
Python
app/finance/filters.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
null
null
null
app/finance/filters.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
19
2018-12-10T20:06:21.000Z
2021-06-10T21:03:31.000Z
app/finance/filters.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
null
null
null
import django_filters from rest_framework import filters from app.finance.models import Transaction
27.083333
87
0.756923
import django_filters from rest_framework import filters from app.finance.models import Transaction class TransactionFilter(filters.SearchFilter): created_at_gte = django_filters.DateTimeFilter(name="timestamp", lookup_expr='gte') class Meta: model = Transaction fields = ['tag', 'created_at_...
0
201
23
95553f90167c4cf047272b85e24f8a3ed2b62aaa
51
py
Python
SPI/__init__.py
philwil/RPi.GPIO-PineA64
dd22ca81bd979c31e749e017962cfefd4d0e6ac4
[ "MIT" ]
58
2016-04-22T08:13:43.000Z
2021-12-31T05:27:10.000Z
SPI/__init__.py
philwil/RPi.GPIO-PineA64
dd22ca81bd979c31e749e017962cfefd4d0e6ac4
[ "MIT" ]
10
2016-05-11T11:05:30.000Z
2021-08-01T12:02:17.000Z
SPI/__init__.py
philwil/RPi.GPIO-PineA64
dd22ca81bd979c31e749e017962cfefd4d0e6ac4
[ "MIT" ]
21
2016-04-25T05:12:42.000Z
2021-11-14T09:04:11.000Z
""" """ from RPi._SPI import * VERSION = '0.6.2'
7.285714
22
0.529412
""" """ from RPi._SPI import * VERSION = '0.6.2'
0
0
0
016df91327f59076e2e78c06ca95927a4d3fd79a
27,756
py
Python
molo/forms/tests/test_rules.py
praekeltfoundation/molo.forms
746abf9d48e6adc73f9544f7211328cfcfef0410
[ "BSD-3-Clause" ]
null
null
null
molo/forms/tests/test_rules.py
praekeltfoundation/molo.forms
746abf9d48e6adc73f9544f7211328cfcfef0410
[ "BSD-3-Clause" ]
4
2019-10-28T13:09:47.000Z
2020-12-22T12:32:49.000Z
molo/forms/tests/test_rules.py
praekeltfoundation/molo.forms
746abf9d48e6adc73f9544f7211328cfcfef0410
[ "BSD-3-Clause" ]
1
2019-08-19T12:09:18.000Z
2019-08-19T12:09:18.000Z
import datetime import json import pytest from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from django.contrib.sessions.middleware import SessionMiddleware from django.core.exceptions import ValidationError from django.test import TestCase, RequestFactory from django....
38.178817
79
0.675169
import datetime import json import pytest from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from django.contrib.sessions.middleware import SessionMiddleware from django.core.exceptions import ValidationError from django.test import TestCase, RequestFactory from django....
24,526
177
2,139
8ff67be84d9fcd15146add087969fc8f612e50cc
21,656
py
Python
qtoolkit/data_structures/quantum_circuit/quantum_circuit.py
nelimee/qtoolkit
1e99bd7d3a143a327c3bb92595ea88ec12dbdb89
[ "CECILL-B" ]
3
2018-12-30T04:50:44.000Z
2019-12-25T12:26:02.000Z
qtoolkit/data_structures/quantum_circuit/quantum_circuit.py
nelimee/qtoolkit
1e99bd7d3a143a327c3bb92595ea88ec12dbdb89
[ "CECILL-B" ]
null
null
null
qtoolkit/data_structures/quantum_circuit/quantum_circuit.py
nelimee/qtoolkit
1e99bd7d3a143a327c3bb92595ea88ec12dbdb89
[ "CECILL-B" ]
1
2021-08-08T15:59:46.000Z
2021-08-08T15:59:46.000Z
# ====================================================================== # Copyright CERFACS (October 2018) # Contributor: Adrien Suau (adrien.suau@cerfacs.fr) # # This software is governed by the CeCILL-B license under French law and # abiding by the rules of distribution of free software. You can use, # modify an...
40.478505
88
0.626478
# ====================================================================== # Copyright CERFACS (October 2018) # Contributor: Adrien Suau (adrien.suau@cerfacs.fr) # # This software is governed by the CeCILL-B license under French law and # abiding by the rules of distribution of free software. You can use, # modify an...
0
19,348
46
343ff326a8f186dde320d062ee1820bd51033851
1,784
py
Python
ImageToCode.py
SL-RU/sfam_generator
eed23f8c6322a5dfe328851c85d24cb20f344613
[ "MIT" ]
10
2017-03-15T16:48:19.000Z
2021-12-07T06:55:18.000Z
ImageToCode.py
SL-RU/sfam_generator
eed23f8c6322a5dfe328851c85d24cb20f344613
[ "MIT" ]
null
null
null
ImageToCode.py
SL-RU/sfam_generator
eed23f8c6322a5dfe328851c85d24cb20f344613
[ "MIT" ]
5
2018-01-19T17:28:32.000Z
2021-12-26T09:01:37.000Z
import PIL from PIL import Image, ImageFont, ImageDraw import math, sys #This script converts 1bit image to special byte file and code for using in your projects. png = "pinkie_pie_by_cellularsp-d4j7sj2.gif" #Image file out_f = png[:-4] + ".img" print(out_f) max_ll = 8 im = Image.open(png) if im.width > 255 or im...
21.756098
243
0.57287
import PIL from PIL import Image, ImageFont, ImageDraw import math, sys #This script converts 1bit image to special byte file and code for using in your projects. png = "pinkie_pie_by_cellularsp-d4j7sj2.gif" #Image file out_f = png[:-4] + ".img" print(out_f) max_ll = 8 im = Image.open(png) if im.width > 255 or im...
580
0
23
5b492c1bb5a26e044019d775af24ca4dc00c554b
688
py
Python
realtoxicityprompts/scripts/helper_dataparallel_merge_generations.py
ml-research/MoRT_NMI
98dc14f42714b1b794d685507c01b593cde5638c
[ "MIT" ]
4
2021-04-04T13:42:34.000Z
2021-11-29T15:38:50.000Z
realtoxicityprompts/scripts/helper_dataparallel_merge_generations.py
ml-research/MoRT_NMI
98dc14f42714b1b794d685507c01b593cde5638c
[ "MIT" ]
null
null
null
realtoxicityprompts/scripts/helper_dataparallel_merge_generations.py
ml-research/MoRT_NMI
98dc14f42714b1b794d685507c01b593cde5638c
[ "MIT" ]
null
null
null
base_dir = './resultsMCM/prompted/gpt2mcm-k50-keepmin5-t00' base_path = base_dir+'/{}-{}/generations.jsonl' outfile = base_dir+'/all/generations.jsonl' batch_size = 4000 filenames = [(i*batch_size, i*batch_size+batch_size) for i in range(25)] print(filenames) cnt = 0 with open(outfile, 'w') as outfile: for i, fna...
31.272727
72
0.614826
base_dir = './resultsMCM/prompted/gpt2mcm-k50-keepmin5-t00' base_path = base_dir+'/{}-{}/generations.jsonl' outfile = base_dir+'/all/generations.jsonl' batch_size = 4000 filenames = [(i*batch_size, i*batch_size+batch_size) for i in range(25)] print(filenames) cnt = 0 with open(outfile, 'w') as outfile: for i, fna...
0
0
0
495408fc1dc0cfbec8a05472b485424bce359f08
1,064
py
Python
dexp/processing/color/cairo_utils.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
16
2021-04-21T14:09:19.000Z
2022-03-22T02:30:59.000Z
dexp/processing/color/cairo_utils.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
28
2021-04-15T17:43:08.000Z
2022-03-29T16:08:35.000Z
dexp/processing/color/cairo_utils.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
3
2022-02-08T17:41:30.000Z
2022-03-18T15:32:27.000Z
import numpy from dexp.utils.backends import Backend def get_array_for_cairo_surface(surface: "ImageSurface"): # noqa: F821 """ Returns an array given a ImageSurface from PyCairo. Parameters ---------- surface : surface Returns ------- RGBA numpy array of shape: (...,4) """ ...
23.644444
90
0.678571
import numpy from dexp.utils.backends import Backend def get_array_for_cairo_surface(surface: "ImageSurface"): # noqa: F821 """ Returns an array given a ImageSurface from PyCairo. Parameters ---------- surface : surface Returns ------- RGBA numpy array of shape: (...,4) """ ...
0
0
0
45c2e6179e1f48ab5b034e304716466d80f630a3
3,979
py
Python
scripts/animateGridData.py
sayanadhikari207/picsp
dc6315a11b4dd3d567f2d51673807e82e5378921
[ "MIT" ]
3
2021-02-22T13:23:08.000Z
2021-05-27T21:08:32.000Z
scripts/animateGridData.py
sayanadhikari207/picsp
dc6315a11b4dd3d567f2d51673807e82e5378921
[ "MIT" ]
8
2021-03-23T15:47:15.000Z
2021-04-05T12:55:54.000Z
scripts/animateGridData.py
sayanadhikari207/picsp
dc6315a11b4dd3d567f2d51673807e82e5378921
[ "MIT" ]
1
2021-02-22T13:36:53.000Z
2021-02-22T13:36:53.000Z
#!/usr/bin/env python3 import numpy as np import h5py import matplotlib as mp import matplotlib.pyplot as plt import matplotlib.animation as animation from mpl_toolkits import mplot3d from mpl_toolkits.axes_grid1 import make_axes_locatable import argparse import os # import plotly.graph_objects as go #========= Config...
32.08871
98
0.620508
#!/usr/bin/env python3 import numpy as np import h5py import matplotlib as mp import matplotlib.pyplot as plt import matplotlib.animation as animation from mpl_toolkits import mplot3d from mpl_toolkits.axes_grid1 import make_axes_locatable import argparse import os # import plotly.graph_objects as go #========= Config...
764
0
26
2a4d363b4d24f4f58e77f8bb01b4f21712e7dc72
2,547
py
Python
aloe/aloe/common/synthetic/dataset.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
aloe/aloe/common/synthetic/dataset.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
aloe/aloe/common/synthetic/dataset.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
35.873239
91
0.619552
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
1,638
18
180
8f619ef687d1f9623aae26c5a9fd22fb12fed77a
4,422
py
Python
ngram.py
PdePinguino/n-grams
73a199fce2eeb3fa75c0df863ca430e5a5f9be0f
[ "MIT" ]
null
null
null
ngram.py
PdePinguino/n-grams
73a199fce2eeb3fa75c0df863ca430e5a5f9be0f
[ "MIT" ]
null
null
null
ngram.py
PdePinguino/n-grams
73a199fce2eeb3fa75c0df863ca430e5a5f9be0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ This files has the NGram class. """ import pickle from os.path import join import numpy as np import re from tqdm import tqdm if __name__ == '__main__': with open(join('corpus', 'poems.pkl'), 'rb') as handle: poems = pickle.load(handle) unigram = NGram(poems, n=1) #b...
30.287671
92
0.568521
#!/usr/bin/env python3 """ This files has the NGram class. """ import pickle from os.path import join import numpy as np import re from tqdm import tqdm class NGram(): def __init__(self, poems, n, reduced=False): self.n = n self.poems = poems self.tagged_lines = self.append_tag(self.get_...
3,588
-7
319
fbeaacdbc188f5a72bb2f95b5542a2c449342e0c
19,674
py
Python
scripts/generate_scripts.py
brunocampos01/automated-business-intelligence-at-azure
82b8ab1ea0311166d12216effc15ac5e68c47b61
[ "MIT" ]
6
2020-02-08T03:19:55.000Z
2021-09-06T00:33:16.000Z
scripts/generate_scripts.py
brunocampos01/automated-business-intelligence-at-azure
82b8ab1ea0311166d12216effc15ac5e68c47b61
[ "MIT" ]
null
null
null
scripts/generate_scripts.py
brunocampos01/automated-business-intelligence-at-azure
82b8ab1ea0311166d12216effc15ac5e68c47b61
[ "MIT" ]
2
2020-11-13T15:26:26.000Z
2021-09-15T12:43:19.000Z
""" Generate each script with customs variables by client """ import os import glob import json import argparse from pathlib import Path # paths path_cloud = str(Path(__file__).absolute().parent.parent) # path: scripts powershell path_ori_runbooks = '/scripts/runbooks/' path_dest_runbooks = '/azure_automatiom_account...
51.101299
153
0.563434
""" Generate each script with customs variables by client """ import os import glob import json import argparse from pathlib import Path # paths path_cloud = str(Path(__file__).absolute().parent.parent) # path: scripts powershell path_ori_runbooks = '/scripts/runbooks/' path_dest_runbooks = '/azure_automatiom_account...
11,540
0
69
2a58c937eec087d137336e8b5e8a4b7a3ba35530
1,228
py
Python
kitt/image/segmentation/dataloading.py
vojtechcima/kitt
c499523be6ad5db2ed6a214ca217597dc16282a4
[ "MIT" ]
null
null
null
kitt/image/segmentation/dataloading.py
vojtechcima/kitt
c499523be6ad5db2ed6a214ca217597dc16282a4
[ "MIT" ]
null
null
null
kitt/image/segmentation/dataloading.py
vojtechcima/kitt
c499523be6ad5db2ed6a214ca217597dc16282a4
[ "MIT" ]
null
null
null
from tensorflow.keras.preprocessing.image import ImageDataGenerator from ...dataloading import SequenceWrapper
33.189189
87
0.694625
from tensorflow.keras.preprocessing.image import ImageDataGenerator from ...dataloading import SequenceWrapper class SegmentationAugmentingSequence(SequenceWrapper): def __init__(self, sequence, augmentation_args, seed=None): """ Sequence that wraps another sequence and augments both inputs and l...
420
672
23
fb87826767923a06891871f7e6d5e30765f0233b
1,852
py
Python
ftarc/task/fastqc.py
dceoy/ftarc
d9ce11902a7ce3ad3e47d717f863dcf03ea73ed3
[ "MIT" ]
null
null
null
ftarc/task/fastqc.py
dceoy/ftarc
d9ce11902a7ce3ad3e47d717f863dcf03ea73ed3
[ "MIT" ]
null
null
null
ftarc/task/fastqc.py
dceoy/ftarc
d9ce11902a7ce3ad3e47d717f863dcf03ea73ed3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re from pathlib import Path import luigi from .core import FtarcTask if __name__ == '__main__': luigi.run()
30.866667
78
0.563715
#!/usr/bin/env python import re from pathlib import Path import luigi from .core import FtarcTask class CollectFqMetricsWithFastqc(FtarcTask): fq_paths = luigi.ListParameter() dest_dir_path = luigi.Parameter(default='.') fastqc = luigi.Parameter(default='fastqc') n_cpu = luigi.IntParameter(default=...
1,282
400
23
f067f89023af4ada7a41c3edf295ca19e2dffe30
2,135
py
Python
flask/ajax-setinterval-get-thread-result/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
flask/ajax-setinterval-get-thread-result/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
flask/ajax-setinterval-get-thread-result/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python3 # date: 2020.01.17 # https://stackoverflow.com/questions/59780007/ajax-with-flask-for-real-time-esque-updates-of-sensor-data-on-webpage/ from flask import Flask, request, render_template_string, jsonify import datetime import time import threading app = Flask(__name__) running = False # to co...
25.416667
117
0.513817
#!/usr/bin/env python3 # date: 2020.01.17 # https://stackoverflow.com/questions/59780007/ajax-with-flask-for-real-time-esque-updates-of-sensor-data-on-webpage/ from flask import Flask, request, render_template_string, jsonify import datetime import time import threading app = Flask(__name__) running = False # to co...
1,587
0
67
173e22545eafe25afdd8caf76400a2e631dc90af
884
py
Python
opportune/tests/test_account_model.py
Mildly-Sketchy/Mildly-Sketchy
d215d5c478bfbdac0056ed0144edfe8c9efa557f
[ "MIT" ]
null
null
null
opportune/tests/test_account_model.py
Mildly-Sketchy/Mildly-Sketchy
d215d5c478bfbdac0056ed0144edfe8c9efa557f
[ "MIT" ]
2
2019-12-26T16:41:26.000Z
2020-01-06T18:52:13.000Z
opportune/tests/test_account_model.py
Mildly-Sketchy/Mildly-Sketchy
d215d5c478bfbdac0056ed0144edfe8c9efa557f
[ "MIT" ]
1
2018-06-13T18:16:45.000Z
2018-06-13T18:16:45.000Z
def test_constructed_account_added_to_database(db_session): """Test adding a complete stock entry.""" from ..models import Account assert len(db_session.query(Account).all()) == 0 account = Account( username='TEST', password='1234', email='some@email.com', ) db_session.a...
29.466667
62
0.668552
def test_constructed_account_added_to_database(db_session): """Test adding a complete stock entry.""" from ..models import Account assert len(db_session.query(Account).all()) == 0 account = Account( username='TEST', password='1234', email='some@email.com', ) db_session.a...
0
0
0
7be240fbdc21ca63847b43f7fdcf1774a5755f88
282
py
Python
zillowdb/packages/pathlib_mate/__init__.py
MacHu-GWU/zillowdb-project
020266257311fa667a3b5fcca15450eb00584aaf
[ "MIT" ]
null
null
null
zillowdb/packages/pathlib_mate/__init__.py
MacHu-GWU/zillowdb-project
020266257311fa667a3b5fcca15450eb00584aaf
[ "MIT" ]
null
null
null
zillowdb/packages/pathlib_mate/__init__.py
MacHu-GWU/zillowdb-project
020266257311fa667a3b5fcca15450eb00584aaf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ pathlib_mate provide extensive methods, attributes for pathlib. """ __version__ = "0.0.6" __short_description__ = "An extended and more powerful pathlib." __license__ = "MIT" __author__ = "Sanhe Hu" from .pathlib import Path
20.142857
64
0.705674
#!/usr/bin/env python # -*- coding: utf-8 -*- """ pathlib_mate provide extensive methods, attributes for pathlib. """ __version__ = "0.0.6" __short_description__ = "An extended and more powerful pathlib." __license__ = "MIT" __author__ = "Sanhe Hu" from .pathlib import Path
0
0
0
33de6ce4592643dd5c627b7e893f88550ab7fb4f
3,476
py
Python
baseseven.py
FykAikawa/Anchor-based-SR-pytorch
60ec9b49efd23cf59a385268f4d10a98e5a73965
[ "MIT" ]
3
2021-07-18T17:28:44.000Z
2022-02-28T03:08:13.000Z
baseseven.py
FykAikawa/Anchor-based-SR-pytorch
60ec9b49efd23cf59a385268f4d10a98e5a73965
[ "MIT" ]
null
null
null
baseseven.py
FykAikawa/Anchor-based-SR-pytorch
60ec9b49efd23cf59a385268f4d10a98e5a73965
[ "MIT" ]
null
null
null
import numpy as np import torch.nn as nn import torch upsampler = nn.Upsample(scale_factor=4, mode='bilinear')
38.622222
172
0.59954
import numpy as np import torch.nn as nn import torch def rgb_to_ycbcr(image): r: torch.Tensor = image[..., 0, :, :] g: torch.Tensor = image[..., 1, :, :] b: torch.Tensor = image[..., 2, :, :] delta = 0.5 y = 0.299 * r + 0.587 * g + 0.114 * b cb = (b - y) * 0.564 + delta cr = (r - y) * 0.7...
3,111
56
196
e81ad75e45ab4660c1a2fd705fc8ce5e9c88c56b
199
py
Python
oo/pessoa.py
cef01/pythonbirds
5af5278a784cb76162de756cec213b14cce1e1dd
[ "MIT" ]
null
null
null
oo/pessoa.py
cef01/pythonbirds
5af5278a784cb76162de756cec213b14cce1e1dd
[ "MIT" ]
null
null
null
oo/pessoa.py
cef01/pythonbirds
5af5278a784cb76162de756cec213b14cce1e1dd
[ "MIT" ]
null
null
null
if __name__ == '__main__': p = Pessoa() print(Pessoa.comprimentar(p)) print(id(p)) print(p.comprimentar())
19.9
33
0.60804
class Pessoa: def comprimentar(self): return f'olá {id(self)}' if __name__ == '__main__': p = Pessoa() print(Pessoa.comprimentar(p)) print(id(p)) print(p.comprimentar())
36
-8
48
9fc44a3261d2a0f0f9c0aeed1ed8fd908fe8b78e
2,717
py
Python
python/ns/maya/Progress.py
redpawfx/massiveImporter
2772d1ce530041007d00d8ba4274dccdda7b8900
[ "MIT" ]
2
2018-01-30T07:50:48.000Z
2020-03-10T02:10:38.000Z
python/ns/maya/Progress.py
redpawfx/massiveImporter
2772d1ce530041007d00d8ba4274dccdda7b8900
[ "MIT" ]
null
null
null
python/ns/maya/Progress.py
redpawfx/massiveImporter
2772d1ce530041007d00d8ba4274dccdda7b8900
[ "MIT" ]
3
2016-10-25T14:29:34.000Z
2021-08-09T13:37:33.000Z
# The MIT License # # Copyright (c) 2008 James Piechota # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
29.215054
80
0.741627
# The MIT License # # Copyright (c) 2008 James Piechota # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
1,078
0
178
a028741d9b11b9c49111dc54ccac4cee2d3d2068
1,274
py
Python
microWsgi/uwsgiTestApp.py
chrisbrake/PythonSandbox
8cd2ea847676d6a300b55c560f49cd980f760b00
[ "BSD-3-Clause" ]
1
2018-10-19T17:35:01.000Z
2018-10-19T17:35:01.000Z
microWsgi/uwsgiTestApp.py
chrisbrake/PythonSandbox
8cd2ea847676d6a300b55c560f49cd980f760b00
[ "BSD-3-Clause" ]
null
null
null
microWsgi/uwsgiTestApp.py
chrisbrake/PythonSandbox
8cd2ea847676d6a300b55c560f49cd980f760b00
[ "BSD-3-Clause" ]
null
null
null
import json import logging import socket import falcon from . import db """ Server: uwsgi --module "microWsgi.uwsgiTestApp:assemble()" --http :5050 --stats stats.socket Client: curl -s 'http://localhost:5050?test=potatoes' | python -m 'json.tool' Stats: nc -U stats.socket | python -m 'json.tool' """ logging.basicCo...
20.222222
85
0.603611
import json import logging import socket import falcon from . import db """ Server: uwsgi --module "microWsgi.uwsgiTestApp:assemble()" --http :5050 --stats stats.socket Client: curl -s 'http://localhost:5050?test=potatoes' | python -m 'json.tool' Stats: nc -U stats.socket | python -m 'json.tool' """ logging.basicCo...
258
0
50
aa26db1011e01edbcbb699f248c229f20b132387
365,395
py
Python
modality/pyuml2/uml_mixins.py
bmjjr/modality
700c608b4e8150f1413ba022938ab6a8f1f148c1
[ "MIT" ]
1
2019-01-09T07:09:36.000Z
2019-01-09T07:09:36.000Z
modality/pyuml2/uml_mixins.py
bmjjr/modality
700c608b4e8150f1413ba022938ab6a8f1f148c1
[ "MIT" ]
null
null
null
modality/pyuml2/uml_mixins.py
bmjjr/modality
700c608b4e8150f1413ba022938ab6a8f1f148c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Mixins to be implemented by user.""" import pyecore.ecore as ecore from pyecore.ecore import EDerivedCollection from pyecore.valuecontainer import EcoreUtils, BadValueError from pyecore.innerutils import ignored class ActivityContentMixin(object): """User defined mixin class for Activ...
44.598438
652
0.709646
# -*- coding: utf-8 -*- """Mixins to be implemented by user.""" import pyecore.ecore as ecore from pyecore.ecore import EDerivedCollection from pyecore.valuecontainer import EcoreUtils, BadValueError from pyecore.innerutils import ignored def check(value, etype): if not EcoreUtils.isinstance(value, etype): ...
37,645
1,327
9,714
81d2b8761a000e3c2e1719093c36e29ab070f551
97
py
Python
NaStyAPI/__init__.py
Nimi142/NaStyAPI
573c04b89c6dd40b2a5b8360221a9711fece1234
[ "Apache-2.0" ]
2
2021-04-04T06:36:22.000Z
2021-05-03T16:00:58.000Z
NaStyAPI/__init__.py
Nimi142/NaStyAPI
573c04b89c6dd40b2a5b8360221a9711fece1234
[ "Apache-2.0" ]
null
null
null
NaStyAPI/__init__.py
Nimi142/NaStyAPI
573c04b89c6dd40b2a5b8360221a9711fece1234
[ "Apache-2.0" ]
null
null
null
__all__ = ["Nation", "Region", "Telegrams", "WorldAssembly", "World", "TradingCards", "APICall"]
48.5
96
0.670103
__all__ = ["Nation", "Region", "Telegrams", "WorldAssembly", "World", "TradingCards", "APICall"]
0
0
0
7c29438a9f8848043860516040d82534bc2f57ea
28,673
py
Python
google/ads/googleads/v6/resources/types/campaign.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v6/resources/types/campaign.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v6/resources/types/campaign.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
42.104258
151
0.672165
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
0
0
0
5f5d7052fa6d1886b74d36ee6ae14695a603424a
419
py
Python
TvFY/account/views.py
cihankarluk/TvFY
7a9fd7ae5d7a656ecc1fc4381c219f87afbf4151
[ "MIT" ]
2
2020-10-23T18:57:24.000Z
2021-03-19T08:47:02.000Z
TvFY/account/views.py
cihankarluk/TvFY
7a9fd7ae5d7a656ecc1fc4381c219f87afbf4151
[ "MIT" ]
null
null
null
TvFY/account/views.py
cihankarluk/TvFY
7a9fd7ae5d7a656ecc1fc4381c219f87afbf4151
[ "MIT" ]
null
null
null
from rest_framework import generics, permissions from TvFY.account.serializers import AccountSerializer, CreateAccountSerializer
26.1875
79
0.809069
from rest_framework import generics, permissions from TvFY.account.serializers import AccountSerializer, CreateAccountSerializer class UserSignUp(generics.CreateAPIView): serializer_class = CreateAccountSerializer permission_classes = [permissions.AllowAny] class UserSingIn(generics.RetrieveAPIView): s...
36
205
46
4846371389c6ecd83e61164bd3ccc3ebf91187b3
1,596
py
Python
scripts/gen_large_tests_oc.py
kuenishi/chainer-compiler
942c3b09759d0857ddc7c6bb93b81117d011ff50
[ "MIT" ]
null
null
null
scripts/gen_large_tests_oc.py
kuenishi/chainer-compiler
942c3b09759d0857ddc7c6bb93b81117d011ff50
[ "MIT" ]
null
null
null
scripts/gen_large_tests_oc.py
kuenishi/chainer-compiler
942c3b09759d0857ddc7c6bb93b81117d011ff50
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import chainer import numpy as np import onnx_chainer import large_models if __name__ == '__main__': main()
28
71
0.572055
#!/usr/bin/python3 import chainer import numpy as np import onnx_chainer import large_models def create_test(test_name, get_fun, dtype): np.random.seed(314) chainer.config.dtype = dtype model, inputs = get_fun(dtype) output_grad = 'backprop' in test_name test_dir = 'out/%s' % test_name cha...
1,389
0
69
e4b2fb7d5295c37d01ec3eec6b1e99065efdc814
648
py
Python
setup.py
olavurmortensen/pedgraph
0e7c90bd0e4f63fa718b7af8c5c769f102bbdebc
[ "MIT" ]
null
null
null
setup.py
olavurmortensen/pedgraph
0e7c90bd0e4f63fa718b7af8c5c769f102bbdebc
[ "MIT" ]
null
null
null
setup.py
olavurmortensen/pedgraph
0e7c90bd0e4f63fa718b7af8c5c769f102bbdebc
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() INSTALL_REQUIRES = ['neo4j-driver>=4.1.1', 'tqdm==4.48.2'] setuptools.setup( name="pedgraph", version="0.0.1", author="Ólavur Mortensen", author_email="olavurmortensen@gmail.com", description...
29.454545
86
0.697531
import setuptools with open("README.md", "r") as fh: long_description = fh.read() INSTALL_REQUIRES = ['neo4j-driver>=4.1.1', 'tqdm==4.48.2'] setuptools.setup( name="pedgraph", version="0.0.1", author="Ólavur Mortensen", author_email="olavurmortensen@gmail.com", description...
0
0
0
a0bfa04c353c116af29022063768a993ed18a5fc
2,008
py
Python
Q380-v2.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q380-v2.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q380-v2.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
""" Q380 Insert Delete GetRandom O(1) Medium Array; Hash Table; Design. Design a data structure that supports all following operations in average O(1) time. 1. insert(val): Inserts an item val to the set if not already present. 2. remove(val): Removes an item val from the set if present. 3. getRandom: Returns a rand...
24.790123
117
0.635956
""" Q380 Insert Delete GetRandom O(1) Medium Array; Hash Table; Design. Design a data structure that supports all following operations in average O(1) time. 1. insert(val): Inserts an item val to the set if not already present. 2. remove(val): Removes an item val from the set if present. 3. getRandom: Returns a rand...
0
1,167
23
8e2c9128f4841ac28d470c168123443131eba11d
385
py
Python
RiskQuantLib/Security/Stock/stock.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
1
2021-12-29T12:18:45.000Z
2021-12-29T12:18:45.000Z
RiskQuantLib/Security/Stock/stock.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
null
null
null
RiskQuantLib/Security/Stock/stock.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
1
2021-12-08T02:14:34.000Z
2021-12-08T02:14:34.000Z
#!/usr/bin/python #coding = utf-8 from RiskQuantLib.Security.base import base from RiskQuantLib.Set.Security.Stock.stock import setStock class stock(base,setStock): """ stock is one of the five basic classes. """
20.263158
76
0.732468
#!/usr/bin/python #coding = utf-8 from RiskQuantLib.Security.base import base from RiskQuantLib.Set.Security.Stock.stock import setStock class stock(base,setStock): """ stock is one of the five basic classes. """ def __init__(self,codeString,nameString,securityTypeString = 'Stock'): super(stoc...
126
0
26
d508595276fcec1298ee3044f7295cd76a1e39cb
333
py
Python
tests/test_basic.py
sbalnojan/tropo-mods
63ef70b84ff6d3fb2bbaeea94193e06e1fc64f63
[ "Apache-2.0" ]
null
null
null
tests/test_basic.py
sbalnojan/tropo-mods
63ef70b84ff6d3fb2bbaeea94193e06e1fc64f63
[ "Apache-2.0" ]
null
null
null
tests/test_basic.py
sbalnojan/tropo-mods
63ef70b84ff6d3fb2bbaeea94193e06e1fc64f63
[ "Apache-2.0" ]
null
null
null
import tropo_mods.auto_sns as auto_sns from troposphere import Template test_sns_yaml = """\ Resources: SNSTopic1: Properties: TopicName: my_new_topic Type: AWS::SNS::Topic """ t = Template() topic = auto_sns.AutoSNS(t, topic_name="my_new_topic", email="test@me.com") assert test_sns_yaml == topic.pri...
20.8125
75
0.72973
import tropo_mods.auto_sns as auto_sns from troposphere import Template test_sns_yaml = """\ Resources: SNSTopic1: Properties: TopicName: my_new_topic Type: AWS::SNS::Topic """ t = Template() topic = auto_sns.AutoSNS(t, topic_name="my_new_topic", email="test@me.com") assert test_sns_yaml == topic.pri...
0
0
0
2e4a45056766bfcabf520edef026dcde56f9a911
23,761
py
Python
jade2/pymol_jade/PyMolScriptWriter.py
RosettaCommons/jade2
40affc7c4e0f1f6ee07030e72de284e3484946e7
[ "BSD-3-Clause" ]
1
2019-12-23T21:52:23.000Z
2019-12-23T21:52:23.000Z
jade2/pymol_jade/PyMolScriptWriter.py
RosettaCommons/jade2
40affc7c4e0f1f6ee07030e72de284e3484946e7
[ "BSD-3-Clause" ]
null
null
null
jade2/pymol_jade/PyMolScriptWriter.py
RosettaCommons/jade2
40affc7c4e0f1f6ee07030e72de284e3484946e7
[ "BSD-3-Clause" ]
2
2021-11-13T01:34:15.000Z
2021-11-13T01:34:34.000Z
#!/usr/bin/python #Author: Jared Adolf-Bryfogle import sys from collections import defaultdict from jade2.basic.path import * from jade2.basic.threading.Threader import Threader from jade2.basic.structure import Structure from jade2.basic.path import * #from jade2.antibody import util as ab_util class PyMolScriptWr...
35.623688
162
0.577543
#!/usr/bin/python #Author: Jared Adolf-Bryfogle import sys from collections import defaultdict from jade2.basic.path import * from jade2.basic.threading.Threader import Threader from jade2.basic.structure import Structure from jade2.basic.path import * #from jade2.antibody import util as ab_util class PyMolScriptWr...
2,321
0
434
64daa544c850e2eafe0501beb13ccb026f2670ec
75
py
Python
server/conftest.py
njbrunner/neighbor
eeffc8ff7adb4eaa1889ab058d6cd1fc95b80e1e
[ "MIT" ]
1
2020-04-06T03:31:25.000Z
2020-04-06T03:31:25.000Z
server/conftest.py
njbrunner/covid-19
eeffc8ff7adb4eaa1889ab058d6cd1fc95b80e1e
[ "MIT" ]
16
2020-04-17T00:44:01.000Z
2020-05-01T20:39:31.000Z
server/conftest.py
njbrunner/neighbor
eeffc8ff7adb4eaa1889ab058d6cd1fc95b80e1e
[ "MIT" ]
null
null
null
"""This module alters the testing system path to provide access to app."""
37.5
74
0.746667
"""This module alters the testing system path to provide access to app."""
0
0
0
ab6a6ccefbec9268443801ac748475636e4151cb
7,072
py
Python
sleeplearning/lib/models/granger_amoe.py
a1247418/MT18_LH_human-sleep-classification
c4a40571390aaa14b1cc8a458100e21252fe05d2
[ "MIT" ]
2
2018-11-16T19:39:32.000Z
2018-11-20T03:38:58.000Z
sleeplearning/lib/models/granger_amoe.py
a1247418/MT18_LH_human-sleep-classification
c4a40571390aaa14b1cc8a458100e21252fe05d2
[ "MIT" ]
1
2019-04-03T07:39:48.000Z
2019-04-03T07:39:48.000Z
sleeplearning/lib/models/granger_amoe.py
a1247418/MT18_LH_human-sleep-classification
c4a40571390aaa14b1cc8a458100e21252fe05d2
[ "MIT" ]
1
2019-03-04T15:46:24.000Z
2019-03-04T15:46:24.000Z
import os import sys import gridfs from sleeplearning.lib.models.single_chan_expert import SingleChanExpert root_dir = os.path.abspath(os.path.join(os.path.dirname('__file__'), '..')) sys.path.insert(0, root_dir) from pymongo import MongoClient from torch import nn from torch.nn.init import xavier_normal_ as xavier_...
35.898477
102
0.579893
import os import sys import gridfs from sleeplearning.lib.models.single_chan_expert import SingleChanExpert root_dir = os.path.abspath(os.path.join(os.path.dirname('__file__'), '..')) sys.path.insert(0, root_dir) from pymongo import MongoClient from torch import nn from torch.nn.init import xavier_normal_ as xavier_...
6,232
17
256
9b44e3583da508174d935a3ceb21065e19d1c4b4
2,093
py
Python
config.py
howeverforever/line-transcription-bot
959f3f1e625187c94ee479813f4a3b720b7dd971
[ "Apache-2.0" ]
1
2019-09-20T18:14:58.000Z
2019-09-20T18:14:58.000Z
config.py
howeverforever/line-transcription-bot
959f3f1e625187c94ee479813f4a3b720b7dd971
[ "Apache-2.0" ]
null
null
null
config.py
howeverforever/line-transcription-bot
959f3f1e625187c94ee479813f4a3b720b7dd971
[ "Apache-2.0" ]
null
null
null
import os import sys import boto3 from linebot import LineBotApi, WebhookHandler
33.758065
99
0.675585
import os import sys import boto3 from linebot import LineBotApi, WebhookHandler class Singleton(type): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) return cls._instances[cl...
1,795
61
153
4ab43ec654b55664f667149827969ecc7a2b583c
1,173
py
Python
big_data/python_tools/big_data_tools/bokeh_tools/ex_graphs/labelset_ex.py
paulhtremblay/big-data
dfa2aa9877300a57e7a9368af59c07fcc5841b4f
[ "MIT" ]
null
null
null
big_data/python_tools/big_data_tools/bokeh_tools/ex_graphs/labelset_ex.py
paulhtremblay/big-data
dfa2aa9877300a57e7a9368af59c07fcc5841b4f
[ "MIT" ]
7
2020-06-05T18:13:25.000Z
2022-03-11T23:19:48.000Z
big_data/python_tools/big_data_tools/bokeh_tools/ex_graphs/labelset_ex.py
paulhtremblay/big-data
dfa2aa9877300a57e7a9368af59c07fcc5841b4f
[ "MIT" ]
1
2020-11-25T18:24:37.000Z
2020-11-25T18:24:37.000Z
from bokeh.plotting import figure, show, output_file from bokeh.models import ColumnDataSource, Range1d, LabelSet, Label output_file("label.html", title="label.py example") source = ColumnDataSource(data=dict(height=[66, 71, 72, 68, 58, 62], weight=[165, 189, 220, 141, 260, 174], ...
41.892857
75
0.602728
from bokeh.plotting import figure, show, output_file from bokeh.models import ColumnDataSource, Range1d, LabelSet, Label output_file("label.html", title="label.py example") source = ColumnDataSource(data=dict(height=[66, 71, 72, 68, 58, 62], weight=[165, 189, 220, 141, 260, 174], ...
0
0
0
189bb5fd75bd6436fff20052f805eddc1d8a7212
4,516
py
Python
backend/size.py
VivianChan1998/Old-shoes
090f97373333a4df21399f5555dadd4c0eca6ea6
[ "MIT" ]
1
2021-01-27T17:53:33.000Z
2021-01-27T17:53:33.000Z
backend/size.py
VivianChan1998/Old-shoes
090f97373333a4df21399f5555dadd4c0eca6ea6
[ "MIT" ]
2
2021-01-28T07:38:49.000Z
2022-01-22T17:25:59.000Z
backend/size.py
VivianChan1998/Old-shoes
090f97373333a4df21399f5555dadd4c0eca6ea6
[ "MIT" ]
1
2020-09-03T02:37:14.000Z
2020-09-03T02:37:14.000Z
import os from os.path import basename import sys import json import requests import matplotlib.pyplot as plt from PIL import Image from io import BytesIO # import cv2 import numpy as np # import config_own import logging ########## To-Do ########## ### optimization ### warping ### ### the shot-raw-img is needed to b...
32.257143
142
0.579717
import os from os.path import basename import sys import json import requests import matplotlib.pyplot as plt from PIL import Image from io import BytesIO # import cv2 import numpy as np # import config_own import logging def shot_cv2(): # set the img storage path img_path = config_own.SHOT_CV2_DIR # cpat...
3,400
0
68
d64e97cef206d1a3eab0c9ff04a0f95768cec03b
500
py
Python
algorithms/samename-03-1.py
lsm4446/study_python
d05077b319c98007af26c92f69f5d59fe33483d0
[ "BSD-2-Clause" ]
1
2020-02-17T01:25:35.000Z
2020-02-17T01:25:35.000Z
algorithms/samename-03-1.py
lsm4446/study_python
d05077b319c98007af26c92f69f5d59fe33483d0
[ "BSD-2-Clause" ]
2
2021-03-31T19:32:47.000Z
2021-12-13T20:33:30.000Z
algorithms/samename-03-1.py
lsm4446/study_python
d05077b319c98007af26c92f69f5d59fe33483d0
[ "BSD-2-Clause" ]
null
null
null
''' Created on 2018. 4. 26. @author: lsm ''' name = ["이상면", "Tom", "Jerry", "Mike", "이상면", "Tom"] print(find_same_name(name)) name = ["이상면", "Tom", "Jerry", "Mike", "이상면", "Mike"] print(find_same_name(name)) name = ["이상면", "Tom", "Jerry", "Mike", "Mike", "Jerry", "tom"] print(find_same_name(name))
21.73913
62
0.53
''' Created on 2018. 4. 26. @author: lsm ''' def find_same_name(a): n = len(a) result = set() for i in range(0, n-1): for j in range(i+1, n): if a[i] == a[j]: result.add(a[i]) return result name = ["이상면", "Tom", "Jerry", "Mike", "이상면", "Tom"] print(find_same_name(na...
175
0
22
52e4d41b65b85280389783fdde8527c4a6dd8a7c
7,689
py
Python
curriculums.py
EdwardJTL/Edit3D
bbb6364aeb5ea17c12c0c23578268641c066ebca
[ "MIT" ]
null
null
null
curriculums.py
EdwardJTL/Edit3D
bbb6364aeb5ea17c12c0c23578268641c066ebca
[ "MIT" ]
null
null
null
curriculums.py
EdwardJTL/Edit3D
bbb6364aeb5ea17c12c0c23578268641c066ebca
[ "MIT" ]
null
null
null
""" To easily reproduce experiments, and avoid passing several command line arguments, we implemented a curriculum utility. Parameters can be set in a curriculum dictionary. Curriculum Schema: Numerical keys in the curriculum specify an upsample step. When the current step matches the upsample step, the value...
33.723684
125
0.642216
""" To easily reproduce experiments, and avoid passing several command line arguments, we implemented a curriculum utility. Parameters can be set in a curriculum dictionary. Curriculum Schema: Numerical keys in the curriculum specify an upsample step. When the current step matches the upsample step, the value...
1,616
0
92
12bef3917108852eeaabbac5c934d0b48f2924ea
6,488
py
Python
tests/transmitters.py
LeMagnesium/stolas-p2p
f5a48c12b8422c58ba62ed89491bcf2a19441dbf
[ "Unlicense" ]
null
null
null
tests/transmitters.py
LeMagnesium/stolas-p2p
f5a48c12b8422c58ba62ed89491bcf2a19441dbf
[ "Unlicense" ]
null
null
null
tests/transmitters.py
LeMagnesium/stolas-p2p
f5a48c12b8422c58ba62ed89491bcf2a19441dbf
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 # -*- encoding: utf-8 -*- # from sys import argv import random import os.path import hashlib import time import stolas.stolas import stolas.protocol from stolas.betterui import pprint as print from network import manual_stolas_prompt from common import network_collapse, mean if __name__ == '__mai...
30.603774
146
0.679408
#!/usr/bin/python3 # -*- encoding: utf-8 -*- # from sys import argv import random import os.path import hashlib import time import stolas.stolas import stolas.protocol from stolas.betterui import pprint as print from network import manual_stolas_prompt from common import network_collapse, mean def network_random(po...
5,698
0
184
dfb39c7d8e6a3e2dae7e009e6ab22ce4fe0a79a6
8,436
py
Python
Neural Networks/deepnnScript.py
Muthu2093/Machine-Learning-Applications
bb171ff2bfdcb5af64403ae7f63fe96572d63963
[ "MIT" ]
null
null
null
Neural Networks/deepnnScript.py
Muthu2093/Machine-Learning-Applications
bb171ff2bfdcb5af64403ae7f63fe96572d63963
[ "MIT" ]
null
null
null
Neural Networks/deepnnScript.py
Muthu2093/Machine-Learning-Applications
bb171ff2bfdcb5af64403ae7f63fe96572d63963
[ "MIT" ]
null
null
null
''' Comparing single layer MLP with deep MLP (using TensorFlow) ''' import tensorflow as tf import numpy as np import pickle import timeit start = timeit.default_timer() # Create model # Add more hidden layers to create deeper networks # Remember to connect the final hidden layer to the out_layer # Do not change thi...
40.951456
135
0.642959
''' Comparing single layer MLP with deep MLP (using TensorFlow) ''' import tensorflow as tf import numpy as np import pickle import timeit start = timeit.default_timer() # Create model # Add more hidden layers to create deeper networks # Remember to connect the final hidden layer to the out_layer def create_multilaye...
6,505
0
44
bd6b41c6a191fa6db37444744515df734b167e4a
405
py
Python
pytorch_projects/common_pytorch/base_modules/avg_pool_head.py
KGMSFT/integral-human-pose
d3ad4117ed71c580d2ab17987e15f9b2c3318a3b
[ "MIT" ]
472
2018-07-20T04:01:04.000Z
2022-01-20T07:28:06.000Z
pytorch_projects/common_pytorch/base_modules/avg_pool_head.py
KGMSFT/integral-human-pose
d3ad4117ed71c580d2ab17987e15f9b2c3318a3b
[ "MIT" ]
44
2018-09-17T06:39:13.000Z
2021-09-10T06:22:27.000Z
pytorch_projects/common_pytorch/base_modules/avg_pool_head.py
KGMSFT/integral-human-pose
d3ad4117ed71c580d2ab17987e15f9b2c3318a3b
[ "MIT" ]
88
2018-07-22T13:10:16.000Z
2022-03-21T11:21:38.000Z
import torch.nn as nn
31.153846
64
0.624691
import torch.nn as nn class AvgPoolHead(nn.Module): def __init__(self, in_channels, out_channels, fea_map_size): super(AvgPoolHead, self).__init__() self.avgpool = nn.AvgPool2d(fea_map_size, stride=1) self.fc = nn.Linear(in_channels, out_channels) def forward(self, x): x = self...
300
8
76
4a1ceaf38773fa0905170c8e89ab1c5dd2a537ec
1,049
py
Python
lib_collection/sort/quick_3_string.py
caser789/libcollection
eb0a6fc36ce1cb57ed587865bbc1576e81c08924
[ "MIT" ]
null
null
null
lib_collection/sort/quick_3_string.py
caser789/libcollection
eb0a6fc36ce1cb57ed587865bbc1576e81c08924
[ "MIT" ]
null
null
null
lib_collection/sort/quick_3_string.py
caser789/libcollection
eb0a6fc36ce1cb57ed587865bbc1576e81c08924
[ "MIT" ]
null
null
null
if __name__ == '__main__': keys = [ 'she', 'sells', 'seashells', 'by', 'the', 'seashore', 'the', 'shells', 'she', 'sells', 'are', 'surely', 'seashells', ] expected = sorted(keys[:]) assert keys !...
16.919355
49
0.414681
def sort(keys): _sort(keys, 0, len(keys)-1, 0) def _sort(keys, lo, hi, start): if hi <= lo: return lt = lo gt = hi v = get_r(keys[lt], start) i = lt + 1 while i <= gt: c = get_r(keys[i], start) if c < v: keys[lt], keys[i] = keys[i], keys[lt] ...
604
0
68
18817fe28e3e3d36c37cd1aa559511462ada2e60
505
py
Python
src/sdanalysis/dynamics/__init__.py
malramsay64/statdyn-analysis
2cc9ea1c5386b7fc203cb068d29e8d0aa626ee43
[ "MIT" ]
6
2018-03-13T22:43:11.000Z
2021-07-07T17:46:28.000Z
src/sdanalysis/dynamics/__init__.py
malramsay64/statdyn-analysis
2cc9ea1c5386b7fc203cb068d29e8d0aa626ee43
[ "MIT" ]
174
2018-02-06T05:50:12.000Z
2020-08-01T19:32:55.000Z
src/sdanalysis/dynamics/__init__.py
malramsay64/statdyn-analysis
2cc9ea1c5386b7fc203cb068d29e8d0aa626ee43
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Malcolm Ramsay <malramsay64@gmail.com> # # Distributed under terms of the MIT license. """Module for reading and processing input files.""" from ._util import TrackedMotion from .dynamics import Dynamics from .relaxations import La...
21.956522
82
0.724752
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2019 Malcolm Ramsay <malramsay64@gmail.com> # # Distributed under terms of the MIT license. """Module for reading and processing input files.""" from ._util import TrackedMotion from .dynamics import Dynamics from .relaxations import La...
0
0
0
4433baac982fb2d87a67e95a552e5dba24c69fd0
1,000
py
Python
backend/fedmix_backend/datastore.py
FEDMix/fedmix-viewer
3116d7c85aa73016d5657c2c084cddb7fb64e399
[ "Apache-2.0" ]
null
null
null
backend/fedmix_backend/datastore.py
FEDMix/fedmix-viewer
3116d7c85aa73016d5657c2c084cddb7fb64e399
[ "Apache-2.0" ]
3
2020-10-19T09:27:42.000Z
2020-10-23T11:26:52.000Z
backend/fedmix_backend/datastore.py
FEDMix/fedmix-viewer
3116d7c85aa73016d5657c2c084cddb7fb64e399
[ "Apache-2.0" ]
null
null
null
import json import logging import os logger = logging.getLogger(__name__)
32.258065
77
0.598
import json import logging import os logger = logging.getLogger(__name__) class Datastore: def __init__(self, path, remote_url): self.path = path self.remote_url = remote_url self.datasets = dict() self.load_datasets() def load_datasets(self): print(f"Loading datasets...
826
-5
103
a25b7aed1e40cc5fb4a9fe65324df3c25be54409
6,669
py
Python
kohokoho.py
Moonlit-Solutions/kohokoho
27f7c0c45cf7662b79f5fd75402cbab2098423d0
[ "Apache-2.0" ]
null
null
null
kohokoho.py
Moonlit-Solutions/kohokoho
27f7c0c45cf7662b79f5fd75402cbab2098423d0
[ "Apache-2.0" ]
22
2021-01-24T06:42:55.000Z
2021-08-09T14:25:06.000Z
kohokoho.py
ayushsubedi/term-obfuscate-dataset
ac07d46a60114fadf084ade4e1dbf7dc0370bf07
[ "Apache-2.0" ]
2
2021-02-01T14:46:34.000Z
2021-02-18T03:40:02.000Z
import click import string import random import time import pandas as pd from faker import Faker fake = Faker('en') class anon(object): '''Initialize a df as an anon object. Args: df: pandas dataframe Returns: anon object ''' def anon_name(self, col): ''' Replace entries...
31.757143
78
0.575948
import click import string import random import time import pandas as pd from faker import Faker fake = Faker('en') class anon(object): '''Initialize a df as an anon object. Args: df: pandas dataframe Returns: anon object ''' def __init__(self, df): self.original = df.cop...
2,506
0
102
48d27e7c7f04241eaba6ebba6f4280a5b806a2d3
1,741
py
Python
input_test.py
Forsenlol/Reinforced-training-simulating-the-work-of-neural-synapses
21e70c3eb5fac8984adb78771bf25f1e5aef823a
[ "MIT" ]
null
null
null
input_test.py
Forsenlol/Reinforced-training-simulating-the-work-of-neural-synapses
21e70c3eb5fac8984adb78771bf25f1e5aef823a
[ "MIT" ]
null
null
null
input_test.py
Forsenlol/Reinforced-training-simulating-the-work-of-neural-synapses
21e70c3eb5fac8984adb78771bf25f1e5aef823a
[ "MIT" ]
null
null
null
import gym import numpy as np import operator env = gym.make('MountainCar-v0') possible_actions = env.action_space.n print 'Possible actions are {}'.format(possible_actions) epsilonlearn = EpsilonGreedy() for episode in xrange(epsilonlearn.episodes): observation = env.reset() while True: env.render(...
28.540984
69
0.577254
import gym import numpy as np import operator env = gym.make('MountainCar-v0') possible_actions = env.action_space.n print 'Possible actions are {}'.format(possible_actions) class EpsilonGreedy(): def __init__(self, episodes=1000, epsilon=0.2): self.episodes = episodes self.epsilon = epsilon ...
1,106
1
50
c1732f33ed39b706bb238f90f7327e90eb8aadf9
6,424
py
Python
tests/utils_tests.py
lukegb/ehacktivities
bc04d02eaf36a106b943ce0cb8395e85a780f6fc
[ "MIT" ]
1
2016-04-30T00:19:13.000Z
2016-04-30T00:19:13.000Z
tests/utils_tests.py
lukegb/ehacktivities
bc04d02eaf36a106b943ce0cb8395e85a780f6fc
[ "MIT" ]
null
null
null
tests/utils_tests.py
lukegb/ehacktivities
bc04d02eaf36a106b943ce0cb8395e85a780f6fc
[ "MIT" ]
null
null
null
# vim: set fileencoding=utf-8 import unittest import decimal from eactivities import utils as utils
31.336585
84
0.452055
# vim: set fileencoding=utf-8 import unittest import decimal from eactivities import utils as utils class TestFormatYear(unittest.TestCase): def test_basic(self): self.assertEqual(utils.format_year(2013), "13-14") self.assertEqual(utils.format_year(2012), "12-13") def test_wraparound(self):...
5,735
128
456
0ee0a90813c8c9a90a1985052ea498c3076c177b
2,480
py
Python
tests/dataset_mock.py
fufunoyu/mindspore
704e367ada35653e8144eb0528c714f4b0231508
[ "Apache-2.0" ]
null
null
null
tests/dataset_mock.py
fufunoyu/mindspore
704e367ada35653e8144eb0528c714f4b0231508
[ "Apache-2.0" ]
null
null
null
tests/dataset_mock.py
fufunoyu/mindspore
704e367ada35653e8144eb0528c714f4b0231508
[ "Apache-2.0" ]
1
2021-05-10T03:30:36.000Z
2021-05-10T03:30:36.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
27.252747
78
0.645968
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
1,195
0
458
7a25e21e0ff9185885dc27f0a902bbb85ae763b1
1,733
py
Python
training_Validation_Insertion.py
ThakurSneha/ThyroidDetection
0b4432b92c4a10c3126f5dd0e5289c661975e192
[ "MIT" ]
null
null
null
training_Validation_Insertion.py
ThakurSneha/ThyroidDetection
0b4432b92c4a10c3126f5dd0e5289c661975e192
[ "MIT" ]
null
null
null
training_Validation_Insertion.py
ThakurSneha/ThyroidDetection
0b4432b92c4a10c3126f5dd0e5289c661975e192
[ "MIT" ]
null
null
null
from datetime import datetime from Training_Raw_data_validation.rawValidation import Raw_Data_validation from DataTransform_Training.DataTransformation import dataTransform from application_logging import logger
50.970588
122
0.709752
from datetime import datetime from Training_Raw_data_validation.rawValidation import Raw_Data_validation from DataTransform_Training.DataTransformation import dataTransform from application_logging import logger class train_validation: def __init__(self, path): self.raw_data = Raw_Data_validation(path) ...
1,444
2
76
db5407361c07960e98969098248706f9f7f11480
1,322
py
Python
Shineye/views.py
JinhuaSu/Shineye
4e696061bc7c1ee9dd2b438761c5b0ef503afcb7
[ "MIT" ]
null
null
null
Shineye/views.py
JinhuaSu/Shineye
4e696061bc7c1ee9dd2b438761c5b0ef503afcb7
[ "MIT" ]
null
null
null
Shineye/views.py
JinhuaSu/Shineye
4e696061bc7c1ee9dd2b438761c5b0ef503afcb7
[ "MIT" ]
null
null
null
from django.shortcuts import render import json
33.05
53
0.645234
from django.shortcuts import render import json def dashboard(request): context = {} context['hello'] = 'Hello World!' with open('statics/data/texture_dict.json') as f: texture_dict = json.load(f) with open('statics/data/feature_dict.json') as f: feature_dict = json.load(f) ...
1,182
0
93
46164d4ddda6fdcc7eb941df2f38e732ab01c600
42
py
Python
models/__init__.py
FangjinhuaWang/IterMVS
afb870c2d3e15b15e15f244f8d6822c4acb207d5
[ "MIT" ]
88
2021-12-10T02:05:23.000Z
2022-03-31T08:45:48.000Z
models/__init__.py
FangjinhuaWang/IterMVS
afb870c2d3e15b15e15f244f8d6822c4acb207d5
[ "MIT" ]
2
2022-03-11T12:45:16.000Z
2022-03-25T09:55:32.000Z
models/__init__.py
FangjinhuaWang/IterMVS
afb870c2d3e15b15e15f244f8d6822c4acb207d5
[ "MIT" ]
7
2021-12-10T06:50:08.000Z
2022-03-02T11:27:07.000Z
from models.net import Pipeline, full_loss
42
42
0.857143
from models.net import Pipeline, full_loss
0
0
0
c78fff6a1b742a2097292cc1762ed16a15045646
2,885
py
Python
onnx/backend/test/case/node/softmax.py
pchandrasekaran1595/onnx
10da6f2e919c8515877e227a41cd44e86ae0bb2d
[ "Apache-2.0" ]
12,820
2017-09-07T07:00:24.000Z
2022-03-31T14:41:57.000Z
onnx/backend/test/case/node/softmax.py
pchandrasekaran1595/onnx
10da6f2e919c8515877e227a41cd44e86ae0bb2d
[ "Apache-2.0" ]
3,213
2017-09-07T17:48:17.000Z
2022-03-31T19:44:57.000Z
onnx/backend/test/case/node/softmax.py
pchandrasekaran1595/onnx
10da6f2e919c8515877e227a41cd44e86ae0bb2d
[ "Apache-2.0" ]
2,922
2017-09-07T07:46:00.000Z
2022-03-31T15:55:24.000Z
# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np # type: ignore import onnx from ..base import Base from . import expect
28.284314
65
0.507452
# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np # type: ignore import onnx from ..base import Base from . import expect def softmax(x, axis=-1): # type: (n...
2,467
88
46
8caa6e6d97d8417d27e29aa9cf0782bc090cde87
5,604
py
Python
gorilla3d/nn/modules/sparse/unet.py
Gorilla-Lab-SCUT/gorilla-3d
399ed8616781a0fbc462f655c0e80c258c5a5207
[ "MIT" ]
6
2021-08-30T14:52:05.000Z
2022-02-28T19:37:14.000Z
gorilla3d/nn/modules/sparse/unet.py
Gorilla-Lab-SCUT/gorilla-3d
399ed8616781a0fbc462f655c0e80c258c5a5207
[ "MIT" ]
null
null
null
gorilla3d/nn/modules/sparse/unet.py
Gorilla-Lab-SCUT/gorilla-3d
399ed8616781a0fbc462f655c0e80c258c5a5207
[ "MIT" ]
3
2021-12-25T02:17:51.000Z
2022-02-23T21:53:16.000Z
import functools from collections import OrderedDict from typing import Callable, Dict, List, Optional, Union import gorilla import torch import torch.nn as nn try: import spconv from spconv.modules import SparseModule except: pass from .block import ResidualBlock, VGGBlock, AsymResidualBlock
37.36
77
0.470914
import functools from collections import OrderedDict from typing import Callable, Dict, List, Optional, Union import gorilla import torch import torch.nn as nn try: import spconv from spconv.modules import SparseModule except: pass from .block import ResidualBlock, VGGBlock, AsymResidualBlock class UBl...
5,215
3
76
72cbdd0bcaa996954661c5bd76f6d40be1176bc5
1,602
py
Python
canary/app.py
jrxFive/canary
725b7fc812c06de26056fe6eee9d155abf3e0c47
[ "MIT" ]
null
null
null
canary/app.py
jrxFive/canary
725b7fc812c06de26056fe6eee9d155abf3e0c47
[ "MIT" ]
null
null
null
canary/app.py
jrxFive/canary
725b7fc812c06de26056fe6eee9d155abf3e0c47
[ "MIT" ]
null
null
null
import falcon import skyline import outlier import backend api = falcon.API() # Skyline Resources skyline_MedianAbsoluteDeviation = skyline.MedianAbsoluteDeviation() skyline_Grubbs = skyline.Grubbs() skyline_FirstHourAverage = skyline.FirstHourAverage() skyline_HistogramBins = skyline.HistogramBins() skyline_LeastSqu...
29.127273
71
0.779026
import falcon import skyline import outlier import backend api = falcon.API() # Skyline Resources skyline_MedianAbsoluteDeviation = skyline.MedianAbsoluteDeviation() skyline_Grubbs = skyline.Grubbs() skyline_FirstHourAverage = skyline.FirstHourAverage() skyline_HistogramBins = skyline.HistogramBins() skyline_LeastSqu...
0
0
0
1a09c3a99ab397cf25966358037555ec10ce96b5
1,645
py
Python
dthm4kaiako/events/migrations/0003_auto_20190305_2035.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
3
2018-12-10T07:03:02.000Z
2021-04-12T02:18:30.000Z
dthm4kaiako/events/migrations/0003_auto_20190305_2035.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
566
2018-09-30T02:54:28.000Z
2022-03-28T01:20:01.000Z
dthm4kaiako/events/migrations/0003_auto_20190305_2035.py
taskmaker1/dthm4kaiako
681babc10b3223b5ae7fdf19b98c53d2bef4ea1a
[ "MIT" ]
3
2019-04-04T19:53:39.000Z
2021-05-16T02:04:46.000Z
# Generated by Django 2.1.5 on 2019-03-05 07:35 from django.db import migrations, models
42.179487
397
0.594529
# Generated by Django 2.1.5 on 2019-03-05 07:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0002_auto_20190305_0753'), ] operations = [ migrations.AddField( model_name='location', name='city', ...
0
1,531
23
6799a09b7e3c82d3322add9429550909c8f992c3
2,009
py
Python
electricitymap/contrib/config/__init__.py
neilfulwiler/electricitymap-contrib
bcfd819eb24fc0530861e44acdb828f3ef635fe0
[ "MIT" ]
1
2022-02-08T22:52:09.000Z
2022-02-08T22:52:09.000Z
electricitymap/contrib/config/__init__.py
eliagroup/electricitymap-contrib
66e1e5976bf7add639c24b61386b329b15955075
[ "MIT" ]
null
null
null
electricitymap/contrib/config/__init__.py
eliagroup/electricitymap-contrib
66e1e5976bf7add639c24b61386b329b15955075
[ "MIT" ]
null
null
null
import json from pathlib import Path from typing import Dict, List, NewType, Tuple ZoneKey = NewType("ZoneKey", str) Point = NewType("Point", Tuple[float, float]) BoundingBox = NewType("BoundingBox", List[Point]) CONFIG_DIR = Path(__file__).parent.parent.parent.parent.joinpath("config").resolve() # Read JOSN files Z...
40.18
88
0.735192
import json from pathlib import Path from typing import Dict, List, NewType, Tuple ZoneKey = NewType("ZoneKey", str) Point = NewType("Point", Tuple[float, float]) BoundingBox = NewType("BoundingBox", List[Point]) CONFIG_DIR = Path(__file__).parent.parent.parent.parent.joinpath("config").resolve() # Read JOSN files Z...
282
0
23
afafff9e14db07eceecd082a992b541d798cad5f
2,200
py
Python
tests/conftest.py
RussellJQA/test-statsroyale
376d00d2bd998de7c58b07df06f1fe7dc82816d1
[ "MIT" ]
null
null
null
tests/conftest.py
RussellJQA/test-statsroyale
376d00d2bd998de7c58b07df06f1fe7dc82816d1
[ "MIT" ]
null
null
null
tests/conftest.py
RussellJQA/test-statsroyale
376d00d2bd998de7c58b07df06f1fe7dc82816d1
[ "MIT" ]
null
null
null
""" This module contains shared fixtures. """ import json from pathlib import Path # pip installed import pytest # installed with webdriver_manager from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.firefox import GeckoDriverManager # scope="session" mean...
31.428571
77
0.711818
""" This module contains shared fixtures. """ import json from pathlib import Path # pip installed import pytest # installed with webdriver_manager from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from webdriver_manager.firefox import GeckoDriverManager # scope="session" mean...
0
0
0
b82068f563050b399255df26391497881d98b3a5
12,152
py
Python
pypureclient/flashblade/FB_2_2/api/rdl_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flashblade/FB_2_2/api/rdl_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flashblade/FB_2_2/api/rdl_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.2, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import...
37.622291
199
0.632242
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.2, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import...
47
11,643
23
b9c448bf2426d47f5d9150b6f0c8d6cbf069d50b
6,296
py
Python
cwharaj/cwharaj/parser/opensooq_parser.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
2
2018-12-03T16:30:55.000Z
2019-04-03T13:29:20.000Z
cwharaj/cwharaj/parser/opensooq_parser.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
null
null
null
cwharaj/cwharaj/parser/opensooq_parser.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
1
2019-04-03T13:29:25.000Z
2019-04-03T13:29:25.000Z
# coding=utf-8 import logging from cwharaj.items import Ad, CacheItem, City, Member, OpensooqPhone from cwharaj.parser.base_parser import BaseParser from cwharaj.parser.utils.harajs_comments import HarajsComments from cwharaj.parser.utils.harajs_section import HarajsSection from cwharaj.parser.utils.timer_opensooq_com...
40.883117
121
0.630083
# coding=utf-8 import logging from cwharaj.items import Ad, CacheItem, City, Member, OpensooqPhone from cwharaj.parser.base_parser import BaseParser from cwharaj.parser.utils.harajs_comments import HarajsComments from cwharaj.parser.utils.harajs_section import HarajsSection from cwharaj.parser.utils.timer_opensooq_com...
4,970
948
23
7a3b01013fde2ee3d3ab666efa9cbbf280de529f
5,695
py
Python
vxt/view/task/factory.py
veeso/voice-xtractor
8382dd889ed665741c3c66b65321cc1d36c6a767
[ "MIT" ]
1
2022-01-11T01:31:36.000Z
2022-01-11T01:31:36.000Z
vxt/view/task/factory.py
veeso/vxt
8382dd889ed665741c3c66b65321cc1d36c6a767
[ "MIT" ]
null
null
null
vxt/view/task/factory.py
veeso/vxt
8382dd889ed665741c3c66b65321cc1d36c6a767
[ "MIT" ]
null
null
null
# VXT # Developed by Christian Visintin # # MIT License # Copyright (c) 2021 Christian Visintin # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitati...
38.47973
87
0.689201
# VXT # Developed by Christian Visintin # # MIT License # Copyright (c) 2021 Christian Visintin # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitati...
1,643
0
312
c0a838d1742e11f233a011458ca579ef6d49d4db
2,243
py
Python
bag8/utils.py
peopledoc/bag8
6bd8a00ac258297b94eac6c71f4efe275c416203
[ "MIT" ]
4
2015-05-27T13:59:00.000Z
2016-12-11T20:34:00.000Z
bag8/utils.py
peopledoc/bag8
6bd8a00ac258297b94eac6c71f4efe275c416203
[ "MIT" ]
64
2015-04-27T08:33:14.000Z
2016-07-15T13:33:11.000Z
bag8/utils.py
peopledoc/bag8
6bd8a00ac258297b94eac6c71f4efe275c416203
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import os import re import socket import sys from itertools import count from functools import partial from subprocess import Popen from subprocess import PIPE from time import sleep import click from distutils.spawn import find_executable from comp...
20.962617
66
0.631743
from __future__ import absolute_import, division, print_function import os import re import socket import sys from itertools import count from functools import partial from subprocess import Popen from subprocess import PIPE from time import sleep import click from distutils.spawn import find_executable from comp...
1,573
0
161