hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
530aad8900697cdb2560f83461febedd71854e6c
1,894
py
Python
src/django/app/api.py
ScottGarland/MonteCarlo
8d2a8026da8a0ce38e94c9e045820a6f55a46866
[ "MIT" ]
null
null
null
src/django/app/api.py
ScottGarland/MonteCarlo
8d2a8026da8a0ce38e94c9e045820a6f55a46866
[ "MIT" ]
1
2020-11-16T18:56:13.000Z
2020-11-16T18:56:13.000Z
src/django/app/api.py
ScottGarland/MonteCarlo
8d2a8026da8a0ce38e94c9e045820a6f55a46866
[ "MIT" ]
2
2020-11-17T02:54:07.000Z
2021-04-10T19:42:48.000Z
from django.shortcuts import redirect from django.http import HttpResponse from django.http import HttpResponseBadRequest from django.http import Http404 import datetime as dt from shared.Monte import Monte def simulate(request): """ Generates the Monte object from the user input parameters in the request and...
35.735849
109
0.649947
from django.shortcuts import redirect from django.http import HttpResponse from django.http import HttpResponseBadRequest from django.http import Http404 import datetime as dt from shared.Monte import Monte def simulate(request): """ Generates the Monte object from the user input parameters in the request and...
0
0
0
3ad01121e0e4758af28a223626760b1f576c4b12
1,694
py
Python
snn/single/usual_models.py
arnogranier/SNN
f916c97e36430719ff255963d9f7f7c46d55fa76
[ "MIT" ]
9
2019-02-20T07:15:20.000Z
2021-12-22T20:27:28.000Z
snn/single/usual_models.py
arnogranier/SNN
f916c97e36430719ff255963d9f7f7c46d55fa76
[ "MIT" ]
1
2018-02-11T17:53:59.000Z
2018-02-11T17:53:59.000Z
snn/single/usual_models.py
ArnoGranier/SNN
f916c97e36430719ff255963d9f7f7c46d55fa76
[ "MIT" ]
3
2019-04-11T15:02:18.000Z
2021-02-11T16:34:43.000Z
from .core import Variable, Model # Hodgkin-Huxley Model V = Variable(name='V', init_value=-60, unit='mV', ddt='(1/Cm)*(-gk*n**4*(V-Vk)-gna*m**3*h*(V-Vna)-gl*(V-Vl)+Iapp)') n = Variable(name='n', ddt='alpha_n*(1-n)-beta_n*n', init_value=1/3) m = Variable(name='m', ddt='alpha_m*(1-m)-beta_m*m', init_...
45.783784
79
0.530697
from .core import Variable, Model # Hodgkin-Huxley Model V = Variable(name='V', init_value=-60, unit='mV', ddt='(1/Cm)*(-gk*n**4*(V-Vk)-gna*m**3*h*(V-Vna)-gl*(V-Vl)+Iapp)') n = Variable(name='n', ddt='alpha_n*(1-n)-beta_n*n', init_value=1/3) m = Variable(name='m', ddt='alpha_m*(1-m)-beta_m*m', init_...
0
0
0
ac4399fe6c7124b45fd2ff97d2a80b1b89a2d416
31,222
py
Python
tapy/indicators.py
Pascal66/tapy
492044cb75f9cd63a6fc78748104f72f9e27bce2
[ "MIT" ]
null
null
null
tapy/indicators.py
Pascal66/tapy
492044cb75f9cd63a6fc78748104f72f9e27bce2
[ "MIT" ]
null
null
null
tapy/indicators.py
Pascal66/tapy
492044cb75f9cd63a6fc78748104f72f9e27bce2
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from .utils import calculate_ao, calculate_sma, calculate_smma, mad __version__ = '1.9.0' class Indicators: """ Add technical indicators data to a pandas data frame Example: ~~~~~~~~ >>> import pandas as pd >>> from tapy import Indicators ...
45.847283
309
0.605406
import pandas as pd import numpy as np from .utils import calculate_ao, calculate_sma, calculate_smma, mad __version__ = '1.9.0' class Indicators: """ Add technical indicators data to a pandas data frame Example: ~~~~~~~~ >>> import pandas as pd >>> from tapy import Indicators ...
0
0
0
b0cb7425c67d6587404a8d9cd44ccaf5b68b5596
73
py
Python
homedisplay/info_transportation/__init__.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2016-11-28T04:35:06.000Z
2016-11-28T04:35:06.000Z
homedisplay/info_transportation/__init__.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
160
2015-01-01T20:59:29.000Z
2016-04-25T13:36:52.000Z
homedisplay/info_transportation/__init__.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2015-02-25T21:24:01.000Z
2015-02-25T21:24:01.000Z
default_app_config = 'info_transportation.apps.InfoTransportationConfig'
36.5
72
0.890411
default_app_config = 'info_transportation.apps.InfoTransportationConfig'
0
0
0
5de63bbd68073c94e5f8f8a56e35ba98ef82a635
3,122
py
Python
online-demo/test_00_optic_inventory.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
33
2019-10-29T18:32:48.000Z
2022-03-20T19:57:59.000Z
online-demo/test_00_optic_inventory.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
null
null
null
online-demo/test_00_optic_inventory.py
wasabi222/nanog77-nrfu-tutorial
43d5cfe488c3a231f03f979b47c3e61b021f2936
[ "Apache-2.0" ]
12
2019-10-25T19:36:44.000Z
2021-12-07T10:21:07.000Z
# Copyright 2019 Jeremy Schulman, nwkautomaniac@gmail.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.185567
79
0.714606
# Copyright 2019 Jeremy Schulman, nwkautomaniac@gmail.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
0
0
0
3bfaf7ffe4d90756205ed1d274f64c449803021e
1,173
py
Python
src/plasmid_verification/domain/service/sequence_alignment_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
src/plasmid_verification/domain/service/sequence_alignment_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
src/plasmid_verification/domain/service/sequence_alignment_service.py
Midnighter/plasmid_verification
844b38047b1bf19fa9903299a1e6470583b9c3d5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, Moritz E. Beber. # # 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 i...
29.325
74
0.709292
# Copyright (c) 2021, Moritz E. Beber. # # 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 i...
0
0
0
90c3cbc906ed2d988ff2bb717dc2411c4f9d4041
463
py
Python
removeDuplicate.py
JyutdictEB/Word2Vec
70d5472ba6c6cad036ab5394ca15a154771429d4
[ "CC0-1.0" ]
null
null
null
removeDuplicate.py
JyutdictEB/Word2Vec
70d5472ba6c6cad036ab5394ca15a154771429d4
[ "CC0-1.0" ]
null
null
null
removeDuplicate.py
JyutdictEB/Word2Vec
70d5472ba6c6cad036ab5394ca15a154771429d4
[ "CC0-1.0" ]
null
null
null
import sys input_path = './partial_lihkg.txt' output_path = './partial_lihkg_no_dup.txt' seen = set() with open(input_path,encoding='utf-8',mode='r') as fin, open(output_path,mode='w',encoding='utf-8') as fout: while True: line = str(fin.readline()) if len(line) == 0: break lin...
25.722222
108
0.611231
import sys input_path = './partial_lihkg.txt' output_path = './partial_lihkg_no_dup.txt' seen = set() with open(input_path,encoding='utf-8',mode='r') as fin, open(output_path,mode='w',encoding='utf-8') as fout: while True: line = str(fin.readline()) if len(line) == 0: break lin...
0
0
0
7c4eecc2d88b86db2a93b82370828d8d54e7faba
1,191
py
Python
pulsarpy/scripts/clone_crispr_modification.py
nathankw/pulsar_py
b00e2e32fe407c96023bca1d81838567078c2e4e
[ "MIT" ]
null
null
null
pulsarpy/scripts/clone_crispr_modification.py
nathankw/pulsar_py
b00e2e32fe407c96023bca1d81838567078c2e4e
[ "MIT" ]
null
null
null
pulsarpy/scripts/clone_crispr_modification.py
nathankw/pulsar_py
b00e2e32fe407c96023bca1d81838567078c2e4e
[ "MIT" ]
1
2020-07-08T15:15:31.000Z
2020-07-08T15:15:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ###Author #Nathaniel Watson #2017-09-18 #nathankw@stanford.edu ### """ Clones the specified CrisprModification onto the desired biosamples. """ import argparse import pdb import pulsarpy.models as models import pulsarpy.utils if __name__ == "__main__": main()
27.068182
245
0.670025
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ###Author #Nathaniel Watson #2017-09-18 #nathankw@stanford.edu ### """ Clones the specified CrisprModification onto the desired biosamples. """ import argparse import pdb import pulsarpy.models as models import pulsarpy.utils def get_parser(): parser = argparse.Ar...
829
0
46
70d97c152604201abb4b2026390ab7599749922c
1,037
py
Python
fluctua_nft_backend/nfts/utils/assign_ids.py
denisgranha/fluctua_nft_backend
bd83b45094a77426519608c960277e8d5ac1ca77
[ "Apache-2.0" ]
1
2022-02-20T20:35:32.000Z
2022-02-20T20:35:32.000Z
fluctua_nft_backend/nfts/utils/assign_ids.py
denisgranha/fluctua_nft_backend
bd83b45094a77426519608c960277e8d5ac1ca77
[ "Apache-2.0" ]
6
2022-02-15T06:30:23.000Z
2022-03-31T06:31:18.000Z
fluctua_nft_backend/nfts/utils/assign_ids.py
denisgranha/fluctua_nft_backend
bd83b45094a77426519608c960277e8d5ac1ca77
[ "Apache-2.0" ]
null
null
null
import json from os import path from django.conf import settings from web3 import Web3 from web3.middleware import geth_poa_middleware from fluctua_nft_backend.nfts import models # load abi abi_path = path.join( path.dirname(__file__), "..", "..", "contracts", "RumiaNFT.json" ) with open(abi_path) as f: abi ...
33.451613
103
0.768563
import json from os import path from django.conf import settings from web3 import Web3 from web3.middleware import geth_poa_middleware from fluctua_nft_backend.nfts import models # load abi abi_path = path.join( path.dirname(__file__), "..", "..", "contracts", "RumiaNFT.json" ) with open(abi_path) as f: abi ...
0
0
0
3ea6d2486663392012c641b4006f95700910409a
2,047
py
Python
player.py
hadware/gstreamer-python-player
55e10ed1a46583cec7f4953babc541c4bb3a0a8f
[ "MIT" ]
37
2015-07-31T18:07:41.000Z
2022-03-27T20:35:48.000Z
player.py
hadware/gstreamer-python-player
55e10ed1a46583cec7f4953babc541c4bb3a0a8f
[ "MIT" ]
2
2016-02-18T02:18:33.000Z
2018-08-08T14:18:18.000Z
player.py
hadware/gstreamer-python-player
55e10ed1a46583cec7f4953babc541c4bb3a0a8f
[ "MIT" ]
8
2016-10-05T11:28:39.000Z
2021-06-23T20:48:31.000Z
import gi gi.require_version('Gst', '1.0') from gi.repository import GObject, Gst, Gtk # Initializing threads used by the Gst various elements GObject.threads_init() #Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins. Gst.init(None) ...
45.488889
189
0.692721
import gi gi.require_version('Gst', '1.0') from gi.repository import GObject, Gst, Gtk # Initializing threads used by the Gst various elements GObject.threads_init() #Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins. Gst.init(None) class Ma...
1,488
-10
101
bc83784adcb2e3e5afc4a1235b584bca590892a3
1,349
py
Python
dask/dataframe/tests/test_extensions.py
rockwellw/dask
c1f6d61368af6f9c67d39d23406eb267a0308bb9
[ "BSD-3-Clause" ]
1
2020-06-04T06:17:22.000Z
2020-06-04T06:17:22.000Z
dask/dataframe/tests/test_extensions.py
rockwellw/dask
c1f6d61368af6f9c67d39d23406eb267a0308bb9
[ "BSD-3-Clause" ]
30
2020-04-15T19:37:40.000Z
2020-04-22T21:19:35.000Z
dask/dataframe/tests/test_extensions.py
rockwellw/dask
c1f6d61368af6f9c67d39d23406eb267a0308bb9
[ "BSD-3-Clause" ]
2
2020-03-12T23:20:22.000Z
2021-02-15T21:54:02.000Z
from decimal import Decimal import pytest import dask.dataframe as dd from dask.dataframe.utils import assert_eq, PANDAS_VERSION pd = pytest.importorskip("pandas", minversion="0.23.4") from pandas.tests.extension.decimal.array import DecimalArray, DecimalDtype from dask.dataframe.extensions import make_array_nonempt...
26.98
84
0.702743
from decimal import Decimal import pytest import dask.dataframe as dd from dask.dataframe.utils import assert_eq, PANDAS_VERSION pd = pytest.importorskip("pandas", minversion="0.23.4") from pandas.tests.extension.decimal.array import DecimalArray, DecimalDtype from dask.dataframe.extensions import make_array_nonempt...
819
0
113
d1f91c9167e4968c1d7b28f0f09a0d7a88d10ed4
865
py
Python
setup.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
null
null
null
setup.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
5
2017-09-06T22:45:28.000Z
2021-01-03T04:58:45.000Z
setup.py
oudalab/phyllo
e724c6126395e20cd8d7406703456b8a19462974
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name="phyllo", version="0.1", description="PHilologicallY Linguistic LegwOrk.", author="Jordan Nguyen, Christan Grant", author_email="Jordan.Nguyen-1@ou.edu, cgrant@ou.edu", url="https://github.com/oudalab/phyllo", download_url="https://gi...
27.03125
57
0.624277
from setuptools import setup, find_packages setup( name="phyllo", version="0.1", description="PHilologicallY Linguistic LegwOrk.", author="Jordan Nguyen, Christan Grant", author_email="Jordan.Nguyen-1@ou.edu, cgrant@ou.edu", url="https://github.com/oudalab/phyllo", download_url="https://gi...
0
0
0
0029669dd26fab0f18894ecb4849c5ad546fd0f3
4,707
py
Python
gameloop.py
LeongBryan/inky1.0
1617318162481c74a9803ddd4fd8a8081bc9fbcc
[ "MIT" ]
null
null
null
gameloop.py
LeongBryan/inky1.0
1617318162481c74a9803ddd4fd8a8081bc9fbcc
[ "MIT" ]
null
null
null
gameloop.py
LeongBryan/inky1.0
1617318162481c74a9803ddd4fd8a8081bc9fbcc
[ "MIT" ]
null
null
null
import pygame as pg import random from settings import * from main import * import os vec = pg.math.Vector2 Game = Game() Game.show_start_screen() while Game.running: Game.level1() Game.show_go_screen() pg.quit()
30.173077
102
0.558317
import pygame as pg import random from settings import * from main import * import os vec = pg.math.Vector2 class Game: def __init__(self): # Initialise game window etc pg.init() pg.mixer.init() self.screen = pg.display.set_mode((WIDTH, HEIGHT)) pg.display.set_caption(TITLE)...
4,060
-10
432
de8f837ee953c8d5010bd441417f816067560169
162
py
Python
wcics/server/forms/forms/admin/__init__.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
wcics/server/forms/forms/admin/__init__.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
6
2019-12-06T18:06:28.000Z
2021-12-01T20:19:05.000Z
wcics/server/forms/forms/admin/__init__.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .database import * from .lessons import * from .news import * from .organization import * from .topics import * from .users import *
20.25
27
0.691358
# -*- coding: utf-8 -*- from .database import * from .lessons import * from .news import * from .organization import * from .topics import * from .users import *
0
0
0
d168c48f6e2527cc9cd13ee22961b24cdaa165a8
2,058
py
Python
fireant/tests/slicer/test_slicer.py
vladaspasic/fireant
2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334
[ "Apache-2.0" ]
null
null
null
fireant/tests/slicer/test_slicer.py
vladaspasic/fireant
2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334
[ "Apache-2.0" ]
null
null
null
fireant/tests/slicer/test_slicer.py
vladaspasic/fireant
2dbae6a97a927ef62fdcd5f37fcb51a7d6d55334
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from fireant import ( Dimension, Metric, ) from fireant.slicer.dimensions import DisplayDimension from .mocks import slicer
40.352941
112
0.698737
from unittest import TestCase from fireant import ( Dimension, Metric, ) from fireant.slicer.dimensions import DisplayDimension from .mocks import slicer class SlicerContainerTests(TestCase): def test_access_metric_via_attr(self): votes = slicer.metrics.votes self.assertIsInstance(votes, ...
1,640
16
238
eb71cd4fdab2fc919ce1e5f0188258ed1dd6b256
2,289
py
Python
practice_problems/MorePractice.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
practice_problems/MorePractice.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
1
2017-02-13T20:48:06.000Z
2017-02-13T20:48:06.000Z
practice_problems/MorePractice.py
smenon8/AlgDataStruct_practice
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
# Divide and Conquer Algorithm for finding the maximum sub array sum arr = [-2,-5,6,-2,-3,1,5,-6] print("Maximum Sub Array Sum") print(maxSubArraySum(arr,0,len(arr)-1)) print() # Similar problem: Given a sum find the pair of numbers which add upto the sum arr = [6,8,2,3,10,11] print("Two sum problem") print(twoSumPr...
24.094737
118
0.671472
# Divide and Conquer Algorithm for finding the maximum sub array sum def maxSubArraySum(arr,h,t): if h == t: return arr[h] m = (h+t)//2 # 1. find max in left subarray leftSum = maxSubArraySum(arr,h,m) # 2. find max in right subarray rightSum = maxSubArraySum(arr,m+1,t) # 3. find max in mid-point crossin...
1,487
0
89
455dfb42a457f333dfa2bb065bc541a0c8bd6153
196
py
Python
threeML/plugins/SwiftXRTLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
42
2019-01-10T06:11:38.000Z
2022-03-21T20:08:37.000Z
threeML/plugins/SwiftXRTLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
187
2019-01-15T13:21:16.000Z
2022-03-31T12:15:55.000Z
threeML/plugins/SwiftXRTLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
32
2019-01-14T10:24:56.000Z
2022-03-10T10:09:59.000Z
from threeML.plugins.OGIPLike import OGIPLike __instrument_name = "Swift XRT" # At the moment this is just another name for the GenericOGIPLike spectrum
19.6
74
0.790816
from threeML.plugins.OGIPLike import OGIPLike __instrument_name = "Swift XRT" # At the moment this is just another name for the GenericOGIPLike spectrum class SwiftXRTLike(OGIPLike): pass
0
18
22
44973d73dbc1cde369c9b5931ee9af7013f3e10b
583
py
Python
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_hugeword2vectrainbatchop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_hugeword2vectrainbatchop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_hugeword2vectrainbatchop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
import unittest from pyalink.alink import * import numpy as np import pandas as pd
30.684211
79
0.607204
import unittest from pyalink.alink import * import numpy as np import pandas as pd class TestHugeWord2VecTrainBatchOp(unittest.TestCase): def test_hugeword2vectrainbatchop(self): tokens = pd.DataFrame([ ["A B C"] ]) source = BatchOperator.fromDataframe(tokens, schemaStr...
420
33
48
a01bb11c58f7fe8149df23ea207ce80bdf65f5c9
1,751
py
Python
examples/tle_propagation_with_sorts.py
danielk333/SORTS
f8454901fda405c0e8ce6553366553c3f043da0b
[ "MIT" ]
4
2020-09-14T11:38:31.000Z
2021-05-19T08:10:37.000Z
examples/tle_propagation_with_sorts.py
danielk333/SORTS
f8454901fda405c0e8ce6553366553c3f043da0b
[ "MIT" ]
6
2020-09-14T05:48:02.000Z
2021-05-29T14:12:16.000Z
examples/tle_propagation_with_sorts.py
danielk333/SORTS
f8454901fda405c0e8ce6553366553c3f043da0b
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' TLE propagation with SGP4 ============================ This shows that TLEs really should be propagated as TLEs, not as states. ''' import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from sorts.propagator import SGP4 from sgp4.api import Satrec #...
25.75
90
0.664763
#!/usr/bin/env python ''' TLE propagation with SGP4 ============================ This shows that TLEs really should be propagated as TLEs, not as states. ''' import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from sorts.propagator import SGP4 from sgp4.api import Satrec #...
0
0
0
223bab2f8ffdbb87ee94a350290319e46388229b
1,044
py
Python
server/api/delete_qr.py
Red350/SocietiesApp
35991603f61ab2bbd918019ef13cb3dcdd9f67f3
[ "MIT" ]
null
null
null
server/api/delete_qr.py
Red350/SocietiesApp
35991603f61ab2bbd918019ef13cb3dcdd9f67f3
[ "MIT" ]
null
null
null
server/api/delete_qr.py
Red350/SocietiesApp
35991603f61ab2bbd918019ef13cb3dcdd9f67f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import database import http import subprocess db = database.Database() # Delete old tokens and qr images from the server # Command for testing: # SELECT token, UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMESTAMP(creation_time) FROM join_token WHERE(UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMES...
38.666667
177
0.734674
#!/usr/bin/env python3 import database import http import subprocess db = database.Database() # Delete old tokens and qr images from the server # Command for testing: # SELECT token, UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMESTAMP(creation_time) FROM join_token WHERE(UNIX_TIMESTAMP(CURRENT_TIMESTAMP) - UNIX_TIMES...
0
0
0
10bf712b9c0e4c0f3bdfd5226a8e5f8305e8079b
1,146
py
Python
algo_probs/jzoffer/jz14_1.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
algo_probs/jzoffer/jz14_1.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
algo_probs/jzoffer/jz14_1.py
Jackthebighead/recruiment-2022
a81007908e3c2f65a6be3ff2d62dfb92d0753b0d
[ "MIT" ]
null
null
null
# 题意:剪绳子,给你一根长度为 n 的绳子,请把绳子剪成整数长度的 m 段(m、n都是整数,n>1并且m>1),每段绳子的长度记为 k[0],k[1]...k[m-1] 。请问 k[0]*k[1]*...*k[m-1] 可能的最大乘积是多少? # 例如,当绳子的长度是8时,我们把它剪成长度分别为2、3、3的三段,此时得到的最大乘积是18。 # 题解1: 动态规划。注意到我们所求的乘积可以当作动态规划中的状态。设置1-n的状态数组dp[n]在存,动态归化的状态方程是:dp[i] = max(dp[i-j]*j, (i-j)*j)即对于一段长度i的绳子,其最大乘积dp[i] # 可以分为对这一段进行裁剪和不裁剪两种情形,对...
34.727273
122
0.572426
# 题意:剪绳子,给你一根长度为 n 的绳子,请把绳子剪成整数长度的 m 段(m、n都是整数,n>1并且m>1),每段绳子的长度记为 k[0],k[1]...k[m-1] 。请问 k[0]*k[1]*...*k[m-1] 可能的最大乘积是多少? # 例如,当绳子的长度是8时,我们把它剪成长度分别为2、3、3的三段,此时得到的最大乘积是18。 # 题解1: 动态规划。注意到我们所求的乘积可以当作动态规划中的状态。设置1-n的状态数组dp[n]在存,动态归化的状态方程是:dp[i] = max(dp[i-j]*j, (i-j)*j)即对于一段长度i的绳子,其最大乘积dp[i] # 可以分为对这一段进行裁剪和不裁剪两种情形,对...
603
-10
98
07da0a89a6264b2c680a8833575c7d256e12446e
36,427
py
Python
tests/interfaces/test_qnode_tf.py
QDaria/pennylane
5a28983fc7bd950cde8a4014e54261fef4b54293
[ "Apache-2.0" ]
null
null
null
tests/interfaces/test_qnode_tf.py
QDaria/pennylane
5a28983fc7bd950cde8a4014e54261fef4b54293
[ "Apache-2.0" ]
null
null
null
tests/interfaces/test_qnode_tf.py
QDaria/pennylane
5a28983fc7bd950cde8a4014e54261fef4b54293
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicabl...
35.853346
120
0.546682
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicabl...
3,990
2,781
773
b0a426d92e88a5a5903764f283f473a777298b00
7,618
py
Python
src/elasticizefiles/engine.py
pierluigi-failla/elasticize_files
2530d74f1b56344ee73ca113bcb2870566a565a0
[ "MIT" ]
null
null
null
src/elasticizefiles/engine.py
pierluigi-failla/elasticize_files
2530d74f1b56344ee73ca113bcb2870566a565a0
[ "MIT" ]
null
null
null
src/elasticizefiles/engine.py
pierluigi-failla/elasticize_files
2530d74f1b56344ee73ca113bcb2870566a565a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created by Pierluigi on 2020-02-01 project: elasticizefiles """ import logging import os import re from datetime import datetime from hashlib import sha256 from multiprocessing import cpu_count from time import time from joblib import Parallel from joblib import delayed from elasticizefile...
39.884817
111
0.521134
# -*- coding: utf-8 -*- """ Created by Pierluigi on 2020-02-01 project: elasticizefiles """ import logging import os import re from datetime import datetime from hashlib import sha256 from multiprocessing import cpu_count from time import time from joblib import Parallel from joblib import delayed from elasticizefile...
3,642
0
80
d4477077dfae955280f980685478d7932e782622
5,962
py
Python
scripts/exec_clustering.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
scripts/exec_clustering.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
scripts/exec_clustering.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
""" TODO: 問題ごとに階層クラスタリングをlinkage()で実行。 fcluster()でクたスター番号の索引付けを行う。 """ import os import mysql.connector as cn from pyquery import PyQuery as pq from enum import Enum import re import subprocess import sys import csv import pandas as pd import copy import matplotlib.pyplot as plt import sys from pand...
35.278107
129
0.588225
""" TODO: 問題ごとに階層クラスタリングをlinkage()で実行。 fcluster()でクたスター番号の索引付けを行う。 """ import os import mysql.connector as cn from pyquery import PyQuery as pq from enum import Enum import re import subprocess import sys import csv import pandas as pd import copy import matplotlib.pyplot as plt import sys from pand...
4,944
0
123
12b3e76cb33ac112b3e3d93d1b12220d79d80efb
1,353
py
Python
py_se_day05/solution_four.py
letscodedjango/py-se-bootcamp
302e2acb69f4aaefbb2fe6361083c9135b000394
[ "MIT" ]
null
null
null
py_se_day05/solution_four.py
letscodedjango/py-se-bootcamp
302e2acb69f4aaefbb2fe6361083c9135b000394
[ "MIT" ]
null
null
null
py_se_day05/solution_four.py
letscodedjango/py-se-bootcamp
302e2acb69f4aaefbb2fe6361083c9135b000394
[ "MIT" ]
1
2020-05-20T14:48:48.000Z
2020-05-20T14:48:48.000Z
# Define a function that helps to calculate the area of circle with different radius and print the area only when the area is divisible by 4 # 23.48, 56.78, 45.67, 78.28 Please consider the unit of these values as cm # Define a function using Python that helps to find the first five character of string in all the...
18.04
140
0.643016
# Define a function that helps to calculate the area of circle with different radius and print the area only when the area is divisible by 4 # 23.48, 56.78, 45.67, 78.28 Please consider the unit of these values as cm def calculate_area(radius): PI = 3.14 area = PI * radius * radius if area % 6 != 0: print('The...
537
0
69
9422ced1909c3f5d4a7907abfbe6b4c03b418ee8
3,878
py
Python
tools/xrdb2putty.py
smartfish/iTerm2-Color-Schemes
f0a40ddf631185c66a6f6cbfeb1b9724086fa9c3
[ "MIT" ]
21,573
2015-01-01T00:03:35.000Z
2022-03-31T22:31:16.000Z
tools/xrdb2putty.py
studioThirteen/Terminal-Color-Schemes
c9e4b3c7cef87b4b8bc8c10a2ebf7a7870e7902b
[ "MIT" ]
313
2015-01-20T18:39:13.000Z
2022-03-30T17:45:50.000Z
tools/xrdb2putty.py
studioThirteen/Terminal-Color-Schemes
c9e4b3c7cef87b4b8bc8c10a2ebf7a7870e7902b
[ "MIT" ]
8,250
2015-01-01T13:15:12.000Z
2022-03-31T22:42:46.000Z
#!/usr/bin/env python # coding: utf-8 # # This script converts xrdb (X11) color scheme format to PuTTY registry # file which creates a new session with proper colors. # # Usage: # xrdb2putty.py path/to/xrdb/files -d path/to/putty/files # # Author: Caesar Kabalan <caesar.kabalan@gmail.com> # Adapted from xrdb2konsole b...
29.830769
145
0.690304
#!/usr/bin/env python # coding: utf-8 # # This script converts xrdb (X11) color scheme format to PuTTY registry # file which creates a new session with proper colors. # # Usage: # xrdb2putty.py path/to/xrdb/files -d path/to/putty/files # # Author: Caesar Kabalan <caesar.kabalan@gmail.com> # Adapted from xrdb2konsole b...
2,878
0
68
d8dfe4cd10f24790216343fdb28767fad4bad226
491
py
Python
django_prometheus_metrics/apps.py
Jimdo/django-prometheus-metrics
ca028d059a297a47c89457036cd2680b0f112b98
[ "MIT" ]
12
2017-10-27T04:44:26.000Z
2020-11-19T16:32:56.000Z
django_prometheus_metrics/apps.py
Jimdo/django-prometheus-metrics
ca028d059a297a47c89457036cd2680b0f112b98
[ "MIT" ]
1
2022-01-20T19:24:05.000Z
2022-01-20T19:24:05.000Z
django_prometheus_metrics/apps.py
Jimdo/django-prometheus-metrics
ca028d059a297a47c89457036cd2680b0f112b98
[ "MIT" ]
1
2020-10-30T03:21:21.000Z
2020-10-30T03:21:21.000Z
from django.apps import AppConfig from django.conf import settings from prometheus_client import start_http_server import django_prometheus_metrics
30.6875
66
0.745418
from django.apps import AppConfig from django.conf import settings from prometheus_client import start_http_server import django_prometheus_metrics class DjangoPrometheusConfig(AppConfig): name = 'django_prometheus_metrics' verbose_name = 'Django Prometheus Metrics' def ready(self): port = getattr...
188
132
23
63f92c30eb31f0e762640b7e181136ca978c9bf7
2,734
py
Python
google_appengine/main.py
evanchueng/gerrit.contactstore
4ee70f23058c2b1ced8b3891d5e91676639f3b3e
[ "Apache-2.0" ]
null
null
null
google_appengine/main.py
evanchueng/gerrit.contactstore
4ee70f23058c2b1ced8b3891d5e91676639f3b3e
[ "Apache-2.0" ]
null
null
null
google_appengine/main.py
evanchueng/gerrit.contactstore
4ee70f23058c2b1ced8b3891d5e91676639f3b3e
[ "Apache-2.0" ]
null
null
null
# Copyright 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
26.543689
74
0.657644
# Copyright 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
1,592
59
212
b30ea5d72e2c9d160b030071734f3bb49aa1d19a
7,556
py
Python
docs/images/plotlib.py
JuliaTagBot/QuantumPEPS.jl
cf9ed897f24a213d550d0a683ee6704d853889a0
[ "Apache-2.0" ]
15
2019-07-01T08:54:29.000Z
2021-11-17T22:57:46.000Z
docs/images/plotlib.py
JuliaTagBot/QuantumPEPS.jl
cf9ed897f24a213d550d0a683ee6704d853889a0
[ "Apache-2.0" ]
1
2020-02-01T03:43:31.000Z
2020-02-04T02:27:44.000Z
docs/images/plotlib.py
JuliaTagBot/QuantumPEPS.jl
cf9ed897f24a213d550d0a683ee6704d853889a0
[ "Apache-2.0" ]
3
2020-02-08T11:17:35.000Z
2022-03-31T09:49:34.000Z
try: from matplotlib import pyplot as plt import matplotlib except: import matplotlib matplotlib.rcParams['backend'] = 'TkAgg' from matplotlib import pyplot as plt import numpy as np import pdb class DataPlt(): ''' Dynamic plot context, intended for displaying geometries. like removing ...
35.474178
127
0.577422
try: from matplotlib import pyplot as plt import matplotlib except: import matplotlib matplotlib.rcParams['backend'] = 'TkAgg' from matplotlib import pyplot as plt import numpy as np import pdb def cornertex(s, ax, offset=(0,0), fontsize=14): plt.text(0.02+offset[0],0.95+offset[1],s,transform=a...
5,060
0
254
24832e19787503b8dc4db3eddda1a599df1a4cd7
2,244
py
Python
tests/test_config.py
promulo/pinga
185e8fc533882106f4f263a141d6ce829f6d3c39
[ "MIT" ]
null
null
null
tests/test_config.py
promulo/pinga
185e8fc533882106f4f263a141d6ce829f6d3c39
[ "MIT" ]
21
2020-12-20T02:00:45.000Z
2020-12-24T14:32:54.000Z
tests/test_config.py
promulo/pinga
185e8fc533882106f4f263a141d6ce829f6d3c39
[ "MIT" ]
null
null
null
from unittest.mock import patch import pytest from pinga.config import BadConfigException, get_kafka_config, get_pg_uri, get_sites_list @pytest.mark.parametrize( "sites_file, error_msg", [ ("", "Configured sites_list file '' does not exist"), ("notexists.json", "Configured sites_list file 'notexi...
30.739726
94
0.714349
from unittest.mock import patch import pytest from pinga.config import BadConfigException, get_kafka_config, get_pg_uri, get_sites_list @pytest.mark.parametrize( "sites_file, error_msg", [ ("", "Configured sites_list file '' does not exist"), ("notexists.json", "Configured sites_list file 'notexi...
1,411
0
160
6cd4675da4e71a8069f805b703f2013eaf129b37
1,690
py
Python
alipay/aop/api/domain/AlipayOverseasOpenPreorderCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOverseasOpenPreorderCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOverseasOpenPreorderCancelModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.TuitionISVAgentInfoDTO import TuitionISVAgentInfoDTO
28.166667
79
0.628994
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.TuitionISVAgentInfoDTO import TuitionISVAgentInfoDTO class AlipayOverseasOpenPreorderCancelModel(object): def __init__(self): self._agent_info = None self._pr...
1,158
314
23
487039f83a472b4e7176bb06c0cb5769117638a2
10,320
py
Python
main.py
usingnamespacestc/sketchKeras-pytorch
56c779cd11aa5157dd7dca7cdebe9d3c317468d1
[ "Apache-2.0" ]
null
null
null
main.py
usingnamespacestc/sketchKeras-pytorch
56c779cd11aa5157dd7dca7cdebe9d3c317468d1
[ "Apache-2.0" ]
null
null
null
main.py
usingnamespacestc/sketchKeras-pytorch
56c779cd11aa5157dd7dca7cdebe9d3c317468d1
[ "Apache-2.0" ]
null
null
null
# Encoding: UTF-8 import argparse import numpy as np import torch import cv2 import os from src.model import SketchKeras import src.image_cutter as img_ctr import src.image_stitcher as img_str import random from tqdm import tqdm # import copy # import glob # import time device = "cuda" if torch.cuda.is_available() el...
38.507463
97
0.455233
# Encoding: UTF-8 import argparse import numpy as np import torch import cv2 import os from src.model import SketchKeras import src.image_cutter as img_ctr import src.image_stitcher as img_str import random from tqdm import tqdm # import copy # import glob # import time device = "cuda" if torch.cuda.is_available() el...
2,781
0
115
c3a263f06617fa861057b44128afa4596e1d50df
188
py
Python
src/python/stup/crypto/digest.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
14
2017-05-06T10:14:32.000Z
2018-07-17T02:58:00.000Z
src/python/stup/crypto/digest.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
2
2017-06-13T05:40:18.000Z
2017-06-13T16:23:01.000Z
src/python/stup/crypto/digest.py
Wizmann/STUP-Protocol
e06a3442082e5061d2be32be3ffd681675e7ffb5
[ "MIT" ]
4
2017-06-09T20:20:54.000Z
2018-07-17T02:58:10.000Z
from __future__ import absolute_import, print_function, with_statement import Crypto.Hash.MD5
26.857143
70
0.792553
from __future__ import absolute_import, print_function, with_statement import Crypto.Hash.MD5 def digest(plain_text): return Crypto.Hash.MD5.new(plain_text.encode('UTF-8')).digest()
70
0
23
7ab4ce0cd20f735efd474f33db4f9fa53b76876e
544
py
Python
go_id_count.py
oneilsh/apcb_files
4912f96ad9348817788285221d2f5c96a0dba9dc
[ "MIT" ]
null
null
null
go_id_count.py
oneilsh/apcb_files
4912f96ad9348817788285221d2f5c96a0dba9dc
[ "MIT" ]
null
null
null
go_id_count.py
oneilsh/apcb_files
4912f96ad9348817788285221d2f5c96a0dba9dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys if(sys.stdin.isatty()): print("Usage: cat <annotation file> | ./countannots.py") quit() ids_to_counts = dict() # Parse input for line in sys.stdin: line_list = line.strip().split("\t") seqid = line_list[0] if ids_to_counts.has_key(seqid): ids_to_counts[seq...
20.923077
60
0.654412
#!/usr/bin/env python import sys if(sys.stdin.isatty()): print("Usage: cat <annotation file> | ./countannots.py") quit() ids_to_counts = dict() # Parse input for line in sys.stdin: line_list = line.strip().split("\t") seqid = line_list[0] if ids_to_counts.has_key(seqid): ids_to_counts[seq...
0
0
0
4dc4294f6310f796d9128788e6d7ff6401720093
1,548
py
Python
common/xrd-ui-tests-python/tests/xroad_local_group/XroadRemoveLocalGroupMembers.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
3
2018-03-15T14:22:50.000Z
2021-11-08T10:30:35.000Z
common/xrd-ui-tests-python/tests/xroad_local_group/XroadRemoveLocalGroupMembers.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
11
2017-04-06T09:25:41.000Z
2018-06-04T09:08:48.000Z
common/xrd-ui-tests-python/tests/xroad_local_group/XroadRemoveLocalGroupMembers.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
20
2017-03-14T07:21:58.000Z
2019-05-21T09:26:30.000Z
from __future__ import absolute_import import unittest from main.maincontroller import MainController from tests.xroad_local_group import xroad_local_group class XroadRemoveLocalGroupMembers(unittest.TestCase): """ UC SERVICE_27 Remove Members from a Local Group RIA URL: https://jira.ria.ee/browse/XT-28...
35.181818
96
0.674419
from __future__ import absolute_import import unittest from main.maincontroller import MainController from tests.xroad_local_group import xroad_local_group class XroadRemoveLocalGroupMembers(unittest.TestCase): """ UC SERVICE_27 Remove Members from a Local Group RIA URL: https://jira.ria.ee/browse/XT-28...
914
0
26
4d112ea66231497d6630fd66b420c468499fd27f
9,836
py
Python
sasdocs/program.py
benjamincorcoran/sasdocs
cbcc022d47c4dc4b3b8f37189b951be3cc4b4648
[ "MIT" ]
5
2020-02-14T12:32:01.000Z
2021-12-20T10:01:10.000Z
sasdocs/program.py
benjamincorcoran/sasdocs
cbcc022d47c4dc4b3b8f37189b951be3cc4b4648
[ "MIT" ]
45
2019-12-26T19:00:33.000Z
2021-04-21T14:16:34.000Z
sasdocs/program.py
benjamincorcoran/sasdocs
cbcc022d47c4dc4b3b8f37189b951be3cc4b4648
[ "MIT" ]
null
null
null
import os import json import datetime import logging import pathlib import jinja2 import networkx import importlib.resources as pkg_resources from collections import Counter from . import templates, format_logger from .objects import force_partial_parse from .parsers import fullprogram class sasPro...
35.381295
127
0.573912
import os import json import datetime import logging import pathlib import jinja2 import networkx import importlib.resources as pkg_resources from collections import Counter from . import templates, format_logger from .objects import force_partial_parse from .parsers import fullprogram class sasPro...
625
0
58
c3c022b3559711ecc306453aa3ef38b57d2e95c3
4,922
py
Python
tests/nlp_tests.py
kmkwon94/ainized-teddy
70aabc29d92574efd47e038a5bcb1e8a8334da10
[ "Apache-2.0" ]
null
null
null
tests/nlp_tests.py
kmkwon94/ainized-teddy
70aabc29d92574efd47e038a5bcb1e8a8334da10
[ "Apache-2.0" ]
null
null
null
tests/nlp_tests.py
kmkwon94/ainized-teddy
70aabc29d92574efd47e038a5bcb1e8a8334da10
[ "Apache-2.0" ]
null
null
null
import unittest from collections import Counter from libs.TfidfModel import TFIDFModel from libs.nlp_length_functions import NLPLengths from libs.review_db import ReviewDB
46.87619
133
0.647907
import unittest from collections import Counter from libs.TfidfModel import TFIDFModel from libs.nlp_length_functions import NLPLengths from libs.review_db import ReviewDB class NLPTests(unittest.TestCase): def test_TFIDF_init(self): db = ReviewDB.load(cluster_file='tests/testing_db.csv') tfidf ...
4,570
13
165
bc1471e785d969d49eedf06400525be0bb7691ed
2,277
py
Python
war/WarGame.py
Nayed/war
3c6d446b5e31d815d24931e387dce1d8afcc5abd
[ "MIT" ]
null
null
null
war/WarGame.py
Nayed/war
3c6d446b5e31d815d24931e387dce1d8afcc5abd
[ "MIT" ]
null
null
null
war/WarGame.py
Nayed/war
3c6d446b5e31d815d24931e387dce1d8afcc5abd
[ "MIT" ]
null
null
null
from Player import Player from ClassicCardGame import ClassicCardGame
32.528571
98
0.588054
from Player import Player from ClassicCardGame import ClassicCardGame class WarGame: def __init__(self, player): self.__player = player self.__computer = Player('9000', 'HAL') self.__game = ClassicCardGame() def begin(self): self.__shuffle() self.__distribute() ...
1,998
-7
216
0eef6aed6cb9e895362da852afb25b9cdaac5abf
2,515
py
Python
Proyecto_albergue_mascotas_local/Albergue_mascotas/pagina1app/urls.py
hefecaso/Tareas_proyectos_1S_2022
39e8b569d5b871ac303e0c5b906c627ae5038149
[ "Apache-2.0" ]
null
null
null
Proyecto_albergue_mascotas_local/Albergue_mascotas/pagina1app/urls.py
hefecaso/Tareas_proyectos_1S_2022
39e8b569d5b871ac303e0c5b906c627ae5038149
[ "Apache-2.0" ]
null
null
null
Proyecto_albergue_mascotas_local/Albergue_mascotas/pagina1app/urls.py
hefecaso/Tareas_proyectos_1S_2022
39e8b569d5b871ac303e0c5b906c627ae5038149
[ "Apache-2.0" ]
null
null
null
from django.urls import path, include #importamos de la primer app lo relacionado #a las vistas from pagina1app import views from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.contrib.auth import views as auth_views #Password reset urlpatterns = [ ...
41.916667
104
0.726839
from django.urls import path, include #importamos de la primer app lo relacionado #a las vistas from pagina1app import views from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.contrib.auth import views as auth_views #Password reset urlpatterns = [ ...
0
0
0
26946124c99441b370ef41ae050e91297cbdb9be
171
py
Python
ultrasonic_ranger/main.py
philgough/grove_pygestures
fed8ab4a0938c6606cb8ec579a324e6d4b53c56b
[ "MIT" ]
3
2019-09-01T22:53:06.000Z
2019-09-10T00:42:57.000Z
ultrasonic_ranger/main.py
philgough/grove_pygestures
fed8ab4a0938c6606cb8ec579a324e6d4b53c56b
[ "MIT" ]
null
null
null
ultrasonic_ranger/main.py
philgough/grove_pygestures
fed8ab4a0938c6606cb8ec579a324e6d4b53c56b
[ "MIT" ]
2
2019-09-24T07:00:03.000Z
2019-11-05T05:22:49.000Z
from microbit import * from ultrasonic import * rf = Rangefinder(pin1) display.show(Image.YES) while True: dist = rf.distance_cm() print((dist,)) sleep(10)
14.25
27
0.678363
from microbit import * from ultrasonic import * rf = Rangefinder(pin1) display.show(Image.YES) while True: dist = rf.distance_cm() print((dist,)) sleep(10)
0
0
0
0acedd5aae222dd1ce03293104c84e9170ec35e1
2,299
py
Python
composer/functional/__init__.py
coryMosaicML/composer
16622c9457874f4f3811287fe933b0ec58107fc7
[ "Apache-2.0" ]
null
null
null
composer/functional/__init__.py
coryMosaicML/composer
16622c9457874f4f3811287fe933b0ec58107fc7
[ "Apache-2.0" ]
null
null
null
composer/functional/__init__.py
coryMosaicML/composer
16622c9457874f4f3811287fe933b0ec58107fc7
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Functional API for applying algorithms in your own training loop. .. code-block:: python from composer import functional as cf from torchvision import models model = models.resnet50() # replace some layers with blur...
36.492063
95
0.811222
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Functional API for applying algorithms in your own training loop. .. code-block:: python from composer import functional as cf from torchvision import models model = models.resnet50() # replace some layers with blur...
0
0
0
5c6a64e14ffacccb495d1b66099c9fd6b91368eb
1,839
py
Python
scripts/get_virustotal_info.py
drobotun/python_pefile_scripts
4feee14414984580d12894a2319fc926995e6108
[ "MIT" ]
null
null
null
scripts/get_virustotal_info.py
drobotun/python_pefile_scripts
4feee14414984580d12894a2319fc926995e6108
[ "MIT" ]
null
null
null
scripts/get_virustotal_info.py
drobotun/python_pefile_scripts
4feee14414984580d12894a2319fc926995e6108
[ "MIT" ]
1
2021-03-01T11:37:34.000Z
2021-03-01T11:37:34.000Z
""" Скрипт, отправляющий хэш-сумму файла для проверки на VirusTotal. Для работы необходим ключ доступа к API сервиса VirusTotal. Ключ можно получить после регистрации на VirusTotal. Для корректной работы скрипта ключ необходимо прописать в переменную среды VT_API_KEY. В качестве параметра скрипту передается md5,...
36.058824
81
0.69603
""" Скрипт, отправляющий хэш-сумму файла для проверки на VirusTotal. Для работы необходим ключ доступа к API сервиса VirusTotal. Ключ можно получить после регистрации на VirusTotal. Для корректной работы скрипта ключ необходимо прописать в переменную среды VT_API_KEY. В качестве параметра скрипту передается md5,...
0
0
0
b17b62fd89be1a06fa2a86ad6f14426dec8cca8a
1,344
py
Python
planegeometry/structures/events.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
planegeometry/structures/events.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
planegeometry/structures/events.py
ufkapano/planegeometry
fa9309a4e867acedd635665f32d7f59a8eeaf2e3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python from functools import total_ordering @total_ordering class Event: """The class defining an event.""" LEFT = 0 # BentleyOttmann, ShamosHoey CROSSING = 1 # BentleyOttmann RIGHT = 2 # BentleyOttmann, ShamosHoey HORIZONTAL = 3 # HorizontalVertical VERTICAL = 4 # Horiz...
31.255814
84
0.609375
#!/usr/bin/python from functools import total_ordering @total_ordering class Event: """The class defining an event.""" LEFT = 0 # BentleyOttmann, ShamosHoey CROSSING = 1 # BentleyOttmann RIGHT = 2 # BentleyOttmann, ShamosHoey HORIZONTAL = 3 # HorizontalVertical VERTICAL = 4 # Horiz...
327
0
54
3120927cf3efe6b9bf75b4496ced99b69864aac4
5,105
py
Python
brie/utils/io_utils.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
38
2017-01-06T00:18:46.000Z
2022-01-25T19:44:10.000Z
brie/utils/io_utils.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
28
2017-01-11T09:12:57.000Z
2022-02-14T14:53:48.000Z
brie/utils/io_utils.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
12
2018-02-13T20:23:00.000Z
2022-01-05T18:39:19.000Z
# Containing API to load the count matrix data import anndata import numpy as np import pandas as pd from scipy.sparse import csc_matrix from anndata import read_h5ad from .gtf_utils import load_genes as read_gff def convert_to_annData(Rmat_dict, effLen_tensor, cell_note, gene_note, fill_missing=True): """...
31.319018
80
0.55906
# Containing API to load the count matrix data import anndata import numpy as np import pandas as pd from scipy.sparse import csc_matrix from anndata import read_h5ad from .gtf_utils import load_genes as read_gff def convert_to_annData(Rmat_dict, effLen_tensor, cell_note, gene_note, fill_missing=True): """...
0
0
0
a63c71982f1f14d9a78ed6b754efe97256164a40
3,088
py
Python
weak_scaling_sleeps.py
annawoodard/CHEP2019-funcx-coffea-benchmarks
2bb5de22ec765e7e5ab2a2b437415ebac1b80300
[ "Apache-2.0" ]
null
null
null
weak_scaling_sleeps.py
annawoodard/CHEP2019-funcx-coffea-benchmarks
2bb5de22ec765e7e5ab2a2b437415ebac1b80300
[ "Apache-2.0" ]
null
null
null
weak_scaling_sleeps.py
annawoodard/CHEP2019-funcx-coffea-benchmarks
2bb5de22ec765e7e5ab2a2b437415ebac1b80300
[ "Apache-2.0" ]
null
null
null
import argparse import os import time import sqlite3 from tqdm.auto import tqdm import funcx from coffea.processor.funcx.detail import MappedFuncXFuture funcx.set_file_logger('funcx.log') client = funcx.sdk.client.FuncXClient(funcx_service_address='https://dev.funcx.org/api/v1') parser = argparse.ArgumentParser() pa...
27.087719
147
0.68329
import argparse import os import time import sqlite3 from tqdm.auto import tqdm import funcx from coffea.processor.funcx.detail import MappedFuncXFuture funcx.set_file_logger('funcx.log') client = funcx.sdk.client.FuncXClient(funcx_service_address='https://dev.funcx.org/api/v1') parser = argparse.ArgumentParser() pa...
150
0
23
82bf7afa972b21988abca0d58016ef694980208d
2,461
py
Python
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[nl_NL-2017] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[nl_NL-2017] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[nl_NL-2017] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
[ { 'date': '2017-01-01', 'description': 'Nieuwjaarsdag', 'locale': 'nl-NL', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2017-04-14', 'description': 'Goede Vrijdag', 'locale': 'nl-NL', 'notes': '', 'region': ''...
21.587719
44
0.364892
[ { 'date': '2017-01-01', 'description': 'Nieuwjaarsdag', 'locale': 'nl-NL', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2017-04-14', 'description': 'Goede Vrijdag', 'locale': 'nl-NL', 'notes': '', 'region': ''...
0
0
0
5248beb60aa8b4799e73e97c7945f674a720e7b2
539
py
Python
Exercicios/ex033.py
HenriqueSOliver/Python_CursoEmVideo
6a8ab0c0fa3443990fc0bbbd817314065cf4e01b
[ "MIT" ]
1
2021-04-08T19:54:01.000Z
2021-04-08T19:54:01.000Z
Python (3)/Ex_finalizados/ex033.py
Gafanhoto742/Python-3
b0a13ec4cf60185af3ed2508fc69188e36415b80
[ "MIT" ]
null
null
null
Python (3)/Ex_finalizados/ex033.py
Gafanhoto742/Python-3
b0a13ec4cf60185af3ed2508fc69188e36415b80
[ "MIT" ]
null
null
null
# Faça um programa que leia três números e mostre qual é o maior e qual é o menor. a = int(input('Digite primeiro valor: ')) b = int(input('Digite segundo valor: ')) c = int(input('Digite terceiro valor: ')) #Verificar quem é o menor número menor = a if b < a and b < c: menor = b if c < a and c < b: menor = c ...
28.368421
82
0.640074
# Faça um programa que leia três números e mostre qual é o maior e qual é o menor. a = int(input('Digite primeiro valor: ')) b = int(input('Digite segundo valor: ')) c = int(input('Digite terceiro valor: ')) #Verificar quem é o menor número menor = a if b < a and b < c: menor = b if c < a and c < b: menor = c ...
0
0
0
0e83aef00aa9d8880999797c4837be07366f1de0
1,257
py
Python
courses/python/cursoemvideo/exercicios/ex091_jogo_de_dados_com_sort_de_dicionarios.py
bdpcampos/public
dda57c265718f3e1cc0d6bce73f149051f5647ef
[ "MIT" ]
3
2020-04-28T01:42:09.000Z
2020-05-03T12:05:23.000Z
courses/python/cursoemvideo/exercicios/ex091_jogo_de_dados_com_sort_de_dicionarios.py
bdpcampos/public
dda57c265718f3e1cc0d6bce73f149051f5647ef
[ "MIT" ]
null
null
null
courses/python/cursoemvideo/exercicios/ex091_jogo_de_dados_com_sort_de_dicionarios.py
bdpcampos/public
dda57c265718f3e1cc0d6bce73f149051f5647ef
[ "MIT" ]
null
null
null
from random import randint from time import sleep jogo = dict() print('-=' * 25) print(f'{"Jogo de dados":^50}') print('-=' * 25) n = input('\nJogador 1 aperte [Q] e [ENTER] para jogar o dado: ') jogo['jogador1'] = randint(1, 6) rolar_dados() print(f'O dado caiu no {jogo["jogador1"]}') print('-' * 50) n = input('\...
22.052632
73
0.585521
from random import randint from time import sleep def rolar_dados(): sleep(0.3) print('.', end='') sleep(0.3) print('.', end='') sleep(0.3) print('.', end='') sleep(0.3) print('.', end='') sleep(0.3) print('.', end='') jogo = dict() print('-=' * 25) print(f'{"Jogo de dados":^5...
187
0
23
38a9e35acdcff9cab573ca716fc25d85386197fa
10,426
py
Python
services/aggregation/spark_app.py
mikael-kolanowski/AIDA-Framework
fc131bb3575041e796b3052b0cce02964060a86e
[ "MIT" ]
8
2019-12-13T02:01:42.000Z
2022-01-09T10:37:03.000Z
services/aggregation/spark_app.py
mikael-kolanowski/AIDA-Framework
fc131bb3575041e796b3052b0cce02964060a86e
[ "MIT" ]
null
null
null
services/aggregation/spark_app.py
mikael-kolanowski/AIDA-Framework
fc131bb3575041e796b3052b0cce02964060a86e
[ "MIT" ]
4
2020-05-11T12:30:39.000Z
2021-09-27T08:11:54.000Z
""" Script for aggregation of IDEA events. Aggregates are marked in json IDEA message and send to output kafka topic. Example of marking: {..., '_aida’:{'Duplicate’: 'true’, 'Continuing’: <first_idea_id>}, ...} """ import os import sys import argparse import ujson as json from idea import Idea from kafka...
33.960912
120
0.636198
""" Script for aggregation of IDEA events. Aggregates are marked in json IDEA message and send to output kafka topic. Example of marking: {..., '_aida’:{'Duplicate’: 'true’, 'Continuing’: <first_idea_id>}, ...} """ import os import sys import argparse import ujson as json from idea import Idea from kafka...
269
0
58
d0d1eb1ac481fe5225c09c4b8c1ca4d9ef4f4ee0
1,999
py
Python
bento/commands/tests/test_hooks.py
cournape/Bento
37de23d784407a7c98a4a15770ffc570d5f32d70
[ "BSD-3-Clause" ]
55
2015-01-20T21:12:52.000Z
2021-11-23T12:29:32.000Z
bento/commands/tests/test_hooks.py
esc/Bento
5e13318c0a74e956f9e80fa7617fb31ffc356088
[ "BSD-3-Clause" ]
6
2015-01-16T07:01:29.000Z
2021-08-19T20:00:17.000Z
bento/commands/tests/test_hooks.py
esc/Bento
5e13318c0a74e956f9e80fa7617fb31ffc356088
[ "BSD-3-Clause" ]
6
2015-08-12T18:11:47.000Z
2019-01-05T08:36:05.000Z
import os import os.path as op import shutil import tempfile from bento.compat.api.moves \ import \ unittest from bento.core.node \ import \ create_root_with_source_tree from bento.core.testing \ import \ create_fake_package_from_bento_infos from bento.commands.command_contexts \ ...
24.084337
82
0.61931
import os import os.path as op import shutil import tempfile from bento.compat.api.moves \ import \ unittest from bento.core.node \ import \ create_root_with_source_tree from bento.core.testing \ import \ create_fake_package_from_bento_infos from bento.commands.command_contexts \ ...
1,350
14
103
34d6b5d648551fde8088534053f50ed742dc0a43
70
py
Python
tests/effects/__init__.py
Nikolay-Lysenko/sinethesizer
fe6855186a00e701113ea5bb4fac104bf8497035
[ "MIT" ]
8
2019-07-25T12:17:38.000Z
2021-09-04T19:38:21.000Z
tests/effects/__init__.py
Nikolay-Lysenko/sinethesizer
fe6855186a00e701113ea5bb4fac104bf8497035
[ "MIT" ]
7
2019-07-20T18:04:54.000Z
2021-08-03T17:31:26.000Z
tests/effects/__init__.py
Nikolay-Lysenko/sinethesizer
fe6855186a00e701113ea5bb4fac104bf8497035
[ "MIT" ]
1
2019-10-16T18:44:43.000Z
2019-10-16T18:44:43.000Z
""" Test `sinethesizer.effects` package. Author: Nikolay Lysenko """
11.666667
36
0.714286
""" Test `sinethesizer.effects` package. Author: Nikolay Lysenko """
0
0
0
25f38ae8c83ff2844a9b21ef2970945794011b44
2,348
py
Python
tests/test_backslashes.py
Intsights/flake8-intsights
b3785a3be855e05090641696e0648486107dba72
[ "MIT" ]
12
2020-02-18T17:47:57.000Z
2021-07-13T10:23:40.000Z
tests/test_backslashes.py
Intsights/flake8-intsights
b3785a3be855e05090641696e0648486107dba72
[ "MIT" ]
7
2020-02-25T12:14:11.000Z
2020-12-01T08:14:58.000Z
tests/test_backslashes.py
Intsights/flake8-intsights
b3785a3be855e05090641696e0648486107dba72
[ "MIT" ]
1
2020-07-01T15:49:28.000Z
2020-07-01T15:49:28.000Z
import textwrap import tokenize import ast import io import unittest import flake8_intsights from . import texts
24.206186
78
0.502555
import textwrap import tokenize import ast import io import unittest import flake8_intsights from . import texts class BackslashesTestCase( unittest.TestCase, ): def get_linting_errors( self, source_code, ): source_code = textwrap.dedent( text=source_code.lstrip(), ...
2,044
31
157
ecf313852012844253d8d44b953e9f87dc5cc415
253
py
Python
manipulacao_de_arquivos/List-Comprehension/comprehension_v4.py
andremartins746/curso_de_PYTHON
3b4d79e3310b2442cf57a98f213a153492f2a89a
[ "MIT" ]
null
null
null
manipulacao_de_arquivos/List-Comprehension/comprehension_v4.py
andremartins746/curso_de_PYTHON
3b4d79e3310b2442cf57a98f213a153492f2a89a
[ "MIT" ]
null
null
null
manipulacao_de_arquivos/List-Comprehension/comprehension_v4.py
andremartins746/curso_de_PYTHON
3b4d79e3310b2442cf57a98f213a153492f2a89a
[ "MIT" ]
null
null
null
# usando generator, ele comsome menos memoria generator = (i ** 2 for i in range(10) if i % 2 == 0) #aqui diferente das vercoes anteriores ele faz o sistema de stremer. #ele vai carregando sobre a nessecidade! for numero in generator: print(numero)
36.142857
68
0.735178
# usando generator, ele comsome menos memoria generator = (i ** 2 for i in range(10) if i % 2 == 0) #aqui diferente das vercoes anteriores ele faz o sistema de stremer. #ele vai carregando sobre a nessecidade! for numero in generator: print(numero)
0
0
0
fabb4e8be50b41c943673814506bd447cca13c8b
2,843
py
Python
slap_dj/scripts/fix_openapi_specs.py
FuckBrains/slap
dfd5ae095980920c12ba1451926aa5b819997a47
[ "BSD-3-Clause" ]
null
null
null
slap_dj/scripts/fix_openapi_specs.py
FuckBrains/slap
dfd5ae095980920c12ba1451926aa5b819997a47
[ "BSD-3-Clause" ]
null
null
null
slap_dj/scripts/fix_openapi_specs.py
FuckBrains/slap
dfd5ae095980920c12ba1451926aa5b819997a47
[ "BSD-3-Clause" ]
1
2021-07-09T15:34:52.000Z
2021-07-09T15:34:52.000Z
import typing from dataclasses import dataclass import yaml import attr @attr.s(slots=True) @attr.s(slots=True) @attr.s(slots=True) param_location_choices = ('query', 'header', 'path', 'cookie') @attr.s(slots=True) @attr.s(slots=True) if __name__ == '__main__': info = InfoObject(title='SLAP API',...
30.244681
103
0.667253
import typing from dataclasses import dataclass import yaml import attr class AsDictMixin: def as_dict(self) -> dict: dct = {} for field in self.__slots__: if field: dct[field] = getattr(self, field) return dct @attr.s(slots=True) class InfoObject(AsDictMixin...
573
1,727
205
de59c0bd5d1496ae5f66e0928922e0383c17cccb
1,222
py
Python
tests/core/test_sascphylogeny.py
plastic-phy/plastic
101dcfd2c4e32be432d46d89ab151f48e34d6458
[ "MIT" ]
1
2021-02-23T07:50:47.000Z
2021-02-23T07:50:47.000Z
tests/core/test_sascphylogeny.py
plastic-phy/plastic
101dcfd2c4e32be432d46d89ab151f48e34d6458
[ "MIT" ]
1
2021-02-23T08:59:23.000Z
2021-03-25T09:13:43.000Z
tests/core/test_sascphylogeny.py
plastic-phy/plastic
101dcfd2c4e32be432d46d89ab151f48e34d6458
[ "MIT" ]
null
null
null
import networkx as nx from phylo._core.phylogenytree import SASCPhylogeny import pytest as pt
27.155556
58
0.590835
import networkx as nx from phylo._core.phylogenytree import SASCPhylogeny import pytest as pt class TestInit: def test_init_with_cells(self): a = nx.DiGraph() a.add_node('0', label = 'pollo,zorg') a.add_node('1', shape = 'box') a.add_edge('0', '1') a = SASCPhylogeny(a) ...
992
-6
131
b9c1c2829a093effcc324603cbf1032f1e838893
214
py
Python
hyppo/__init__.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
null
null
null
hyppo/__init__.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
null
null
null
hyppo/__init__.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
null
null
null
import hyppo.discrim import hyppo.independence import hyppo.ksample import hyppo.time_series import hyppo.kgof import hyppo.tools import hyppo.d_variate import hyppo.conditional_independence __version__ = "0.3.2"
19.454545
37
0.845794
import hyppo.discrim import hyppo.independence import hyppo.ksample import hyppo.time_series import hyppo.kgof import hyppo.tools import hyppo.d_variate import hyppo.conditional_independence __version__ = "0.3.2"
0
0
0
a2a2bfee0eaacba1b656eb066b884f7ba9d9dcde
7,277
py
Python
gendered-pronoun-resolution/optim.py
yasserglez/kaggle_titanic
7a4857ec9a99c31eb53a91dda3ad9ecd5b647278
[ "MIT" ]
2
2019-09-29T02:26:58.000Z
2020-03-06T07:38:58.000Z
gendered-pronoun-resolution/optim.py
yasserglez/kaggle_titanic
7a4857ec9a99c31eb53a91dda3ad9ecd5b647278
[ "MIT" ]
2
2018-12-17T04:32:09.000Z
2019-10-22T00:31:06.000Z
gendered-pronoun-resolution/optim.py
yasserglez/kaggle
7a4857ec9a99c31eb53a91dda3ad9ecd5b647278
[ "MIT" ]
null
null
null
import math import logging import numpy as np import torch from torch.optim import Optimizer from torch.nn.utils import clip_grad_norm_ logger = logging.getLogger(__name__) def lr_schedule(step, total_steps, lr, lr_warmup, lr_cooldown): """Calculate a scheduled learning rate value.""" if lr_warmup is None:...
45.48125
100
0.581558
import math import logging import numpy as np import torch from torch.optim import Optimizer from torch.nn.utils import clip_grad_norm_ logger = logging.getLogger(__name__) def lr_schedule(step, total_steps, lr, lr_warmup, lr_cooldown): """Calculate a scheduled learning rate value.""" if lr_warmup is None:...
0
0
0
853704f24ebc2d7646b79badfd5927d20a6b03ac
1,636
py
Python
training.py
DanielFlockhart/mnist-n--prediction-dbot
53b72d4b3123a67371693854552f1e27bf4451e4
[ "MIT" ]
null
null
null
training.py
DanielFlockhart/mnist-n--prediction-dbot
53b72d4b3123a67371693854552f1e27bf4451e4
[ "MIT" ]
null
null
null
training.py
DanielFlockhart/mnist-n--prediction-dbot
53b72d4b3123a67371693854552f1e27bf4451e4
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from keras.datasets import mnist import time (x_train,y_train),(x_test,y_test)= tf.keras.datasets.mnist.load_data() x_train = tf.keras.utils.normalize(x_train, axis=1) x_test = tf.keras.utils.normalize(x_test, axis=1) x_train = x_train.r...
33.387755
71
0.704768
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from keras.datasets import mnist import time (x_train,y_train),(x_test,y_test)= tf.keras.datasets.mnist.load_data() x_train = tf.keras.utils.normalize(x_train, axis=1) x_test = tf.keras.utils.normalize(x_test, axis=1) x_train = x_train.r...
0
0
0
d7e978f677498841591482f6c118206f86105ddf
640
py
Python
ParallelTrapezoidal/timing.py
KyleBond/genome-pattern-finder
78b8abf39a53bd4210b84d14523c16d34a9d2f59
[ "MIT" ]
null
null
null
ParallelTrapezoidal/timing.py
KyleBond/genome-pattern-finder
78b8abf39a53bd4210b84d14523c16d34a9d2f59
[ "MIT" ]
null
null
null
ParallelTrapezoidal/timing.py
KyleBond/genome-pattern-finder
78b8abf39a53bd4210b84d14523c16d34a9d2f59
[ "MIT" ]
null
null
null
import atexit import functools from time import clock line = "="*40 start = clock() atexit.register(endlog)
20.645161
64
0.610938
import atexit import functools from time import clock def secondsToStr(t): return "%d:%02d:%02d.%03d" % \ functools.reduce(lambda ll,b : divmod(ll[0],b) + ll[1:], [(t*1000,),1000,60,60]) line = "="*40 def log(s, outputFile): print(line) outputFile.write(line) print(secondsToStr(clo...
430
0
91
4e59ce6dd4946dd110e94e26d866b03054af3cb1
1,426
py
Python
tests/test_fusions.py
Karol-G/block.bootstrap.pytorch
f84cf08fb9276f7eab5ac096898b45f27c92e073
[ "BSD-3-Clause" ]
312
2018-11-16T00:36:51.000Z
2022-03-20T22:56:23.000Z
tests/test_fusions.py
cdancette/block.bootstrap.pytorch
6a39ed2c6fc931a9df39d2fdd8e4f2aa3168919e
[ "BSD-3-Clause" ]
21
2019-03-07T04:10:12.000Z
2021-07-01T09:07:22.000Z
tests/test_fusions.py
cdancette/block.bootstrap.pytorch
6a39ed2c6fc931a9df39d2fdd8e4f2aa3168919e
[ "BSD-3-Clause" ]
70
2019-02-16T13:31:11.000Z
2022-02-22T14:41:10.000Z
import pytest import torch import inspect import itertools from block.models.networks.fusions import fusions bsize = 2 x_arg = [ [torch.randn(bsize, 10), torch.randn(bsize, 20)], [torch.randn(bsize, 20), torch.randn(bsize, 10)], [torch.randn(bsize, 10), torch.randn(bsize, 10)] ] F_arg = [F for k, F in fusi...
26.90566
67
0.599579
import pytest import torch import inspect import itertools from block.models.networks.fusions import fusions bsize = 2 x_arg = [ [torch.randn(bsize, 10), torch.randn(bsize, 20)], [torch.randn(bsize, 20), torch.randn(bsize, 10)], [torch.randn(bsize, 10), torch.randn(bsize, 10)] ] F_arg = [F for k, F in fusi...
756
0
66
c03a438d5fb3d2e1c4c2dbad98f1f3b93c846110
4,650
py
Python
src/Database.py
alxwrd/merchant-almanac
3466ae456b4f185a9a41754d142f6a8334b02cbf
[ "MIT" ]
null
null
null
src/Database.py
alxwrd/merchant-almanac
3466ae456b4f185a9a41754d142f6a8334b02cbf
[ "MIT" ]
null
null
null
src/Database.py
alxwrd/merchant-almanac
3466ae456b4f185a9a41754d142f6a8334b02cbf
[ "MIT" ]
null
null
null
import sqlite3
34.962406
103
0.45828
import sqlite3 class Database(object): db_file = "merchants-almanac.db" __conn = None def __init__(self, **kwargs): if not Database.__conn: Database.__conn = sqlite3.connect( Database.db_file, detect_types=sqlite3.PARSE_DECLTYPES, check_...
2,541
2,070
23
a29d8af563d1262c8d5913d21683e7a21aabc998
4,344
py
Python
dwi_ml/data/processing/space/neighbourhood.py
jhlegarreta/dwi_ml
f07327a5ac772f5d9569c1d24ef3c42511e8c874
[ "MIT" ]
null
null
null
dwi_ml/data/processing/space/neighbourhood.py
jhlegarreta/dwi_ml
f07327a5ac772f5d9569c1d24ef3c42511e8c874
[ "MIT" ]
null
null
null
dwi_ml/data/processing/space/neighbourhood.py
jhlegarreta/dwi_ml
f07327a5ac772f5d9569c1d24ef3c42511e8c874
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import itertools from typing import Iterable, Union import numpy as np def get_neighborhood_vectors_axes(radius: Union[float, Iterable[float]]): """This neighborhood definition lies on a sphere. Returns a list of 6 positions (up, down, left, right, behind, in front) at exactly `radius...
36.504202
80
0.660912
# -*- coding: utf-8 -*- import itertools from typing import Iterable, Union import numpy as np def get_neighborhood_vectors_axes(radius: Union[float, Iterable[float]]): """This neighborhood definition lies on a sphere. Returns a list of 6 positions (up, down, left, right, behind, in front) at exactly `radius...
0
0
0
5b061d331fcb3d984eb9bf1ce7601ae2404b6440
57
py
Python
enthought/pyface/ui/qt4/python_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/ui/qt4/python_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/ui/qt4/python_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from pyface.ui.qt4.python_editor import *
19
41
0.789474
# proxy module from pyface.ui.qt4.python_editor import *
0
0
0
ebb99f8372be193a840d379f4910cf0e5885b448
445
py
Python
scripts/android_activity.py
prabhudeva17/AUBA
e4294db84d0e0f50e33bc1bb5d2e5cb91d6f74f2
[ "MIT" ]
null
null
null
scripts/android_activity.py
prabhudeva17/AUBA
e4294db84d0e0f50e33bc1bb5d2e5cb91d6f74f2
[ "MIT" ]
null
null
null
scripts/android_activity.py
prabhudeva17/AUBA
e4294db84d0e0f50e33bc1bb5d2e5cb91d6f74f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 ''' Android Activity Most Used Android Apps ''' import re from wrcsv import * #--activity in HTML format-- a=gethtmldata() #--Regex Expression-- androidapp=re.findall(r'\">([\w\s]+)</a><br>([\w\s\,\:]+)</div>',a) #--write data to csv file-- writecsv("Android_Application_Activity",['APPLICA...
22.25
74
0.68764
#!/usr/bin/env python2.7 ''' Android Activity Most Used Android Apps ''' import re from wrcsv import * #--activity in HTML format-- a=gethtmldata() #--Regex Expression-- androidapp=re.findall(r'\">([\w\s]+)</a><br>([\w\s\,\:]+)</div>',a) #--write data to csv file-- writecsv("Android_Application_Activity",['APPLICA...
0
0
0
053ce4ec4d1e667f64a93376dfee033b00809180
430
py
Python
Patient/migrations/0020_patient_state.py
s0hailAnsari/ARCIT
b1d6a0596efaa887a498c518e6a387adc7ec12c6
[ "MIT" ]
null
null
null
Patient/migrations/0020_patient_state.py
s0hailAnsari/ARCIT
b1d6a0596efaa887a498c518e6a387adc7ec12c6
[ "MIT" ]
20
2021-04-19T11:31:48.000Z
2021-09-07T07:51:10.000Z
Patient/migrations/0020_patient_state.py
s0hailAnsari/ARCIT
b1d6a0596efaa887a498c518e6a387adc7ec12c6
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-08-11 08:54 from django.db import migrations, models
21.5
62
0.6
# Generated by Django 3.2 on 2021-08-11 08:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Patient', '0019_auto_20210713_1422'), ] operations = [ migrations.AddField( model_name='patient', name='state', ...
0
318
23
51175ba3d3a50ea311b8e561a4b8bb1125db5c0f
295
py
Python
map/urls.py
cobyc15/uvacampusmap
a6ba817a1fd6e14dbece395812728decfe6d537a
[ "MIT" ]
null
null
null
map/urls.py
cobyc15/uvacampusmap
a6ba817a1fd6e14dbece395812728decfe6d537a
[ "MIT" ]
null
null
null
map/urls.py
cobyc15/uvacampusmap
a6ba817a1fd6e14dbece395812728decfe6d537a
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views from django.contrib.auth.decorators import login_required urlpatterns = [ url('', views.MapTemplate, name="default"), url('template2/', views.MapTemplate2, name="default"), url('template3/', views.MapTemplate3, name="default"), ]
32.777778
58
0.725424
from django.conf.urls import url from . import views from django.contrib.auth.decorators import login_required urlpatterns = [ url('', views.MapTemplate, name="default"), url('template2/', views.MapTemplate2, name="default"), url('template3/', views.MapTemplate3, name="default"), ]
0
0
0
f2cdafc8a58de3b79f577533d9024d65b3750ffd
1,836
py
Python
crichtonweb/core/introspection_rules.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
crichtonweb/core/introspection_rules.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
crichtonweb/core/introspection_rules.py
bpluly/crichton
a2fa09c181ba1e44ee1aae7a57769e1778de7f3a
[ "Apache-2.0" ]
null
null
null
# Crichton, Admirable Source Configuration Management # Copyright 2012 British Broadcasting 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/licens...
32.785714
75
0.656318
# Crichton, Admirable Source Configuration Management # Copyright 2012 British Broadcasting 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/licens...
847
0
22
9c91203de9c716e6ca28280d11afef5e11ec4e3e
422
py
Python
solutions/minimum_deletions_balance_string/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/minimum_deletions_balance_string/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/minimum_deletions_balance_string/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
from .solution import minimumDeletions from ..utils import io, printer print('Enter string only consisting of "a"s and "b"s:', end=' ') s = io.get(str).lower() violating_characters = set(s) - set('ab') assert len(violating_characters) == 0, f'Violating characters: {", ".join(violating_characters)}' deletions = minim...
38.363636
97
0.729858
from .solution import minimumDeletions from ..utils import io, printer print('Enter string only consisting of "a"s and "b"s:', end=' ') s = io.get(str).lower() violating_characters = set(s) - set('ab') assert len(violating_characters) == 0, f'Violating characters: {", ".join(violating_characters)}' deletions = minim...
0
0
0
fe61d2d2f5f1833b68e2f9bd129597220ef28192
904
py
Python
web/app/__init__.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
16
2017-09-05T12:26:11.000Z
2019-10-26T22:55:41.000Z
web/app/__init__.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
1
2018-02-07T11:16:43.000Z
2018-02-07T11:16:43.000Z
web/app/__init__.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
8
2017-09-21T01:20:52.000Z
2021-01-21T10:03:34.000Z
from flask import Flask, session from automlk.print import * from automlk.folders import has_subfolders app = Flask(__name__) SESSION_TYPE = 'redis' app.config.from_object('config') app.jinja_env.globals.update(print_summary=print_summary) app.jinja_env.globals.update(print_summary=print_summary) app.jinja_env.globals...
41.090909
69
0.860619
from flask import Flask, session from automlk.print import * from automlk.folders import has_subfolders app = Flask(__name__) SESSION_TYPE = 'redis' app.config.from_object('config') app.jinja_env.globals.update(print_summary=print_summary) app.jinja_env.globals.update(print_summary=print_summary) app.jinja_env.globals...
0
0
0
ab4e598b95f8d66d32758c5a2c2a4d55724aeef0
466
py
Python
rallybooking/migrations/0002_auto_20181005_1339.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
rallybooking/migrations/0002_auto_20181005_1339.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
rallybooking/migrations/0002_auto_20181005_1339.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.1 on 2018-10-05 12:39 from django.db import migrations
19.416667
47
0.545064
# Generated by Django 2.1.1 on 2018-10-05 12:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rallybooking', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='choice', name='question', ), ...
0
360
23
c3d07282b97c4e0f2a6c9e6212cc324e43edb8b7
2,873
py
Python
python/hdlc_framer.py
artemies/gr-kiss
2e0d74ac91976ce0bfdc9ffff2d84146f333ede9
[ "Unlicense" ]
20
2016-05-31T10:42:49.000Z
2022-02-18T00:59:07.000Z
python/hdlc_framer.py
artemies/gr-kiss
2e0d74ac91976ce0bfdc9ffff2d84146f333ede9
[ "Unlicense" ]
2
2016-08-30T10:02:05.000Z
2017-02-16T22:17:45.000Z
python/hdlc_framer.py
artemies/gr-kiss
2e0d74ac91976ce0bfdc9ffff2d84146f333ede9
[ "Unlicense" ]
8
2016-06-12T01:41:29.000Z
2021-03-18T05:47:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016 Daniel Estevez <daniel@destevez.net>. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
35.9125
107
0.638705
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016 Daniel Estevez <daniel@destevez.net>. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
1,478
0
53
4bc6deb9e3d7360f71a597b2c824983533987c3d
6,324
py
Python
nefertari/utils/data.py
nikitagromov/nefertari
1e3829bba4008a8014a3a5f23521a082bfd06ecd
[ "Apache-2.0" ]
null
null
null
nefertari/utils/data.py
nikitagromov/nefertari
1e3829bba4008a8014a3a5f23521a082bfd06ecd
[ "Apache-2.0" ]
null
null
null
nefertari/utils/data.py
nikitagromov/nefertari
1e3829bba4008a8014a3a5f23521a082bfd06ecd
[ "Apache-2.0" ]
null
null
null
import six from nefertari.utils.dictset import dictset from nefertari.utils.utils import issequence class FieldData(object): """ Keeps field data in a generic format. Is passed to field processors. """ def __init__(self, name, new_value, params=None): """ :param name: Name of ...
29.830189
120
0.572581
import six from nefertari.utils.dictset import dictset from nefertari.utils.utils import issequence class DocumentView(dictset): pass class DataProxy(object): _data = None _raw_data = None _substituted = None def __init__(self, data=None): self._data = {} self._raw_data = data o...
3,270
1,593
211
b010590ec4ead0cb50715bad094369aae692bf70
7,134
py
Python
skyproj/skyproj.py
erykoff/skyproj
f00af06df032c6956e9ce191b55b173eb5415b3a
[ "BSD-3-Clause" ]
6
2022-02-22T15:44:35.000Z
2022-03-31T17:14:18.000Z
skyproj/skyproj.py
erykoff/skyproj
f00af06df032c6956e9ce191b55b173eb5415b3a
[ "BSD-3-Clause" ]
15
2022-01-11T22:06:16.000Z
2022-03-07T21:49:48.000Z
skyproj/skyproj.py
LSSTDESC/skyproj
c1e3365e958b2bd99e72e4e053da6b0ddaceb2b2
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from ._skyproj import _Skyproj __all__ = ['Skyproj', 'McBrydeSkyproj', 'LaeaSkyproj', 'MollweideSkyproj', 'HammerSkyproj', 'EqualEarthSkyproj', 'GnomonicSkyproj', 'ObliqueMollweideSkyproj'] class _Stadium: """Extension class to create a stadium-shaped projection boundary...
29.118367
75
0.561396
import numpy as np from ._skyproj import _Skyproj __all__ = ['Skyproj', 'McBrydeSkyproj', 'LaeaSkyproj', 'MollweideSkyproj', 'HammerSkyproj', 'EqualEarthSkyproj', 'GnomonicSkyproj', 'ObliqueMollweideSkyproj'] class _Stadium: """Extension class to create a stadium-shaped projection boundary...
4,304
800
446
993d9fbda4a2a330d2b65835c966d28691cb4372
1,069
py
Python
application.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
application.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
application.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
import sys import logging import argparse from logging.config import fileConfig from calculator import ExpressionCalculator def main(): """ Driver function that collects user inputs and passes it to the underlying engine :returns integer indicating success or failure """ logger = logging.getLogg...
30.542857
101
0.737138
import sys import logging import argparse from logging.config import fileConfig from calculator import ExpressionCalculator def main(): """ Driver function that collects user inputs and passes it to the underlying engine :returns integer indicating success or failure """ logger = logging.getLogg...
0
0
0
2b6feae1aa0b1a0450a463a5faef82db81a55dbb
108,656
py
Python
integreat_cms/cms/migrations/0001_initial.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
21
2018-10-26T20:10:45.000Z
2020-10-22T09:41:46.000Z
integreat_cms/cms/migrations/0001_initial.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
392
2018-10-25T08:34:07.000Z
2020-11-19T08:20:30.000Z
integreat_cms/cms/migrations/0001_initial.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
23
2019-03-06T17:11:35.000Z
2020-10-16T04:36:41.000Z
# Generated by Django 3.2.11 on 2022-01-16 01:51 import datetime from django.conf import settings import django.contrib.auth.validators import django.contrib.postgres.fields import django.core.validators from django.db import migrations, models from django.utils.timezone import utc import django.utils.timezone import ...
40.035372
279
0.356584
# Generated by Django 3.2.11 on 2022-01-16 01:51 import datetime from django.conf import settings import django.contrib.auth.validators import django.contrib.postgres.fields import django.core.validators from django.db import migrations, models from django.utils.timezone import utc import django.utils.timezone import ...
0
0
0
2be27c104f6250e33ed2eb77997c5ec583067a86
1,475
py
Python
tests/test_service.py
croixbleueqc/scaffold-aiohttp
9a2a6b5f367e663f37f23a982bc894c46547cb38
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
croixbleueqc/scaffold-aiohttp
9a2a6b5f367e663f37f23a982bc894c46547cb38
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
croixbleueqc/scaffold-aiohttp
9a2a6b5f367e663f37f23a982bc894c46547cb38
[ "Apache-2.0" ]
2
2020-08-31T21:46:24.000Z
2020-09-14T15:35:28.000Z
'''Test service module ''' # Copyright 2019 mickybart # 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...
28.365385
74
0.68339
'''Test service module ''' # Copyright 2019 mickybart # 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...
324
0
53
1e83273ecf364408eace3b707d425196b5fff1d0
1,288
py
Python
api/sensors/file_based.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
api/sensors/file_based.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
api/sensors/file_based.py
rtaft/pi-sensor-dashboard
e7f711e8ecd9e4c32976583c32dbc716b165d56a
[ "MIT" ]
null
null
null
import re from sensors.sensor import Sensor, SensorSchema from marshmallow import fields
39.030303
153
0.684783
import re from sensors.sensor import Sensor, SensorSchema from marshmallow import fields class FileBasedSchema(SensorSchema): path = fields.String(required=True, allow_none=False, metadata=dict(fieldname="Path", notes="Path to sensor readings file.")) regexp = fields.String(required=False, allow_none=True, met...
554
452
192
cfa5e72c8ca54c153603f981fdc77d73ea340667
1,925
py
Python
pyrules/rules.py
petrilli/pyrules
c41e1a8b91a20bf28ba410ba9ffeb225b8092fd6
[ "BSD-3-Clause" ]
2
2017-06-29T15:44:41.000Z
2019-05-06T08:33:52.000Z
pyrules/rules.py
petrilli/pyrules
c41e1a8b91a20bf28ba410ba9ffeb225b8092fd6
[ "BSD-3-Clause" ]
353
2017-06-09T16:49:17.000Z
2022-03-28T05:20:17.000Z
pyrules/rules.py
petrilli/pyrules
c41e1a8b91a20bf28ba410ba9ffeb225b8092fd6
[ "BSD-3-Clause" ]
2
2017-06-29T15:50:32.000Z
2019-06-12T10:49:08.000Z
# -*- coding: utf-8 -*- """Rule definitions Rules are the core of the system. They express specifically what we want to happen as data is processed. The RuleEngine runs in a slightly modified version of the OPS5 model, but Rules generally follow. """ from weakref import proxy from .memory import WorkingMemory class...
30.555556
77
0.648312
# -*- coding: utf-8 -*- """Rule definitions Rules are the core of the system. They express specifically what we want to happen as data is processed. The RuleEngine runs in a slightly modified version of the OPS5 model, but Rules generally follow. """ from weakref import proxy from .memory import WorkingMemory class...
105
0
27
3f8b3e4e644ed01fa824b4b134762795a3a0b474
178
py
Python
pytgcalls/methods/handlers/__init__.py
fadhil-riyanto/radiovc
fe02a01ce10b93775fce8c569f6062d71b07b4d4
[ "MIT" ]
null
null
null
pytgcalls/methods/handlers/__init__.py
fadhil-riyanto/radiovc
fe02a01ce10b93775fce8c569f6062d71b07b4d4
[ "MIT" ]
null
null
null
pytgcalls/methods/handlers/__init__.py
fadhil-riyanto/radiovc
fe02a01ce10b93775fce8c569f6062d71b07b4d4
[ "MIT" ]
null
null
null
from .raw_update_handler import RawUpdateHandler from .stream_ended_handler import StreamEndedHandler
17.8
52
0.803371
from .raw_update_handler import RawUpdateHandler from .stream_ended_handler import StreamEndedHandler class Handlers( RawUpdateHandler, StreamEndedHandler, ): pass
0
52
23
587fc8edb1566ec27a5c9292ba3efe21924f3872
10,729
py
Python
trove/tests/unittests/cluster/test_mongodb_cluster.py
Tesora-Release/tesora-trove
042145a573ce08b5d7cb25e1491e391e777a20be
[ "Apache-2.0" ]
2
2016-08-27T01:59:08.000Z
2018-06-08T10:02:08.000Z
trove/tests/unittests/cluster/test_mongodb_cluster.py
Tesora-Release/tesora-trove
042145a573ce08b5d7cb25e1491e391e777a20be
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/cluster/test_mongodb_cluster.py
Tesora-Release/tesora-trove
042145a573ce08b5d7cb25e1491e391e777a20be
[ "Apache-2.0" ]
7
2016-04-06T19:03:03.000Z
2018-10-12T21:50:51.000Z
# Copyright 2015 Tesora Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
47.897321
79
0.58039
# Copyright 2015 Tesora Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
7,879
1,793
23
7ad67d50af53029ec19131031fcd586d4dc241f7
7,474
py
Python
apps/lib/helpers/maps/static_maps.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
9
2015-05-29T22:22:20.000Z
2022-02-01T20:39:00.000Z
apps/lib/helpers/maps/static_maps.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
143
2015-01-22T15:03:40.000Z
2020-06-27T01:55:29.000Z
apps/lib/helpers/maps/static_maps.py
LocalGround/localground
aa5a956afe7a84a7763a3b23d62a9fd925831cd7
[ "Apache-2.0" ]
5
2015-03-16T20:51:49.000Z
2017-02-07T20:48:49.000Z
#!/usr/bin/env python import os from os import path from django.conf import settings from django.conf import settings from django.http import HttpResponse from PIL import Image, ImageFilter, ImageDraw, ImageFont, ImageOps from localground.apps.lib.helpers.units import Units from django.contrib.gis.geos import Point, Li...
42.954023
189
0.628847
#!/usr/bin/env python import os from os import path from django.conf import settings from django.conf import settings from django.http import HttpResponse from PIL import Image, ImageFilter, ImageDraw, ImageFont, ImageOps from localground.apps.lib.helpers.units import Units from django.contrib.gis.geos import Point, Li...
5,665
0
192
e0cab193fbc66a2066d05e963caa0969c6b0d668
2,674
py
Python
instmakeplugins/report_duplicate.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
instmakeplugins/report_duplicate.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
instmakeplugins/report_duplicate.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2010 by Cisco Systems, Inc. """ Report duplicate actions: same action in same workding dir. """ import getopt import sys from instmakelib import instmake_log as LOG def make_key(dir, cmdline): """Make a single string, combining multiple fields.""" return dir + "|" + cmdline def report_duplica...
24.53211
64
0.579656
# Copyright (c) 2010 by Cisco Systems, Inc. """ Report duplicate actions: same action in same workding dir. """ import getopt import sys from instmakelib import instmake_log as LOG def make_key(dir, cmdline): """Make a single string, combining multiple fields.""" return dir + "|" + cmdline def report_duplica...
1,527
0
46
f9ef714bcde92626b66413da28a81f356320a8bd
429
py
Python
ThreadInGroup.py
nmondal/pyunitperf
cf0c041264aed596bd62f6b11c1c0e77a2a692ec
[ "Apache-2.0" ]
2
2015-07-01T06:22:54.000Z
2016-07-28T14:16:19.000Z
ThreadInGroup.py
nmondal/pyunitperf
cf0c041264aed596bd62f6b11c1c0e77a2a692ec
[ "Apache-2.0" ]
1
2015-07-14T11:39:59.000Z
2015-07-14T17:51:56.000Z
ThreadInGroup.py
nmondal/pyunitperf
cf0c041264aed596bd62f6b11c1c0e77a2a692ec
[ "Apache-2.0" ]
null
null
null
""" Port of jUnitPerf to Python ************************************** * Ported to Python by Grig Gheorghiu * ************************************** """ from threading import Thread
21.45
61
0.592075
""" Port of jUnitPerf to Python ************************************** * Ported to Python by Grig Gheorghiu * ************************************** """ from threading import Thread class ThreadInGroup(Thread): def __init__(self, group, target, name=None): Thread.__init__(self, group=None, target=target, name=...
162
7
71
a966b0427e04f99ab14c55e6626867a7eff41082
2,089
py
Python
chapters/src_folder_desc.py
joha2/FreeCAD_Mod_Dev_Guide
580bf175e76eaaffdc9632b405aa681461a74f5f
[ "CC0-1.0" ]
1
2021-09-13T07:20:17.000Z
2021-09-13T07:20:17.000Z
chapters/src_folder_desc.py
joha2/FreeCAD_Mod_Dev_Guide
580bf175e76eaaffdc9632b405aa681461a74f5f
[ "CC0-1.0" ]
null
null
null
chapters/src_folder_desc.py
joha2/FreeCAD_Mod_Dev_Guide
580bf175e76eaaffdc9632b405aa681461a74f5f
[ "CC0-1.0" ]
null
null
null
# initial based on FreeCAD 0.17dev #last edit: 2019-08 SourceFolder=[ ("Base","Foundamental classes for FreeCAD", """import as FreeCAD in Python, see detailed description in later section"""), ("App","nonGUI code: Document, Property and DocumentObject", """import as FreeCAD in Python, see detailed description in late...
56.459459
125
0.744375
# initial based on FreeCAD 0.17dev #last edit: 2019-08 SourceFolder=[ ("Base","Foundamental classes for FreeCAD", """import as FreeCAD in Python, see detailed description in later section"""), ("App","nonGUI code: Document, Property and DocumentObject", """import as FreeCAD in Python, see detailed description in late...
0
0
0
36d21c29ac212c1dffce9cdf32e2aebc6edc715a
1,514
py
Python
astron/client_messages.py
Astron/astron.libpython
d0dbb23c638d4caf17e3ec534a8fbcf5c4550b35
[ "BSD-3-Clause" ]
3
2015-04-21T20:24:42.000Z
2021-02-25T06:07:41.000Z
astron/client_messages.py
chandler14362/astron.libpython
d0dbb23c638d4caf17e3ec534a8fbcf5c4550b35
[ "BSD-3-Clause" ]
null
null
null
astron/client_messages.py
chandler14362/astron.libpython
d0dbb23c638d4caf17e3ec534a8fbcf5c4550b35
[ "BSD-3-Clause" ]
3
2015-12-09T06:59:10.000Z
2021-02-25T06:07:43.000Z
# This file defines messages used by the Astron "Client Protocol" # See https://astron.github.io/astron/en/master/10-client.html. CLIENT_HELLO = 1 # Sent to handshake the protocol CLIENT_HELLO_RESP = 2 # CLIENT_DISCONNECT = 3 # Sent when client is leaving. CLIENT_EJECT = 4 # Received when server is booting ...
60.56
132
0.771466
# This file defines messages used by the Astron "Client Protocol" # See https://astron.github.io/astron/en/master/10-client.html. CLIENT_HELLO = 1 # Sent to handshake the protocol CLIENT_HELLO_RESP = 2 # CLIENT_DISCONNECT = 3 # Sent when client is leaving. CLIENT_EJECT = 4 # Received when server is booting ...
0
0
0
a26ef7208288a79086a1424940debd0cc701ee2c
2,822
py
Python
swagat/views.py
AmanGiri007/helloaman
f1dd886c630a5276009b77159e0516a80148f65a
[ "MIT" ]
null
null
null
swagat/views.py
AmanGiri007/helloaman
f1dd886c630a5276009b77159e0516a80148f65a
[ "MIT" ]
1
2021-06-04T23:34:09.000Z
2021-06-04T23:34:09.000Z
swagat/views.py
AmanGiri007/helloaman
f1dd886c630a5276009b77159e0516a80148f65a
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.views.generic import View from .forms import LoginForm,RegisterForm from .models import List from django.views.decorators.csrf import csrf_exempt from django.contrib.auth import login,logout,authenticate from djang...
34.839506
83
0.661942
from django.shortcuts import render from django.http import HttpResponse,HttpResponseRedirect from django.views.generic import View from .forms import LoginForm,RegisterForm from .models import List from django.views.decorators.csrf import csrf_exempt from django.contrib.auth import login,logout,authenticate from djang...
2,123
7
285
644970bac1ded8ee6a8b2f7b8594f0d7e6f467a1
1,629
py
Python
python/PyQt5/18_color_test.py
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
1
2016-11-23T08:18:08.000Z
2016-11-23T08:18:08.000Z
python/PyQt5/18_color_test.py
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
null
null
null
python/PyQt5/18_color_test.py
nnaabbcc/exercise
255fd32b39473b3d0e7702d4b1a8a97bed2a68f8
[ "MIT" ]
1
2016-11-23T08:17:34.000Z
2016-11-23T08:17:34.000Z
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout from PyQt5.QtGui import QColor, QPainter from PyQt5.QtCore import Qt if __name__ == '__main__': import sys app = QApplication(sys.argv) w = MyWidget() w.show() sys.exit(app.exec_())
24.681818
70
0.5752
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout from PyQt5.QtGui import QColor, QPainter from PyQt5.QtCore import Qt class MyWidget(QWidget): def __init__(self): super(QWidget, self).__init__() self.title = 'PyQt5 Color example' self.left = 100 self.top = 100 ...
1,224
9
127
f3af6e3ca5e2efa450f4f97c979ac85d1bd720d9
1,857
py
Python
source/diagrams.py
jpconsuegra/compilers-uh
794a080a1b0c7fc4fb16ae21c4cc58940cf8ba92
[ "MIT" ]
null
null
null
source/diagrams.py
jpconsuegra/compilers-uh
794a080a1b0c7fc4fb16ae21c4cc58940cf8ba92
[ "MIT" ]
null
null
null
source/diagrams.py
jpconsuegra/compilers-uh
794a080a1b0c7fc4fb16ae21c4cc58940cf8ba92
[ "MIT" ]
1
2022-02-17T00:05:53.000Z
2022-02-17T00:05:53.000Z
# coding: utf8 import pydot from .base import Graph class Pipeline(Graph): """Represents a pipeline diagram. `nodes` is a dictionary of nodes `name` -> `shape`. `edges` is a list of edges, tuples of the form `(name, name, label)`. `**kwargs` is a list of args passed to `pydot` directly. >>> Pi...
29.015625
144
0.558966
# coding: utf8 import pydot from .base import Graph class Pipeline(Graph): """Represents a pipeline diagram. `nodes` is a dictionary of nodes `name` -> `shape`. `edges` is a list of edges, tuples of the form `(name, name, label)`. `**kwargs` is a list of args passed to `pydot` directly. >>> Pi...
1,223
-2
130
7c804d98ac5e1146099df41da1dabf4cf36b4024
1,368
py
Python
safe_transaction_service/tokens/migrations/0002_auto_20200903_1045.py
alvarof2/safe-transaction-service
61ee03ee2f712941c2b319d1cf2240c414a2177c
[ "MIT" ]
2
2021-09-14T06:41:28.000Z
2022-01-22T14:50:26.000Z
safe_transaction_service/tokens/migrations/0002_auto_20200903_1045.py
protofire/safe-transaction-service
5e84b9828f73e0419a2a8828b68e23eea7848895
[ "MIT" ]
8
2022-03-15T18:39:45.000Z
2022-03-28T01:28:13.000Z
safe_transaction_service/tokens/migrations/0002_auto_20200903_1045.py
protofire/safe-transaction-service
5e84b9828f73e0419a2a8828b68e23eea7848895
[ "MIT" ]
1
2022-03-29T12:19:51.000Z
2022-03-29T12:19:51.000Z
# Generated by Django 3.0.9 on 2020-09-03 10:45 from django.db import migrations, models from eth_abi.exceptions import DecodingError from web3.exceptions import BadFunctionCallOutput from gnosis.eth import EthereumClientProvider
30.4
89
0.653509
# Generated by Django 3.0.9 on 2020-09-03 10:45 from django.db import migrations, models from eth_abi.exceptions import DecodingError from web3.exceptions import BadFunctionCallOutput from gnosis.eth import EthereumClientProvider def fix_token_decimals(apps, schema_editor): Token = apps.get_model('tokens', 'To...
546
541
46
c2fbc9307c6275709a44b2c6e844cc3b822c648b
5,714
py
Python
Server/messaging.py
JohannaLatt/SHM-Server
7897032dc861748b8b9b7083c0ea1ac3d412ba3b
[ "MIT" ]
null
null
null
Server/messaging.py
JohannaLatt/SHM-Server
7897032dc861748b8b9b7083c0ea1ac3d412ba3b
[ "MIT" ]
null
null
null
Server/messaging.py
JohannaLatt/SHM-Server
7897032dc861748b8b9b7083c0ea1ac3d412ba3b
[ "MIT" ]
null
null
null
from Server.utils.enums import MSG_FROM_MIRROR_KEYS from Server.utils.enums import MSG_FROM_KINECT_KEYS from Server.utils.enums import MSG_TO_MIRROR_KEYS from amqpstorm import Connection import configparser import queue import json from datetime import datetime # The format in which messages are shared accross the ...
39.958042
159
0.641757
from Server.utils.enums import MSG_FROM_MIRROR_KEYS from Server.utils.enums import MSG_FROM_KINECT_KEYS from Server.utils.enums import MSG_TO_MIRROR_KEYS from amqpstorm import Connection import configparser import queue import json from datetime import datetime # The format in which messages are shared accross the ...
4,803
-1
368
00f8e4f2bdfd864ae4303122c09587f1578fa207
1,620
py
Python
src/sage/combinat/sf/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/combinat/sf/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/combinat/sf/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
r""" Symmetric Functions - :class:`Introduction to Symmetric Functions <sage.combinat.sf.sf.SymmetricFunctions>` - :ref:`sage.combinat.sf.sfa` - :ref:`sage.combinat.sf.sf` - :ref:`sage.combinat.sf.classical` - :ref:`sage.combinat.sf.schur` - :ref:`sage.combinat.sf.monomial` - :ref:`sage.combinat.sf.multiplicative` - ...
33.75
87
0.708642
r""" Symmetric Functions - :class:`Introduction to Symmetric Functions <sage.combinat.sf.sf.SymmetricFunctions>` - :ref:`sage.combinat.sf.sfa` - :ref:`sage.combinat.sf.sf` - :ref:`sage.combinat.sf.classical` - :ref:`sage.combinat.sf.schur` - :ref:`sage.combinat.sf.monomial` - :ref:`sage.combinat.sf.multiplicative` - ...
0
0
0
39fd2d645db243cd13398df68a6d2cc1597bf61a
17,188
py
Python
schedulesy/apps/ade_api/ade.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
1
2020-07-24T19:17:56.000Z
2020-07-24T19:17:56.000Z
schedulesy/apps/ade_api/ade.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
1
2020-07-09T10:23:28.000Z
2020-07-09T10:23:28.000Z
schedulesy/apps/ade_api/ade.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ ADE Web API Copyright (C) 2011-2015 "Sébastien Celles" <s.celles@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License...
30.260563
106
0.562195
#!/usr/bin/python """ ADE Web API Copyright (C) 2011-2015 "Sébastien Celles" <s.celles@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License...
6,012
94
592
e4b5fc17ee7dd19a5575bcd6f6c2ef85d216b54b
1,814
py
Python
Python/tdw/FBOutput/IdPassGrayscale.py
felixbinder/tdw
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
[ "BSD-2-Clause" ]
307
2020-05-20T18:08:49.000Z
2022-03-21T19:55:08.000Z
Python/tdw/FBOutput/IdPassGrayscale.py
felixbinder/tdw
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
[ "BSD-2-Clause" ]
92
2020-07-21T18:29:13.000Z
2022-03-28T07:25:54.000Z
Python/tdw/FBOutput/IdPassGrayscale.py
felixbinder/tdw
eb2b00b74b9fcf8ef2dcba1baa62424640c520b1
[ "BSD-2-Clause" ]
53
2020-07-14T15:55:17.000Z
2022-03-20T16:20:01.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers
38.595745
161
0.692944
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class IdPassGrayscale(object): __slots__ = ['_tab'] @classmethod def GetRootAsIdPassGrayscale(cls, buf, offset): n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoff...
1,261
291
141
abd3c1c642cdd4f7274c2a99340f96a535520f0a
313
py
Python
teaparty/__init__.py
idooo/teaparty
7e8affa8bd75c624adbe298bc47d33cb5d6a70fc
[ "MIT" ]
null
null
null
teaparty/__init__.py
idooo/teaparty
7e8affa8bd75c624adbe298bc47d33cb5d6a70fc
[ "MIT" ]
null
null
null
teaparty/__init__.py
idooo/teaparty
7e8affa8bd75c624adbe298bc47d33cb5d6a70fc
[ "MIT" ]
null
null
null
__version__ = 0.2 import sys if sys.argv[0] != 'setup.py': from ec2_helper import * from cloudwatch_helper import * from elb_helper import * from model import * from metric_queue import * from executor import * try: from sockets import * except Exception: pass
17.388889
35
0.638978
__version__ = 0.2 import sys if sys.argv[0] != 'setup.py': from ec2_helper import * from cloudwatch_helper import * from elb_helper import * from model import * from metric_queue import * from executor import * try: from sockets import * except Exception: pass
0
0
0
e91fe85ad2374a8380d00217d7a65b9aeb3ce719
1,518
py
Python
python/server.py
EasonGuo666/ComputerNetworkingExperiment
5202bc7704d7201778747855fa8ba02dbf079ec4
[ "BSD-2-Clause" ]
1
2021-11-02T12:38:15.000Z
2021-11-02T12:38:15.000Z
python/server.py
EasonGuo666/ComputerNetworkingExperiment
5202bc7704d7201778747855fa8ba02dbf079ec4
[ "BSD-2-Clause" ]
null
null
null
python/server.py
EasonGuo666/ComputerNetworkingExperiment
5202bc7704d7201778747855fa8ba02dbf079ec4
[ "BSD-2-Clause" ]
1
2020-03-26T13:00:19.000Z
2020-03-26T13:00:19.000Z
# -*- coding: utf-8 -*- """ Created on Mon Apr 22 09:45:25 2019 @author: Guo """ import socket import sys import os import numpy as np import math expected_frame = 0 ##创建 socket 对象 server_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_sock.bind(("127.0.0.1", 8888)) file_s...
20.513514
72
0.594862
# -*- coding: utf-8 -*- """ Created on Mon Apr 22 09:45:25 2019 @author: Guo """ import socket import sys import os import numpy as np import math expected_frame = 0 def get_crc_code(data_str,num,crc): for index in range(num): ch = ord(data_str[index]) crc = crc ^(ch << 8) ...
666
0
75
b8775c2f99f4a105ae35f1b04a919e64c987df0f
2,151
py
Python
youtube_dl/extractor/sbs.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
1
2015-02-19T13:13:47.000Z
2015-02-19T13:13:47.000Z
youtube_dl/extractor/sbs.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
2
2019-05-20T12:46:30.000Z
2020-11-07T12:50:32.000Z
youtube_dl/extractor/sbs.py
Logmytech/youtube-dl-QT
1497297719a95c4f70fbfa32e0fa4e38cdd475dc
[ "MIT" ]
5
2020-10-25T09:18:58.000Z
2021-05-23T22:57:55.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..utils import ( js_to_json, remove_end, )
35.85
218
0.607159
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..utils import ( js_to_json, remove_end, ) class SBSIE(InfoExtractor): IE_DESC = 'sbs.com.au' _VALID_URL = r'https?://(?:www\.)?sbs\.com\.au/ondemand/video/(?:single/)?(?P<id>[...
893
1,057
23
b9d80801b21c85d142f40b91f5fd5398d441df4b
9,784
py
Python
multi_scale.py
Abhi-Tiw1/Multi-scale-entropy-calculation
e49cf173ffbbcf9b5fb386c51328ecb2cf104fbe
[ "MIT" ]
null
null
null
multi_scale.py
Abhi-Tiw1/Multi-scale-entropy-calculation
e49cf173ffbbcf9b5fb386c51328ecb2cf104fbe
[ "MIT" ]
null
null
null
multi_scale.py
Abhi-Tiw1/Multi-scale-entropy-calculation
e49cf173ffbbcf9b5fb386c51328ecb2cf104fbe
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import rankdata import itertools from PyEMD import EMD import nolds """Complete package for calculating any kind of multiscale entropy features """ """Coarse graining methods - Normal - Moving average (X) - Volatility series (X) - Moving average volatility series (X) - EMD- Coarse...
24.582915
112
0.678148
import numpy as np from scipy.stats import rankdata import itertools from PyEMD import EMD import nolds """Complete package for calculating any kind of multiscale entropy features """ """Coarse graining methods - Normal - Moving average (X) - Volatility series (X) - Moving average volatility series (X) - EMD- Coarse...
929
0
47
224540103b242145e7a47d74c2b728191137f3c2
3,673
py
Python
SIFTS/SIFTSXMLMapModel.py
ajing/SIFTS.py
e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b
[ "MIT" ]
null
null
null
SIFTS/SIFTSXMLMapModel.py
ajing/SIFTS.py
e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b
[ "MIT" ]
1
2015-01-16T03:45:07.000Z
2015-01-16T03:47:36.000Z
SIFTS/SIFTSXMLMapModel.py
ajing/SIFTS.py
e6bfef6cd047fe90fba4cfa77b09c405ea3caa4b
[ "MIT" ]
null
null
null
''' Map PDBe residue to SIFTS residue ''' #PDBDIR = "pdbtest" #XMLDIR = "xmltest" PDBDIR = "pdb" #PDBDIR = "../ligandNet/2013_biounits" XMLDIR = "xml" PAIRFILE = "pair.txt" SAMPLESIZE = 3000
24.986395
69
0.587258
''' Map PDBe residue to SIFTS residue ''' #PDBDIR = "pdbtest" #XMLDIR = "xmltest" PDBDIR = "pdb" #PDBDIR = "../ligandNet/2013_biounits" XMLDIR = "xml" PAIRFILE = "pair.txt" SAMPLESIZE = 3000 class UniProtInfo: def __init__(self, accid, resname, resnum): self._accid = accid self._resname = res...
2,694
443
338
6f7a1570cfc7acb5c1cc296f05157d1eb9c37c9f
136
py
Python
models/__init__.py
merlinarer/scrl
f5bc426ed6eef130d44dd3a5609dc0772da59613
[ "Apache-2.0" ]
102
2021-03-25T08:54:12.000Z
2022-03-30T03:46:47.000Z
models/__init__.py
merlinarer/scrl
f5bc426ed6eef130d44dd3a5609dc0772da59613
[ "Apache-2.0" ]
10
2021-03-23T01:53:55.000Z
2021-07-30T08:51:19.000Z
models/__init__.py
merlinarer/scrl
f5bc426ed6eef130d44dd3a5609dc0772da59613
[ "Apache-2.0" ]
12
2021-04-15T06:02:32.000Z
2022-02-10T15:34:39.000Z
from .backbone import Backbone from .box_generator import SCRLBoxGenerator from .heads import SingleLayerLinearHead, TwoLayerLinearHead
34
60
0.875
from .backbone import Backbone from .box_generator import SCRLBoxGenerator from .heads import SingleLayerLinearHead, TwoLayerLinearHead
0
0
0
ce0491cae1a8c19b857b718b55d68460cb73405f
1,029
py
Python
data/test_font_files.py
tsutterley/tsutterley.github.io
5ea365aa34b46c8f0b471252e37e1a93bb126ff8
[ "MIT" ]
null
null
null
data/test_font_files.py
tsutterley/tsutterley.github.io
5ea365aa34b46c8f0b471252e37e1a93bb126ff8
[ "MIT" ]
null
null
null
data/test_font_files.py
tsutterley/tsutterley.github.io
5ea365aa34b46c8f0b471252e37e1a93bb126ff8
[ "MIT" ]
null
null
null
#!/usr/bin/env python u""" test_font_files.py """ import os import pytest import warnings import matplotlib.font_manager import matplotlib.pyplot as plt
38.111111
77
0.720117
#!/usr/bin/env python u""" test_font_files.py """ import os import pytest import warnings import matplotlib.font_manager import matplotlib.pyplot as plt def test_font_files(verbose=True): basedir = os.path.join(os.sep,'usr','share','fonts','truetype') fonts = ['HelveticaBoldOblique.ttf','HelveticaBold.ttf', ...
853
0
23