hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
1c7029d58f3d83ba1ff6470775aed8811fcd0cda
1,618
py
Python
examples/docs_snippets/docs_snippets/intro_tutorial/advanced/scheduling/scheduler.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
1
2021-01-31T19:16:29.000Z
2021-01-31T19:16:29.000Z
examples/docs_snippets/docs_snippets/intro_tutorial/advanced/scheduling/scheduler.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/intro_tutorial/advanced/scheduling/scheduler.py
rpatil524/dagster
6f918d94cbd543ab752ab484a65e3a40fd441716
[ "Apache-2.0" ]
1
2021-12-08T18:13:19.000Z
2021-12-08T18:13:19.000Z
# start_scheduler_marker_0 # end_scheduler_marker_0 # start_scheduler_marker_1 # end_scheduler_marker_1 # start_scheduler_marker_2 # end_scheduler_marker_2 # start_scheduler_marker_3 # end_scheduler_marker_3 # start_scheduler_marker_4 # end_scheduler_marker_4
23.114286
75
0.721261
# start_scheduler_marker_0 import csv from datetime import datetime import requests from dagster import get_dagster_logger, job, op, repository, schedule @op def hello_cereal(context): response = requests.get("https://docs.dagster.io/assets/cereal.csv") lines = response.text.split("\n") cereals = [row fo...
0
963
0
0
0
117
0
39
223
17b1dff8fe64ef2da095afccaa9e3fdd5b49ac2c
5,483
py
Python
webmachine/auth/oauth_res.py
benoitc/dj-webmachine
77653d73de57388b712eaf50de8c32ec70c182fa
[ "MIT" ]
6
2015-03-29T03:17:53.000Z
2020-01-21T11:09:26.000Z
webmachine/auth/oauth_res.py
benoitc/dj-webmachine
77653d73de57388b712eaf50de8c32ec70c182fa
[ "MIT" ]
1
2015-05-28T11:32:44.000Z
2015-05-28T11:32:44.000Z
webmachine/auth/oauth_res.py
benoitc/dj-webmachine
77653d73de57388b712eaf50de8c32ec70c182fa
[ "MIT" ]
4
2015-05-20T20:53:02.000Z
2019-11-12T19:46:07.000Z
# -*- coding: utf-8 - # # This file is part of dj-webmachine released under the MIT license. # See the NOTICE for more information. try: except ImportError: raise ImportError("restkit>=3.0.2 package is needed for auth.")
32.443787
82
0.590188
# -*- coding: utf-8 - # # This file is part of dj-webmachine released under the MIT license. # See the NOTICE for more information. from django.template import loader, RequestContext from django.utils.encoding import iri_to_uri try: from restkit import oauth2 except ImportError: raise ImportError("restkit>=3....
0
0
0
4,942
0
0
0
153
161
b7fb6d55ddc310c89f7dd03fe9fc2ce8f6e8528e
1,623
py
Python
commands/dns.py
thexmarat/routeros-scanner
8587493c243572218b5a7778d8bcbc698464856b
[ "MIT" ]
null
null
null
commands/dns.py
thexmarat/routeros-scanner
8587493c243572218b5a7778d8bcbc698464856b
[ "MIT" ]
null
null
null
commands/dns.py
thexmarat/routeros-scanner
8587493c243572218b5a7778d8bcbc698464856b
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License.
27.508475
113
0.550216
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from commands.basecommand import BaseCommand import re class DNS(BaseCommand): def __init__(self): self.__name__ = 'DNS Cache' def run_ssh(self, sshc): data = self._ssh_data(sshc, '/ip dns print') enabled = 'allo...
0
0
0
1,087
0
354
0
11
91
1c2e6507af08539c77c856e95f6d4852bc06d2f2
9,590
py
Python
tests/test_integration.py
repo-helper/formate
45e4b4fe29af144db714ea90c92cf6e7035ae301
[ "MIT" ]
1
2022-03-19T07:39:58.000Z
2022-03-19T07:39:58.000Z
tests/test_integration.py
repo-helper/formate
45e4b4fe29af144db714ea90c92cf6e7035ae301
[ "MIT" ]
14
2021-01-25T23:10:04.000Z
2021-06-29T19:55:38.000Z
tests/test_integration.py
repo-helper/formate
45e4b4fe29af144db714ea90c92cf6e7035ae301
[ "MIT" ]
null
null
null
# stdlib import re # 3rd party # this package path_sub = re.compile(rf" .*/pytest-of-.*/pytest-\d+")
25.710456
96
0.727216
# stdlib import re from typing import Union, no_type_check # 3rd party import click import pytest from _pytest.capture import CaptureResult from coincidence.regressions import AdvancedDataRegressionFixture, AdvancedFileRegressionFixture from coincidence.selectors import max_version, min_version, not_pypy, only_pypy fr...
0
4,095
0
0
0
4,515
0
300
563
e784dd55930201f54c11184d662dda78259fd84c
7,049
py
Python
lib/model.py
behzadzarfsaz/DualMemoryLearning
924905ea14466ac60589e71ff5df6e33e98b6d92
[ "MIT" ]
null
null
null
lib/model.py
behzadzarfsaz/DualMemoryLearning
924905ea14466ac60589e71ff5df6e33e98b6d92
[ "MIT" ]
null
null
null
lib/model.py
behzadzarfsaz/DualMemoryLearning
924905ea14466ac60589e71ff5df6e33e98b6d92
[ "MIT" ]
null
null
null
import logging import shutil logging.basicConfig(level=logging.INFO) logger = logging.getLogger("Model") terminal_columns = shutil.get_terminal_size().columns // 2
42.981707
110
0.55483
import copy import logging import shutil from math import exp import numpy as np from sklearn.preprocessing import StandardScaler, normalize from sklearn.utils import shuffle from tqdm import trange from lib.bqueue import Bqueue from lib.dnn import Dnn from lib.helper import Helper from lib.som import SOM logging.basi...
0
105
0
6,477
0
0
0
58
243
b85ee2815f52bf02efa5142a630bf19bd92d2932
179
py
Python
tests/project/app/urls.py
j4mie/django-kronos
71d90a67eb73e9c28666e77611466062ff3e3dda
[ "MIT" ]
1
2015-11-05T11:45:52.000Z
2015-11-05T11:45:52.000Z
tests/project/app/urls.py
j4mie/django-kronos
71d90a67eb73e9c28666e77611466062ff3e3dda
[ "MIT" ]
null
null
null
tests/project/app/urls.py
j4mie/django-kronos
71d90a67eb73e9c28666e77611466062ff3e3dda
[ "MIT" ]
null
null
null
from views import home urlpatterns = patterns('', url(r'^$', home, name='home'), url('fandjango/', include('fandjango.urls')) )
17.9
48
0.659218
from django.conf.urls.defaults import * from views import home urlpatterns = patterns('', url(r'^$', home, name='home'), url('fandjango/', include('fandjango.urls')) )
0
0
0
0
0
0
0
18
22
c39eec60b57532ade429a9e3594f24af68db932e
19,140
py
Python
pychess/Players/PyChessCECP.py
jacobchrismarsh/chess_senior_project
7797b1f96fda5d4d268224a21e54a744d17e7b81
[ "MIT" ]
null
null
null
pychess/Players/PyChessCECP.py
jacobchrismarsh/chess_senior_project
7797b1f96fda5d4d268224a21e54a744d17e7b81
[ "MIT" ]
40
2019-05-04T04:46:31.000Z
2022-02-26T10:37:51.000Z
pychess/Players/PyChessCECP.py
jacobchrismarsh/chess_senior_project
7797b1f96fda5d4d268224a21e54a744d17e7b81
[ "MIT" ]
null
null
null
import sys if sys.platform != "win32": import readline readline.clear_history() ASCII = sys.platform == "win32"
38.05169
95
0.446708
import re import signal import sys from threading import Thread import pychess from pychess.Players.PyChess import PyChess from pychess.System import conf, fident from pychess.Utils.book import getOpenings from pychess.Utils.const import ( NORMALCHESS, FEN_START, BLACK, FISCHERRANDOMCHESS, CRAZYHOU...
0
0
0
17,645
0
14
0
869
487
9fad8fab23d2e89d70ef2d82789107db78ebaf08
483
py
Python
colossalai/nn/layer/parallel_sequence/_utils.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
1,630
2021-10-30T01:00:27.000Z
2022-03-31T23:02:41.000Z
colossalai/nn/layer/parallel_sequence/_utils.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
166
2021-10-30T01:03:01.000Z
2022-03-31T14:19:07.000Z
colossalai/nn/layer/parallel_sequence/_utils.py
RichardoLuo/ColossalAI
797a9dc5a9e801d7499b8667c3ef039a38aa15ba
[ "Apache-2.0" ]
253
2021-10-30T06:10:29.000Z
2022-03-31T13:30:06.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*-
30.1875
69
0.726708
#!/usr/bin/env python # -*- encoding: utf-8 -*- def _calc_incoming_device_range(i, rank, world_size, sub_seq_length): device_of_incoming_k = (rank - i - 1) % world_size start_idx = sub_seq_length * device_of_incoming_k end_idx = sub_seq_length * (device_of_incoming_k + 1) return start_idx, end_idx d...
0
0
0
0
0
387
0
0
46
a54633146fadd221f3a0c7ca6783f0b136db02a8
438
py
Python
staticClassMethod/classmethodCustom.py
liangjie18430/flask_test_myself
8923e058d834d6ab7326f869b945601c13674105
[ "BSD-3-Clause" ]
null
null
null
staticClassMethod/classmethodCustom.py
liangjie18430/flask_test_myself
8923e058d834d6ab7326f869b945601c13674105
[ "BSD-3-Clause" ]
null
null
null
staticClassMethod/classmethodCustom.py
liangjie18430/flask_test_myself
8923e058d834d6ab7326f869b945601c13674105
[ "BSD-3-Clause" ]
null
null
null
print(Class2.get_user("test"))
27.375
53
0.623288
class MyClassMethod(object): def __init__(self,function): self.function = function def __get__(self, instance, type=None): def wrapper(*args,**kwargs): print("class method:",type) return self.function(type,*args,**kwargs) return wrapper class Class2(object): @...
0
65
0
271
0
0
0
0
70
c863133d1f0fec6fd6c1d9ca24de23ddc72f2fe4
543
py
Python
tests/parser/dictionary/encoder/other/test_ipi_base.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
37
2015-04-21T15:33:53.000Z
2022-02-07T00:02:29.000Z
tests/parser/dictionary/encoder/other/test_ipi_base.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
86
2015-02-01T22:26:02.000Z
2021-07-09T08:49:36.000Z
tests/parser/dictionary/encoder/other/test_ipi_base.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
27
2015-01-26T16:01:09.000Z
2021-11-08T23:53:55.000Z
# -*- coding: utf-8 -*- """ Acknowledgement to dictionary encoding tests. The following cases are tested: """ __author__ = 'Bernardo Martnez Garrido' __license__ = 'MIT' __status__ = 'Development'
20.884615
66
0.725599
# -*- coding: utf-8 -*- import unittest from cwr.parser.encoder.dictionary import IPIBaseDictionaryEncoder """ Acknowledgement to dictionary encoding tests. The following cases are tested: """ __author__ = 'Bernardo Martínez Garrido' __license__ = 'MIT' __status__ = 'Development' class TestIPIBaseEncoding(unitte...
2
0
0
233
0
0
0
39
69
ed3946252bbf181f1e56534e33e67fe22228f3cb
1,302
py
Python
make-examples.py
mattwigway/asu-matplotlib-styles
1168529d7476ab5519a9754e21243a704f980b8b
[ "CC0-1.0" ]
1
2021-04-09T15:47:19.000Z
2021-04-09T15:47:19.000Z
make-examples.py
mattwigway/asu-matplotlib-styles
1168529d7476ab5519a9754e21243a704f980b8b
[ "CC0-1.0" ]
4
2020-05-07T16:57:44.000Z
2020-05-07T19:12:57.000Z
make-examples.py
mattwigway/asu-matplotlib-styles
1168529d7476ab5519a9754e21243a704f980b8b
[ "CC0-1.0" ]
null
null
null
# Create example plots for README create_plot('asu-dark') create_plot('asu-light')
29.590909
113
0.600614
# Create example plots for README import numpy as np import matplotlib.pyplot as plt import os.path def create_plot (style): # make darn sure we're using the styles from the repo, and not the styles that may be installed on the system plt.style.use(os.path.join(os.path.dirname(__file__), 'styles', f'{style}.m...
0
0
0
0
0
1,127
0
0
90
10f7880be68b0fe1ae5479576360e9ca861c278e
16,979
py
Python
plugins/imagetools.py
FastmoreCrak/Fantasmas
1ce7a55b956ccf84660ceb91fdc39fedd0384c2a
[ "CC0-1.0" ]
1
2021-10-04T08:02:29.000Z
2021-10-04T08:02:29.000Z
plugins/imagetools.py
FastmoreCrak/Fantasmas
1ce7a55b956ccf84660ceb91fdc39fedd0384c2a
[ "CC0-1.0" ]
null
null
null
plugins/imagetools.py
FastmoreCrak/Fantasmas
1ce7a55b956ccf84660ceb91fdc39fedd0384c2a
[ "CC0-1.0" ]
null
null
null
# Ultroid - UserBot # Copyright (C) 2020 TeamUltroid # # This file is a part of < https://github.com/TeamUltroid/Ultroid/ > # PLease read the GNU Affero General Public License in # <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. """ Commands Available - `{i}grey <reply to any media>` To make it...
29.375433
85
0.586077
# Ultroid - UserBot # Copyright (C) 2020 TeamUltroid # # This file is a part of < https://github.com/TeamUltroid/Ultroid/ > # PLease read the GNU Affero General Public License in # <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. """ ✘ Commands Available - • `{i}grey <reply to any media>` To make ...
90
15,277
0
0
0
0
0
78
477
0cc45d58110cb6174543a0505e632ae185525ec0
1,990
py
Python
Basics_with_Pytorch/GradientDescent/hw1.py
SoyOscarRH/LearningNeuralNetworks
dd5be94b38b3a0efb3428f76d3416227a92c8265
[ "MIT" ]
3
2020-01-20T19:56:35.000Z
2021-09-24T14:47:33.000Z
Basics_with_Pytorch/GradientDescent/hw1.py
SoyOscarRH/LearningNeuralNetworks
dd5be94b38b3a0efb3428f76d3416227a92c8265
[ "MIT" ]
null
null
null
Basics_with_Pytorch/GradientDescent/hw1.py
SoyOscarRH/LearningNeuralNetworks
dd5be94b38b3a0efb3428f76d3416227a92c8265
[ "MIT" ]
null
null
null
x1 = 2.0 x2 = 3.0 ReLu = lambda x: max(0.0, x) ReLuDer = lambda x: 1 if x > 0 else 0 error_fn = lambda prediction, target: 0.5 * (target - prediction) ** 2 # input a1 = x1 a2 = x2 w11 = 0.11 w12 = 0.21 w21 = 0.12 w22 = 0.08 w1o = 0.14 w2o = 0.15 y = 1 n = 0.5 # foward # layer 1 zh1 = (w11 * a1) + (w12 * a2) zh...
18.425926
71
0.682412
x1 = 2.0 x2 = 3.0 ReLu = lambda x: max(0.0, x) ReLuDer = lambda x: 1 if x > 0 else 0 error_fn = lambda prediction, target: 0.5 * (target - prediction) ** 2 # input a1 = x1 a2 = x2 w11 = 0.11 w12 = 0.21 w21 = 0.12 w22 = 0.08 w1o = 0.14 w2o = 0.15 y = 1 n = 0.5 # foward # layer 1 zh1 = (w11 * a1) + (w12 * a2) zh...
0
0
0
0
0
0
0
0
0
5e6ad37894ff484c99a09273a78bac3f081c7374
24,618
py
Python
medcat/cdb.py
HDRUK/MedCAT
69c36d1da484ad32520a9b3333adf8f6ebfcbde7
[ "Apache-2.0" ]
null
null
null
medcat/cdb.py
HDRUK/MedCAT
69c36d1da484ad32520a9b3333adf8f6ebfcbde7
[ "Apache-2.0" ]
null
null
null
medcat/cdb.py
HDRUK/MedCAT
69c36d1da484ad32520a9b3333adf8f6ebfcbde7
[ "Apache-2.0" ]
null
null
null
""" Representation class for CDB data """ #from gensim.matutils import unitvec from medcat.utils.loggers import basic_logger log = basic_logger("cdb")
38.525822
140
0.575311
""" Representation class for CDB data """ import pickle import numpy as np from scipy.sparse import dok_matrix #from gensim.matutils import unitvec from medcat.utils.matutils import unitvec, sigmoid from medcat.utils.attr_dict import AttrDict from medcat.utils.loggers import basic_logger import os import pandas as pd ...
0
543
0
23,707
0
0
0
40
176
e843de334f3334ef6fcdc8a716988c1da1b98457
1,380
py
Python
tagopsdb/model/ns_vip_binds.py
ifwe/tagopsdb
5455810cb9ccdd0803975a2513741c43313b1b7d
[ "Apache-2.0" ]
null
null
null
tagopsdb/model/ns_vip_binds.py
ifwe/tagopsdb
5455810cb9ccdd0803975a2513741c43313b1b7d
[ "Apache-2.0" ]
1
2021-03-25T21:57:08.000Z
2021-03-25T21:57:08.000Z
tagopsdb/model/ns_vip_binds.py
ifwe/tagopsdb
5455810cb9ccdd0803975a2513741c43313b1b7d
[ "Apache-2.0" ]
1
2016-08-02T06:05:58.000Z
2016-08-02T06:05:58.000Z
# Copyright 2016 Ifwe Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
31.363636
76
0.707971
# Copyright 2016 Ifwe Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
0
0
0
620
0
0
0
73
113
96554955e1e867ce4e811b1753e447421a931915
29,675
py
Python
python/play.py
030helios/Kata2Connect5
e8ace620284b46f4a50fc0582924cbadf32653e7
[ "MIT" ]
null
null
null
python/play.py
030helios/Kata2Connect5
e8ace620284b46f4a50fc0582924cbadf32653e7
[ "MIT" ]
1
2021-06-03T14:30:04.000Z
2021-06-03T14:40:32.000Z
python/play.py
030helios/Kata2Surakarta
e8ace620284b46f4a50fc0582924cbadf32653e7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import json import tensorflow as tf from model import Model import common description = """ Play go with a trained neural net! Implements a basic GTP engine that uses the neural net directly to play moves. """ parser = argparse.ArgumentParser(description=description) common.add_mode...
34.505814
171
0.658635
#!/usr/bin/python3 import sys import os import argparse import traceback import random import math import time import re import logging import colorsys import json import tensorflow as tf import numpy as np from board import Board from model import Model import common description = """ Play go with a trained neural n...
0
0
0
159
0
26,063
0
-82
494
e1f2ff87b306b5118c6404d2e8d28e29a993265e
1,832
py
Python
stim_amplitude_scan.py
maxnolte/deciphering_variability
bea48cc3c04e63f3acdd1b86563eb792358c91a8
[ "MIT" ]
2
2020-04-22T12:02:32.000Z
2021-06-21T17:35:15.000Z
stim_amplitude_scan.py
maxnolte/deciphering_variability
bea48cc3c04e63f3acdd1b86563eb792358c91a8
[ "MIT" ]
null
null
null
stim_amplitude_scan.py
maxnolte/deciphering_variability
bea48cc3c04e63f3acdd1b86563eb792358c91a8
[ "MIT" ]
3
2019-09-26T07:32:50.000Z
2021-06-21T17:35:29.000Z
import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt plt.rcParams['pdf.fonttype'] = 42 import bluepy variances = ['0p001', '0p01', '0p05', '0p1', '0p5', '1p0', '1p5', '2p0', '10p0'] bcs = ['/gpfs/bbp.cscs.ch/project/proj9/simulations/nolte/variability/spontaneous/base_seeds_abc...
36.64
161
0.686681
import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt plt.rcParams['pdf.fonttype'] = 42 import bluepy variances = ['0p001', '0p01', '0p05', '0p1', '0p5', '1p0', '1p5', '2p0', '10p0'] bcs = ['/gpfs/bbp.cscs.ch/project/proj9/simulations/nolte/variability/spontaneous/base_seeds_abc...
0
0
0
0
0
0
0
0
0
761606c02fc534ca8cbdc3d2fa43d7330287a1ad
5,312
py
Python
opengenomebrowser_tools/init_database.py
opengenomebrowser/opengenomebrowser-tools
b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e
[ "MIT" ]
null
null
null
opengenomebrowser_tools/init_database.py
opengenomebrowser/opengenomebrowser-tools
b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e
[ "MIT" ]
null
null
null
opengenomebrowser_tools/init_database.py
opengenomebrowser/opengenomebrowser-tools
b6ef2340b2fd67a61373d1d8a0f3ef71cc892d1e
[ "MIT" ]
null
null
null
import os import json import shutil from .utils import PACKAGE_ROOT from . import __folder_structure_version__ def init_database(database_dir: str = None) -> None: """ Creates a basic OpenGenomeBrowser folders structure. Result: database organisms annotations.json an...
35.413333
144
0.650414
import os import json import shutil from urllib import request from .utils import PACKAGE_ROOT from . import __folder_structure_version__ def download_go_data(out: str) -> None: source_url = 'http://purl.obolibrary.org/obo/go.obo' print(f'Converting {source_url} -> {out}') def go_generator(io) -> [str]:...
123
0
0
0
1,396
1,274
0
5
114
53ba41eb81896191d5d26dcb15844fd97e74a3e7
6,272
py
Python
frictionless/file.py
augusto-herrmann/frictionless-py
b4ff35f064141a2c04882edb592666ca6b066776
[ "MIT" ]
1
2021-11-08T22:29:30.000Z
2021-11-08T22:29:30.000Z
frictionless/file.py
augusto-herrmann/frictionless-py
b4ff35f064141a2c04882edb592666ca6b066776
[ "MIT" ]
null
null
null
frictionless/file.py
augusto-herrmann/frictionless-py
b4ff35f064141a2c04882edb592666ca6b066776
[ "MIT" ]
null
null
null
# NOTE: # For better detection we can add an argument allowing metadata reading # Exact set of file types needs to be reviewed
30.595122
87
0.557398
import os import glob from pathlib import Path from .helpers import cached_property from . import helpers from . import config # NOTE: # For better detection we can add an argument allowing metadata reading # Exact set of file types needs to be reviewed class File: """File representation""" def __init__(se...
0
716
0
5,276
0
0
0
-5
155
bc521fe8e156c2bea30c143fc4f2a1b5f920fe18
4,919
py
Python
data/parsers/spain.py
hdsheena/covid19_scenarios
ea67a75a99c20b0948ef6d377bc6cfbec6e670b5
[ "MIT" ]
1,550
2020-03-10T13:18:53.000Z
2022-03-29T13:48:11.000Z
data/parsers/spain.py
hdsheena/covid19_scenarios
ea67a75a99c20b0948ef6d377bc6cfbec6e670b5
[ "MIT" ]
835
2020-03-09T21:52:19.000Z
2022-02-02T08:06:21.000Z
data/parsers/spain.py
hdsheena/covid19_scenarios
ea67a75a99c20b0948ef6d377bc6cfbec6e670b5
[ "MIT" ]
444
2020-03-13T03:24:13.000Z
2021-11-15T19:08:53.000Z
# ------------------------------------------------------------------------ # Globals deaths_URL = "https://raw.githubusercontent.com/datadista/datasets/master/COVID%2019/ccaa_covid19_fallecidos.csv" cases_URL = "https://raw.githubusercontent.com/datadista/datasets/master/COVID%2019/ccaa_covid19_casos.csv...
46.847619
143
0.544623
import sys import requests import csv import io from datetime import datetime from collections import defaultdict from .utils import store_data, stoi # ------------------------------------------------------------------------ # Globals deaths_URL = "https://raw.githubusercontent.com/datadista/datasets/master/CO...
2
0
0
0
0
3,901
0
-4
178
a104266d8b0c9acf1fa4b9cf1a58128f80fb8476
6,749
py
Python
src/pymor/discretizers/advection.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/discretizers/advection.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/discretizers/advection.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2016 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import numpy as np from pymor.algorithms.timestepping import ExplicitEulerTimeStepper from pymor....
50.365672
120
0.659061
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2016 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import numpy as np from pymor.algorithms.timestepping import ExplicitEulerTimeStepper from pymor....
0
0
0
0
0
305
0
96
30
076f222cfcfc72e18413b42acd4e53e8930fdab1
2,403
py
Python
misc-code/adventure_items.py
cctechwiz-teaching/python-code-camp
1453bebe44d66f27558eb6204fbf4d5f08cc756e
[ "MIT" ]
2
2019-06-22T17:13:16.000Z
2019-06-22T17:13:17.000Z
misc-code/adventure_items.py
cctechwiz-teaching/python-code-camp
1453bebe44d66f27558eb6204fbf4d5f08cc756e
[ "MIT" ]
null
null
null
misc-code/adventure_items.py
cctechwiz-teaching/python-code-camp
1453bebe44d66f27558eb6204fbf4d5f08cc756e
[ "MIT" ]
null
null
null
""" object_adventure.py A text adventure with objects you can pick up and put down. """ # data setup rooms = { 'empty': {'name': 'an empty room', 'east': 'bedroom', 'north': 'temple', 'contents': [], 'text': 'The stone floors and walls are cold and damp.'}, 'temple': {'name': 'a sma...
33.375
108
0.56804
""" object_adventure.py A text adventure with objects you can pick up and put down. """ # data setup rooms = { 'empty': {'name': 'an empty room', 'east': 'bedroom', 'north': 'temple', 'contents': [], 'text': 'The stone floors and walls are cold and damp.'}, 'temple': {'name': 'a sma...
0
0
0
0
0
0
0
0
0
4b9d26720cda64f817643aa05a92dd1452685e67
17,109
py
Python
python/graphscope/nx/classes/cache.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
1
2021-12-30T02:55:16.000Z
2021-12-30T02:55:16.000Z
python/graphscope/nx/classes/cache.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
null
null
null
python/graphscope/nx/classes/cache.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
35.867925
88
0.614004
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
0
2,352
0
11,255
0
0
0
38
112
e96b8708dc8be78814c697d042595105e2d873c2
80
py
Python
Getting_Started_With_Raspberry_Pi_Pico/variable/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
Getting_Started_With_Raspberry_Pi_Pico/variable/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
Getting_Started_With_Raspberry_Pi_Pico/variable/code.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
"""Example of assigning a variable.""" user_name = input("What is your name? ")
26.666667
40
0.6875
"""Example of assigning a variable.""" user_name = input("What is your name? ")
0
0
0
0
0
0
0
0
0
ba26ee36cc7ff86ae625d2c3ea20dd09a7c5df07
10,605
py
Python
generator/verify/verification.py
biarmic/OpenCache
bb9e110e434deb83900de328cc76b63901ba582f
[ "BSD-3-Clause" ]
5
2021-09-15T18:29:49.000Z
2022-03-26T04:41:01.000Z
generator/verify/verification.py
VLSIDA/OpenCache
0e79bf353c68d57dcc49d78178b12fd0b468f19a
[ "BSD-3-Clause" ]
null
null
null
generator/verify/verification.py
VLSIDA/OpenCache
0e79bf353c68d57dcc49d78178b12fd0b468f19a
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE for licensing information. # # Copyright (c) 2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. #
37.341549
107
0.587553
# See LICENSE for licensing information. # # Copyright (c) 2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # import os import datetime from shutil import copyfile...
0
0
0
10,019
0
0
0
54
265
93162a2be83d4a32945d947bbd5f1a2645032e31
9,075
py
Python
pyfr/readers/gmsh.py
synthetik-technologies/PyFR
9d4d5e96a8a9d5ca47970ec197b251ae8b0ecdda
[ "BSD-3-Clause" ]
1
2020-06-23T16:37:06.000Z
2020-06-23T16:37:06.000Z
pyfr/readers/gmsh.py
synthetik-technologies/PyFR
9d4d5e96a8a9d5ca47970ec197b251ae8b0ecdda
[ "BSD-3-Clause" ]
null
null
null
pyfr/readers/gmsh.py
synthetik-technologies/PyFR
9d4d5e96a8a9d5ca47970ec197b251ae8b0ecdda
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*-
33.241758
78
0.523747
# -*- coding: utf-8 -*- from collections import defaultdict import re import numpy as np from pyfr.readers import BaseReader, NodalMeshAssembler from pyfr.readers.nodemaps import GmshNodeMaps def msh_section(mshit, section): endln = '$End{}\n'.format(section) endix = int(next(mshit)) - 1 for i, l in e...
0
0
0
8,419
413
0
0
58
159
b4da4a65d4e00689281ae22f04447e598748b518
246
py
Python
tests/conftest.py
stephen-bunn/tomlark
5554801b1bccac2f780770e60ebd8f15e996d89d
[ "0BSD" ]
null
null
null
tests/conftest.py
stephen-bunn/tomlark
5554801b1bccac2f780770e60ebd8f15e996d89d
[ "0BSD" ]
null
null
null
tests/conftest.py
stephen-bunn/tomlark
5554801b1bccac2f780770e60ebd8f15e996d89d
[ "0BSD" ]
null
null
null
# -*- encoding: utf-8 -*- # Copyright (c) 2019 Stephen Bunn <stephen@bunn.io> # ISC License <https://opensource.org/licenses/isc> """ """
15.375
51
0.686992
# -*- encoding: utf-8 -*- # Copyright (c) 2019 Stephen Bunn <stephen@bunn.io> # ISC License <https://opensource.org/licenses/isc> """ """ import pytest from tomlark.parser import Parser @pytest.fixture def toml_parser(): return Parser()
0
33
0
0
0
0
0
4
69
a442d4a0784271f2955bb9cc4bd3cd28feea0760
67
py
Python
glft2vmd/constants.py
Sage-of-Mirrors/gltf2vmd
76aa5ae25785f8de50351daa27a5b986daa781f0
[ "MIT" ]
null
null
null
glft2vmd/constants.py
Sage-of-Mirrors/gltf2vmd
76aa5ae25785f8de50351daa27a5b986daa781f0
[ "MIT" ]
6
2019-02-05T03:35:26.000Z
2019-02-07T05:44:15.000Z
glft2vmd/constants.py
Sage-of-Mirrors/gltf2vmd
76aa5ae25785f8de50351daa27a5b986daa781f0
[ "MIT" ]
null
null
null
VERSION = 1 # The version number of the format SECTION_COUNT = 14
22.333333
47
0.746269
VERSION = 1 # The version number of the format SECTION_COUNT = 14
0
0
0
0
0
0
0
0
0
5b9afc7b9248105d7d8416827b48e86831ababb9
548
py
Python
easy/problem118/solution.py
cutoutsy/leetcode
0734f1060a0340370b8234e8072d70c10d4306d9
[ "Apache-2.0" ]
1
2018-02-25T03:45:04.000Z
2018-02-25T03:45:04.000Z
easy/problem118/solution.py
cutoutsy/leetcode
0734f1060a0340370b8234e8072d70c10d4306d9
[ "Apache-2.0" ]
null
null
null
easy/problem118/solution.py
cutoutsy/leetcode
0734f1060a0340370b8234e8072d70c10d4306d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*-
26.095238
59
0.410584
#!/usr/bin/python # -*- coding: utf-8 -*- class Solution(object): def generate(self, numRows): """ :type numRows: int :rtype: List[List[int]] """ ans = [] if numRows == 0: return ans ans.append([1]) for i in range(1,numRows): row = [] ...
0
0
0
484
0
0
0
0
22
e4f7f7cca2308469990c26afe281704cf43f3897
1,532
py
Python
src/astro/__init__.py
astro-projects/astro
7fa0404fc690569ff85e379ecca54778f09a9333
[ "Apache-2.0" ]
71
2021-12-06T22:41:59.000Z
2022-03-31T21:47:16.000Z
src/astro/__init__.py
astro-projects/astro
7fa0404fc690569ff85e379ecca54778f09a9333
[ "Apache-2.0" ]
171
2021-12-14T07:34:57.000Z
2022-03-31T21:04:15.000Z
src/astro/__init__.py
astro-projects/astro
7fa0404fc690569ff85e379ecca54778f09a9333
[ "Apache-2.0" ]
11
2021-12-06T22:46:23.000Z
2022-03-31T18:09:46.000Z
"""A decorator that allows users to run SQL queries natively in Airflow.""" __version__ = "0.9.1" # The following line is an import work-around to avoid raising a circular dependency issue related to `create_database` # Without this, if we run the following imports, in this specific order: # from astro.databases im...
46.424242
119
0.727807
"""A decorator that allows users to run SQL queries natively in Airflow.""" __version__ = "0.9.1" # The following line is an import work-around to avoid raising a circular dependency issue related to `create_database` # Without this, if we run the following imports, in this specific order: # from astro.databases im...
0
0
0
0
0
278
0
-5
58
1c84f381723e000bfb669c57e2bd3a49b340519c
736
py
Python
packages/pyright-internal/src/tests/samples/variadicTypeVar12.py
Jasha10/pyright
0ce0cfa10fe7faa41071a2cc417bb449cf8276fe
[ "MIT" ]
3,934
2019-03-22T09:26:41.000Z
2019-05-06T21:03:08.000Z
packages/pyright-internal/src/tests/samples/variadicTypeVar12.py
Jasha10/pyright
0ce0cfa10fe7faa41071a2cc417bb449cf8276fe
[ "MIT" ]
107
2019-03-24T04:09:37.000Z
2019-05-06T17:00:04.000Z
packages/pyright-internal/src/tests/samples/variadicTypeVar12.py
Jasha10/pyright
0ce0cfa10fe7faa41071a2cc417bb449cf8276fe
[ "MIT" ]
119
2019-03-23T10:48:04.000Z
2019-05-06T08:57:56.000Z
# This sample tests the case where a variadic TypeVar is used in # conjunction with a keyword-only parameter. It also tests protocol # invariance validation when a TypeVarTuple is used in the protocol # along with a non-variadic TypeVar. # pyright: strict from typing import TypeVar from typing_extensions import TypeV...
27.259259
89
0.691576
# This sample tests the case where a variadic TypeVar is used in # conjunction with a keyword-only parameter. It also tests protocol # invariance validation when a TypeVarTuple is used in the protocol # along with a non-variadic TypeVar. # pyright: strict from typing import Protocol, TypeVar from typing_extensions im...
0
0
0
95
0
73
0
18
46
d10a63cc5cb88f955269d4ce6980f67addd2f947
4,440
py
Python
tests/service/contacts_test.py
mherrmann/dnsimple-python
a89127f0bafb2a001c902206fba87cbc4f3bc2d1
[ "MIT" ]
12
2020-06-18T17:16:03.000Z
2022-03-23T08:35:49.000Z
tests/service/contacts_test.py
mherrmann/dnsimple-python
a89127f0bafb2a001c902206fba87cbc4f3bc2d1
[ "MIT" ]
129
2020-06-25T12:15:51.000Z
2022-03-23T09:42:16.000Z
tests/service/contacts_test.py
mherrmann/dnsimple-python
a89127f0bafb2a001c902206fba87cbc4f3bc2d1
[ "MIT" ]
6
2020-07-03T09:34:01.000Z
2021-12-20T04:29:59.000Z
import unittest if __name__ == '__main__': unittest.main()
45.773196
115
0.621847
import unittest import responses from dnsimple import DNSimpleException from dnsimple.response import Pagination from dnsimple.struct import Contact from tests.helpers import DNSimpleMockResponse, DNSimpleTest class ContactsTest(DNSimpleTest): @responses.activate def test_list_contacts(self): respon...
0
3,955
0
12
0
0
0
84
323
f84ea56c56e51a875d50bc7307a31889f6562e9b
423
py
Python
replacedata/urls.py
judexzhu/dzhops
ffe089a734dd24d88bf433223ab8eb7e2eb099c5
[ "Apache-2.0" ]
202
2015-05-18T08:48:52.000Z
2021-07-16T13:59:07.000Z
replacedata/urls.py
judexzhu/dzhops
ffe089a734dd24d88bf433223ab8eb7e2eb099c5
[ "Apache-2.0" ]
19
2015-11-26T03:54:45.000Z
2019-03-02T13:58:24.000Z
replacedata/urls.py
Hasal/dzhops
fcd16adc61a941dccdaebee156b545784a5e96a8
[ "Apache-2.0" ]
172
2015-08-07T15:52:17.000Z
2021-07-16T13:59:11.000Z
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( 'replacedata.views', # url(r'^$', 'oms.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^repair/history/$', 'repairHistoryData', name=...
32.538462
75
0.664303
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( 'replacedata.views', # url(r'^$', 'oms.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^repair/history/$', 'repairHistoryDat...
0
0
0
0
0
0
0
9
0
980ab3bc4a57447b3222534b3167de92a4804cb1
1,641
py
Python
neural_sp/models/modules/zoneout.py
SunSki/neural_sp
4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b
[ "Apache-2.0" ]
null
null
null
neural_sp/models/modules/zoneout.py
SunSki/neural_sp
4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b
[ "Apache-2.0" ]
null
null
null
neural_sp/models/modules/zoneout.py
SunSki/neural_sp
4e4aca9b4cda1c7d95a1774d22f4d3298ad4ba4b
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Zoneout regularization.""" import torch.nn as nn
28.789474
71
0.606947
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Zoneout regularization.""" import torch.nn as nn class ZoneoutCell(nn.Module): def __init__(self, cell, zoneout_prob_h, zoneout_prob_c): ...
0
0
0
1,192
0
185
0
0
46
b3152b4456ead975eb6f74831b450dea9597705e
810
py
Python
number programs/sum of digits in anumber.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
6
2020-08-13T11:49:29.000Z
2021-03-07T05:46:17.000Z
number programs/sum of digits in anumber.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
null
null
null
number programs/sum of digits in anumber.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
1
2021-04-24T06:12:48.000Z
2021-04-24T06:12:48.000Z
##Problem Description ##The program takes in a number and finds the sum of digits in a number. print("-------------------Method 1----------------------------------") temp=n=int(input("Enter a number: ")) total = 0 while n>0 : total = total+(n%10) n=n//10 print("The total sum of digits in the number {0} ...
33.75
80
0.437037
##Problem Description ##The program takes in a number and finds the sum of digits in a number. print("-------------------Method 1----------------------------------") temp=n=int(input("Enter a number: ")) total = 0 while n>0 : total = total+(n%10) n=n//10 print("The total sum of digits in the number {0} ...
0
0
0
0
0
73
0
0
23
f2c241e08bc11d95b523ca06dbb1790a155bc856
1,095
py
Python
pymarlin/utils/writer/aml.py
nifarn/PyMarlin
ea1f5f927aa85112ecebc206d53b5c3ee65704fa
[ "MIT" ]
20
2021-06-09T18:46:45.000Z
2022-02-09T01:08:13.000Z
pymarlin/utils/writer/aml.py
nifarn/PyMarlin
ea1f5f927aa85112ecebc206d53b5c3ee65704fa
[ "MIT" ]
50
2021-06-09T17:50:35.000Z
2022-02-07T23:02:30.000Z
pymarlin/utils/writer/aml.py
nifarn/PyMarlin
ea1f5f927aa85112ecebc206d53b5c3ee65704fa
[ "MIT" ]
5
2021-06-21T22:24:30.000Z
2021-12-21T17:08:21.000Z
""" AML writer module. """
26.707317
67
0.536073
""" AML writer module. """ from pymarlin.utils.logger.logging_utils import getlogger from .base import Writer class Aml(Writer): """ This class implements the Azure ML writer for stats. """ def __init__(self): super().__init__(getlogger(__name__)) self.run = None try: ...
0
0
0
962
0
0
0
39
67
3f0de62c4c8c48e6ae02cd05d3405f7ac8d21e23
377
py
Python
LectureNote/03.array_linkedlist/14.py
Raziel-JKM/Study_turtleCoding
d09e03605cdc8130db2a279ec8193b29f3bca7a6
[ "MIT" ]
null
null
null
LectureNote/03.array_linkedlist/14.py
Raziel-JKM/Study_turtleCoding
d09e03605cdc8130db2a279ec8193b29f3bca7a6
[ "MIT" ]
null
null
null
LectureNote/03.array_linkedlist/14.py
Raziel-JKM/Study_turtleCoding
d09e03605cdc8130db2a279ec8193b29f3bca7a6
[ "MIT" ]
2
2021-12-13T08:02:31.000Z
2021-12-18T08:36:23.000Z
# Definition for singly-linked list.
25.133333
68
0.567639
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode: if (not l1) or (l2 and l1.val > l2.val): l1, l2 = l2, l1 if l1: l1....
0
0
0
294
0
0
0
0
45
4f8e2aeb8fb094469d36a66d43fac5b6984cbe13
240
py
Python
OCT18A/BITOBYT.py
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
1
2019-03-25T14:14:47.000Z
2019-03-25T14:14:47.000Z
OCT18A/BITOBYT.py
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
null
null
null
OCT18A/BITOBYT.py
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
null
null
null
for _ in range(int(input())): n = int(input()) temp = (n - 1) // 26 temp2 = n % 26 ans = 2**temp if n == 0: print(1,0,0) elif temp2 > 0 and temp2 < 3: print(ans,0,0) elif temp2 > 2 and temp2 < 11: print(0,ans,0) else: print(0,0,ans)
26.666667
46
0.570833
for _ in range(int(input())): n = int(input()) temp = (n - 1) // 26 temp2 = n % 26 ans = 2**temp if n == 0: print(1,0,0) elif temp2 > 0 and temp2 < 3: print(ans,0,0) elif temp2 > 2 and temp2 < 11: print(0,ans,0) else: print(0,0,ans)
0
0
0
0
0
0
0
0
0
b1a4913225fbfc946d7637c1b7948e693eb990e2
8,110
py
Python
LinearRegression.py
Prasanna-Brabourame/Machine-Learning
f27811d1d0b280ac025cfc7d5610c646b9f5de35
[ "MIT" ]
null
null
null
LinearRegression.py
Prasanna-Brabourame/Machine-Learning
f27811d1d0b280ac025cfc7d5610c646b9f5de35
[ "MIT" ]
null
null
null
LinearRegression.py
Prasanna-Brabourame/Machine-Learning
f27811d1d0b280ac025cfc7d5610c646b9f5de35
[ "MIT" ]
null
null
null
# The problem to be solved: # We have trucks located in different cities and each truck brings a profit or loss. We have the historical data and determined that the profit depends on the city's population. We want to find this relation. import numpy as np print('Welcome to Machine Learning with Python!') print('Lesso...
38.254717
441
0.69815
# The problem to be solved: # We have trucks located in different cities and each truck brings a profit or loss. We have the historical data and determined that the profit depends on the city's population. We want to find this relation. import numpy as np print('Welcome to Machine Learning with Python!') print('Lesso...
0
0
0
0
0
1,120
0
0
66
451b547531e66a11eedfdad82d0ab5ec2c049406
989
py
Python
remindme/config.py
GochoMugo/remindme
6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4
[ "MIT" ]
17
2015-05-02T22:58:07.000Z
2017-04-17T06:33:43.000Z
remindme/config.py
GochoMugo/remindme
6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4
[ "MIT" ]
8
2015-02-14T16:22:27.000Z
2016-10-26T13:15:19.000Z
remindme/config.py
GochoMugo/remindme
6cf2f94ce07ead754f1ee5976a7e7d7cbfa1a2e4
[ "MIT" ]
2
2016-02-26T10:47:56.000Z
2019-10-09T05:49:51.000Z
import os import sys import colorama from . import metadata # project metadata METADATA = metadata # paths PATHS = {} PATHS["home"] = os.path.expanduser("~") PATHS["db_file"] = os.path.join(PATHS["home"], ".remindme.db") PATHS["config_file"] = os.path.join(PATHS["home"], ".remindme") # colors colorama.init() COLO...
21.5
63
0.722952
import os import sys import colorama from . import metadata # project metadata METADATA = metadata # paths PATHS = {} PATHS["home"] = os.path.expanduser("~") PATHS["db_file"] = os.path.join(PATHS["home"], ".remindme.db") PATHS["config_file"] = os.path.join(PATHS["home"], ".remindme") # colors colorama.init() COLO...
0
0
0
0
0
0
0
0
0
3c4fdc05b6325dc0d014850d64adf6128c1af6de
1,075
py
Python
telemetry/telemetry/internal/platform/platform_backend_unittest.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
telemetry/telemetry/internal/platform/platform_backend_unittest.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
telemetry/telemetry/internal/platform/platform_backend_unittest.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import
39.814815
74
0.728372
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import import unittest import mock from telemetry.core import platform as platform_module from telemetry.internal.platform i...
0
0
0
652
0
0
0
86
134
704bb3776179c6385b0af47d73095b8ef624dce9
960
py
Python
files/update-lang-list.py
eumel8/translation_checksite
122acecf10e1de21320f8f0607d45ddada69d032
[ "Apache-2.0" ]
null
null
null
files/update-lang-list.py
eumel8/translation_checksite
122acecf10e1de21320f8f0607d45ddada69d032
[ "Apache-2.0" ]
4
2016-01-30T06:59:50.000Z
2021-12-02T17:55:54.000Z
files/update-lang-list.py
eumel8/translation_checksite
122acecf10e1de21320f8f0607d45ddada69d032
[ "Apache-2.0" ]
3
2016-01-30T03:44:15.000Z
2016-02-05T10:50:43.000Z
#!/usr/bin/env python import pprint import os from django.conf.locale import LANG_INFO from django.utils import translation HORIZON_DIR = '/opt/stack/horizon' langs_horizon = os.listdir(os.path.join(HORIZON_DIR, 'horizon', 'locale')) langs_dashboard = os.listdir(os.path.join(HORIZON_DIR, 'openstack_dashboard', 'l...
28.235294
88
0.708333
#!/usr/bin/env python import pprint import os from django.conf.locale import LANG_INFO from django.utils import translation def get_django_lang_name(code, all_codes): code = code.lower().replace('_', '-') code_orig = code lang_info = LANG_INFO.get(code) if not lang_info: code = code.split('-...
0
0
0
0
0
360
0
0
23
fe6edc63bbf0559878618a4e33821990cd4a7535
235
py
Python
problems/Codeforces/Birthday.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
6
2020-06-25T14:52:09.000Z
2021-08-05T20:54:15.000Z
problems/Codeforces/Birthday.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
null
null
null
problems/Codeforces/Birthday.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
null
null
null
_ = input() m = map(int, input().split()) m = sorted(m) #print(m) l=[] for i in range(len(m)): if(i%2==0): l.append(str(m[i])) for i in range(len(m)-1,0,-1): if(i%2!=0): l.append(str(m[i])) print(' '.join(l))
15.666667
30
0.489362
_ = input() m = map(int, input().split()) m = sorted(m) #print(m) l=[] for i in range(len(m)): if(i%2==0): l.append(str(m[i])) for i in range(len(m)-1,0,-1): if(i%2!=0): l.append(str(m[i])) print(' '.join(l))
0
0
0
0
0
0
0
0
0
fc6a9e223a774f2d6514568d4a145897adc465d7
1,144
py
Python
figures/ring.py
deepsphere/paper-deepsphere-rlgm2019
e3b56f48da5b18bcf9a78426b19f203c5c0dda54
[ "CC-BY-4.0" ]
1
2020-11-05T13:45:40.000Z
2020-11-05T13:45:40.000Z
figures/ring.py
deepsphere/paper-iclr19-rlgm
e3b56f48da5b18bcf9a78426b19f203c5c0dda54
[ "CC-BY-4.0" ]
null
null
null
figures/ring.py
deepsphere/paper-iclr19-rlgm
e3b56f48da5b18bcf9a78426b19f203c5c0dda54
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 import os import numpy as np import pygsp as gsp import matplotlib.pyplot as plt from matplotlib.patches import Arc # plt.rc('font', family='Latin Modern Roman') plt.rc('text', usetex=True) plt.rc('text.latex', preamble=r'\usepackage{lmodern}') fig = plt.figure(figsize = (3, 3)) ax = fig.add_...
27.902439
129
0.68007
#!/usr/bin/env python3 import os import numpy as np import pygsp as gsp import matplotlib.pyplot as plt from matplotlib.patches import Arc # plt.rc('font', family='Latin Modern Roman') plt.rc('text', usetex=True) plt.rc('text.latex', preamble=r'\usepackage{lmodern}') fig = plt.figure(figsize = (3, 3)) ax = fig.add_...
0
0
0
0
0
0
0
0
0
8fe47d6e92443b760621ca519956d6954987c080
6,343
py
Python
blend/test/TestConfiguration.py
azavea/blend
2cafbc326f2e6b3f1947581cca860ff544adada1
[ "MIT" ]
1
2017-03-06T14:55:29.000Z
2017-03-06T14:55:29.000Z
blend/test/TestConfiguration.py
azavea/blend
2cafbc326f2e6b3f1947581cca860ff544adada1
[ "MIT" ]
null
null
null
blend/test/TestConfiguration.py
azavea/blend
2cafbc326f2e6b3f1947581cca860ff544adada1
[ "MIT" ]
null
null
null
# By Justin Walgran # Copyright (c) 2012 Azavea, Inc. # # 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, ...
40.401274
116
0.700457
# By Justin Walgran # Copyright (c) 2012 Azavea, Inc. # # 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, ...
0
0
0
4,855
0
0
0
101
269
7d4df8ca4fd9f6faefafdc8a8cbba5f7922eda77
1,876
py
Python
07/7.1.py
abe-101/ThinkPython-2
bcebb1e9b3cc63c403f59c3cc0f33017bb017363
[ "MIT" ]
1
2021-12-16T16:46:47.000Z
2021-12-16T16:46:47.000Z
07/7.1.py
abe-101/ThinkPython-2
bcebb1e9b3cc63c403f59c3cc0f33017bb017363
[ "MIT" ]
null
null
null
07/7.1.py
abe-101/ThinkPython-2
bcebb1e9b3cc63c403f59c3cc0f33017bb017363
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import math def mysqrt(a): """Compute the square root of a using Newton's method: start with an approximate answer and iteratively improving it """ estimate = a / 2 + 1 # Arbitrary estimae of the square root of a epsilon = 0.0000001 while True: approx = (estimate + a...
31.266667
80
0.549041
#!/usr/bin/python3 import math def mysqrt(a): """Compute the square root of a using Newton's method: start with an approximate answer and iteratively improving it """ estimate = a / 2 + 1 # Arbitrary estimae of the square root of a epsilon = 0.0000001 while True: approx = (estimate + a...
0
0
0
0
0
0
0
0
0
df668d722b67fd2443fb0e29147acb271a0d6a49
63,507
py
Python
tests/simulations/system/test_system_unitary.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
null
null
null
tests/simulations/system/test_system_unitary.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2021-02-03T01:56:56.000Z
2021-02-03T01:56:56.000Z
tests/simulations/system/test_system_unitary.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2022-01-11T18:31:05.000Z
2022-01-11T18:31:05.000Z
from pathlib import Path test_dir = Path(__file__).parent.parent.parent hot_water_objects = { "HVACTemplate:Plant:Boiler": { "Main Boiler": { "boiler_type": "HotWaterBoiler", "capacity": "Autosize", "efficiency": 0.8, "fuel_type": "NaturalGas", "...
56.652096
125
0.678366
from pathlib import Path from tests.simulations import BaseSimulationTest from src.epjson_handler import EPJSON test_dir = Path(__file__).parent.parent.parent hot_water_objects = { "HVACTemplate:Plant:Boiler": { "Main Boiler": { "boiler_type": "HotWaterBoiler", "capacity": "Autosi...
0
57,525
0
2,153
0
0
0
43
68
b309c952311c2ba99fc6444d9dabcacf6b2a8a7a
1,287
py
Python
apps/base/migrations/0052_fill_new_item_order.py
KolevDarko/lifehq
88d92f5fe76f2fb6511f2a892e096d95a69985d8
[ "MIT" ]
null
null
null
apps/base/migrations/0052_fill_new_item_order.py
KolevDarko/lifehq
88d92f5fe76f2fb6511f2a892e096d95a69985d8
[ "MIT" ]
null
null
null
apps/base/migrations/0052_fill_new_item_order.py
KolevDarko/lifehq
88d92f5fe76f2fb6511f2a892e096d95a69985d8
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2019-01-31 07:28
33.868421
73
0.62704
# Generated by Django 2.0 on 2019-01-31 07:28 from django.db import migrations class Migration(migrations.Migration): def forwards_func(apps, schema_editor): ProjectTodoList = apps.get_model('base', 'ProjectTodoList') PersonalTodoList = apps.get_model('base', 'PersonalTodoList') for proj...
0
0
0
1,183
0
0
0
11
46
c32b35ee54e2b205d3b64c553ab89bbe78d5c853
7,697
py
Python
tests/bibkey_formatter/test_formatters/test_author_formatters.py
astamminger/zotero-bibtize
bd518c85d5ea03f952903b721e0d66e8990bd185
[ "MIT" ]
2
2019-11-20T02:46:46.000Z
2022-03-08T18:32:32.000Z
tests/bibkey_formatter/test_formatters/test_author_formatters.py
astamminger/zotero-bibtize
bd518c85d5ea03f952903b721e0d66e8990bd185
[ "MIT" ]
8
2019-11-20T15:31:37.000Z
2020-05-05T09:07:05.000Z
tests/bibkey_formatter/test_formatters/test_author_formatters.py
astamminger/zotero-bibtize
bd518c85d5ea03f952903b721e0d66e8990bd185
[ "MIT" ]
null
null
null
""" Test suite for BibKey formatting sequences. Tests the generation of key contents based on the author entry """ from zotero_bibtize.bibkey_formatter import KeyFormatter # # Test lower author formatting # # # Test upper author formatting # # # Test capitalized author formatting # # # Test abbreviate...
36.478673
81
0.715214
""" Test suite for BibKey formatting sequences. Tests the generation of key contents based on the author entry """ from zotero_bibtize.bibkey_formatter import KeyFormatter # # Test lower author formatting # def test_no_author_lower(): key_formatter = KeyFormatter({}) key_format = '[author:lower]' assert ...
0
0
0
0
0
5,724
0
0
364
d9bdf38b8225d5bcf36515d8ff0fd7d07cd4ddee
2,900
py
Python
ontobio/io/entitywriter.py
alliance-genome/ontobio
0ec3aa6fea9d4492a9873a4b9b394c4866f741b6
[ "BSD-3-Clause" ]
null
null
null
ontobio/io/entitywriter.py
alliance-genome/ontobio
0ec3aa6fea9d4492a9873a4b9b394c4866f741b6
[ "BSD-3-Clause" ]
null
null
null
ontobio/io/entitywriter.py
alliance-genome/ontobio
0ec3aa6fea9d4492a9873a4b9b394c4866f741b6
[ "BSD-3-Clause" ]
null
null
null
""" Classes for exporting entities. So far only one implementation """ import re external_taxon = re.compile("taxon:([0-9]+)") internal_taxon = re.compile("NCBITaxon:([0-9]+)")
24.576271
80
0.556897
""" Classes for exporting entities. So far only one implementation """ import re def stringify(s): if s is None: return "" elif isinstance(s,list): return "|".join(s) else: return s external_taxon = re.compile("taxon:([0-9]+)") internal_taxon = re.compile("NCBITaxon:([0-9]+)") de...
0
0
0
2,150
0
478
0
0
92
7bc67dc45c88bf77bfd385e03be6efef81543692
101
py
Python
src/pagnn/training/dcn/__init__.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
1
2022-01-16T12:06:13.000Z
2022-01-16T12:06:13.000Z
src/pagnn/training/dcn/__init__.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
null
null
null
src/pagnn/training/dcn/__init__.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
null
null
null
"""Train a network."""
20.2
29
0.732673
"""Train a network.""" from .args import Args from .stats import Stats from .main import main, train
0
0
0
0
0
0
0
12
66
c90a19220af8528b49927128e469ba9aff6561ab
291
py
Python
export_readiness/migrations/0064_merge_20191009_1320.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2018-03-20T11:19:07.000Z
2021-10-05T07:53:11.000Z
export_readiness/migrations/0064_merge_20191009_1320.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
802
2018-02-05T14:16:13.000Z
2022-02-10T10:59:21.000Z
export_readiness/migrations/0064_merge_20191009_1320.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2019-01-22T13:19:37.000Z
2019-07-01T10:35:26.000Z
# Generated by Django 2.2.4 on 2019-10-09 13:20
19.4
56
0.670103
# Generated by Django 2.2.4 on 2019-10-09 13:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('export_readiness', '0063_auto_20191009_1239'), ('export_readiness', '0063_auto_20191008_1307'), ] operations = [ ]
0
0
0
185
0
0
0
11
46
e607fd13a8a8af9d7b0dd6db2c1d5a67f9b2d4bc
16,202
py
Python
skating_etl/skating_etl.py
gcp825/gcp_public
3208249658b227de4a3d5e054de8df42042429a5
[ "Apache-2.0" ]
null
null
null
skating_etl/skating_etl.py
gcp825/gcp_public
3208249658b227de4a3d5e054de8df42042429a5
[ "Apache-2.0" ]
null
null
null
skating_etl/skating_etl.py
gcp825/gcp_public
3208249658b227de4a3d5e054de8df42042429a5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 if __name__ == '__main__': run()
70.751092
146
0.398901
#!/usr/bin/python3 def run(cloud=False): # imports import apache_beam as ab from apache_beam import io from apache_beam import ToString as ts from apache_beam.options.pipeline_options import PipelineOptions, SetupOptions, StandardOptions, GoogleCloudOptions from gcp_tools import be...
0
0
0
0
0
16,126
0
0
23
0997b2bb53b3e94433d1abfed3c5673193adb7bc
1,393
py
Python
main_adco.py
maple-research-lab/AdCo
a9f25fc18c12df88c732b33700f3bb698454dd3f
[ "MIT" ]
139
2021-03-05T01:20:26.000Z
2022-03-24T02:25:20.000Z
main_adco.py
maple-research-lab/AdCo
a9f25fc18c12df88c732b33700f3bb698454dd3f
[ "MIT" ]
12
2021-03-09T02:59:40.000Z
2021-09-27T05:25:25.000Z
main_adco.py
maple-research-lab/AdCo
a9f25fc18c12df88c732b33700f3bb698454dd3f
[ "MIT" ]
18
2021-03-05T02:44:52.000Z
2022-03-14T02:37:09.000Z
#Copyright (C) 2020 Xiao Wang #License: MIT for academic use. #Contact: Xiao Wang (wang3702@purdue.edu, xiaowang20140001@gmail.com) #Some codes adopted from https://github.com/facebookresearch/moco from ops.argparser import argparser if __name__ == '__main__': #use_cuda = torch.cuda.is_available() #print("st...
36.657895
81
0.729361
#Copyright (C) 2020 Xiao Wang #License: MIT for academic use. #Contact: Xiao Wang (wang3702@purdue.edu, xiaowang20140001@gmail.com) #Some codes adopted from https://github.com/facebookresearch/moco import os from ops.argparser import argparser from ops.Config_Environment import Config_Environment import torch.multipr...
0
0
0
0
0
781
0
57
110
4c1974ce7ed5abfe14e791e0f8209d92e3dcc752
638
py
Python
yk_utils/images/image_parser.py
jppdpf/yk-utils-python
2c101feda900713c8cbb0223326031ba09cd48e9
[ "MIT" ]
null
null
null
yk_utils/images/image_parser.py
jppdpf/yk-utils-python
2c101feda900713c8cbb0223326031ba09cd48e9
[ "MIT" ]
null
null
null
yk_utils/images/image_parser.py
jppdpf/yk-utils-python
2c101feda900713c8cbb0223326031ba09cd48e9
[ "MIT" ]
1
2022-02-16T19:04:33.000Z
2022-02-16T19:04:33.000Z
"""Image parser module. """ import os import base64 def parse_image(image) -> str: """Check whether the image is a string or a file path or a file-like object. :param image: A base64 string or a file path or a file-like object representing an image. :return: Image as a base64 string. "...
29
83
0.628527
"""Image parser module. """ import os import base64 def parse_image(image) -> str: """Check whether the image is a string or a file path or a file-like object. :param image: A base64 string or a file path or a file-like object representing an image. :return: Image as a base64 string. "...
0
0
0
0
0
0
0
0
0
3d022cac11f1e60bc2bcab537423ff5ea3705e37
3,983
py
Python
client/gym_carla/experiment_suite/experiment_suite.py
wielgosz-info/carla-rl
8841c0c7997299ed76388ad93b34834bd6b55d3e
[ "MIT" ]
null
null
null
client/gym_carla/experiment_suite/experiment_suite.py
wielgosz-info/carla-rl
8841c0c7997299ed76388ad93b34834bd6b55d3e
[ "MIT" ]
null
null
null
client/gym_carla/experiment_suite/experiment_suite.py
wielgosz-info/carla-rl
8841c0c7997299ed76388ad93b34834bd6b55d3e
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # # ------------------------------------------------------------------------------- # # This file is ...
32.647541
132
0.644489
# Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # # ------------------------------------------------------------------------------- # # This file is ...
0
623
0
2,612
0
0
0
100
112
96c8a4ff91d3e3ca6afe90078f997ac43327e709
3,675
py
Python
w4_tiled_converter/main.py
restitux/w4-tiled-converter
7cdee2d425c53a54d46617f9499a43dad3806594
[ "MIT" ]
null
null
null
w4_tiled_converter/main.py
restitux/w4-tiled-converter
7cdee2d425c53a54d46617f9499a43dad3806594
[ "MIT" ]
null
null
null
w4_tiled_converter/main.py
restitux/w4-tiled-converter
7cdee2d425c53a54d46617f9499a43dad3806594
[ "MIT" ]
null
null
null
# Convert a tiled tmx tilemap to source files if __name__ == "__main__": main()
22.826087
88
0.688163
import argparse import json from os.path import basename, join, split, splitext import sys from w4_tiled_converter import converters # Convert a tiled tmx tilemap to source files def tilemap_subcommand(filename: str): print(f"INFO: Processing tilemap {filename}") name = basename(splitext(splitext(filename)[0]...
0
0
0
0
0
3,360
0
23
202
3899d52834f5585b5ae4c4435ca9a8f8025273e4
404
py
Python
rallybooking/migrations/0007_rally_site_name.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
rallybooking/migrations/0007_rally_site_name.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
rallybooking/migrations/0007_rally_site_name.py
DaleShipp/devoncc
8bec11cf363ac5a5c16eda9a6c50e9f901142211
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.1 on 2018-10-05 22:33
21.263158
63
0.60396
# Generated by Django 2.1.1 on 2018-10-05 22:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rallybooking', '0006_auto_20181005_2042'), ] operations = [ migrations.AddField( model_name='rally', name='site_name...
0
0
0
290
0
0
0
19
46
cc323e6f4b8b6d89a4bc83d3a457b2b702135f01
154
py
Python
book_library_app/commands/__init__.py
szymcio32/flask-book-library-api
9406bb5ff6ec04cc7c049d416913ae084e73a9dc
[ "MIT" ]
1
2022-02-03T17:10:03.000Z
2022-02-03T17:10:03.000Z
book_library_app/commands/__init__.py
szymcio32/flask-book-library-api
9406bb5ff6ec04cc7c049d416913ae084e73a9dc
[ "MIT" ]
null
null
null
book_library_app/commands/__init__.py
szymcio32/flask-book-library-api
9406bb5ff6ec04cc7c049d416913ae084e73a9dc
[ "MIT" ]
2
2021-04-26T20:57:24.000Z
2021-09-20T10:19:00.000Z
from flask import Blueprint db_manage_bp = Blueprint('db_manage_cmd', __name__, cli_group=None)
30.8
67
0.850649
from flask import Blueprint db_manage_bp = Blueprint('db_manage_cmd', __name__, cli_group=None) from book_library_app.commands import db_manage_commands
0
0
0
0
0
0
0
35
23
fc6a61ad09b5a2873ca3d0bbf8908a1fe92aac0e
1,549
py
Python
example.py
ssocolow/Neural-Network-Saves
78870623cec9752a765d8bb43d00f0c3f0f677b0
[ "MIT" ]
3
2019-06-22T05:53:18.000Z
2019-06-22T05:53:48.000Z
example.py
ssocolow/Neural-Network-Python-Lib
78870623cec9752a765d8bb43d00f0c3f0f677b0
[ "MIT" ]
2
2019-06-22T06:16:19.000Z
2019-06-22T06:22:38.000Z
example.py
ssocolow/Neural-Network-Python-Lib
78870623cec9752a765d8bb43d00f0c3f0f677b0
[ "MIT" ]
null
null
null
#importing the library #nn requires matrix2d.py and the math module and random module for dependencies import nn import random #create the neural network to solve the XOR problem #takes an array of arrays for argument #the 2, 4 and 1 represent two nodes in the input and 4 nodes in the hidden layer and 1 node in the ou...
48.40625
141
0.769529
#importing the library #nn requires matrix2d.py and the math module and random module for dependencies import nn import random #create the neural network to solve the XOR problem #takes an array of arrays for argument #the 2, 4 and 1 represent two nodes in the input and 4 nodes in the hidden layer and 1 node in the ou...
0
0
0
0
0
0
0
0
0
fe1792e616a3318ec0936ccae1a3979964e73622
5,345
py
Python
geeksbot_web/rcon/models.py
dustinpianalto/geeksbot_web
ee02452dd5a61b0487706782020f9647ae202238
[ "MIT" ]
null
null
null
geeksbot_web/rcon/models.py
dustinpianalto/geeksbot_web
ee02452dd5a61b0487706782020f9647ae202238
[ "MIT" ]
null
null
null
geeksbot_web/rcon/models.py
dustinpianalto/geeksbot_web
ee02452dd5a61b0487706782020f9647ae202238
[ "MIT" ]
null
null
null
# Create your models here.
41.434109
101
0.636109
from django.db import models from django.core.exceptions import ObjectDoesNotExist from rest_framework import status from guilds.models import Guild from dmessages.models import Message from users.models import User from channels.models import Channel from .utils import create_error_response from .utils import create_...
0
1,436
0
3,520
0
0
0
138
222
daad75627bc6162d2ea4e3136cfa6943ffef9ecd
1,127
py
Python
post.py
seqcode/seqview-web-docker-public
56dfc222fd25a630cbc63d2841d9ce4fb1c7045c
[ "MIT" ]
null
null
null
post.py
seqcode/seqview-web-docker-public
56dfc222fd25a630cbc63d2841d9ce4fb1c7045c
[ "MIT" ]
null
null
null
post.py
seqcode/seqview-web-docker-public
56dfc222fd25a630cbc63d2841d9ce4fb1c7045c
[ "MIT" ]
null
null
null
main()
40.25
174
0.721384
from urllib.parse import urlencode from urllib.request import Request, urlopen import json import argparse import configparser def main(): parser = argparse.ArgumentParser(description="Post ingest tileset request to higlass") parser.add_argument('--genome', action="store", dest="genome", default='', help="genome ver...
0
0
0
0
0
945
0
17
157
eb282e96df605c49958261d1bcdd1be576d4b1bf
3,574
py
Python
story_chain/flaskrunner.py
muchu1983/story_chain
3af4bb158be128a52c753f88eaffaed872d85880
[ "BSD-3-Clause" ]
null
null
null
story_chain/flaskrunner.py
muchu1983/story_chain
3af4bb158be128a52c753f88eaffaed872d85880
[ "BSD-3-Clause" ]
null
null
null
story_chain/flaskrunner.py
muchu1983/story_chain
3af4bb158be128a52c753f88eaffaed872d85880
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ from flask import Flask app = Flask(__name__.split(".")[0]) # server # jsonp response # (return id) # # (/...
34.038095
94
0.689144
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ import json from flask import Flask from flask import request from flask import render_template from flask import jsonify from sto...
288
2,405
0
0
0
203
0
41
352
f0463eb840dd62de3267468df2df8a11a6d08fe8
2,913
py
Python
venv/Lib/site-packages/xero_python/accounting/models/report_fields.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
77
2020-02-16T03:50:18.000Z
2022-03-11T03:53:26.000Z
venv/Lib/site-packages/xero_python/accounting/models/report_fields.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
50
2020-04-06T10:15:52.000Z
2022-03-29T21:27:50.000Z
venv/Lib/site-packages/xero_python/accounting/models/report_fields.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
27
2020-06-04T11:16:17.000Z
2022-03-19T06:27:36.000Z
# coding: utf-8 """ Xero Accounting API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """
24.897436
124
0.597666
# coding: utf-8 """ Xero Accounting API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel ...
0
1,287
0
1,283
0
0
0
7
83
f594e48a4780469ce9c3653912d489a7c0714b11
1,458
py
Python
Python Basics/scipy_basics.py
python-sonchau/python-visualization
eb139aaabbff858663a96f8e19e30f1418e4330c
[ "MIT" ]
null
null
null
Python Basics/scipy_basics.py
python-sonchau/python-visualization
eb139aaabbff858663a96f8e19e30f1418e4330c
[ "MIT" ]
null
null
null
Python Basics/scipy_basics.py
python-sonchau/python-visualization
eb139aaabbff858663a96f8e19e30f1418e4330c
[ "MIT" ]
null
null
null
from scipy import stats import numpy as np ############################ # CALCULATING CORRELATIONS # ############################ array_1 = np.array([1,2,3,4,5,6]) # Create a numpy array from a list array_2 = array_1 # Create another array with the same values print(stats.pearsonr(array_1, array_2)) # Calculate t...
36.45
192
0.580933
from scipy import stats import numpy as np ############################ # CALCULATING CORRELATIONS # ############################ array_1 = np.array([1,2,3,4,5,6]) # Create a numpy array from a list array_2 = array_1 # Create another array with the same values print(stats.pearsonr(array_1, array_2)) # Calculate t...
0
0
0
0
0
0
0
0
0
b76ae8aebcf19bf3deee56b36c1edd3ec1852d21
50,717
py
Python
Src/Scripts/DarunGrim.py
fengjixuchui/DarunGrim
a6cbe5c064f9399423845dea0ab67355d5ac5852
[ "BSD-3-Clause" ]
null
null
null
Src/Scripts/DarunGrim.py
fengjixuchui/DarunGrim
a6cbe5c064f9399423845dea0ab67355d5ac5852
[ "BSD-3-Clause" ]
null
null
null
Src/Scripts/DarunGrim.py
fengjixuchui/DarunGrim
a6cbe5c064f9399423845dea0ab67355d5ac5852
[ "BSD-3-Clause" ]
null
null
null
import time RedirectStdOutErr=True if __name__=='__main__': multiprocessing.freeze_support() import sys import time if len(sys.argv)>1: database_name=sys.argv[1] else: database_name='' app=QApplication(sys.argv) pixmap=QPixmap('DarunGrimSplash.png') splash=QSplashScreen(pixmap) splash.show() app.proce...
32.242212
318
0.763354
from PySide.QtCore import * from PySide.QtGui import * from PySide.QtSql import * import DarunGrimDatabase import DiffEngine from Graphs import * import FlowGrapher import FileStoreBrowser import FileStoreDatabase import DarunGrimEngine import pprint from multiprocessing import Process from multiprocessing import Que...
0
0
0
48,634
0
955
0
9
676
4fb3719d6c98f0ef30141c1f977dfa7d852da269
570
py
Python
test.py
FlyingKiwis/Esipraisal
47b19baab7f59fd6a0a0f84b85708d017e7ce011
[ "MIT" ]
1
2020-06-02T03:54:19.000Z
2020-06-02T03:54:19.000Z
test.py
FlyingKiwis/Esipraisal
47b19baab7f59fd6a0a0f84b85708d017e7ce011
[ "MIT" ]
null
null
null
test.py
FlyingKiwis/Esipraisal
47b19baab7f59fd6a0a0f84b85708d017e7ce011
[ "MIT" ]
null
null
null
import asyncio import logging from Esipraisal.Esipraisal import Esipraisal ep_log = logging.getLogger("Esipraisal") ep_log.setLevel(logging.INFO) ch = logging.StreamHandler() ch.setLevel(logging.INFO) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') ch.setFormatter(formatter) ep_lo...
31.666667
151
0.777193
import asyncio import logging from Esipraisal.Esipraisal import Esipraisal ep_log = logging.getLogger("Esipraisal") ep_log.setLevel(logging.INFO) ch = logging.StreamHandler() ch.setLevel(logging.INFO) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') ch.setFormatter(formatter) ep_lo...
0
0
0
0
0
0
0
0
0
69656441d9c0bf3b5e0c5066856ee54e3a84cc09
147
py
Python
reddit2telegram/channels/r_goodanimemes/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/r_goodanimemes/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/r_goodanimemes/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 subreddit = 'goodanimemes' t_channel = '@r_goodanimemes'
16.333333
38
0.755102
#encoding:utf-8 subreddit = 'goodanimemes' t_channel = '@r_goodanimemes' def send_post(submission, r2t): return r2t.send_simple(submission)
0
0
0
0
0
49
0
0
23
ee9a6c5456efb857c26a2d7a258bbd6b0bf0d4f4
1,369
py
Python
pymoo/learning/part_1.py
ubeydtalha/bitirme-projesi
71601eb04a5e8a0aa93357ddf8b978d68eae6cdc
[ "MIT" ]
null
null
null
pymoo/learning/part_1.py
ubeydtalha/bitirme-projesi
71601eb04a5e8a0aa93357ddf8b978d68eae6cdc
[ "MIT" ]
null
null
null
pymoo/learning/part_1.py
ubeydtalha/bitirme-projesi
71601eb04a5e8a0aa93357ddf8b978d68eae6cdc
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt plt.rc('font', family='serif') X1 , X2 = np.meshgrid(np.linspace(-2,2,500),np.linspace(-2,2,500)) F1 = X1**2 + X2**2 F2 = (X1-1)**2+X2**2 G = X1**2 - X1 + 3/16 G1 = 2 * (X1[0] - 0.1) * (X1[0] - 0.9) G2 = 20 * (X1[0] - 0.4) * (X1[0] - 0.6) levels = [0.02, 0.1 , 0...
29.76087
87
0.620161
import numpy as np import matplotlib.pyplot as plt plt.rc('font', family='serif') X1 , X2 = np.meshgrid(np.linspace(-2,2,500),np.linspace(-2,2,500)) F1 = X1**2 + X2**2 F2 = (X1-1)**2+X2**2 G = X1**2 - X1 + 3/16 G1 = 2 * (X1[0] - 0.1) * (X1[0] - 0.9) G2 = 20 * (X1[0] - 0.4) * (X1[0] - 0.6) levels = [0.02, 0.1 , 0...
0
0
0
0
0
0
0
0
0
11e5788ea89ce816b5cc94614412f19c35457815
4,923
py
Python
tests/test_models.py
zbohm/aldryn-translation-tools
3e86f575fea12124a25a6c2d28e10324347d6c5e
[ "BSD-3-Clause" ]
null
null
null
tests/test_models.py
zbohm/aldryn-translation-tools
3e86f575fea12124a25a6c2d28e10324347d6c5e
[ "BSD-3-Clause" ]
null
null
null
tests/test_models.py
zbohm/aldryn-translation-tools
3e86f575fea12124a25a6c2d28e10324347d6c5e
[ "BSD-3-Clause" ]
1
2020-09-10T23:39:48.000Z
2020-09-10T23:39:48.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
32.82
71
0.639651
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.test import TransactionTestCase from django.utils.translation import ugettext_lazy as _ from test_addon.models import Complex, Simple, Unconventional class TestTranslatableAutoSlugifyMixin(TransactionTestCase): def test_simple_slug(se...
0
0
0
4,670
0
0
0
96
91
6571d06b26e9d55f7b954eee07d36c375ace0e0f
1,527
py
Python
api/predict.py
xuhdev/MAX-Breast-Cancer-Mitosis-Detector
c7e777311da070994466f1bf45541451e18b8034
[ "Apache-2.0" ]
null
null
null
api/predict.py
xuhdev/MAX-Breast-Cancer-Mitosis-Detector
c7e777311da070994466f1bf45541451e18b8034
[ "Apache-2.0" ]
null
null
null
api/predict.py
xuhdev/MAX-Breast-Cancer-Mitosis-Detector
c7e777311da070994466f1bf45541451e18b8034
[ "Apache-2.0" ]
null
null
null
from flask_restplus import fields from werkzeug.datastructures import FileStorage from maxfw.core import MAX_API input_parser = MAX_API.parser() input_parser.add_argument('image', type=FileStorage, location='files', required=True, help='An image file encoded as PNG with the size 64*64') labe...
34.704545
113
0.683039
from core.model import ModelWrapper from flask_restplus import fields, abort from werkzeug.datastructures import FileStorage from maxfw.core import MAX_API, PredictAPI input_parser = MAX_API.parser() input_parser.add_argument('image', type=FileStorage, location='files', required=True, help='A...
0
633
0
76
0
0
0
33
45
13a86095619b618630a1898ef9c8fa97e0d04df6
608
py
Python
examples/03-image/04-quad.py
mcjocobe/drawExploration
2c50526ef14dea5bc3802b7fda08871919d62ac4
[ "BSD-3-Clause" ]
76
2015-01-21T11:21:08.000Z
2022-02-04T13:33:19.000Z
examples/03-image/04-quad.py
mcjocobe/drawExploration
2c50526ef14dea5bc3802b7fda08871919d62ac4
[ "BSD-3-Clause" ]
8
2015-11-12T07:42:58.000Z
2020-06-09T10:01:15.000Z
examples/03-image/04-quad.py
mcjocobe/drawExploration
2c50526ef14dea5bc3802b7fda08871919d62ac4
[ "BSD-3-Clause" ]
23
2015-01-12T12:07:40.000Z
2020-04-13T16:32:15.000Z
# Add the upper directory (where the nodebox module is) to the search path. import os, sys; sys.path.insert(0, os.path.join("..","..")) img = Image("creature.png") # The image.quad property describes the four-sided polygon # on which an image texture is "mounted". # This is not necessarily a rectangle, the corners c...
26.434783
75
0.703947
# Add the upper directory (where the nodebox module is) to the search path. import os, sys; sys.path.insert(0, os.path.join("..","..")) from nodebox.graphics import * img = Image("creature.png") # The image.quad property describes the four-sided polygon # on which an image texture is "mounted". # This is not necess...
0
0
0
0
0
30
0
9
46
0b20183397bcfd04f62df163fded2c064174a562
4,874
py
Python
src/five/grok/meta.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
1
2016-10-26T16:45:57.000Z
2016-10-26T16:45:57.000Z
src/five/grok/meta.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
2
2021-01-05T14:30:32.000Z
2021-03-25T18:38:06.000Z
src/five/grok/meta.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
2
2015-04-03T04:41:12.000Z
2019-08-20T08:02:52.000Z
############################################################################# # # Copyright (c) 2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFT...
34.567376
78
0.659007
############################################################################# # # Copyright (c) 2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFT...
0
0
0
3,121
0
410
0
184
354
699b48ffb0f7def74fa65d53a33552fec5ab2029
283
py
Python
utils/jax_utils/jax_startup.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
1
2021-03-22T14:16:43.000Z
2021-03-22T14:16:43.000Z
utils/jax_utils/jax_startup.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
null
null
null
utils/jax_utils/jax_startup.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
null
null
null
""" configure jax at startup """
17.6875
56
0.699647
""" configure jax at startup """ from jax.config import config def startup(): # Jax config (needs to be executed right at startup) config.update("jax_enable_x64", True) def debugging(): config.update("jax_enable_x64", True) config.update("jax_debug_nans", True)
0
0
0
0
0
171
0
8
69
2c5adae6fbb8596c949c80584ff15841235c705d
968
py
Python
renew/advancedclass/enumclass.py
ianzhengnan/learnpy
ed1736ac976d56253183399466a167fb9319f869
[ "Apache-2.0" ]
1
2017-06-12T03:12:29.000Z
2017-06-12T03:12:29.000Z
renew/advancedclass/enumclass.py
ianzhengnan/learnpy
ed1736ac976d56253183399466a167fb9319f869
[ "Apache-2.0" ]
null
null
null
renew/advancedclass/enumclass.py
ianzhengnan/learnpy
ed1736ac976d56253183399466a167fb9319f869
[ "Apache-2.0" ]
null
null
null
from enum import Enum Month = Enum('Month', ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')) for name, member in Month.__members__.items(): print(name, '=>', member, ',', member.value) # Jan => Month.Jan , 1 # Feb => Month.Feb , 2 # Mar => Month.Mar , 3 # Apr => Month.Apr , 4 #...
18.615385
107
0.594008
from enum import Enum, unique Month = Enum('Month', ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')) for name, member in Month.__members__.items(): print(name, '=>', member, ',', member.value) # Jan => Month.Jan , 1 # Feb => Month.Feb , 2 # Mar => Month.Mar , 3 # Apr => Month.A...
18
70
0
0
0
0
0
8
22
cab45f526ea303c3c63b0a5eb65fac294ce0e7d0
1,279
py
Python
force_wfmanager/tests/dummy_classes/dummy_wfmanager.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
1
2019-08-19T16:02:20.000Z
2019-08-19T16:02:20.000Z
force_wfmanager/tests/dummy_classes/dummy_wfmanager.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
396
2017-07-18T15:19:55.000Z
2021-05-03T06:23:06.000Z
force_wfmanager/tests/dummy_classes/dummy_wfmanager.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
2
2019-03-05T16:23:10.000Z
2020-04-16T08:59:11.000Z
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved.
25.078431
76
0.692729
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved. from envisage.core_plugin import CorePlugin from envisage.ui.tasks.tasks_plugin import TasksPlugin from force_wfmanager.tests.dummy_classes.dummy_data_view import ( DummyExtensionPluginWithDataView ) from force_wfmanager.tests.dummy_cl...
0
0
0
765
0
0
0
251
181
ddff0c4a23bdd4d569ad29d522544468116098ff
446
py
Python
tests/py/test_currencies.py
Scrumplex/liberapay.com
2ef3477ceebc6e85b5db8c5a4a447195889cd4e9
[ "PostgreSQL", "CC0-1.0" ]
null
null
null
tests/py/test_currencies.py
Scrumplex/liberapay.com
2ef3477ceebc6e85b5db8c5a4a447195889cd4e9
[ "PostgreSQL", "CC0-1.0" ]
null
null
null
tests/py/test_currencies.py
Scrumplex/liberapay.com
2ef3477ceebc6e85b5db8c5a4a447195889cd4e9
[ "PostgreSQL", "CC0-1.0" ]
null
null
null
from __future__ import division, print_function, unicode_literals
29.733333
85
0.674888
from __future__ import division, print_function, unicode_literals from liberapay.testing import EUR, USD, Harness class TestCurrencies(Harness): def test_convert(self): original = EUR('1.00') expected = USD('1.20') actual = self.db.one("SELECT convert(%s, %s)", (original, expected.curren...
0
0
0
307
0
0
0
26
46
303f1277d22a2f01641fe04d7dedfbc973da5b6d
2,565
py
Python
models/modelos.py
Patataman/StudentApi
42ff5651cdef2aeda8c012924db39554ab7762ce
[ "MIT" ]
1
2016-03-11T22:42:55.000Z
2016-03-11T22:42:55.000Z
models/modelos.py
Patataman/StudentApi
42ff5651cdef2aeda8c012924db39554ab7762ce
[ "MIT" ]
null
null
null
models/modelos.py
Patataman/StudentApi
42ff5651cdef2aeda8c012924db39554ab7762ce
[ "MIT" ]
null
null
null
from flask.ext.sqlalchemy import SQLAlchemy db = SQLAlchemy() #Column('user_id', Integer, ForeignKey("user.user_id"), nullable=False),
29.147727
185
0.728265
from flask.ext.sqlalchemy import SQLAlchemy from sqlalchemy import ForeignKey from sqlalchemy.sql import select from sqlalchemy.orm import relationship from sqlalchemy.dialects.postgresql import JSON, TEXT db = SQLAlchemy() #Column('user_id', Integer, ForeignKey("user.user_id"), nullable=False), class Persona(db.Mo...
0
411
0
1,740
0
0
0
74
203
c06efbae0b2f960ea1ad2726615abc68ecf719f4
637
py
Python
problema1.py
enzoyoshio/Problemas
1e2ce20d9931ef28e57aa54af3fe1708927ebab9
[ "MIT" ]
null
null
null
problema1.py
enzoyoshio/Problemas
1e2ce20d9931ef28e57aa54af3fe1708927ebab9
[ "MIT" ]
null
null
null
problema1.py
enzoyoshio/Problemas
1e2ce20d9931ef28e57aa54af3fe1708927ebab9
[ "MIT" ]
null
null
null
# lista de dicionario dado listDict = [ {1 : 1, 2 : "oi", "nome" : "obrigado"}, {"Bolo" : "Cenoura", "Camaro" : "Verde", "nome" : "Sagrado"}, {1 : 10, "nome" : "oi", "caracol" : "obrigado"}, {"nome":"obrigado"} ] # a chave que ser procurada nome = "nome" # inicializando a lista vazia lista = [] # ve...
27.695652
77
0.634223
# lista de dicionario dado listDict = [ {1 : 1, 2 : "oi", "nome" : "obrigado"}, {"Bolo" : "Cenoura", "Camarão" : "Verde", "nome" : "Sagrado"}, {1 : 10, "nome" : "oi", "caracol" : "obrigado"}, {"nome":"obrigado"} ] # a chave que será procurada nome = "nome" # inicializando a lista vazia lista = [] # ...
16
0
0
0
0
0
0
0
0
7c97c1d349a7035b8c108e98916ffaaa384b38ef
12,469
py
Python
authors/apps/authentication/views.py
andela/ah-backend-realers
f4b0dbde16fed5e95ab3b1b60e365515e1fe6697
[ "BSD-3-Clause" ]
null
null
null
authors/apps/authentication/views.py
andela/ah-backend-realers
f4b0dbde16fed5e95ab3b1b60e365515e1fe6697
[ "BSD-3-Clause" ]
20
2019-05-27T13:05:44.000Z
2021-06-10T21:29:36.000Z
authors/apps/authentication/views.py
andela/ah-backend-realers
f4b0dbde16fed5e95ab3b1b60e365515e1fe6697
[ "BSD-3-Clause" ]
6
2019-06-29T11:49:01.000Z
2020-03-02T12:53:06.000Z
from rest_framework import exceptions from .social_auth import ValidateSocialUser check_user = ValidateSocialUser()
38.248466
121
0.678242
from rest_framework import status, exceptions from rest_framework.generics import RetrieveUpdateAPIView from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from django.conf import settings from .models import User from i...
0
8,645
0
2,551
0
0
0
492
630
fc88e5944833ded64fa3cddeace07e5e0ee6b6f4
12,152
py
Python
visual_phenomics_py/calculate.py
SeBassTian23/Visual-Phenomics-Python
1ce9f2fff6bf47a7a4a2c9059eb534348b65b2b6
[ "MIT" ]
null
null
null
visual_phenomics_py/calculate.py
SeBassTian23/Visual-Phenomics-Python
1ce9f2fff6bf47a7a4a2c9059eb534348b65b2b6
[ "MIT" ]
null
null
null
visual_phenomics_py/calculate.py
SeBassTian23/Visual-Phenomics-Python
1ce9f2fff6bf47a7a4a2c9059eb534348b65b2b6
[ "MIT" ]
null
null
null
""" Calculate additional parameters or recalculate parameters. """ def calculate(df=None, param='', *, fm='fm', f0='f0', fmp='fmp', f0p='f0p', fs='fs', fmpp='fmpp', f0pp='f0pp', fmf0=4.88, alias=None): """Calculate photosynthetic parameters Calculate photosynthetic parameters from basic fluorescence paramete...
44.028986
171
0.526991
""" Calculate additional parameters or recalculate parameters. """ from visual_phenomics_py.parameters import * from visual_phenomics_py.parameters_additional import * def calculate(df=None, param='', *, fm='fm', f0='f0', fmp='fmp', f0p='f0p', fs='fs', fmpp='fmpp', f0pp='f0pp', fmf0=4.88, alias=None): """Calcula...
0
0
0
0
0
0
0
57
45
8650240fd28ccf9c0925b49b1840e0cf02b48178
1,489
py
Python
examples/adjacency_list.py
enpaul/peewee
177f04cbce02851b0420e2002a72fa91ea9b309b
[ "MIT" ]
8,289
2015-01-01T17:10:34.000Z
2022-03-30T23:18:33.000Z
examples/adjacency_list.py
enpaul/peewee
177f04cbce02851b0420e2002a72fa91ea9b309b
[ "MIT" ]
2,015
2015-01-02T16:59:35.000Z
2022-03-31T02:41:24.000Z
examples/adjacency_list.py
enpaul/peewee
177f04cbce02851b0420e2002a72fa91ea9b309b
[ "MIT" ]
1,740
2015-01-04T09:48:38.000Z
2022-03-31T13:44:48.000Z
db = SqliteDatabase(':memory:') db.create_tables([Node]) tree = ('root', ( ('n1', ( ('c11', ()), ('c12', ()))), ('n2', ( ('c21', ()), ('c22', ( ('g221', ()), ('g222', ()))), ('c23', ()), ('c24', ( ('g241', ()), (...
25.237288
78
0.552048
from peewee import * db = SqliteDatabase(':memory:') class Node(Model): name = TextField() parent = ForeignKeyField('self', backref='children', null=True) class Meta: database = db def __str__(self): return self.name def dump(self, _indent=0): return (' ' * _indent + s...
0
0
0
337
0
0
0
-1
45
4567d33898daf9c73323f91f151e6d9eeb0b2e78
4,159
py
Python
ihna/kozhukhov/imageanalysis/gui/dataprocessing/spatialfilterdlg.py
serik1987/ihna_kozhuhov_image_analysis
ccfb3b48cbf6b351acb10f8b99315c65281f8ab8
[ "Unlicense" ]
null
null
null
ihna/kozhukhov/imageanalysis/gui/dataprocessing/spatialfilterdlg.py
serik1987/ihna_kozhuhov_image_analysis
ccfb3b48cbf6b351acb10f8b99315c65281f8ab8
[ "Unlicense" ]
null
null
null
ihna/kozhukhov/imageanalysis/gui/dataprocessing/spatialfilterdlg.py
serik1987/ihna_kozhuhov_image_analysis
ccfb3b48cbf6b351acb10f8b99315c65281f8ab8
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8
38.509259
100
0.675884
# -*- coding: utf-8 import numpy as np import wx from ihna.kozhukhov.imageanalysis import ImagingMap from ihna.kozhukhov.imageanalysis.mapprocessing import spatial_filter from ihna.kozhukhov.imageanalysis.gui.complexmapviewerdlg import ComplexMapViewerDlg from .datatodataprocessor import DataToDataProcessor class Sp...
0
0
0
3,825
0
0
0
157
156
0a0eccb3c3b514b534fa9214a71cc84c4df6c16c
6,017
py
Python
pyalgotrade/technical/ma.py
tibkiss/pyalgotrade
4979315281c362dcba2e6d53da27dc4a7377ebec
[ "Apache-2.0" ]
2
2015-04-03T10:29:14.000Z
2017-01-21T05:55:00.000Z
pyalgotrade/technical/ma.py
tibkiss/pyalgotrade
4979315281c362dcba2e6d53da27dc4a7377ebec
[ "Apache-2.0" ]
null
null
null
pyalgotrade/technical/ma.py
tibkiss/pyalgotrade
4979315281c362dcba2e6d53da27dc4a7377ebec
[ "Apache-2.0" ]
null
null
null
# PyAlgoTrade # # Copyright 2011 Gabriel Martin Becedillas Ruiz # # 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 applica...
33.803371
116
0.651321
# PyAlgoTrade # # Copyright 2011 Gabriel Martin Becedillas Ruiz # # 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 applica...
0
0
0
4,589
0
264
0
12
115
8a5f497112103293d27e66f42bcc18eee1df1536
3,137
py
Python
src/nninst/backend/tensorflow/trace/resnet_18_cifar10_class_trace.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
15
2020-08-24T07:11:20.000Z
2021-09-13T08:03:42.000Z
src/nninst/backend/tensorflow/trace/resnet_18_cifar10_class_trace.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
5
2021-02-28T17:30:26.000Z
2021-06-15T09:33:00.000Z
src/nninst/backend/tensorflow/trace/resnet_18_cifar10_class_trace.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
3
2020-10-22T09:11:11.000Z
2021-01-16T14:49:34.000Z
# Copyright 2017 The TensorFlow Authors. 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 appl...
31.059406
102
0.75263
# Copyright 2017 The TensorFlow Authors. 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 appl...
0
0
0
0
0
0
0
97
0
f77ea59bf822539953a84da90bca3bded5b1d71d
4,051
py
Python
spider/wenkubaidu/wenku.py
JackyYuanjie/python-scripts
490eb9668bda6db004ae87d204588fb6ffe56051
[ "Apache-2.0" ]
1
2021-07-08T05:09:38.000Z
2021-07-08T05:09:38.000Z
spider/wenkubaidu/wenku.py
JackyYuanjie/python-scripts
490eb9668bda6db004ae87d204588fb6ffe56051
[ "Apache-2.0" ]
null
null
null
spider/wenkubaidu/wenku.py
JackyYuanjie/python-scripts
490eb9668bda6db004ae87d204588fb6ffe56051
[ "Apache-2.0" ]
1
2020-01-09T07:29:17.000Z
2020-01-09T07:29:17.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ https://wenku.baidu.com/browse/getrequest?doc_id=a1eec6289b6648d7c1c7468f&pn=22&rn=1&type=ppt&callback=bd__cbs__s5lw72 https://wenku.baidu.com/browse/getrequest?doc_id=a1eec6289b6648d7c1c7468f&pn=23&rn=1&type=ppt&callback=bd__cbs__coo5j5 https://wenku.baidu.com/browse/...
44.032609
883
0.689459
#!/usr/bin/env python # -*- coding:utf-8 -*- import urllib import requests from bs4 import BeautifulSoup """ https://wenku.baidu.com/browse/getrequest?doc_id=a1eec6289b6648d7c1c7468f&pn=22&rn=1&type=ppt&callback=bd__cbs__s5lw72 https://wenku.baidu.com/browse/getrequest?doc_id=a1eec6289b6648d7c1c7468f&pn=23&rn=1&type...
210
0
0
2,636
0
0
0
-6
90
dc824dbc29f0b42ffaa3b7d3fe8147c1f7a32031
18,983
py
Python
source/xgm_mod_options.py
Omni-9/warband_mod_source
c9737d7793ccdb185d8d3caedda0da915104e405
[ "BSD-Source-Code" ]
14
2018-09-20T23:01:27.000Z
2021-05-25T11:05:09.000Z
source/xgm_mod_options.py
Omni-9/warband_mod_source
c9737d7793ccdb185d8d3caedda0da915104e405
[ "BSD-Source-Code" ]
44
2018-09-15T03:05:50.000Z
2022-03-22T02:46:24.000Z
source/xgm_mod_options.py
Omni-9/warband_mod_source
c9737d7793ccdb185d8d3caedda0da915104e405
[ "BSD-Source-Code" ]
13
2018-10-02T11:45:24.000Z
2021-08-22T18:41:44.000Z
#import string ############################################################################ ## 0) overlay id (not used atm, but can allow searches in future. just put something unique) ## 1) overlay type (defined in xgm_mod_options_header) ## 2) overlay type specific parameters (e.g. for number box, it can be lower/up...
30.716828
155
0.566928
from header_common import * from header_presentations import * from header_mission_templates import * from ID_meshes import * from header_operations import * from header_triggers import * from module_constants import * #import string from xgm_mod_options_header import * ###############################################...
0
0
0
1,597
0
212
0
86
244
8abd70df157d14db679e659f636c0cd688861cb3
6,182
py
Python
examples/pde/utilities3.py
mkhodak/relax
f6b5a318d74fc1209ba67ec95d2118698194f9c5
[ "MIT" ]
11
2021-10-01T17:23:18.000Z
2022-03-31T22:10:36.000Z
examples/pde/utilities3.py
mkhodak/relax
f6b5a318d74fc1209ba67ec95d2118698194f9c5
[ "MIT" ]
null
null
null
examples/pde/utilities3.py
mkhodak/relax
f6b5a318d74fc1209ba67ec95d2118698194f9c5
[ "MIT" ]
null
null
null
import torch import torch.nn as nn ################################################# # # Utilities # ################################################# device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # reading data # normalization, pointwise gaussian # normalization, Gaussian # normalization...
26.761905
113
0.550793
import torch import numpy as np import scipy.io import h5py import torch.nn as nn ################################################# # # Utilities # ################################################# device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # reading data class MatReader(object): def _...
0
0
0
5,588
0
0
0
-19
198
15b531407df3e093f666b046edd03aed1f14e76a
4,874
py
Python
book_search/models.py
drogers141/book-search
0745eb3b25023a44da4c6e7fc4d96de086549f04
[ "MIT" ]
null
null
null
book_search/models.py
drogers141/book-search
0745eb3b25023a44da4c6e7fc4d96de086549f04
[ "MIT" ]
null
null
null
book_search/models.py
drogers141/book-search
0745eb3b25023a44da4c6e7fc4d96de086549f04
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__) def extract_author_and_title(metadata: dict) -> (str, str): """Try to get the author and title from the metadata. Return empty strings if not found.""" author, title = '', '' for key in ('Author', 'author', 'dc:creator', 'creator', 'meta:author'): ...
38.078125
115
0.649569
from io import StringIO import re from pathlib import Path import logging from django.db import models from django.conf import settings from bs4 import BeautifulSoup from tika import parser logger = logging.getLogger(__name__) class TikaParseError(RuntimeError): """Raised when the conversion of a document into ...
0
0
0
4,060
0
0
0
21
224
7b9c55eaa5d05bc09b14fe1a2ce8e97213b9c0ef
2,284
py
Python
bminf/core/context.py
AdamBear/BMInf
8e650dc30e3ed9d7d628153b0a4dbd76d97ea948
[ "Apache-2.0" ]
206
2021-09-23T08:55:29.000Z
2022-03-26T13:15:41.000Z
bminf/core/context.py
AdamBear/BMInf
8e650dc30e3ed9d7d628153b0a4dbd76d97ea948
[ "Apache-2.0" ]
24
2021-09-24T05:54:39.000Z
2022-03-25T01:44:49.000Z
bminf/core/context.py
AdamBear/BMInf
8e650dc30e3ed9d7d628153b0a4dbd76d97ea948
[ "Apache-2.0" ]
34
2021-09-26T02:17:29.000Z
2022-03-28T07:01:54.000Z
import logging logger = logging.getLogger(__name__)
30.453333
91
0.612522
from typing import List, Tuple, Type from .tensor import Tensor from .device import Device from .allocator import Allocator from cpm_kernels.library import cudart import numpy as np import logging logger = logging.getLogger(__name__) class Context: def __init__(self, device_idx : List[int], ...
0
109
0
1,919
0
0
0
50
155
d79f6521598d0b35ad0abac23c970dfac3a65db6
3,999
py
Python
code/python_scripts/dlinked_list.py
lukaschoebel/LUMOS
5d084e487d937957896a58ef3ab719f86074fa9a
[ "MIT" ]
null
null
null
code/python_scripts/dlinked_list.py
lukaschoebel/LUMOS
5d084e487d937957896a58ef3ab719f86074fa9a
[ "MIT" ]
null
null
null
code/python_scripts/dlinked_list.py
lukaschoebel/LUMOS
5d084e487d937957896a58ef3ab719f86074fa9a
[ "MIT" ]
null
null
null
if __name__ == "__main__": dlinkedList = DoublyLinkedList(10) dlinkedList.append(20) dlinkedList.append(30) dlinkedList.prepend(-5) dlinkedList.prepend(-8) dlinkedList.insert(value=12, index=2) dlinkedList.print_list() dlinkedList.remove(index=5) dlinkedList.insert(val...
26.483444
85
0.523631
class Node: def __init__(self, value): self.value = value self.prev = None self.next = None class DoublyLinkedList: def __init__(self, value): self.head = Node(value) self.tail = self.head self.length = 1 def append(self, value): ''' Adds a value to...
0
0
0
3,502
0
0
0
0
45
7893b475e4bb1bb6f28c83e8b1af171635285c0f
843
py
Python
setup.py
BOLD-lab/abbreviator
aca379362f04033c7cd1c62ca50b68280f3799c7
[ "MIT" ]
null
null
null
setup.py
BOLD-lab/abbreviator
aca379362f04033c7cd1c62ca50b68280f3799c7
[ "MIT" ]
null
null
null
setup.py
BOLD-lab/abbreviator
aca379362f04033c7cd1c62ca50b68280f3799c7
[ "MIT" ]
null
null
null
import setuptools import os with open("README.md", "r") as fh: long_description = fh.read() if os.environ.get('CI_COMMIT_TAG'): version = os.environ['CI_COMMIT_TAG'] else: version = "0.0.4" setuptools.setup( name="abbreviator", version=version, author="Stephanie Wagenaar", author_email="s...
28.1
71
0.679715
import setuptools import os with open("README.md", "r") as fh: long_description = fh.read() if os.environ.get('CI_COMMIT_TAG'): version = os.environ['CI_COMMIT_TAG'] else: version = "0.0.4" setuptools.setup( name="abbreviator", version=version, author="Stephanie Wagenaar", author_email="s...
0
0
0
0
0
0
0
0
0
9c86682e5fb8a773190f40daabb31d80b79ab5ec
750
py
Python
week3/array_partition1.py
ravichalla/wallbreaker
0d587f12c60df5e4bca47f9183484a69d284d1f5
[ "MIT" ]
null
null
null
week3/array_partition1.py
ravichalla/wallbreaker
0d587f12c60df5e4bca47f9183484a69d284d1f5
[ "MIT" ]
null
null
null
week3/array_partition1.py
ravichalla/wallbreaker
0d587f12c60df5e4bca47f9183484a69d284d1f5
[ "MIT" ]
null
null
null
''' QUESTION: 561. Array Partition I Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible. Example 1: Input: [1,4,3,2] Output: 4 Explanation: n is 2, and the maximum...
25.862069
205
0.64
''' QUESTION: 561. Array Partition I Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible. Example 1: Input: [1,4,3,2] Output: 4 Explanation: n is 2, and the maximum...
0
0
0
169
0
0
0
0
23
96c66bbd32ce6b5cd183eb7717b9022db143812a
4,881
py
Python
cisco_dnac_mac_lookup_runner.py
sarar0sa/Cisco_Mac_Lookup
b657b9ed0ecc60df008e02b6e008b09914cf07bf
[ "Apache-2.0" ]
null
null
null
cisco_dnac_mac_lookup_runner.py
sarar0sa/Cisco_Mac_Lookup
b657b9ed0ecc60df008e02b6e008b09914cf07bf
[ "Apache-2.0" ]
null
null
null
cisco_dnac_mac_lookup_runner.py
sarar0sa/Cisco_Mac_Lookup
b657b9ed0ecc60df008e02b6e008b09914cf07bf
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__": # Cool banner ofc print(""" MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM...
59.52439
110
0.562795
from time import sleep import csv from datetime import datetime import mac_vendor_lookup import cisco_service class CiscoDnacMacLookupRunner(): headers = {'Content-Type': 'application/json'} def __init__(self): self.cisco = cisco_service.CiscoService() self.mac_lookup = mac_vendor_lookup.MacL...
396
0
0
1,837
0
0
0
0
133
5c0946952b71037bb1f97ce65af023f47196a25c
35,474
py
Python
files/runs_small/cores_2/ocean.cont/power.py
ST4NSB/sniper-simulator-predictions
1f0fe2a10fda55fceea053464ea202bfe2effafc
[ "MIT" ]
1
2021-03-08T03:39:23.000Z
2021-03-08T03:39:23.000Z
files/runs_small/cores_2/ocean.cont/power.py
ST4NSB/sniper-simulator-predictions
1f0fe2a10fda55fceea053464ea202bfe2effafc
[ "MIT" ]
null
null
null
files/runs_small/cores_2/ocean.cont/power.py
ST4NSB/sniper-simulator-predictions
1f0fe2a10fda55fceea053464ea202bfe2effafc
[ "MIT" ]
null
null
null
power = {'BUSES': {'Area': 1.08752, 'Bus/Area': 1.08752, 'Bus/Gate Leakage': 0.00541455, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0564625, 'Bus/Subthreshold Leakage with power gating': 0.0211734, 'Gate...
73.59751
124
0.677398
power = {'BUSES': {'Area': 1.08752, 'Bus/Area': 1.08752, 'Bus/Gate Leakage': 0.00541455, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0564625, 'Bus/Subthreshold Leakage with power gating': 0.0211734, 'Gate...
0
0
0
0
0
0
0
0
0
e9a2f6e36e21d2f812a566f6b88b2d9f4025924d
1,890
py
Python
app/main.py
alf1e/CHUM-Package-manager
814290e344c82a8e0fb48435a745b15ae178eefb
[ "MIT" ]
null
null
null
app/main.py
alf1e/CHUM-Package-manager
814290e344c82a8e0fb48435a745b15ae178eefb
[ "MIT" ]
null
null
null
app/main.py
alf1e/CHUM-Package-manager
814290e344c82a8e0fb48435a745b15ae178eefb
[ "MIT" ]
null
null
null
#!/usr/bin/env python ######### #LICENSE# ######### ''' MIT License Copyright (c) 2021 ItsMeAlfie0 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 limitat...
29.076923
78
0.691534
#!/usr/bin/env python ######### #LICENSE# ######### ''' MIT License Copyright (c) 2021 ItsMeAlfie0 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 limitat...
0
0
0
0
0
0
0
0
0
10235f4c22917028f59e78a277404007dacc9d74
1,058
py
Python
pin ponge.py
glebyad/ping-pong
2fabfa00b51f5c50686f8c6de10864722f3d3968
[ "CC0-1.0" ]
null
null
null
pin ponge.py
glebyad/ping-pong
2fabfa00b51f5c50686f8c6de10864722f3d3968
[ "CC0-1.0" ]
null
null
null
pin ponge.py
glebyad/ping-pong
2fabfa00b51f5c50686f8c6de10864722f3d3968
[ "CC0-1.0" ]
null
null
null
# window = display.set_mode((1000, 700)) display.set_caption('') # background = transform.scale(image.load('ping.jpg'), (1000, 700)) # 2 x1 = 0 y1 = 300 x2 = 900 y2 = 300 sprite1 = transform.scale(image.load('raketka1.png'), (100, 100) ) sprite2 = transform.scale(image.load('raketka2.jpg'), ...
19.592593
66
0.571834
from pygame import * #создай окно игры window = display.set_mode((1000, 700)) display.set_caption('догонялки') #задай фон сцены background = transform.scale(image.load('ping.jpg'), (1000, 700)) #создай 2 спрайта и размести их на сцене x1 = 0 y1 = 300 x2 = 900 y2 = 300 sprite1 = transform.scale(image.lo...
134
0
0
0
0
0
0
-1
23
4095a34c413d03e43c4c7d0136819b20e9686d8b
3,010
py
Python
containerchaos/measure_response_time.py
containerchaos/containerchaos
3e44c9587542678d6563b3f07299fb33c88a1f3e
[ "MIT" ]
null
null
null
containerchaos/measure_response_time.py
containerchaos/containerchaos
3e44c9587542678d6563b3f07299fb33c88a1f3e
[ "MIT" ]
9
2019-02-15T16:59:39.000Z
2019-02-26T22:42:10.000Z
containerchaos/measure_response_time.py
containerchaos/containerchaos
3e44c9587542678d6563b3f07299fb33c88a1f3e
[ "MIT" ]
1
2019-07-31T13:38:51.000Z
2019-07-31T13:38:51.000Z
import csv import datetime import matplotlib.pyplot as plt import pandas as pd import requests import seaborn as sns def measure_response_time(url, criteria, write=True): ''' Measures and saves an API request's response time to a CSV file :param url: The URL for API request :param criteria: The crit...
32.021277
108
0.707641
import csv import datetime import matplotlib.pyplot as plt import pandas as pd import requests import seaborn as sns def measure_response_time(url, criteria, write=True): ''' Measures and saves an API request's response time to a CSV file :param url: The URL for API request :param criteria: The crit...
0
0
0
0
0
0
0
0
0
821041c230e611989e036de3de8d4f9ba908a39e
1,620
py
Python
tracking/main.py
chan-w/vaccine-text-signup
f926aa76724ffd5fe1d473fd6cdb70ed50ee982d
[ "MIT" ]
null
null
null
tracking/main.py
chan-w/vaccine-text-signup
f926aa76724ffd5fe1d473fd6cdb70ed50ee982d
[ "MIT" ]
null
null
null
tracking/main.py
chan-w/vaccine-text-signup
f926aa76724ffd5fe1d473fd6cdb70ed50ee982d
[ "MIT" ]
null
null
null
api_key = "AIzaSyAedPSTmyoW1ejPtwG_cSu7fEjLxOOUrXg" # Uses the Geocode API import requests from urllib.parse import urlencode #Input address here! lat, lng = extract_lat_lng("1600 Amphitheatre Parkway, Mountain View, CA") places_endpoint_2 = "https://maps.googleapis.com/maps/api/place/nearbysearch/json" params_2 = {...
27.931034
93
0.683951
api_key = "AIzaSyAedPSTmyoW1ejPtwG_cSu7fEjLxOOUrXg" # Uses the Geocode API import requests from urllib.parse import urlencode def extract_lat_lng(address_or_postalcode, data_type = 'json'): endpoint = f"https://maps.googleapis.com/maps/api/geocode/{data_type}" params = {"address": address_or_postalcode, "key":...
0
0
0
0
0
504
0
0
23
f74c328b4e8be5db4ab0478db22db83a43dfc36e
38,645
py
Python
petitions/migrations/01000_add_counties_subcounties_courts_prisons_offences.py
DavidWaichari/pomac
79273c34dc54a301ed9fd802b0c2c487b2ac5d92
[ "MIT" ]
null
null
null
petitions/migrations/01000_add_counties_subcounties_courts_prisons_offences.py
DavidWaichari/pomac
79273c34dc54a301ed9fd802b0c2c487b2ac5d92
[ "MIT" ]
null
null
null
petitions/migrations/01000_add_counties_subcounties_courts_prisons_offences.py
DavidWaichari/pomac
79273c34dc54a301ed9fd802b0c2c487b2ac5d92
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-01-28 19:30
56.25182
112
0.73712
# Generated by Django 2.0.1 on 2018-01-28 19:30 from django.db import migrations def add_initial_data(apps, schema_editor): County = apps.get_model('petitions', 'County') Court = apps.get_model('petitions', 'Court') SubCounty = apps.get_model('petitions', 'SubCounty') Prison = apps.get_model('petit...
12
0
0
158
0
38,352
0
11
69