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
d624afc005581dffbfc08e82838a1665027d366a
12,517
py
Python
1/feature.py
houzeyu2683/NCKUCSIEIIR
5289de95caed724b395136fcfc8e44fc522aad68
[ "MIT" ]
null
null
null
1/feature.py
houzeyu2683/NCKUCSIEIIR
5289de95caed724b395136fcfc8e44fc522aad68
[ "MIT" ]
null
null
null
1/feature.py
houzeyu2683/NCKUCSIEIIR
5289de95caed724b395136fcfc8e44fc522aad68
[ "MIT" ]
null
null
null
import cv2 class color: def __init__(self, table, use): self.table = table self.use = use return def process(self, item): if(self.use=='rgb'): size = (64,64) image = cv2.imread(item['path']) if(not isinstance(image, numpy.n...
33.026385
132
0.502596
7,243
0.562651
0
0
0
0
0
0
6,749
0.524276
d624ba8318c597ce97853f834699f104f42b757d
545
py
Python
server/apps/posts/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
server/apps/posts/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
server/apps/posts/models.py
arthamtrust/backend
d1981766297b1cf2888b37af927f69fde750a23e
[ "MIT" ]
null
null
null
from django.db import models class Post(models.Model): """ Model for Charity or Event Post """ POST_KINDS = [(kind, kind) for kind in ["charity", "event"]] title = models.CharField(max_length=200) content = models.TextField() published_date = models.DateField() created_date = models....
22.708333
64
0.638532
513
0.941284
0
0
0
0
0
0
80
0.146789
d62529fa1e4bca329d5371d9c6d83cde2120ae8f
251
py
Python
demos/sysmon/schema/queries/__init__.py
rob-blackbourn/bareasgi-graphql
84e46f4e082630973a275b44811ef1136bbde418
[ "Apache-2.0" ]
2
2020-04-27T19:54:26.000Z
2022-03-30T10:06:29.000Z
demos/sysmon/schema/queries/__init__.py
rob-blackbourn/bareasgi-graphql
84e46f4e082630973a275b44811ef1136bbde418
[ "Apache-2.0" ]
null
null
null
demos/sysmon/schema/queries/__init__.py
rob-blackbourn/bareasgi-graphql
84e46f4e082630973a275b44811ef1136bbde418
[ "Apache-2.0" ]
null
null
null
""" GraphQL queries """ from graphql import GraphQLObjectType from .system_queries import LatestQuery # pylint: disable=invalid-name RootQueryType = GraphQLObjectType( name='Queries', fields=lambda: { 'latest': LatestQuery, } )
15.6875
39
0.705179
0
0
0
0
0
0
0
0
70
0.278884
d628384096a682a0c64ae1ad0b4d5405798588dd
4,781
py
Python
code/bert_utils/bert_utils_simplify_v2/data_loader.py
InscribeDeeper/Text-Classification
9cd3def58b5bd4b722a5b8fdff60a07d977234aa
[ "MIT" ]
null
null
null
code/bert_utils/bert_utils_simplify_v2/data_loader.py
InscribeDeeper/Text-Classification
9cd3def58b5bd4b722a5b8fdff60a07d977234aa
[ "MIT" ]
null
null
null
code/bert_utils/bert_utils_simplify_v2/data_loader.py
InscribeDeeper/Text-Classification
9cd3def58b5bd4b722a5b8fdff60a07d977234aa
[ "MIT" ]
null
null
null
import re from tensorflow.keras.utils import to_categorical from collections import Counter import pandas as pd import torch from sklearn.model_selection import train_test_split, StratifiedKFold from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler import numpy as np ###############...
45.971154
242
0.708011
0
0
1,729
0.36164
0
0
0
0
1,391
0.290943
d628eb2618c4fa8efe97f0a1814ba041871e5417
9,733
py
Python
prometheus_metrics.py
lesykm/healthstats-collector
fb81a6938ab9ae0ff3408642d0d06e2869454a6f
[ "MIT" ]
null
null
null
prometheus_metrics.py
lesykm/healthstats-collector
fb81a6938ab9ae0ff3408642d0d06e2869454a6f
[ "MIT" ]
null
null
null
prometheus_metrics.py
lesykm/healthstats-collector
fb81a6938ab9ae0ff3408642d0d06e2869454a6f
[ "MIT" ]
1
2021-12-23T19:10:39.000Z
2021-12-23T19:10:39.000Z
import datetime import os import pytz from prometheus_client import CollectorRegistry, Gauge, pushadd_to_gateway class PrometheusMetrics: def __init__(self, logger): self.logger = logger self.registry = CollectorRegistry() self.pushgateway = os.environ.get("PUSHGATEWAY", "localhost:9091")...
39.245968
98
0.636803
9,616
0.987979
0
0
0
0
0
0
3,932
0.403986
d62a7b5bab3d8a5d3f5a1aff360bc9d1b2ac9814
2,305
py
Python
tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py
mcellteam/mcell-tests
34d2d967b75d56edbae999bf0090641850f4f4fe
[ "MIT" ]
1
2021-08-13T20:40:54.000Z
2021-08-13T20:40:54.000Z
tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py
mcellteam/mcell_tests
34d2d967b75d56edbae999bf0090641850f4f4fe
[ "MIT" ]
null
null
null
tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py
mcellteam/mcell_tests
34d2d967b75d56edbae999bf0090641850f4f4fe
[ "MIT" ]
null
null
null
import mcell as m from parameters import * from subsystem import * from geometry import * # ---- observables ---- viz_output = m.VizOutput( mode = m.VizMode.ASCII, output_files_prefix = './viz_data/seed_' + str(get_seed()).zfill(5) + '/Scene', every_n_timesteps = 1 ) count_a_Cube1 = m.Count( name = ...
22.598039
102
0.688503
0
0
0
0
0
0
0
0
271
0.11757
d62a8b24a611540b7442ff5bbdf17e7e9ceae229
1,372
py
Python
custom_logger.py
LC-Duarte/pytil
271b4e8dee408b586fbd741511116726e10d1fc0
[ "MIT" ]
null
null
null
custom_logger.py
LC-Duarte/pytil
271b4e8dee408b586fbd741511116726e10d1fc0
[ "MIT" ]
null
null
null
custom_logger.py
LC-Duarte/pytil
271b4e8dee408b586fbd741511116726e10d1fc0
[ "MIT" ]
null
null
null
#custom_logger.py #Leonardo Duarte import logging #Logging levels INFO = logging.INFO DEBUG = logging.DEBUG WARNING = logging.WARNING ERROR = logging.ERROR def setup(name, **kwargs): log_level=kwargs.get('log_level',INFO) formatter = logging.Formatter(fmt='%(asctime)s templatetool %(levelname)s: %(...
26.384615
121
0.560496
0
0
0
0
0
0
0
0
250
0.182216
d62b77751af6dbe89d65c59649c018081395e8a3
4,403
py
Python
CPAC/utils/ga.py
gkiar/C-PAC
0926b451dd8622b25eb68c7bcc770f0156238b23
[ "BSD-3-Clause" ]
125
2015-03-04T09:14:46.000Z
2022-03-29T07:46:12.000Z
CPAC/utils/ga.py
gkiar/C-PAC
0926b451dd8622b25eb68c7bcc770f0156238b23
[ "BSD-3-Clause" ]
1,018
2015-01-04T16:01:29.000Z
2022-03-31T19:23:09.000Z
CPAC/utils/ga.py
gkiar/C-PAC
0926b451dd8622b25eb68c7bcc770f0156238b23
[ "BSD-3-Clause" ]
117
2015-01-10T08:05:52.000Z
2022-01-18T05:16:51.000Z
import configparser import os import os.path as op import requests import tempfile import threading import traceback import uuid from CPAC.info import __version__, ga_tracker udir = op.expanduser('~') if udir=='/': udir = tempfile.mkdtemp() temp_dir = True tracking_path = op.join(udir, '.cpac') def get_or_c...
25.16
77
0.556893
0
0
0
0
0
0
0
0
1,398
0.317511
d62bdce02dfde4fdc7a6daa118d20a03c2cdd67f
47
py
Python
src/TEMPer_USB/temper-python-master/temperusb/__init__.py
resolutedreamer/EE199
4a18ca64cc414fd33f35794cea2abc8d7c224deb
[ "Apache-2.0" ]
null
null
null
src/TEMPer_USB/temper-python-master/temperusb/__init__.py
resolutedreamer/EE199
4a18ca64cc414fd33f35794cea2abc8d7c224deb
[ "Apache-2.0" ]
null
null
null
src/TEMPer_USB/temper-python-master/temperusb/__init__.py
resolutedreamer/EE199
4a18ca64cc414fd33f35794cea2abc8d7c224deb
[ "Apache-2.0" ]
null
null
null
from temper import TemperDevice, TemperHandler
23.5
46
0.87234
0
0
0
0
0
0
0
0
0
0
d62f4ad8fee791fde617fe8a8fcaa03316e1676c
894
py
Python
tests/api/conftest.py
ggardet/mr-provisioner
8a57806e702d9953a3af304fe52dec8e5de25aff
[ "ECL-2.0", "Apache-2.0" ]
25
2018-04-12T15:56:47.000Z
2021-05-17T04:31:20.000Z
tests/api/conftest.py
ggardet/mr-provisioner
8a57806e702d9953a3af304fe52dec8e5de25aff
[ "ECL-2.0", "Apache-2.0" ]
72
2017-06-21T10:59:05.000Z
2018-03-22T08:52:18.000Z
tests/api/conftest.py
ggardet/mr-provisioner
8a57806e702d9953a3af304fe52dec8e5de25aff
[ "ECL-2.0", "Apache-2.0" ]
13
2017-06-16T08:17:03.000Z
2019-10-03T09:49:46.000Z
import pytest from mr_provisioner.models import Token from werkzeug.datastructures import Headers @pytest.fixture(scope='function') def token_nonadmin(db, user_nonadmin): token = Token(user_nonadmin.id, None, 'api test token') db.session.add(token) db.session.commit() db.session.refresh(token) re...
23.526316
59
0.715884
0
0
0
0
784
0.876957
0
0
124
0.138702
d630e32828aaab8dd2ad6bfc505ea6fcac010e08
7,509
py
Python
pirate.py
bobbyluig/pirate
f9b17a652eb475c0057aa556e428e38ebe808172
[ "MIT" ]
2
2017-10-12T03:01:21.000Z
2022-02-03T01:15:20.000Z
pirate.py
bobbyluig/pirate
f9b17a652eb475c0057aa556e428e38ebe808172
[ "MIT" ]
null
null
null
pirate.py
bobbyluig/pirate
f9b17a652eb475c0057aa556e428e38ebe808172
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import json from urllib import parse from datetime import datetime import time def construct_link(origin, destination): o = parse.urlparse(origin) if destination.startswith('http'): return destination elif destination.startswith('/'): ...
27.108303
104
0.536023
0
0
0
0
0
0
0
0
2,185
0.290984
d631ffddb2895fc51dd1aaa5d9e97af2b59d8562
3,763
py
Python
src/modeling/metrics.py
zahrahosseini99/fever2-columbia
0859c005a960c144de903a095d480fe8c131754a
[ "Apache-2.0" ]
8
2020-04-29T04:59:45.000Z
2022-03-20T01:26:21.000Z
src/modeling/metrics.py
zahrahosseini99/fever2-columbia
0859c005a960c144de903a095d480fe8c131754a
[ "Apache-2.0" ]
2
2021-04-30T21:12:58.000Z
2022-03-21T22:18:50.000Z
src/modeling/metrics.py
zahrahosseini99/fever2-columbia
0859c005a960c144de903a095d480fe8c131754a
[ "Apache-2.0" ]
4
2020-05-05T01:18:34.000Z
2022-03-22T07:20:12.000Z
from typing import Optional from overrides import overrides import numpy as np import torch from allennlp.training.metrics.metric import Metric class FeverScore(Metric): def __init__(self, nei_label=0, max_select=5) -> None: self.correct_count = 0. self.total_count = 0. self.correct_evid...
37.257426
158
0.570821
3,614
0.960404
0
0
175
0.046505
0
0
393
0.104438
d6334e66d12b35aa3a34254a0681cdb454e2df42
928
py
Python
SPC/Files/login.py
yadavsuraj20/spc
442d88c748633d00a6f1db2a3069feb4ac3f45b7
[ "BSD-3-Clause" ]
1
2020-06-15T18:47:26.000Z
2020-06-15T18:47:26.000Z
SPC/Files/login.py
yadavsuraj20/spc
442d88c748633d00a6f1db2a3069feb4ac3f45b7
[ "BSD-3-Clause" ]
null
null
null
SPC/Files/login.py
yadavsuraj20/spc
442d88c748633d00a6f1db2a3069feb4ac3f45b7
[ "BSD-3-Clause" ]
3
2020-06-07T04:46:10.000Z
2020-07-04T12:04:22.000Z
import requests import getpass import pickle import os import sys # import webbrowser # import time home = os.path.expanduser('~/SPC') # print(home) # $ip=$_SERVER['REMOTE_ADDR'] if os.path.isfile(home+'/Pickles/url.pkl'): fp = open(home+'/Pickles/url.pkl','rb') url = pickle.load(fp) else: exit("First set the serve...
24.421053
60
0.682112
0
0
0
0
0
0
0
0
483
0.520474
d633c093faac664c8098b15521bd8dae8ec5b536
565
py
Python
ci/fetch_pysteps_data.py
pySTEPS/pysteps_tutorials
aeb7cf92603c9b72bf6e80d0870a10daac3a4923
[ "BSD-3-Clause" ]
null
null
null
ci/fetch_pysteps_data.py
pySTEPS/pysteps_tutorials
aeb7cf92603c9b72bf6e80d0870a10daac3a4923
[ "BSD-3-Clause" ]
null
null
null
ci/fetch_pysteps_data.py
pySTEPS/pysteps_tutorials
aeb7cf92603c9b72bf6e80d0870a10daac3a4923
[ "BSD-3-Clause" ]
1
2022-03-08T08:10:11.000Z
2022-03-08T08:10:11.000Z
""" Install the pysteps data in a test environment and create a pystepsrc configuration file pointing to that data. """ if __name__ == "__main__": import argparse from pysteps.datasets import create_default_pystepsrc, download_pysteps_data parser = argparse.ArgumentParser(description="Install pysteps data...
29.736842
80
0.750442
0
0
0
0
0
0
0
0
206
0.364602
d6353235caf92485faaed3962ae13a7db0c3c200
4,723
py
Python
core/commander.py
brant-ruan/IDF4APEV
b5ca7be867a8720ae8eccefb6c9f49c3d53e6888
[ "MIT" ]
2
2019-12-24T13:56:44.000Z
2020-05-21T23:23:16.000Z
core/commander.py
brant-ruan/IDF4APEV
b5ca7be867a8720ae8eccefb6c9f49c3d53e6888
[ "MIT" ]
1
2020-01-05T16:30:07.000Z
2020-01-19T14:19:55.000Z
core/commander.py
brant-ruan/IDF4APEV
b5ca7be867a8720ae8eccefb6c9f49c3d53e6888
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ @File : commander.py @Time : 2019-04-20 11:04 @Author : Bonan Ruan @Desc : """ from core.executer import Executer from core.builder import Builder from core.poc_manager import PoCManager import utils.utils as utils import utils.consts as consts import time clas...
32.798611
87
0.56913
3,384
0.715887
0
0
0
0
0
0
838
0.177279
d6357aa58a908129b11e43500c1352a82061c155
221
py
Python
simple_fun_#8_kill_kth_bit.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
simple_fun_#8_kill_kth_bit.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
simple_fun_#8_kill_kth_bit.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
#Kunal Gautam #Codewars : @Kunalpod #Problem name: Simple Fun #8: Kill K-th Bit #Problem level: 7 kyu def kill_kth_bit(n, k): b = list(bin(n))[2:] if len(b)>=k: b[(-1)*k]='0' return int(''.join(b),2)
20.090909
43
0.574661
0
0
0
0
0
0
0
0
103
0.466063
d63694f86e4ed918545d1903e9b03048a216a8c1
11,872
py
Python
notebooks/Easily_creating_MAB_problems.py
balbok0/SMPyBandits
c8ff765687989e0c20ab42c2e2e1d8440923225b
[ "MIT" ]
309
2018-03-03T22:07:59.000Z
2022-03-26T08:15:58.000Z
notebooks/Easily_creating_MAB_problems.py
balbok0/SMPyBandits
c8ff765687989e0c20ab42c2e2e1d8440923225b
[ "MIT" ]
125
2018-02-27T22:54:03.000Z
2021-11-05T10:50:15.000Z
notebooks/Easily_creating_MAB_problems.py
balbok0/SMPyBandits
c8ff765687989e0c20ab42c2e2e1d8440923225b
[ "MIT" ]
60
2018-04-30T20:54:24.000Z
2022-02-21T22:41:46.000Z
# coding: utf-8 # # Table of Contents # <p><div class="lev1 toc-item"><a href="#Easily-creating-MAB-problems" data-toc-modified-id="Easily-creating-MAB-problems-1"><span class="toc-item-num">1&nbsp;&nbsp;</span>Easily creating MAB problems</a></div><div class="lev2 toc-item"><a href="#Constant-arms" data-toc-modifie...
29.754386
2,979
0.667284
0
0
0
0
0
0
0
0
8,923
0.7516
d637a2b8924bbeab40c70b956e11139d73b51255
24,464
py
Python
scripts/pathlines_working_2_panel_10.py
alexkaiser/heart_valves
53f30ec3680503542890a84949b7fb51d1734272
[ "BSD-3-Clause" ]
null
null
null
scripts/pathlines_working_2_panel_10.py
alexkaiser/heart_valves
53f30ec3680503542890a84949b7fb51d1734272
[ "BSD-3-Clause" ]
null
null
null
scripts/pathlines_working_2_panel_10.py
alexkaiser/heart_valves
53f30ec3680503542890a84949b7fb51d1734272
[ "BSD-3-Clause" ]
null
null
null
# state file generated using paraview version 5.8.0 # ---------------------------------------------------------------- # setup views used in the visualization # ---------------------------------------------------------------- # trace generated using paraview version 5.8.0 # # To ensure correct image size when batch p...
46.333333
209
0.768762
0
0
0
0
0
0
0
0
8,263
0.337762
d63812b8fe6e16b469f6f47a426cfd5513175e5a
1,642
py
Python
filter_plugins/filter_for_dict_list.py
link-u/ansible-roles-v2_php7
f0572912d80f5660401878c69bb2836e960d1819
[ "MIT" ]
null
null
null
filter_plugins/filter_for_dict_list.py
link-u/ansible-roles-v2_php7
f0572912d80f5660401878c69bb2836e960d1819
[ "MIT" ]
9
2021-04-01T17:10:50.000Z
2022-03-24T04:58:44.000Z
filter_plugins/filter_for_dict_list.py
link-u/ansible-roles-v2_php7
f0572912d80f5660401878c69bb2836e960d1819
[ "MIT" ]
null
null
null
from ansible.errors import AnsibleError class FilterModule(object): def filters(self): return { 'combine_dict_list': self.combine_dict_list, 'search_from_dict_list': self.search_from_dict_list, 'search_item_from_dict_list': self.search_item_from_dict_list, } ...
34.93617
118
0.576736
1,600
0.974421
0
0
0
0
0
0
117
0.071255
d63938f44216c738332a0d7aa25f8974f8dd7bb6
309
py
Python
tests/functional/en_ABBR/test_numbers.py
staticdev/human-readable
1c3328560f9b8097e1bc3ec6fceefa486c264fd5
[ "MIT" ]
5
2021-03-10T21:22:31.000Z
2022-03-23T04:38:07.000Z
tests/functional/en_ABBR/test_numbers.py
staticdev/human-readable
1c3328560f9b8097e1bc3ec6fceefa486c264fd5
[ "MIT" ]
59
2021-02-13T10:08:23.000Z
2022-03-14T19:43:55.000Z
tests/functional/en_ABBR/test_numbers.py
staticdev/human-readable
1c3328560f9b8097e1bc3ec6fceefa486c264fd5
[ "MIT" ]
null
null
null
"""Tests for ru_RU numbers humanizing.""" from pytest_mock import MockerFixture import human_readable def test_int_word(activate_en_abbr: MockerFixture) -> None: """It returns int word number.""" expected = "12.3 B" result = human_readable.int_word(12345591313) assert result == expected
22.071429
59
0.731392
0
0
0
0
0
0
0
0
82
0.265372
d63d3dd54daeaac526e70dbb33215bb44fc3d009
733
py
Python
csdnpaper/csdnpaper/pipelines.py
sy2616/DATA
8d2314b23c9757c8f54a85a01b451aaa29054912
[ "Apache-2.0" ]
2
2020-08-08T02:02:04.000Z
2020-12-22T09:12:09.000Z
csdnpaper/csdnpaper/pipelines.py
sy2616/DATA
8d2314b23c9757c8f54a85a01b451aaa29054912
[ "Apache-2.0" ]
null
null
null
csdnpaper/csdnpaper/pipelines.py
sy2616/DATA
8d2314b23c9757c8f54a85a01b451aaa29054912
[ "Apache-2.0" ]
null
null
null
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter from scrapy.pipelines.files import FilesPipeli...
31.869565
66
0.721692
394
0.537517
106
0.144611
0
0
0
0
264
0.360164
d63de35a7cbc93490b36f2a69557bc91a57c22d4
633
py
Python
python/merge_2_sorted_lists.py
anishLearnsToCode/leetcode-algorithms
d5a84e9179a4c3427890313a933fe1950fbcdabc
[ "MIT" ]
17
2020-06-13T15:05:55.000Z
2022-03-16T18:28:53.000Z
python/merge_2_sorted_lists.py
anishLearnsToCode/leetcode-algorithms
d5a84e9179a4c3427890313a933fe1950fbcdabc
[ "MIT" ]
null
null
null
python/merge_2_sorted_lists.py
anishLearnsToCode/leetcode-algorithms
d5a84e9179a4c3427890313a933fe1950fbcdabc
[ "MIT" ]
9
2020-12-27T19:17:58.000Z
2022-03-22T07:02:19.000Z
# Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: result = ListNode(val=-1) previous = result while l1 is not None ...
26.375
68
0.537125
592
0.935229
0
0
0
0
0
0
36
0.056872
d6402fece1eb7235af268a48c88cea7e7009af96
1,778
py
Python
pirates/leveleditor/worldData/pvpTestv2.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/leveleditor/worldData/pvpTestv2.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/leveleditor/worldData/pvpTestv2.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.pvpTestv2 from pandac.PandaModules import Point3, VBase3 objectStruct = {'Objects': {'1128540775.81jubutle...
296.333333
1,507
0.662542
0
0
0
0
0
0
0
0
1,220
0.686164
d64364d5d663ab2f6e187dde65f5c3f8303a30c3
954
py
Python
paperscraper/6-get_unique_authors.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T02:56:22.000Z
2021-11-19T02:56:22.000Z
paperscraper/6-get_unique_authors.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T03:42:58.000Z
2022-03-29T16:32:16.000Z
paperscraper/6-get_unique_authors.py
ahmed-shariff/scraper
52bed967db7e08e438daaa8dfa8d9338567ad7c2
[ "MIT" ]
1
2021-11-19T02:56:28.000Z
2021-11-19T02:56:28.000Z
# External packages import sys import pandas as pd import ast import os # Internal modules import paperscraper.config as config def main(): # Read input file df_scraped_input = pd.read_csv(config.path_postprocessing_output, sep='\t', index_col=0) unique_authors = set() for index, row in df_scraped_...
26.5
116
0.659329
0
0
0
0
0
0
0
0
234
0.245283
d64364dcbe1dd315e49d5ec2ee8c732d5c9f2c9d
2,511
py
Python
src/tiden/tidenfabric.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
14
2020-06-05T09:30:42.000Z
2022-01-19T00:26:48.000Z
src/tiden/tidenfabric.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
6
2020-06-09T14:05:21.000Z
2021-03-18T13:55:15.000Z
src/tiden/tidenfabric.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
1
2020-06-09T13:53:15.000Z
2020-06-09T13:53:15.000Z
#!/usr/bin/env python3 # # Copyright 2017-2020 GridGain Systems. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.253012
117
0.685384
1,649
0.65671
0
0
1,660
0.661091
0
0
716
0.285145
d64587d60e9a4f706954810829075388a9ad602e
7,453
bzl
Python
package_managers/download_pkgs.bzl
mikekamornikov/base-images-docker
10df42be69f0c4afc87f0df9a0b35fcfb43b5854
[ "Apache-2.0" ]
null
null
null
package_managers/download_pkgs.bzl
mikekamornikov/base-images-docker
10df42be69f0c4afc87f0df9a0b35fcfb43b5854
[ "Apache-2.0" ]
null
null
null
package_managers/download_pkgs.bzl
mikekamornikov/base-images-docker
10df42be69f0c4afc87f0df9a0b35fcfb43b5854
[ "Apache-2.0" ]
null
null
null
#Copyright 2017 Google 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 applicable law or agree...
36.179612
166
0.700255
0
0
0
0
0
0
0
0
4,397
0.589964
d646dec8e4a9b46e4c87b603db2467ff487bbb88
765
py
Python
src/app.py
Gscienty/openfaas_wechat
9c959228e3a87d6857876ce1c0f33f527dd0f67e
[ "MIT" ]
1
2019-11-14T06:12:43.000Z
2019-11-14T06:12:43.000Z
src/app.py
Gscienty/openfaas_wechat
9c959228e3a87d6857876ce1c0f33f527dd0f67e
[ "MIT" ]
null
null
null
src/app.py
Gscienty/openfaas_wechat
9c959228e3a87d6857876ce1c0f33f527dd0f67e
[ "MIT" ]
null
null
null
from flask import Flask, request, abort, jsonify import wechat_sec, http_util import sys import os import logging app = Flask(__name__) app.logger.setLevel(logging.NOTSET) def process(uri, sec=False): run_env = os.getenv('RUN_ENV') req = wechat_sec.req_build(request.json) if run_env in { 'develop', 'mock...
28.333333
109
0.682353
0
0
0
0
0
0
0
0
85
0.111111
d6483a58a24b696782a730062dce4d1c9a9cbd47
23,517
py
Python
archivebot.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
archivebot.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
archivebot.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ archivebot.py - discussion page archiving bot. usage: python archivebot.py [OPTIONS] TEMPLATE_PAGE Bot examines backlinks (Special:Whatlinkshere) to TEMPLATE_PAGE. Then goes through all pages (unless a specific page specified using options) and archives old discu...
38.115073
111
0.551346
13,408
0.570141
474
0.020156
0
0
0
0
8,856
0.376579
d649dcfccb6ac131b6a60ee86fa69ca48bf06995
1,911
py
Python
tests/commands/test_render_workflow_graph.py
SebastianKapunkt/joeflow
fbec6685d9d5fb2a4e3db92a9ca6e58cf5a4bce8
[ "BSD-3-Clause" ]
46
2019-01-29T18:23:38.000Z
2022-02-03T12:47:16.000Z
tests/commands/test_render_workflow_graph.py
codingjoe/galahad
ee52b81a8df868e5ab050345550596dbdcd23d5f
[ "BSD-3-Clause" ]
34
2019-10-11T03:42:56.000Z
2022-03-11T15:51:28.000Z
tests/commands/test_render_workflow_graph.py
codingjoe/galahad
ee52b81a8df868e5ab050345550596dbdcd23d5f
[ "BSD-3-Clause" ]
11
2020-04-22T07:17:16.000Z
2022-02-15T08:44:47.000Z
import os import tempfile from pathlib import Path from django.core.management import call_command def test_call_no_args(): tmp_dir = Path(tempfile.mkdtemp()) call_command("render_workflow_graph", "-d", tmp_dir) assert os.path.exists(str(tmp_dir / "testapp_simpleworkflow.svg")) assert os.path.exists(...
34.125
88
0.710623
0
0
0
0
0
0
0
0
590
0.308739
d64a3ccc83969aa669a9917a8a8c8e9feb5b0a3c
276
py
Python
apps/core/migrations/0003_delete_stat.py
vanyakosmos/memes-reposter
7bcd1117a81777f0662bcca38690de0c0404dbfa
[ "MIT" ]
26
2019-01-19T21:07:57.000Z
2022-03-07T16:07:52.000Z
apps/core/migrations/0003_delete_stat.py
BinaryWorld0101201/memes-reposter
de2be9a07d1197100dc9204fdcc78767fe4f4b71
[ "MIT" ]
7
2020-02-11T22:59:44.000Z
2021-06-21T07:44:56.000Z
apps/core/migrations/0003_delete_stat.py
BinaryWorld0101201/memes-reposter
de2be9a07d1197100dc9204fdcc78767fe4f4b71
[ "MIT" ]
9
2018-09-21T06:38:08.000Z
2022-01-26T11:57:28.000Z
# Generated by Django 2.0.3 on 2018-07-15 11:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_stat'), ] operations = [ migrations.DeleteModel( name='Stat', ), ]
16.235294
47
0.576087
191
0.692029
0
0
0
0
0
0
70
0.253623
d64b6639d9b15bb12a5418375591fa34cf7ab5c4
1,416
py
Python
web/pipeline/migrations/0039_auto_20200722_1610.py
stevenstuber/CIT
8c485e72084c06da6db45da1cb402bac26411ec2
[ "Apache-2.0" ]
10
2020-11-12T15:13:40.000Z
2022-03-05T22:33:08.000Z
web/pipeline/migrations/0039_auto_20200722_1610.py
stevenstuber/CIT
8c485e72084c06da6db45da1cb402bac26411ec2
[ "Apache-2.0" ]
28
2020-07-17T16:33:55.000Z
2022-03-21T16:24:25.000Z
web/pipeline/migrations/0039_auto_20200722_1610.py
stevenstuber/CIT
8c485e72084c06da6db45da1cb402bac26411ec2
[ "Apache-2.0" ]
5
2020-11-02T23:39:53.000Z
2022-03-01T19:09:45.000Z
# Generated by Django 2.2.13 on 2020-07-22 16:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pipeline', '0038_hex_isp_service'), ] operations = [ migrations.AddField( model_name='service'...
30.782609
213
0.58404
1,289
0.910311
0
0
0
0
0
0
279
0.197034
d64d34e571746e4e8b7826386ea1af2de18078b2
9,914
py
Python
scripts/cbparse.py
maspadaru/starbench
7230ddcaa5e202f63978d96baa71c31e111ba4f8
[ "Apache-2.0" ]
null
null
null
scripts/cbparse.py
maspadaru/starbench
7230ddcaa5e202f63978d96baa71c31e111ba4f8
[ "Apache-2.0" ]
null
null
null
scripts/cbparse.py
maspadaru/starbench
7230ddcaa5e202f63978d96baa71c31e111ba4f8
[ "Apache-2.0" ]
null
null
null
import string import sys import os OPERATOR_BOX = "B" OPERATOR_DIAMOND = "D" def print_help(): print ('Usage: python cbparse.py Option Arguments DirectoryPath') print ('Options: ') print (' S: parse chasebench data dir - Source Instance') print (' Arguments: timeline_size') print (' T...
33.268456
95
0.587452
6,058
0.611055
0
0
0
0
0
0
1,235
0.124571
d64dbb66dc28a89025281d71ffc0283bc9c1aa67
1,279
py
Python
21.py
oliver-johnston/advent-of-code-2019
c8774ac98fa0ea861887c35fcae1da3d0435dda4
[ "MIT" ]
null
null
null
21.py
oliver-johnston/advent-of-code-2019
c8774ac98fa0ea861887c35fcae1da3d0435dda4
[ "MIT" ]
null
null
null
21.py
oliver-johnston/advent-of-code-2019
c8774ac98fa0ea861887c35fcae1da3d0435dda4
[ "MIT" ]
null
null
null
import intcode class Springdroid: def __init__(self, instructions): self.instruction_chars = list("\n".join(instructions)) + ["\n"] def run(self): intcode.execute_program(self.get_program(), self.get_input, self.write_output) def get_input(self): ch = self.instruction_chars.pop(0...
29.744186
86
0.487099
585
0.457389
0
0
246
0.192338
0
0
454
0.354965
d64e30f234f26d2076908cbc1a63b9953e0bde12
694
py
Python
thread_support.py
loretoparisi/python-threading
f06f809fd830e3e930bbc748df6f6217e03ad6c2
[ "MIT" ]
4
2019-05-23T19:55:09.000Z
2019-06-12T19:24:12.000Z
thread_support.py
loretoparisi/python-threading
f06f809fd830e3e930bbc748df6f6217e03ad6c2
[ "MIT" ]
1
2019-09-04T13:41:08.000Z
2019-09-23T16:29:31.000Z
thread_support.py
loretoparisi/python-threading
f06f809fd830e3e930bbc748df6f6217e03ad6c2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # # Copyright (c) 2019 loretoparisi@gmail.com # from functools import wraps from .bounded_pool_executor import BoundedThreadPoolExecutor from .bounded_pool_executor import BoundedProcessPoolExecutor _DEFAULT_POOL = BoundedThreadPoolExecutor(max_workers=5) _PROCESS_POOL = Bou...
25.703704
69
0.729107
0
0
0
0
220
0.317003
0
0
86
0.123919
d64f415897e749c6aa56a242b90bd89c895e2511
87
py
Python
protocolws/__init__.py
panmpan17/ProtocolWebsocket
05893ab47883fec4356f2f617213093eb7d9b4df
[ "MIT" ]
null
null
null
protocolws/__init__.py
panmpan17/ProtocolWebsocket
05893ab47883fec4356f2f617213093eb7d9b4df
[ "MIT" ]
null
null
null
protocolws/__init__.py
panmpan17/ProtocolWebsocket
05893ab47883fec4356f2f617213093eb7d9b4df
[ "MIT" ]
null
null
null
from .server import WebsocketServer, ErrMsg name = "protocolws" __version__ = "0.2.1"
17.4
43
0.747126
0
0
0
0
0
0
0
0
19
0.218391
d64f495619cee232c074671c5f339c49c18f602c
1,290
py
Python
download_images.py
lastcoolnameleft/whisky-training
1a8eb24942f65ab3055357bfbfca9eca6d2a93be
[ "MIT" ]
null
null
null
download_images.py
lastcoolnameleft/whisky-training
1a8eb24942f65ab3055357bfbfca9eca6d2a93be
[ "MIT" ]
null
null
null
download_images.py
lastcoolnameleft/whisky-training
1a8eb24942f65ab3055357bfbfca9eca6d2a93be
[ "MIT" ]
null
null
null
import requests import pprint import os import csv import sys import urllib.request scotch_csv = sys.argv[1] subscription_key = sys.argv[2] search_url = "https://api.cognitive.microsoft.com/bing/v7.0/images/search" scotch_list = [] with open(scotch_csv, newline='') as csvfile: reader = csv.reader(csvfile, delimit...
30
74
0.651163
0
0
0
0
0
0
0
0
234
0.181395
d6507e0f90b1d3d5abb107c0a6671d5183fb8865
38
py
Python
srcfmailmanwrapper/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
null
null
null
srcfmailmanwrapper/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
2
2020-08-23T17:23:28.000Z
2021-04-01T18:32:11.000Z
srcfmailmanwrapper/__init__.py
danielchriscarter/srcf-python
a7143afd5340338094131a51f560efcd874457d2
[ "MIT" ]
3
2021-01-12T00:06:39.000Z
2021-09-26T23:31:15.000Z
from . import util __all__ = ["util"]
12.666667
18
0.657895
0
0
0
0
0
0
0
0
6
0.157895
d65139b8e3aa8a1bba1c0eb4a22dccde013dd9a9
2,007
py
Python
src/vuabl/parsing/data_from_other_asset.py
CncealDVRflectN/vuabl
1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50
[ "MIT" ]
null
null
null
src/vuabl/parsing/data_from_other_asset.py
CncealDVRflectN/vuabl
1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50
[ "MIT" ]
null
null
null
src/vuabl/parsing/data_from_other_asset.py
CncealDVRflectN/vuabl
1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50
[ "MIT" ]
null
null
null
from vuabl.data.data_from_other_asset import DataFromOtherAsset from vuabl.utils.layout_reader import LayoutReader import vuabl.parsing.parameters as pparamrs import vuabl.parsing.asset_type as pasttp import re def is_data_from_other_assets_header(line: str) -> bool: return re.match(r"^\s*Data From Other Assets....
30.876923
99
0.673144
0
0
0
0
0
0
0
0
101
0.050324
d655a42e44e0f08cda3777efc3dd6716b3147a5f
7,132
py
Python
server/main.py
leemengtaiwan/exbert
63f1d4503f491c87392626e4c0f1f91cae698228
[ "Apache-2.0" ]
1
2020-10-26T11:53:57.000Z
2020-10-26T11:53:57.000Z
server/main.py
leemengtaiwan/exbert
63f1d4503f491c87392626e4c0f1f91cae698228
[ "Apache-2.0" ]
null
null
null
server/main.py
leemengtaiwan/exbert
63f1d4503f491c87392626e4c0f1f91cae698228
[ "Apache-2.0" ]
1
2020-05-10T15:07:27.000Z
2020-05-10T15:07:27.000Z
import argparse from attention_details import ( AttentionDetailsData, get_token_info, add_token_info, ) from pytorch_pretrained_bert import BertModel, BertTokenizer from flask import render_template, redirect, send_from_directory from flask_cors import CORS from utils.mask_att import strip_attention impo...
31.839286
153
0.654655
574
0.080482
0
0
309
0.043326
0
0
2,361
0.331043
d655e83658bafc1ab331f6546dc484f06d66abeb
17,119
py
Python
bayespy/utils/tests/test_misc.py
dungvtdev/upsbayescpm
f6ee877c689046d3c57a2ac06742cfe4a0b6550e
[ "MIT" ]
622
2015-01-15T19:46:06.000Z
2022-03-22T13:40:22.000Z
bayespy/utils/tests/test_misc.py
dungvtdev/upsbayescpm
f6ee877c689046d3c57a2ac06742cfe4a0b6550e
[ "MIT" ]
118
2015-01-04T06:38:23.000Z
2021-11-05T17:28:02.000Z
bayespy/utils/tests/test_misc.py
dungvtdev/upsbayescpm
f6ee877c689046d3c57a2ac06742cfe4a0b6550e
[ "MIT" ]
160
2015-02-16T15:30:43.000Z
2022-03-14T00:52:36.000Z
################################################################################ # Copyright (C) 2013 Jaakko Luttinen # # This file is licensed under the MIT License. ################################################################################ """ Unit tests for bayespy.utils.misc module. """ import unittest im...
32.545627
80
0.356388
16,657
0.973012
0
0
0
0
0
0
1,581
0.092354
d657cea0bec4ccf577d4498c272dbcb1c60618ac
1,948
py
Python
tronos/manual-tracker.py
danilexn/tronos
64852cc41fba51271470f0c424c60c7587ff9f0f
[ "MIT" ]
1
2021-03-19T03:29:06.000Z
2021-03-19T03:29:06.000Z
tronos/manual-tracker.py
danilexn/tronos
64852cc41fba51271470f0c424c60c7587ff9f0f
[ "MIT" ]
3
2020-10-21T13:54:32.000Z
2020-10-26T19:05:41.000Z
tronos/manual-tracker.py
danilexn/tronos
64852cc41fba51271470f0c424c60c7587ff9f0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This is a VERY simple and naive manual tracker. # If you need something more powerful, Fiji is # absolutely recommended. # Generic import argparse import csv import numpy as np import sys import os # Imaging and visualization from PIL import Image import matplotlib.pyplot as plt # Functions...
22.136364
101
0.602669
0
0
0
0
0
0
0
0
561
0.287988
d6584c6c8dc3a1da47bd7f7cc1f456060ecc5d05
234
py
Python
sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
117
2019-09-01T11:59:19.000Z
2020-07-14T11:10:08.000Z
sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
2
2020-04-06T15:21:23.000Z
2020-05-07T04:29:53.000Z
from Jumpscale import j from .TelegramBotClient import TelegramBot JSConfigs = j.baseclasses.object_config_collection class TelegramBotFactory(JSConfigs): __jslocation__ = "j.clients.telegram_bot" _CHILDCLASS = TelegramBot
23.4
50
0.816239
112
0.478632
0
0
0
0
0
0
24
0.102564
d6587d85df1f828c5ddbfdc7e6f01ce7674777d7
10,750
py
Python
tests/test_transfer.py
ivomastre/python-swift-cloud-tools
1edf440d1bf96c423b0a349bc8a0215897427fa5
[ "Apache-2.0" ]
null
null
null
tests/test_transfer.py
ivomastre/python-swift-cloud-tools
1edf440d1bf96c423b0a349bc8a0215897427fa5
[ "Apache-2.0" ]
null
null
null
tests/test_transfer.py
ivomastre/python-swift-cloud-tools
1edf440d1bf96c423b0a349bc8a0215897427fa5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Grupo Globo # # 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, ...
32.379518
257
0.619628
10,039
0.933166
0
0
9,689
0.900632
0
0
2,959
0.275051
d658c086729548623c04cfdeea90310116c48dcd
5,568
py
Python
data_preparation/align_caricature_data.py
wendychen0521/DualStyleGAN
d04c665d800a0fae933c234ad9da17a96cb57c07
[ "MIT" ]
488
2022-03-20T08:36:40.000Z
2022-03-31T22:58:54.000Z
data_preparation/align_caricature_data.py
Guttappa1238/DualStyleGAN
67751d90d1a23358f6cbe5d23e3475cbe2cebff2
[ "MIT" ]
10
2022-03-20T13:04:10.000Z
2022-03-31T14:39:47.000Z
data_preparation/align_caricature_data.py
Guttappa1238/DualStyleGAN
67751d90d1a23358f6cbe5d23e3475cbe2cebff2
[ "MIT" ]
70
2022-03-20T08:53:27.000Z
2022-03-31T05:15:58.000Z
import numpy as np import scipy.ndimage import os import PIL.Image txtpath = './caricature.txt' lmpath = './WebCaricature/FacialPoints/' impath = './WebCaricature/OriginalImages/' outpath = './Caricature/' def image_align(src_file, dst_file, face_landmarks, output_size=1024, transform_size=4096, enable_padding=True, ...
44.544
169
0.547055
0
0
0
0
0
0
0
0
1,221
0.219289
d65a40564489076d2504ca869d13f4f429ac3159
5,153
py
Python
src/rcpicar/util/argument.py
franzmandl/rcpicar
f847f918862edd3ad1ca9b00b845e61b52500ca7
[ "MIT" ]
null
null
null
src/rcpicar/util/argument.py
franzmandl/rcpicar
f847f918862edd3ad1ca9b00b845e61b52500ca7
[ "MIT" ]
null
null
null
src/rcpicar/util/argument.py
franzmandl/rcpicar
f847f918862edd3ad1ca9b00b845e61b52500ca7
[ "MIT" ]
null
null
null
from __future__ import annotations from abc import ABC, abstractmethod from argparse import ArgumentParser, MetavarTypeHelpFormatter from sys import version_info from typing import Any, Callable, Dict, Generic, Iterable, Mapping, Optional, Sequence, Tuple, Type, TypeVar if version_info >= (3, 8): from typing import...
32.821656
117
0.653406
3,106
0.602756
0
0
233
0.045216
0
0
290
0.056278
d65b3ae9db9f669f24fe5f8904d09f18ade80dc9
693
py
Python
lib/utils/folderdeleter.py
RDCEP/hybrid-dile-server
c998432756ecf3a75c6339aa25d1c4a9866aa1e7
[ "Apache-2.0" ]
null
null
null
lib/utils/folderdeleter.py
RDCEP/hybrid-dile-server
c998432756ecf3a75c6339aa25d1c4a9866aa1e7
[ "Apache-2.0" ]
null
null
null
lib/utils/folderdeleter.py
RDCEP/hybrid-dile-server
c998432756ecf3a75c6339aa25d1c4a9866aa1e7
[ "Apache-2.0" ]
null
null
null
import boto import boto.s3 from misc import printProgress, pathLeaf idkeypath = '/home/ubuntu/.s3/AWS_ACCESS_KEY_ID' secretkeypath = '/home/ubuntu/.s3/AWS_SECRET_ACCESS_KEY' bucketname = 'edu-uchicago-rdcep-diles' folder = '' with open(idkeypath) as myfile: id_access_key = myfile.read().replace('\n',...
21.65625
57
0.727273
0
0
0
0
0
0
0
0
177
0.255411
c38706caa52372bd80ca5ff9d1179f9716376ef6
4,170
py
Python
Classifier/data/process_data.py
vigilancetrent/chatbot-advanced
2e0c72c4df2e1434da995b7105f8f0414aba6248
[ "Apache-2.0" ]
52
2020-02-06T06:18:52.000Z
2022-02-23T07:21:46.000Z
Classifier/data/process_data.py
vigilancetrent/chatbot-advanced
2e0c72c4df2e1434da995b7105f8f0414aba6248
[ "Apache-2.0" ]
5
2020-11-20T11:26:23.000Z
2021-12-01T14:22:44.000Z
Classifier/data/process_data.py
vigilancetrent/chatbot-advanced
2e0c72c4df2e1434da995b7105f8f0414aba6248
[ "Apache-2.0" ]
20
2020-01-14T05:01:39.000Z
2021-12-02T23:28:02.000Z
import pickle import sys sys.path.append("../../") # nopep8 from Sentence_Encoder.meta_query_encoder import encode import tensorflow.compat.v1 as tf import tensorflow_text import tensorflow_hub as hub import numpy as np tf.disable_eager_execution() sess = tf.InteractiveSession(graph=tf.Graph()) ConvRT_model = hub.Mo...
28.175676
121
0.631415
0
0
0
0
0
0
0
0
380
0.091127
c3892365eea6eb09110211a34cc5ac5c7a48f371
2,616
py
Python
topojoin/cli.py
SimmonsRitchie/topojoin
5c5848ae05a249c38babdc449dbd89df1b644b61
[ "MIT" ]
1
2020-08-04T04:36:05.000Z
2020-08-04T04:36:05.000Z
topojoin/cli.py
SimmonsRitchie/topojoin
5c5848ae05a249c38babdc449dbd89df1b644b61
[ "MIT" ]
null
null
null
topojoin/cli.py
SimmonsRitchie/topojoin
5c5848ae05a249c38babdc449dbd89df1b644b61
[ "MIT" ]
null
null
null
"""Console script for topojoin.""" import os import sys from pathlib import Path import click from topojoin.topojoin import TopoJoin from typing import Union, Dict, Any @click.command() @click.argument("topo_path", type=click.Path(exists=True)) @click.argument("csv_path", type=click.Path(exists=True)) @click.option( ...
27.536842
104
0.635321
0
0
0
0
2,374
0.907492
0
0
1,091
0.417049
c389e2c1ae91273e918a68d04e0d2427360ed8c8
16,112
py
Python
empowermentexploration/models/visualization.py
franziskabraendle/alchemy_empowerment
83655daff99ea5dbada196fdf7ae21781cbb241e
[ "MIT" ]
null
null
null
empowermentexploration/models/visualization.py
franziskabraendle/alchemy_empowerment
83655daff99ea5dbada196fdf7ae21781cbb241e
[ "MIT" ]
null
null
null
empowermentexploration/models/visualization.py
franziskabraendle/alchemy_empowerment
83655daff99ea5dbada196fdf7ae21781cbb241e
[ "MIT" ]
null
null
null
import empowermentexploration.utils.data_handle as data_handle import empowermentexploration.utils.helpers as helpers import matplotlib as mpl import matplotlib.colors as c import matplotlib.pyplot as plt import numpy as np import seaborn as sns from scipy.stats import sem mpl.use('Agg') class Visualization(): ""...
51.312102
231
0.602781
15,820
0.981877
0
0
0
0
0
0
5,851
0.363145
c38a83e6b2c88a03120a4896e9b8292e72824900
1,186
py
Python
src/pybind.py
disenone/pybind
e63a849066596e25f489bac06a77ccc7ad41827f
[ "MIT" ]
null
null
null
src/pybind.py
disenone/pybind
e63a849066596e25f489bac06a77ccc7ad41827f
[ "MIT" ]
null
null
null
src/pybind.py
disenone/pybind
e63a849066596e25f489bac06a77ccc7ad41827f
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -* import os import sys import util def GetAllHeader(folder): files = [] for dirpath, dirnames, filenames in os.walk(folder): for file in filenames: if file.endswith('.h') or file.endswith('.hpp'): files.append(os.path.join(dirpath, file)) ...
28.238095
100
0.584317
851
0.713926
0
0
0
0
0
0
87
0.072987
c38ac124aa00145b8a036028e35c373f39315aa7
5,917
py
Python
pyzoo/zoo/chronos/autots/model/auto_prophet.py
cabuliwallah/analytics-zoo
5e662bd01c5fc7eed412973119594cf2ecea8b11
[ "Apache-2.0" ]
1
2021-06-16T11:42:32.000Z
2021-06-16T11:42:32.000Z
pyzoo/zoo/chronos/autots/model/auto_prophet.py
cabuliwallah/analytics-zoo
5e662bd01c5fc7eed412973119594cf2ecea8b11
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/chronos/autots/model/auto_prophet.py
cabuliwallah/analytics-zoo
5e662bd01c5fc7eed412973119594cf2ecea8b11
[ "Apache-2.0" ]
null
null
null
# + # # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
44.825758
99
0.616022
5,200
0.878824
0
0
0
0
0
0
3,879
0.655569
c38ac90ca808d2dd0ca78ec136aaa0e419c7ab9a
88
py
Python
CodeUP/Python basic 100/6081.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
CodeUP/Python basic 100/6081.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
CodeUP/Python basic 100/6081.py
cmsong111/NJ_code
2df6176d179e168a2789a825ddeb977a82eb8d97
[ "MIT" ]
null
null
null
n = int(input(),16) for i in range(1,16): print("%X"%n,"*%X"%i,"=%X"%(n*i),sep="")
17.6
44
0.454545
0
0
0
0
0
0
0
0
16
0.181818
c38bc899014dd58543369ec2535371a13a21d780
129
py
Python
sapi_app/admin.py
calixo888/sapi
a2ff327795a7ea088cb158f7738af9121e465a08
[ "MIT" ]
null
null
null
sapi_app/admin.py
calixo888/sapi
a2ff327795a7ea088cb158f7738af9121e465a08
[ "MIT" ]
7
2020-06-06T01:14:59.000Z
2022-02-10T09:21:28.000Z
sapi_app/admin.py
calixo888/sapi
a2ff327795a7ea088cb158f7738af9121e465a08
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models admin.site.register(models.APIKey) admin.site.register(models.JSONRecord)
21.5
38
0.821705
0
0
0
0
0
0
0
0
0
0
c38be7eb99340230dc41782be5bfea2761dd7514
4,882
py
Python
process-data.py
RE-Lab-Projects/TRY_DE_2015_2045
419c665fd0f693accd5fc72ab352f0b53b1d1008
[ "MIT" ]
1
2021-07-15T12:06:03.000Z
2021-07-15T12:06:03.000Z
process-data.py
RE-Lab-Projects/TRY_DE_2015_2045
419c665fd0f693accd5fc72ab352f0b53b1d1008
[ "MIT" ]
null
null
null
process-data.py
RE-Lab-Projects/TRY_DE_2015_2045
419c665fd0f693accd5fc72ab352f0b53b1d1008
[ "MIT" ]
null
null
null
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% import pandas as pd import glob import os # %% # Read and format raw data and save to csv # Pattern for the dataset names: TRY_[1-15]_[a,w,s]_[2015,2045] with # 1-15 -> test reference region number # a,w,s -> average, extreme w...
55.477273
152
0.447358
0
0
0
0
0
0
0
0
1,967
0.402909
c38cd67552cc0c16f9183da6e9feae5e2b7e61f8
1,100
py
Python
twelve-days/twelve_days.py
Isaac-Tolu/exercism-python
17c26b446e1f79a24daf6736dcf9982c16d06c50
[ "MIT" ]
null
null
null
twelve-days/twelve_days.py
Isaac-Tolu/exercism-python
17c26b446e1f79a24daf6736dcf9982c16d06c50
[ "MIT" ]
null
null
null
twelve-days/twelve_days.py
Isaac-Tolu/exercism-python
17c26b446e1f79a24daf6736dcf9982c16d06c50
[ "MIT" ]
null
null
null
structure = [ ('first', 'a Partridge in a Pear Tree.'), ('second', 'two Turtle Doves, '), ('third', 'three French Hens, '), ('fourth', 'four Calling Birds, '), ('fifth', 'five Gold Rings, '), ('sixth', 'six Geese-a-Laying, '), ('seventh', 'seven Swans-a-Swimming, '), ('eighth', 'eight Ma...
28.205128
73
0.597273
0
0
0
0
0
0
0
0
463
0.420909
c38ce11c9e42c5f4b8653751b56d5c8f4e4e9b17
6,695
py
Python
pluralforms.py
might-and-magic/mm678_i18n
ddc37c743ac37169908641dcd5328a7ccae5138f
[ "MIT" ]
17
2020-02-25T14:37:23.000Z
2022-02-21T15:33:09.000Z
pluralforms.py
tomchen/csv2po
75e53fbc5c473b16e8dac153ee99793fad0cd5d0
[ "MIT" ]
1
2022-01-09T02:14:56.000Z
2022-02-13T10:08:11.000Z
pluralforms.py
tomchen/csv2po
75e53fbc5c473b16e8dac153ee99793fad0cd5d0
[ "MIT" ]
3
2020-10-06T20:38:13.000Z
2021-02-17T02:11:17.000Z
# The list is from http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html pluralforms = { 'ay': 'nplurals=1; plural=0;', 'bo': 'nplurals=1; plural=0;', 'cgg': 'nplurals=1; plural=0;', 'dz': 'nplurals=1; plural=0;', 'id': 'nplurals=1; plural=0;', 'ja': 'nplurals=1; plural=0;', 'jbo':...
45.544218
111
0.494548
0
0
0
0
0
0
0
0
6,105
0.911875
c38d8ac60747c245aab0ce791acabf2f1970e557
2,649
py
Python
vspace_utils/views.py
visualspace/django-vspace-utils
9bf86354f8dbcf8ee8c308345836f824e2cd7a63
[ "BSD-3-Clause" ]
null
null
null
vspace_utils/views.py
visualspace/django-vspace-utils
9bf86354f8dbcf8ee8c308345836f824e2cd7a63
[ "BSD-3-Clause" ]
null
null
null
vspace_utils/views.py
visualspace/django-vspace-utils
9bf86354f8dbcf8ee8c308345836f824e2cd7a63
[ "BSD-3-Clause" ]
null
null
null
import logging logger = logging.getLogger(__name__) from django.views.generic import TemplateView from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from django.template import RequestContext, Context, loader from django.http import HttpResponseServerError ...
31.164706
82
0.651944
1,677
0.633069
0
0
147
0.055493
0
0
1,498
0.565496
c38df6c81925bf5c22b6fcfcfc835d261c43fac7
896
py
Python
Tests/test_validation_all_contacts_info.py
nprockaya/python_training
fe7643f59cc899ebd806d8b1747df0775e9fcf24
[ "Apache-2.0" ]
1
2021-02-10T12:48:58.000Z
2021-02-10T12:48:58.000Z
Tests/test_validation_all_contacts_info.py
nprockaya/python_training
fe7643f59cc899ebd806d8b1747df0775e9fcf24
[ "Apache-2.0" ]
null
null
null
Tests/test_validation_all_contacts_info.py
nprockaya/python_training
fe7643f59cc899ebd806d8b1747df0775e9fcf24
[ "Apache-2.0" ]
null
null
null
from Utils.string_utils import clear_spaces as clear def test_validation_all_contacts_info(app, db): ui_contacts_list = app.contact.get_contact_list() db_contacts_list = db.get_contact_list() assert len(ui_contacts_list) == len(db_contacts_list) for ui_contact in ui_contacts_list: db_contact =...
56
117
0.767857
0
0
0
0
0
0
0
0
0
0
c38e421262f215fdac54068119047281c12a3966
1,423
py
Python
get_max_audio.py
ykvch/QABox
41e00a9d75963773b52b002e41c8a4d77497fdbd
[ "BSD-2-Clause" ]
null
null
null
get_max_audio.py
ykvch/QABox
41e00a9d75963773b52b002e41c8a4d77497fdbd
[ "BSD-2-Clause" ]
null
null
null
get_max_audio.py
ykvch/QABox
41e00a9d75963773b52b002e41c8a4d77497fdbd
[ "BSD-2-Clause" ]
null
null
null
""" Test obtaining peak audio values with PyAV: time python pyav_audio_vol.py ~/Videos/sample.mp4 Reference: https://ffmpeg.org/doxygen/trunk/group__lavu__sampfmts.html """ import sys import av from numpy import abs, sqrt, vdot, fromiter, float64, uint8, average, frombuffer, mean import matplotlib.pyplot as plt vid...
30.276596
107
0.718904
0
0
0
0
0
0
0
0
828
0.581869
c38e887d0a177dd20b88ba2a70783be48abc646b
937
py
Python
python_sandbox/python_sandbox/effective_python/item25.py
jduan/cosmos
c4bdc5b800c9b51084daf874769ac73e1c4b7dd5
[ "MIT" ]
null
null
null
python_sandbox/python_sandbox/effective_python/item25.py
jduan/cosmos
c4bdc5b800c9b51084daf874769ac73e1c4b7dd5
[ "MIT" ]
null
null
null
python_sandbox/python_sandbox/effective_python/item25.py
jduan/cosmos
c4bdc5b800c9b51084daf874769ac73e1c4b7dd5
[ "MIT" ]
null
null
null
# Things to Remember # # Python’s standard method resolution order (MRO) solves the problems of superclass # initialization order and diamond inheritance. # # Always use the "super" built-in function to initialize parent classes. class MyBaseClass(object): def __init__(self, value): self.value = value c...
27.558824
90
0.681964
695
0.740149
0
0
0
0
0
0
447
0.476038
c390d3f41e8a75d80d2f51aece360b98c9e31e37
1,164
py
Python
ml_app/src/api/serve.py
marcostx/mlops-playground
7c170e7a94a5a27f67884f63574ce79efd9ffdd6
[ "MIT" ]
null
null
null
ml_app/src/api/serve.py
marcostx/mlops-playground
7c170e7a94a5a27f67884f63574ce79efd9ffdd6
[ "MIT" ]
null
null
null
ml_app/src/api/serve.py
marcostx/mlops-playground
7c170e7a94a5a27f67884f63574ce79efd9ffdd6
[ "MIT" ]
null
null
null
from flask import Blueprint, request, jsonify from flasgger import Swagger, LazyJSONEncoder from flasgger.utils import swag_from from src.model.test import make_prediction from src.api.config import get_logger _logger = get_logger(logger_name=__name__) prediction_app = Blueprint('prediction_app', __name__) @predict...
28.390244
62
0.665808
0
0
0
0
849
0.729381
0
0
368
0.316151
c390e18727737c534ccf5f5efd296570308b2ff9
921
py
Python
visualization/colorbar.py
CAMI-DKFZ/simpa_paper_experiments
f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc
[ "MIT" ]
null
null
null
visualization/colorbar.py
CAMI-DKFZ/simpa_paper_experiments
f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc
[ "MIT" ]
null
null
null
visualization/colorbar.py
CAMI-DKFZ/simpa_paper_experiments
f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Computer Assisted Medical Interventions Group, DKFZ # SPDX-FileCopyrightText: 2021 Janek Groehl # SPDX-License-Identifier: MIT import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable def col_bar(image, fontsize=None, fontname=None, ticks=None): ax = ...
35.423077
82
0.703583
0
0
0
0
0
0
0
0
270
0.29316
c39142fb863e925990bc60f0387ec99b2c445a57
2,365
py
Python
PEARSON_CORRELATION/global.py
madgik/mip-algorithms
58d931adccaba510432568a0cf8fa30a8f5443a0
[ "MIT" ]
2
2018-11-22T10:32:16.000Z
2019-02-06T14:26:38.000Z
PEARSON_CORRELATION/global.py
madgik/mip-algorithms
58d931adccaba510432568a0cf8fa30a8f5443a0
[ "MIT" ]
null
null
null
PEARSON_CORRELATION/global.py
madgik/mip-algorithms
58d931adccaba510432568a0cf8fa30a8f5443a0
[ "MIT" ]
4
2016-02-17T07:37:55.000Z
2019-02-07T14:03:51.000Z
import sys import math import json from os import path sys.path.append(path.dirname(path.dirname(path.abspath(__file__))) + '/utils/') import numpy as np import scipy.special as special from algorithm_utils import get_parameters, set_algorithms_output_data from pearsonc_lib import PearsonCorrelationLocalD...
34.779412
104
0.550951
0
0
0
0
0
0
0
0
397
0.167865
c3921dc91324fc061413450e3a3c0772670a6ac6
5,245
py
Python
varats-core/varats/table/tables.py
J03D03/VaRA-Tool-Suite
f11a8b1b66e2adf37f591bb058073753e614e5ad
[ "BSD-2-Clause" ]
null
null
null
varats-core/varats/table/tables.py
J03D03/VaRA-Tool-Suite
f11a8b1b66e2adf37f591bb058073753e614e5ad
[ "BSD-2-Clause" ]
null
null
null
varats-core/varats/table/tables.py
J03D03/VaRA-Tool-Suite
f11a8b1b66e2adf37f591bb058073753e614e5ad
[ "BSD-2-Clause" ]
null
null
null
"""General tables module.""" import logging import re import typing as tp from pathlib import Path from varats.mapping.commit_map import create_lazy_commit_map_loader from varats.plot.plot_utils import check_required_args from varats.utils.settings import vara_cfg if tp.TYPE_CHECKING: import varats.table.table as...
30.317919
79
0.635844
1,716
0.327169
0
0
1,486
0.283317
0
0
1,807
0.344519
c392765fa8ab915930e11ed27d0e54982c3f4a1f
16,436
py
Python
sogs/model/user.py
Bilb/session-pysogs
eb6f13e26d16f0119e87b41ffb86813c3c177ab9
[ "MIT" ]
1
2022-03-08T06:34:34.000Z
2022-03-08T06:34:34.000Z
sogs/model/user.py
Bilb/session-pysogs
eb6f13e26d16f0119e87b41ffb86813c3c177ab9
[ "MIT" ]
null
null
null
sogs/model/user.py
Bilb/session-pysogs
eb6f13e26d16f0119e87b41ffb86813c3c177ab9
[ "MIT" ]
null
null
null
from __future__ import annotations from .. import crypto, db, config from ..db import query from ..web import app from .exc import NoSuchUser, BadPermission from typing import Optional import time class User: """ Class representing a user stored in the database. Properties: id - the database pr...
36.123077
100
0.563945
15,647
0.951764
0
0
393
0.023905
0
0
8,202
0.498905
c392ee111fc105d1add3bfe72b6ea6451c22de9b
71
py
Python
scanapi/__init__.py
marcuxyz/scanapi
e42bcde18d4219fc603b0b9ee8f0b67d4085ec63
[ "MIT" ]
2
2020-08-26T01:54:19.000Z
2021-07-23T14:06:34.000Z
scanapi/__init__.py
marcuxyz/scanapi
e42bcde18d4219fc603b0b9ee8f0b67d4085ec63
[ "MIT" ]
null
null
null
scanapi/__init__.py
marcuxyz/scanapi
e42bcde18d4219fc603b0b9ee8f0b67d4085ec63
[ "MIT" ]
null
null
null
name = "scanapi" from scanapi.__main__ import main __all__ = ["main"]
14.2
33
0.71831
0
0
0
0
0
0
0
0
15
0.211268
c3968e4ef9d804ef0d6ab726de35f89bf44cf576
917
py
Python
abstract/test1.py
Vayne-Lover/Python
79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1
[ "Apache-2.0" ]
1
2016-07-14T06:16:58.000Z
2016-07-14T06:16:58.000Z
abstract/test1.py
Vayne-Lover/Python
79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1
[ "Apache-2.0" ]
null
null
null
abstract/test1.py
Vayne-Lover/Python
79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python #fib=[0,1] #for i in range(0,8): # fib.append(fib[-2]+fib[-1]) #print fib #def fibs(n): # fib=[0,1] # for i in range(n-2): # fib.append(fib[-2]+fib[-1]) # return fib #print fibs(5) #def square(x): # 'Calculate x*x.' # return x*x ##print square._doc_ #help(square) #def inc(x): # x[0]=x[...
14.555556
34
0.561614
0
0
0
0
0
0
0
0
692
0.754635
c399a1a6b7150f1ef7e588609accefc8ef3b5c69
2,197
py
Python
Tuples.py
luiz-fischer/python
03e85c3456bdee675a246a9d78dde17e351ce2f4
[ "MIT" ]
1
2021-07-20T19:01:17.000Z
2021-07-20T19:01:17.000Z
Tuples.py
luiz-fischer/Python
03e85c3456bdee675a246a9d78dde17e351ce2f4
[ "MIT" ]
null
null
null
Tuples.py
luiz-fischer/Python
03e85c3456bdee675a246a9d78dde17e351ce2f4
[ "MIT" ]
null
null
null
#A tuple is a collection which is ordered and unchangeable. In Python tuples are written with #round brackets. #tuple thistuple = ["apple", "banana", "cherry"] print(thistuple) #Access Items thistuple = ["apple", "banana", "cherry"] print(thistuple[1]) #Negative Indexing thistuple = ["apple", "banana", "cherry"] pri...
21.539216
110
0.665908
0
0
0
0
0
0
0
0
944
0.429677
c39b867276d04175f6c88ecc9593614affbf2fda
12,208
py
Python
legacy/modUtils.py
andreagalle/pigcasso
e9b60fb595ba6bd2c402a5b4b16665d4d41fa748
[ "MIT" ]
null
null
null
legacy/modUtils.py
andreagalle/pigcasso
e9b60fb595ba6bd2c402a5b4b16665d4d41fa748
[ "MIT" ]
4
2020-06-13T09:17:15.000Z
2020-06-17T16:26:03.000Z
legacy/modUtils.py
andreagalle/pigcasso
e9b60fb595ba6bd2c402a5b4b16665d4d41fa748
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: a.grebert """ import draft as fct import numpy as np import string import time import os, sys, shutil import matplotlib.pyplot as plt from xml.dom.minidom import parse import xml.dom.minidom def time_stat(tstart): minutes, seconds= divmod(time.time()-tstart, 60) if minute...
30.984772
114
0.593627
0
0
0
0
0
0
0
0
2,244
0.183814
c39c355b6d0a784ab7ced2706035abd7d88c4b92
871
py
Python
avconv/avconv_stdout.py
suchkultur/sidomotest
5fa813aeb77b856c90b96fbfe0b9a7eff669f304
[ "MIT" ]
null
null
null
avconv/avconv_stdout.py
suchkultur/sidomotest
5fa813aeb77b856c90b96fbfe0b9a7eff669f304
[ "MIT" ]
null
null
null
avconv/avconv_stdout.py
suchkultur/sidomotest
5fa813aeb77b856c90b96fbfe0b9a7eff669f304
[ "MIT" ]
null
null
null
"""A python FFMPEG module built from sdpm.""" from __future__ import unicode_literals from sidomo import Container def transcode_file(url): """Any format --> 20000 Hz mono wav audio.""" with Container( 'suchkultur/avconv', memory_limit_gb=2, stderr=False ) as c: for line in...
30.034483
111
0.590126
0
0
476
0.546498
0
0
0
0
500
0.574053
c39ee19e15e090d8880bdf7df0d8e984b7c43a6a
3,401
py
Python
optimizers/reg_params.py
Coricos/Challenger
b5f8ec49f72836779943109efa8eb88695bfd7d1
[ "Apache-2.0" ]
15
2019-09-06T15:49:12.000Z
2021-12-15T08:10:25.000Z
optimizers/reg_params.py
Coricos/Challenger
b5f8ec49f72836779943109efa8eb88695bfd7d1
[ "Apache-2.0" ]
null
null
null
optimizers/reg_params.py
Coricos/Challenger
b5f8ec49f72836779943109efa8eb88695bfd7d1
[ "Apache-2.0" ]
2
2020-01-05T03:40:09.000Z
2021-12-15T08:10:29.000Z
# Author: DINDIN Meryll # Date: 02/03/2019 # Project: optimizers SPACE = dict() SPACE['SGD'] = { 'loss': ('choice', ['squared_loss', 'huber', 'epsilon_insensitive', 'squared_epsilon_insensitive']), 'penalty': ('choice', ['none', 'l1', 'l2', 'elasticnet']), 'alpha': ('uniform_log', (1e-10, 1.0))...
21.801282
104
0.541017
0
0
0
0
0
0
0
0
1,868
0.54925
c39f5915d95ec3b9e582fafe6c4ebb268f5f0a43
132
py
Python
test/workflow_manager/test.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
24
2021-12-02T01:00:54.000Z
2022-03-27T00:50:28.000Z
test/workflow_manager/test.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
null
null
null
test/workflow_manager/test.py
lzjzx1122/FaaSFlow
c4a32a04797770c21fe6a0dcacd85ac27a3d29ec
[ "Apache-2.0" ]
3
2021-12-02T01:00:47.000Z
2022-03-04T07:33:09.000Z
import requests url = 'http://localhost:7000/run' data = {'workflow': 'wordcount', 'request_id': '1'} requests.post(url, json=data)
26.4
51
0.69697
0
0
0
0
0
0
0
0
63
0.477273
c39f85552fb76ed1c43748aba7b313d0e063acf8
243
py
Python
BasicCache/BasicCacheModule.py
prodProject/WorkkerAndConsumerServer
95496f026109279c9891e08af46040c7b9487c81
[ "MIT" ]
null
null
null
BasicCache/BasicCacheModule.py
prodProject/WorkkerAndConsumerServer
95496f026109279c9891e08af46040c7b9487c81
[ "MIT" ]
null
null
null
BasicCache/BasicCacheModule.py
prodProject/WorkkerAndConsumerServer
95496f026109279c9891e08af46040c7b9487c81
[ "MIT" ]
null
null
null
from werkzeug.contrib.cache import SimpleCache class BasicCache: cache = SimpleCache() def set(self, key, value): self.cache.set(key, value, timeout=50 * 1000) def get(self, key): return self.cache.get(key=key)
20.25
53
0.658436
193
0.794239
0
0
0
0
0
0
0
0
c39f85de6a95367753b881619c3146bcc06df83c
95
py
Python
cheapiesgr/apps.py
papachristoumarios/ntua-softeng
678b878eea144176eb8623ce52efd1b0bdfa1e5a
[ "MIT" ]
10
2019-03-12T12:44:11.000Z
2021-11-10T14:28:00.000Z
cheapiesgr/apps.py
papachristoumarios/ntua-softeng
678b878eea144176eb8623ce52efd1b0bdfa1e5a
[ "MIT" ]
null
null
null
cheapiesgr/apps.py
papachristoumarios/ntua-softeng
678b878eea144176eb8623ce52efd1b0bdfa1e5a
[ "MIT" ]
5
2019-05-24T08:37:11.000Z
2021-03-14T14:58:36.000Z
from django.apps import AppConfig class CheapiesgrConfig(AppConfig): name = 'cheapiesgr'
15.833333
34
0.768421
58
0.610526
0
0
0
0
0
0
12
0.126316
c39fc66cbbaf2d7063e82766c69335a2ff9ae3b8
14,626
py
Python
src/resipy/compress_utils.py
sgreene8/resipy
297533fd1a2f0443f4a7a062b36c8ab7df5e5e63
[ "MIT" ]
2
2019-05-06T02:55:40.000Z
2019-05-22T09:53:19.000Z
src/resipy/compress_utils.py
sgreene8/resipy
297533fd1a2f0443f4a7a062b36c8ab7df5e5e63
[ "MIT" ]
null
null
null
src/resipy/compress_utils.py
sgreene8/resipy
297533fd1a2f0443f4a7a062b36c8ab7df5e5e63
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 """ Utilities for performing stochastic matrix and vector compressions. """ import numpy import misc_c_utils import near_uniform def fri_subd(vec, num_div, sub_weights, n_samp): """ Perform FRI compression on a vector whose first elements, vec[i] are each subdivided into equal segments...
36.84131
104
0.673185
0
0
0
0
0
0
0
0
7,412
0.506769
c3a1abb9b65cf75cfb9749d348aca024d63998e3
5,590
py
Python
venv/lib/python3.8/site-packages/seaborn_qqplot/plots.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
6
2019-06-16T15:01:47.000Z
2021-11-01T00:05:19.000Z
venv/lib/python3.8/site-packages/seaborn_qqplot/plots.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
11
2019-06-16T23:10:12.000Z
2021-07-06T14:24:07.000Z
venv/lib/python3.8/site-packages/seaborn_qqplot/plots.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
2
2020-04-09T15:35:25.000Z
2020-10-11T20:44:25.000Z
# BSD 3-Clause License # # Copyright (c) 2019, Rene Jean Corneille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, thi...
33.473054
140
0.64025
3,695
0.661002
0
0
0
0
0
0
2,044
0.365653
c3a29f62d83a316fed3011a212b3a35c83e9c12c
295
py
Python
intermediate/mutations_nainys.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
16
2018-10-05T07:35:06.000Z
2021-10-02T12:12:52.000Z
intermediate/mutations_nainys.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
50
2018-10-04T00:04:24.000Z
2019-10-25T16:29:58.000Z
intermediate/mutations_nainys.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
115
2018-10-04T02:42:18.000Z
2021-01-27T17:34:21.000Z
def mutations(input_list): print input_list[0],input_list[1] first = list(input_list[0].lower()) second = list(input_list[1].lower()) try: for ele in second: first.remove(ele) except: return False return True print mutations(["hello","heel"]) print mutations(["Alien","line"])
16.388889
37
0.691525
0
0
0
0
0
0
0
0
26
0.088136
c3a46a64223b4d7935b2ce93b83a5ab0a1585a6c
54
py
Python
lang/py/cookbook/v2/source/cb2_6_0_exm_14.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_6_0_exm_14.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_6_0_exm_14.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
Someclass = type('Someclass', (Somebase,), {'x': 23})
27
53
0.611111
0
0
0
0
0
0
0
0
14
0.259259
c3a4bac81af5bc3661970906bcc01a696388f5ca
2,131
py
Python
src/main/resources/google/cloud/compute/instance/compute_create_running.py
s-lal/xld-google-cloud-compute-plugin
28389184a6df8bdee33893da6030499384a2b565
[ "MIT" ]
null
null
null
src/main/resources/google/cloud/compute/instance/compute_create_running.py
s-lal/xld-google-cloud-compute-plugin
28389184a6df8bdee33893da6030499384a2b565
[ "MIT" ]
null
null
null
src/main/resources/google/cloud/compute/instance/compute_create_running.py
s-lal/xld-google-cloud-compute-plugin
28389184a6df8bdee33893da6030499384a2b565
[ "MIT" ]
null
null
null
# # Copyright 2020 XEBIALABS # # 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, distribute, subli...
68.741935
462
0.779916
0
0
0
0
0
0
0
0
1,177
0.552323
c3a5ae7192b62bac66c1b709fe6b5e22475b2e41
1,599
py
Python
backend/flask-api/src/servicos/movimento_servico.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/src/servicos/movimento_servico.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
null
null
null
backend/flask-api/src/servicos/movimento_servico.py
lucasbibianot/inova-cnj-time16
e621d7027bd462d348e233ffd6ed88648c53704b
[ "Apache-2.0" ]
2
2020-10-19T22:03:31.000Z
2020-11-29T21:22:33.000Z
import re from ..entidades.modelo_fluxo import Movimento from ..persistencia.database import db from sqlalchemy.orm import aliased, load_only, Load, exc from flask_restful import abort from flask import Response import json def incluir_movimento(parametros): movimento = Movimento(**parametros) movimento.id_mo...
28.052632
122
0.703565
0
0
0
0
0
0
0
0
75
0.046904
c3a5e021cbcc85ebb4f94bf78689f3053c0f3211
243
py
Python
PycharmProjects/pythonexercicios/aula014/ex064.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
PycharmProjects/pythonexercicios/aula014/ex064.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
PycharmProjects/pythonexercicios/aula014/ex064.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
n1 = int(input("digite um valor: [999 para parar] ")) cont = 0 soma = n1 while n1 != 999: soma += n1 cont += 1 n1 = int(input("Digite um valor: ")) print("Você digitou {} numeros e a soma entre eles foi de {}!".format(cont, soma))
27
82
0.604938
0
0
0
0
0
0
0
0
112
0.459016
c3a6dfb6d53c3397fca6347f04d68006bd544731
2,468
py
Python
figures/seal_delays.py
aditya-sengupta/sealrtc
cadc01d63bd07590b30decbe5fb57c79b3e68503
[ "CC0-1.0" ]
null
null
null
figures/seal_delays.py
aditya-sengupta/sealrtc
cadc01d63bd07590b30decbe5fb57c79b3e68503
[ "CC0-1.0" ]
null
null
null
figures/seal_delays.py
aditya-sengupta/sealrtc
cadc01d63bd07590b30decbe5fb57c79b3e68503
[ "CC0-1.0" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt import sys import re from os.path import join fs = 100 def stamp_to_seconds(t): h, m, s, ms = [int(x) for x in re.search("(\d+):(\d+):(\d+),(\d+)", t).groups()] return 3600 * h + 60 * m + s + 0.001 * ms good_runs = ["07_02_14", "07_04_45", "08_11_19", "...
35.768116
90
0.608185
0
0
0
0
0
0
0
0
490
0.198541
c3a78423413c586b43d5c6f2ba43237b6c4989d3
514
py
Python
Competive Programming/CodeVitaV7/MockVita/problem_d.py
RitamDey/My-Simple-Programs
147b455a6a40c371ec894ce979e8a61d242e03bd
[ "Unlicense" ]
2
2016-10-14T16:58:05.000Z
2017-05-04T04:59:18.000Z
Competive Programming/CodeVitaV7/MockVita/problem_d.py
GreenJoey/My-Simple-Programs
147b455a6a40c371ec894ce979e8a61d242e03bd
[ "Unlicense" ]
null
null
null
Competive Programming/CodeVitaV7/MockVita/problem_d.py
GreenJoey/My-Simple-Programs
147b455a6a40c371ec894ce979e8a61d242e03bd
[ "Unlicense" ]
null
null
null
def mul(arr): res = arr[0] for i in arr[1:]: res *= i return res def gen_subarray(arr, n): for i in range(1 << n): y = 1 for j in range(n): if i & (1 << j): y *= arr[j] yield y def main(): n, p1, p2 = map(int, input().split(",")) ...
15.117647
44
0.424125
0
0
167
0.324903
0
0
0
0
6
0.011673
c3ab8d6929c69624d061fbf0aa9d0caa473c282b
9,205
py
Python
prototypes/python_prototype/empiricalEstimation.py
Elbercaio/adaptive-engine
c51661ad64d95c7ed36508c90787521261038525
[ "Apache-2.0" ]
null
null
null
prototypes/python_prototype/empiricalEstimation.py
Elbercaio/adaptive-engine
c51661ad64d95c7ed36508c90787521261038525
[ "Apache-2.0" ]
null
null
null
prototypes/python_prototype/empiricalEstimation.py
Elbercaio/adaptive-engine
c51661ad64d95c7ed36508c90787521261038525
[ "Apache-2.0" ]
null
null
null
##Author: Ilia Rushkin, VPAL Research, Harvard University, Cambridge, MA, USA ###################################### ####Estimation functions are below#### ###################################### import numpy as np def knowledge(self, problems, correctness): """ ##This function finds the empirical knowledge ...
33.841912
216
0.5283
0
0
0
0
0
0
0
0
2,975
0.323194
c3abc0a68a85157f3c2c372d3a89b0bb5b081f02
352
py
Python
main.py
DHRUV-CODER/Fortnite-Bot
65217baf85169797732ec046c7a5940f46ef9cc7
[ "MIT" ]
1
2021-03-07T10:17:09.000Z
2021-03-07T10:17:09.000Z
main.py
DHRUV-CODER/Fortnite-Bot
65217baf85169797732ec046c7a5940f46ef9cc7
[ "MIT" ]
2
2021-02-05T13:42:45.000Z
2021-02-05T13:43:25.000Z
main.py
DHRUV-CODER/Fortnite-Bot
65217baf85169797732ec046c7a5940f46ef9cc7
[ "MIT" ]
null
null
null
import os import environ import keep_alive from discord.ext import commands token = os.environ.get("TOKEN") bot = commands.Bot(command_prefix="") for filename in os.listdir("./cogs"): if filename.endswith(".py") and filename != "__init__.py": bot.load_extension(f'cogs.{filename[:-3]}') keep_alive.ke...
19.555556
62
0.693182
0
0
0
0
0
0
0
0
58
0.164773
c3ad330362e01dc7f15821884e5a6bbe50194e31
953
py
Python
scrap2rst/cmd.py
shimizukawa/scrap2rst
d6cab254d03f8e161f210e793083d8b26b44abd7
[ "MIT" ]
5
2019-06-29T03:17:09.000Z
2021-06-19T20:41:04.000Z
scrap2rst/cmd.py
shimizukawa/scrap2rst
d6cab254d03f8e161f210e793083d8b26b44abd7
[ "MIT" ]
24
2019-08-14T23:07:43.000Z
2019-09-30T04:59:42.000Z
scrap2rst/cmd.py
shimizukawa/scrap2rst
d6cab254d03f8e161f210e793083d8b26b44abd7
[ "MIT" ]
null
null
null
""" command-line interface for scrap2rst """ import sys import logging import argparse from scrap2rst import __version__ from scrap2rst.logging import setup_logger from scrap2rst.converter import convert logger = logging.getLogger(__name__) def get_argparser(): p = argparse.ArgumentParser() p.add_argument('...
24.435897
90
0.673662
0
0
0
0
0
0
0
0
193
0.202518
c3af3f55df4b117b6e91dedf512a6d86c7573fca
8,605
py
Python
pricing/__init__.py
troylar/aws-pricing-importer
6fabbea533e07e1fad1f3840a28e2a0fb435c888
[ "MIT" ]
3
2019-04-10T13:46:51.000Z
2019-04-16T14:32:55.000Z
pricing/__init__.py
troylar/aws-pricing-to-athena
6fabbea533e07e1fad1f3840a28e2a0fb435c888
[ "MIT" ]
1
2021-06-01T23:23:24.000Z
2021-06-01T23:23:24.000Z
pricing/__init__.py
troylar/aws-pricing-importer
6fabbea533e07e1fad1f3840a28e2a0fb435c888
[ "MIT" ]
null
null
null
import json import os import os.path import requests import csv import tempfile from io import StringIO import boto3 import time import urllib3 create_table = """ CREATE EXTERNAL TABLE `[OFFER]`( [COLUMNS] [PARTITION] ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde' STORED AS INPUTFORMAT 'org.apache...
40.399061
117
0.525276
7,948
0.923649
0
0
0
0
0
0
1,680
0.195235
c3b008c8303bfbb30f36a958105a103791dbc6b7
1,920
py
Python
ensembling.py
Masdevallia/3rd-place-Kaggle-SIIM-ISIC-Melanoma-Classification
69c9481c4f00961c52c1e4d580666b286deba6cf
[ "MIT" ]
14
2020-09-08T08:10:56.000Z
2022-03-16T05:47:46.000Z
ensembling.py
Masdevallia/3rd-place-Kaggle-SIIM-ISIC-Melanoma-Classification
69c9481c4f00961c52c1e4d580666b286deba6cf
[ "MIT" ]
null
null
null
ensembling.py
Masdevallia/3rd-place-Kaggle-SIIM-ISIC-Melanoma-Classification
69c9481c4f00961c52c1e4d580666b286deba6cf
[ "MIT" ]
8
2020-09-09T14:12:50.000Z
2021-09-11T16:27:39.000Z
import sys import argparse import pandas as pd import numpy as np import os def get_settings(): parser = argparse.ArgumentParser(description='Script to ensemble submissions.') parser.add_argument('--include_external', help='whether to include external data (1) or not (0).', default=0, type = int) ...
35.555556
113
0.70625
0
0
0
0
0
0
0
0
607
0.316146
c3b124b23b6ac439915246f3ba91242c0ab87d5c
1,927
py
Python
PythonStuff/hi.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
PythonStuff/hi.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
PythonStuff/hi.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
JDs = [] RAs = [] Decs = [] file = open("data.txt", 'r') data = [] for line in file: datum = line.split("\t") JDs.append(float(datum[0])) RAs.append(float(datum[1])) Decs.append(float(datum[2][:-1])) """ import matplotlib.pyplot as plt JDs = [2458281.856678, 2458281.857743, 2458281.85880...
52.081081
311
0.708874
0
0
0
0
0
0
0
0
1,716
0.890503
c3b1a662429cdada1fb29fdf45e27e026c0bbcf8
7,337
py
Python
src/dataStructures/elmtree_jtray.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/dataStructures/elmtree_jtray.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/dataStructures/elmtree_jtray.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.4 """ tray_data provides the data for the tray GUI. It handles the XML data and provides the neccessary interfaces. """ import tray_data import logging from util.trayErrors import PropertyNotFoundError log = logging.getLogger("xml_jtray") log.setLevel(logging.WARN) class J...
42.166667
108
0.592885
6,690
0.911817
0
0
0
0
0
0
2,124
0.289492
c3b239f366d0aa2e3fa43d5373d1a03a579fb69c
1,104
py
Python
tests/test_iter_ij_in_block.py
kalekundert/wellmap
05a9029807276ec29aea63db10c664ad2ede093c
[ "MIT" ]
7
2020-05-29T21:14:49.000Z
2022-01-25T15:35:17.000Z
tests/test_iter_ij_in_block.py
kalekundert/wellmap
05a9029807276ec29aea63db10c664ad2ede093c
[ "MIT" ]
24
2020-06-09T14:29:03.000Z
2022-03-25T22:43:24.000Z
tests/test_iter_ij_in_block.py
kalekundert/wellmap
05a9029807276ec29aea63db10c664ad2ede093c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest from wellmap import * @pytest.mark.parametrize( 'args, expected', [ (((0,0), 0, 0), []), (((0,0), 0, 1), []), (((0,0), 1, 0), []), (((0,0), 1, 1), [(0,0)]), (((0,0), 2, 1), [(0,0), (0,1)]), (((0,0), 1,...
30.666667
58
0.272645
0
0
0
0
1,042
0.943841
0
0
38
0.03442
c3b3565e61fd4a1d8b267a41d981a92c6d73f542
318
py
Python
lectures/slides_tex/example_sklearn.py
materialsvirtuallab/nano281
d527c5049aab3da99237cbff0cc749640b2c9c06
[ "BSD-3-Clause" ]
38
2019-12-23T13:14:53.000Z
2022-01-25T23:59:33.000Z
lectures/slides_tex/example_sklearn.py
materialsvirtuallab/nano281
d527c5049aab3da99237cbff0cc749640b2c9c06
[ "BSD-3-Clause" ]
null
null
null
lectures/slides_tex/example_sklearn.py
materialsvirtuallab/nano281
d527c5049aab3da99237cbff0cc749640b2c9c06
[ "BSD-3-Clause" ]
18
2020-02-10T20:43:39.000Z
2022-01-21T13:45:36.000Z
model = Model(**params) # Init a model with parameters. model.get_params() # Get model parameters. model.set_params(**params) # Set model parameters model.fit(X, y) # Fit the model with a dataset model.score(X, y) # Provides the score for the dataset. model.predict(X) # Make a prediction using fitted model.
53
59
0.72327
0
0
0
0
0
0
0
0
186
0.584906
c3b44be37f288d5b48b6f0177fd4a4019cc7b623
215
py
Python
py-server/src/enum/index.py
Jonnytoshen/wind-layer
514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5
[ "BSD-3-Clause" ]
285
2017-12-16T13:29:27.000Z
2022-03-28T02:59:08.000Z
py-server/src/enum/index.py
Jonnytoshen/wind-layer
514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5
[ "BSD-3-Clause" ]
104
2018-01-01T01:40:13.000Z
2022-03-26T18:20:45.000Z
py-server/src/enum/index.py
Jonnytoshen/wind-layer
514e9b9c76b6d72faac21543fd5fb1c43e6bd9b5
[ "BSD-3-Clause" ]
97
2017-12-18T08:05:21.000Z
2022-03-28T15:49:38.000Z
from enum import Enum class noaa_site_label(Enum): DIRECTORY = 'directory:' FILE_LIST = '\n**NEW** Select one file only ' SURFACES = 'select the levels desired:' VARIABLES = 'select the variables desired:'
26.875
47
0.716279
191
0.888372
0
0
0
0
0
0
104
0.483721
c3b57eaa438b0e0ff2f40a515ff88ec6d01bf26c
5,202
py
Python
roots/format.py
TomRegan/roots_legacy
cf145d80b526b7142f869eb5d869a27c3d7bb1eb
[ "Apache-2.0" ]
null
null
null
roots/format.py
TomRegan/roots_legacy
cf145d80b526b7142f869eb5d869a27c3d7bb1eb
[ "Apache-2.0" ]
null
null
null
roots/format.py
TomRegan/roots_legacy
cf145d80b526b7142f869eb5d869a27c3d7bb1eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2015 Tom Regan # # 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...
36.377622
79
0.572472
4,362
0.838524
0
0
0
0
0
0
1,616
0.31065
c3b58ba311536941e44b47fb58812f09838e1ac8
11,567
py
Python
frost/client.py
Sigvesor/frost-client
3c0cf2af27d1ab471ce06331b7b0e6cc87f421e6
[ "MIT" ]
7
2019-02-17T05:00:33.000Z
2020-11-10T13:13:26.000Z
frost/client.py
Sigvesor/frost-client
3c0cf2af27d1ab471ce06331b7b0e6cc87f421e6
[ "MIT" ]
2
2020-03-24T18:23:18.000Z
2020-03-31T10:22:02.000Z
frost/client.py
Sigvesor/frost-client
3c0cf2af27d1ab471ce06331b7b0e6cc87f421e6
[ "MIT" ]
1
2020-04-03T23:53:30.000Z
2020-04-03T23:53:30.000Z
import os from urllib.parse import urljoin import requests from requests.auth import HTTPBasicAuth from .models import SourcesResponse from .models import AvailableTimeSeriesResponse from .models import ObservationsResponse FROST_API_KEY = os.environ.get('FROST_API_KEY', None) class APIError(Exception): """ Rais...
42.369963
79
0.61736
11,282
0.975361
0
0
0
0
0
0
8,935
0.772456
c3b5c82cda0e55aa0b6ba4cf5db98b3355aacc13
3,411
py
Python
llvd/downloader.py
rahil-sh/llvd
e0e55db66b0a7a828f6040cbac8679c304e1c5db
[ "MIT" ]
4
2022-01-03T08:19:08.000Z
2022-02-04T16:51:39.000Z
llvd/downloader.py
rahil-sh/llvd
e0e55db66b0a7a828f6040cbac8679c304e1c5db
[ "MIT" ]
null
null
null
llvd/downloader.py
rahil-sh/llvd
e0e55db66b0a7a828f6040cbac8679c304e1c5db
[ "MIT" ]
1
2022-01-03T08:19:09.000Z
2022-01-03T08:19:09.000Z
from tqdm import tqdm from itertools import starmap import requests import time import click import re import os from llvd.utils import clean_name, subtitles_time_format, throttle def download_video(url, index, filename, path, delay=None): """ Downloads a video and saves it by its name plus index for eas...
35.164948
101
0.562005
0
0
0
0
0
0
0
0
744
0.218118
c3b8c7827cbab7f0180e68f8f0d4f4b5ef34c2d4
1,902
py
Python
addNextMonth.py
David12312341/Carmelorto
d2a7fe6522940db1d4ee186c5ff335c03e3622da
[ "MIT" ]
null
null
null
addNextMonth.py
David12312341/Carmelorto
d2a7fe6522940db1d4ee186c5ff335c03e3622da
[ "MIT" ]
null
null
null
addNextMonth.py
David12312341/Carmelorto
d2a7fe6522940db1d4ee186c5ff335c03e3622da
[ "MIT" ]
null
null
null
import psycopg2 import calendar import sys import os # TODO: add ability to either add entire year or specific month from command line # TODO: Implement argparse to add functionality to CLI def addYear(cur,year): # Add the months of the specified year into the Database monthList = [] monthNameList = cale...
30.677419
155
0.609359
0
0
0
0
0
0
0
0
894
0.470032
c3b8ce5fd606e50e10f8ca74fe1352d18e7c8eec
3,938
py
Python
drivers/plot_Porb_Prot.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
drivers/plot_Porb_Prot.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
drivers/plot_Porb_Prot.py
lgbouma/earhart
1d2b65d58655725f43c1bf9705b897bf767d4ca1
[ "MIT" ]
null
null
null
""" The stellar spin periods and planetary orbital periods originally collected by Penev et al (2018) are shown in Figure~\ref{fig:Pspin_vs_Porb}. We only show hot Jupiter systems with spin period S/N ratios of at least 5, and have colored the hot Jupiters by whether their stellar radius is below or above $1.2R_\odot$....
30.061069
80
0.588624
0
0
0
0
0
0
0
0
1,813
0.460386
c3b8e9007add6621a63ae003963d1b0398741980
4,918
py
Python
conjugate_gradient_method.py
Kedow132/extremum_search_methods
16f83a3979a9f1b3f738627f466f97ec72b2031d
[ "BSD-3-Clause" ]
null
null
null
conjugate_gradient_method.py
Kedow132/extremum_search_methods
16f83a3979a9f1b3f738627f466f97ec72b2031d
[ "BSD-3-Clause" ]
null
null
null
conjugate_gradient_method.py
Kedow132/extremum_search_methods
16f83a3979a9f1b3f738627f466f97ec72b2031d
[ "BSD-3-Clause" ]
null
null
null
from math import sqrt import matplotlib.pyplot as plt import numpy as np from prettytable import PrettyTable headers = PrettyTable( ['№', 'x1_1', 'x2_1', 'x1_2', 'x2_2', 'function(x1,x2)', 'df']) def table(count, old_function, x1_1, x2_1, x1_2, x2_2, new_function): Tablelist = { '№': count, ...
30.930818
79
0.547377
0
0
0
0
0
0
0
0
355
0.071761
c3b9c03b0b6999a6a3e2dacc735a7de64457c8b0
784
py
Python
tcga_encoder/analyses/old/dna_functions.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
2
2017-12-19T15:32:46.000Z
2018-01-12T11:24:24.000Z
tcga_encoder/analyses/old/dna_functions.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
null
null
null
tcga_encoder/analyses/old/dna_functions.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
null
null
null
from tcga_encoder.utils.helpers import * from scipy import stats def auc_standard_error( theta, nA, nN ): # from: Hanley and McNeil (1982), The Meaning and Use of the Area under the ROC Curve # theta: estimated AUC, can be 0.5 for a random test # nA size of population A # nN size of population N Q1=theta/...
28
94
0.670918
0
0
0
0
0
0
0
0
187
0.23852