hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f76fdef1fd6eb1ca9c5e3fd37aaa8cdd4b15c7d3
6,149
py
Python
mplStyle/MplTextStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/MplTextStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/MplTextStyle.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
34.740113
76
0.58107
__version__ = "$Revision: #1 $" from . import types as S from .MplArtistStyle import MplArtistStyle from .MplFontStyle import MplFontStyle import matplotlib.text as mpltext __all__ = [ 'MplTextStyle' ] class MplTextStyle( MplArtistStyle ): font = S.property.SubStyle( MplFontStyle, doc = """ The font propert...
true
true
f76fdf4c381c8364db6b95bbc0ae899afc3449d6
14,002
py
Python
src/dataset/loader.py
vita-epfl/pedestrian-transition-dataset
7e1b723a37289850b5ef8628e6881845a24912f9
[ "MIT" ]
6
2022-02-27T13:28:35.000Z
2022-03-20T14:02:24.000Z
src/dataset/loader.py
vita-epfl/pedestrian-transition-dataset
7e1b723a37289850b5ef8628e6881845a24912f9
[ "MIT" ]
null
null
null
src/dataset/loader.py
vita-epfl/pedestrian-transition-dataset
7e1b723a37289850b5ef8628e6881845a24912f9
[ "MIT" ]
null
null
null
import os import copy import PIL import torch import torchvision import numpy as np import math import logging from typing import List LOG = logging.getLogger(__name__) def define_path(use_jaad=True, use_pie=True, use_titan=True): """ Define the correct paths to datasets'annotations and images """ a...
39.002786
133
0.569276
import os import copy import PIL import torch import torchvision import numpy as np import math import logging from typing import List LOG = logging.getLogger(__name__) def define_path(use_jaad=True, use_pie=True, use_titan=True): all_anns_paths = {'JAAD': {'anns': '../../DATA/annotations/JAAD/JAAD_DATA.pkl', ...
true
true
f76fe0f457b95551c9d86192f81ea01dcdf6c3e3
174
py
Python
sphinx/source/docs/user_guide/examples/interaction_button.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
12
2020-07-20T14:58:31.000Z
2021-09-04T22:15:14.000Z
sphinx/source/docs/user_guide/examples/interaction_button.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
1
2020-09-05T02:46:20.000Z
2020-09-05T02:46:20.000Z
sphinx/source/docs/user_guide/examples/interaction_button.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
3
2019-03-27T23:27:05.000Z
2020-08-05T19:03:19.000Z
from bokeh.io import output_file, show from bokeh.models.widgets import Button output_file("button.html") button = Button(label="Foo", button_type="success") show(button)
19.333333
51
0.775862
from bokeh.io import output_file, show from bokeh.models.widgets import Button output_file("button.html") button = Button(label="Foo", button_type="success") show(button)
true
true
f76fe1be6cefe162549b59e8a673c57a90b337c0
1,205
py
Python
code/classifier.py
sakagg/mortality-rate-prediction
016b45755df34f93593ae51a17a33dadafe1b1a3
[ "MIT" ]
null
null
null
code/classifier.py
sakagg/mortality-rate-prediction
016b45755df34f93593ae51a17a33dadafe1b1a3
[ "MIT" ]
null
null
null
code/classifier.py
sakagg/mortality-rate-prediction
016b45755df34f93593ae51a17a33dadafe1b1a3
[ "MIT" ]
null
null
null
#from ann import learnANN; from bayes import learnBayes; from svm import learnSVM; from parse import getData; import sys; def classify(train, test): trainData, testData = getData(train, test); #print len(trainData[0]), len(testData[0]) #print len(trainData[0][0]), len(trainData[1]), len(testData[0][0]), len(testData...
32.567568
86
0.670539
from bayes import learnBayes; from svm import learnSVM; from parse import getData; import sys; def classify(train, test): trainData, testData = getData(train, test); bayesAcc = 0; svmAcc = 0; bayesClass = learnBayes(trainData[0], trainData[1]); bayesRes = bayesClass.predict(testData[0]); bayesRes = map(lambd...
false
true
f76fe20f4f013ef060916488472acea6b4c61c13
821
py
Python
userbot/plugins/cmd_list.py
salmanpdr/GujjuBot
2e27e13425ab4d2d05407be0b13f51558aa3109c
[ "MIT" ]
1
2021-07-06T19:11:26.000Z
2021-07-06T19:11:26.000Z
userbot/plugins/cmd_list.py
vipinpkd/GujjuBotVPN
ef88f90e876f069a85acf352eb0b461bffa933b6
[ "MIT" ]
1
2020-06-05T18:05:02.000Z
2020-06-05T18:05:02.000Z
userbot/plugins/cmd_list.py
AnonymousiM/GujjuBot
4e3831417912ef487901e7d8efac563bf64fc93e
[ "MIT" ]
2
2020-05-12T05:23:05.000Z
2020-06-07T06:24:04.000Z
from telethon import events import subprocess import asyncio import time from userbot.utils import admin_cmd #@command(pattern="^.cmds", outgoing=True) @borg.on(admin_cmd(pattern=r"cmds")) async def install(event): if event.fwd_from: return cmd = "ls userbot/plugins" process = await asyncio.create_...
37.318182
253
0.697929
from telethon import events import subprocess import asyncio import time from userbot.utils import admin_cmd @borg.on(admin_cmd(pattern=r"cmds")) async def install(event): if event.fwd_from: return cmd = "ls userbot/plugins" process = await asyncio.create_subprocess_shell( cmd, stdout=async...
true
true
f76fe2ffa995fa3ca7c963dac1eebdd8296e8237
2,975
py
Python
Example_V-REP-YouBot-Demo-master_chauby/7_Demo_youBotPickAndPlace/code/vrep/VREP_RemoteAPIs/complexCommandTest.py
dongilc/symbolic_modern_robotics
2439f26cdc29e73f12a82c7c1e0ac8b4ddc5a353
[ "BSD-2-Clause" ]
2
2022-03-14T16:01:53.000Z
2022-03-25T09:14:21.000Z
Example_V-REP-YouBot-Demo-master_chauby/7_Demo_youBotPickAndPlace/code/vrep/VREP_RemoteAPIs/complexCommandTest.py
dongilc/symbolic_modern_robotics
2439f26cdc29e73f12a82c7c1e0ac8b4ddc5a353
[ "BSD-2-Clause" ]
null
null
null
Example_V-REP-YouBot-Demo-master_chauby/7_Demo_youBotPickAndPlace/code/vrep/VREP_RemoteAPIs/complexCommandTest.py
dongilc/symbolic_modern_robotics
2439f26cdc29e73f12a82c7c1e0ac8b4ddc5a353
[ "BSD-2-Clause" ]
1
2022-03-25T07:16:57.000Z
2022-03-25T07:16:57.000Z
# This example illustrates how to execute complex commands from # a remote API client. You can also use a similar construct for # commands that are not directly supported by the remote API. # # Load the demo scene 'remoteApiCommandServerExample.ttt' in CoppeliaSim, then # start the simulation and run this program. # #...
49.583333
230
0.698824
try: import sim except: print ('--------------------------------------------------------------') print ('"sim.py" could not be imported. This means very probably that') print ('either "sim.py" or the remoteApi library could not be found.') print ('Make sure both are in the same folder as this file,...
true
true
f76fe371aa39b7ef341ef5729e2d3d2bf04f19d7
10,948
py
Python
custom_components/keymaster/config_flow.py
wudwork/keymaster
196d265d6375ea5fb46f915a7f4efdaab76bbfb0
[ "MIT" ]
null
null
null
custom_components/keymaster/config_flow.py
wudwork/keymaster
196d265d6375ea5fb46f915a7f4efdaab76bbfb0
[ "MIT" ]
null
null
null
custom_components/keymaster/config_flow.py
wudwork/keymaster
196d265d6375ea5fb46f915a7f4efdaab76bbfb0
[ "MIT" ]
null
null
null
"""Adds config flow for keymaster.""" import asyncio import logging import os from typing import Any, Dict, List, Optional, Union import voluptuous as vol from voluptuous.schema_builder import ALLOW_EXTRA from homeassistant import config_entries from homeassistant.components.binary_sensor import DOMAIN as BINARY_DOMA...
34.755556
88
0.639204
import asyncio import logging import os from typing import Any, Dict, List, Optional, Union import voluptuous as vol from voluptuous.schema_builder import ALLOW_EXTRA from homeassistant import config_entries from homeassistant.components.binary_sensor import DOMAIN as BINARY_DOMAIN from homeassistant.components.lock ...
true
true
f76fe3ef5d1000c52d47b1e2c607943b9c8c54c0
1,667
py
Python
Seth/Grades/migrations/0002_auto_20190202_1704.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
1
2020-08-09T01:26:31.000Z
2020-08-09T01:26:31.000Z
Seth/Grades/migrations/0002_auto_20190202_1704.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
17
2017-11-15T10:06:02.000Z
2019-02-13T15:32:41.000Z
Seth/Grades/migrations/0002_auto_20190202_1704.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-02 17:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Grades', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
31.45283
133
0.579484
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Grades', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='moduleedition', opt...
true
true
f76fe41e387446701969a30218ee289dd5e0cf71
986
py
Python
tests/test_hr_upload.py
UoA-eResearch/figshare_gen_xml_from_ldap
60d2be437ce4297a46c2c1f053b538b1e0ea51a4
[ "MIT" ]
null
null
null
tests/test_hr_upload.py
UoA-eResearch/figshare_gen_xml_from_ldap
60d2be437ce4297a46c2c1f053b538b1e0ea51a4
[ "MIT" ]
null
null
null
tests/test_hr_upload.py
UoA-eResearch/figshare_gen_xml_from_ldap
60d2be437ce4297a46c2c1f053b538b1e0ea51a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests import json import os import sys import inspect API_URL = 'https://api.figshare.com/v2/institution/hrfeed/upload' filename = inspect.getframeinfo(inspect.currentframe()).filename path = os.path.dirname(os.path.abspath(filename)) KEY_FILE = path + '/conf/test_figsh_hr_key.json'...
23.47619
67
0.713996
import requests import json import os import sys import inspect API_URL = 'https://api.figshare.com/v2/institution/hrfeed/upload' filename = inspect.getframeinfo(inspect.currentframe()).filename path = os.path.dirname(os.path.abspath(filename)) KEY_FILE = path + '/conf/test_figsh_hr_key.json' FILE_NAME_DEF = path +...
true
true
f76fe4f8a9b70f99c3e916ead0bc004e5ed00c42
4,102
py
Python
reinforcement_learning/her/utils.py
mizolotu/DonkeyCarExperiments
3d6be742915efe51c0f5abda4c69a4349a555373
[ "MIT" ]
null
null
null
reinforcement_learning/her/utils.py
mizolotu/DonkeyCarExperiments
3d6be742915efe51c0f5abda4c69a4349a555373
[ "MIT" ]
null
null
null
reinforcement_learning/her/utils.py
mizolotu/DonkeyCarExperiments
3d6be742915efe51c0f5abda4c69a4349a555373
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np from reinforcement_learning.gym import spaces # Important: gym mixes up ordered and unordered keys # and the Dict space may return a different order of keys that the actual one KEY_ORDER = ['observation', 'achieved_goal', 'desired_goal'] class HERGoalEnvWrapper...
39.442308
97
0.645539
from collections import OrderedDict import numpy as np from reinforcement_learning.gym import spaces KEY_ORDER = ['observation', 'achieved_goal', 'desired_goal'] class HERGoalEnvWrapper(object): def __init__(self, env): super(HERGoalEnvWrapper, self).__init__() self.env = env self.metad...
true
true
f76fe51d3f103cc6288d1fb193eaaadfe9293e53
3,313
py
Python
tests/test_routing.py
molto0504/tiny-listener
00ba7e5abf758dba7bb0c70b83e9d922d710969a
[ "MIT" ]
2
2022-01-14T11:03:45.000Z
2022-01-28T07:44:16.000Z
tests/test_routing.py
molto0504/tiny-listener
00ba7e5abf758dba7bb0c70b83e9d922d710969a
[ "MIT" ]
null
null
null
tests/test_routing.py
molto0504/tiny-listener
00ba7e5abf758dba7bb0c70b83e9d922d710969a
[ "MIT" ]
null
null
null
import uuid from unittest import TestCase import pytest from tiny_listener.routing import CONVERTOR_TYPES, Route, RouteError, compile_path def test_compile_path() -> None: reg, convertors = compile_path("/user") assert convertors == {} _, convertors = compile_path("/user/{age:int}") assert "age" in...
35.244681
102
0.579233
import uuid from unittest import TestCase import pytest from tiny_listener.routing import CONVERTOR_TYPES, Route, RouteError, compile_path def test_compile_path() -> None: reg, convertors = compile_path("/user") assert convertors == {} _, convertors = compile_path("/user/{age:int}") assert "age" in...
true
true
f76fe5bf284d288e52c6b685154052feb4f3931d
10,804
py
Python
src/whylogs/core/statistics/stringtracker.py
cswarth/whylogs
6805b252f1d07efde84836d3924949f7ec2d97b1
[ "Apache-2.0" ]
603
2020-07-31T23:26:10.000Z
2022-03-31T23:05:36.000Z
src/whylogs/core/statistics/stringtracker.py
cswarth/whylogs
6805b252f1d07efde84836d3924949f7ec2d97b1
[ "Apache-2.0" ]
284
2021-03-02T21:28:03.000Z
2022-03-31T22:36:08.000Z
src/whylogs/core/statistics/stringtracker.py
jamie256/whylogs
e4b8288a61c00fbe033c0248a015e6e91ee6c8b0
[ "Apache-2.0" ]
39
2020-08-14T21:22:08.000Z
2022-03-29T20:24:54.000Z
import logging import math from typing import Callable, List from datasketches import frequent_strings_sketch from whylogs.core.statistics.thetasketch import ThetaSketch from whylogs.core.summaryconverters import from_string_sketch from whylogs.proto import CharPosMessage, CharPosSummary, StringsMessage, StringsSumma...
33.448916
138
0.635043
import logging import math from typing import Callable, List from datasketches import frequent_strings_sketch from whylogs.core.statistics.thetasketch import ThetaSketch from whylogs.core.summaryconverters import from_string_sketch from whylogs.proto import CharPosMessage, CharPosSummary, StringsMessage, StringsSumma...
true
true
f76fe6e47ef3bbf486ba135b79871cf9145609c0
19,883
py
Python
lib/detection_metric/Evaluator.py
JuliaChae/faster-rcnn.pytorch
220005b5dbed1dd7e5abcfb85eee9f976a8a5f58
[ "MIT" ]
null
null
null
lib/detection_metric/Evaluator.py
JuliaChae/faster-rcnn.pytorch
220005b5dbed1dd7e5abcfb85eee9f976a8a5f58
[ "MIT" ]
null
null
null
lib/detection_metric/Evaluator.py
JuliaChae/faster-rcnn.pytorch
220005b5dbed1dd7e5abcfb85eee9f976a8a5f58
[ "MIT" ]
1
2019-09-16T17:57:57.000Z
2019-09-16T17:57:57.000Z
########################################################################################### # # # Evaluator class: Implements the most popular metrics for object detection # # ...
46.564403
103
0.517175
import os import sys from collections import Counter import matplotlib.pyplot as plt import numpy as np from detection_metric.BoundingBox import * from detection_metric.BoundingBoxes import * from detection_metric.utils import * class Evaluator: def GetPascalVOCMetrics(self, boundin...
true
true
f76fe7c5fc4c62b3d468ec452591c9bc0c5b2bdc
1,719
py
Python
qiskit_braket_provider/providers/braket_provider.py
Morcu/qiskit-braket-plugin
f486dc542204d54699673835a9c0bdc61ae34cca
[ "Apache-2.0" ]
1
2022-03-22T21:07:00.000Z
2022-03-22T21:07:00.000Z
qiskit_braket_provider/providers/braket_provider.py
Morcu/qiskit-braket-plugin
f486dc542204d54699673835a9c0bdc61ae34cca
[ "Apache-2.0" ]
11
2022-02-22T14:39:26.000Z
2022-03-23T20:18:09.000Z
qiskit_braket_provider/providers/braket_provider.py
Morcu/qiskit-braket-plugin
f486dc542204d54699673835a9c0bdc61ae34cca
[ "Apache-2.0" ]
1
2022-03-13T12:41:28.000Z
2022-03-13T12:41:28.000Z
"""AWS Braket provider.""" from braket.aws import AwsDevice from braket.device_schema.dwave import DwaveDeviceCapabilities from qiskit.providers import ProviderV1 from .braket_backend import AWSBraketBackend, BraketLocalBackend class AWSBraketProvider(ProviderV1): """AWSBraketProvider class for accessing AWS Br...
32.433962
87
0.599767
from braket.aws import AwsDevice from braket.device_schema.dwave import DwaveDeviceCapabilities from qiskit.providers import ProviderV1 from .braket_backend import AWSBraketBackend, BraketLocalBackend class AWSBraketProvider(ProviderV1): def backends(self, name=None, **kwargs): if kwargs.get("local"):...
true
true
f76fe7f4f8c239b2ef1b4db5fc75cbe56b4e564f
7,494
py
Python
karborclient/tests/unit/test_shell.py
thuylt2/karborclient
884d685c3cd1c1075e895791d7027b56c30dd328
[ "Apache-2.0" ]
null
null
null
karborclient/tests/unit/test_shell.py
thuylt2/karborclient
884d685c3cd1c1075e895791d7027b56c30dd328
[ "Apache-2.0" ]
null
null
null
karborclient/tests/unit/test_shell.py
thuylt2/karborclient
884d685c3cd1c1075e895791d7027b56c30dd328
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
36.028846
79
0.604884
import logging import re import sys import fixtures from keystoneauth1 import fixture from keystoneauth1.fixture import v2 as ks_v2_fixture import mock from oslo_log import handlers from oslo_log import log import six from testtools import matchers from karborclient.common.apiclient import exceptions import karborcl...
true
true
f76fe948a0397bf72b43e34ddee0f6ce54bacac0
1,716
py
Python
crawl_wikipedia.py
camilleg/crawl-wiki
bd02ede08fbb41363b560a72ac8e7cb3bc40f859
[ "CC0-1.0" ]
2
2018-02-02T14:07:56.000Z
2021-02-15T13:50:07.000Z
crawl_wikipedia.py
camilleg/crawl-wiki
bd02ede08fbb41363b560a72ac8e7cb3bc40f859
[ "CC0-1.0" ]
null
null
null
crawl_wikipedia.py
camilleg/crawl-wiki
bd02ede08fbb41363b560a72ac8e7cb3bc40f859
[ "CC0-1.0" ]
3
2016-09-27T10:49:41.000Z
2018-02-02T14:07:58.000Z
#!/usr/bin/env python3 # # Author: Hao Tang, 2016-05-22 import sys import urllib.request import urllib.parse import json import re import datetime import time def query_page(title, lang): ''' Return a JSON string fetched from wikipedia. title is the page title to fetch written in the specified language. ...
31.2
106
0.628788
import sys import urllib.request import urllib.parse import json import re import datetime import time def query_page(title, lang): if '%' not in title: title = urllib.parse.quote_plus(title) query = (u'http://{}.wikipedia.org/w/api.php?format=json&action=query&titles={}' '&prop=revisions&rvp...
true
true
f76fe9a6a045d061e4eeb1c40018132ddda410fe
477
py
Python
kmd_labs/oracles/createroom.py
smk762/kmd_pulp
56c70121492ad930084c134823e3396757b7ce7a
[ "MIT" ]
2
2018-09-21T18:47:13.000Z
2018-10-19T13:46:31.000Z
kmd_labs/oracles/createroom.py
smk762/kmd_pulp
56c70121492ad930084c134823e3396757b7ce7a
[ "MIT" ]
null
null
null
kmd_labs/oracles/createroom.py
smk762/kmd_pulp
56c70121492ad930084c134823e3396757b7ce7a
[ "MIT" ]
2
2018-10-18T14:38:21.000Z
2018-11-06T12:11:53.000Z
#!/usr/bin/env python3 import sys import getconf CHAIN = sys.argv[1] ROOMNAME = sys.argv[2] DESCRIPTION = 'CHAT ' + sys.argv[3] RPCURL = getconf.def_credentials(CHAIN) try: create_result = getconf.oraclescreate_rpc(CHAIN, ROOMNAME, DESCRIPTION, 'S') sendraw_result = getconf.sendrawtx_rpc(CHAIN, create_result[...
28.058824
80
0.740042
import sys import getconf CHAIN = sys.argv[1] ROOMNAME = sys.argv[2] DESCRIPTION = 'CHAT ' + sys.argv[3] RPCURL = getconf.def_credentials(CHAIN) try: create_result = getconf.oraclescreate_rpc(CHAIN, ROOMNAME, DESCRIPTION, 'S') sendraw_result = getconf.sendrawtx_rpc(CHAIN, create_result['hex']) print(sendr...
true
true
f76fe9dd4c1025fe2597810a59e94c742e2d9af5
8,458
py
Python
NAIP/ndwi_timeseries.py
c11/earthengine-py-notebooks
144b57e4d952da095ba73c3cc8ce2f36291162ff
[ "MIT" ]
1
2020-05-31T14:19:59.000Z
2020-05-31T14:19:59.000Z
NAIP/ndwi_timeseries.py
c11/earthengine-py-notebooks
144b57e4d952da095ba73c3cc8ce2f36291162ff
[ "MIT" ]
null
null
null
NAIP/ndwi_timeseries.py
c11/earthengine-py-notebooks
144b57e4d952da095ba73c3cc8ce2f36291162ff
[ "MIT" ]
null
null
null
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/NAIP/ndwi_timeseries.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_blank"...
39.339535
1,021
0.686687
import subprocess try: import geemap except ImportError: print('geemap package not installed. Installing ...') subprocess.check_call(["python", '-m', 'pip', 'install', 'geemap']) try: import google.colab import geemap.eefolium as emap except: import geemap as emap import ee try: ee.Ini...
true
true
f76fea48dabedbdfe8dd39c65e698b81cc99563b
2,190
py
Python
scraper/src/tests/default_strategy/get_hierarchy_radio_test.py
mikiec84/docsearch-scraper
08aa90ee9bf91b3e5e3e0d383e4d1b4d284c56b8
[ "MIT" ]
1
2020-11-09T21:06:27.000Z
2020-11-09T21:06:27.000Z
scraper/src/tests/default_strategy/get_hierarchy_radio_test.py
mikiec84/docsearch-scraper
08aa90ee9bf91b3e5e3e0d383e4d1b4d284c56b8
[ "MIT" ]
4
2021-03-31T19:59:26.000Z
2022-03-02T15:02:55.000Z
scraper/src/tests/default_strategy/get_hierarchy_radio_test.py
gaybro8777/docsearch-scraper
08aa90ee9bf91b3e5e3e0d383e4d1b4d284c56b8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import lxml.html from .abstract import get_strategy from ...strategies.hierarchy import Hierarchy class TestGetHierarchyRadio: def test_toplevel(self): # Given hierarchy = { 'lvl0': 'Foo', 'lvl1': None, 'lvl2': None, 'lvl3': ...
26.707317
85
0.507306
import lxml.html from .abstract import get_strategy from ...strategies.hierarchy import Hierarchy class TestGetHierarchyRadio: def test_toplevel(self): hierarchy = { 'lvl0': 'Foo', 'lvl1': None, 'lvl2': None, 'lvl3': None, 'lvl4': None, ...
true
true
f76fea4f66e272373974d591606872f66e4d0e0e
14,581
py
Python
tests/api/test_auth.py
henniaufmrenni/synapse
8eddbde0e23b8cb596cd20282779d9cc58f9357c
[ "Apache-2.0" ]
7
2020-07-03T13:51:31.000Z
2022-03-10T01:26:18.000Z
tests/api/test_auth.py
henniaufmrenni/synapse
8eddbde0e23b8cb596cd20282779d9cc58f9357c
[ "Apache-2.0" ]
69
2019-09-09T13:54:30.000Z
2022-03-23T10:45:15.000Z
tests/api/test_auth.py
henniaufmrenni/synapse
8eddbde0e23b8cb596cd20282779d9cc58f9357c
[ "Apache-2.0" ]
7
2020-04-24T17:04:40.000Z
2021-07-29T23:06:25.000Z
# Copyright 2015 - 2016 OpenMarket 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 in...
43.139053
89
0.701392
from unittest.mock import Mock import pymacaroons from synapse.api.auth import Auth from synapse.api.constants import UserTypes from synapse.api.errors import ( AuthError, Codes, InvalidClientTokenError, MissingClientTokenError, ResourceLimitError, ) from synapse.storage.databases.main.registrati...
true
true
f76fea6ed7d48bef04fde2dc8c2ad24fee217dff
2,059
py
Python
official/nlp/transformer/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/transformer/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/transformer/export.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020-2022 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 agre...
37.436364
109
0.766391
import numpy as np import mindspore as ms from mindspore import Tensor from src.transformer_model import TransformerModel from src.model_utils.config import config from src.model_utils.moxing_adapter import moxing_wrapper from src.model_utils.device_adapter import get_device_id from eval import load_weights config...
true
true
f76feaf085b7f36a5d71f30a5f6bd096bab94833
567
py
Python
fetch/swimmer.py
Ilikepi739/swim
3fb571e081ed6c48ed7bd70d10f78248e7b9b642
[ "MIT" ]
null
null
null
fetch/swimmer.py
Ilikepi739/swim
3fb571e081ed6c48ed7bd70d10f78248e7b9b642
[ "MIT" ]
1
2021-06-02T00:45:01.000Z
2021-06-02T00:45:01.000Z
fetch/swimmer.py
Ilikepi739/swim
3fb571e081ed6c48ed7bd70d10f78248e7b9b642
[ "MIT" ]
null
null
null
import datetime class Swimmer: class Time: def __init__(self, name, date, time): self.name = name self.time = time self.date = date def __str__(self): if self.time is None: return "DQ" time = round(self.time, 2) ...
23.625
66
0.483245
import datetime class Swimmer: class Time: def __init__(self, name, date, time): self.name = name self.time = time self.date = date def __str__(self): if self.time is None: return "DQ" time = round(self.time, 2) ...
true
true
f76feb15cc3efc3e64416faf892ff3874f9ec30f
16,450
py
Python
boto/ec2/elb/loadbalancer.py
bopopescu/debpkg_python-boto
06f9b6f3693ba1933be8214da69cebcd5212cd97
[ "MIT" ]
15
2015-03-25T05:24:11.000Z
2021-12-18T04:24:06.000Z
boto/ec2/elb/loadbalancer.py
bopopescu/debpkg_python-boto
06f9b6f3693ba1933be8214da69cebcd5212cd97
[ "MIT" ]
null
null
null
boto/ec2/elb/loadbalancer.py
bopopescu/debpkg_python-boto
06f9b6f3693ba1933be8214da69cebcd5212cd97
[ "MIT" ]
10
2015-04-26T17:56:37.000Z
2020-09-24T14:01:53.000Z
# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 wit...
39.543269
115
0.63155
from boto.ec2.elb.healthcheck import HealthCheck from boto.ec2.elb.listener import Listener from boto.ec2.elb.listelement import ListElement from boto.ec2.elb.policies import Policies, OtherPolicy from boto.ec2.elb.securitygroup import SecurityGroup from boto.ec2.instanceinfo import InstanceInfo from boto.resultset im...
true
true
f76feb57c37edd471173755ae80575b821e01189
2,031
py
Python
python/02_train.py
PPACI/Devoxx19-TensorflowJS
4096c8ea460af8a9f8a36df01e88309568318ab8
[ "MIT" ]
3
2019-07-20T12:15:06.000Z
2020-08-06T16:56:37.000Z
python/02_train.py
PPACI/Devoxx19-TensorflowJS
4096c8ea460af8a9f8a36df01e88309568318ab8
[ "MIT" ]
null
null
null
python/02_train.py
PPACI/Devoxx19-TensorflowJS
4096c8ea460af8a9f8a36df01e88309568318ab8
[ "MIT" ]
4
2019-03-04T20:56:35.000Z
2021-04-07T16:26:44.000Z
from PIL import Image import numpy from tensorflow.python.keras.preprocessing.image import ImageDataGenerator from tensorflow.python.keras.applications.mobilenet import MobileNet from tensorflow.python.keras.models import Model from tensorflow.python.keras.layers import Dense, Dropout, BatchNormalization from tensorflo...
29.014286
114
0.694239
from PIL import Image import numpy from tensorflow.python.keras.preprocessing.image import ImageDataGenerator from tensorflow.python.keras.applications.mobilenet import MobileNet from tensorflow.python.keras.models import Model from tensorflow.python.keras.layers import Dense, Dropout, BatchNormalization from tensorflo...
true
true
f76feb7a30468c6def2247f45de7cce41fd0a6e5
16
py
Python
t1.py
arsoomrani/bigdata
a5c75ac5f7c9131e15270f16ac249b094ed87c67
[ "MIT" ]
null
null
null
t1.py
arsoomrani/bigdata
a5c75ac5f7c9131e15270f16ac249b094ed87c67
[ "MIT" ]
null
null
null
t1.py
arsoomrani/bigdata
a5c75ac5f7c9131e15270f16ac249b094ed87c67
[ "MIT" ]
null
null
null
print("my name")
16
16
0.6875
print("my name")
true
true
f76fee09ab1abffb51715ff6f7edb66c6fa436f2
97,145
py
Python
pjproject-2.2.1/pjsip-apps/src/python/pjsua.py
WachterJud/qaul.net_legacy
9c2be0a38ad6e90fadc0d1150340e37d220997ae
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-07-30T14:44:29.000Z
2019-07-30T14:44:29.000Z
pjproject-2.2.1/pjsip-apps/src/python/pjsua.py
WachterJud/qaul.net_legacy
9c2be0a38ad6e90fadc0d1150340e37d220997ae
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pjproject-2.2.1/pjsip-apps/src/python/pjsua.py
WachterJud/qaul.net_legacy
9c2be0a38ad6e90fadc0d1150340e37d220997ae
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# $Id: pjsua.py 4724 2014-01-31 08:52:09Z nanang $ # # Object oriented PJSUA wrapper. # # Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
32.964031
91
0.594297
"""Multimedia communication client library based on SIP protocol. This implements a fully featured multimedia communication client library based on PJSIP stack (http://www.pjsip.org) 1. FEATURES - Session Initiation Protocol (SIP) features: - Basic registration and call - Multiple accounts - Call...
false
true
f76fee71ead4c97cf5a74bec3744d99ea739ad53
613
py
Python
lib/galaxy_test/api/_framework.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
47
2015-10-21T23:30:30.000Z
2022-03-09T06:51:32.000Z
lib/galaxy_test/api/_framework.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
78
2019-01-18T08:12:49.000Z
2022-03-13T08:56:41.000Z
lib/galaxy_test/api/_framework.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
35
2015-10-30T13:09:40.000Z
2021-05-03T23:17:46.000Z
from unittest import TestCase from galaxy_test.base.api import UsesApiTestCaseMixin from galaxy_test.base.testcase import FunctionalTestCase try: from galaxy_test.driver.driver_util import GalaxyTestDriver except ImportError: # Galaxy libraries and galaxy test driver not available, just assume we're # targ...
27.863636
78
0.766721
from unittest import TestCase from galaxy_test.base.api import UsesApiTestCaseMixin from galaxy_test.base.testcase import FunctionalTestCase try: from galaxy_test.driver.driver_util import GalaxyTestDriver except ImportError: # targetting a remote Galaxy. GalaxyTestDriver = None # type: ignore class...
true
true
f76fef012843579af93d0a2345866a137f5c10f3
5,616
py
Python
src/abi/tools/ui/ui2_uifileconverter.py
ABI-Software/abi.tools.uigenerator
297e04e5ab8882aec8e22acd628ce9952518473e
[ "Apache-2.0" ]
null
null
null
src/abi/tools/ui/ui2_uifileconverter.py
ABI-Software/abi.tools.uigenerator
297e04e5ab8882aec8e22acd628ce9952518473e
[ "Apache-2.0" ]
null
null
null
src/abi/tools/ui/ui2_uifileconverter.py
ABI-Software/abi.tools.uigenerator
297e04e5ab8882aec8e22acd628ce9952518473e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'src\abi\tools\ui\uifileconverter.ui' # # Created: Thu Jul 12 16:54:59 2018 # by: pyside2-uic running on PySide2 5.11.0a1 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, QtGui, QtWidgets class Ui_U...
62.4
134
0.759437
from PySide2 import QtCore, QtGui, QtWidgets class Ui_UIFileConverterDialog(object): def setupUi(self, UIFileConverterDialog): UIFileConverterDialog.setObjectName("UIFileConverterDialog") UIFileConverterDialog.resize(561, 392) self.verticalLayout = QtWidgets.QVBoxLayout(UIFileConverterDia...
true
true
f76ff0cf5ebaf3d870f21bfee5888e389ab73883
33,322
py
Python
sccoda/model/dirichlet_models.py
fbrundu/scCODA
5508a0419d4a46e33897a5df69ba6d4e1753fadd
[ "BSD-3-Clause" ]
null
null
null
sccoda/model/dirichlet_models.py
fbrundu/scCODA
5508a0419d4a46e33897a5df69ba6d4e1753fadd
[ "BSD-3-Clause" ]
null
null
null
sccoda/model/dirichlet_models.py
fbrundu/scCODA
5508a0419d4a46e33897a5df69ba6d4e1753fadd
[ "BSD-3-Clause" ]
null
null
null
""" Dirichlet-multinomial models for statistical analysis of compositional changes in single-cell data. For further reference, see: Büttner, Ostner et al.: scCODA: A Bayesian model for compositional single-cell data analysis :authors: Johannes Ostner """ import numpy as np import time import warnings import tensorfl...
39.341204
204
0.585679
import numpy as np import time import warnings import tensorflow as tf import tensorflow_probability as tfp from sccoda.util import result_classes as res from typing import Optional, Tuple, Collection, Union, List tfd = tfp.distributions tfb = tfp.bijectors class CompositionalModel: def __init__( ...
true
true
f76ff32de54332af68d54d04e2b3271dc4f00173
6,353
py
Python
utils.py
ylimit/ModelDiff
f509bd2a1de20138aeb5cf105f99597a279f6f0b
[ "MIT" ]
5
2021-06-17T08:25:06.000Z
2021-09-04T14:40:53.000Z
utils.py
yuanchun-li/ModelDiff
f509bd2a1de20138aeb5cf105f99597a279f6f0b
[ "MIT" ]
1
2021-09-18T13:35:50.000Z
2021-09-30T03:24:53.000Z
utils.py
yuanchun-li/ModelDiff
f509bd2a1de20138aeb5cf105f99597a279f6f0b
[ "MIT" ]
1
2021-06-12T03:18:20.000Z
2021-06-12T03:18:20.000Z
import os import os.path as osp import sys import time import argparse from pdb import set_trace as st import json import functools import torch import numpy as np import torchvision import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import transforms class MovingAver...
29.276498
112
0.595624
import os import os.path as osp import sys import time import argparse from pdb import set_trace as st import json import functools import torch import numpy as np import torchvision import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import transforms class MovingAver...
true
true
f76ff3485024011a7ebeda9201d68f51e9c58212
9,241
py
Python
goods/views.py
dcopm999/pharmcrm2-goods
2d5878c9f2854f65b8ebf84faccb798865568d9b
[ "MIT" ]
null
null
null
goods/views.py
dcopm999/pharmcrm2-goods
2d5878c9f2854f65b8ebf84faccb798865568d9b
[ "MIT" ]
null
null
null
goods/views.py
dcopm999/pharmcrm2-goods
2d5878c9f2854f65b8ebf84faccb798865568d9b
[ "MIT" ]
null
null
null
from django.contrib.auth import mixins from django.urls import reverse_lazy from django.views import generic from goods import forms, models class HomeView(mixins.LoginRequiredMixin, generic.TemplateView): template_name = "goods/base.html" class TradeNameListView(mixins.PermissionRequiredMixin, generic.ListVie...
33.974265
88
0.775782
from django.contrib.auth import mixins from django.urls import reverse_lazy from django.views import generic from goods import forms, models class HomeView(mixins.LoginRequiredMixin, generic.TemplateView): template_name = "goods/base.html" class TradeNameListView(mixins.PermissionRequiredMixin, generic.ListVie...
true
true
f76ff3d6de39ee289b3b061f9136884d0aa398aa
3,972
py
Python
docs/conf.py
HayesJohnD/jupyter-book
475c1d606936e7e9c64f0aa44650b98235913eec
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
HayesJohnD/jupyter-book
475c1d606936e7e9c64f0aa44650b98235913eec
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
HayesJohnD/jupyter-book
475c1d606936e7e9c64f0aa44650b98235913eec
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # Auto-generated by `jupyter-book config` # If you wish to continue using _config.yml, make edits to that file and # re-generate this one. ############################################################################### author = 'The Jupyter...
82.75
726
0.702669
author = 'The Jupyter Book Community' bibtex_bibfiles = ['references.bib'] bibtex_reference_style = 'author_year' comments_config = {'hypothesis': False, 'utterances': False} copyright = '2021' exclude_patterns = ['**.ipynb_checkpoints', '.DS_Store', 'Thumbs.db', '_build', 'file-types/include-rst.rst'] execution_allow_...
true
true
f76ff4f6210ad8fd7a02c90ba29245bea6b549de
2,769
py
Python
file/file.py
LunexCoding/EasyGeometry
93bde6294403e7a6d58694c759e64f6b8829347d
[ "Apache-2.0" ]
null
null
null
file/file.py
LunexCoding/EasyGeometry
93bde6294403e7a6d58694c759e64f6b8829347d
[ "Apache-2.0" ]
null
null
null
file/file.py
LunexCoding/EasyGeometry
93bde6294403e7a6d58694c759e64f6b8829347d
[ "Apache-2.0" ]
null
null
null
from manager import manager, CURRENT_VERSION import os from view import g_view import os.path from .constants import OperationTypes try: os.mkdir('Projects') os.chdir('Projects') except OSError: os.chdir('Projects') class BaseFileOperation(object): def getMessage(self): raise NotImplemente...
24.945946
68
0.638498
from manager import manager, CURRENT_VERSION import os from view import g_view import os.path from .constants import OperationTypes try: os.mkdir('Projects') os.chdir('Projects') except OSError: os.chdir('Projects') class BaseFileOperation(object): def getMessage(self): raise NotImplemente...
true
true
f76ff566e340df57a7fc85de0ce085a78a5f7db8
3,973
py
Python
main.py
TomLiu59/AI-Final-Project
160cb39f7a6c2d51a5f131c70a2ef4677a6d554e
[ "MIT" ]
null
null
null
main.py
TomLiu59/AI-Final-Project
160cb39f7a6c2d51a5f131c70a2ef4677a6d554e
[ "MIT" ]
null
null
null
main.py
TomLiu59/AI-Final-Project
160cb39f7a6c2d51a5f131c70a2ef4677a6d554e
[ "MIT" ]
null
null
null
import numpy as np import pprint import tensorflow as tf import os from datetime import datetime from model import AlternatingAttention import data_helper import train import test1 import sys flags = tf.app.flags; flags.DEFINE_integer("embedding_dim", 384, "Dimensionality of character embedding (default: 384)") flag...
42.265957
141
0.687642
import numpy as np import pprint import tensorflow as tf import os from datetime import datetime from model import AlternatingAttention import data_helper import train import test1 import sys flags = tf.app.flags; flags.DEFINE_integer("embedding_dim", 384, "Dimensionality of character embedding (default: 384)") flag...
true
true
f76ff6e16d29a7038f119a2a1e4678d56760fdd1
61,229
py
Python
schemas/output/old_curis/old_curis.py
philipsales/couchbase-python-elasticsearch
48197458f894674f39c0c035d9c15e884b58b5e7
[ "MIT" ]
null
null
null
schemas/output/old_curis/old_curis.py
philipsales/couchbase-python-elasticsearch
48197458f894674f39c0c035d9c15e884b58b5e7
[ "MIT" ]
1
2021-06-01T22:26:12.000Z
2021-06-01T22:26:12.000Z
schemas/output/old_curis/old_curis.py
philipsales/couchbase-python-elasticsearch
48197458f894674f39c0c035d9c15e884b58b5e7
[ "MIT" ]
null
null
null
old_curis_schema = { "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://example.com/root.json", "type": "object", "title": "The Root Schema", "required": [ "cb_id", "address", "birthdate", "contact_number", "date_visits", "email_address", "fam...
34.495211
171
0.455846
old_curis_schema = { "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://example.com/root.json", "type": "object", "title": "The Root Schema", "required": [ "cb_id", "address", "birthdate", "contact_number", "date_visits", "email_address", "fam...
true
true
f76ff78f021aa026e016e4a5e4d50041de682c57
6,957
py
Python
algos/mbl_copos2_sil/run.py
ShuoZ9379/Integration_SIL_and_MBL
d7df6501a665d65eb791f7fd9b8e85fd660e6320
[ "MIT" ]
null
null
null
algos/mbl_copos2_sil/run.py
ShuoZ9379/Integration_SIL_and_MBL
d7df6501a665d65eb791f7fd9b8e85fd660e6320
[ "MIT" ]
null
null
null
algos/mbl_copos2_sil/run.py
ShuoZ9379/Integration_SIL_and_MBL
d7df6501a665d65eb791f7fd9b8e85fd660e6320
[ "MIT" ]
null
null
null
import multiprocessing import os.path as osp import gym,sys from collections import defaultdict import tensorflow as tf import numpy as np import pickle from baselines.common.vec_env import VecFrameStack,VecEnv, VecNormalize from baselines.run import parse_cmdline_kwargs, build_env, configure_logger, get_default_networ...
34.270936
176
0.650137
import multiprocessing import os.path as osp import gym,sys from collections import defaultdict import tensorflow as tf import numpy as np import pickle from baselines.common.vec_env import VecFrameStack,VecEnv, VecNormalize from baselines.run import parse_cmdline_kwargs, build_env, configure_logger, get_default_networ...
true
true
f76ff9e7d34605527a2ec2cd8400dd1aa9f9356e
3,910
py
Python
thimbles/modeling/paths.py
quidditymaster/thimbles
b122654a012f0eb4f043d1ee757f884707c97615
[ "MIT" ]
null
null
null
thimbles/modeling/paths.py
quidditymaster/thimbles
b122654a012f0eb4f043d1ee757f884707c97615
[ "MIT" ]
null
null
null
thimbles/modeling/paths.py
quidditymaster/thimbles
b122654a012f0eb4f043d1ee757f884707c97615
[ "MIT" ]
null
null
null
from copy import copy from . import Parameter, Model import networkx as nx def parent_edges(node): if isinstance(node, Parameter): mapped_mods = node.mapped_models n_mapped = len(mapped_mods) if n_mapped == 0: return [] elif n_mapped == 1: return [(node.mapp...
31.788618
119
0.640409
from copy import copy from . import Parameter, Model import networkx as nx def parent_edges(node): if isinstance(node, Parameter): mapped_mods = node.mapped_models n_mapped = len(mapped_mods) if n_mapped == 0: return [] elif n_mapped == 1: return [(node.mapp...
true
true
f76ffa0f4ffaeaf48bc52d74a2a6a124f937867f
257
py
Python
engine/library/clock.py
rudimk/celery-workflow-experiments
e8425da08f1d41cf2b514abaf63a48923db2362a
[ "MIT" ]
null
null
null
engine/library/clock.py
rudimk/celery-workflow-experiments
e8425da08f1d41cf2b514abaf63a48923db2362a
[ "MIT" ]
1
2021-06-01T22:56:07.000Z
2021-06-01T22:56:07.000Z
engine/library/clock.py
rudimk/celery-workflow-experiments
e8425da08f1d41cf2b514abaf63a48923db2362a
[ "MIT" ]
null
null
null
import arrow def getCurrentTime(obj, eng): obj['data']['currentTime'] = arrow.now().to('Asia/Kolkata').format('DD-MMM-YYYY HH:mm:ss ZZ') def getZoneTime(obj, eng): obj['data']['zonedTime'] = arrow.now().to(obj['tz']).format('DD-MMM-YYYY HH:mm:ss ZZ')
36.714286
94
0.661479
import arrow def getCurrentTime(obj, eng): obj['data']['currentTime'] = arrow.now().to('Asia/Kolkata').format('DD-MMM-YYYY HH:mm:ss ZZ') def getZoneTime(obj, eng): obj['data']['zonedTime'] = arrow.now().to(obj['tz']).format('DD-MMM-YYYY HH:mm:ss ZZ')
true
true
f76ffb5dbfa173c4fde5bbe8ff8f0c0f3cd0e8ac
14,714
py
Python
fairseq/data/denoising_dataset.py
tmtmaj/Exploiting-PrLM-for-NLG-tasks
e8752593d3ee881cf9c0fb5ed26d26fcb02e6dd5
[ "MIT" ]
null
null
null
fairseq/data/denoising_dataset.py
tmtmaj/Exploiting-PrLM-for-NLG-tasks
e8752593d3ee881cf9c0fb5ed26d26fcb02e6dd5
[ "MIT" ]
null
null
null
fairseq/data/denoising_dataset.py
tmtmaj/Exploiting-PrLM-for-NLG-tasks
e8752593d3ee881cf9c0fb5ed26d26fcb02e6dd5
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np import torch import math from . import data_utils, FairseqDataset def collate( samples, pad_idx, ...
37.631714
119
0.575302
import numpy as np import torch import math from . import data_utils, FairseqDataset def collate( samples, pad_idx, eos_idx, vocab, left_pad_source=False, left_pad_target=False, input_feeding=True, ): assert input_feeding if len(samples) == 0: return {}...
true
true
f76ffbc829a7a4cf86a9e2578fa9243affe98ed8
10,696
py
Python
keras_unet_collection/_model_swin_unet_2d.py
mrtucar/keras-unet-collection
38ac652f33799502df1933c805c04e366ee05c3d
[ "MIT" ]
259
2020-12-22T21:07:22.000Z
2022-03-28T16:23:24.000Z
keras_unet_collection/_model_swin_unet_2d.py
mrtucar/keras-unet-collection
38ac652f33799502df1933c805c04e366ee05c3d
[ "MIT" ]
44
2021-01-13T18:18:24.000Z
2022-03-31T15:16:17.000Z
keras_unet_collection/_model_swin_unet_2d.py
mrtucar/keras-unet-collection
38ac652f33799502df1933c805c04e366ee05c3d
[ "MIT" ]
89
2021-01-17T01:31:08.000Z
2022-03-31T05:32:22.000Z
from __future__ import absolute_import from keras_unet_collection.layer_utils import * from keras_unet_collection.transformer_layers import patch_extract, patch_embedding, SwinTransformerBlock, patch_merging, patch_expanding from tensorflow.keras.layers import Input, Dense from tensorflow.keras.models import Model ...
44.566667
141
0.624813
from __future__ import absolute_import from keras_unet_collection.layer_utils import * from keras_unet_collection.transformer_layers import patch_extract, patch_embedding, SwinTransformerBlock, patch_merging, patch_expanding from tensorflow.keras.layers import Input, Dense from tensorflow.keras.models import Model ...
true
true
f76ffc627657e7fc4ce366e549f3b7d0bd1f3cb7
21,345
py
Python
ding/config/config.py
PaParaZz1/DI-engine
b38144117c1ebc6eb860d8637ec8866dfbcdf2de
[ "Apache-2.0" ]
null
null
null
ding/config/config.py
PaParaZz1/DI-engine
b38144117c1ebc6eb860d8637ec8866dfbcdf2de
[ "Apache-2.0" ]
null
null
null
ding/config/config.py
PaParaZz1/DI-engine
b38144117c1ebc6eb860d8637ec8866dfbcdf2de
[ "Apache-2.0" ]
null
null
null
import json import os.path as osp import shutil import sys import tempfile from importlib import import_module from typing import Optional, Tuple, NoReturn import yaml from easydict import EasyDict from ding.utils import deep_merge_dicts from ding.envs import get_env_cls, get_env_manager_cls from ding.policy import ge...
41.527237
119
0.662029
import json import os.path as osp import shutil import sys import tempfile from importlib import import_module from typing import Optional, Tuple, NoReturn import yaml from easydict import EasyDict from ding.utils import deep_merge_dicts from ding.envs import get_env_cls, get_env_manager_cls from ding.policy import ge...
true
true
f76ffc7fb68abac8dcdc080b885b59d268cd825a
14,150
py
Python
src/torch/nn/grad.py
warcraft12321/Hyperfoods
b995cd7afe10fcbd338158c80f53ce637bfffc0c
[ "MIT" ]
51
2020-01-26T23:32:57.000Z
2022-03-20T14:49:57.000Z
src/torch/nn/grad.py
warcraft12321/Hyperfoods
b995cd7afe10fcbd338158c80f53ce637bfffc0c
[ "MIT" ]
2
2020-12-19T20:00:28.000Z
2021-03-03T20:22:45.000Z
src/torch/nn/grad.py
warcraft12321/Hyperfoods
b995cd7afe10fcbd338158c80f53ce637bfffc0c
[ "MIT" ]
33
2020-02-18T16:15:48.000Z
2022-03-24T15:12:05.000Z
"""Gradient interface""" import torch from .modules.utils import _single, _pair, _triple def _grad_input_padding(grad_output, input_size, stride, padding, kernel_size): input_size = list(input_size) k = grad_output.dim() - 2 if len(input_size) == k + 2: input_size = input_size[-k:] if len(in...
45.063694
112
0.655194
import torch from .modules.utils import _single, _pair, _triple def _grad_input_padding(grad_output, input_size, stride, padding, kernel_size): input_size = list(input_size) k = grad_output.dim() - 2 if len(input_size) == k + 2: input_size = input_size[-k:] if len(input_size) != k: r...
true
true
f76ffcb16ab8f5f1160c659fc714ede9b9efbe24
1,180
py
Python
sky/tools/install_framework_headers.py
Maxim-Mazurok/engine
c79faed71c663ea4a0ee83a8207ac5474001f7e8
[ "BSD-3-Clause" ]
1
2020-06-30T13:16:14.000Z
2020-06-30T13:16:14.000Z
sky/tools/install_framework_headers.py
Maxim-Mazurok/engine
c79faed71c663ea4a0ee83a8207ac5474001f7e8
[ "BSD-3-Clause" ]
null
null
null
sky/tools/install_framework_headers.py
Maxim-Mazurok/engine
c79faed71c663ea4a0ee83a8207ac5474001f7e8
[ "BSD-3-Clause" ]
1
2018-03-11T23:01:49.000Z
2018-03-11T23:01:49.000Z
#!/usr/bin/env python # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import errno import os import shutil import subprocess import sys def main(): parser = argparse.ArgumentParser( ...
25.652174
79
0.704237
import argparse import errno import os import shutil import subprocess import sys def main(): parser = argparse.ArgumentParser( description='Removes existing files and installs the specified headers' + 'at the given location.') parser.add_argument('--headers', nargs='+', help='The he...
true
true
f76ffcd02eb92ab639640273461df85fc1291805
3,616
py
Python
src/get_service.py
EggUncle/GiikerDesktopClient
f5de5142fd7d3b567006bf226ef70699855a58cf
[ "MIT" ]
4
2020-07-31T02:51:30.000Z
2022-01-12T03:48:33.000Z
src/get_service.py
EggUncle/GiikerDesktopClient
f5de5142fd7d3b567006bf226ef70699855a58cf
[ "MIT" ]
1
2021-05-29T18:44:19.000Z
2021-06-10T09:17:54.000Z
src/get_service.py
EggUncle/GiikerDesktopClient
f5de5142fd7d3b567006bf226ef70699855a58cf
[ "MIT" ]
null
null
null
import asyncio import platform from bleak import BleakClient MODEL_NBR_UUID = '50430B3B-0437-485E-8D91-3862CE188C31' address = 'db:d4:9e:88:24:c2' import platform import asyncio import logging from bleak import BleakClient async def run(address, loop, debug=False): log = logging.getLogger(__name__) if deb...
34.113208
96
0.485066
import asyncio import platform from bleak import BleakClient MODEL_NBR_UUID = '50430B3B-0437-485E-8D91-3862CE188C31' address = 'db:d4:9e:88:24:c2' import platform import asyncio import logging from bleak import BleakClient async def run(address, loop, debug=False): log = logging.getLogger(__name__) if deb...
true
true
f76ffd35d711da00d3e6c08b846e202d80cd764b
4,072
py
Python
test_mydat.py
vonkaenelerik/self-supervised-poisson-gaussian
7ebb4527fa79ace7d5de8c28fb484ef1a5cd1c96
[ "MIT" ]
null
null
null
test_mydat.py
vonkaenelerik/self-supervised-poisson-gaussian
7ebb4527fa79ace7d5de8c28fb484ef1a5cd1c96
[ "MIT" ]
null
null
null
test_mydat.py
vonkaenelerik/self-supervised-poisson-gaussian
7ebb4527fa79ace7d5de8c28fb484ef1a5cd1c96
[ "MIT" ]
null
null
null
import numpy as np from skimage.metrics import peak_signal_noise_ratio from nets import * from scipy.optimize import minimize import os from os import listdir from os.path import join from imageio import imread, imwrite import glob from tqdm import trange import argparse parser = argparse.ArgumentParser() parser.add_...
36.684685
116
0.659872
import numpy as np from skimage.metrics import peak_signal_noise_ratio from nets import * from scipy.optimize import minimize import os from os import listdir from os.path import join from imageio import imread, imwrite import glob from tqdm import trange import argparse parser = argparse.ArgumentParser() parser.add_...
true
true
f76ffdb0b7f1aa5ffab22d055c1db552ca94cbf0
119
py
Python
resources/__init__.py
UMCUGenetics/clarity_utils
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
1
2018-06-18T16:15:48.000Z
2018-06-18T16:15:48.000Z
resources/__init__.py
UMCUGenetics/clarity_utils
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
2
2021-03-31T20:12:34.000Z
2021-11-22T14:33:22.000Z
resources/__init__.py
UMCUGenetics/clarity_utils_usf
85c79a906bc587fbdc67d1329e0bc56923769d53
[ "MIT" ]
null
null
null
import resources.useq_run_status_mail import resources.useq_modify_samplesheet import resources.useq_group_permissions
29.75
40
0.92437
import resources.useq_run_status_mail import resources.useq_modify_samplesheet import resources.useq_group_permissions
true
true
f76ffdd64d4eeff898675541366138cfb2d5d392
5,953
py
Python
salt/states/zk_concurrency.py
waynegemmell/salt
88056db3589cccab8956c2ae4f9b733acce89461
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/states/zk_concurrency.py
waynegemmell/salt
88056db3589cccab8956c2ae4f9b733acce89461
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/states/zk_concurrency.py
waynegemmell/salt
88056db3589cccab8956c2ae4f9b733acce89461
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Control concurrency of steps within state execution using zookeeper =================================================================== :depends: kazoo :configuration: See :py:mod:`salt.modules.zookeeper` for setup instructions. This module allows you to "wrap" a state's execution with concurrency control. This ...
26.575893
103
0.609609
REQUIRED_FUNCS = ( "zk_concurrency.lock", "zk_concurrency.unlock", "zk_concurrency.party_members", ) __virtualname__ = "zk_concurrency" def __virtual__(): if not all(func in __salt__ for func in REQUIRED_FUNCS): return (False, "zk_concurrency module could not be loaded") return __virtua...
true
true
f76ffde52cb5f4c33b71e647bde1b225a0138c48
409
py
Python
modules/module_5_3_2/data/population.py
ryanjmccall/sb_ml_eng_capstone
dfa87dcbd741c6f502b6cd0eb8f31203568c09a2
[ "MIT" ]
null
null
null
modules/module_5_3_2/data/population.py
ryanjmccall/sb_ml_eng_capstone
dfa87dcbd741c6f502b6cd0eb8f31203568c09a2
[ "MIT" ]
null
null
null
modules/module_5_3_2/data/population.py
ryanjmccall/sb_ml_eng_capstone
dfa87dcbd741c6f502b6cd0eb8f31203568c09a2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import pandas as pd import os data_file = os.path.join(os.path.dirname(__file__),'Top5000population.csv') data = pd.read_csv(data_file, header=None, thousands=',',sep=',', names=['city','state','pop'], encoding='iso-8859-1') data['city'] = data['city'].str.st...
27.266667
82
0.655257
import numpy as np import pandas as pd import os data_file = os.path.join(os.path.dirname(__file__),'Top5000population.csv') data = pd.read_csv(data_file, header=None, thousands=',',sep=',', names=['city','state','pop'], encoding='iso-8859-1') data['city'] = data['city'].str.strip() cities = [{'city...
true
true
f76ffeaf4cfeecc43f8aed4c355bff4d972b3639
5,639
py
Python
src/client.py
FilPag/CommunicationPlatform
f3f8e5a23f6587709a9ea26920bfcec7d7c1320d
[ "MIT" ]
1
2021-09-17T09:06:01.000Z
2021-09-17T09:06:01.000Z
src/client.py
FilPag/CommunicationPlatform
f3f8e5a23f6587709a9ea26920bfcec7d7c1320d
[ "MIT" ]
5
2021-09-21T10:15:21.000Z
2021-09-29T20:51:11.000Z
src/client.py
FilPag/CommunicationPlatform
f3f8e5a23f6587709a9ea26920bfcec7d7c1320d
[ "MIT" ]
4
2021-09-17T12:51:34.000Z
2021-11-28T11:28:49.000Z
# Communication Platform - Client import time import json import socketio #Need this for exceptions from server import PlayerInfo from loggers import client_logger as logger from common import JsonClient as Client import socketio # Method for sending a file to your opponent during a game. class Player: def __init__...
28.770408
101
0.681326
import time import json import socketio from server import PlayerInfo from loggers import client_logger as logger from common import JsonClient as Client import socketio class Player: def __init__(self): self.Name = None self.MessageQue = [] self.PlayerInfo = None self.ReadyReturn = None self.Si...
true
true
f76ffee17f731b6f56fa740ac70c814de5ac0266
2,772
py
Python
psfxns/annmeans.py
kovenock/FATES_Parameter_Selection
eb38cc96b3cb6c02ae71426b6351e60b16ed8a56
[ "MIT" ]
null
null
null
psfxns/annmeans.py
kovenock/FATES_Parameter_Selection
eb38cc96b3cb6c02ae71426b6351e60b16ed8a56
[ "MIT" ]
null
null
null
psfxns/annmeans.py
kovenock/FATES_Parameter_Selection
eb38cc96b3cb6c02ae71426b6351e60b16ed8a56
[ "MIT" ]
null
null
null
import netCDF4 as nc4 import numpy as np def annual_mean_model(filepath, var, varfiletype, nyrs, conv_factor): """Calculate time series of model annual means for one variable. :param filepath (str): the file path and name for the data file :param var (str): the name of the variable to call from data ...
37.972603
81
0.614719
import netCDF4 as nc4 import numpy as np def annual_mean_model(filepath, var, varfiletype, nyrs, conv_factor): if varfiletype == 0: if var != 'FLH': mthts_temp = nc4.Dataset(filepath).variables[var][:, :, 0] elif var == 'FLH': mthts_temp = (nc4...
true
true
f76fff8883653f77aa08e22016486286e336b6e6
5,471
py
Python
web_scrapers/scraper_npr.py
fabioturazzidouglas/BriefMeDbLoader
18b523fa9c18ea1351a8581799fb11718caa2b6c
[ "MIT" ]
null
null
null
web_scrapers/scraper_npr.py
fabioturazzidouglas/BriefMeDbLoader
18b523fa9c18ea1351a8581799fb11718caa2b6c
[ "MIT" ]
null
null
null
web_scrapers/scraper_npr.py
fabioturazzidouglas/BriefMeDbLoader
18b523fa9c18ea1351a8581799fb11718caa2b6c
[ "MIT" ]
3
2021-05-24T20:04:49.000Z
2021-05-25T22:50:38.000Z
import requests from bs4 import BeautifulSoup from requests_html import HTMLSession from datetime import datetime import time import re def scrape_npr(max_articles_per_category): # datetime object containing current date and time for error log now = datetime.now() # Open error log file errorlog = open...
35.525974
110
0.516176
import requests from bs4 import BeautifulSoup from requests_html import HTMLSession from datetime import datetime import time import re def scrape_npr(max_articles_per_category): now = datetime.now() errorlog = open("../error.log", "w") session = HTMLSession() baseURL = "https://www....
true
true
f76fffcaf6e1fcb31af5e76b01c288b35989a709
5,302
py
Python
bvbq/interface.py
DFNaiff/BVBQ
48f0eb624483f67b748d791efc0c06ddfb6e0646
[ "MIT" ]
null
null
null
bvbq/interface.py
DFNaiff/BVBQ
48f0eb624483f67b748d791efc0c06ddfb6e0646
[ "MIT" ]
null
null
null
bvbq/interface.py
DFNaiff/BVBQ
48f0eb624483f67b748d791efc0c06ddfb6e0646
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=E1101 """ Deprecated. Use named_interface.BVBQMixMVN. Won't be documented due to this """ import torch from . import utils from . import bvbq from . import distributions from . import gp from . import acquisition from . import metrics class BVBQMixMVN(object): de...
34.881579
82
0.596567
import torch from . import utils from . import bvbq from . import distributions from . import gp from . import acquisition from . import metrics class BVBQMixMVN(object): def __init__(self, eval_function, ndim): self.set_eval_function(eval_function) self.ndim = ndim self.logprobgp = None ...
true
true
f77000c478e7f221384beb81888e3af0ceba8467
51,869
py
Python
src/sage/libs/eclib/interface.py
rekhabiswal/sage
e8633b09919542a65e7e990c8369fee30c7edefd
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/libs/eclib/interface.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/libs/eclib/interface.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
r""" Sage interface to Cremona's ``eclib`` library (also known as ``mwrank``) This is the Sage interface to John Cremona's ``eclib`` C++ library for arithmetic on elliptic curves. The classes defined in this module give Sage interpreter-level access to some of the functionality of ``eclib``. For most purposes, it is...
36.682461
184
0.550483
from sage.structure.sage_object import SageObject from sage.rings.integer_ring import IntegerRing def get_precision(): # the import here. from sage.libs.eclib.mwrank import get_precision return get_precision() def set_precision(n): # don't want to load mwrank every time Sage starts up, so we do ...
true
true
f770016e9a03fbefef88548b98f12e78242ef72c
3,787
py
Python
ProgrammingAssignments/pyretic/pyretic/kinetic/apps/mac_learner.py
Mahdi-Asaly/Coursera-SDN-Assignments
aac5d62f40c5283e296a0f87b7ec2de8986a8efc
[ "Intel" ]
null
null
null
ProgrammingAssignments/pyretic/pyretic/kinetic/apps/mac_learner.py
Mahdi-Asaly/Coursera-SDN-Assignments
aac5d62f40c5283e296a0f87b7ec2de8986a8efc
[ "Intel" ]
null
null
null
ProgrammingAssignments/pyretic/pyretic/kinetic/apps/mac_learner.py
Mahdi-Asaly/Coursera-SDN-Assignments
aac5d62f40c5283e296a0f87b7ec2de8986a8efc
[ "Intel" ]
null
null
null
from pyretic.lib.corelib import * from pyretic.lib.std import * from pyretic.kinetic.util.resetting_q import * from pyretic.kinetic.fsm_policy import * from pyretic.kinetic.drivers.json_event import JSONEvent from pyretic.kinetic.smv.model_checker import * ###########################################################...
32.09322
101
0.554265
from pyretic.lib.corelib import * from pyretic.lib.std import * from pyretic.kinetic.util.resetting_q import * from pyretic.kinetic.fsm_policy import * from pyretic.kinetic.drivers.json_event import JSONEvent from pyretic.kinetic.smv.model_checker import * class mac_learner(DynamicPolicy): def __init__(self):...
true
true
f7700240b677b2a2dcbeadba3f78b807e80a9835
2,023
py
Python
homeassistant/components/notify/twilio_sms.py
beschouten/home-assistant
f50c30bbbad4d92e342c8547630c63c0c7882803
[ "MIT" ]
1
2016-07-14T05:20:54.000Z
2016-07-14T05:20:54.000Z
homeassistant/components/notify/twilio_sms.py
beschouten/home-assistant
f50c30bbbad4d92e342c8547630c63c0c7882803
[ "MIT" ]
null
null
null
homeassistant/components/notify/twilio_sms.py
beschouten/home-assistant
f50c30bbbad4d92e342c8547630c63c0c7882803
[ "MIT" ]
1
2018-11-22T13:55:23.000Z
2018-11-22T13:55:23.000Z
""" Twilio SMS platform for notify component. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/notify.twilio_sms/ """ import logging from homeassistant.components.notify import ( ATTR_TARGET, DOMAIN, BaseNotificationService) from homeassistant.helpers...
32.111111
74
0.63569
import logging from homeassistant.components.notify import ( ATTR_TARGET, DOMAIN, BaseNotificationService) from homeassistant.helpers import validate_config _LOGGER = logging.getLogger(__name__) REQUIREMENTS = ["twilio==5.4.0"] CONF_ACCOUNT_SID = "account_sid" CONF_AUTH_TOKEN = "auth_token" CONF_FROM_NUMBER = "f...
true
true
f7700271181e5e912d278bdb96abb448c8af5fca
576
py
Python
cumulus/steps/ec2/block_device_data.py
john-shaskin/cumulus
4687d83ab324e57d900d9888da62e2fb7f4505e9
[ "MIT" ]
null
null
null
cumulus/steps/ec2/block_device_data.py
john-shaskin/cumulus
4687d83ab324e57d900d9888da62e2fb7f4505e9
[ "MIT" ]
11
2018-09-10T22:57:31.000Z
2019-02-28T17:21:24.000Z
cumulus/steps/ec2/block_device_data.py
john-shaskin/cumulus
4687d83ab324e57d900d9888da62e2fb7f4505e9
[ "MIT" ]
3
2018-09-05T20:33:35.000Z
2018-10-17T16:01:26.000Z
from cumulus.chain import step from cumulus.util.template_query import TemplateQuery from troposphere import autoscaling class BlockDeviceData(step.Step): def __init__(self, volume): step.Step.__init__(self) self.volume = volume def handle(self, chain_context): launc...
33.882353
106
0.668403
from cumulus.chain import step from cumulus.util.template_query import TemplateQuery from troposphere import autoscaling class BlockDeviceData(step.Step): def __init__(self, volume): step.Step.__init__(self) self.volume = volume def handle(self, chain_context): launc...
true
true
f77002d082555f99fd182884b6543ffd70f7e357
1,621
py
Python
periodic_job.py
nkay08/simple_mail_forwarding_program
a468e41dd9a1bd79b344042395c97181c9db7b7d
[ "MIT" ]
null
null
null
periodic_job.py
nkay08/simple_mail_forwarding_program
a468e41dd9a1bd79b344042395c97181c9db7b7d
[ "MIT" ]
null
null
null
periodic_job.py
nkay08/simple_mail_forwarding_program
a468e41dd9a1bd79b344042395c97181c9db7b7d
[ "MIT" ]
null
null
null
import threading import logging import datetime logger = logging.getLogger() def schedule_function(interval: int, worker_func: callable, args: [] = None, kwargs: {} = None, iterations: int = 0): try: if iterations != 1: threading.Timer( interval, schedule_funct...
30.018519
117
0.566934
import threading import logging import datetime logger = logging.getLogger() def schedule_function(interval: int, worker_func: callable, args: [] = None, kwargs: {} = None, iterations: int = 0): try: if iterations != 1: threading.Timer( interval, schedule_funct...
true
true
f77002e30c879bd8eff18c96c9dea28088bbbb4f
3,195
py
Python
autoscaler/pod_autoscaler.py
ahmadalkhansa/kube-htc
a2fb8aa9e9ea25cddf03260f0b4863e8dcf53890
[ "Apache-2.0" ]
null
null
null
autoscaler/pod_autoscaler.py
ahmadalkhansa/kube-htc
a2fb8aa9e9ea25cddf03260f0b4863e8dcf53890
[ "Apache-2.0" ]
1
2021-04-23T10:36:38.000Z
2021-04-23T10:36:38.000Z
autoscaler/pod_autoscaler.py
ahmadalkhansa/kube-htc
a2fb8aa9e9ea25cddf03260f0b4863e8dcf53890
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.6 import sys import os import yaml import time import threading def detector(): global pend global workers global avg_work global slots print(workers, pend) while True: try: pend = 0 workers = {} avg_work = 0 slots = 0 pods = os.popen("kubectl get pods | grep worker") pod...
30.428571
883
0.642254
import sys import os import yaml import time import threading def detector(): global pend global workers global avg_work global slots print(workers, pend) while True: try: pend = 0 workers = {} avg_work = 0 slots = 0 pods = os.popen("kubectl get pods | grep worker") pods = pods.read().split...
true
true
f77003016b00bbe2ebbbea694ae57d72c833a779
5,580
py
Python
pymoodo/Connection.py
avassem85/pymoodo
9c7a35cc4d1e4d751bd9bce4257eb361a6b287bd
[ "MIT" ]
2
2018-12-17T23:43:41.000Z
2020-03-15T06:12:36.000Z
pymoodo/Connection.py
avassem85/pymoodo
9c7a35cc4d1e4d751bd9bce4257eb361a6b287bd
[ "MIT" ]
1
2021-04-21T14:44:42.000Z
2021-05-09T19:11:57.000Z
pymoodo/Connection.py
avassem85/pymoodo
9c7a35cc4d1e4d751bd9bce4257eb361a6b287bd
[ "MIT" ]
1
2021-04-23T08:46:31.000Z
2021-04-23T08:46:31.000Z
import calendar import datetime import json import requests class Connection(object): """Connection to Moodo API""" def __init__(self, email, password): """Initialize connection object""" self.__authenticated = False self.user_agent = 'Mozilla/5.0' self.baseurl = 'https://rest.m...
38.75
105
0.611828
import calendar import datetime import json import requests class Connection(object): def __init__(self, email, password): self.__authenticated = False self.user_agent = 'Mozilla/5.0' self.baseurl = 'https://rest.moodo.co' self.api = '/api' self.oauth = { "email"...
true
true
f7700320d0e7aaeb9a877055c876b2dc8b91eebe
1,805
py
Python
mppsolar/outputs/screen.py
suanlian1/mpp-solar
6ff582eccc8107aae21039617fe7e50f486fea29
[ "MIT" ]
null
null
null
mppsolar/outputs/screen.py
suanlian1/mpp-solar
6ff582eccc8107aae21039617fe7e50f486fea29
[ "MIT" ]
null
null
null
mppsolar/outputs/screen.py
suanlian1/mpp-solar
6ff582eccc8107aae21039617fe7e50f486fea29
[ "MIT" ]
null
null
null
import logging import re from .baseoutput import baseoutput from ..helpers import get_kwargs from ..helpers import key_wanted log = logging.getLogger("screen") class screen(baseoutput): def __str__(self): return "[the default output module] outputs the results to standard out in a slightly formatted way...
32.818182
108
0.577285
import logging import re from .baseoutput import baseoutput from ..helpers import get_kwargs from ..helpers import key_wanted log = logging.getLogger("screen") class screen(baseoutput): def __str__(self): return "[the default output module] outputs the results to standard out in a slightly formatted way...
true
true
f77003fbd842f2cb93f0a2cc590267cb6363c8a5
81
py
Python
run_game.py
karx1/GusTheGame
b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3
[ "Unlicense" ]
1
2021-08-31T13:44:48.000Z
2021-08-31T13:44:48.000Z
run_game.py
karx1/GusTheGame
b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3
[ "Unlicense" ]
null
null
null
run_game.py
karx1/GusTheGame
b0deb1c74816d6e6209ab4ce1916aaaf333b5fd3
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from hv import main if __name__ == "__main__": main()
13.5
26
0.654321
from hv import main if __name__ == "__main__": main()
true
true
f77004138f54ec1f9e696984c31cb09e31fe4646
3,806
py
Python
gaphor/UML/tests/test_umlfmt.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
gaphor/UML/tests/test_umlfmt.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
gaphor/UML/tests/test_umlfmt.py
tuxcell/gaphor
22eb13479f589a0105ad25a11aed968e9ad932dc
[ "Apache-2.0" ]
null
null
null
"""Formatting of UML model elements into text tests.""" import pytest from gaphor.core.eventmanager import EventManager from gaphor.core.modeling import ElementFactory from gaphor.UML import model from gaphor.UML import uml as UML from gaphor.UML.umlfmt import format from gaphor.UML.umllex import parse @pytest.fixt...
29.734375
87
0.605097
import pytest from gaphor.core.eventmanager import EventManager from gaphor.core.modeling import ElementFactory from gaphor.UML import model from gaphor.UML import uml as UML from gaphor.UML.umlfmt import format from gaphor.UML.umllex import parse @pytest.fixture def factory(): event_manager = EventManager() ...
true
true
f77004ef0a5b75bf68e38f9d40f81b6cd5322ad1
1,274
py
Python
apps/etl/migrations/0024_auto_20170410_1348.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
apps/etl/migrations/0024_auto_20170410_1348.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
apps/etl/migrations/0024_auto_20170410_1348.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('etl', '0023_auto_20170329_1610'), ] operations = [ migrations.RemoveField( model_name='featurecardtype', ...
24.980392
43
0.538462
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('etl', '0023_auto_20170329_1610'), ] operations = [ migrations.RemoveField( model_name='featurecardtype', name='created_on', ...
true
true
f770067a5e0db9f7ec1cac6ec91745a2c7336c17
398
py
Python
test/tools/getjsfm.py
gurisxie/weex-test
0b3a68a885d5183fc48629da91ec486797d459d2
[ "Apache-2.0" ]
null
null
null
test/tools/getjsfm.py
gurisxie/weex-test
0b3a68a885d5183fc48629da91ec486797d459d2
[ "Apache-2.0" ]
null
null
null
test/tools/getjsfm.py
gurisxie/weex-test
0b3a68a885d5183fc48629da91ec486797d459d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding=utf-8 -*- import os import os.path import re import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='get jsfm version....') parser.add_argument("-path", type=str, help="jsfm path") args = parser.parse_args() f = open(args.path, 'r') content =...
20.947368
69
0.670854
import os import os.path import re import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='get jsfm version....') parser.add_argument("-path", type=str, help="jsfm path") args = parser.parse_args() f = open(args.path, 'r') content = f.read(110) pattern = re.compile('"(.*)"')...
false
true
f77006a0cba35436bf769e796e55e0747a0bd925
1,776
py
Python
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/UpdateDeviceGroupRequest.py
liuzheng/aliyun-openapi-python-sdk
1ba6743f3d6f2cef57ec9e3be1754b04293c3150
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/UpdateDeviceGroupRequest.py
liuzheng/aliyun-openapi-python-sdk
1ba6743f3d6f2cef57ec9e3be1754b04293c3150
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/UpdateDeviceGroupRequest.py
liuzheng/aliyun-openapi-python-sdk
1ba6743f3d6f2cef57ec9e3be1754b04293c3150
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.52
74
0.766329
from aliyunsdkcore.request import RpcRequest from aliyunsdkiot.endpoint import endpoint_data class UpdateDeviceGroupRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Iot', '2018-01-20', 'UpdateDeviceGroup') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint...
true
true
f77007154857fa621523bd439e4a8190f7adaffe
15,102
py
Python
MicroWebSrv2/httpRequest.py
tf131/MicroWebSrv2
4e4dfd61eaa01d96b16c9a0324123aa465cf9493
[ "MIT" ]
null
null
null
MicroWebSrv2/httpRequest.py
tf131/MicroWebSrv2
4e4dfd61eaa01d96b16c9a0324123aa465cf9493
[ "MIT" ]
null
null
null
MicroWebSrv2/httpRequest.py
tf131/MicroWebSrv2
4e4dfd61eaa01d96b16c9a0324123aa465cf9493
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright © 2019 Jean-Christophe Bos & HC² (www.hc2.fr) """ from . import * from .httpResponse import HttpResponse from binascii import a2b_base64 import json # ============================================================================ # ===( HttpRequest )=======...
36.302885
100
0.383525
from . import * from .httpResponse import HttpResponse from binascii import a2b_base64 import json class HttpRequest : MAX_RECV_HEADER_LINES = 100 def __init__(self, microWebSrv2, xasCli) : self._mws2 = microWebSrv2 self._xasCli = xasCli self._waitF...
true
true
f770074a504949276aabd09a94b4bfa941709c9e
5,051
py
Python
setup.py
nii-cloud/dodai-compute
d9bea632913c0ddc6f59c6120f60daea369d09cc
[ "Apache-2.0" ]
null
null
null
setup.py
nii-cloud/dodai-compute
d9bea632913c0ddc6f59c6120f60daea369d09cc
[ "Apache-2.0" ]
null
null
null
setup.py
nii-cloud/dodai-compute
d9bea632913c0ddc6f59c6120f60daea369d09cc
[ "Apache-2.0" ]
1
2020-05-10T16:36:03.000Z
2020-05-10T16:36:03.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
34.59589
79
0.623045
import gettext import glob import os import subprocess import sys from setuptools import find_packages from setuptools.command.sdist import sdist # i18n commands won't be available if DistUtilsExtra is try: from DistUtilsExtra.auto import setup except ImportError: from setuptools import setup print "War...
false
true
f770082c5cd4b41c27f154ae55cfa5ab73bbea28
4,628
py
Python
cohesity_management_sdk/models/environment_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2019-11-07T23:19:32.000Z
2019-11-07T23:19:32.000Z
cohesity_management_sdk/models/environment_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/environment_enum.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class EnvironmentEnum(object): """Implementation of the 'Environment' enum. Specifies the environment (such as 'kVMware' or 'kSQL') where the Protection Source exists. Depending on the environment, one of the following Protection Sources are init...
34.029412
77
0.707865
class EnvironmentEnum(object): K_VMWARE = 'kVMware' K_HYPERV = 'kHyperV' KSQL = 'kSQL' KVIEW = 'kView' KPUPPETEER = 'kPuppeteer' KPHYSICAL = 'kPhysical' KPURE = 'kPure' KAZURE = 'kAzure' KNETAPP = 'kNetapp' KAGENT = 'kAgent' KGENERICNAS = 'kGenericNas' KACRO...
true
true
f77008303e838a468498c6e82332a53ef690d60b
9,201
py
Python
setup.py
yuvipanda/nbconvert
bc9802c98c2a03393d40a7bbbe2871acc8122c25
[ "BSD-3-Clause-Clear" ]
1,367
2015-05-24T22:59:22.000Z
2022-03-31T07:44:02.000Z
setup.py
yuvipanda/nbconvert
bc9802c98c2a03393d40a7bbbe2871acc8122c25
[ "BSD-3-Clause-Clear" ]
1,534
2015-05-08T21:47:15.000Z
2022-03-31T10:09:31.000Z
setup.py
yuvipanda/nbconvert
bc9802c98c2a03393d40a7bbbe2871acc8122c25
[ "BSD-3-Clause-Clear" ]
586
2015-05-17T01:21:02.000Z
2022-03-24T17:06:05.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import os import io import sys from setuptools import setup from setuptools.command.bdist_egg import bdist_egg from setuptools.command.develop import develop from io import Byte...
32.860714
143
0.619389
import os import io import sys from setuptools import setup from setuptools.command.bdist_egg import bdist_egg from setuptools.command.develop import develop from io import BytesIO from urllib.request import urlopen from distutils.cmd import Command from distutils.command.build import build from distutils.command....
true
true
f77008b54535ac46596ae5344c6f0af24e633708
22,248
py
Python
lektor/publisher.py
philippbosch/lektor
3420053e9f20645f70491e23cfeb4b43bb6fcd6f
[ "BSD-3-Clause" ]
null
null
null
lektor/publisher.py
philippbosch/lektor
3420053e9f20645f70491e23cfeb4b43bb6fcd6f
[ "BSD-3-Clause" ]
null
null
null
lektor/publisher.py
philippbosch/lektor
3420053e9f20645f70491e23cfeb4b43bb6fcd6f
[ "BSD-3-Clause" ]
null
null
null
import errno import hashlib import os import posixpath import select import shutil import subprocess import tempfile import threading from contextlib import contextmanager from werkzeug import urls from lektor._compat import (iteritems, iterkeys, range_type, string_types, text_type, queue, StringIO) from lektor.e...
33.556561
78
0.547285
import errno import hashlib import os import posixpath import select import shutil import subprocess import tempfile import threading from contextlib import contextmanager from werkzeug import urls from lektor._compat import (iteritems, iterkeys, range_type, string_types, text_type, queue, StringIO) from lektor.e...
true
true
f77009da4bfc2b12e1b87a1be8e78d2c9cf47d4d
1,647
py
Python
gist/fancy.py
liuyang1/dotfiles
d43c051c2daff0f21cc1921f267786dcafcc7cca
[ "MIT" ]
1
2021-01-15T03:41:46.000Z
2021-01-15T03:41:46.000Z
gist/fancy.py
liuyang1/dotfiles
d43c051c2daff0f21cc1921f267786dcafcc7cca
[ "MIT" ]
null
null
null
gist/fancy.py
liuyang1/dotfiles
d43c051c2daff0f21cc1921f267786dcafcc7cca
[ "MIT" ]
1
2019-05-27T11:39:08.000Z
2019-05-27T11:39:08.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- lst = [('➙', 'Heavy Rightwards'), ('➢', ''), ('➣', ''), ('➤', 'Black Rightwards arrow head'), ('⬅', 'Leftwards black arrow'), ('➡', 'Black Rightwards arrow'), ('➳', ''), ('➵', ''), ('➸', 'Heavy Black Feathered'), ...
24.58209
52
0.319976
lst = [('➙', 'Heavy Rightwards'), ('➢', ''), ('➣', ''), ('➤', 'Black Rightwards arrow head'), ('⬅', 'Leftwards black arrow'), ('➡', 'Black Rightwards arrow'), ('➳', ''), ('➵', ''), ('➸', 'Heavy Black Feathered'), ('➼', 'Wedge-Tailed Rightwards Arrow'), ...
false
true
f7700a588a394443a16228b5cc33f3aba203400f
532
py
Python
stickers_search.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
stickers_search.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
stickers_search.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver driver = webdriver.Chrome() driver.get("http://localhost/litecart/en/") products_list = driver.find_elements_by_css_selector("div li.product.column.shadow.hover-light") #stickers_list = driver.find_elements_by_css_selector("div li.product.column.shadow.hover-light .sticker") for i in ...
35.466667
106
0.759398
from selenium import webdriver driver = webdriver.Chrome() driver.get("http://localhost/litecart/en/") products_list = driver.find_elements_by_css_selector("div li.product.column.shadow.hover-light") for i in range(len(products_list)): sticker = products_list[i].find_elements_by_class_name("sticker") if len...
true
true
f7700a737c52a1e6b24a26a3ae1c33d5aa3c1770
5,268
py
Python
limits/storage/memcached.py
odidev/limits
865e44ca2e77a6059f8de94478236f9dbbd8f638
[ "MIT" ]
null
null
null
limits/storage/memcached.py
odidev/limits
865e44ca2e77a6059f8de94478236f9dbbd8f638
[ "MIT" ]
null
null
null
limits/storage/memcached.py
odidev/limits
865e44ca2e77a6059f8de94478236f9dbbd8f638
[ "MIT" ]
1
2022-03-01T08:33:10.000Z
2022-03-01T08:33:10.000Z
import inspect import threading import time import urllib.parse from ..errors import ConfigurationError from ..util import get_dependency from .base import Storage class MemcachedStorage(Storage): """ Rate limit storage with memcached as backend. Depends on :pypi:`pymemcache`. """ STORAGE_SCHEM...
30.807018
88
0.563971
import inspect import threading import time import urllib.parse from ..errors import ConfigurationError from ..util import get_dependency from .base import Storage class MemcachedStorage(Storage): STORAGE_SCHEME = ["memcached"] def __init__(self, uri: str, **options): parsed = urllib.parse.urlparse...
true
true
f7700af8dad439ff54ce675b8467642bf5cd883f
10,525
py
Python
train/training.py
YoNyeoSeok/refinenet-pytorch
34dfa49a141630247aef1d5d2424c823ecba46c7
[ "BSD-2-Clause" ]
null
null
null
train/training.py
YoNyeoSeok/refinenet-pytorch
34dfa49a141630247aef1d5d2424c823ecba46c7
[ "BSD-2-Clause" ]
null
null
null
train/training.py
YoNyeoSeok/refinenet-pytorch
34dfa49a141630247aef1d5d2424c823ecba46c7
[ "BSD-2-Clause" ]
null
null
null
import sys sys.path.append('/home/user/research/refinenet-pytorch') import os import numpy as np import tqdm import argparse import math import random from PIL import Image import torch import torch.nn as nn import datasets as ds from torchvision import transforms as trf from models.refinenet_resnet import refinenet_r...
39.716981
131
0.702803
import sys sys.path.append('/home/user/research/refinenet-pytorch') import os import numpy as np import tqdm import argparse import math import random from PIL import Image import torch import torch.nn as nn import datasets as ds from torchvision import transforms as trf from models.refinenet_resnet import refinenet_r...
true
true
f7700afcce5235eb66c100c4faf4be4792bfbc21
4,193
py
Python
docs/conf.py
robotpy/robotpy-adi
6333f5671dbe37ebf560e9b39dd1262e8678a02d
[ "MIT" ]
null
null
null
docs/conf.py
robotpy/robotpy-adi
6333f5671dbe37ebf560e9b39dd1262e8678a02d
[ "MIT" ]
null
null
null
docs/conf.py
robotpy/robotpy-adi
6333f5671dbe37ebf560e9b39dd1262e8678a02d
[ "MIT" ]
1
2021-01-19T23:17:20.000Z
2021-01-19T23:17:20.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import os from os.path import abspath, join, dirname import adis16470 import adis16470.version # -- RTD configuration ------------------------------------------------ # on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthe...
29.737589
98
0.647985
import sys import os from os.path import abspath, join, dirname import adis16470 import adis16470.version on_rtd = os.environ.get("READTHEDOCS", None) == "True" rtd_version = os.environ.get("READTHEDOCS_VERSION", "latest") if rtd_version not in ["stable", "latest"]: rtd_version = "stable" # -- General config...
true
true
f7700b81a7521fb9f9dd9e03d621ad3f4fef0648
133
py
Python
217-contains-duplicate/217-contains-duplicate.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
217-contains-duplicate/217-contains-duplicate.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
217-contains-duplicate/217-contains-duplicate.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def containsDuplicate(self, nums: List[int]) -> bool: return True if len(nums)!=len(set(nums)) else False
44.333333
59
0.676692
class Solution: def containsDuplicate(self, nums: List[int]) -> bool: return True if len(nums)!=len(set(nums)) else False
true
true
f7700bbfa001b1ab121903b0331f7c21d9f324bf
463
py
Python
Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/PRIMER PARCIAL/venv/Scripts/pip3.7-script.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/PRIMER PARCIAL/venv/Scripts/pip3.7-script.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/PRIMER PARCIAL/venv/Scripts/pip3.7-script.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
#!"C:\Users\sopor\Desktop\AGO-DIC 19\DAS\ERIK EDUARDO MONTOYA MARTINEZ\PRIMER PARCIAL\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = ...
35.615385
110
0.678186
__requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( load_entry_point('pip==10.0.1', 'console_scripts', 'pip3.7')() )
true
true
f7700bfb836ffbd7c91a24204e2fba541d2002ac
70,938
py
Python
saleor/graphql/page/tests/test_page.py
haoyang09/saleor
33f17288459012aab28d517c899fac439a07b729
[ "CC-BY-4.0" ]
1
2021-08-23T09:23:43.000Z
2021-08-23T09:23:43.000Z
saleor/graphql/page/tests/test_page.py
haoyang09/saleor
33f17288459012aab28d517c899fac439a07b729
[ "CC-BY-4.0" ]
172
2021-05-03T04:34:37.000Z
2022-03-28T04:41:53.000Z
saleor/graphql/page/tests/test_page.py
luart-terra/saleor-core
62787467b3508c91b88042e27afa618acb741fef
[ "CC-BY-4.0" ]
1
2022-03-24T08:37:58.000Z
2022-03-24T08:37:58.000Z
from datetime import date, datetime from unittest import mock import graphene import pytest import pytz from django.utils import timezone from django.utils.text import slugify from freezegun import freeze_time from ....attribute.models import AttributeValue from ....attribute.utils import associate_attribute_values_t...
31.570093
88
0.635625
from datetime import date, datetime from unittest import mock import graphene import pytest import pytz from django.utils import timezone from django.utils.text import slugify from freezegun import freeze_time from ....attribute.models import AttributeValue from ....attribute.utils import associate_attribute_values_t...
true
true
f7700c135159a0c161cc40cba252c4c398836184
250
py
Python
setup.py
tnakaicode/PyORBIT
0b346a559700c19223b2cef152f25498d2c27838
[ "MIT" ]
12
2016-05-30T14:54:54.000Z
2021-09-06T02:59:41.000Z
setup.py
tnakaicode/PyORBIT
0b346a559700c19223b2cef152f25498d2c27838
[ "MIT" ]
4
2017-11-12T16:43:13.000Z
2021-03-22T18:57:40.000Z
setup.py
tnakaicode/PyORBIT
0b346a559700c19223b2cef152f25498d2c27838
[ "MIT" ]
4
2016-09-06T16:00:50.000Z
2022-01-09T15:06:37.000Z
from distutils.core import setup from Cython.Build import cythonize import sys setup( name="pyorbit", author="Luca Malavolta", ext_modules = cythonize("./pyorbit/*/*.pyx", compiler_directives={'language_level' : sys.version_info[0]}), )
25
111
0.724
from distutils.core import setup from Cython.Build import cythonize import sys setup( name="pyorbit", author="Luca Malavolta", ext_modules = cythonize("./pyorbit/*/*.pyx", compiler_directives={'language_level' : sys.version_info[0]}), )
true
true
f7700c9cbb753db4e28a36d9366ad741fc4f947b
30,238
py
Python
core/httpd.py
jayvdb/maltrail
4a23621cea36309a195bffb8703d42fb2ab88908
[ "MIT" ]
2
2020-03-26T14:55:59.000Z
2020-12-16T09:13:51.000Z
core/httpd.py
jayvdb/maltrail
4a23621cea36309a195bffb8703d42fb2ab88908
[ "MIT" ]
null
null
null
core/httpd.py
jayvdb/maltrail
4a23621cea36309a195bffb8703d42fb2ab88908
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2014-2020 Maltrail developers (https://github.com/stamparm/maltrail/) See the file 'LICENSE' for copying permission """ from __future__ import print_function import datetime import glob import gzip import hashlib import io import json import mimetypes import os import re import...
44.467647
294
0.509657
from __future__ import print_function import datetime import glob import gzip import hashlib import io import json import mimetypes import os import re import socket import subprocess import threading import time import traceback from core.addr import addr_to_int from core.addr import int_to_addr from core.addr impo...
true
true
f7700d6d887aa15678f8d4f3f23a2b9c2bcad2aa
11,964
py
Python
cms_content_patch/models.py
indexofire/django-cms-content
d6b214542ab618b6fa4645483fa5bf58e8212f86
[ "BSD-3-Clause" ]
1
2020-03-22T21:16:27.000Z
2020-03-22T21:16:27.000Z
cms_content_patch/models.py
indexofire/django-cms-content
d6b214542ab618b6fa4645483fa5bf58e8212f86
[ "BSD-3-Clause" ]
null
null
null
cms_content_patch/models.py
indexofire/django-cms-content
d6b214542ab618b6fa4645483fa5bf58e8212f86
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from django.db import models from django.conf import settings from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.contrib.comments.signals import comment_was_posted from dj...
26.825112
101
0.591942
from datetime import datetime from django.db import models from django.conf import settings from django.core.urlresolvers import reverse from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.contrib.comments.signals import comment_was_posted from django.utils.translation i...
true
true
f7700dbfef3df79dd73ef3932d78ad07b73796aa
892
py
Python
runtests.py
autosportlabs/podium-api
60449b74b46f3115a0b041db5404d3e1c884b86f
[ "MIT" ]
1
2018-05-31T01:32:08.000Z
2018-05-31T01:32:08.000Z
runtests.py
autosportlabs/podium-api
60449b74b46f3115a0b041db5404d3e1c884b86f
[ "MIT" ]
4
2017-08-31T01:21:24.000Z
2018-09-19T01:55:34.000Z
runtests.py
autosportlabs/podium-api
60449b74b46f3115a0b041db5404d3e1c884b86f
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Podium API # # Copyright (C) 2014-2016 Autosport Labs # # This file is part of the Race Capture App # # This is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Licens...
31.857143
67
0.756726
import unittest loader = unittest.TestLoader() tests = loader.discover('.') testRunner = unittest.runner.TextTestRunner() testRunner.run(tests)
true
true
f7700de8e34be5730bddcc4e5a131d66ccdc439f
4,174
py
Python
code/document_registrar/document_registrar.py
keshava/jarvis-be
d52d3a68c7d55c817331082d4faa0089b15d0614
[ "Apache-2.0" ]
35
2021-03-17T18:36:14.000Z
2022-02-21T10:14:22.000Z
code/document_registrar/document_registrar.py
keshava/jarvis-be
d52d3a68c7d55c817331082d4faa0089b15d0614
[ "Apache-2.0" ]
1
2021-09-17T17:42:59.000Z
2021-09-17T17:43:05.000Z
code/document_registrar/document_registrar.py
aws-samples/document-processing-pipeline-for-regulated-industries
1b86d2da846a74d98b63feac1603da81aa63e0f6
[ "Apache-2.0" ]
8
2021-04-28T01:14:25.000Z
2022-01-31T19:27:10.000Z
import json import os import uuid import urllib.parse from metadata import DocumentRegistryClient, DocumentLineageClient from helper import FileHelper, S3Helper metadataTopic = os.environ.get('METADATA_SNS_TOPIC_ARN', None) if not metadataTopic: raise ValueError("Missing arguments.") ## The body should be custo...
41.74
119
0.657882
import json import os import uuid import urllib.parse from metadata import DocumentRegistryClient, DocumentLineageClient from helper import FileHelper, S3Helper metadataTopic = os.environ.get('METADATA_SNS_TOPIC_ARN', None) if not metadataTopic: raise ValueError("Missing arguments.") registry_client = Document...
true
true
f7700e2925395b2ba777b78a380b939d69a78dc5
2,027
py
Python
umu-python/app/service/document_service.py
corner4world/cubeai
ffe3ded358a70cd0a512420f7df2bb931eaae1c9
[ "Apache-2.0" ]
null
null
null
umu-python/app/service/document_service.py
corner4world/cubeai
ffe3ded358a70cd0a512420f7df2bb931eaae1c9
[ "Apache-2.0" ]
null
null
null
umu-python/app/service/document_service.py
corner4world/cubeai
ffe3ded358a70cd0a512420f7df2bb931eaae1c9
[ "Apache-2.0" ]
null
null
null
from app.service import token_service from app.service import umm_client from app.service import nexus_client from app.domain.solution import Solution from app.domain.document import Document def upload_document(**args): http_request = args.get('http_request') token = token_service.get_token(http_request) ...
30.253731
84
0.709423
from app.service import token_service from app.service import umm_client from app.service import nexus_client from app.domain.solution import Solution from app.domain.document import Document def upload_document(**args): http_request = args.get('http_request') token = token_service.get_token(http_request) ...
true
true
f7700f1afaabcfdd0125b2ed9af75a92c56d0cbe
31
py
Python
tf_rl/__init__.py
KEVINYZY/tensorflow-deepq
cf8ca1c658bb2157552b45a030691cbf5dbcce53
[ "MIT" ]
1,094
2015-11-13T22:47:17.000Z
2017-05-14T12:46:37.000Z
gpvolve/simulate/__init__.py
clararehmann/gpvolve
4e45b53b72184425c24d57b2e8779d3d51de39d7
[ "MIT" ]
32
2015-11-15T18:55:56.000Z
2017-04-14T17:15:23.000Z
gpvolve/simulate/__init__.py
clararehmann/gpvolve
4e45b53b72184425c24d57b2e8779d3d51de39d7
[ "MIT" ]
298
2015-11-15T11:46:46.000Z
2017-05-14T00:26:44.000Z
from .simulate import simulate
15.5
30
0.83871
from .simulate import simulate
true
true
f7700f27a219bf74323cd8821ccd4eb7158f8892
2,387
py
Python
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_result_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
43.4
149
0.613741
from msrest.serialization import Model class CheckSkuAvailabilityResult(Model): _attribute_map = { 'kind': {'key': 'kind', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'sku_name': {'key': 'skuName', 'type': 'str'}, 'sku_available': {'key': 'skuAvailable', 'type': 'bool...
true
true
f770101f32477fa4703bc6545371b3de3221cf15
738
py
Python
doc/source/cookbook/opengl_vr.py
fzmolina/yt
59fbfc2f7e5eea7bf2517fa4bd53113372f01a7c
[ "BSD-3-Clause-Clear" ]
1
2021-11-29T21:59:06.000Z
2021-11-29T21:59:06.000Z
doc/source/cookbook/opengl_vr.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
doc/source/cookbook/opengl_vr.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2020-07-17T02:55:58.000Z
2020-07-17T02:55:58.000Z
import yt from yt.visualization.volume_rendering.interactive_vr import \ SceneGraph, BlockCollection, TrackballCamera from yt.visualization.volume_rendering.interactive_loop import \ RenderingContext ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030") # Create GLUT window rc = RenderingContext(1280, 960) # ...
26.357143
64
0.761518
import yt from yt.visualization.volume_rendering.interactive_vr import \ SceneGraph, BlockCollection, TrackballCamera from yt.visualization.volume_rendering.interactive_loop import \ RenderingContext ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030") rc = RenderingContext(1280, 960) collection = BlockColle...
true
true
f77011eeda24537c6ec8e88c05b0db889c94609e
27,699
py
Python
dragonflow/cli/df_model.py
qianyuqiao/dragonflow
0f154d4f794b02ac5b7fd61a3417d89e7b10912d
[ "Apache-2.0" ]
null
null
null
dragonflow/cli/df_model.py
qianyuqiao/dragonflow
0f154d4f794b02ac5b7fd61a3417d89e7b10912d
[ "Apache-2.0" ]
null
null
null
dragonflow/cli/df_model.py
qianyuqiao/dragonflow
0f154d4f794b02ac5b7fd61a3417d89e7b10912d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
34.62375
79
0.590635
from __future__ import print_function import abc import argparse import contextlib import six import sys from http import HTTPStatus from jsonmodels import fields from oslo_serialization import jsonutils import prettytable from dragonflow.db import field_types from dragonflow.db import model_framework from dragonf...
true
true
f77012a97905b6ecca16f50fb13e3dc8997c98f9
2,783
py
Python
chap5-6/map_maker_app.py
PhuNH/geopy
c40a8be5a83e6efcd44d2edf9aa48e8a177a8993
[ "MIT" ]
null
null
null
chap5-6/map_maker_app.py
PhuNH/geopy
c40a8be5a83e6efcd44d2edf9aa48e8a177a8993
[ "MIT" ]
null
null
null
chap5-6/map_maker_app.py
PhuNH/geopy
c40a8be5a83e6efcd44d2edf9aa48e8a177a8993
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Apr 21 02:22:08 2019 @author: phunh """ import cv2 import mapnik import platform import tempfile from models import BoundaryCollection, PointCollection from map_maker.my_datasource import MapDatasource class MapMakerApp(object): def __init__(self, ...
33.53012
79
0.63852
import cv2 import mapnik import platform import tempfile from models import BoundaryCollection, PointCollection from map_maker.my_datasource import MapDatasource class MapMakerApp(object): def __init__(self, output_image="output/map.png", style_file="map_maker/styles.xml", map_size=...
true
true
f7701313779c3e89abd5638100445610dc4e0472
2,580
py
Python
test/test_metrics/test_multi_year_metrics.py
alexanderkell/temporal_granularity
f29b294beb360d8d66c6fedf78bbf9ae84055b24
[ "MIT" ]
null
null
null
test/test_metrics/test_multi_year_metrics.py
alexanderkell/temporal_granularity
f29b294beb360d8d66c6fedf78bbf9ae84055b24
[ "MIT" ]
11
2020-01-28T22:40:01.000Z
2022-02-10T01:13:50.000Z
test/test_metrics/test_multi_year_metrics.py
alexanderkell/temporal_granularity
f29b294beb360d8d66c6fedf78bbf9ae84055b24
[ "MIT" ]
null
null
null
from pathlib import Path import pandas as pd from src.metrics.multi_year_metrics import MultiYearMetrics import pytest import logging logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) project_dir = Path("__file__").resolve().parents[1] @pytest.fixture def define_multi_year_metrics(): ...
51.6
181
0.728295
from pathlib import Path import pandas as pd from src.metrics.multi_year_metrics import MultiYearMetrics import pytest import logging logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) project_dir = Path("__file__").resolve().parents[1] @pytest.fixture def define_multi_year_metrics(): ...
true
true
f77013369c3cfbf40cd9491eae57149fec9d617d
3,092
py
Python
alephnull/sources/futures_data_frame_source.py
flatM/AlephNull
796edec7e106cd76a5a69cb6e67a1a96c7a22cf6
[ "Apache-2.0" ]
234
2015-01-07T23:51:30.000Z
2022-02-27T00:31:56.000Z
alephnull/sources/futures_data_frame_source.py
whchin/AlephNull
796edec7e106cd76a5a69cb6e67a1a96c7a22cf6
[ "Apache-2.0" ]
null
null
null
alephnull/sources/futures_data_frame_source.py
whchin/AlephNull
796edec7e106cd76a5a69cb6e67a1a96c7a22cf6
[ "Apache-2.0" ]
65
2015-01-19T10:27:48.000Z
2022-03-16T00:54:59.000Z
import pandas as pd from alephnull.gens.utils import hash_args from alephnull.sources.data_source import DataSource class FuturesDataFrameSource(DataSource): """ Yields all events in event_list that match the given sid_filter. If no event_list is specified, generates an internal stream of events to ...
38.65
105
0.470893
import pandas as pd from alephnull.gens.utils import hash_args from alephnull.sources.data_source import DataSource class FuturesDataFrameSource(DataSource): def __init__(self, data, **kwargs): assert isinstance(data.index, pd.tseries.index.DatetimeIndex) self.data = data self....
true
true
f770159bc52a00329560ece6161f0671fa3d613e
390
py
Python
pygoat/wsgi.py
dandye/DjanGoat
72beb30afe3ddd5b31ce74a5d3b9da61d2c5df1d
[ "MIT" ]
65
2017-08-18T15:12:03.000Z
2021-08-14T16:50:07.000Z
pygoat/wsgi.py
dandye/DjanGoat
72beb30afe3ddd5b31ce74a5d3b9da61d2c5df1d
[ "MIT" ]
83
2017-11-28T21:45:20.000Z
2021-11-02T18:52:52.000Z
pygoat/wsgi.py
dandye/DjanGoat
72beb30afe3ddd5b31ce74a5d3b9da61d2c5df1d
[ "MIT" ]
71
2017-08-17T14:58:01.000Z
2022-02-02T17:09:49.000Z
""" WSGI config for pygoat project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
22.941176
78
0.784615
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pygoat.settings") application = get_wsgi_application()
true
true
f77017f974fdab45b55fb8aeaff540bcb1fc55bd
1,997
py
Python
py_bitflyer/realtime_api.py
tapioka324/pybf
14cd613d981df69e5fd5687f4f7fded6263c9ff7
[ "MIT" ]
1
2020-03-26T14:33:04.000Z
2020-03-26T14:33:04.000Z
py_bitflyer/realtime_api.py
tapioka324/pybf
14cd613d981df69e5fd5687f4f7fded6263c9ff7
[ "MIT" ]
9
2020-03-26T15:14:12.000Z
2020-04-11T09:38:26.000Z
py_bitflyer/realtime_api.py
tapioka324/pybf
14cd613d981df69e5fd5687f4f7fded6263c9ff7
[ "MIT" ]
1
2020-03-26T14:45:27.000Z
2020-03-26T14:45:27.000Z
import json import threading import time import websocket from logging import getLogger class RealtimeAPI(object): """ Realtime API (JSON-RPC 2.0 over WebSocket) https://bf-lightning-api.readme.io/docs/realtime-api """ def __init__(self, channel, data_queue, is_daemon=False): self.logger...
28.528571
94
0.590886
import json import threading import time import websocket from logging import getLogger class RealtimeAPI(object): def __init__(self, channel, data_queue, is_daemon=False): self.logger = getLogger(__name__) self.ws = None self.running = False self.end_point = 'wss://ws.lightstream...
true
true
f77019c105e2441236b81a5e11d9d9778aa6bf10
3,857
py
Python
jj/mock/_history/_history_request.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
null
null
null
jj/mock/_history/_history_request.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
null
null
null
jj/mock/_history/_history_request.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, List, Tuple from aiohttp.web_exceptions import HTTPRequestEntityTooLarge from multidict import CIMultiDict, CIMultiDictProxy, MultiDict, MultiDictProxy from packed import packable from ...requests import Request __all__ = ("HistoryRequest",) @packable("jj.mock.HistoryRequest") class H...
29
78
0.525019
from typing import Any, Dict, List, Tuple from aiohttp.web_exceptions import HTTPRequestEntityTooLarge from multidict import CIMultiDict, CIMultiDictProxy, MultiDict, MultiDictProxy from packed import packable from ...requests import Request __all__ = ("HistoryRequest",) @packable("jj.mock.HistoryRequest") class H...
true
true
f77019d5ee0ade8c975411f448713c299242fccf
939
py
Python
scripts/test/debugging/led_fan.py
jrthornham/eve-pi
4ff14d3bd023d03312a67397d0bcdf1dec0afada
[ "MIT" ]
null
null
null
scripts/test/debugging/led_fan.py
jrthornham/eve-pi
4ff14d3bd023d03312a67397d0bcdf1dec0afada
[ "MIT" ]
null
null
null
scripts/test/debugging/led_fan.py
jrthornham/eve-pi
4ff14d3bd023d03312a67397d0bcdf1dec0afada
[ "MIT" ]
1
2019-10-07T12:56:55.000Z
2019-10-07T12:56:55.000Z
""" Vishhvaan's Test Script """ import time import datetime import csv import threading import os import RPi.GPIO as GPIO #import numpy as np # setup the GPIO pins to control the pumps P_drug_pins = [20] P_nut_pins = [24] P_waste_pins = [25] P_LED_pins = [21] P_fan_pins = [26] pin_list = [P_drug_pins + P_nut_pins + ...
22.357143
78
0.648562
import time import datetime import csv import threading import os import RPi.GPIO as GPIO P_drug_pins = [20] P_nut_pins = [24] P_waste_pins = [25] P_LED_pins = [21] P_fan_pins = [26] pin_list = [P_drug_pins + P_nut_pins + P_waste_pins + P_LED_pins + P_fan_pins] GPIO.setmode(GPIO.BCM) for pin in pin_list: GPIO.se...
true
true
f77019eabf2c920f76381d5aa921ddf2f39c3b0c
868
py
Python
SRC/common/runtimeflags.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
SRC/common/runtimeflags.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
SRC/common/runtimeflags.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
39.454545
71
0.775346
batch_mode = False text_mode = False surface_mode = False geometry="550x350"
true
true
f7701a88f86a188074bec50700acd1656e984218
2,118
py
Python
main.py
Black-Triangle-code/coin_bot
54a269d181c3c67c5bf7071a660c41d65873276c
[ "MIT" ]
2
2020-01-24T18:22:24.000Z
2021-06-23T23:43:34.000Z
main.py
efremrob/coin_bot
54a269d181c3c67c5bf7071a660c41d65873276c
[ "MIT" ]
null
null
null
main.py
efremrob/coin_bot
54a269d181c3c67c5bf7071a660c41d65873276c
[ "MIT" ]
3
2020-01-29T16:21:55.000Z
2021-02-01T10:29:08.000Z
import asyncio import argparse import os import json import linecache import sys import traceback from coin_bot import CoinBot from proxy import ProxyManager from datetime import datetime from io import StringIO def traceback_msg(e): exc_type, exc_obj, first_tb = sys.exc_info() tb = StringIO() traceback....
21.835052
60
0.580264
import asyncio import argparse import os import json import linecache import sys import traceback from coin_bot import CoinBot from proxy import ProxyManager from datetime import datetime from io import StringIO def traceback_msg(e): exc_type, exc_obj, first_tb = sys.exc_info() tb = StringIO() traceback....
true
true
f7701ad5bf7635ad204d3b45282edbd203f94e88
416
py
Python
api/taxa/migrations/0002_auto_20210130_1147.py
fujikawahiroaki/webspecimanager
d46a4feec0c695d5231b21e3311f4adbe25435cb
[ "BSD-2-Clause" ]
null
null
null
api/taxa/migrations/0002_auto_20210130_1147.py
fujikawahiroaki/webspecimanager
d46a4feec0c695d5231b21e3311f4adbe25435cb
[ "BSD-2-Clause" ]
10
2020-12-07T08:54:30.000Z
2022-03-13T12:23:03.000Z
api/taxa/migrations/0002_auto_20210130_1147.py
fujikawahiroaki/webspecimanager
d46a4feec0c695d5231b21e3311f4adbe25435cb
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-30 02:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('taxa', '0001_initial'), ] operations = [ migrations.AlterField( model_name='taxon', name='species', fiel...
21.894737
94
0.596154
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('taxa', '0001_initial'), ] operations = [ migrations.AlterField( model_name='taxon', name='species', field=models.CharField(blank=True, default='sp', max...
true
true
f7701b4806c414bf44bba736e8db166f07ab6c2e
404
py
Python
GUI/Generic/StdColors.py
gcewing/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
9
2019-07-15T19:03:27.000Z
2021-11-24T19:50:02.000Z
GUI/Generic/StdColors.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
3
2019-09-11T13:22:10.000Z
2020-08-19T20:13:00.000Z
GUI/Generic/StdColors.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
4
2020-02-23T16:50:06.000Z
2022-02-10T07:15:35.000Z
# # Python GUI - Standard Colors - Generic # from GUI.Colors import rgb, selection_forecolor, selection_backcolor black = rgb(0, 0, 0) dark_grey = rgb(0.25, 0.25, 0.25) grey = rgb(0.5, 0.5, 0.5) light_grey = rgb(0.75, 0.75, 0.75) white = rgb(1, 1, 1) red = rgb(1, 0, 0) green = rgb(0, 1, 0) blue = rgb(0, 0, 1) yello...
21.263158
68
0.606436
from GUI.Colors import rgb, selection_forecolor, selection_backcolor black = rgb(0, 0, 0) dark_grey = rgb(0.25, 0.25, 0.25) grey = rgb(0.5, 0.5, 0.5) light_grey = rgb(0.75, 0.75, 0.75) white = rgb(1, 1, 1) red = rgb(1, 0, 0) green = rgb(0, 1, 0) blue = rgb(0, 0, 1) yellow = rgb(1, 1, 0) cyan = rgb(0, 1, 1) magenta = ...
true
true
f7701b493af6e1bde02e83744006a080c4a06fbc
2,134
py
Python
static/scripts/tools/standalone_exe_cxfreeze.py
flavour/lacity
fd1f1cccdcea64d07143b29d4f88996e3af35c4b
[ "MIT" ]
null
null
null
static/scripts/tools/standalone_exe_cxfreeze.py
flavour/lacity
fd1f1cccdcea64d07143b29d4f88996e3af35c4b
[ "MIT" ]
null
null
null
static/scripts/tools/standalone_exe_cxfreeze.py
flavour/lacity
fd1f1cccdcea64d07143b29d4f88996e3af35c4b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Usage: Install cx_Freeze: http://cx-freeze.sourceforge.net/ Copy script to the web2py directory c:\Python27\python standalone_exe_cxfreeze.py build_exe """ from cx_Freeze import setup, Executable from gluon.import_all import base_modules, contributed_module...
29.638889
133
0.5806
""" Usage: Install cx_Freeze: http://cx-freeze.sourceforge.net/ Copy script to the web2py directory c:\Python27\python standalone_exe_cxfreeze.py build_exe """ from cx_Freeze import setup, Executable from gluon.import_all import base_modules, contributed_modules from gluon.fileutils import readlines_file f...
false
true