hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
9982279552c3a88309d32077828d8fb98e9dfcf3
6,709
py
Python
ooiservices/app/m2m/help_data_12589.py
asascience-open/ooi-ui-services
a3254b612b5831e5e34beaf93000228826c1ed5a
[ "Apache-2.0" ]
2
2015-02-28T00:20:30.000Z
2015-04-30T12:40:31.000Z
ooiservices/app/m2m/help_data_12589.py
asascience-open/ooi-ui-services
a3254b612b5831e5e34beaf93000228826c1ed5a
[ "Apache-2.0" ]
266
2015-01-02T21:29:25.000Z
2020-01-23T16:00:11.000Z
ooiservices/app/m2m/help_data_12589.py
oceanobservatories/ooi-ui-services
a3254b612b5831e5e34beaf93000228826c1ed5a
[ "Apache-2.0" ]
13
2015-02-04T21:13:34.000Z
2016-10-18T14:39:36.000Z
#!/usr/bin/env python def get_help_data_12589(): """ Ingestion help. Data store of information to be presented when a help request is made for port 12589. Returns a list of dictionaries associated with various requests supported on that port. """ help_data = [ { ...
52.414063
112
0.279475
#!/usr/bin/env python def get_help_data_12589(): """ Ingestion help. Data store of information to be presented when a help request is made for port 12589. Returns a list of dictionaries associated with various requests supported on that port. """ help_data = [ { ...
0
0
0
0
0
0
0
0
0
eecb736ca4b09797779032adc0d20c5abc1e5dd4
818
py
Python
problems/test_0680.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0680.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0680.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest # O(n). Two pointers, backtracking. if __name__ == '__main__': unittest.main()
20.974359
89
0.536675
import unittest def _palindrome(s, lo, hi, tolerate): while lo < hi: if s[lo] == s[hi]: lo += 1 hi -= 1 else: if not tolerate: return False return _palindrome(s, lo + 1, hi, False) or _palindrome(s, lo, hi - 1, False) return True...
0
0
0
364
0
281
0
0
68
3309296327217b95759ab77ef797a01a86757e00
436
py
Python
inn/utils/data_processor_utils.py
Jie-Yuan/Deeps
b4acbb8e16b8ff5d181e70c3b549df0d818d0d76
[ "MIT" ]
4
2020-04-10T10:05:26.000Z
2020-04-28T13:01:20.000Z
ctrzoo/utils/data_processor_utils.py
Jie-Yuan/CTRZOO
cf7810d2cb76fb0b2a48678cade01f64d1ed3fdb
[ "Apache-2.0" ]
3
2020-04-10T08:04:26.000Z
2020-05-08T10:10:57.000Z
inn/utils/data_processor_utils.py
Jie-Yuan/DeepNN
b4acbb8e16b8ff5d181e70c3b549df0d818d0d76
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : DeepNN. # @File : data_processor_utils # @Time : 2020/4/21 12:04 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : import numpy as np _norm = lambda x, ord=1: x / np.linalg.norm(x...
19.818182
89
0.573394
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : DeepNN. # @File : data_processor_utils # @Time : 2020/4/21 12:04 下午 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : import numpy as np _norm = lambda x, ord=1: x / np.linalg.norm...
6
0
0
0
0
21
0
0
46
21beaf742669dc63b4c586d613f7c5e3f73a189b
14,814
py
Python
notebooks/KeynesFriedmanModigliani.py
MridulS/DemARK
ac10e6e48dfb758d33fe67efb3b60237402fe3b4
[ "Apache-2.0" ]
null
null
null
notebooks/KeynesFriedmanModigliani.py
MridulS/DemARK
ac10e6e48dfb758d33fe67efb3b60237402fe3b4
[ "Apache-2.0" ]
null
null
null
notebooks/KeynesFriedmanModigliani.py
MridulS/DemARK
ac10e6e48dfb758d33fe67efb3b60237402fe3b4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # cell_metadata_json: true # formats: ipynb,py:percent # notebook_metadata_filter: all # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.10.2 # kernelspec: # di...
33.977064
242
0.696301
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # cell_metadata_json: true # formats: ipynb,py:percent # notebook_metadata_filter: all # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.10.2 # kernelspec: # di...
6
0
0
1,724
0
0
0
71
155
2d47b53e593d129ccf29094433ef032d4b1c884b
758
py
Python
CodeFights/longestDigitsPrefix.py
HKuz/Test_Code
798efc9fc668ef021736a6d9699ef4713cf8b718
[ "MIT" ]
1
2020-06-14T20:10:04.000Z
2020-06-14T20:10:04.000Z
CodeFights/longestDigitsPrefix.py
makramjandar/Test_Code
798efc9fc668ef021736a6d9699ef4713cf8b718
[ "MIT" ]
null
null
null
CodeFights/longestDigitsPrefix.py
makramjandar/Test_Code
798efc9fc668ef021736a6d9699ef4713cf8b718
[ "MIT" ]
1
2019-12-09T12:48:05.000Z
2019-12-09T12:48:05.000Z
#!/usr/local/bin/python # Code Fights Longest Digits Prefix Problem if __name__ == '__main__': main()
22.969697
65
0.51847
#!/usr/local/bin/python # Code Fights Longest Digits Prefix Problem import re def longestDigitsPrefix(inputString): return re.findall(r'^\d*', inputString)[0] def main(): tests = [ ["123aa1", "123"], ["0123456789", "0123456789"], [" 3) always check for whitespaces", ""], ["...
0
0
0
0
0
591
0
-12
69
8b216efe02f87653f0717492f787427175700e46
19,118
py
Python
tests/integration/test_delegations.py
JustinCappos/tuf
44231f249ef5a5b84178d288a7303d6679e797a0
[ "MIT" ]
1
2017-11-29T17:13:40.000Z
2017-11-29T17:13:40.000Z
tests/integration/test_delegations.py
JustinCappos/tuf
44231f249ef5a5b84178d288a7303d6679e797a0
[ "MIT" ]
null
null
null
tests/integration/test_delegations.py
JustinCappos/tuf
44231f249ef5a5b84178d288a7303d6679e797a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ <Program Name> test_delegations.py <Author> Konstantin Andrianov <Started> February 19, 2012 <Copyright> See LICENSE for licensing information. <Purpose> Ensure that TUF meets expectations about target delegations. """ import unittest import tuf.repo.keystore as keystore import ...
35.273063
83
0.716654
#!/usr/bin/env python """ <Program Name> test_delegations.py <Author> Konstantin Andrianov <Started> February 19, 2012 <Copyright> See LICENSE for licensing information. <Purpose> Ensure that TUF meets expectations about target delegations. """ import os import time import tempfile import unittest impo...
0
0
0
18,261
0
0
0
-31
228
e56b49aadff7ea8c196890d433e9d94e97ffaa51
10,372
py
Python
arz_mk4.py
SemihAkkoc/arz_cazibesi
0a72da0d5c9e0f104f51cb375d858a7b9ac96eb5
[ "MIT" ]
null
null
null
arz_mk4.py
SemihAkkoc/arz_cazibesi
0a72da0d5c9e0f104f51cb375d858a7b9ac96eb5
[ "MIT" ]
null
null
null
arz_mk4.py
SemihAkkoc/arz_cazibesi
0a72da0d5c9e0f104f51cb375d858a7b9ac96eb5
[ "MIT" ]
null
null
null
#Arz Cazibesi #Semih Akkoc # TODO: # we got alot to do global and thingy from gpiozero import LED as relay from gpiozero import MotionSensor import smbus2 import bme280 infra = MotionSensor(27) #use queue_len if it detects twitchy vaccum = relay(17) magnet = relay(18) #turn off vaccum turn on magnet v...
37.992674
150
0.608754
#Arz Cazibesi #Semih Akkoc # TODO: # we got alot to do global and thingy from tkinter import * from matplotlib import pyplot as plt from gpiozero import LED as relay from gpiozero import MotionSensor import pandas as pd import time as t import array import math import smbus2 import bme280 infra = Mo...
0
0
0
9,548
0
0
0
-11
165
8743ecf33ab864aa47279418ad597473e5098358
7,996
py
Python
app.py
jerradf/Crypto-Blockchain-Project
f1ecda84972d2280acde12befe5725db4cd2f7b5
[ "MIT" ]
null
null
null
app.py
jerradf/Crypto-Blockchain-Project
f1ecda84972d2280acde12befe5725db4cd2f7b5
[ "MIT" ]
null
null
null
app.py
jerradf/Crypto-Blockchain-Project
f1ecda84972d2280acde12befe5725db4cd2f7b5
[ "MIT" ]
null
null
null
# app.py # Author: Jerrad Flores
39.98
245
0.66083
# app.py # Author: Jerrad Flores import colored_text import blockchain import socket import time class UI(): def __init__(self): self.name = "" #changes once user types in name self.cm_blockchain = blockchain.Blockchain("CM Blockchain") self.cm_blockchain.create_node(socket.gethostname()) self.on_a...
0
0
0
7,868
0
0
0
-24
111
5f78d72a7cf66e18b6706262b6f4f7b9e4f44468
1,350
py
Python
eval_scorers/make_dataset_from_test.py
alecmeade/nlp_final_project
12b41b2632ae06f3833c0c608827149b5f24349e
[ "MIT" ]
1
2021-05-29T04:13:10.000Z
2021-05-29T04:13:10.000Z
eval_scorers/make_dataset_from_test.py
nikhilsinghmus/nlp_final_project
12b41b2632ae06f3833c0c608827149b5f24349e
[ "MIT" ]
null
null
null
eval_scorers/make_dataset_from_test.py
nikhilsinghmus/nlp_final_project
12b41b2632ae06f3833c0c608827149b5f24349e
[ "MIT" ]
1
2021-04-26T22:47:42.000Z
2021-04-26T22:47:42.000Z
if __name__ == "__main__": main()
34.615385
107
0.564444
import os import argparse import json def main(): parser = argparse.ArgumentParser() parser.add_argument("--test_dir", type=str, default=None, help="Path to the output.") parser.add_argument("--src_set", type=str, default=None, help="Source dataset to use as lookup.") parser.add_argument("--outfile", t...
0
0
0
0
0
1,235
0
-28
89
c5fc62dfc9b7b2788f396b8cd4ad9da5d2455fd5
274
py
Python
pathway/urls.py
eladnoor/equilibrator
b7b7b1651aa605dd117af7654132cab5f83889da
[ "MIT" ]
12
2015-08-05T16:12:29.000Z
2021-03-05T11:57:49.000Z
pathway/urls.py
eladnoor/equilibrator
b7b7b1651aa605dd117af7654132cab5f83889da
[ "MIT" ]
48
2016-07-07T13:10:22.000Z
2018-05-30T21:38:03.000Z
pathway/urls.py
eladnoor/equilibrator
b7b7b1651aa605dd117af7654132cab5f83889da
[ "MIT" ]
4
2016-01-21T10:45:25.000Z
2017-12-14T14:45:18.000Z
from django.urls import path from django.contrib import admin from . import views admin.autodiscover() urlpatterns = [ path(r'', views.DefinePathwayPage, name='index'), path(r'build_model', views.BuildPathwayModel), path(r'results', views.PathwayResultPage), ]
24.909091
53
0.740876
from django.urls import path from django.contrib import admin from . import views admin.autodiscover() urlpatterns = [ path(r'', views.DefinePathwayPage, name='index'), path(r'build_model', views.BuildPathwayModel), path(r'results', views.PathwayResultPage), ]
0
0
0
0
0
0
0
0
0
166a430c6c82de126be8fc80fe56e84662d97f27
181
py
Python
Queries/adw_queries.py
Jhiggin/DPS_Python_ETL
8cb1cee115a045d35053cc2c53a4cc8dc0a7be0a
[ "MIT" ]
9
2020-12-12T20:23:13.000Z
2022-03-06T11:18:06.000Z
Queries/adw_queries.py
Jhiggin/DPS_Python_ETL
8cb1cee115a045d35053cc2c53a4cc8dc0a7be0a
[ "MIT" ]
7
2020-12-12T12:27:46.000Z
2020-12-14T01:04:47.000Z
Queries/adw_queries.py
Jhiggin/DPS_Python_ETL
8cb1cee115a045d35053cc2c53a4cc8dc0a7be0a
[ "MIT" ]
3
2020-12-12T20:17:25.000Z
2022-03-28T03:51:45.000Z
factsales_query = ''' SELECT *, YEAR(OrderDate) AS OrderYear, MONTH(OrderDate) AS OrderMonth, DAY(OrderDate) AS OrderDay FROM [AdventureWorksDW2017].[dbo].[FactInternetSales] '''
45.25
98
0.756906
factsales_query = ''' SELECT *, YEAR(OrderDate) AS OrderYear, MONTH(OrderDate) AS OrderMonth, DAY(OrderDate) AS OrderDay FROM [AdventureWorksDW2017].[dbo].[FactInternetSales] '''
0
0
0
0
0
0
0
0
0
26a9c1ced50e6d564543d944ff79d322fcbf24f2
2,962
py
Python
trading_calendars/utils/pandas_utils.py
liudengfeng/trading_calendars
c56675a9de11830bed7c20e067987a9962d8d1ce
[ "Apache-2.0" ]
null
null
null
trading_calendars/utils/pandas_utils.py
liudengfeng/trading_calendars
c56675a9de11830bed7c20e067987a9962d8d1ce
[ "Apache-2.0" ]
null
null
null
trading_calendars/utils/pandas_utils.py
liudengfeng/trading_calendars
c56675a9de11830bed7c20e067987a9962d8d1ce
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd from pytz import UTC, timezone def days_at_time(days, t, tz, day_offset=0): """ Create an index of days at time ``t``, interpreted in timezone ``tz``. The returned index is localized to UTC. Parameters ---------- days : DatetimeIndex An index of...
29.919192
82
0.618501
import numpy as np import pandas as pd from pytz import UTC, timezone def days_at_time(days, t, tz, day_offset=0): """ Create an index of days at time ``t``, interpreted in timezone ``tz``. The returned index is localized to UTC. Parameters ---------- days : DatetimeIndex An index of...
183
0
0
0
0
0
0
0
0
7f34bbadee6a2221f87b97cd4effd0e6ee8ad52b
19,760
py
Python
segment.py
oya163/gibbs
ff5b181612735b0f384703c1464e65de8a2fc058
[ "MIT" ]
null
null
null
segment.py
oya163/gibbs
ff5b181612735b0f384703c1464e65de8a2fc058
[ "MIT" ]
null
null
null
segment.py
oya163/gibbs
ff5b181612735b0f384703c1464e65de8a2fc058
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Description: Unsupervised Monolingual Word Segmentation # It is based on goldwater-etal-2006-contextual # https://www.aclweb.org/anthology/P06-1085/ # Base distribution - Geometric distribution import numpy as np import argparse from utils import utilities as utilities import sys np.random....
41.512605
117
0.598482
# -*- coding: utf-8 -*- # Description: Unsupervised Monolingual Word Segmentation # It is based on goldwater-etal-2006-contextual # https://www.aclweb.org/anthology/P06-1085/ # Base distribution - Geometric distribution import regex as re import numpy as np import matplotlib.pyplot as plt import grapheme import pick...
519
0
0
11,649
0
4,188
0
-25
312
5da5c3ac1f4ae4109a406bc7c1c4c5ba0836fb9e
8,501
py
Python
tests/test_vectorized_mobject.py
rli596/manim
e147a9fc6c117332221e42437481f3efba76499a
[ "MIT" ]
1
2022-03-07T10:22:13.000Z
2022-03-07T10:22:13.000Z
tests/test_vectorized_mobject.py
ali-alnamr/manim
8e6a4c48aca882e526558fd9f9e5419a8f36b876
[ "MIT" ]
21
2022-03-02T15:25:49.000Z
2022-03-07T11:15:45.000Z
tests/test_vectorized_mobject.py
DD2480-Group-10/manim
e147a9fc6c117332221e42437481f3efba76499a
[ "MIT" ]
null
null
null
import pytest from manim import Circle, Line, Mobject, Square, VDict, VGroup, VMobject def test_vgroup_init(): """Test the VGroup instantiation.""" VGroup() VGroup(VMobject()) VGroup(VMobject(), VMobject()) with pytest.raises(TypeError): VGroup(Mobject()) with pytest.raises(TypeError...
29.113014
102
0.623691
from math import cos, sin import numpy as np import pytest from manim import Circle, Line, Mobject, RegularPolygon, Square, VDict, VGroup, VMobject from manim.constants import PI def test_vmobject_point_from_propotion(): obj = VMobject() # One long line, one short line obj.set_points_as_corners( ...
0
0
0
0
0
2,366
0
26
209
7a5b5a83ca44c9510cebab83fad5747b213c1b57
3,788
py
Python
tools/proteogenomics/ensembl_rest.py
EngyNasr/tools-galaxyp
e45c15081260025e470d23975ef5a734d3f8fc66
[ "MIT" ]
null
null
null
tools/proteogenomics/ensembl_rest.py
EngyNasr/tools-galaxyp
e45c15081260025e470d23975ef5a734d3f8fc66
[ "MIT" ]
null
null
null
tools/proteogenomics/ensembl_rest.py
EngyNasr/tools-galaxyp
e45c15081260025e470d23975ef5a734d3f8fc66
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ # #------------------------------------------------------------------------------ # University of Minnesota # Copyright 2017, Regents of the University of Minnesota #------------------------------------------------------------------------------ # Author: # # Ja...
29.138462
79
0.580781
#!/usr/bin/env python """ # #------------------------------------------------------------------------------ # University of Minnesota # Copyright 2017, Regents of the University of Minnesota #------------------------------------------------------------------------------ # Author: # # Ja...
0
0
0
0
0
2,886
0
-16
299
66176c596a7973426d56f3c3efb274bbfb682eef
1,746
py
Python
systemrdl/ast/unary.py
jasonpjacobs/systemrdl-compiler
e3fdaf53b6c605a24d6e1149817f3636a85aed09
[ "MIT", "BSD-3-Clause" ]
null
null
null
systemrdl/ast/unary.py
jasonpjacobs/systemrdl-compiler
e3fdaf53b6c605a24d6e1149817f3636a85aed09
[ "MIT", "BSD-3-Clause" ]
null
null
null
systemrdl/ast/unary.py
jasonpjacobs/systemrdl-compiler
e3fdaf53b6c605a24d6e1149817f3636a85aed09
[ "MIT", "BSD-3-Clause" ]
null
null
null
from typing import TYPE_CHECKING, Optional if TYPE_CHECKING: from ..source_ref import SourceRefBase OptionalSourceRef = Optional[SourceRefBase] # Integer unary operators: # + - ~ # Normal expression context rules
32.333333
88
0.667812
from typing import TYPE_CHECKING, Optional, Type from .ast_node import ASTNode from .conditional import is_castable from ..core.helpers import truncate_int if TYPE_CHECKING: from ..compiler import RDLEnvironment from ..source_ref import SourceRefBase OptionalSourceRef = Optional[SourceRefBase] # Intege...
0
0
0
1,270
0
0
0
63
185
603f300a3c959fa6faa16409687f825beba586be
594
py
Python
mainApp/urls.py
TheInspiredConjurer/GenZ_CodePad
9bc2f8362a1cef75191cc7d7c2b65da45d684767
[ "Apache-2.0" ]
1
2021-11-01T08:30:46.000Z
2021-11-01T08:30:46.000Z
mainApp/urls.py
TheInspiredConjurer/GenZ_CodePad
9bc2f8362a1cef75191cc7d7c2b65da45d684767
[ "Apache-2.0" ]
20
2021-10-30T05:14:46.000Z
2022-01-04T21:40:49.000Z
mainApp/urls.py
TheInspiredConjurer/GenZ_CodePad
9bc2f8362a1cef75191cc7d7c2b65da45d684767
[ "Apache-2.0" ]
1
2021-10-30T05:32:24.000Z
2021-10-30T05:32:24.000Z
from django.conf.urls.static import static from django.conf import settings from django.urls import path from .views import index, about_us, runcode, process_speech, audio_test urlpatterns = [ path('', index, name='homepage'), path('about_us/', about_us, name='AboutUs'), path('runcode', runcode, name="runc...
42.428571
76
0.754209
from django.conf.urls.static import static from django.conf import settings from django.urls import path from .views import index, about_us, runcode, process_speech, audio_test urlpatterns = [ path('', index, name='homepage'), path('about_us/', about_us, name='AboutUs'), path('runcode', runcode, name="runc...
0
0
0
0
0
0
0
0
0
574cf1f071b289dabf09d479e3b73edbc618144e
13,473
py
Python
orion/core/operators/create_viz_tables_task.py
orion-search/orion-backend
b28815f85de1046612a777f290f982446b2a5ad7
[ "MIT" ]
19
2020-02-18T17:03:42.000Z
2021-09-22T08:02:17.000Z
orion/core/operators/create_viz_tables_task.py
orion-search/orion-backend
b28815f85de1046612a777f290f982446b2a5ad7
[ "MIT" ]
116
2020-01-10T10:02:52.000Z
2022-03-01T23:10:10.000Z
orion/core/operators/create_viz_tables_task.py
orion-search/orion-backend
b28815f85de1046612a777f290f982446b2a5ad7
[ "MIT" ]
2
2020-11-04T17:10:52.000Z
2021-02-14T18:37:02.000Z
""" Creates the following tables that are used in the front-end: - CountryTopicOutput: Shows a country's total citations and paper volume by year and topic. - AllMetrics: Combines all the metrics (gender diversity, research diversity, RCA) we've derived by year and topic. - PaperCountry: Shows the paper IDs of a countr...
38.715517
115
0.56231
""" Creates the following tables that are used in the front-end: - CountryTopicOutput: Shows a country's total citations and paper volume by year and topic. - AllMetrics: Combines all the metrics (gender diversity, research diversity, RCA) we've derived by year and topic. - PaperCountry: Shows the paper IDs of a countr...
0
291
0
11,779
0
0
0
530
288
f397629394c73c7bcc72f3bef8bf91781f6c766a
163,157
py
Python
vst_sim/src/vstsim/grasping/grasp_sampler.py
huikul/Dexterous_grasp
badab43ab7b663deb312c613dfdd1efbf4a1b5c7
[ "MIT" ]
null
null
null
vst_sim/src/vstsim/grasping/grasp_sampler.py
huikul/Dexterous_grasp
badab43ab7b663deb312c613dfdd1efbf4a1b5c7
[ "MIT" ]
null
null
null
vst_sim/src/vstsim/grasping/grasp_sampler.py
huikul/Dexterous_grasp
badab43ab7b663deb312c613dfdd1efbf4a1b5c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import numpy as np # import os, IPython, sys import scipy.stats as stats try: except ImportError: logging.warning('Failed to import pcl!') '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''''''''''''''''''''''...
49.084537
122
0.522166
# -*- coding: utf-8 -*- from abc import ABCMeta, abstractmethod import copy import logging import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np # import os, IPython, sys import math import random import time import scipy.stats as stats from vstsim.visualization.GL_visualizer3d impo...
2
445
0
158,238
0
0
0
288
751
b755ab3247645e337cee1df29aa7e3f797b21ce7
1,719
py
Python
dedupsqlfs/db/mysql/table/tmp_ids.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
22
2015-04-09T09:00:00.000Z
2022-03-23T00:16:04.000Z
dedupsqlfs/db/mysql/table/tmp_ids.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
119
2015-02-11T21:39:27.000Z
2021-07-27T23:04:49.000Z
dedupsqlfs/db/mysql/table/tmp_ids.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
7
2016-03-16T11:53:45.000Z
2022-02-24T13:47:31.000Z
# -*- coding: utf8 -*- __author__ = 'sergey'
22.92
66
0.456661
# -*- coding: utf8 -*- __author__ = 'sergey' from dedupsqlfs.db.mysql.table import Table class TableTmpIds( Table ): _engine = "MEMORY" _table_name = "tmp_ids" def create( self ): c = self.getCursor() # Create table c.execute( "CREATE TABLE IF NOT EXISTS `%s` (" % ...
0
0
0
1,605
0
0
0
22
46
c8546440b01fce597bc7bd59f47f66370495f054
11,309
py
Python
ris/al/labeloh/project/site/routes.py
openmednlp/shipyard
a325bb4aeb838dad53b76aa75a815a02357c752a
[ "MIT" ]
null
null
null
ris/al/labeloh/project/site/routes.py
openmednlp/shipyard
a325bb4aeb838dad53b76aa75a815a02357c752a
[ "MIT" ]
null
null
null
ris/al/labeloh/project/site/routes.py
openmednlp/shipyard
a325bb4aeb838dad53b76aa75a815a02357c752a
[ "MIT" ]
null
null
null
from flask import Blueprint mod = Blueprint('site', __name__, template_folder='templates') # TODO: Needs to be split in multiple files - blueprints already in place so it's simple # The Members page is only accessible to authenticated users # The Admin page requires an 'Admin' role.
25.938073
251
0.595455
from flask import Blueprint, render_template, request, redirect, flash, jsonify from flask import current_app, url_for from flask import Response from flask_wtf.file import FileField, FileRequired, FileAllowed from flask_user import login_required, roles_required from wtforms import StringField, SelectField from wtfo...
0
9,300
0
593
0
159
0
243
705
b384095f5d20912b0ae5b6e7fb58ae6f2aeaae6f
1,854
py
Python
hard/chessboard_traveling.py
kevinwing/coderbyte-solutions-python
754684ea6b87c0960076b9c93535bb96b7c3b12b
[ "MIT" ]
null
null
null
hard/chessboard_traveling.py
kevinwing/coderbyte-solutions-python
754684ea6b87c0960076b9c93535bb96b7c3b12b
[ "MIT" ]
null
null
null
hard/chessboard_traveling.py
kevinwing/coderbyte-solutions-python
754684ea6b87c0960076b9c93535bb96b7c3b12b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Challenge: Have the function ChessboardTraveling(str) read str which will be a string consisting of the location of a space on a standard 8x8 chess board with no pieces on the board along with another space on the chess board. The structure of str will be the following: "(x y)(a b)" where (x...
32.526316
78
0.631068
#!/usr/bin/env python3 """ Challenge: Have the function ChessboardTraveling(str) read str which will be a string consisting of the location of a space on a standard 8x8 chess board with no pieces on the board along with another space on the chess board. The structure of str will be the following: "(x y)(a b)" where (x...
0
0
0
0
0
177
0
0
23
d3d865379989c9753803c0d524658ee2c700e0da
2,027
py
Python
deprecated/demoDual.py
lamfeeling/Stein-Density-Ratio-Estimation
f3b8a3975d99ace5875e603414e0e6d989ceb1d6
[ "MIT" ]
8
2019-08-28T13:24:32.000Z
2019-11-01T04:04:45.000Z
deprecated/demoDual.py
lamfeeling/Stein-Density-Ratio-Estimation
f3b8a3975d99ace5875e603414e0e6d989ceb1d6
[ "MIT" ]
null
null
null
deprecated/demoDual.py
lamfeeling/Stein-Density-Ratio-Estimation
f3b8a3975d99ace5875e603414e0e6d989ceb1d6
[ "MIT" ]
null
null
null
# from socket import gethostname # dimension, num of samples, dimension of theta d = 5 n = 500 dimTheta = d # construct feature function f f = lambda X: vstack([X,X**2]) b = dimTheta*2 # log P(x;theta) model, unnormalized grad_logp = grad(logpBar) # Dual objective function obj = lambda para: mean(-lo...
30.712121
83
0.617168
import sdre from sdre.helper import * from scipy.optimize import minimize, Bounds, NonlinearConstraint # from socket import gethostname from time import time # dimension, num of samples, dimension of theta d = 5 n = 500 dimTheta = d # construct feature function f f = lambda X: vstack([X,X**2]) b = dimThe...
0
0
0
0
0
1,084
0
37
138
b5a5139e5cb4adda8585495b508ea448ea99d5a1
3,817
py
Python
bgtorch/bgtorch/utils/train.py
noegroup/neurips2020_snf
9b017bb3681f756d0f2ba0ee7b1a2986c1b07261
[ "BSD-3-Clause" ]
null
null
null
bgtorch/bgtorch/utils/train.py
noegroup/neurips2020_snf
9b017bb3681f756d0f2ba0ee7b1a2986c1b07261
[ "BSD-3-Clause" ]
null
null
null
bgtorch/bgtorch/utils/train.py
noegroup/neurips2020_snf
9b017bb3681f756d0f2ba0ee7b1a2986c1b07261
[ "BSD-3-Clause" ]
null
null
null
clip_grad = _ClipGradient.apply
32.347458
105
0.603877
import torch import numpy as np from .types import assert_numpy class IndexBatchIterator(object): def __init__(self, n_elems, n_batch): """ Produces batches of length `n_batch` of an index set `[1, ..., n_elems]` which are sampled randomly without replacement. ...
0
348
0
2,754
0
468
0
-2
213
490c465e93ea1d9799a1053387c4587192b4936d
2,819
py
Python
wordpress_rest/apps/api/views.py
rosscdh/wordpress_rest
482aa20fad9ea0cb5a22ccac70d20a654e6970ed
[ "MIT" ]
3
2015-02-27T18:18:11.000Z
2017-12-02T13:54:45.000Z
wordpress_rest/apps/api/views.py
rosscdh/wordpress_rest
482aa20fad9ea0cb5a22ccac70d20a654e6970ed
[ "MIT" ]
null
null
null
wordpress_rest/apps/api/views.py
rosscdh/wordpress_rest
482aa20fad9ea0cb5a22ccac70d20a654e6970ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #from django.shortcuts import get_object_or_404 # # Posts #
28.765306
91
0.782547
# -*- coding: utf-8 -*- #from django.shortcuts import get_object_or_404 from rest_framework.response import Response from rest_framework import viewsets from rest_framework import status as http_status import datetime import serializers as api_serializers import wordpress_rest.apps.wordpress.models as wp_models cl...
0
0
0
2,131
0
0
0
109
478
b106176487d7a031c063b7418940c04d29eb2d6d
68
py
Python
__init__.py
pastchick3/requestkit
d1d4a601366bb3d3f245266dc315f5a5da328a42
[ "MIT" ]
null
null
null
__init__.py
pastchick3/requestkit
d1d4a601366bb3d3f245266dc315f5a5da328a42
[ "MIT" ]
null
null
null
__init__.py
pastchick3/requestkit
d1d4a601366bb3d3f245266dc315f5a5da328a42
[ "MIT" ]
null
null
null
__version__ = '0.1.0' __author__ = 'pastchick3'
13.6
25
0.691176
__version__ = '0.1.0' __author__ = 'pastchick3' from .src import *
0
0
0
0
0
0
0
-3
23
c30da7d672961140ec8c7c841b911c0f7355bcce
16,588
py
Python
tests/ut/python/dataset/test_text_tokenizer.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/ut/python/dataset/test_text_tokenizer.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/ut/python/dataset/test_text_tokenizer.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
42.974093
112
0.605799
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
309
0
0
0
0
3,291
0
0
108
c33dd9e4fee7d86d2df6e1c38182aaee08871eec
13,760
py
Python
flask_admin/datastore/mongoalchemy.py
wilsaj/flask-admin-old
aab2fe94e0641932ebd1c8f8dc500ba2daf5731c
[ "MIT" ]
2
2016-03-01T22:15:39.000Z
2016-07-17T18:10:19.000Z
flask_admin/datastore/mongoalchemy.py
wilsaj/flask-admin-old
aab2fe94e0641932ebd1c8f8dc500ba2daf5731c
[ "MIT" ]
null
null
null
flask_admin/datastore/mongoalchemy.py
wilsaj/flask-admin-old
aab2fe94e0641932ebd1c8f8dc500ba2daf5731c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ flask.ext.datastore.mongoalchemy ~~~~~~~~~~~~~~ :copyright: (c) 2011 by wilsaj. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from mongoalchemy.document import Document from wtforms.form import Form def _form_for_model(document_...
37.493188
87
0.634738
# -*- coding: utf-8 -*- """ flask.ext.datastore.mongoalchemy ~~~~~~~~~~~~~~ :copyright: (c) 2011 by wilsaj. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import types import mongoalchemy as ma from mongoalchemy.document import Document from wtforms import fi...
0
2,800
0
7,632
0
105
0
98
294
184ed4d6b8f81f10482423e22caaa16f22989a2c
1,219
py
Python
anime_episode_parser/cn.py
BGmi/anime-episode-parser
005bb54623c025c75721581b13bff79e520e5f3c
[ "MIT" ]
null
null
null
anime_episode_parser/cn.py
BGmi/anime-episode-parser
005bb54623c025c75721581b13bff79e520e5f3c
[ "MIT" ]
27
2021-05-17T16:59:38.000Z
2022-03-15T08:16:53.000Z
anime_episode_parser/cn.py
BGmi/anime-episode-parser
005bb54623c025c75721581b13bff79e520e5f3c
[ "MIT" ]
null
null
null
_CN_NUM = { "": 0, "": 1, "": 2, "": 3, "": 4, "": 5, "": 6, "": 7, "": 8, "": 9, "": 0, "": 1, "": 2, "": 3, "": 4, "": 5, "": 6, "": 7, "": 8, "": 9, "": 2, "": 2, } _CN_UNIT = { "": 10, "": 10, "": 100, "": 100, ...
17.414286
58
0.38146
_CN_NUM = { "〇": 0, "一": 1, "二": 2, "三": 3, "四": 4, "五": 5, "六": 6, "七": 7, "八": 8, "九": 9, "零": 0, "壹": 1, "贰": 2, "叁": 3, "肆": 4, "伍": 5, "陆": 6, "柒": 7, "捌": 8, "玖": 9, "貮": 2, "两": 2, } _CN_UNIT = { "十": 10, "拾": 10, ...
90
0
0
0
0
0
0
0
0
745721ce674bd4d6afc2b0d1b5d6a6ba82b6b0b5
2,193
py
Python
setup.py
gczheng/redis-rdb-tools
3cf4758f3441dfcf3a7aeb038c46d62a49bf88a7
[ "MIT" ]
3,691
2015-01-01T09:43:44.000Z
2022-03-30T06:08:16.000Z
setup.py
gczheng/redis-rdb-tools
3cf4758f3441dfcf3a7aeb038c46d62a49bf88a7
[ "MIT" ]
119
2015-03-11T14:54:39.000Z
2022-03-21T01:56:09.000Z
setup.py
gczheng/redis-rdb-tools
3cf4758f3441dfcf3a7aeb038c46d62a49bf88a7
[ "MIT" ]
668
2015-01-03T03:56:29.000Z
2022-03-31T12:35:13.000Z
#!/usr/bin/env python from rdbtools import __version__ long_description = ''' Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSON Rdbtools is a parser for Redis' dump.rdb files. The parser generates events similar to an xml sax parser, and is very efficient memory wise. In addition, rdbtools provides...
35.95082
179
0.673963
#!/usr/bin/env python import os from rdbtools import __version__ long_description = ''' Parse Redis dump.rdb files, Analyze Memory, and Export Data to JSON Rdbtools is a parser for Redis' dump.rdb files. The parser generates events similar to an xml sax parser, and is very efficient memory wise. In addition, rdbtool...
0
0
0
0
0
0
0
-12
22
1377263f99eb53e2f39e43b01d760bc38673b08d
2,265
py
Python
src/testScale.py
ytyaru/Python.Audio.Scales.201708291513
51686a6a083f6e697795ed0f42c6c228a31a7337
[ "CC0-1.0" ]
null
null
null
src/testScale.py
ytyaru/Python.Audio.Scales.201708291513
51686a6a083f6e697795ed0f42c6c228a31a7337
[ "CC0-1.0" ]
null
null
null
src/testScale.py
ytyaru/Python.Audio.Scales.201708291513
51686a6a083f6e697795ed0f42c6c228a31a7337
[ "CC0-1.0" ]
null
null
null
from MusicTheory.temperament.EqualTemperament import EqualTemperament from MusicTheory.temperament.eq12scales.ScaleIntervals import ScaleIntervals from MusicTheory.temperament.eq12scales.Scale import Scale import Wave.Player import Wave.Sampler import Wave.BaseWaveMaker # # p.Close() if __name__ == '__main_...
37.75
141
0.629581
from MusicTheory.temperament.EqualTemperament import EqualTemperament from MusicTheory.temperament.eq12scales.ScaleIntervals import ScaleIntervals from MusicTheory.temperament.eq12scales.Scale import Scale import Wave.Player import Wave.Sampler import Wave.BaseWaveMaker import Wave.WaveFile import pathlib def GetToneN...
66
537
0
-2
0
75
0
-8
116
160a32c3a3663194d733524d4126023fa8e25112
2,015
py
Python
leetcode/unique_paths_II.py
zhangao0086/Python-Algorithm
981c875b2e0f30619bd3d44e1f2bd0c47d1464a2
[ "MIT" ]
3
2021-05-21T12:55:14.000Z
2022-02-01T16:21:30.000Z
leetcode/unique_paths_II.py
zhangao0086/Python-Algorithm
981c875b2e0f30619bd3d44e1f2bd0c47d1464a2
[ "MIT" ]
null
null
null
leetcode/unique_paths_II.py
zhangao0086/Python-Algorithm
981c875b2e0f30619bd3d44e1f2bd0c47d1464a2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*-coding:utf-8-*- __author__ = "Bannings" # class Solution: # def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int: # if not obstacleGrid: return 0 # m, n = len(obstacleGrid), len(obstacleGrid[0]) # current = [1] + [0] * (n - 1) # for i in ...
36.636364
91
0.54938
#!/usr/bin/python3 # -*-coding:utf-8-*- __author__ = "Bannings" from typing import List # class Solution: # def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int: # if not obstacleGrid: return 0 # m, n = len(obstacleGrid), len(obstacleGrid[0]) # current = [1] + [0] * (n...
0
0
0
840
0
0
0
2
46
7eb39c7fbe06ffd37920b1204af3752663c1b611
6,646
py
Python
test/comparator/test_resources.py
chingor13/proto-breaking-change-detector
688ea1f4f3a9d32ec9d2b52b1f2a69b768066ebd
[ "Apache-2.0" ]
null
null
null
test/comparator/test_resources.py
chingor13/proto-breaking-change-detector
688ea1f4f3a9d32ec9d2b52b1f2a69b768066ebd
[ "Apache-2.0" ]
null
null
null
test/comparator/test_resources.py
chingor13/proto-breaking-change-detector
688ea1f4f3a9d32ec9d2b52b1f2a69b768066ebd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
47.471429
185
0.689136
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
0
0
0
5,762
0
0
0
108
133
9efc376077a7d2614fa16987ed68fc794ab47113
6,919
py
Python
Healthy-Neighborhoods/maps/data_analysis.py
EmilyWebber/Neighborhood-Health
f85e54687a754516729d4f074005d765464f40d5
[ "MIT" ]
null
null
null
Healthy-Neighborhoods/maps/data_analysis.py
EmilyWebber/Neighborhood-Health
f85e54687a754516729d4f074005d765464f40d5
[ "MIT" ]
null
null
null
Healthy-Neighborhoods/maps/data_analysis.py
EmilyWebber/Neighborhood-Health
f85e54687a754516729d4f074005d765464f40d5
[ "MIT" ]
1
2016-01-24T20:03:12.000Z
2016-01-24T20:03:12.000Z
import csv import os import numpy as np from . import color_support import plotly.plotly as py import plotly.graph_objs as go path = (os.path.dirname(os.path.abspath(__file__))) FILE = path +'/static/maps/Data/city_health_stats.csv' py.sign_in('healthy_neighborhoods','d806djbyh8') DEFAULT = None # necessary specifi...
29.194093
112
0.654863
import csv import os import numpy as np from . import color_support import plotly.plotly as py import plotly.graph_objs as go path = (os.path.dirname(os.path.abspath(__file__))) FILE = path +'/static/maps/Data/city_health_stats.csv' py.sign_in('healthy_neighborhoods','d806djbyh8') DEFAULT = None # necessary specifi...
0
0
0
0
0
0
0
0
0
43757567c9f8094b7a9afaeab946045a38a6051b
190
py
Python
getpaid/backends/dummy/urls.py
prog32/django-getpaid
f834bfefe7fc9387e173edf0b2be91b134dfa47d
[ "MIT" ]
220
2018-07-25T10:56:29.000Z
2022-03-18T13:56:11.000Z
getpaid/backends/dummy/urls.py
prog32/django-getpaid
f834bfefe7fc9387e173edf0b2be91b134dfa47d
[ "MIT" ]
29
2018-07-24T15:46:24.000Z
2021-07-01T08:38:59.000Z
getpaid/backends/dummy/urls.py
prog32/django-getpaid
f834bfefe7fc9387e173edf0b2be91b134dfa47d
[ "MIT" ]
52
2018-07-28T19:01:18.000Z
2022-03-12T14:50:33.000Z
from django.urls import path from . import views app_name = "dummy" urlpatterns = [ path( "callback/", views.CallbackView.as_view(), name="callback", ), ]
13.571429
37
0.584211
from django.urls import path from . import views app_name = "dummy" urlpatterns = [ path( "callback/", views.CallbackView.as_view(), name="callback", ), ]
0
0
0
0
0
0
0
0
0
f8608b697dbd94ec0f5e8b445b29a928959f573b
3,790
py
Python
app/database/models.py
TomCallR/ProjetNLP_jury
19919551051e9de9fd5fe263200a7da8405f51de
[ "BSD-3-Clause" ]
null
null
null
app/database/models.py
TomCallR/ProjetNLP_jury
19919551051e9de9fd5fe263200a7da8405f51de
[ "BSD-3-Clause" ]
null
null
null
app/database/models.py
TomCallR/ProjetNLP_jury
19919551051e9de9fd5fe263200a7da8405f51de
[ "BSD-3-Clause" ]
null
null
null
# One course to many students and to many forms (one form per week at most) # Student # One form corresponds to one sheet in a spreadsheet # It collects the answers for one week from the students in one course # One form is in a many to one database.relationship with a Course # Questions for each course (many t...
39.072165
86
0.698153
from app import db # One course to many students and to many forms (one form per week at most) class Course(db.Model): __tablename__ = "Courses" id = db.Column(db.Integer, primary_key=True) label = db.Column(db.String(80), nullable=False) startdate = db.Column(db.DateTime, nullable=False) enddate...
0
72
0
3,067
0
0
0
-3
132
4597a11393998b160826be855252a81921344190
990
py
Python
users/migrations/0001_initial.py
kigensky/awwards
4202427a70b58d76982983f2c1f1af6df613cd24
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
kigensky/awwards
4202427a70b58d76982983f2c1f1af6df613cd24
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
kigensky/awwards
4202427a70b58d76982983f2c1f1af6df613cd24
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-05-31 07:32
34.137931
125
0.652525
# Generated by Django 3.1.7 on 2021-05-31 07:32 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import phone_field.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_U...
0
0
0
784
0
0
0
45
112
7188fd992010b809310804e2662a58c9185cfd8a
1,476
py
Python
wizard_builder/migrations/0009_pagebase_to_questionpage.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
16
2016-06-21T04:05:24.000Z
2017-09-26T15:40:24.000Z
wizard_builder/migrations/0009_pagebase_to_questionpage.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
141
2016-06-21T20:46:46.000Z
2017-09-28T00:20:49.000Z
wizard_builder/migrations/0009_pagebase_to_questionpage.py
project-callisto/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
7
2017-10-04T22:52:18.000Z
2018-05-31T17:14:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-08-02 21:54 from __future__ import unicode_literals
31.404255
111
0.622629
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-08-02 21:54 from __future__ import unicode_literals from django.db import migrations, models def copy_to_question_page(apps, schema_editor): current_database = schema_editor.connection.alias QuestionPage = apps.get_model('wizard_builder.QuestionPag...
0
0
0
889
0
384
0
19
69
44eb8ff483818214642051b2543147b0fa1835ea
933
py
Python
aiociscospark/services/licenses.py
razor-1/aiociscospark
69cfe41a8f1fda788cbd5b3a77e84ce04e6d562d
[ "MIT" ]
8
2017-12-29T19:03:27.000Z
2020-08-17T06:53:58.000Z
aiociscospark/services/licenses.py
razor-1/aiociscospark
69cfe41a8f1fda788cbd5b3a77e84ce04e6d562d
[ "MIT" ]
119
2017-10-28T10:27:38.000Z
2020-03-16T05:19:45.000Z
aiociscospark/services/licenses.py
razor-1/aiociscospark
69cfe41a8f1fda788cbd5b3a77e84ce04e6d562d
[ "MIT" ]
5
2018-05-08T17:49:32.000Z
2019-06-05T17:34:29.000Z
import logging logger = logging.getLogger(__name__)
30.096774
91
0.64523
import logging from .service import ApiResource, ApiService logger = logging.getLogger(__name__) class ApiServiceLicenses(ApiService): """ Documentation: https://developer.ciscospark.com/resource-licenses.html """ _resource = ApiResource('licenses', 'cursor') def list_licenses(self, org_id=None...
0
0
0
810
0
0
0
23
46
9d1352afdb027e2fd6f71ce22ae4079c20966bd8
503
py
Python
api.py
onetrueandrew/dakboard
9267ef6b4c97fd3edcdbd2f26eab82d047b29526
[ "MIT" ]
null
null
null
api.py
onetrueandrew/dakboard
9267ef6b4c97fd3edcdbd2f26eab82d047b29526
[ "MIT" ]
null
null
null
api.py
onetrueandrew/dakboard
9267ef6b4c97fd3edcdbd2f26eab82d047b29526
[ "MIT" ]
null
null
null
import flask app = flask.Flask(__name__) app.config["DEBUG"] = True if __name__ == '__main__': app.run(host='0.0.0.0')
20.12
37
0.60835
import flask import sys, os app = flask.Flask(__name__) app.config["DEBUG"] = True @app.route('/away', methods=['GET']) def home(): datetime1 = "away" file = 'away' with open(file,'w') as filewrite: filewrite.write(datetime1) return "200" @app.route('/home', methods=['GET']) def home2(): ...
0
317
0
0
0
0
0
-7
68
850932a41cd7a218402298d19670ec74b4acaab8
3,201
py
Python
gammapy/data/tests/test_obs_summary.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
3
2019-01-28T12:21:14.000Z
2019-02-10T19:58:07.000Z
gammapy/data/tests/test_obs_summary.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
gammapy/data/tests/test_obs_summary.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals
32.333333
88
0.730397
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals from numpy.testing import assert_allclose from astropy.coordinates import SkyCoord import astropy.units as u from regions import CircleSkyRegion from ...data import DataStor...
0
1,434
0
0
0
1,036
0
268
312
8da5d49a1c4caa3e93482e605812ae5286c0c2b1
5,258
py
Python
xdream/net_utils/net_catalogue.py
willwx/XDream
ee7022a35e94f00d08fdb1e49ca784fc497740c0
[ "MIT" ]
38
2019-04-19T16:37:37.000Z
2022-02-15T21:42:24.000Z
xdream/net_utils/net_catalogue.py
willwx/XDream
ee7022a35e94f00d08fdb1e49ca784fc497740c0
[ "MIT" ]
null
null
null
xdream/net_utils/net_catalogue.py
willwx/XDream
ee7022a35e94f00d08fdb1e49ca784fc497740c0
[ "MIT" ]
12
2019-05-01T20:29:26.000Z
2021-04-30T07:49:25.000Z
""" Database of neural networks to support easy API To add a new network, edit `net_paths`, `net_io_layers`, `all_classifiers`/`all_generators`, and `net_scales` """ from os.path import join from numpy import array from .local_settings import nets_dir __all__ = ['refresh_available_nets', 'net_paths_exi...
43.454545
98
0.62286
""" Database of neural networks to support easy API To add a new network, edit `net_paths`, `net_io_layers`, `all_classifiers`/`all_generators`, and `net_scales` """ from os.path import join, exists from numpy import array from .local_settings import nets_dir __all__ = ['refresh_available_nets', 'net_p...
0
0
0
0
0
1,028
0
8
23
2215db79fd31b0f329e1f8f92568b66dad0a7720
823
py
Python
python/067 Add Binary.py
allandproust/leetcode-share
92bf28abf81a4cbf988d6595b9e42a6ee1b9071d
[ "MIT" ]
156
2017-04-18T13:33:45.000Z
2022-03-18T03:33:06.000Z
python/067 Add Binary.py
guling/leetcode-share
f82d816012298b3c59bfabfa0789da5f26d46fc5
[ "MIT" ]
2
2017-05-01T17:20:51.000Z
2020-04-24T14:52:19.000Z
python/067 Add Binary.py
guling/leetcode-share
f82d816012298b3c59bfabfa0789da5f26d46fc5
[ "MIT" ]
103
2017-04-26T05:26:30.000Z
2022-02-15T05:35:19.000Z
''' Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". ''' if __name__ == "__main__": assert Solution().addBinary("111", "1") == "1000"
22.861111
66
0.44836
''' Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". ''' class Solution(object): def addBinary(self, a, b): """ :type a: str :type b: str :rtype: str """ result = [] carry = val = 0 if len...
0
0
0
598
0
0
0
0
23
f574bc81189ed3ac3b6e22694e861a448a6d7fb8
729
py
Python
environment/game_handlers/game_inspection.py
RubenPants/EvolvableRNN
818a4ce941536611c0f1780f7c4a6238f0e1884e
[ "Apache-2.0" ]
null
null
null
environment/game_handlers/game_inspection.py
RubenPants/EvolvableRNN
818a4ce941536611c0f1780f7c4a6238f0e1884e
[ "Apache-2.0" ]
null
null
null
environment/game_handlers/game_inspection.py
RubenPants/EvolvableRNN
818a4ce941536611c0f1780f7c4a6238f0e1884e
[ "Apache-2.0" ]
null
null
null
""" inspect_games.py Check if all games are created correctly. """ import os from config import Config from environment.game import Game if __name__ == '__main__': os.chdir("../..") config = Config() for g_id in [1, 2, 3]: try: game = Game( game_id=g_id, ...
24.3
72
0.502058
""" inspect_games.py Check if all games are created correctly. """ import os from config import Config from environment.game import Game if __name__ == '__main__': os.chdir("../..") config = Config() for g_id in [1, 2, 3]: try: game = Game( game_id=g_id, ...
0
0
0
0
0
0
0
0
0
50fa148aec0b0cf3151ff81a99b389b75d408055
6,074
py
Python
highlight_mentions/highlighter.py
nmonath/highlight_mentions
8b7470072d1004ffbf012344eca64221e36b9d35
[ "Apache-2.0" ]
null
null
null
highlight_mentions/highlighter.py
nmonath/highlight_mentions
8b7470072d1004ffbf012344eca64221e36b9d35
[ "Apache-2.0" ]
null
null
null
highlight_mentions/highlighter.py
nmonath/highlight_mentions
8b7470072d1004ffbf012344eca64221e36b9d35
[ "Apache-2.0" ]
null
null
null
from absl import logging from typing import Iterable, Callable logging.info(logging.DEBUG) def highlight_texts(text: str, list_of_mentions: Iterable[Mention], get_color: Callable[[Mention], str]) -> str: """Produce HTML that labels the entities in the given span. """ mentions = [[m.start_char_offset, m.en...
34.123596
199
0.546592
from absl import logging from typing import Iterable, Callable from faker import Factory logging.info(logging.DEBUG) class Doc(object): def __init__(self, name, text, mentions): self.name = name self.text = text self.mentions = mentions class Mention(object): def __init__(self, star...
0
0
0
2,976
0
577
0
4
145
35247582901be5135cf4d5b701cd446e1e7dd414
6,692
py
Python
dulcimer-trainer/processing/compiler/compiler.py
paulscottrobson/old-trainer-archive
b3659d3f36b7443594202e0ae9439e80e493a22c
[ "MIT" ]
null
null
null
dulcimer-trainer/processing/compiler/compiler.py
paulscottrobson/old-trainer-archive
b3659d3f36b7443594202e0ae9439e80e493a22c
[ "MIT" ]
null
null
null
dulcimer-trainer/processing/compiler/compiler.py
paulscottrobson/old-trainer-archive
b3659d3f36b7443594202e0ae9439e80e493a22c
[ "MIT" ]
null
null
null
# ************************************************************************************************ # # Compiler Exception # # ************************************************************************************************ # ***********************************************************************************...
31.125581
115
0.562612
import sys,re # ************************************************************************************************ # # Compiler Exception # # ************************************************************************************************ class CompilerError(Exception): pass # *****************************...
0
0
0
5,804
0
0
0
-8
92
54b80958ef1081dfbbbaf7db8bfdfecdd2bfe51e
534
py
Python
src/djanban/apps/multiboards/migrations/0004_auto_20170526_1615.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
33
2017-06-14T18:04:25.000Z
2021-06-15T07:07:56.000Z
src/djanban/apps/multiboards/migrations/0004_auto_20170526_1615.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
1
2017-05-10T08:45:55.000Z
2017-05-10T08:45:55.000Z
src/djanban/apps/multiboards/migrations/0004_auto_20170526_1615.py
diegojromerolopez/djanban
6451688d49cf235d03c604b19a6a8480b33eed87
[ "MIT" ]
8
2017-08-27T11:14:25.000Z
2021-03-03T12:11:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-26 14:15 from __future__ import unicode_literals
25.428571
126
0.64794
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-26 14:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('multiboards', '0003_multiboard_members'), ] operations = [ migrations.AlterFi...
0
0
0
357
0
0
0
19
46
b9a51be422c475f4f7136b67d637433e6ad1d7e0
1,769
py
Python
road_and_lib.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
road_and_lib.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
road_and_lib.py
baduy9x/AlgorithmPractice
9fb956aedf67c0515b66f2af93d8383dba697fec
[ "Apache-2.0" ]
null
null
null
#!/bin/python3 import sys # # Complete the 'roadsAndLibraries' function below. # # The function is expected to return a LONG_INTEGER. # The function accepts following parameters: # 1. INTEGER n # 2. INTEGER c_lib # 3. INTEGER c_road # 4. 2D_INTEGER_ARRAY cities # if __name__ == '__main__': fptr = sys.std...
21.839506
67
0.555681
#!/bin/python3 import math import os import random import re import sys from collections import defaultdict # # Complete the 'roadsAndLibraries' function below. # # The function is expected to return a LONG_INTEGER. # The function accepts following parameters: # 1. INTEGER n # 2. INTEGER c_lib # 3. INTEGER c_road...
0
0
0
0
0
769
0
-28
137
7c6ac94181cac770eb966081300544779eb16dd7
4,285
py
Python
tests/acceptance/commons/logger_utils.py
IOTs-Projects/fiware-skuld
b0a24d4eccf60fd23511e2c025a354a14efe1808
[ "Apache-2.0" ]
1
2015-10-22T12:14:31.000Z
2015-10-22T12:14:31.000Z
tests/acceptance/commons/logger_utils.py
telefonicaid/fiware-skuld
4b1e9581b1193514942410c292290fa375832915
[ "Apache-2.0" ]
63
2015-09-23T10:50:01.000Z
2016-11-25T20:09:49.000Z
tests/acceptance/commons/logger_utils.py
IOTs-Projects/fiware-skuld
b0a24d4eccf60fd23511e2c025a354a14efe1808
[ "Apache-2.0" ]
2
2018-05-25T19:04:36.000Z
2020-03-05T19:35:58.000Z
# -*- coding: utf-8 -*- # Copyright 2015 Telefnica Investigacin y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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...
31.277372
90
0.669778
# -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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://w...
6
0
0
0
0
0
0
0
0
d14b85d36a602279c32a9d0f2eaec91e00e64862
23,604
py
Python
src/meteorological_preprocessor/met_pre_bufr_to_arrow.py
public-tatsuya-noyori/meteorological_preprocessor
fc90bbb5c63b917b6d3ec6fb69a392801a63220e
[ "MIT" ]
1
2021-01-05T09:44:24.000Z
2021-01-05T09:44:24.000Z
src/meteorological_preprocessor/met_pre_bufr_to_arrow.py
public-tatsuya-noyori/meteorological_preprocessor
fc90bbb5c63b917b6d3ec6fb69a392801a63220e
[ "MIT" ]
null
null
null
src/meteorological_preprocessor/met_pre_bufr_to_arrow.py
public-tatsuya-noyori/meteorological_preprocessor
fc90bbb5c63b917b6d3ec6fb69a392801a63220e
[ "MIT" ]
1
2020-10-06T11:04:22.000Z
2020-10-06T11:04:22.000Z
#!/usr/bin/env python3 if __name__ == '__main__': main()
78.418605
286
0.468734
#!/usr/bin/env python3 import argparse import eccodes as ec import numpy as np import os import pkg_resources import pyarrow as pa import re import sys import traceback from datetime import datetime, timedelta, timezone from pyarrow import csv def convert_to_arrow(my_cccc, in_file_list, out_dir, out_list_file, conf_df...
0
0
0
0
0
23,275
0
-21
288
59db29bc7da44276730894285ef126ecfbb86f57
3,202
py
Python
scripts/run_metasv_age.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
43
2015-01-12T20:58:24.000Z
2021-11-24T07:30:06.000Z
scripts/run_metasv_age.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
80
2015-01-08T00:34:55.000Z
2022-02-16T08:30:34.000Z
scripts/run_metasv_age.py
willrockout/metasv
b46f15cbe8a28941661855da6587451c971dc2e3
[ "BSD-2-Clause" ]
25
2015-04-30T06:30:28.000Z
2022-02-22T02:48:20.000Z
#!/usr/bin/env python import argparse import logging import sys from metasv.age import run_age_parallel FORMAT = '%(levelname)s %(asctime)-15s %(name)-20s %(message)s' logging.basicConfig(level=logging.INFO, format=FORMAT) logger = logging.getLogger(__name__) if __name__ == "__main__": parser = argparse.Argument...
66.708333
120
0.698938
#!/usr/bin/env python import argparse import logging import sys from metasv.defaults import * from metasv.age import run_age_parallel FORMAT = '%(levelname)s %(asctime)-15s %(name)-20s %(message)s' logging.basicConfig(level=logging.INFO, format=FORMAT) logger = logging.getLogger(__name__) if __name__ == "__main__": ...
0
0
0
0
0
0
0
8
22
c71fd2a7b97aa0b8f96c5a6a760ffe99692be8e5
1,755
py
Python
nexentaedge/settings.py
Nexenta/JujuCharm
888aa3feec046759cb1ba40528a8e9d7fdd75867
[ "Apache-2.0" ]
1
2016-05-05T16:34:54.000Z
2016-05-05T16:34:54.000Z
nexentaedge/settings.py
Nexenta/JujuCharm
888aa3feec046759cb1ba40528a8e9d7fdd75867
[ "Apache-2.0" ]
null
null
null
nexentaedge/settings.py
Nexenta/JujuCharm
888aa3feec046759cb1ba40528a8e9d7fdd75867
[ "Apache-2.0" ]
null
null
null
# class for static variables persistent for all NEDGE charms
35.1
71
0.704274
# class for static variables persistent for all NEDGE charms class Settings: NEDGE_FOLDER_PATH = '/opt/nedge' NEADM_FOLDER_PATH = '/opt/nedge/neadm' NEDEPLOY_FOLDER_PATH = '/opt/nedge/nedeploy' NEADM_CMD = '{0}/neadm'.format(NEADM_FOLDER_PATH) NEDEPLOY_CMD = '{0}/nedeploy'.format(NEDEPLOY_FOLDER_PAT...
0
0
0
1,672
0
0
0
0
22
6fe065cae3156cb0c49ed895642e981354c35cd7
637
py
Python
migrations/versions/36b213001624_modify_filamenttype_to_use_a_profile_.py
Toby-Lawrance/apollo
a7eb5e913dd069d2e7c76a94983eacab6b15a31e
[ "MIT" ]
2
2018-02-23T23:11:39.000Z
2020-05-21T05:53:25.000Z
migrations/versions/36b213001624_modify_filamenttype_to_use_a_profile_.py
Toby-Lawrance/apollo
a7eb5e913dd069d2e7c76a94983eacab6b15a31e
[ "MIT" ]
22
2018-02-23T21:50:09.000Z
2022-03-12T00:49:31.000Z
migrations/versions/36b213001624_modify_filamenttype_to_use_a_profile_.py
Toby-Lawrance/apollo
a7eb5e913dd069d2e7c76a94983eacab6b15a31e
[ "MIT" ]
22
2018-02-23T13:21:24.000Z
2021-02-26T19:22:02.000Z
"""Modify FilamentType to use a profile instead of cost Revision ID: 36b213001624 Revises: e64fcfd066ac Create Date: 2020-06-14 13:52:56.574015 """ # revision identifiers, used by Alembic. revision = '36b213001624' down_revision = 'e64fcfd066ac' branch_labels = None depends_on = None
24.5
91
0.744113
"""Modify FilamentType to use a profile instead of cost Revision ID: 36b213001624 Revises: e64fcfd066ac Create Date: 2020-06-14 13:52:56.574015 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = '36b213001624' down_revision = 'e64fcfd066ac' branch_labels = None dep...
0
0
0
0
0
254
0
3
90
85c8bed76f69f3598b1d33a12a02bd18928b8f53
2,650
py
Python
library/types_test.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
library/types_test.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
library/types_test.py
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) import unittest if __name__ == "__main__": unittest.main()
33.544304
87
0.667547
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) import types import unittest class NewClassTests(unittest.TestCase): def test_new_class_with_name_sets_name(self): result = types.new_class("foo") self.assertIsInstance(result, type) self.assertEqual(result.__name...
0
0
0
2,447
0
0
0
-9
68
4ecee5a63742dd0d87d2acfc05f544be36430d9e
1,034
py
Python
thrift/lib/py/transport/TSocketTest.py
project-zerus/fbthrift
fc092e2b645def21482c1772250a97a7cd003cee
[ "Apache-2.0" ]
5
2015-11-23T00:26:06.000Z
2020-07-31T12:56:08.000Z
thrift/lib/py/transport/TSocketTest.py
project-zerus/fbthrift
fc092e2b645def21482c1772250a97a7cd003cee
[ "Apache-2.0" ]
2
2017-05-10T15:43:34.000Z
2018-01-04T22:36:04.000Z
thrift/lib/py/transport/TSocketTest.py
project-zerus/fbthrift
fc092e2b645def21482c1772250a97a7cd003cee
[ "Apache-2.0" ]
7
2017-09-01T01:30:25.000Z
2019-02-04T17:46:24.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import thrift.transport.TSocket as TSocket
34.466667
79
0.670213
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import socket import thrift.transport.TSocket as TSocket import unittest class TSocketTest(unittest.TestCase): def test_usage_as_context_manager(self): ""...
0
0
0
786
0
0
0
-14
69
33a538794fbf1983264963151a72fea13089b2be
1,717
py
Python
Downloader Dude.py
technicave/Downloader-Dude
e9ba12b453ad6e374763308a5d5305434a045bbe
[ "MIT" ]
null
null
null
Downloader Dude.py
technicave/Downloader-Dude
e9ba12b453ad6e374763308a5d5305434a045bbe
[ "MIT" ]
null
null
null
Downloader Dude.py
technicave/Downloader-Dude
e9ba12b453ad6e374763308a5d5305434a045bbe
[ "MIT" ]
null
null
null
from tkinter import ttk root = Tk() root.geometry('655x584') root.minsize(655,584) root.maxsize(655,584) root.title("Downloader Dude--By Aryan") root.config(bg="purple") root.iconbitmap("resource/dude.ico") entry = StringVar() title = Label(root, text="Download--Dude", font="lucida 30 bold", bg="purple...
30.122807
108
0.653465
from tkinter import * from pytube import YouTube import tkinter.messagebox as thh from tkinter import ttk import webbrowser root = Tk() root.geometry('655x584') root.minsize(655,584) root.maxsize(655,584) root.title("Downloader Dude--By Aryan") root.config(bg="purple") root.iconbitmap("resource/dude.ico") ...
0
0
0
0
0
630
0
12
142
2a83b59f13f3ddf127e5d4c0123e86a4f1b3104e
5,438
py
Python
my_lib.py
dbrunoteles/detect_and_track_yolov5
4641b1e721bb689ff40006fd164031d9c53dbf28
[ "MIT" ]
null
null
null
my_lib.py
dbrunoteles/detect_and_track_yolov5
4641b1e721bb689ff40006fd164031d9c53dbf28
[ "MIT" ]
null
null
null
my_lib.py
dbrunoteles/detect_and_track_yolov5
4641b1e721bb689ff40006fd164031d9c53dbf28
[ "MIT" ]
null
null
null
# PARAMETERS # frame - frame that the function will be applied # model - detect model that will be applied in each frame # frame_number - number of current frame # id_boxes - dictionary where the IDs will be saved # id_count - counter for new IDs detected # target_object - string for text variables
36.496644
104
0.593784
import torch import cv2 import math # PARAMETERS # frame - frame that the function will be applied # model - detect model that will be applied in each frame # frame_number - number of current frame # id_boxes - dictionary where the IDs will be saved # id_count - counter for new IDs detected # target_object...
0
0
0
0
0
5,034
0
-30
119
3887a60e751c9bd18a257e52e8a45c1933927354
77
py
Python
D02/list/add_append.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
D02/list/add_append.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
D02/list/add_append.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
listsaya=["apel","pisang","pepaya"] listsaya.append("mangga") print(listsaya)
25.666667
35
0.74026
listsaya=["apel","pisang","pepaya"] listsaya.append("mangga") print(listsaya)
0
0
0
0
0
0
0
0
0
adc331f6a66b7c6862d0c4e5f1366b5103b11eff
286
py
Python
fep24.py
Lakshmikanthaks/Python-Literate
c62c7d6ae9672c817126862e6107fd76c570917e
[ "Apache-2.0" ]
1
2016-05-29T01:49:27.000Z
2016-05-29T01:49:27.000Z
fep24.py
Lakshmikanthaks/Python-Literate
c62c7d6ae9672c817126862e6107fd76c570917e
[ "Apache-2.0" ]
null
null
null
fep24.py
Lakshmikanthaks/Python-Literate
c62c7d6ae9672c817126862e6107fd76c570917e
[ "Apache-2.0" ]
null
null
null
# Find the cube root of a perfect cube x = int(raw_input('Enter an integer:')) for ans in range(0, abs(x)+1): if ans**3 >= abs(x): break if ans**3 != abs(x): print x, 'is not a perfect cube' else: if x < 0: ans = -ans print 'Cube root of', x, 'is', ans
23.833333
39
0.552448
# Find the cube root of a perfect cube x = int(raw_input('Enter an integer:')) for ans in range(0, abs(x)+1): if ans**3 >= abs(x): break if ans**3 != abs(x): print x, 'is not a perfect cube' else: if x < 0: ans = -ans print 'Cube root of', x, 'is', ans
0
0
0
0
0
0
0
0
0
10ee56e2122531912675ecea14ea7d92d76ff6bd
5,032
py
Python
fits_magic.py
akutkin/apermos
db75d519674f9be0b63ce2f998249a753ccbee0d
[ "Apache-2.0" ]
null
null
null
fits_magic.py
akutkin/apermos
db75d519674f9be0b63ce2f998249a753ccbee0d
[ "Apache-2.0" ]
null
null
null
fits_magic.py
akutkin/apermos
db75d519674f9be0b63ce2f998249a753ccbee0d
[ "Apache-2.0" ]
2
2020-06-09T12:14:47.000Z
2021-12-12T21:13:36.000Z
import numpy as np from astropy import units as u from astropy.convolution import convolve from astropy.io import fits as pyfits from radio_beam import Beam def fits_transfer_coordinates(fromfits, tofits): """ transfer RA and Dec from one fits to another """ with pyfits.open(fromfits) as f: h...
37.274074
89
0.608506
import numpy as np from astropy import units as u from astropy.convolution import convolve from astropy.io import fits as pyfits from astropy.nddata import Cutout2D from astropy.wcs import WCS from radio_beam import Beam def fits_transfer_coordinates(fromfits, tofits): """ transfer RA and Dec from one fits to...
0
0
0
0
0
1,166
0
20
67
6c3627dd102ffc2dc47e0614d388e7eb49623bfe
5,677
py
Python
Energy_Industry.py
mindcodemediator/Database_Energy_Project
d855e3692fc501b05a32e231b10d3dc92154a1d8
[ "MIT" ]
null
null
null
Energy_Industry.py
mindcodemediator/Database_Energy_Project
d855e3692fc501b05a32e231b10d3dc92154a1d8
[ "MIT" ]
null
null
null
Energy_Industry.py
mindcodemediator/Database_Energy_Project
d855e3692fc501b05a32e231b10d3dc92154a1d8
[ "MIT" ]
null
null
null
# imports import streamlit as st import cx_Oracle from PIL import Image # vars states = ["""""", """AL""", """AK""", """AZ""", """AR""", """CA""", """CO""", """CT""", """DE""", """FL""", """GA""", """HI""", """ID""", """IL""", """IN""", """IA""", """KS""", """KY""", """LA""", """ME""", """MD""", """MA...
35.93038
128
0.598379
# imports import streamlit as st import cx_Oracle from Energy_reliability import * from Energy_CO2 import * from Energy_fuel import * from Energy_sales import * from Energy_reliability import * from PIL import Image # vars states = ["""""", """AL""", """AK""", """AZ""", """AR""", """CA""", """CO""", """CT""...
0
0
0
0
0
3,915
0
34
238
f3265d00ff34ebe88ffb41c0014bfdc969f5a4ca
4,817
py
Python
nets/resnet50.py
zzj-dyj/classification-of-literati-painting-sentiment
de79e46630c9713dcb0b4eb2d7e4d631fee320bf
[ "MIT" ]
null
null
null
nets/resnet50.py
zzj-dyj/classification-of-literati-painting-sentiment
de79e46630c9713dcb0b4eb2d7e4d631fee320bf
[ "MIT" ]
null
null
null
nets/resnet50.py
zzj-dyj/classification-of-literati-painting-sentiment
de79e46630c9713dcb0b4eb2d7e4d631fee320bf
[ "MIT" ]
null
null
null
from __future__ import print_function if __name__ == '__main__': model = ResNet50() model.summary()
34.654676
105
0.603695
from __future__ import print_function from keras import backend import numpy as np from keras import layers from keras.layers import (Activation, BatchNormalization, AveragePooling2D, Conv2D, Dense, Flatten, Input, MaxPooling2D, ZeroPadding2D,GlobalAveragePooling2D)...
93
0
0
0
0
4,290
0
203
180
538ae20d71b9118c4433d21f23b0191216f9a85b
2,632
py
Python
barde/passage.py
vlanore/barde
e8e41826414957087d7b4565b64f1f3e8464d439
[ "MIT" ]
null
null
null
barde/passage.py
vlanore/barde
e8e41826414957087d7b4565b64f1f3e8464d439
[ "MIT" ]
null
null
null
barde/passage.py
vlanore/barde
e8e41826414957087d7b4565b64f1f3e8464d439
[ "MIT" ]
null
null
null
from typing import Any, Callable StateType = Any Passage = Callable[..., None]
30.252874
87
0.676292
from typing import Any, Callable from browser import document # type: ignore # pylint: disable=import-error from barde.display import call_passage from barde.state import STORAGE, State from barde.interface import ( hide_sidebar, select_style, open_restart_confirm, close_restart_confirm, ) from barde...
0
0
0
0
0
2,076
0
199
273
d9c2c50fe3cc9197108e90d5b82106e09a7aa754
1,460
py
Python
Water/Imperial_properties.py
hasemar/water
b8cac349f4bf86be50ac29ae8c31a2fe74d71acf
[ "MIT" ]
null
null
null
Water/Imperial_properties.py
hasemar/water
b8cac349f4bf86be50ac29ae8c31a2fe74d71acf
[ "MIT" ]
1
2022-02-23T19:59:20.000Z
2022-02-23T19:59:20.000Z
Water/Imperial_properties.py
hasemar/water
b8cac349f4bf86be50ac29ae8c31a2fe74d71acf
[ "MIT" ]
null
null
null
""" Imperial Properties: Module to assign and access the most common properties of water used in fluid mechanics in english units """ # H20 properties in imperial units @ 50 deg celcius density = 1.94 # slugs/ft^3 specific_weight = 62.4 # lbf/ft^3 dynamic_viscosity = 2.73e-5 # lb*...
31.73913
67
0.582192
""" Imperial Properties: Module to assign and access the most common properties of water used in fluid mechanics in english units """ # H20 properties in imperial units @ 50 deg celcius density = 1.94 # slugs/ft^3 specific_weight = 62.4 # lbf/ft^3 dynamic_viscosity = 2.73e-5 # lb*...
0
0
0
0
0
0
0
0
0
ec39c76aec3f183cddeed6827ed7a2c4ec55057e
3,274
py
Python
geeksw/analysis/variables/electron.py
guitargeek/geeksw
d6e774824eae713e68cf23ae242933be9df52fcf
[ "MIT" ]
2
2019-04-11T22:26:29.000Z
2021-06-23T19:59:36.000Z
geeksw/analysis/variables/electron.py
guitargeek/geeksw
d6e774824eae713e68cf23ae242933be9df52fcf
[ "MIT" ]
null
null
null
geeksw/analysis/variables/electron.py
guitargeek/geeksw
d6e774824eae713e68cf23ae242933be9df52fcf
[ "MIT" ]
null
null
null
import numpy as np def pass_cut_based_id(df, working_point): """Checks which electrons pass a given cut-based working point. Parameters ---------- df : pandas.DataFrame A data frame with electron data. working_point: str The name of the working point, i.e. ``veto``, ``loose``, ``m...
28.973451
216
0.636836
import numpy as np def pass_cut_based_id(df, working_point): """Checks which electrons pass a given cut-based working point. Parameters ---------- df : pandas.DataFrame A data frame with electron data. working_point: str The name of the working point, i.e. ``veto``, ``loose``, ``m...
0
0
0
0
0
460
0
0
23
79f5a7070a716548d2a9ff75c68fcc64470b69c2
8,631
py
Python
sdk/python/lib/test/test_types_output_type.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
12,004
2018-06-17T23:56:29.000Z
2022-03-31T18:00:09.000Z
sdk/python/lib/test/test_types_output_type.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
6,263
2018-06-17T23:27:24.000Z
2022-03-31T19:20:35.000Z
sdk/python/lib/test/test_types_output_type.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
706
2018-06-17T23:56:50.000Z
2022-03-31T11:20:23.000Z
# Copyright 2016-2020, Pulumi Corporation. # # 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 t...
35.518519
94
0.649635
# Copyright 2016-2020, Pulumi Corporation. # # 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 t...
0
3,862
0
3,778
0
0
0
-8
275
2af7f5b56b81fe278ca53770c48ca69b48ca0eb5
5,132
py
Python
converters/keras2json.py
VukanJ/lwtnn
7519b20994a1b8263612e9fb52f6e23f826412a7
[ "MIT" ]
13
2016-03-04T14:34:12.000Z
2016-10-25T07:12:07.000Z
converters/keras2json.py
VukanJ/lwtnn
7519b20994a1b8263612e9fb52f6e23f826412a7
[ "MIT" ]
17
2016-02-20T11:59:21.000Z
2016-11-24T12:35:18.000Z
converters/keras2json.py
VukanJ/lwtnn
7519b20994a1b8263612e9fb52f6e23f826412a7
[ "MIT" ]
7
2016-02-23T10:16:45.000Z
2017-04-14T14:50:48.000Z
#!/usr/bin/env python3 # # Converter from Keras sequential NN to JSON """____________________________________________________________________ Variable specification file In additon to the standard Keras architecture and weights files, you must provide a "variable specification" json file with the following format: ...
32.075
103
0.663094
#!/usr/bin/env python3 # # Converter from Keras sequential NN to JSON """____________________________________________________________________ Variable specification file In additon to the standard Keras architecture and weights files, you must provide a "variable specification" json file with the following format: ...
0
0
0
0
0
2,960
0
31
181
e6e718778d690ef39f044deb8c4dd13135b3857a
61
py
Python
froide/frontpage/__init__.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
froide/frontpage/__init__.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
froide/frontpage/__init__.py
manonthemat/froide
698c49935eaf2e922f3c9f6a46af0fd545ccbbbb
[ "MIT" ]
null
null
null
default_app_config = 'froide.frontpage.apps.FrontpageConfig'
30.5
60
0.852459
default_app_config = 'froide.frontpage.apps.FrontpageConfig'
0
0
0
0
0
0
0
0
0
6368db20d4b0a0acb8a749bf3fcd6aec04a80ec9
2,544
py
Python
main.py
shridharravi97/Automated-Malware-Analysis
92460d9bd55ce942fbe3a14e6ddaa54615c3d8ab
[ "Unlicense" ]
null
null
null
main.py
shridharravi97/Automated-Malware-Analysis
92460d9bd55ce942fbe3a14e6ddaa54615c3d8ab
[ "Unlicense" ]
null
null
null
main.py
shridharravi97/Automated-Malware-Analysis
92460d9bd55ce942fbe3a14e6ddaa54615c3d8ab
[ "Unlicense" ]
3
2020-10-18T11:36:16.000Z
2021-07-29T19:43:37.000Z
from Analysis import youra from VirtualBox import scheduler from os.path import join, abspath from os import getcwd from time import sleep import mysql.connector as mariadb import logging from subprocess import call from shutil import copy logging.basicConfig(format='%(levelname)s:\t%(message)s', level=logging.DEBUG) c...
42.4
135
0.584119
from Analysis import youra from VirtualBox import scheduler from os.path import join, abspath from os import getcwd from time import sleep import mysql.connector as mariadb import logging from subprocess import call from shutil import copy logging.basicConfig(format='%(levelname)s:\t%(message)s', level=logging.DEBUG) c...
0
0
0
0
0
0
0
0
0
a9e2976925d495fa823469c38967536b7a998678
3,323
py
Python
hyperglass/cli/installer.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
298
2019-06-17T13:51:46.000Z
2021-06-23T18:09:51.000Z
hyperglass/cli/installer.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
137
2019-06-18T12:59:37.000Z
2021-06-19T05:50:58.000Z
hyperglass/cli/installer.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
42
2019-06-18T07:25:23.000Z
2021-06-18T17:40:20.000Z
"""Install hyperglass.""" # Standard Library from pathlib import Path # Third Party import inquirer # Local from .echo import warning USER_PATH = Path.home() / "hyperglass" ROOT_PATH = Path("/etc/hyperglass/") ASSET_DIR = Path(__file__).parent.parent / "images" IGNORED_FILES = [".DS_Store"] INSTALL_PATHS = [ i...
28.895652
87
0.631959
"""Install hyperglass.""" # Standard Library import os import shutil from filecmp import dircmp from pathlib import Path # Third Party import inquirer # Local from .echo import error, success, warning from .util import create_dir USER_PATH = Path.home() / "hyperglass" ROOT_PATH = Path("/etc/hyperglass/") ASSET_DIR ...
0
0
0
2,438
0
0
0
8
111
f95ed8bf596e1117f235f727742914c97df0aae7
2,206
py
Python
azclishell/telemetry.py
oakeyc/azure-cli-shell
472df3eab6ab03243242864d3130aecbbb4eca5d
[ "MIT" ]
25
2017-04-03T22:56:31.000Z
2021-05-22T13:35:41.000Z
azclishell/telemetry.py
AzureMentor/azure-cli-shell
b0c376c1dd712c54548185eb3e07ad1aefd615dc
[ "MIT" ]
104
2017-04-03T23:45:44.000Z
2019-06-26T09:42:36.000Z
azclishell/telemetry.py
AzureMentor/azure-cli-shell
b0c376c1dd712c54548185eb3e07ad1aefd615dc
[ "MIT" ]
12
2017-04-03T23:39:10.000Z
2021-01-12T09:13:37.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
30.638889
94
0.639166
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
0
438
0
643
0
0
0
56
136
c87c2aed32f97c5672b3afd6efe8c013add05e71
1,307
py
Python
src/unicef_notification/loaders.py
unicef/unicef-notification
4f0f788dd1006d3fe5dc1c331822392e2ab02e07
[ "Apache-2.0" ]
null
null
null
src/unicef_notification/loaders.py
unicef/unicef-notification
4f0f788dd1006d3fe5dc1c331822392e2ab02e07
[ "Apache-2.0" ]
4
2019-05-08T21:10:24.000Z
2020-10-31T01:25:45.000Z
src/unicef_notification/loaders.py
unicef/unicef-notification
4f0f788dd1006d3fe5dc1c331822392e2ab02e07
[ "Apache-2.0" ]
1
2020-10-22T20:53:40.000Z
2020-10-22T20:53:40.000Z
from django.conf import settings EMAIL_TEMPLATE_PREFIX = getattr( settings, "UNICEF_NOTIFICATION_EMAIL_TEMPLATE_PREFIX", 'email-templates/' )
31.119048
70
0.695486
from django.conf import settings from django.template import Origin, TemplateDoesNotExist from django.template.loaders.base import Loader as BaseLoader from post_office.utils import get_email_template from unicef_notification.models import EmailTemplate EMAIL_TEMPLATE_PREFIX = getattr( settings, "UNICEF_NOTI...
0
0
0
905
0
0
0
133
113
39822a596b631883d0cc086b456cf9589dfbbf9a
3,908
py
Python
api_app/user.py
d-e-h-i-o/insuranceAPI
f646c92ffe287587cfe0fa42307352a125a4dfac
[ "MIT" ]
null
null
null
api_app/user.py
d-e-h-i-o/insuranceAPI
f646c92ffe287587cfe0fa42307352a125a4dfac
[ "MIT" ]
null
null
null
api_app/user.py
d-e-h-i-o/insuranceAPI
f646c92ffe287587cfe0fa42307352a125a4dfac
[ "MIT" ]
null
null
null
"""The User class both validates the registration payload (with the validation class) and is an interface to the DB."""
38.693069
119
0.629734
"""The User class both validates the registration payload (with the validation class) and is an interface to the DB.""" from unicodedata import normalize from api_app.db import Base, db_session from api_app.validation import RegistrationError, Email, PayloadError, validate_password from api_app.validation import String...
0
0
0
3,304
0
0
0
247
234
08263ceeac5929c7426a895788cae6262f868c63
4,521
py
Python
syntacticAnalyzer.py
LeonardFavioC/traductor-python-compilador-
8533f31448eeee477192c7cca9bff94e208e09e0
[ "MIT" ]
null
null
null
syntacticAnalyzer.py
LeonardFavioC/traductor-python-compilador-
8533f31448eeee477192c7cca9bff94e208e09e0
[ "MIT" ]
null
null
null
syntacticAnalyzer.py
LeonardFavioC/traductor-python-compilador-
8533f31448eeee477192c7cca9bff94e208e09e0
[ "MIT" ]
null
null
null
import re import os from lexicalAnalyzer import getTockens writeLines=[] ids = [] if __name__=="__main__": productions=dict() grammar = readFile('grammar', 'r') first_dict = dict() follow_dict = dict() flag = 1 start = "" for line in grammar: l = re.split("( |->|\n|\||)*", line) lhs = l[0] rhs = set(l[1...
22.718593
77
0.599646
import re import os import string import pandas as pd from lexicalAnalyzer import getTockens writeLines=[] ids = [] def parse(line,firstRule,parsingTable, id): flag = 0 stack = [] stack.append("$") stack.append(firstRule) index = 0 originLine='' tokenLine='' for char in line: if type(char) is dict: orig...
0
0
0
0
0
2,644
0
-10
159
1370d65678af38e1deeb4db455e4a962cba21e7c
2,295
py
Python
merge.py
maleficarium/Scripts
e485aea5a8c09727417741700163e9d87b48c25c
[ "MIT" ]
1
2015-04-27T13:44:18.000Z
2015-04-27T13:44:18.000Z
merge.py
maleficarium/Scripts
e485aea5a8c09727417741700163e9d87b48c25c
[ "MIT" ]
null
null
null
merge.py
maleficarium/Scripts
e485aea5a8c09727417741700163e9d87b48c25c
[ "MIT" ]
null
null
null
videoInfo = {'path': "", 'audio_name': "", 'video_name': "", 'final_name': ""} ##Sample videoInfo #videoInfo = {'final_name': u'C:\\Users\\maleficarium/Desktop\\- -bMftWj-e2T4.mp4', 'path': 'C:\\Users\\maleficarium/Desktop/', 'video_name': 'C:\\Users\\maleficarium/Desktop/937bcebcc1c100815b2c75536ee6724afd07ec61f07c76...
36.428571
347
0.679303
import os import glob import hashlib import random, string import time videoInfo = {'path': "", 'audio_name': "", 'video_name': "", 'final_name': ""} ##Sample videoInfo #videoInfo = {'final_name': u'C:\\Users\\maleficarium/Desktop\\- -bMftWj-e2T4.mp4', 'path': 'C:\\Users\\maleficarium/Desktop/', 'video_name': 'C:\\Use...
0
0
0
0
0
1,490
0
-39
223
fbff394d1c245d79a64c6de0bde3d08d179bcf08
1,328
py
Python
sample_requests.py
googleinterns/android-cuttlefish-halyard
cb4178950bcdda52361dd9c6cf6f78781f5e0380
[ "Apache-2.0" ]
1
2020-12-18T08:10:24.000Z
2020-12-18T08:10:24.000Z
sample_requests.py
googleinterns/android-cuttlefish-halyard
cb4178950bcdda52361dd9c6cf6f78781f5e0380
[ "Apache-2.0" ]
24
2020-08-05T00:08:38.000Z
2020-09-24T16:46:40.000Z
sample_requests.py
googleinterns/android-cuttlefish-halyard
cb4178950bcdda52361dd9c6cf6f78781f5e0380
[ "Apache-2.0" ]
null
null
null
import pprint pp = pprint.PrettyPrinter(indent=4) BASE = "http://127.0.0.1:5000/" user_id = '00001' image_name = 'halyard-0-9-14-aosp-master-aosp-cf-x86-phone-userdebug-6796612' images = Resource('image-list') instances = Resource('instance-list') image_body = {"build_instance": "my-build", "tags": ['kradtke-ssh']...
25.538462
84
0.64006
import requests import pprint pp = pprint.PrettyPrinter(indent=4) BASE = "http://127.0.0.1:5000/" class Resource(): def __init__(self, resource_name): self.base = BASE + resource_name def get(self, id): endpoint = self.base if id: endpoint += f'/{id}' res = request...
0
0
0
610
0
104
0
-6
68
9fc6e3775b85cdc294f5ad5287b64504d241f71a
1,807
py
Python
triplet-deep-hash-pytorch/src/hash_net/generate_random_dataset.py
xwzy/Triplet-deep-hash-pytorch
1bc58c6381e815ee3656b17892635acfb95d38bc
[ "Apache-2.0" ]
29
2017-12-01T07:06:17.000Z
2021-06-16T08:03:59.000Z
triplet-deep-hash-pytorch/src/hash_net/generate_random_dataset.py
xwzy/triplet-deep-hash-pytorch
1bc58c6381e815ee3656b17892635acfb95d38bc
[ "Apache-2.0" ]
2
2017-12-07T18:38:25.000Z
2017-12-13T15:15:40.000Z
triplet-deep-hash-pytorch/src/hash_net/generate_random_dataset.py
xwzy/Triplet-deep-hash-pytorch
1bc58c6381e815ee3656b17892635acfb95d38bc
[ "Apache-2.0" ]
12
2017-11-17T18:53:00.000Z
2021-04-08T09:10:29.000Z
import numpy as np import torch from tqdm import tqdm import random import os def get2diff_below(number): """ :param low: include low :param high: include high :return: two different number """ first = random.randint(0, number - 1) offset = random.randint(1, number - 1) second = (firs...
25.450704
71
0.685113
import numpy as np import torch from tqdm import tqdm import random import os from sklearn.preprocessing import normalize def get2diff_below(number): """ :param low: include low :param high: include high :return: two different number """ first = random.randint(0, number - 1) offset = rand...
0
0
0
0
0
0
0
22
22
a1ec4a54c8cff26e4303bb0a9299f78fda03d8c9
10,892
py
Python
plugin.video.rebirth/resources/lib/modules/jsunfuck.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2019-03-05T09:38:10.000Z
2019-03-05T09:38:10.000Z
plugin.video.rebirth/resources/lib/modules/jsunfuck.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.video.rebirth/resources/lib/modules/jsunfuck.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-11-05T20:48:09.000Z
2021-11-05T20:48:09.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # | # # | ______________________________________________________________ # # | :~8a.`~888a:::::::::::::::8...
43.222222
107
0.354297
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # | # # | ______________________________________________________________ # # | :~8a.`~888a:::::::::::::::8...
0
0
0
7,452
0
310
0
-28
139
cf83e7b3e07fe4cd8681b1a740e0908da9800213
1,214
py
Python
src/pybraw/__init__.py
anibali/pybraw
2459ce9eaea7613ce046b58c3b5e0b7f98ef3891
[ "MIT" ]
2
2021-12-05T09:59:08.000Z
2022-03-05T19:02:03.000Z
src/pybraw/__init__.py
anibali/pybraw
2459ce9eaea7613ce046b58c3b5e0b7f98ef3891
[ "MIT" ]
1
2022-03-31T19:12:46.000Z
2022-03-31T19:12:46.000Z
src/pybraw/__init__.py
anibali/pybraw
2459ce9eaea7613ce046b58c3b5e0b7f98ef3891
[ "MIT" ]
null
null
null
from typing import Union def verify(return_values: Union[int, tuple]): """Strip the result code from a library call, asserting success. Args: return_values: Values returned from the library function call. It is expected that the first return value is a HRESULT. Returns: The i...
35.705882
118
0.664745
from typing import Union from .constants import * def verify(return_values: Union[int, tuple]): """Strip the result code from a library call, asserting success. Args: return_values: Values returned from the library function call. It is expected that the first return value is a HRESULT. ...
0
0
0
0
0
0
0
3
23
21e5792f56cd343c1a634ba5deb19aeeb781fe1b
4,356
py
Python
backend/settings.py
juhipark/parrot
4a751cc6cd56929642f7c03d5328c3d018cf8251
[ "BSD-2-Clause" ]
null
null
null
backend/settings.py
juhipark/parrot
4a751cc6cd56929642f7c03d5328c3d018cf8251
[ "BSD-2-Clause" ]
null
null
null
backend/settings.py
juhipark/parrot
4a751cc6cd56929642f7c03d5328c3d018cf8251
[ "BSD-2-Clause" ]
null
null
null
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 2.1.5. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os #...
29.234899
91
0.687328
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 2.1.5. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os #...
0
0
0
0
0
0
0
0
0
f7db7bfa289d2983d0e1777a4c0c95ca7c7c3081
406
py
Python
problem_58/prime_diagonals.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
problem_58/prime_diagonals.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
problem_58/prime_diagonals.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
SIEVE = PrimeSieve(100000)
25.375
55
0.660099
from common.ulam_spiral import * from common.primes import * SIEVE = PrimeSieve(100000) def prime_ratio_below(limit): corners_seen = 1 primes_seen = 0 n = 3 for corners in ulam_spiral_corners_except_center(): primes_seen += len(filter(is_prime, corners)) corners_seen += len(corners) ...
0
0
0
0
0
294
0
17
67
bd6aeed1c4badb4338612e8d8537ba9c3dddf9f7
666
py
Python
bims/migrations/0153_sitesetting_map_default_filters.py
meomancer/django-bims
cc59a726f7975d853e3e282441a5077933c161f1
[ "MIT" ]
null
null
null
bims/migrations/0153_sitesetting_map_default_filters.py
meomancer/django-bims
cc59a726f7975d853e3e282441a5077933c161f1
[ "MIT" ]
null
null
null
bims/migrations/0153_sitesetting_map_default_filters.py
meomancer/django-bims
cc59a726f7975d853e3e282441a5077933c161f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-08-07 07:54 from __future__ import unicode_literals
30.272727
221
0.666667
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-08-07 07:54 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bims', '0152_profile_role'), ] operations = [ ...
0
0
0
450
0
0
0
33
68
accdce374d99722e380a531196d965a0d849350c
2,964
py
Python
tempeh/datasets/uci_datasets.py
Bhaskers-Blu-Org2/tempeh
171bf8dc9350de1f526dba93ecc83fce4ee9c138
[ "MIT" ]
8
2019-10-09T21:54:19.000Z
2022-03-18T01:41:40.000Z
tempeh/datasets/uci_datasets.py
Bhaskers-Blu-Org2/tempeh
171bf8dc9350de1f526dba93ecc83fce4ee9c138
[ "MIT" ]
6
2019-10-09T21:52:01.000Z
2020-01-21T22:22:30.000Z
tempeh/datasets/uci_datasets.py
microsoft/tempeh
364fdf563fba04d1dab665d829a1482fe4a7e0f8
[ "MIT" ]
4
2020-06-30T16:16:27.000Z
2022-03-08T14:52:17.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Defines a class for the UCI datasets."""
41.166667
98
0.618758
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Defines a class for the UCI datasets.""" import numpy as np from .base_wrapper import BasePerformanceDatasetWrapper from .uci_dataset_cleaner import bank_data_parser, bank_data_additional_parser, car_eval_parser, \ ad...
0
963
0
1,550
0
0
0
191
120
589e1b44d0d5372afabf7293b9bb78ec0474da8f
71
py
Python
backend/database/__init__.py
ComicShrimp/snotra
7df050584791cf2e9195f5bfb0b01c744f48503a
[ "MIT" ]
null
null
null
backend/database/__init__.py
ComicShrimp/snotra
7df050584791cf2e9195f5bfb0b01c744f48503a
[ "MIT" ]
null
null
null
backend/database/__init__.py
ComicShrimp/snotra
7df050584791cf2e9195f5bfb0b01c744f48503a
[ "MIT" ]
null
null
null
from .async_database import AsyncDatabase __all__ = ["AsyncDatabase"]
17.75
41
0.802817
from .async_database import AsyncDatabase __all__ = ["AsyncDatabase"]
0
0
0
0
0
0
0
0
0
75ed9dde7f266cab697972a22b0ed9b54b504024
5,375
py
Python
atmcorr/tiling.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
5
2019-09-03T17:13:57.000Z
2021-12-01T03:22:11.000Z
atmcorr/tiling.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
1
2021-04-28T08:11:37.000Z
2021-04-28T09:52:02.000Z
atmcorr/tiling.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
1
2021-03-31T02:13:08.000Z
2021-03-31T02:13:08.000Z
from __future__ import division import affine import pyproj import numpy as np def get_tiled_transform_shape(src_transform, src_shape, dst_res): """Get transform and shape of tile grid with resolution dst_res Paramters --------- src_transform : affine.Affine source transform src_shape : ...
28.289474
89
0.61693
from __future__ import division import affine import pyproj import numpy as np def get_tiled_transform_shape(src_transform, src_shape, dst_res): """Get transform and shape of tile grid with resolution dst_res Paramters --------- src_transform : affine.Affine source transform src_shape : ...
0
0
0
0
0
53
0
0
23
f03a9dc37426140577f6dcaa9f8b1f29dba2733b
2,524
py
Python
plugins/wigle/komand_wigle/actions/search_cells/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/wigle/komand_wigle/actions/search_cells/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/wigle/komand_wigle/actions/search_cells/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# Custom imports below
35.549296
105
0.449287
import komand from .schema import SearchCellsInput, SearchCellsOutput # Custom imports below from komand_wigle.util.utils import clear_empty_values class SearchCells(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="search_cells", description="Query t...
44
0
0
2,329
0
0
0
59
89
577713358b04225891d6ab3c74be284c1bfb24c2
28,841
py
Python
python/analysis/mirnaOverlap.py
mjoppich/miRExplore
32760d88d65e7bc23b2bfb49415efcd0a7c7c5e1
[ "Apache-2.0" ]
null
null
null
python/analysis/mirnaOverlap.py
mjoppich/miRExplore
32760d88d65e7bc23b2bfb49415efcd0a7c7c5e1
[ "Apache-2.0" ]
null
null
null
python/analysis/mirnaOverlap.py
mjoppich/miRExplore
32760d88d65e7bc23b2bfb49415efcd0a7c7c5e1
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict, Counter import networkx as nx import os, sys from synonymes.GeneOntology import GeneOntology sys.path.insert(0, str(os.path.dirname("/mnt/d/dev/git/poreSTAT/"))) from porestat.utils.DataFrame import DataFrame, DataRow, ExportTYPE from synonymes.mirnaID import miRNA, ...
32.405618
299
0.480531
import pickle import tempfile from collections import defaultdict, Counter import networkx as nx from networkx.drawing.nx_agraph import graphviz_layout, pygraphviz_layout import os, sys from synonymes.GeneOntology import GeneOntology from utils.tmutils import normalize_gene_names sys.path.insert(0, str(...
0
0
0
0
0
0
0
94
117
919db0e4f8484a501b78f955221a1be5ac1bf8b0
845
py
Python
Components/Center all components.py
Ricard-Garcia/TR-Glyphs-Scripts
44f161ed76e45364e2e9dc178c8c37392f312542
[ "Apache-2.0" ]
7
2019-09-16T15:34:05.000Z
2020-11-27T17:58:02.000Z
Components/Center all components.py
Ricard-Garcia/TR-Glyphs-Scripts
44f161ed76e45364e2e9dc178c8c37392f312542
[ "Apache-2.0" ]
null
null
null
Components/Center all components.py
Ricard-Garcia/TR-Glyphs-Scripts
44f161ed76e45364e2e9dc178c8c37392f312542
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Centers all components in the middle of the layer. # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals # Ricard Garcia (@Typerepublic) - 28.12.2020 # ------------------------------------------ __doc__=""" From all selected layers, centers all components in the middl...
17.978723
76
0.51716
# MenuTitle: Centers all components in the middle of the layer. # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals # Ricard Garcia (@Typerepublic) - 28.12.2020 # ------------------------------------------ __doc__=""" From all selected layers, centers all components in the middl...
0
0
0
0
0
0
0
0
0
f21b854fb8bd9b8a2a31e75bad97849676e9a805
668
py
Python
AlgorithmProblems/0378. Kth Smallest Element in a Sorted Matrix/main0378.py
lynnli92/leetcode-group-solution
b497eaf29fb820648366b44e27c918503936b167
[ "MIT" ]
4
2021-12-31T00:53:32.000Z
2022-01-22T21:28:46.000Z
AlgorithmProblems/0378. Kth Smallest Element in a Sorted Matrix/main0378.py
lynnli92/leetcode-group-solution
b497eaf29fb820648366b44e27c918503936b167
[ "MIT" ]
1
2021-12-31T00:40:34.000Z
2021-12-31T00:40:34.000Z
AlgorithmProblems/0378. Kth Smallest Element in a Sorted Matrix/main0378.py
lynnli92/leetcode-group-solution
b497eaf29fb820648366b44e27c918503936b167
[ "MIT" ]
5
2021-12-31T00:28:40.000Z
2022-03-22T21:01:40.000Z
sol = Solution0378() matrix = [[1,5,9],[10,11,13],[12,13,15]] k = 8 res = sol.kthSmallest(matrix, k) print(res)
25.692308
88
0.531437
from heapq import heappop, heappush class Solution0378(object): def kthSmallest(self, matrix, k): """ :type matrix: List[List[int]] :type k: int :rtype: int """ row, col = len(matrix), len(matrix[0]) minheap = [] for r in range(min(k, row)): ...
0
0
0
487
0
0
0
14
45
5890fc9a2fabc537fc7481a1bd3e45ada7e88bb6
811
py
Python
tests/components/websocket_api/test_connection.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
tests/components/websocket_api/test_connection.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
52
2020-07-14T14:12:26.000Z
2022-03-31T06:24:02.000Z
tests/components/websocket_api/test_connection.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Test WebSocket Connection class."""
35.26087
73
0.722565
"""Test WebSocket Connection class.""" from homeassistant.components import websocket_api from homeassistant.components.websocket_api import const async def test_send_big_result(hass, websocket_client): """Test sending big results over the WS.""" @websocket_api.websocket_command({"type": "big_result"}) @...
0
194
446
0
0
0
0
64
67
233530f2a8c0184efe24504c8da479d5c1a7e0a7
26,811
py
Python
ncvue/ncvcontour.py
mcuntz/ncvue
75fc18e245f2bb1b1b5a3c74fee77d5b805a9f5d
[ "MIT" ]
16
2021-02-25T07:49:42.000Z
2021-11-13T15:04:16.000Z
ncvue/ncvcontour.py
mcuntz/ncvue
75fc18e245f2bb1b1b5a3c74fee77d5b805a9f5d
[ "MIT" ]
3
2021-02-27T18:06:43.000Z
2021-11-14T19:45:55.000Z
ncvue/ncvcontour.py
mcuntz/ncvue
75fc18e245f2bb1b1b5a3c74fee77d5b805a9f5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Contour panel of ncvue. The panel allows plotting contour or mesh plots of 2D-variables. This module was written by Matthias Cuntz while at Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement (INRAE), Nancy, France. Copyright (c) 2020-2021 Matthias Cuntz - m...
35.092932
79
0.528365
#!/usr/bin/env python """ Contour panel of ncvue. The panel allows plotting contour or mesh plots of 2D-variables. This module was written by Matthias Cuntz while at Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement (INRAE), Nancy, France. Copyright (c) 2020-2021 Matthias Cuntz - m...
0
0
0
25,178
0
0
0
207
287
b019fe3c9fee9ddf415cc0c96da98364520f7fbb
1,356
py
Python
sparse_operation_kit/unit_test/python/sok_unit_test_lib.py
aalbersk/DeepRec
f673a950780959b44dcda99398880a1d883ab338
[ "Apache-2.0" ]
292
2021-12-24T03:24:33.000Z
2022-03-31T15:41:05.000Z
sparse_operation_kit/unit_test/python/sok_unit_test_lib.py
aalbersk/DeepRec
f673a950780959b44dcda99398880a1d883ab338
[ "Apache-2.0" ]
72
2021-10-09T04:59:09.000Z
2022-03-31T11:27:54.000Z
sparse_operation_kit/unit_test/python/sok_unit_test_lib.py
aalbersk/DeepRec
f673a950780959b44dcda99398880a1d883ab338
[ "Apache-2.0" ]
75
2021-12-24T04:48:21.000Z
2022-03-29T10:13:39.000Z
""" Copyright (c) 2021, NVIDIA CORPORATION. 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 ...
30.818182
76
0.763274
""" Copyright (c) 2021, NVIDIA CORPORATION. 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 ...
0
0
0
0
0
0
0
0
0
6fb6bc3be9ae2554299073daa525b3aa01839551
394
py
Python
commons/setup.py
emkor/serverless-pwr-inz
1a2ee7c6f6f52ce61754510cd7b59e180565306c
[ "MIT" ]
2
2017-10-02T14:48:41.000Z
2021-11-21T18:20:28.000Z
commons/setup.py
emkor/serverless-pwr-inz
1a2ee7c6f6f52ce61754510cd7b59e180565306c
[ "MIT" ]
null
null
null
commons/setup.py
emkor/serverless-pwr-inz
1a2ee7c6f6f52ce61754510cd7b59e180565306c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages setup(name='srvrlss-commons', version='0.0.2', description='Common functionality for serverless arch demo', author='Mateusz Korzeniowski', author_email='mkorzeniowski93@gmail.com', url='https://git...
30.307692
66
0.708122
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages setup(name='srvrlss-commons', version='0.0.2', description='Common functionality for serverless arch demo', author='Mateusz Korzeniowski', author_email='mkorzeniowski93@gmail.com', url='https://git...
0
0
0
0
0
0
0
0
0
b4330a9499e6532f2be52bba76b3fd1326ed96df
873
py
Python
synergy/db/dao/managed_process_dao.py
mushkevych/scheduler
8228cde0f027c0025852cb63a6698cdd320838f1
[ "BSD-3-Clause" ]
15
2015-02-01T09:20:23.000Z
2021-04-27T08:46:45.000Z
synergy/db/dao/managed_process_dao.py
mushkevych/scheduler
8228cde0f027c0025852cb63a6698cdd320838f1
[ "BSD-3-Clause" ]
26
2015-01-12T22:28:40.000Z
2021-07-05T01:22:17.000Z
synergy/db/dao/managed_process_dao.py
mushkevych/scheduler
8228cde0f027c0025852cb63a6698cdd320838f1
[ "BSD-3-Clause" ]
2
2016-07-21T03:02:46.000Z
2019-10-03T23:59:23.000Z
__author__ = 'Bohdan Mushkevych'
39.681818
91
0.69874
__author__ = 'Bohdan Mushkevych' from synergy.db.dao.base_dao import BaseDao from synergy.db.model.managed_process_entry import ManagedProcessEntry from synergy.system.decorator import thread_safe from synergy.scheduler.scheduler_constants import COLLECTION_MANAGED_PROCESS class ManagedProcessDao(BaseDao): """ T...
0
186
0
388
0
0
0
153
112
3143e5231b6174231f4702d12bbfbb45868ea06c
2,239
py
Python
python-package/lightgbm/compat.py
harunpehlivan/LightGBM
8ba65be9c93b79c095ea06e74de2cc5bf35ab169
[ "MIT" ]
12
2017-12-08T04:53:04.000Z
2021-01-11T07:25:36.000Z
python-package/lightgbm/compat.py
harunpehlivan/LightGBM
8ba65be9c93b79c095ea06e74de2cc5bf35ab169
[ "MIT" ]
null
null
null
python-package/lightgbm/compat.py
harunpehlivan/LightGBM
8ba65be9c93b79c095ea06e74de2cc5bf35ab169
[ "MIT" ]
3
2018-06-03T10:39:53.000Z
2019-01-17T16:14:24.000Z
# coding: utf-8 # pylint: disable = C0103 """Compatibility""" from __future__ import absolute_import import inspect import sys import numpy as np is_py3 = (sys.version_info[0] == 3) """compatibility between python2 and python3""" if is_py3: string_type = str numeric_types = (int, float, bool) integer_ty...
25.735632
72
0.701653
# coding: utf-8 # pylint: disable = C0103 """Compatibility""" from __future__ import absolute_import import inspect import sys import numpy as np is_py3 = (sys.version_info[0] == 3) """compatibility between python2 and python3""" if is_py3: string_type = str numeric_types = (int, float, bool) integer_ty...
0
0
0
29
0
194
0
0
76
40879b077e13d275316da52836b5b5c02ee62863
474
py
Python
report tool.py
zearakun/testtool
049b84beb2d744922bed82164c3825c55c3ec338
[ "MIT" ]
null
null
null
report tool.py
zearakun/testtool
049b84beb2d744922bed82164c3825c55c3ec338
[ "MIT" ]
null
null
null
report tool.py
zearakun/testtool
049b84beb2d744922bed82164c3825c55c3ec338
[ "MIT" ]
null
null
null
token = input("token:") guild = input("guild:") channel = input("channel") message = input("message:") auth(token)
24.947368
105
0.677215
import requests token = input("token:") guild = input("guild:") channel = input("channel") message = input("message:") def auth(token): userdata = requests.get("https://discord.com/api/9/users/@me", headers={"authorization": token}).json() print("{userdata['username']}#{userdata['discriminator']}") if userdat...
0
0
0
0
0
316
0
-6
44
763179623658b4ba476f970ec361b6995a260116
2,736
py
Python
kitsune/questions/tests/__init__.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
4
2021-05-17T11:38:08.000Z
2021-08-19T06:42:39.000Z
kitsune/questions/tests/__init__.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
32
2021-04-15T22:35:58.000Z
2022-01-04T21:30:05.000Z
kitsune/questions/tests/__init__.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
3
2020-06-14T06:59:46.000Z
2020-06-15T14:45:56.000Z
from nose.tools import eq_ def tags_eq(tagged_object, tag_names): """Assert that the names of the tags on tagged_object are tag_names.""" eq_(sorted([t.name for t in tagged_object.tags.all()]), sorted(tag_names))
27.636364
95
0.687135
from datetime import datetime from nose.tools import eq_ import factory from kitsune.questions.models import Question, QuestionVote, Answer, AnswerVote, QuestionLocale from kitsune.sumo.tests import LocalizingClient, TestCase, FuzzyUnicode from kitsune.users.tests import UserFactory class TestCaseBase(TestCase): ...
0
814
0
1,238
0
0
0
147
298
e720ed60b738ba10759191f9a223af8a9c08af10
8,828
py
Python
code/topological_data_analysis/tps_spheres_experiment_data.py
JonasTriki/masters-thesis-ml
78b3c971e4ffd51875d19bb2cb4b75e9d7be905c
[ "MIT" ]
6
2021-05-24T08:05:12.000Z
2021-07-31T03:51:32.000Z
code/topological_data_analysis/tps_spheres_experiment_data.py
JonasTriki/masters-thesis-ml
78b3c971e4ffd51875d19bb2cb4b75e9d7be905c
[ "MIT" ]
null
null
null
code/topological_data_analysis/tps_spheres_experiment_data.py
JonasTriki/masters-thesis-ml
78b3c971e4ffd51875d19bb2cb4b75e9d7be905c
[ "MIT" ]
1
2022-02-05T18:05:56.000Z
2022-02-05T18:05:56.000Z
import argparse import sys from os import makedirs from os.path import isfile, join import numpy as np from tqdm import tqdm rng_seed = 399 np.random.seed(rng_seed) sys.path.append("..") from topological_data_analysis.tda_utils import generate_points_in_spheres # noqa: E402 from topological_data_analysis.topologic...
34.350195
110
0.669687
import argparse import sys from os import makedirs from os.path import isfile, join import numpy as np from tqdm import tqdm rng_seed = 399 np.random.seed(rng_seed) sys.path.append("..") from topological_data_analysis.tda_utils import generate_points_in_spheres # noqa: E402 from topological_data_analysis.topologic...
0
0
0
0
0
0
0
21
0
ae131ae6928e4c019d1f9757d6c3e89b638ae147
17,837
py
Python
thinkingo/planner.py
HongBeenKim/pams-skku
0a12b132e4bf42570b000f60b9a1fc2c65382174
[ "MIT" ]
8
2018-11-22T15:41:22.000Z
2021-08-08T06:41:48.000Z
thinkingo/planner.py
HongBeenKim/pams-skku
0a12b132e4bf42570b000f60b9a1fc2c65382174
[ "MIT" ]
null
null
null
thinkingo/planner.py
HongBeenKim/pams-skku
0a12b132e4bf42570b000f60b9a1fc2c65382174
[ "MIT" ]
4
2019-06-01T04:30:23.000Z
2020-09-29T03:59:10.000Z
import time import sys sys.path.append(".") from data_class import Data from data_source import Source ACTUAL_RADIUS = 300 # CLEAR_RADIUS = 500 # ( ) ARC_ANGLE = 110 # OBSTACLE_OFFSET = 70 # offset (cm ) U_TURN_ANGLE = 10 # scan . 90 . U_TURN_LIDAR_CIRCLE_SIZE = 6 U_TURN_LIDAR_LINE_SIZE = 6...
43.399027
121
0.551718
import pycuda.driver as drv from pycuda.compiler import SourceModule import time import cv2 import numpy as np import sys import math sys.path.append(".") from subroutine import Subroutine from data_class import Data from data_source import Source from lane_cam import LaneCam from parabola import Parabola ACTUAL_RADI...
1,797
0
0
15,361
0
0
0
28
199
b0cdc906b51d91e9002b5b338721fa5e9c510104
610
py
Python
LeagueClient/api/test.py
CharmingDays/League-Wrapper
0f388f25e3be5cee62b36cd5ed9520b96e56a562
[ "MIT" ]
1
2022-02-01T12:18:08.000Z
2022-02-01T12:18:08.000Z
LeagueClient/api/test.py
CharmingDays/League-Wrapper
0f388f25e3be5cee62b36cd5ed9520b96e56a562
[ "MIT" ]
null
null
null
LeagueClient/api/test.py
CharmingDays/League-Wrapper
0f388f25e3be5cee62b36cd5ed9520b96e56a562
[ "MIT" ]
null
null
null
rate_limit={ "second_use":20, "second":1, "minute_use":200, "minute":0, '200':True } data=request() print(data)
18.484848
73
0.591803
import time rate_limit={ "second_use":20, "second":1, "minute_use":200, "minute":0, '200':True } def request_func(): rate_limit['second_use']-=1 rate_limit['minute_use']-=1 return True def request(): while True: if rate_limit['200'] is False: return "Rate li...
0
0
0
0
0
415
0
-10
68