hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
c3591dd7e4fa04185bef35a749e2e0b73d499945
837
py
Python
pocs/tests/test_state_machine.py
zacharyt20/POCS
8f785eaf27178be7d72106cb82e5400a8b852ba8
[ "MIT" ]
1
2019-07-19T10:37:08.000Z
2019-07-19T10:37:08.000Z
pocs/tests/test_state_machine.py
zacharyt20/POCS
8f785eaf27178be7d72106cb82e5400a8b852ba8
[ "MIT" ]
null
null
null
pocs/tests/test_state_machine.py
zacharyt20/POCS
8f785eaf27178be7d72106cb82e5400a8b852ba8
[ "MIT" ]
null
null
null
import os import pytest import yaml from pocs.core import POCS from pocs.observatory import Observatory from pocs.utils import error @pytest.fixture def observatory(): observatory = Observatory(simulator=['all']) yield observatory def test_bad_state_machine_file(): with pytest.raises(error.InvalidConf...
22.026316
60
0.746714
0
0
90
0.107527
106
0.126643
0
0
18
0.021505
c3592d71715ada6f67b45406f9503a1122617882
7,033
py
Python
code/BacDup/scripts/gff_parser.py
JFsanchezherrero/TFM_UOC_AMoya
74d860d90240d96d800031ff449e21e09bad826c
[ "Unlicense" ]
2
2021-03-05T10:20:10.000Z
2021-12-21T10:50:21.000Z
code/BacDup/scripts/gff_parser.py
JFsanchezherrero/TFM_UOC_AMoya
74d860d90240d96d800031ff449e21e09bad826c
[ "Unlicense" ]
7
2021-03-03T14:27:50.000Z
2021-07-21T09:38:27.000Z
code/BacDup/scripts/gff_parser.py
JFsanchezherrero/TFM_UOC_AMoya
74d860d90240d96d800031ff449e21e09bad826c
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 ############################################################## ## Jose F. Sanchez & Alba Moya ## ## Copyright (C) 2020-2021 ## ############################################################## ''' Created on 28 oct. 2020 @author: alba Mo...
35.882653
173
0.515854
0
0
4,147
0.589649
0
0
0
0
2,486
0.353476
c359a6fbb849b989ceb5b8e12f21bfb4e4e866fd
1,729
py
Python
PAL/Cross/client/sources-linux/build_library_zip.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
2
2017-11-23T01:07:37.000Z
2021-06-25T05:03:49.000Z
PAL/Cross/client/sources-linux/build_library_zip.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
null
null
null
PAL/Cross/client/sources-linux/build_library_zip.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
1
2018-05-22T02:28:43.000Z
2018-05-22T02:28:43.000Z
import sys from distutils.core import setup import os from glob import glob import zipfile import shutil sys.path.insert(0, os.path.join('resources','library_patches')) sys.path.insert(0, os.path.join('..','..','pupy')) import pp import additional_imports import Crypto all_dependencies=set([x.split('.')[0] for x,m i...
36.020833
124
0.54251
0
0
0
0
0
0
0
0
229
0.132447
c35a27ffefb517296b644e56550ee85f278c4beb
4,742
py
Python
conans/test/functional/old/short_paths_test.py
Manu343726/conan
fe322a672307d29f99d2e7bc1c02c45c835028d7
[ "MIT" ]
null
null
null
conans/test/functional/old/short_paths_test.py
Manu343726/conan
fe322a672307d29f99d2e7bc1c02c45c835028d7
[ "MIT" ]
1
2020-04-18T10:13:37.000Z
2020-04-18T10:16:37.000Z
conans/test/functional/old/short_paths_test.py
alacasta/conan
643a9c84fe6dc0cb2f9fcbfc9dc5bd2e789c690e
[ "MIT" ]
1
2018-09-03T05:04:23.000Z
2018-09-03T05:04:23.000Z
import os import platform import unittest from conans.model.ref import ConanFileReference from conans.test.utils.tools import NO_SETTINGS_PACKAGE_ID, TestClient class ShortPathsTest(unittest.TestCase): @unittest.skipUnless(platform.system() == "Windows", "Requires Windows") def inconsistent_cache_test(self)...
41.234783
97
0.633066
4,577
0.965205
0
0
4,525
0.954239
0
0
2,215
0.467102
c35a9f8a6f746b1900b91c33a9b1be7d36fdde7f
4,086
py
Python
data_collection/json2mongodb.py
kwond2/hedgehogs
58dbed549a1e78e401fc90c7a7041d9979cfc2e4
[ "MIT" ]
9
2018-02-06T19:08:16.000Z
2022-03-15T13:31:57.000Z
data_collection/json2mongodb.py
kwond2/hedgehogs
58dbed549a1e78e401fc90c7a7041d9979cfc2e4
[ "MIT" ]
37
2018-02-09T21:22:58.000Z
2021-12-13T19:51:24.000Z
data_collection/json2mongodb.py
kwond2/hedgehogs
58dbed549a1e78e401fc90c7a7041d9979cfc2e4
[ "MIT" ]
10
2018-02-27T20:26:55.000Z
2021-02-06T02:26:30.000Z
#-*- coding: utf-8 -*- # import os # from optparse import OptionParser # from pymongo import MongoClient, bulk # import json # import collections # import sys from import_hedgehogs import * HOST = '45.55.48.43' PORT = 27017 DB = 'SEC_EDGAR' class OrderedDictWithKeyEscaping(collections.OrderedDict): def __setite...
41.272727
121
0.670338
506
0.123837
0
0
0
0
0
0
2,298
0.562408
c35c0c54bc5945e22f05841e1485001ae7177f54
2,984
py
Python
scripts/convert_to_singlehead.py
Lollipop321/mini-decoder-network
cfdaba579b45cba1d181585e5430178c1dc60049
[ "BSD-3-Clause" ]
1
2021-09-18T05:07:38.000Z
2021-09-18T05:07:38.000Z
scripts/convert_to_singlehead.py
Lollipop321/mini-decoder-network
cfdaba579b45cba1d181585e5430178c1dc60049
[ "BSD-3-Clause" ]
null
null
null
scripts/convert_to_singlehead.py
Lollipop321/mini-decoder-network
cfdaba579b45cba1d181585e5430178c1dc60049
[ "BSD-3-Clause" ]
1
2021-12-24T13:05:02.000Z
2021-12-24T13:05:02.000Z
import torch import math import time import struct import argparse import numpy as np from collections import OrderedDict if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-model', required=True, help="trained model prefix, also include dir, e.g. ../data/model-100") args =...
45.907692
146
0.560657
0
0
0
0
0
0
0
0
362
0.121314
c35c6a6a052a8839d6a0e36986573f0ad73f479f
3,719
py
Python
tests/integration/frameworks/test_detectron2_impl.py
francoisserra/BentoML
213e9e9b39e055286f2649c733907df88e6d2503
[ "Apache-2.0" ]
1
2021-06-12T17:04:07.000Z
2021-06-12T17:04:07.000Z
tests/integration/frameworks/test_detectron2_impl.py
francoisserra/BentoML
213e9e9b39e055286f2649c733907df88e6d2503
[ "Apache-2.0" ]
4
2021-05-16T08:06:25.000Z
2021-11-13T08:46:36.000Z
tests/integration/frameworks/test_detectron2_impl.py
francoisserra/BentoML
213e9e9b39e055286f2649c733907df88e6d2503
[ "Apache-2.0" ]
null
null
null
import typing as t from typing import TYPE_CHECKING import numpy as np import torch import pytest import imageio from detectron2 import model_zoo from detectron2.data import transforms as T from detectron2.config import get_cfg from detectron2.modeling import build_model import bentoml if TYPE_CHECKING: from det...
30.483607
85
0.705835
0
0
0
0
982
0.264049
0
0
565
0.151923
c35c97b552a6619198e65898ccb72250776063d5
1,867
py
Python
molecule/default/tests/test_default.py
escalate/ansible-influxdb-docker
bbb2c259bd1de3c4c40322103a05894494af7104
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
escalate/ansible-influxdb-docker
bbb2c259bd1de3c4c40322103a05894494af7104
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
escalate/ansible-influxdb-docker
bbb2c259bd1de3c4c40322103a05894494af7104
[ "MIT" ]
null
null
null
"""Role testing files using testinfra""" def test_config_directory(host): """Check config directory""" f = host.file("/etc/influxdb") assert f.is_directory assert f.user == "influxdb" assert f.group == "root" assert f.mode == 0o775 def test_data_directory(host): """Check data directory""...
28.287879
77
0.664167
0
0
0
0
0
0
0
0
806
0.431709
c35eb72d85ca1063b3957ca321301a14a1c4baba
3,847
py
Python
ZIP-v0.01/Serial_to_MQTT.py
JittoThomas/IOT
994fa25087d14e33c2d82b9c9d526f65823b6fa8
[ "MIT" ]
null
null
null
ZIP-v0.01/Serial_to_MQTT.py
JittoThomas/IOT
994fa25087d14e33c2d82b9c9d526f65823b6fa8
[ "MIT" ]
null
null
null
ZIP-v0.01/Serial_to_MQTT.py
JittoThomas/IOT
994fa25087d14e33c2d82b9c9d526f65823b6fa8
[ "MIT" ]
null
null
null
#!/usr/bin/env python import cayenne.client, datetime, time, serial # import random #Delay Start #print "Time now = ", datetime.datetime.now().strftime("%H-%M-%S") #time.sleep(60) #print "Starting now = ", datetime.datetime.now().strftime("%H-%M-%S") # Cayenne authentication info. This should be obtained from the Cay...
31.276423
114
0.641539
0
0
0
0
0
0
0
0
1,851
0.481154
c35efbe149c76dcc538b4f5467731ccd578e9db2
1,841
py
Python
test/test_slimta_queue_proxy.py
nanojob/python-slimta
70b9c633756a56afaf1fdd53c5ead6d0001036e7
[ "MIT" ]
141
2015-01-24T23:59:18.000Z
2022-01-30T16:36:37.000Z
test/test_slimta_queue_proxy.py
nanojob/python-slimta
70b9c633756a56afaf1fdd53c5ead6d0001036e7
[ "MIT" ]
106
2015-01-13T22:49:07.000Z
2021-02-17T15:14:11.000Z
test/test_slimta_queue_proxy.py
nanojob/python-slimta
70b9c633756a56afaf1fdd53c5ead6d0001036e7
[ "MIT" ]
43
2015-07-29T14:55:09.000Z
2021-09-24T22:30:38.000Z
import unittest from mox3.mox import MoxTestBase, IsA from slimta.queue.proxy import ProxyQueue from slimta.smtp.reply import Reply from slimta.relay import Relay, TransientRelayError, PermanentRelayError from slimta.envelope import Envelope class TestProxyQueue(MoxTestBase, unittest.TestCase): def setUp(self)...
29.693548
72
0.634438
1,556
0.845193
0
0
0
0
0
0
123
0.066812
c3601f9d19e300648c3ba875a58c68aa35eadc52
1,912
py
Python
tests/potential/EamPotential/Al__born_exp_fs/test____init__.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
tests/potential/EamPotential/Al__born_exp_fs/test____init__.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
tests/potential/EamPotential/Al__born_exp_fs/test____init__.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import pytest from pypospack.potential import EamPotential symbols = ['Al'] func_pair_name = "bornmayer" func_density_name = "eam_dens_exp" func_embedding_name = "fs" expected_parameter_names_pair_potential = [] expected_parameter_names_density_function = [] expected_parameter_names_embedding_function = [] expected_...
30.83871
72
0.684623
0
0
0
0
0
0
0
0
344
0.179916
c36035176be4720b8166b5477e11e4a52ab157d4
417
py
Python
backend/bin/main/enrichers/enricher.py
anjo-ba/PCAP-Analyzer
ccb13caba9c0c05a7643e63c57575b56ab1233cb
[ "MIT" ]
4
2019-03-29T08:45:36.000Z
2021-11-11T00:49:36.000Z
backend/bin/main/enrichers/enricher.py
anjo-ba/PCAP-Analyzer
ccb13caba9c0c05a7643e63c57575b56ab1233cb
[ "MIT" ]
9
2019-04-03T18:10:19.000Z
2020-08-16T12:13:34.000Z
backend/bin/main/enrichers/enricher.py
anjo-ba/PCAP-Analyzer
ccb13caba9c0c05a7643e63c57575b56ab1233cb
[ "MIT" ]
4
2019-05-09T15:33:23.000Z
2022-02-06T08:01:23.000Z
from typing import Dict from main.helpers.print_helper import PrintHelper class Enricher(object): def __init__(self, enricher_type: str, header: str) -> None: self.enricher_type = enricher_type self.header = header def get_information(self, packet: Dict[str, str], information_dict) -> None: ...
26.0625
80
0.70024
339
0.81295
0
0
0
0
0
0
0
0
c360b0127afead19c24d728369419544803b4819
2,191
py
Python
Modulo_5/proyecto/presentacion/form_ubicacion/formAUbicacion_designer.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/proyecto/presentacion/form_ubicacion/formAUbicacion_designer.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
null
null
null
Modulo_5/proyecto/presentacion/form_ubicacion/formAUbicacion_designer.py
AutodidactaMx/cocid_python
11628f465ff362807a692c79ede26bf30dd8e26a
[ "MIT" ]
1
2022-03-04T00:57:18.000Z
2022-03-04T00:57:18.000Z
import tkinter as tk import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from pandastable import Table import util.generic as utl class FormUbicacionDesigner(tk.Toplevel): def __init__(self): super().__init__() def initialize_component(self): ...
41.339623
137
0.645824
1,968
0.89781
0
0
0
0
0
0
102
0.046533
c362e5ae43a55d318ef4b490ee0fc9d950ff6b12
138
py
Python
injector/__init__.py
vnepomuceno/kafka-events-injector
66fb490b1a3d5f06737689005c639b1785a6bb37
[ "MIT" ]
null
null
null
injector/__init__.py
vnepomuceno/kafka-events-injector
66fb490b1a3d5f06737689005c639b1785a6bb37
[ "MIT" ]
null
null
null
injector/__init__.py
vnepomuceno/kafka-events-injector
66fb490b1a3d5f06737689005c639b1785a6bb37
[ "MIT" ]
null
null
null
import coloredlogs coloredlogs.install() custom_logger = logging.getLogger(name) coloredlogs.install(level="INFO", logger=custom_logger)
23
55
0.826087
0
0
0
0
0
0
0
0
6
0.043478
c3636918f6e548937ced74b698a4a4c3213be188
4,008
py
Python
setup.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
71
2018-12-13T20:31:18.000Z
2022-03-26T08:44:22.000Z
setup.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
78
2019-01-10T18:16:33.000Z
2022-03-18T19:30:49.000Z
setup.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
38
2018-10-10T19:02:26.000Z
2022-01-30T04:38:14.000Z
import os import versioneer from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() if os.getenv('DEB_BUILD') == 'true' or os.getenv('USER') == 'root': "/usr/share/doc/linuxcnc/examples/sample-configs/sim" # list of (destination, source_file) tuples ...
31.809524
87
0.611776
0
0
0
0
0
0
0
0
2,010
0.501497
c363cccc0f9ae4f989abcc27c186813cc42c4212
4,366
py
Python
hidparser/UsagePage.py
NZSmartie/PyHIDParser
a2758929c82a4316a665a779b9a391740103b318
[ "MIT" ]
22
2016-04-28T10:29:11.000Z
2022-02-02T17:30:08.000Z
hidparser/UsagePage.py
NZSmartie/PyHIDParser
a2758929c82a4316a665a779b9a391740103b318
[ "MIT" ]
12
2016-04-24T03:29:00.000Z
2018-11-26T22:34:37.000Z
hidparser/UsagePage.py
NZSmartie/PyHIDParser
a2758929c82a4316a665a779b9a391740103b318
[ "MIT" ]
5
2017-02-21T13:01:25.000Z
2021-10-04T07:13:53.000Z
from enum import Enum as _Enum class UsageType(_Enum): CONTROL_LINEAR = () CONTROL_ON_OFF = () CONTROL_MOMENTARY = () CONTROL_ONE_SHOT = () CONTROL_RE_TRIGGER = () DATA_SELECTOR = () DATA_STATIC_VALUE = () DATA_STATIC_FLAG = () DATA_DYNAMIC_VALUE = () DATA_DYNAMIC_FLAG = () ...
35.209677
136
0.633074
4,324
0.99038
0
0
1,875
0.429455
0
0
378
0.086578
c3645b451a58c6438e6127bf646d7ebd0d06fa74
1,505
py
Python
sandbox/lib/jumpscale/JumpscaleLibs/tools/legal_contracts/LegalDoc.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
2
2019-05-09T07:21:25.000Z
2019-08-05T06:37:53.000Z
sandbox/lib/jumpscale/JumpscaleLibs/tools/legal_contracts/LegalDoc.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
664
2018-12-19T12:43:44.000Z
2019-08-23T04:24:42.000Z
sandbox/lib/jumpscale/JumpscaleLibs/tools/legal_contracts/LegalDoc.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
7
2019-05-03T07:14:37.000Z
2019-08-05T12:36:52.000Z
from reportlab.lib.pagesizes import A4 from reportlab.lib.units import cm from reportlab.lib.styles import getSampleStyleSheet from reportlab.platypus import BaseDocTemplate, Frame, PageTemplate, Paragraph class LegalDoc: def __init__(self, path): self.path = path styles = getSampleStyleSheet() ...
35
108
0.639203
1,296
0.86113
0
0
0
0
0
0
180
0.119601
c3681201a4fff8ff597af63f6abe3f4d4fb7b0ce
5,627
py
Python
tests/outcome/test_outcome_models.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
6
2018-01-25T13:49:24.000Z
2020-03-07T16:25:09.000Z
tests/outcome/test_outcome_models.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
369
2018-01-17T15:22:18.000Z
2022-03-10T19:14:56.000Z
tests/outcome/test_outcome_models.py
ConnorBarnhill/kf-api-dataservice
547df467a307788882469a25c947a14965a26336
[ "Apache-2.0" ]
3
2018-04-11T14:18:37.000Z
2018-10-31T19:09:48.000Z
from datetime import datetime import uuid from sqlalchemy.exc import IntegrityError from dataservice.api.study.models import Study from dataservice.api.participant.models import Participant from dataservice.api.outcome.models import Outcome from dataservice.extensions import db from tests.utils import FlaskTestCase ...
30.252688
72
0.594633
5,305
0.942776
0
0
0
0
0
0
1,547
0.274924
c368cab3b6e074a25c4387726e3ddcf458b2da2f
384
py
Python
sapextractor/utils/fields_corresp/extract_dd03t.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
2
2021-02-10T08:09:35.000Z
2021-05-21T06:25:34.000Z
sapextractor/utils/fields_corresp/extract_dd03t.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
null
null
null
sapextractor/utils/fields_corresp/extract_dd03t.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
3
2021-11-22T13:27:00.000Z
2022-03-16T22:08:51.000Z
def apply(con, target_language="E"): dict_field_desc = {} try: df = con.prepare_and_execute_query("DD03T", ["DDLANGUAGE", "FIELDNAME", "DDTEXT"], " WHERE DDLANGUAGE = '"+target_language+"'") stream = df.to_dict("records") for el in stream: dict_field_desc[el["FIELDNAME"]] = e...
34.909091
135
0.611979
0
0
0
0
0
0
0
0
95
0.247396
c3693f12a03bbf78b7f7bcf22ea6cd2fd4184fd8
1,043
py
Python
app/forms/fields/month_year_date_field.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/forms/fields/month_year_date_field.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
app/forms/fields/month_year_date_field.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
import logging from werkzeug.utils import cached_property from wtforms import FormField, Form, StringField logger = logging.getLogger(__name__) def get_form_class(validators): class YearMonthDateForm(Form): year = StringField(validators=validators) month = StringField() @cached_property...
26.74359
68
0.607862
825
0.790988
0
0
305
0.292426
0
0
53
0.050815
c36a18741da6b1e9a7e803a47b014cff09f34cfc
310
py
Python
inf_classif_analysis/descriptive_analysis.py
Marco-Ametrano/myocardal_infarction_class
d2fb9d4d6643d0b836ffdb94a32911eb4d68c390
[ "MIT" ]
null
null
null
inf_classif_analysis/descriptive_analysis.py
Marco-Ametrano/myocardal_infarction_class
d2fb9d4d6643d0b836ffdb94a32911eb4d68c390
[ "MIT" ]
null
null
null
inf_classif_analysis/descriptive_analysis.py
Marco-Ametrano/myocardal_infarction_class
d2fb9d4d6643d0b836ffdb94a32911eb4d68c390
[ "MIT" ]
null
null
null
#AFTER PREPROCESSING AND TARGETS DEFINITION newdataset.describe() LET_IS.value_counts() LET_IS.value_counts().plot(kind='bar', color='c') Y_unica.value_counts() Y_unica.value_counts().plot(kind='bar', color='c') ZSN.value_counts().plot(kind='bar', color='c') Survive.value_counts().plot(kind='bar', color='c')
34.444444
50
0.748387
0
0
0
0
0
0
0
0
75
0.241935
c36a8c07a26ce0690e0700b966816f0b550bb368
1,568
py
Python
src/service/eda_service.py
LiuYuWei/service-data-eda-analysis
7dcbf205a0a3715cf3d199356bd1814b8d47b52d
[ "Apache-2.0" ]
null
null
null
src/service/eda_service.py
LiuYuWei/service-data-eda-analysis
7dcbf205a0a3715cf3d199356bd1814b8d47b52d
[ "Apache-2.0" ]
null
null
null
src/service/eda_service.py
LiuYuWei/service-data-eda-analysis
7dcbf205a0a3715cf3d199356bd1814b8d47b52d
[ "Apache-2.0" ]
null
null
null
"""Confusion matrix calculation service.""" # coding=utf-8 # import relation package. from pandas_profiling import ProfileReport import pandas as pd import datetime import json # import project package. from config.config_setting import ConfigSetting class EdaService: """Confusion matrix calculation service.""" ...
32.666667
88
0.655612
1,313
0.837372
0
0
0
0
0
0
394
0.251276
c36b30969b08b61066b6a7a3898735992cd717ad
1,385
py
Python
google/cloud/bigquery_v2/types/__init__.py
KoffieLabs/python-bigquery
33b317abdc6d69f33722cb0504bb0b78c1c80e30
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery_v2/types/__init__.py
KoffieLabs/python-bigquery
33b317abdc6d69f33722cb0504bb0b78c1c80e30
[ "Apache-2.0" ]
null
null
null
google/cloud/bigquery_v2/types/__init__.py
KoffieLabs/python-bigquery
33b317abdc6d69f33722cb0504bb0b78c1c80e30
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
25.181818
74
0.724188
0
0
0
0
0
0
0
0
828
0.597834
c36b323dde6e6584446ed2e96c3983eea6ffe2a3
4,365
py
Python
blurr/core/store.py
ddrightnow/blurr
a8745101d4a8a85ccf1efc608dba8486d3cebb49
[ "Apache-2.0" ]
null
null
null
blurr/core/store.py
ddrightnow/blurr
a8745101d4a8a85ccf1efc608dba8486d3cebb49
[ "Apache-2.0" ]
7
2019-12-16T20:58:29.000Z
2022-02-09T23:57:32.000Z
blurr/core/store.py
ddrightnow/blurr
a8745101d4a8a85ccf1efc608dba8486d3cebb49
[ "Apache-2.0" ]
null
null
null
from abc import abstractmethod, ABC from datetime import datetime, timezone from typing import Any, List, Tuple, Dict from blurr.core.base import BaseSchema from blurr.core.store_key import Key, KeyType class StoreSchema(BaseSchema): pass class Store(ABC): """ Base Store that allows for data to be persiste...
33.837209
100
0.595647
4,155
0.95189
0
0
2,317
0.530813
0
0
1,437
0.32921
c36b874a06452316ba72dfbbdea4c8d952355b51
1,411
py
Python
seamless/core/cache/tempref.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
seamless/core/cache/tempref.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
seamless/core/cache/tempref.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
import time, copy import asyncio class TempRefManager: def __init__(self): self.refs = [] self.running = False def add_ref(self, ref, lifetime, on_shutdown): expiry_time = time.time() + lifetime self.refs.append((ref, expiry_time, on_shutdown)) def purge_all(self): ...
26.12963
57
0.546421
1,191
0.844082
0
0
0
0
324
0.229624
127
0.090007
c36b9227e1e39aa4000c6b92c3dbf8f27a5ea7f5
8,775
py
Python
lib/python27/Lib/site-packages/wx-2.8-msw-ansi/wx/tools/Editra/src/eclib/choicedlg.py
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
27
2020-11-12T19:24:54.000Z
2022-03-27T23:10:45.000Z
lib/python27/Lib/site-packages/wx-2.8-msw-ansi/wx/tools/Editra/src/eclib/choicedlg.py
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
2
2020-11-02T06:30:39.000Z
2022-02-23T18:39:55.000Z
lib/python27/Lib/site-packages/wx-2.8-msw-ansi/wx/tools/Editra/src/eclib/choicedlg.py
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
3
2021-08-16T00:21:08.000Z
2022-02-23T19:19:36.000Z
############################################################################### # Name: choicedlg.py # # Purpose: Generic Choice Dialog # # Author: Cody Precord <cprecord@editra.org> # ...
30.574913
79
0.509972
7,412
0.844672
0
0
0
0
0
0
2,998
0.341652
c36ce52f1b69aad8e3b2676523c1755292c1c03c
29,068
py
Python
src/flower/proto/transport_pb2.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
null
null
null
src/flower/proto/transport_pb2.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
null
null
null
src/flower/proto/transport_pb2.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
1
2020-06-01T11:06:18.000Z
2020-06-01T11:06:18.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: flower/proto/transport.proto from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection a...
39.494565
2,507
0.762901
0
0
0
0
0
0
0
0
7,963
0.273944
c36ddd7acdde8453a1b9743b8e731fb3b4051614
80
py
Python
shopyo/__init__.py
rehmanis/shopyo2
3e26602149f09aa4c13a1b4b6fba296bd82af99f
[ "MIT" ]
2
2021-04-17T09:59:48.000Z
2021-04-17T10:12:02.000Z
shopyo/__init__.py
rehmanis/shopyo2
3e26602149f09aa4c13a1b4b6fba296bd82af99f
[ "MIT" ]
15
2021-04-01T19:54:46.000Z
2021-04-07T22:25:40.000Z
shopyo/__init__.py
rehmanis/shopyo2
3e26602149f09aa4c13a1b4b6fba296bd82af99f
[ "MIT" ]
null
null
null
version_info = (4, 0, 1) __version__ = ".".join([str(v) for v in version_info])
26.666667
54
0.65
0
0
0
0
0
0
0
0
3
0.0375
c36e4faa6f3051be3ca85cd0b16d04294152aa32
3,748
py
Python
check_digit_calc.py
zhoffm/Check-Digit-Calculator
5f86304901279678c74858811a452866785bd8f4
[ "MIT" ]
1
2019-08-29T13:07:08.000Z
2019-08-29T13:07:08.000Z
check_digit_calc.py
zhoffm/Check-Digit-Calculator
5f86304901279678c74858811a452866785bd8f4
[ "MIT" ]
null
null
null
check_digit_calc.py
zhoffm/Check-Digit-Calculator
5f86304901279678c74858811a452866785bd8f4
[ "MIT" ]
null
null
null
from random import randint import pandas as pd def random_11_digit_upc(): upc_string = ''.join(["%s" % randint(0, 9) for num in range(0, 11)]) print(upc_string) return upc_string # Class to calculate the check digit for 11 digit UPC's class CheckDigitCalculations: def __init__(self): self.i...
32.591304
109
0.627535
3,355
0.894667
0
0
0
0
0
0
583
0.155467
c36ea7dbd20120b593de7ef575a4b4b1a54e3de9
4,976
py
Python
test/test_load.py
ramsdalesteve/forest
12cac1b3dd93c4475a8a4f696c522576b44f16eb
[ "BSD-3-Clause" ]
null
null
null
test/test_load.py
ramsdalesteve/forest
12cac1b3dd93c4475a8a4f696c522576b44f16eb
[ "BSD-3-Clause" ]
null
null
null
test/test_load.py
ramsdalesteve/forest
12cac1b3dd93c4475a8a4f696c522576b44f16eb
[ "BSD-3-Clause" ]
null
null
null
import yaml import forest from forest import main def test_earth_networks_loader_given_pattern(): loader = forest.Loader.from_pattern("Label", "EarthNetworks*.txt", "earth_networks") assert isinstance(loader, forest.earth_networks.Loader) def test_build_loader_given_files(): """replicate main.py as clos...
32.103226
88
0.696744
0
0
0
0
0
0
0
0
840
0.16881
c3700515c9a1fa4d06df6da6a4d88cc145398124
481
py
Python
tournaments/binarySearch/binarySearch.py
gurfinkel/codeSignal
114817947ac6311bd53a48f0f0e17c0614bf7911
[ "MIT" ]
5
2020-02-06T09:51:22.000Z
2021-03-19T00:18:44.000Z
tournaments/binarySearch/binarySearch.py
gurfinkel/codeSignal
114817947ac6311bd53a48f0f0e17c0614bf7911
[ "MIT" ]
null
null
null
tournaments/binarySearch/binarySearch.py
gurfinkel/codeSignal
114817947ac6311bd53a48f0f0e17c0614bf7911
[ "MIT" ]
3
2019-09-27T13:06:21.000Z
2021-04-20T23:13:17.000Z
def binarySearch(inputArray, searchElement): minIndex = -1 maxIndex = len(inputArray) while minIndex < maxIndex - 1: currentIndex = (minIndex + maxIndex) // 2 currentElement = inputArray[currentIndex] if currentElement < searchElement: minIndex = currentIndex ...
26.722222
76
0.634096
0
0
0
0
0
0
0
0
0
0
c3704e5ac8ab23d0d2914d6aa73d29d45471acf6
4,309
py
Python
swagger_server/models/rule.py
Capping-WAR/API
981823732f2b4f8bc007da657d5195579eb7dad3
[ "MIT" ]
null
null
null
swagger_server/models/rule.py
Capping-WAR/API
981823732f2b4f8bc007da657d5195579eb7dad3
[ "MIT" ]
2
2019-09-24T23:45:34.000Z
2019-10-11T20:06:54.000Z
swagger_server/models/rule.py
Capping-WAR/API
981823732f2b4f8bc007da657d5195579eb7dad3
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class Rule(Model): """NOTE: This class is auto generated by the swagger code g...
27.44586
120
0.589464
4,070
0.944535
0
0
2,816
0.653516
0
0
2,522
0.585287
c371765c42e0c448d7d486fc65c3f350acc4e5ed
864
py
Python
Project1/mazes/gen_sparses.py
VFerrari/MC906
b04d3df58ef56203882fc59c03874f92c0d223fe
[ "MIT" ]
null
null
null
Project1/mazes/gen_sparses.py
VFerrari/MC906
b04d3df58ef56203882fc59c03874f92c0d223fe
[ "MIT" ]
null
null
null
Project1/mazes/gen_sparses.py
VFerrari/MC906
b04d3df58ef56203882fc59c03874f92c0d223fe
[ "MIT" ]
null
null
null
import os import re import numpy as np # WARNING: this function overrides the mazes in sparse directory; don't run it # as the idea is that everyone test the same mazes def gen_sparses(dir_path): ''' Randomly remove points from dense instances ''' pattern = re.compile('^([0-9]+[a-zA-Z]+)') denses_fn = [x for x...
34.56
102
0.605324
0
0
0
0
0
0
0
0
249
0.288194
c3718e6eac42b785991cffcfe402fff63a2a5da0
1,592
py
Python
cryomem/cmtools/lib/jjivarray2.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
1
2018-09-16T12:29:04.000Z
2018-09-16T12:29:04.000Z
cryomem/cmtools/lib/jjivarray2.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
null
null
null
cryomem/cmtools/lib/jjivarray2.py
bebaek/cryomem
088fba2568d10451adda51a068c15c8c2a73d9ce
[ "MIT" ]
null
null
null
""" Analyze JJ IV curve array (core) v.2 BB, 2016 """ import numpy as np from . import jjiv2 as jjiv import sys def fit2rsj_arr(iarr, varr, **kwargs): """Fit IV array to 2 Ic RSJ model and return arrays of fit params, error. Keyword arguments: guess: array of (Ic+, Ic-, Rn, Vo) io: fixed Io. upd...
28.945455
78
0.478643
0
0
0
0
0
0
0
0
427
0.268216
c372b444a020f4105b4dff97edb032deea88f217
567
py
Python
python/0122.py
garywei944/LeetCode
77453b6e3329f3309ad61fe578cb7b608317ba1b
[ "MIT" ]
null
null
null
python/0122.py
garywei944/LeetCode
77453b6e3329f3309ad61fe578cb7b608317ba1b
[ "MIT" ]
null
null
null
python/0122.py
garywei944/LeetCode
77453b6e3329f3309ad61fe578cb7b608317ba1b
[ "MIT" ]
null
null
null
from leetcode_tester import Tester from typing import Optional, List class Solution: def maxProfit(self, prices: List[int]) -> int: r = 0 for i in range(1, len(prices)): if prices[i] > prices[i - 1]: r += prices[i] - prices[i - 1] return r if __name__ == '__m...
19.551724
50
0.511464
226
0.398589
0
0
0
0
0
0
10
0.017637
c37355b23d392a1bb9299b5a5621376e2bdb4e8e
1,406
py
Python
dataset.py
songrotek/wechat_jump_end_to_end_train
119e8a172bf31b70da1004c88567c41d3183711a
[ "MIT" ]
26
2018-01-10T12:23:54.000Z
2018-02-24T06:31:34.000Z
dataset.py
floodsung/wechat_jump_end_to_end_train
119e8a172bf31b70da1004c88567c41d3183711a
[ "MIT" ]
3
2018-06-20T17:28:31.000Z
2018-07-03T13:35:36.000Z
dataset.py
songrotek/wechat_jump_end_to_end_train
119e8a172bf31b70da1004c88567c41d3183711a
[ "MIT" ]
10
2018-01-11T12:42:42.000Z
2018-03-12T04:51:35.000Z
import torch import json import os from torch.utils.data import DataLoader,Dataset import torchvision.transforms as transforms from PIL import Image import numpy as np data_folder = "./dataset/images" press_times = json.load(open("./dataset/dataset.json")) image_roots = [os.path.join(data_folder,image_file) \ ...
30.565217
103
0.687767
720
0.512091
0
0
0
0
0
0
92
0.065434
c373e158e091fc846ebe00cd19f68260787532ea
921
py
Python
grafana_backup/create_snapshot.py
Keimille/grafana-backup-tool
ea824c908c0b98ff934cfe3efdf90121b6edd49d
[ "MIT" ]
515
2016-06-16T20:01:30.000Z
2022-03-29T03:03:24.000Z
grafana_backup/create_snapshot.py
Keimille/grafana-backup-tool
ea824c908c0b98ff934cfe3efdf90121b6edd49d
[ "MIT" ]
159
2016-12-06T03:06:58.000Z
2022-03-17T16:10:40.000Z
grafana_backup/create_snapshot.py
Keimille/grafana-backup-tool
ea824c908c0b98ff934cfe3efdf90121b6edd49d
[ "MIT" ]
195
2016-07-19T06:00:13.000Z
2022-03-09T05:58:32.000Z
import json from grafana_backup.dashboardApi import create_snapshot def main(args, settings, file_path): grafana_url = settings.get('GRAFANA_URL') http_post_headers = settings.get('HTTP_POST_HEADERS') verify_ssl = settings.get('VERIFY_SSL') client_cert = settings.get('CLIENT_CERT') debug = setting...
35.423077
125
0.674267
0
0
0
0
0
0
0
0
219
0.237785
c37733d1ef97d9bfcb5fc78d09053dd294d1f132
1,928
py
Python
examples/keras_ssd_example.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
38
2019-06-10T04:19:42.000Z
2022-02-15T05:21:23.000Z
examples/keras_ssd_example.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
4
2019-07-30T19:00:23.000Z
2019-09-26T01:35:05.000Z
examples/keras_ssd_example.py
jiayunhan/perceptron-benchmark
39958a15e9f8bfa82938a3f81d4f216457744b22
[ "Apache-2.0" ]
10
2019-06-10T05:45:33.000Z
2021-04-22T08:33:28.000Z
""" Test case for Keras """ from perceptron.zoo.ssd_300.keras_ssd300 import SSD300 from perceptron.models.detection.keras_ssd300 import KerasSSD300Model from perceptron.utils.image import load_image from perceptron.benchmarks.brightness import BrightnessMetric from perceptron.utils.criteria.detection import Targ...
41.021277
145
0.669087
0
0
0
0
0
0
0
0
612
0.317427
c377c853596a16e597f271a0e7e5269f859cd807
224
py
Python
math/470.ImplementRand10UsingRand7.py
bzd111/leetcode
fd8db9ef52000cd4373f00a8f60d131caa5fe25d
[ "Apache-2.0" ]
null
null
null
math/470.ImplementRand10UsingRand7.py
bzd111/leetcode
fd8db9ef52000cd4373f00a8f60d131caa5fe25d
[ "Apache-2.0" ]
null
null
null
math/470.ImplementRand10UsingRand7.py
bzd111/leetcode
fd8db9ef52000cd4373f00a8f60d131caa5fe25d
[ "Apache-2.0" ]
null
null
null
import sys def rand7() -> int: ... class Solution: def rand10(self) -> int: index = sys.maxsize while index > 40: index = 7 * (rand7() - 1) + rand7() - 1 return index % 10 + 1
16
51
0.482143
180
0.803571
0
0
0
0
0
0
0
0
c37854af006991db33cfa5319fe951302a09dbf2
164
py
Python
segmentation/data/transforms/__init__.py
RajasekharChowdary9/panoptic-deeplab
7645bc1cf51e3ebc85153666f26f8630a407b52b
[ "Apache-2.0" ]
506
2020-06-12T01:07:56.000Z
2022-03-26T00:56:52.000Z
segmentation/data/transforms/__init__.py
RajasekharChowdary9/panoptic-deeplab
7645bc1cf51e3ebc85153666f26f8630a407b52b
[ "Apache-2.0" ]
85
2020-06-12T04:51:31.000Z
2022-03-23T16:19:44.000Z
segmentation/data/transforms/__init__.py
RajasekharChowdary9/panoptic-deeplab
7645bc1cf51e3ebc85153666f26f8630a407b52b
[ "Apache-2.0" ]
102
2020-06-12T06:45:44.000Z
2022-03-22T14:03:04.000Z
from .build import build_transforms from .pre_augmentation_transforms import Resize from .target_transforms import PanopticTargetGenerator, SemanticTargetGenerator
41
79
0.896341
0
0
0
0
0
0
0
0
0
0
c379116efb10da15e4d433c54d3c5da28ac9b233
46,937
py
Python
plasmapy/diagnostics/proton_radiography.py
MarikinPaulina/PlasmaPy
9a9e4200981618fdfba4bd9347180b6cbe3040d7
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/diagnostics/proton_radiography.py
MarikinPaulina/PlasmaPy
9a9e4200981618fdfba4bd9347180b6cbe3040d7
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/diagnostics/proton_radiography.py
MarikinPaulina/PlasmaPy
9a9e4200981618fdfba4bd9347180b6cbe3040d7
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Routines for the analysis of proton radiographs. These routines can be broadly classified as either creating synthetic radiographs from prescribed fields or methods of 'inverting' experimentally created radiographs to reconstruct the original fields (under some set of assumptions). """ __all__ = [ "SyntheticPr...
38.919569
90
0.582994
44,786
0.954173
0
0
7,697
0.163986
0
0
26,555
0.565758
c37a40407f09301be18f33044c4803950764471c
924
py
Python
polyengine/switch_start.py
AkanshDivker/polyengine
f81e1ef68d92470b51888db1d0c693b6d8c6b45f
[ "MIT" ]
5
2020-04-11T23:56:13.000Z
2021-05-22T09:09:36.000Z
polyengine/switch_start.py
AkanshDivker/polyengine
f81e1ef68d92470b51888db1d0c693b6d8c6b45f
[ "MIT" ]
4
2019-10-29T07:17:36.000Z
2019-11-27T05:36:01.000Z
polyengine/switch_start.py
AkanshDivker/polyengine
f81e1ef68d92470b51888db1d0c693b6d8c6b45f
[ "MIT" ]
2
2020-10-29T14:03:09.000Z
2021-01-01T07:53:16.000Z
# switch_start.py # Adding another switch statement # Authors : Seoyeon Hwang import string import random class Switch_Start: def __init__(self, str): self.string = str def insert_switch(self, str): #generate random variable _LENGTH = 11 string_pool = string.asci...
30.8
165
0.548701
809
0.875541
0
0
0
0
0
0
228
0.246753
c37d3cf95d24a23185d3d7d87e99934db95b537d
5,494
py
Python
focal_mech/demo/test6.py
blasscoc/FocalMechClassifier
8d54d5a19cea447c030ada596369e47e7f39d483
[ "MIT" ]
12
2016-05-31T04:18:13.000Z
2021-10-09T06:45:43.000Z
focal_mech/demo/test6.py
blasscoc/FocalMechClassifier
8d54d5a19cea447c030ada596369e47e7f39d483
[ "MIT" ]
2
2019-08-09T20:30:26.000Z
2021-02-09T02:14:04.000Z
focal_mech/demo/test6.py
blasscoc/FocalMechClassifier
8d54d5a19cea447c030ada596369e47e7f39d483
[ "MIT" ]
7
2016-08-06T03:13:24.000Z
2021-09-26T14:39:41.000Z
from numpy import array, rad2deg, pi, mgrid, argmin from matplotlib.pylab import contour import matplotlib.pyplot as plt import mplstereonet from obspy.imaging.beachball import aux_plane from focal_mech.lib.classify_mechanism import classify, translate_to_sphharm from focal_mech.io.read_hash import read_demo, read_h...
26.669903
76
0.67874
0
0
0
0
0
0
0
0
302
0.054969
c37d8d6e64bf2027aa73ad7627b83cab9c6c0c89
3,102
py
Python
gigantumcli/changelog.py
fossabot/gigantum-cli
d8054a8741484592ef1da750dd23affadc99fb5f
[ "MIT" ]
null
null
null
gigantumcli/changelog.py
fossabot/gigantum-cli
d8054a8741484592ef1da750dd23affadc99fb5f
[ "MIT" ]
null
null
null
gigantumcli/changelog.py
fossabot/gigantum-cli
d8054a8741484592ef1da750dd23affadc99fb5f
[ "MIT" ]
null
null
null
# Copyright (c) 2017 FlashX, LLC # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distrib...
33.717391
94
0.627982
1,980
0.638298
0
0
0
0
0
0
1,970
0.635074
c37ed9ece51e833849523b39409da272c30bdafb
7,311
py
Python
main_old/understanding_smoothing_microsoft.py
benjaminleroy/smooth_rf
de166a7e777e8a203656b194d772def9d3c8f06d
[ "MIT" ]
3
2019-04-04T04:57:36.000Z
2022-01-14T09:42:05.000Z
main_old/understanding_smoothing_microsoft.py
benjaminleroy/smooth_rf
de166a7e777e8a203656b194d772def9d3c8f06d
[ "MIT" ]
1
2019-04-04T04:57:24.000Z
2019-05-29T18:03:31.000Z
main_old/understanding_smoothing_microsoft.py
benjaminleroy/smooth_rf
de166a7e777e8a203656b194d772def9d3c8f06d
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import sklearn.ensemble import sklearn.metrics import sklearn import progressbar import sklearn.model_selection from plotnine import * import pdb import sys sys.path.append("smooth_rf/") import smooth_base import smooth_level # function def aver...
34.004651
91
0.56285
0
0
0
0
0
0
0
0
1,881
0.257284
c37ef55b28f73e2f2453409e73faf8e176864615
1,147
py
Python
AER/Experiments/Metrics.py
LeBenchmark/Interspeech2021
2a3b424389631b317b39973291b7252bbf44a73b
[ "MIT" ]
48
2021-03-25T14:00:04.000Z
2022-03-27T17:00:00.000Z
AER/Experiments/Metrics.py
LeBenchmark/Interspeech2021
2a3b424389631b317b39973291b7252bbf44a73b
[ "MIT" ]
2
2021-04-16T13:21:44.000Z
2021-06-16T15:23:09.000Z
AER/Experiments/Metrics.py
LeBenchmark/Interspeech2021
2a3b424389631b317b39973291b7252bbf44a73b
[ "MIT" ]
2
2021-07-05T13:42:23.000Z
2021-09-01T10:24:00.000Z
import numpy as np def CCC(y_true, y_pred): """ Calculate the CCC for two numpy arrays. """ x = y_true y = y_pred xMean = x.mean() yMean = y.mean() xyCov = (x * y).mean() - (xMean * yMean) # xyCov = ((x-xMean) * (y-yMean)).mean() xVar = x.var() yVar = y.var() return 2 * ...
23.408163
59
0.529207
0
0
0
0
0
0
0
0
301
0.262424
c37f533b46624d83873bcd5b9e4314c8ccb4405c
11,734
py
Python
myo/device_listener.py
ehliang/myo-unlock
059e130a90e44df3869dd892e216c020d6d97a7e
[ "MIT" ]
1
2021-06-25T02:27:31.000Z
2021-06-25T02:27:31.000Z
myo/device_listener.py
ehliang/myo-unlock
059e130a90e44df3869dd892e216c020d6d97a7e
[ "MIT" ]
null
null
null
myo/device_listener.py
ehliang/myo-unlock
059e130a90e44df3869dd892e216c020d6d97a7e
[ "MIT" ]
null
null
null
# Copyright (c) 2015 Niklas Rosenstein # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, ...
32.325069
82
0.587183
10,397
0.886058
0
0
1,599
0.136271
0
0
3,793
0.323249
c3806b9e128d8474be2a0c8c16ed645a6cd61414
333
py
Python
utilities/poisson.py
lukepinkel/pylmm
b9e896222f077b000f9a752be77cfc9e60b49f19
[ "MIT" ]
null
null
null
utilities/poisson.py
lukepinkel/pylmm
b9e896222f077b000f9a752be77cfc9e60b49f19
[ "MIT" ]
null
null
null
utilities/poisson.py
lukepinkel/pylmm
b9e896222f077b000f9a752be77cfc9e60b49f19
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 12 13:34:49 2020 @author: lukepinkel """ import numpy as np import scipy as sp import scipy.special def poisson_logp(x, mu, logp=True): p = sp.special.xlogy(x, mu) - sp.special.gammaln(x + 1) - mu if logp==False: p = np.exp(p) ...
19.588235
65
0.618619
0
0
0
0
0
0
0
0
109
0.327327
c382207d4a3aa645831dc8af78380466763f0458
581
py
Python
iotest.py
AaltoRSE/ImageNetTools
1ed8b8c38bd14eb47fc6167bf194f327a2696bf1
[ "BSD-3-Clause" ]
1
2021-11-15T11:21:55.000Z
2021-11-15T11:21:55.000Z
iotest.py
AaltoRSE/ImageNetTools
1ed8b8c38bd14eb47fc6167bf194f327a2696bf1
[ "BSD-3-Clause" ]
null
null
null
iotest.py
AaltoRSE/ImageNetTools
1ed8b8c38bd14eb47fc6167bf194f327a2696bf1
[ "BSD-3-Clause" ]
null
null
null
''' Created on Sep 29, 2021 @author: thomas ''' import ImageNetTools import sys import getopt def main(argv): try: opts, args = getopt.getopt(argv,"hd:",["dataset="]) except getopt.GetoptError: printHelp() sys.exit(2) for opt, arg in opts: if opt in...
22.346154
59
0.555938
0
0
0
0
0
0
0
0
159
0.273666
c3825a98b9b5079c534d11d77f64da2d82f8a541
1,775
py
Python
sagas/tests/sinkers/test_results_render.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/tests/sinkers/test_results_render.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/tests/sinkers/test_results_render.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
""" $ pytest -s -v test_results_render.py """ import logging import pytest from sagas.nlu.results_render import ResultsRender def test_descriptor(): import sagas.nlu.results_render sagas.nlu.results_render.logger.setLevel(logging.DEBUG) # $ str 'Rezervasyonumu onaylamak istiyorum.' results = [{'deli...
36.979167
90
0.450704
0
0
0
0
0
0
0
0
771
0.434366
c382afee49a8dcf277085e3abd2845bbc944eef7
5,838
py
Python
equatation.py
asteinig4018/mhacks19
64b5ba211f38f3b30927bf926073b777fb23a46f
[ "MIT" ]
1
2019-10-12T21:30:15.000Z
2019-10-12T21:30:15.000Z
equatation.py
asteinig4018/mhacks19
64b5ba211f38f3b30927bf926073b777fb23a46f
[ "MIT" ]
null
null
null
equatation.py
asteinig4018/mhacks19
64b5ba211f38f3b30927bf926073b777fb23a46f
[ "MIT" ]
null
null
null
import json import math from HistoricalTweetDataFetcher import getHistoricalData joelsarray = getHistoricalData(0) arrs = [] arrm = [] arrp = [] arrsTotal = 0 arrmTotal = 0 ncount = 0 ccount = 0 lcount = 0 time = joelsarray[0]["h"] for dictionary in joelsarray: arrs.append(dictionary["s"]) arrm...
39.714286
198
0.604488
0
0
0
0
0
0
0
0
1,860
0.318602
5ed9ef5b5cccf956209757de81563a4bc4e12b59
43,492
py
Python
oscar/apps/offer/models.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/offer/models.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/offer/models.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
1
2019-07-10T06:32:14.000Z
2019-07-10T06:32:14.000Z
from decimal import Decimal as D, ROUND_DOWN, ROUND_UP import math import datetime from django.core import exceptions from django.template.defaultfilters import slugify from django.db import models from django.utils.translation import ungettext, ugettext as _ from django.utils.importlib import import_module from djang...
38.150877
117
0.616849
42,237
0.971144
0
0
165
0.003794
0
0
11,622
0.267222
5eda690b685cc647a25421c21d7eb3efc87731a9
3,288
py
Python
htk-lite/commandlist/help.py
otherbeast/hackers-tool-kit
12991889db1f6843dde82e7da4b4cdfb50740da5
[ "Apache-2.0" ]
393
2019-01-21T05:52:54.000Z
2022-03-29T06:07:04.000Z
htk-lite/commandlist/help.py
urantialife/hackers-tool-kit
34dbabf3e94825684fd1a684f522d3dc3565eb2d
[ "Apache-2.0" ]
19
2019-02-22T00:49:28.000Z
2021-12-30T20:28:59.000Z
htk-lite/commandlist/help.py
urantialife/hackers-tool-kit
34dbabf3e94825684fd1a684f522d3dc3565eb2d
[ "Apache-2.0" ]
138
2019-03-15T23:22:19.000Z
2022-03-20T17:19:09.000Z
#!/usr/local/bin/python # coding: latin-1 #if you use this code give me credit @tuf_unkn0wn #i do not give you permission to show / edit this script without my credit #to ask questions or report a problem message me on instagram @tuf_unkn0wn """ ██░ ██ ▄▄▄ ▄████▄ ██ ▄█▀▓█████ ▓█████▄ ▓██░ ██▒▒████▄ ▒██▀...
46.971429
102
0.253041
0
0
0
0
0
0
0
0
4,412
0.919933
5edd1d618589e67fdc13ac60dffe9edc5736896c
2,980
py
Python
scripts/core/soldier.py
whackashoe/entwinement
4acff2147b86e08e267fc50c327917a338c7bf36
[ "Unlicense" ]
1
2020-03-10T10:52:13.000Z
2020-03-10T10:52:13.000Z
scripts/core/soldier.py
whackashoe/entwinement
4acff2147b86e08e267fc50c327917a338c7bf36
[ "Unlicense" ]
null
null
null
scripts/core/soldier.py
whackashoe/entwinement
4acff2147b86e08e267fc50c327917a338c7bf36
[ "Unlicense" ]
null
null
null
d_soldiers = [] class Soldier: def __init__(self, id, name, team): self.id = id self.name = name self.team = team self.x = 0 self.y = 0 self.xVelo = 0 self.yVelo = 0 self.kills = 0 self.deaths = 0 self.alive = 'true' self.driving = 'false' self.gun = 0 self.ammo = 0 self.reloading = 'fa...
18.742138
74
0.617785
2,133
0.715772
0
0
0
0
0
0
219
0.07349
5eddcc0044e85262897bbd20777730764bb0e4ac
785
py
Python
dzTraficoBackend/dzTrafico/BusinessLayer/Statistics/DataVisualizationController.py
DZAymen/dz-Trafico
74ff9caf9e3845d8af977c46b04a2d3421a0661b
[ "MIT" ]
null
null
null
dzTraficoBackend/dzTrafico/BusinessLayer/Statistics/DataVisualizationController.py
DZAymen/dz-Trafico
74ff9caf9e3845d8af977c46b04a2d3421a0661b
[ "MIT" ]
null
null
null
dzTraficoBackend/dzTrafico/BusinessLayer/Statistics/DataVisualizationController.py
DZAymen/dz-Trafico
74ff9caf9e3845d8af977c46b04a2d3421a0661b
[ "MIT" ]
null
null
null
from dzTrafico.BusinessEntities.Simulation import Simulation import lxml.etree as etree class DataVisualizationController(object): def __init__(self, simulation): # Initialize necessary file paths self.simulation = simulation def get_emissions_results(self): pass def get_travel_t...
23.787879
67
0.680255
693
0.882803
0
0
0
0
0
0
33
0.042038
5edde40f3283ddaa109a18bcb421a16c3e99b304
7,343
py
Python
bunkai/algorithm/lbd/custom_tokenizers.py
megagonlabs/bunkai
28ea1c891f6ee8f96269f41a0642cd6194dd04e9
[ "Apache-2.0" ]
149
2021-04-21T06:25:21.000Z
2022-03-29T08:57:49.000Z
bunkai/algorithm/lbd/custom_tokenizers.py
megagonlabs/bunkai
28ea1c891f6ee8f96269f41a0642cd6194dd04e9
[ "Apache-2.0" ]
41
2021-05-11T00:46:16.000Z
2022-03-22T05:17:47.000Z
bunkai/algorithm/lbd/custom_tokenizers.py
megagonlabs/bunkai
28ea1c891f6ee8f96269f41a0642cd6194dd04e9
[ "Apache-2.0" ]
5
2021-04-21T10:54:46.000Z
2022-02-25T17:41:21.000Z
#!/usr/bin/env python3 import collections import logging import os import typing import unicodedata from janome.tokenizer import Tokenizer from transformers.file_utils import cached_path from transformers.models.bert.tokenization_bert import BertTokenizer, WordpieceTokenizer, load_vocab import bunkai.constant """ T...
36.715
116
0.626719
6,567
0.894321
0
0
0
0
0
0
2,678
0.364701
5edecbbe347219a2740ccd3534f648ace677fd24
10,232
py
Python
tests/exchanges_tests.py
tomwalton78/Crypto-Exchange-API-Aggregator
c5b1756eac46274cdbe5c4e49db62450a35b70a6
[ "MIT" ]
null
null
null
tests/exchanges_tests.py
tomwalton78/Crypto-Exchange-API-Aggregator
c5b1756eac46274cdbe5c4e49db62450a35b70a6
[ "MIT" ]
null
null
null
tests/exchanges_tests.py
tomwalton78/Crypto-Exchange-API-Aggregator
c5b1756eac46274cdbe5c4e49db62450a35b70a6
[ "MIT" ]
1
2019-11-16T07:31:00.000Z
2019-11-16T07:31:00.000Z
import unittest from datetime import datetime import os import sys from api.exchanges.exchange import ExchangeAPICallFailedException from api.exchanges.gdax_exchange import GdaxExchange from api.exchanges.kraken_exchange import KrakenExchange from api.exchanges.bitstamp_exchange import BitstampExchange from api.exchan...
30.094118
79
0.583268
9,792
0.956998
0
0
0
0
0
0
2,171
0.212177
5edf354d82c1df0367e44041106c0bf97648bea1
1,342
py
Python
stats/clustering.py
KNSI-Golem/assets-generation
e366b96e0f2bba16c90816e2690b3b89fd50e514
[ "MIT" ]
null
null
null
stats/clustering.py
KNSI-Golem/assets-generation
e366b96e0f2bba16c90816e2690b3b89fd50e514
[ "MIT" ]
33
2019-12-02T18:56:18.000Z
2022-02-10T01:18:01.000Z
stats/clustering.py
KNSI-Golem/assets-generation
e366b96e0f2bba16c90816e2690b3b89fd50e514
[ "MIT" ]
2
2020-09-11T13:11:59.000Z
2021-02-16T17:08:33.000Z
from sklearn.cluster import KMeans import image_processing import numpy as np import some_analysis from sklearn.manifold import TSNE import matplotlib.pyplot as plt from autoencoder import ConvAutoencoder input_path = './bin' output_shape = (32, 48) processing_output = './processed/results_processing' data = image_pro...
28.553191
83
0.69076
0
0
0
0
0
0
0
0
304
0.226528
5edf63e904c948abd2995cb1fd09ff2f09a7f87a
572
py
Python
CursoEmVideo/Aula22/ex109/ex109.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
CursoEmVideo/Aula22/ex109/ex109.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
CursoEmVideo/Aula22/ex109/ex109.py
lucashsouza/Desafios-Python
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
[ "MIT" ]
null
null
null
""" Modifique as funções que foram criadas no desafio 107 para que elas aceitem um parametro a mais, informando se o valor retornado por elas vai ser ou não formatado pela função moeda(), desenvolvida no desafio 108. """ from Aula22.ex109 import moeda from Aula22.ex109.titulo import titulo preco = float(input("Preço...
28.6
59
0.737762
0
0
0
0
0
0
0
0
442
0.760757
5ee0230190b385a1bf8afa9cd7f0b235b7db13a2
4,787
py
Python
mocu/graphical_model/mocu/scripts/visualizetoysystem.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/graphical_model/mocu/scripts/visualizetoysystem.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/graphical_model/mocu/scripts/visualizetoysystem.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
from mocu.utils.toysystems import * import matplotlib.pyplot as plt import matplotlib.cm as cm def make_rhs_full_system(a,b,k,c,lam,psi,theta): def rhs_full_system(y,t): C = c(a,b,k,y[0],psi,theta) y1_dot = lam[0] * (y[0] - 1) y2_dot = lam[1] * (y[1] - C) * (y[1] - a) * (y[1] - b)...
29.012121
113
0.524546
0
0
0
0
0
0
0
0
455
0.095049
5ee24f1707c0b95700a49b8f88fefee14ccd1a6c
9,053
py
Python
sbm/stochastic_block_model.py
pmacg/pysbm
e2f6ceeb4fff903b53a4d3c05694411026a084c3
[ "MIT" ]
1
2021-09-17T12:37:34.000Z
2021-09-17T12:37:34.000Z
sbm/stochastic_block_model.py
pmacg/pysbm
e2f6ceeb4fff903b53a4d3c05694411026a084c3
[ "MIT" ]
null
null
null
sbm/stochastic_block_model.py
pmacg/pysbm
e2f6ceeb4fff903b53a4d3c05694411026a084c3
[ "MIT" ]
null
null
null
""" Several methods for generating graphs from the stochastic block model. """ import itertools import math import random import scipy.sparse import numpy as np def _get_num_pos_edges(c1_size, c2_size, same_cluster, self_loops, directed): """ Compute the number of possible edges between two clusters. :pa...
44.377451
120
0.68353
0
0
3,000
0.331382
0
0
0
0
5,850
0.646195
5ee2508b1563859bc37a102d678ee13eb3c4fb40
3,496
py
Python
py_include/__init__.py
mauro-balades/py-include
d2d3b90fc840a550a49d76798bc8a97b076480d8
[ "MIT" ]
2
2022-01-30T13:23:22.000Z
2022-01-31T10:23:46.000Z
py_include/__init__.py
mauro-balades/py-include
d2d3b90fc840a550a49d76798bc8a97b076480d8
[ "MIT" ]
null
null
null
py_include/__init__.py
mauro-balades/py-include
d2d3b90fc840a550a49d76798bc8a97b076480d8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ | --------------------- Py include <Mauro Baladés> --------------------- | ___ _ _ _ __ _ _ ___ ____ | | |_) \ \_/ | | | |\ | / /` | | | | | | | \ | |_ | |_| |_| |_| |_| \| \_\_, |_|__ \_\_/ |_|_/ |_|__ | -----------------------------------------...
33.295238
80
0.65246
0
0
0
0
0
0
0
0
2,952
0.843911
5ee3400a48d58dbe03ad61379d1f85e22cd4df99
7,201
py
Python
src/scripts/load_data.py
murphycj/agfusionweb-react
9305aa3caa653fa74608d1ae3dd59c03a3df6294
[ "MIT" ]
1
2019-12-11T22:22:02.000Z
2019-12-11T22:22:02.000Z
src/scripts/load_data.py
murphycj/agfusionweb-react
9305aa3caa653fa74608d1ae3dd59c03a3df6294
[ "MIT" ]
15
2020-03-25T02:21:18.000Z
2022-03-27T20:05:01.000Z
src/scripts/load_data.py
murphycj/agfusionweb-react
9305aa3caa653fa74608d1ae3dd59c03a3df6294
[ "MIT" ]
null
null
null
import pyensembl import sys import sqlite3 import boto3 import pickle dynamodb = boto3.resource('dynamodb') table_agfusion_gene_synonyms = dynamodb.Table('agfusion_gene_synonyms') table_agfusion_genes = dynamodb.Table('agfusion_genes') table_agfusion_sequences = dynamodb.Table('agfusion_sequences') def add_synonym(da...
34.956311
150
0.550618
0
0
0
0
0
0
0
0
1,687
0.234273
5ee4affc10253568c59d31e6e7ecff29108ae1b0
10,118
py
Python
google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/dataflow/io/multifiles_source.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/dataflow/io/multifiles_source.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/third_party/cloud_ml_engine_sdk/dataflow/io/multifiles_source.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache Lice...
37.062271
80
0.720202
8,012
0.791856
952
0.09409
0
0
0
0
4,392
0.434078
5ee51c2ffdafe95ae165b98a996207a8a39f4653
10,830
py
Python
eureka/S5_lightcurve_fitting/s5_fit.py
evamariaa/Eureka
a3e739a528fbe85ec588bca996188765649b7778
[ "MIT" ]
15
2020-08-07T12:12:17.000Z
2022-03-29T10:20:38.000Z
eureka/S5_lightcurve_fitting/s5_fit.py
evamariaa/Eureka
a3e739a528fbe85ec588bca996188765649b7778
[ "MIT" ]
159
2020-08-05T14:34:59.000Z
2022-03-31T21:02:10.000Z
eureka/S5_lightcurve_fitting/s5_fit.py
evamariaa/Eureka
a3e739a528fbe85ec588bca996188765649b7778
[ "MIT" ]
17
2021-06-16T09:40:41.000Z
2022-03-22T18:28:07.000Z
import numpy as np import matplotlib.pyplot as plt import glob, os, time from ..lib import manageevent as me from ..lib import readECF as rd from ..lib import sort_nicely as sn from ..lib import util, logedit from . import parameters as p from . import lightcurve as lc from . import models as m from .utils import get_t...
44.204082
158
0.568421
105
0.009695
0
0
0
0
0
0
4,099
0.378486
5ee68ea9e8a99cf09e7e6d0ca6ce334ef983ef7f
4,724
py
Python
model_compression_toolkit/common/graph/graph_matchers.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
model_compression_toolkit/common/graph/graph_matchers.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
model_compression_toolkit/common/graph/graph_matchers.py
eladc-git/model_optimization
46d1c893ca23e61d8ef7597184ad2ba6e2ae6e7a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Sony Semiconductors Israel, 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 b...
31.704698
108
0.650296
3,816
0.80779
0
0
0
0
0
0
3,059
0.647544
5ee6b363eabe25c724e148a500f83b42a84aa031
3,022
py
Python
initialize_app_db.py
daniel-julio-iglesias/microblog
360198198336f0dda7d20aafeb337f59cb4a2329
[ "MIT" ]
null
null
null
initialize_app_db.py
daniel-julio-iglesias/microblog
360198198336f0dda7d20aafeb337f59cb4a2329
[ "MIT" ]
null
null
null
initialize_app_db.py
daniel-julio-iglesias/microblog
360198198336f0dda7d20aafeb337f59cb4a2329
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ The next steps use just in case to recreate the already existing DB Backup and Delete the folder "migrations" Backup and Delete the file "app.db" Execute the next console commands Linux (venv) $ export FLASK_APP=microblog.py MS Windows (venv) $ set FLASK_APP=microblo...
26.982143
67
0.648246
0
0
0
0
0
0
0
0
1,175
0.388815
5ee6e99348be1e75186fd4d95f9769f455fc8a1a
4,328
py
Python
gpytorch/kernels/rbf_kernel.py
techshot25/gpytorch
b4aee6f81a3428172d4914e7e0fef0e71cd1f519
[ "MIT" ]
1
2019-11-08T11:25:56.000Z
2019-11-08T11:25:56.000Z
gpytorch/kernels/rbf_kernel.py
VonRosenchild/gpytorch
092d523027a844939ba85d7ea8c8c7b7511843d5
[ "MIT" ]
null
null
null
gpytorch/kernels/rbf_kernel.py
VonRosenchild/gpytorch
092d523027a844939ba85d7ea8c8c7b7511843d5
[ "MIT" ]
1
2021-07-02T19:40:07.000Z
2021-07-02T19:40:07.000Z
#!/usr/bin/env python3 from .kernel import Kernel from ..functions import RBFCovariance def postprocess_rbf(dist_mat): return dist_mat.div_(-2).exp_() class RBFKernel(Kernel): r""" Computes a covariance matrix based on the RBF (squared exponential) kernel between inputs :math:`\mathbf{x_1}` and :ma...
47.56044
115
0.575092
4,167
0.9628
0
0
0
0
0
0
2,946
0.680684
5ee75d983cd35cd4e28ec87b90865e27b89bfd3b
5,132
py
Python
src/dependenpy/finder.py
gitter-badger/dependenpy
db411b7bbd466b79064cbb419049f17cd3bff4c1
[ "ISC" ]
10
2020-01-08T10:42:32.000Z
2021-07-08T01:58:08.000Z
src/dependenpy/finder.py
gitter-badger/dependenpy
db411b7bbd466b79064cbb419049f17cd3bff4c1
[ "ISC" ]
2
2020-10-07T09:48:54.000Z
2020-11-03T23:37:13.000Z
src/dependenpy/finder.py
gitter-badger/dependenpy
db411b7bbd466b79064cbb419049f17cd3bff4c1
[ "ISC" ]
1
2019-12-10T18:32:05.000Z
2019-12-10T18:32:05.000Z
# -*- coding: utf-8 -*- """dependenpy finder module.""" from importlib.util import find_spec from os.path import basename, exists, isdir, isfile, join, splitext class PackageSpec(object): """Holder for a package specification (given as argument to DSM).""" def __init__(self, name, path, limit_to=None): ...
28.353591
79
0.563718
4,954
0.965316
0
0
675
0.131528
0
0
2,386
0.464926
5ee8d965db0dc6afc3a0712b8a012c62228c1b2d
1,738
py
Python
pearsonr/beta.py
rkhullar/pearsonr-pure-python
955fbca6af0a234cf5132d5f83d36a2c411fec7a
[ "MIT" ]
null
null
null
pearsonr/beta.py
rkhullar/pearsonr-pure-python
955fbca6af0a234cf5132d5f83d36a2c411fec7a
[ "MIT" ]
null
null
null
pearsonr/beta.py
rkhullar/pearsonr-pure-python
955fbca6af0a234cf5132d5f83d36a2c411fec7a
[ "MIT" ]
null
null
null
import math def contfractbeta(a: float, b: float, x: float, itmax: int = 200) -> float: # https://malishoaib.wordpress.com/2014/04/15/the-beautiful-beta-functions-in-raw-python/ # evaluates the continued fraction form of the incomplete Beta function; incompbeta() # code translated from: Numerical Recipes ...
34.76
108
0.533947
0
0
0
0
0
0
0
0
563
0.323936
5eeb434867ca1d9eaca8effbf5839d14aaa33835
33,018
py
Python
hisim/components/generic_pv_system.py
FZJ-IEK3-VSA/HiSim
e9b3a69c6db331523b9ed5ac7aa6f57f9b4798b2
[ "MIT" ]
12
2021-10-05T11:38:24.000Z
2022-03-25T09:56:08.000Z
hisim/components/generic_pv_system.py
FZJ-IEK3-VSA/HiSim
e9b3a69c6db331523b9ed5ac7aa6f57f9b4798b2
[ "MIT" ]
6
2021-10-06T13:27:55.000Z
2022-03-10T12:55:15.000Z
hisim/components/generic_pv_system.py
FZJ-IEK3-VSA/HiSim
e9b3a69c6db331523b9ed5ac7aa6f57f9b4798b2
[ "MIT" ]
4
2022-02-21T19:00:50.000Z
2022-03-22T11:01:38.000Z
# Generic/Built-in import datetime import math import os import numpy as np import matplotlib.pyplot as plt import pandas as pd import pvlib from dataclasses_json import dataclass_json from typing import Optional from dataclasses import dataclass from functools import lru_cache from hisim.simulationparameters import S...
45.168263
183
0.594009
23,586
0.714294
0
0
7,306
0.22126
0
0
11,054
0.334767
5eeb79ff59fe8c898948a4d629f95025dddf840d
1,843
py
Python
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/hrp_plugin/greenflow_hrp_plugin/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
""" //////////////////////////////////////////////////////////////////////////// // // Copyright (C) NVIDIA Corporation. All rights reserved. // // NVIDIA Sample Code // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your...
42.860465
78
0.72382
0
0
0
0
0
0
0
0
905
0.491047
5eecada079f1111eeed67c73ca6a1720da167194
1,541
py
Python
pythran/tests/rosetta/greatest_subsequential_sum.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/tests/rosetta/greatest_subsequential_sum.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/tests/rosetta/greatest_subsequential_sum.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
#from http://rosettacode.org/wiki/Greatest_subsequential_sum#Python #pythran export maxsum(int list) #pythran export maxsumseq(int list) #pythran export maxsumit(int list) #runas maxsum([0, 1, 0]) #runas maxsumseq([-1, 2, -1, 3, -1]) #runas maxsumit([-1, 1, 2, -5, -6]) def maxsum(sequence): """Return maximum sum."...
31.44898
96
0.580792
0
0
0
0
0
0
0
0
430
0.27904
5eed202c73e618fc929047ee896a35003f968654
28,280
py
Python
src/binwalk/__init__.py
dotysan/binwalk
d3b5d73538557f2a290996dcea84352fcfb6d1a1
[ "MIT" ]
1
2020-03-04T15:14:40.000Z
2020-03-04T15:14:40.000Z
src/binwalk/__init__.py
dotysan/binwalk
d3b5d73538557f2a290996dcea84352fcfb6d1a1
[ "MIT" ]
null
null
null
src/binwalk/__init__.py
dotysan/binwalk
d3b5d73538557f2a290996dcea84352fcfb6d1a1
[ "MIT" ]
null
null
null
__all__ = ["Binwalk"] import os import re import time import magic from binwalk.compat import * from binwalk.config import * from binwalk.update import * from binwalk.filter import * from binwalk.parser import * from binwalk.plugins import * from binwalk.plotter import * from binwalk.hexdiff import * from binwalk.entr...
37.858099
232
0.701627
27,740
0.980905
0
0
0
0
0
0
15,582
0.55099
5eed38c8799a8f20aa9075adc117edac9f20f714
149
py
Python
dodo.py
Ublimjo/nwt
08b04c376a3792fd4663de2f229617ddabc3d032
[ "MIT" ]
1
2018-08-24T09:01:09.000Z
2018-08-24T09:01:09.000Z
dodo.py
Ublimjo/nwt
08b04c376a3792fd4663de2f229617ddabc3d032
[ "MIT" ]
null
null
null
dodo.py
Ublimjo/nwt
08b04c376a3792fd4663de2f229617ddabc3d032
[ "MIT" ]
null
null
null
def task_clean_junk(): """Remove junk file""" return { 'actions': ['rm -rdf $(find . | grep pycache)'], 'clean': True, }
21.285714
56
0.496644
0
0
0
0
0
0
0
0
72
0.483221
5eeebe655d0529cd4e57b3684dd0b12853503ba1
442
py
Python
greedy_algorithms/6_maximum_salary/largest_number.py
Desaiakshata/Algorithms-problems
90f4e40ba05e4bdfc783614bb70b9156b05eec0b
[ "MIT" ]
null
null
null
greedy_algorithms/6_maximum_salary/largest_number.py
Desaiakshata/Algorithms-problems
90f4e40ba05e4bdfc783614bb70b9156b05eec0b
[ "MIT" ]
null
null
null
greedy_algorithms/6_maximum_salary/largest_number.py
Desaiakshata/Algorithms-problems
90f4e40ba05e4bdfc783614bb70b9156b05eec0b
[ "MIT" ]
null
null
null
#Uses python3 import sys def largest_number(a): #write your code here res = "" while len(a)!=0: maxa = a[0] for x in a: if int(str(x)+str(maxa))>int(str(maxa)+str(x)): maxa = x res += str(maxa) a.remove(str(maxa)) return res if __name__ == '...
19.217391
59
0.506787
0
0
0
0
0
0
0
0
74
0.167421
5eefaff8065c5ecea5f5a36834a9168d04d5bd4e
2,403
py
Python
screenblankmgr.py
nsw42/pijuui
fee9b96ceaab6b4f5db7ea41cb86da9a1a3b9eac
[ "BSD-2-Clause" ]
1
2021-12-20T15:02:54.000Z
2021-12-20T15:02:54.000Z
screenblankmgr.py
nsw42/pijuui
fee9b96ceaab6b4f5db7ea41cb86da9a1a3b9eac
[ "BSD-2-Clause" ]
null
null
null
screenblankmgr.py
nsw42/pijuui
fee9b96ceaab6b4f5db7ea41cb86da9a1a3b9eac
[ "BSD-2-Clause" ]
null
null
null
import logging import subprocess class PlayingState: Inactive = 0 Active = 1 class ProfileBase: def __init__(self): raise NotImplementedError() def on_start_playing(self): raise NotImplementedError() def on_stop_playing(self): raise NotImplementedError() def on_pla...
22.669811
94
0.615481
2,204
0.917187
0
0
0
0
0
0
126
0.052434
5ef0d5fcfc264e4c868fb459e7c8ec1ae720744a
6,136
py
Python
warmmail/subscribe/tasks_send.py
sahilsakhuja/warmmail
8a1f80d26c7a24c9aa054d869266cebd4540d7f2
[ "MIT" ]
null
null
null
warmmail/subscribe/tasks_send.py
sahilsakhuja/warmmail
8a1f80d26c7a24c9aa054d869266cebd4540d7f2
[ "MIT" ]
null
null
null
warmmail/subscribe/tasks_send.py
sahilsakhuja/warmmail
8a1f80d26c7a24c9aa054d869266cebd4540d7f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import urllib.parse from datetime import date, datetime from functools import partial from urllib.parse import quote_plus import pandas as pd import plotly.express as px import pytz from csci_utils.luigi.requires import Requirement, Requires from csci_utils.luigi.target import Target...
32.638298
116
0.64309
5,418
0.882986
0
0
0
0
0
0
1,719
0.28015
5ef260b5bf84eb695b2bd8138b23ebab7ec1405b
4,779
py
Python
cno/chrutils.py
CherokeeLanguage/cherokee-audio-data
a10b7b38c0c1b56338561c917cef18a078ca573c
[ "CC0-1.0", "MIT" ]
2
2021-09-15T19:41:01.000Z
2022-01-12T17:57:08.000Z
cno/chrutils.py
CherokeeLanguage/cherokee-audio-data
a10b7b38c0c1b56338561c917cef18a078ca573c
[ "CC0-1.0", "MIT" ]
1
2021-10-08T18:06:29.000Z
2021-10-08T18:48:44.000Z
cno/chrutils.py
CherokeeLanguage/cherokee-audio-data
a10b7b38c0c1b56338561c917cef18a078ca573c
[ "CC0-1.0", "MIT" ]
null
null
null
#!/usr/bin/env python3 def test(): cedTest = ["U²sgal²sdi ạ²dv¹ne²³li⁴sgi.", "Ụ²wo²³dị³ge⁴ɂi gi²hli a¹ke²³he³²ga na ạ²chu⁴ja.", "Ạ²ni²³tạɂ³li ạ²ni²sgạ²ya a¹ni²no²hạ²li²³do³²he, ạ²hwi du¹ni²hyọ²he.", "Sa¹gwu⁴hno ạ²sgạ²ya gạ²lo¹gwe³ ga²ne²he sọ³ɂị³hnv³ hla².", "Na³hnv³ gạ...
38.232
138
0.586943
0
0
0
0
0
0
0
0
2,476
0.475422
5ef27b5395234b7acc5798e9c4c4dad901d9aba3
2,585
py
Python
molo/usermetadata/tests/test_tags.py
praekelt/molo.usermetadata
90cc0dffe55db8ece208d13d37d76956daadfa5a
[ "BSD-2-Clause" ]
null
null
null
molo/usermetadata/tests/test_tags.py
praekelt/molo.usermetadata
90cc0dffe55db8ece208d13d37d76956daadfa5a
[ "BSD-2-Clause" ]
14
2016-04-21T17:19:08.000Z
2018-06-18T12:49:58.000Z
molo/usermetadata/tests/test_tags.py
praekeltfoundation/molo.usermetadata
90cc0dffe55db8ece208d13d37d76956daadfa5a
[ "BSD-2-Clause" ]
null
null
null
import pytest from django.test import TestCase, Client from django.core.urlresolvers import reverse from molo.core.tests.base import MoloTestCaseMixin from molo.core.models import Main, SiteLanguageRelation, Languages from molo.usermetadata.models import PersonaIndexPage, PersonaPage from wagtail.wagtailcore.models i...
34.013158
75
0.659574
2,158
0.834816
0
0
2,181
0.843714
0
0
373
0.144294
5ef2f309d751c48873dcfc34c92ab93f2ef03256
1,793
py
Python
app/db_con.py
bmugenya/Zup
1677c1e4e263409f9f5fcaac7411dd403e32650e
[ "MIT" ]
null
null
null
app/db_con.py
bmugenya/Zup
1677c1e4e263409f9f5fcaac7411dd403e32650e
[ "MIT" ]
1
2020-03-06T17:32:15.000Z
2020-03-06T17:32:15.000Z
app/db_con.py
bmugenya/Zup
1677c1e4e263409f9f5fcaac7411dd403e32650e
[ "MIT" ]
null
null
null
import psycopg2 url = "dbname='da43n1slakcjkc' user='msqgxzgmcskvst' host='ec2-54-80-184-43.compute-1.amazonaws.com' port=5432 password='9281f925b1e2298e8d62812d9d4e430c1054db62e918c282d7039fa85b1759fa'" class database_setup(object): def __init__(self): self.conn = psycopg2.connect(url) self.curs...
34.480769
187
0.605131
1,586
0.884551
0
0
0
0
0
0
1,389
0.774679
5ef2f8f0dbedcc720d930427f98c729897cff0e0
780
py
Python
server/dao/messageDao.py
ZibingZhang/Level-Up
e936eef7fc4f17e8bb392f98c7dff37dfad9d47b
[ "MIT" ]
null
null
null
server/dao/messageDao.py
ZibingZhang/Level-Up
e936eef7fc4f17e8bb392f98c7dff37dfad9d47b
[ "MIT" ]
1
2020-01-23T19:22:06.000Z
2020-01-23T19:23:47.000Z
server/dao/messageDao.py
ZibingZhang/Level-Up
e936eef7fc4f17e8bb392f98c7dff37dfad9d47b
[ "MIT" ]
null
null
null
from constants import cursor def add_message(player_name, message): cursor.execute( "INSERT INTO levelup.messages (" "SENDER, MESSAGE" ") VALUES (" "%s, %s" ")", (player_name, message) ) def reset(): cursor.execute( "DELETE FROM levelup.messages" ...
21.081081
83
0.603846
0
0
0
0
0
0
0
0
261
0.334615
5ef3a63fa138240896cecf671d1c8882815b58b3
3,248
py
Python
skeletrack/bbox.py
mpeven/skeletal-tracker
ddb6e7d59899c0f3f0470805006e5c5c4bcabe33
[ "MIT" ]
null
null
null
skeletrack/bbox.py
mpeven/skeletal-tracker
ddb6e7d59899c0f3f0470805006e5c5c4bcabe33
[ "MIT" ]
null
null
null
skeletrack/bbox.py
mpeven/skeletal-tracker
ddb6e7d59899c0f3f0470805006e5c5c4bcabe33
[ "MIT" ]
null
null
null
import numpy as np import shapely.geometry as geom class Bbox: def __init__(self, name, part_id, depth_image, xyz, box_size, projection): if not isinstance(xyz, np.ndarray): raise ValueError("xyz must be an np.ndarray") self.name = name self.id = part_id self.center = np...
44.493151
120
0.594828
3,195
0.983682
0
0
0
0
0
0
273
0.084052
5ef50480947622fa6c85f38cc28d083417268f20
351
py
Python
apps/snippet/admin.py
AniPython/ani
2536ac9ddae2b8396b634f982fb1083339b4a389
[ "MIT" ]
null
null
null
apps/snippet/admin.py
AniPython/ani
2536ac9ddae2b8396b634f982fb1083339b4a389
[ "MIT" ]
null
null
null
apps/snippet/admin.py
AniPython/ani
2536ac9ddae2b8396b634f982fb1083339b4a389
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Tag, Article @admin.register(Tag) class TagAdmin(admin.ModelAdmin): list_display = ('name', 'order') list_editable = ('order',) @admin.register(Article) class ArticleAdmin(admin.ModelAdmin): list_display = ['title', 'author'] readonly_fields = ['...
19.5
52
0.709402
230
0.655271
0
0
276
0.786325
0
0
61
0.173789
5ef67226c4fddb4ea740eed126e252d451b1063d
1,326
py
Python
test/functional/test_framework/script_util.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
1,389
2017-06-28T02:35:01.000Z
2022-03-25T20:09:01.000Z
test/functional/test_framework/script_util.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
1,039
2015-03-25T23:58:32.000Z
2022-03-30T00:41:16.000Z
test/functional/test_framework/script_util.py
TopoX84/newlux
555b9f7f9e4be4ef879f20083d8cf80ed8f7777e
[ "MIT" ]
564
2017-06-28T03:55:03.000Z
2022-03-30T14:57:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Useful Script constants and utils.""" from test_framework.script import CScript # To prevent a "tx-size-sma...
51
84
0.737557
0
0
0
0
0
0
0
0
1,222
0.921569
5efb1967191c3b432f3eb4d402361c056b7541a9
4,085
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/Torrent/TorrentIPC.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/Torrent/TorrentIPC.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/Torrent/TorrentIPC.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/env python # # Copyright (C) 2006 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General ...
40.04902
124
0.682742
2,064
0.505263
0
0
0
0
0
0
3,027
0.741004
5efb27ff2e3645c70f7c8e38f1cd5d5485dc77ac
12,418
py
Python
srcf/database/schema.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
null
null
null
srcf/database/schema.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
2
2020-08-23T17:23:28.000Z
2021-04-01T18:32:11.000Z
srcf/database/schema.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
3
2021-01-12T00:06:39.000Z
2021-09-26T23:31:15.000Z
from __future__ import print_function, unicode_literals from binascii import unhexlify from enum import Enum import os import pwd import six from sqlalchemy import Column, Integer, String, Boolean, DateTime, Text, Enum as SQLAEnum, Numeric from sqlalchemy import event from sqlalchemy.dialects.postgresql import HSTOR...
33.836512
102
0.607988
8,622
0.694315
0
0
911
0.073361
0
0
2,424
0.195201
5efcf7db618c88e80670f2e44849d8f110aeefaf
15,226
py
Python
tests/test_grid.py
ascillitoe/pyvista
b0eb948042f208a03b9feb5784854ebb8507dae8
[ "MIT" ]
null
null
null
tests/test_grid.py
ascillitoe/pyvista
b0eb948042f208a03b9feb5784854ebb8507dae8
[ "MIT" ]
null
null
null
tests/test_grid.py
ascillitoe/pyvista
b0eb948042f208a03b9feb5784854ebb8507dae8
[ "MIT" ]
1
2020-03-23T15:46:56.000Z
2020-03-23T15:46:56.000Z
import os import numpy as np import pytest import vtk import pyvista from pyvista import examples from pyvista.plotting import system_supports_plotting beam = pyvista.UnstructuredGrid(examples.hexbeamfile) # create structured grid x = np.arange(-10, 10, 2) y = np.arange(-10, 10, 2) z = np.arange(-10, 10, 2) x, y, z...
32.67382
97
0.64843
0
0
0
0
3,243
0.212991
0
0
701
0.04604
5efda15abd13bae316a30c8f74303450a7d645eb
5,767
py
Python
Server/src/quadradiusr_server/server.py
kjarosh/QuadradiusR
2e55188bf9c9cd980ec6d11fce51830d0b4749d7
[ "MIT" ]
null
null
null
Server/src/quadradiusr_server/server.py
kjarosh/QuadradiusR
2e55188bf9c9cd980ec6d11fce51830d0b4749d7
[ "MIT" ]
null
null
null
Server/src/quadradiusr_server/server.py
kjarosh/QuadradiusR
2e55188bf9c9cd980ec6d11fce51830d0b4749d7
[ "MIT" ]
null
null
null
import asyncio import logging from collections import defaultdict from typing import Optional, List, Dict from aiohttp import web from aiohttp.web_runner import AppRunner, TCPSite from quadradiusr_server.auth import Auth from quadradiusr_server.config import ServerConfig from quadradiusr_server.cron import Cron, Setu...
32.767045
81
0.650945
4,879
0.84602
0
0
267
0.046298
1,192
0.206693
473
0.082018
5eff513cdc7ff514a20abc942fb429679a31b4d7
95
py
Python
12_find the output/03_In Python/01_GeeksForGeeks/05_Set Five/problem_4.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
1
2021-11-16T14:14:38.000Z
2021-11-16T14:14:38.000Z
12_find the output/03_In Python/01_GeeksForGeeks/05_Set Five/problem_4.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
null
null
null
12_find the output/03_In Python/01_GeeksForGeeks/05_Set Five/problem_4.py
Magdyedwar1996/python-level-one-codes
066086672f43488bc8b32c620b5e2f94cedfe3da
[ "MIT" ]
null
null
null
def gfg(x,l = []): for i in range(x): l.append(i*i) print(l) gfg(2) gfg(3,[3,2,1]) gfg(3)
10.555556
19
0.526316
0
0
0
0
0
0
0
0
0
0
5effb0c993d722db84398b9fa87c2c824fbd66c6
2,638
py
Python
duck/utils/cal_ints.py
galaxycomputationalchemistry/duck
a57337afd523c99ebe4babf74c1868578c6cf1e0
[ "Apache-2.0" ]
1
2020-06-20T23:27:46.000Z
2020-06-20T23:27:46.000Z
duck/utils/cal_ints.py
galaxycomputationalchemistry/duck
a57337afd523c99ebe4babf74c1868578c6cf1e0
[ "Apache-2.0" ]
4
2018-07-17T12:48:59.000Z
2020-04-01T11:00:42.000Z
duck/utils/cal_ints.py
xchem/duck
b98bb78284e9c92837ac1e69fc2f06306ab1e28c
[ "Apache-2.0" ]
3
2019-06-15T16:04:47.000Z
2020-04-01T07:54:53.000Z
import json, pickle, sys, os from parmed.geometry import distance2 from parmed.topologyobjects import Atom import operator import parmed import math def check_same(atom, chain, res_name, res_number, atom_name): if atom.residue.name == res_name: if atom.residue.number == res_number: if atom.nam...
33.392405
88
0.681956
0
0
0
0
0
0
0
0
320
0.121304
6f011e9d1e6d5fe45f9c159871d9be7ae9ea35b9
1,111
py
Python
snakes/help_info.py
japinol7/snakes
bb501736027897bacab498ad7bbbe622cf4b9755
[ "MIT" ]
12
2019-04-15T07:20:31.000Z
2019-05-18T22:03:35.000Z
snakes/help_info.py
japinol7/snakes
bb501736027897bacab498ad7bbbe622cf4b9755
[ "MIT" ]
null
null
null
snakes/help_info.py
japinol7/snakes
bb501736027897bacab498ad7bbbe622cf4b9755
[ "MIT" ]
null
null
null
"""Module help_info.""" __author__ = 'Joan A. Pinol (japinol)' class HelpInfo: """Manages information used for help purposes.""" def print_help_keys(self): print(' F1: \t show a help screen while playing the game' ' t: \t stats on/off\n' ' L_Ctrl + R_Alt + g...
41.148148
73
0.417642
1,039
0.935194
0
0
0
0
0
0
744
0.669667
6f0325adcc4e209cb06df2012d7cf8d2933313bf
3,983
py
Python
run_minprop_PD.py
kztakemoto/network_propagation
7e66aca7f179cfe982b388b20b240745b4927bf9
[ "MIT" ]
3
2021-04-24T10:58:33.000Z
2022-03-22T10:02:33.000Z
run_minprop_PD.py
kztakemoto/network_propagation
7e66aca7f179cfe982b388b20b240745b4927bf9
[ "MIT" ]
null
null
null
run_minprop_PD.py
kztakemoto/network_propagation
7e66aca7f179cfe982b388b20b240745b4927bf9
[ "MIT" ]
1
2019-11-25T06:32:13.000Z
2019-11-25T06:32:13.000Z
import warnings warnings.simplefilter('ignore') import argparse import pickle import numpy as np import pandas as pd import networkx as nx import scipy.sparse as sp from network_propagation_methods import minprop_2 from sklearn.metrics import roc_auc_score, auc import matplotlib.pyplot as plt #### Parameters ########...
38.298077
153
0.726839
0
0
0
0
0
0
0
0
1,112
0.279187
6f03742065f7d2c3fc2369fb406d4426cdddbeab
459
py
Python
Exercicios em Python/ex080.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
Exercicios em Python/ex080.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
Exercicios em Python/ex080.py
Raphael-Azevedo/Exercicios_Python
dece138f38edd02b0731aed78e44acccb021b3cb
[ "MIT" ]
null
null
null
n = [] i = 0 for c in range(0, 5): n1 = int(input('Digite um valor: ')) if c == 0 or n1 > n[-1]: n.append(n1) print(f'Adicionado na posição {c} da lista...') else: pos = 0 while pos < len(n): if n1 <= n[pos]: n.insert(pos, n1) print...
25.5
65
0.461874
0
0
0
0
0
0
0
0
147
0.317495
6f03aa2ab2aaee70b468bb66183fe442925a1018
13,132
py
Python
rawal_stuff/src/demo.py
rawalkhirodkar/traffic_light_detection
0e1e99962477bcf271b22d5205b1e7afab8635ba
[ "MIT" ]
null
null
null
rawal_stuff/src/demo.py
rawalkhirodkar/traffic_light_detection
0e1e99962477bcf271b22d5205b1e7afab8635ba
[ "MIT" ]
null
null
null
rawal_stuff/src/demo.py
rawalkhirodkar/traffic_light_detection
0e1e99962477bcf271b22d5205b1e7afab8635ba
[ "MIT" ]
null
null
null
import cv2 import numpy as np import random import copy import dlib from keras.models import Sequential from keras.optimizers import SGD from keras.datasets import cifar10 from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, F...
43.919732
262
0.456823
0
0
0
0
0
0
0
0
3,307
0.251828
6f043f48e4529a5b4d4237cf80295c09f14302ee
3,720
py
Python
kaivy/geometry/line2d.py
team-kaivy/kaivy
e27b53e8e9eedc48abc99151f3adbb76f0a9b331
[ "MIT" ]
null
null
null
kaivy/geometry/line2d.py
team-kaivy/kaivy
e27b53e8e9eedc48abc99151f3adbb76f0a9b331
[ "MIT" ]
null
null
null
kaivy/geometry/line2d.py
team-kaivy/kaivy
e27b53e8e9eedc48abc99151f3adbb76f0a9b331
[ "MIT" ]
null
null
null
######################################################################################################################## # # # This file is part of kAIvy ...
42.758621
136
0.491129
2,674
0.718817
0
0
885
0.237903
0
0
1,671
0.449194
6f050e8b2c15f5d5adcf74276ee71e811d247441
5,813
py
Python
data_loader/MSVD_dataset.py
dendisuhubdy/collaborative-experts
e6db63837537c054723ce00b73264101acc29d39
[ "MIT" ]
null
null
null
data_loader/MSVD_dataset.py
dendisuhubdy/collaborative-experts
e6db63837537c054723ce00b73264101acc29d39
[ "MIT" ]
null
null
null
data_loader/MSVD_dataset.py
dendisuhubdy/collaborative-experts
e6db63837537c054723ce00b73264101acc29d39
[ "MIT" ]
null
null
null
import copy from pathlib import Path from typing import Dict, Union, List from collections import defaultdict import numpy as np from typeguard import typechecked from zsvision.zs_utils import memcache, concat_features from utils.util import memory_summary from base.base_dataset import BaseDataset class MSVD(BaseDa...
43.059259
90
0.584724
5,509
0.947703
0
0
2,068
0.355754
0
0
1,541
0.265095
6f067497faf1ec468f96a34eb789dd94adfffc2e
2,381
py
Python
wagtail/wagtailsearch/forms.py
balkantechnologies/BalkanCMS_core
68625199028fc96abb175e410a4a7a92c02cb261
[ "BSD-3-Clause" ]
1
2021-09-21T00:06:52.000Z
2021-09-21T00:06:52.000Z
wagtail/wagtailsearch/forms.py
balkantechnologies/BalkanCMS_core
68625199028fc96abb175e410a4a7a92c02cb261
[ "BSD-3-Clause" ]
1
2021-02-24T08:25:30.000Z
2021-02-24T08:25:30.000Z
wagtail/wagtailsearch/forms.py
balkantechnologies/BalkanCMS_core
68625199028fc96abb175e410a4a7a92c02cb261
[ "BSD-3-Clause" ]
1
2020-11-24T10:21:24.000Z
2020-11-24T10:21:24.000Z
from django import forms from django.forms.models import inlineformset_factory from django.utils.translation import ugettext_lazy as _ from wagtail.wagtailadmin.widgets import AdminPageChooser from wagtail.wagtailsearch import models class QueryForm(forms.Form): query_string = forms.CharField(label=_("Search ter...
36.075758
144
0.673667
1,990
0.835783
0
0
0
0
0
0
457
0.191936
6f069669d5a2624249034f4c529c35293422204b
6,994
py
Python
app/utils/docs_utils.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
2
2021-08-19T12:35:25.000Z
2022-02-16T04:13:38.000Z
app/utils/docs_utils.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
46
2021-09-02T03:22:05.000Z
2022-03-31T09:20:00.000Z
app/utils/docs_utils.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
1
2021-11-17T23:18:27.000Z
2021-11-17T23:18:27.000Z
""" Copyright BOOSTRY Co., Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
29.635593
120
0.601373
2,721
0.389048
0
0
1,710
0.244495
0
0
1,888
0.269946
6f06e78625c74321a938329732209995e4f8e1f0
2,282
py
Python
scripts/models/arcii.py
mogumogu2333/MatchZoo
1182b076bf571eba4af89141b93a51598afc252c
[ "Apache-2.0" ]
null
null
null
scripts/models/arcii.py
mogumogu2333/MatchZoo
1182b076bf571eba4af89141b93a51598afc252c
[ "Apache-2.0" ]
null
null
null
scripts/models/arcii.py
mogumogu2333/MatchZoo
1182b076bf571eba4af89141b93a51598afc252c
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.insert(0, "../../") import matchzoo as mz import typing import pandas as pd import matchzoo from matchzoo.preprocessors.units.tokenize import Tokenize, WordPieceTokenize from matchzoo.engine.base_preprocessor import load_preprocessor import pickle import utils os.environ["CUDA_VISIBLE_D...
30.837838
103
0.765995
0
0
0
0
0
0
0
0
342
0.149869