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
11b8ebea444284392a8521e9ca33bd22be00da3c
1,330
py
Python
preprocessing/hexevent/convert_hexevent_to_vanilla_format.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
1
2021-05-13T15:30:39.000Z
2021-05-13T15:30:39.000Z
preprocessing/hexevent/convert_hexevent_to_vanilla_format.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
null
null
null
preprocessing/hexevent/convert_hexevent_to_vanilla_format.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
null
null
null
import numpy as np """ Helper script to convert original DSC data to the 'standard' Vanilla format I use for the data """ src = '../../data/hexevent' trgt = '../../data/hexevent' cons = np.load(f'{src}/cons_original_format.npy') high = np.load(f'{src}/high_original_format.npy') low = np.load(f'{src}/low_original_for...
34.102564
94
0.696992
import numpy as np """ Helper script to convert original DSC data to the 'standard' Vanilla format I use for the data """ src = '../../data/hexevent' trgt = '../../data/hexevent' cons = np.load(f'{src}/cons_original_format.npy') high = np.load(f'{src}/high_original_format.npy') low = np.load(f'{src}/low_original_for...
0
0
0
0
0
460
0
0
23
6b03ebd8e99efdfa7f138dff3baf0d399b2f6b26
11,346
py
Python
src/util/HOMURA_service.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
6
2020-12-31T06:13:56.000Z
2022-03-27T16:26:12.000Z
src/util/HOMURA_service.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
null
null
null
src/util/HOMURA_service.py
delavet/SOworkspace
74bbcfa62c7e293b2b02f23249ac408aa22b44af
[ "MIT" ]
null
null
null
# from .mysql_access.posts import DBPosts
42.815094
248
0.582937
import os import json from types import CodeType import networkx as nx from util.constant import * from .utils import get_api_name_from_entity_id from .config import HOMURA_COMMUNITY_API_RECOMMEND_STORE_PATH, COMMUNITY_RECOMMEND_ENTRY_THREADS_STORE_PATH, API_THREAD_ID_MAP_STORE_PATH, API_THREAD_ID_RESORT_MAP_STORE_PA...
444
0
0
10,587
0
0
0
345
223
a6519e7e14c336c07e62d1308e20a78ac95ae885
2,008
py
Python
tests/unit/algorithms/lightning_anil_test_notravis.py
Brikwerk/learn2learn
7997c13c26ec627d13ce77ba98427260df78ada8
[ "MIT" ]
1
2021-07-07T17:03:45.000Z
2021-07-07T17:03:45.000Z
tests/unit/algorithms/lightning_anil_test_notravis.py
Brikwerk/learn2learn
7997c13c26ec627d13ce77ba98427260df78ada8
[ "MIT" ]
null
null
null
tests/unit/algorithms/lightning_anil_test_notravis.py
Brikwerk/learn2learn
7997c13c26ec627d13ce77ba98427260df78ada8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest if __name__ == "__main__": unittest.main()
27.135135
88
0.609562
#!/usr/bin/env python3 import unittest import torch import learn2learn as l2l import pytorch_lightning as pl from learn2learn.utils.lightning import EpisodicBatcher from learn2learn.algorithms import LightningANIL class Lambda(torch.nn.Module): def __init__(self, fn): super(Lambda, self).__init__() ...
0
0
0
1,695
0
0
0
65
157
3d9622120c0661e314859ca13e83e531c9843144
20,759
py
Python
notebooks-text-format/africa_bayes_svi_hmc_pyro.py
arpitvaghela/probml-notebooks
32ecb309dd474b989fd1c6ce4ad6dab7a25bbead
[ "MIT" ]
166
2021-07-16T17:33:09.000Z
2022-03-30T03:35:34.000Z
notebooks-text-format/africa_bayes_svi_hmc_pyro.py
arpitvaghela/probml-notebooks
32ecb309dd474b989fd1c6ce4ad6dab7a25bbead
[ "MIT" ]
29
2021-07-21T16:31:51.000Z
2022-03-31T19:50:13.000Z
notebooks-text-format/africa_bayes_svi_hmc_pyro.py
arpitvaghela/probml-notebooks
32ecb309dd474b989fd1c6ce4ad6dab7a25bbead
[ "MIT" ]
48
2021-07-17T08:26:18.000Z
2022-03-31T03:36:18.000Z
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab...
38.947467
320
0.704177
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 # name: python3 # --- # + [markdown] id="view-in-github" colab_type="text" # <a href="https://colab...
0
0
0
774
0
4,039
0
26
361
1b2f7105e2b5c8b54c69cd0c91b498e22ed57462
70
py
Python
exercise3_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
exercise3_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
exercise3_2.py
sbrrr/Baby-scripts
26072d7f0218df0bffdf64202a5fc9fc4a3d573d
[ "MIT" ]
null
null
null
print([i for i in [1, 2, 3 ,4 ,5 , 8, 13, 21, 34, 55, 89] if i <= 5])
35
69
0.457143
print([i for i in [1, 2, 3 ,4 ,5 , 8, 13, 21, 34, 55, 89] if i <= 5])
0
0
0
0
0
0
0
0
0
cdb63779df0c596ab10696e778afb86113c82735
1,615
py
Python
core/linkextractors/lxmlhtml.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
core/linkextractors/lxmlhtml.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
core/linkextractors/lxmlhtml.py
fengqimin/framework
83dcac979409adbe1361bfd31346c7415a17902e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
31.666667
85
0.634056
# -*- coding: utf-8 -*- from urllib.parse import urljoin from lxml import etree from framework.core.linkextractors import BaseLinkExtractor from framework.utils.href import HREF class LxmlLinkExtractor(BaseLinkExtractor): """base class for extractor,base_url可以为'',否则必须是绝对url """ def __init__(self, selec...
198
0
0
1,345
0
0
0
66
113
395a213ad55cb2d8b4680551dcf4c714cfe36f2b
1,722
py
Python
adventofcode/2015/02.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
10
2015-01-31T09:04:45.000Z
2022-01-08T04:09:48.000Z
adventofcode/2015/02.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
3
2016-05-16T07:37:01.000Z
2016-05-18T14:14:16.000Z
adventofcode/2015/02.py
hacktoolkit/code_challenges
d71f8362496a72963a53abba7bcc9dd4d35a2920
[ "MIT" ]
6
2015-02-06T06:00:00.000Z
2020-02-13T16:13:48.000Z
INPUT_FILE = '02.in' EXPECTED_ANSWERS = (1588178, 3783758, ) if __name__ == '__main__': main()
21.797468
80
0.602787
from utils import ingest INPUT_FILE = '02.in' EXPECTED_ANSWERS = (1588178, 3783758, ) def main(): solution = Solution() answers = (solution.solve1(), solution.solve2(), ) print(answers) assert(answers == EXPECTED_ANSWERS) class Solution: def __init__(self): self.data = ingest(INPUT_FIL...
0
671
0
721
0
130
0
3
91
7881583392bb83307b9c9663742b43e2fadc9318
12,692
py
Python
sibilant_full.py
MontrealCorpusTools/SPADE
e2b20506e09aeca8b37ab0eb5a382b6ab996a5c6
[ "MIT" ]
1
2020-06-11T17:29:53.000Z
2020-06-11T17:29:53.000Z
sibilant_full.py
MontrealCorpusTools/SPADE
e2b20506e09aeca8b37ab0eb5a382b6ab996a5c6
[ "MIT" ]
33
2018-07-26T19:29:27.000Z
2020-06-19T19:26:56.000Z
sibilant_full.py
MontrealCorpusTools/SPADE
e2b20506e09aeca8b37ab0eb5a382b6ab996a5c6
[ "MIT" ]
3
2018-02-23T20:50:55.000Z
2019-01-31T21:57:43.000Z
######################################### ## SPADE sibilant full analysis script ## ######################################### ## Processes and extracts linguistic and acoustic information pertaining to sibilants ## for *all* sibilant segments in the corpus ## Used for extracting data collected as part of the SPeech Ac...
56.914798
138
0.654349
######################################### ## SPADE sibilant full analysis script ## ######################################### ## Processes and extracts linguistic and acoustic information pertaining to sibilants ## for *all* sibilant segments in the corpus ## Used for extracting data collected as part of the SPeech Ac...
0
0
0
0
0
8,304
0
42
135
b14f31255c1c0de93f09b49119cd9b73f4d3e4cf
3,667
py
Python
modules/logging.py
Domterion/uwu-bot
714916cc1189007e91ec40e39a3f46bc5e96282f
[ "MIT" ]
11
2019-03-18T23:45:11.000Z
2020-09-19T07:18:35.000Z
modules/logging.py
Domterion/uwu-bot
714916cc1189007e91ec40e39a3f46bc5e96282f
[ "MIT" ]
null
null
null
modules/logging.py
Domterion/uwu-bot
714916cc1189007e91ec40e39a3f46bc5e96282f
[ "MIT" ]
5
2019-03-02T03:05:22.000Z
2019-09-09T20:18:46.000Z
import discord import discord.ext.commands
33.642202
81
0.578402
import aiohttp import discord import discord.ext.commands from discord.ext import commands from discord import Webhook, AsyncWebhookAdapter class logging(commands.Cog): def __init__(self, bot): self.bot = bot self.hidden = True self.can_be_disabled = False async def commandtask(self, ...
0
620
2,523
312
0
24
0
31
112
563a52db71ea33a401fa9e0da6e5200aa7b2ca8a
353
py
Python
rmcalyse/testing_scripts/multi_histogram_example.py
antgobar/rmcalyse
dee40416bfd7cf73a4ede6eb309b484397e11310
[ "MIT" ]
3
2021-02-17T18:09:16.000Z
2021-03-12T12:36:19.000Z
rmcalyse/testing_scripts/multi_histogram_example.py
antgobar/rmcalyse
dee40416bfd7cf73a4ede6eb309b484397e11310
[ "MIT" ]
null
null
null
rmcalyse/testing_scripts/multi_histogram_example.py
antgobar/rmcalyse
dee40416bfd7cf73a4ede6eb309b484397e11310
[ "MIT" ]
1
2021-03-12T12:37:24.000Z
2021-03-12T12:37:24.000Z
import random import numpy as np import matplotlib.pyplot as plt x = [random.gauss(3, 1) for _ in range(400)] y = [random.gauss(4, 2) for _ in range(400)] bins = np.linspace(-10, 10, 100) plt.hist(x, bins, alpha=0.5, label='x') plt.hist(y, bins, alpha=0.5, label='y') plt.legend(loc='upper left') plt.title('Title 1')...
22.0625
44
0.671388
import random import numpy as np import matplotlib.pyplot as plt x = [random.gauss(3, 1) for _ in range(400)] y = [random.gauss(4, 2) for _ in range(400)] bins = np.linspace(-10, 10, 100) plt.hist(x, bins, alpha=0.5, label='x') plt.hist(y, bins, alpha=0.5, label='y') plt.legend(loc='upper left') plt.title('Title 1')...
0
0
0
0
0
0
0
0
0
a59cbc1deea71316a94de7768e0bb92b595551ea
18,778
py
Python
modules/git_webhooks/github.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
1
2020-12-31T03:10:42.000Z
2020-12-31T03:10:42.000Z
modules/git_webhooks/github.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
3
2020-10-12T21:27:28.000Z
2021-08-12T09:46:55.000Z
modules/git_webhooks/github.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
1
2020-10-12T21:17:58.000Z
2020-10-12T21:17:58.000Z
COMMIT_URL = "https://github.com/%s/commit/%s" COMMIT_RANGE_URL = "https://github.com/%s/compare/%s...%s" CREATE_URL = "https://github.com/%s/tree/%s" PR_COMMIT_RANGE_URL = "https://github.com/%s/pull/%s/files/%s..%s" PR_COMMIT_URL = "https://github.com/%s/pull/%s/commits/%s" DEFAULT_EVENT_CATEGORIES = ["ping", "co...
36.111538
88
0.542656
from src import utils from src.Logging import Logger as log from . import colors import itertools COMMIT_URL = "https://github.com/%s/commit/%s" COMMIT_RANGE_URL = "https://github.com/%s/compare/%s...%s" CREATE_URL = "https://github.com/%s/tree/%s" PR_COMMIT_RANGE_URL = "https://github.com/%s/pull/%s/files/%s..%s" P...
0
0
0
16,020
0
0
0
10
111
8a3b2b33324d7add8ba5e993b8499f0f2691d093
4,472
py
Python
orangeshare/__main__.py
krzemienski/Orange-Share
26a1cb55c3d147bc16807bbf1faa73350f72be22
[ "MIT" ]
18
2021-07-31T18:10:25.000Z
2022-03-14T01:38:54.000Z
orangeshare/__main__.py
krzemienski/Orange-Share
26a1cb55c3d147bc16807bbf1faa73350f72be22
[ "MIT" ]
14
2021-08-06T19:10:01.000Z
2021-12-20T10:21:50.000Z
orangeshare/__main__.py
krzemienski/Orange-Share
26a1cb55c3d147bc16807bbf1faa73350f72be22
[ "MIT" ]
2
2021-11-13T15:53:20.000Z
2022-01-23T12:25:32.000Z
import argparse import os import sys from typing import Optional from orangeshare import Orangeshare def get_args() -> argparse.Namespace: """ Gets all commandline arguments and validates them. :return: The arguments """ parser = argparse.ArgumentParser(description='A small python server that a...
33.125926
183
0.64602
import argparse import logging import os import sys import threading from typing import Optional from orangeshare import Orangeshare def get_args() -> argparse.Namespace: """ Gets all commandline arguments and validates them. :return: The arguments """ parser = argparse.ArgumentParser(descripti...
0
0
0
0
0
1,234
0
-12
175
7ec229f86cfbfc1426536673582141f3387fea17
38,918
py
Python
src/m3_conversion.py
MillionConcepts/m3-conversion
485c0cf6dcad12971c15fd728b194b465a82e713
[ "BSD-3-Clause" ]
1
2022-02-14T09:22:46.000Z
2022-02-14T09:22:46.000Z
src/m3_conversion.py
MillionConcepts/m3-conversion
485c0cf6dcad12971c15fd728b194b465a82e713
[ "BSD-3-Clause" ]
null
null
null
src/m3_conversion.py
MillionConcepts/m3-conversion
485c0cf6dcad12971c15fd728b194b465a82e713
[ "BSD-3-Clause" ]
null
null
null
""" specialized utilities and PDSVersionConverter / PDS4Writer subclasses for converting m3 products. """ from ast import literal_eval import datetime as dt import re import numpy as np import pandas as pd from converter_utils import get_from_and_apply, eqloc # utilities # what m3 'base names' look lik...
38.456522
81
0.564854
""" specialized utilities and PDSVersionConverter / PDS4Writer subclasses for converting m3 products. """ from ast import literal_eval import datetime as dt import os import re import shutil import numpy as np import pandas as pd import rasterio from toolz import merge from converter import PDSVersionC...
0
0
0
27,090
0
0
0
64
315
4afadc5608dcd7a84aaec56de5089976043b8848
370
py
Python
json_api_doc/__init__.py
jzellman/json-api-doc
9365fa5ceaa0a888f7a1253a7b2776c16c0600bf
[ "Apache-2.0" ]
null
null
null
json_api_doc/__init__.py
jzellman/json-api-doc
9365fa5ceaa0a888f7a1253a7b2776c16c0600bf
[ "Apache-2.0" ]
null
null
null
json_api_doc/__init__.py
jzellman/json-api-doc
9365fa5ceaa0a888f7a1253a7b2776c16c0600bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = """Julien Duponchelle""" __email__ = 'julien@duponchelle.info' __version__ = '0.9.0' from .serialization import serialize from .deserialization import deserialize, _flat, _resolve, _parse_included # keeps backwards compatibility parse = deserialize __all__ = ['serialize', 'dese...
24.666667
78
0.743243
# -*- coding: utf-8 -*- __author__ = """Julien Duponchelle""" __email__ = 'julien@duponchelle.info' __version__ = '0.9.0' from .serialization import serialize from .deserialization import deserialize, _flat, _resolve, _parse_included # keeps backwards compatibility parse = deserialize __all__ = ['serialize', 'dese...
0
0
0
0
0
0
0
0
0
cdcd8bbf8c55834d0bd53099b333572b39499729
29,318
py
Python
tests/integration/test_raceplans.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
null
null
null
tests/integration/test_raceplans.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
62
2021-09-14T18:47:38.000Z
2022-03-21T22:14:20.000Z
tests/integration/test_raceplans.py
langrenn-sprint/race-service
a5f3ca8d381e8e4d81bae25cccee0cb47b64400b
[ "Apache-2.0" ]
null
null
null
"""Integration test cases for the raceplans route.""" # Bad cases # Unauthorized cases: # Forbidden: # NOT FOUND CASES:
34.011601
92
0.607681
"""Integration test cases for the raceplans route.""" from copy import deepcopy from datetime import datetime from json import dumps import os from aiohttp import hdrs from aiohttp.test_utils import TestClient as _TestClient from aioresponses import aioresponses import jwt import pytest from pytest_mock import MockFix...
0
28,367
0
0
0
0
0
50
750
3363af6c14f0de651a3ba55f5218617973010bd5
7,315
py
Python
test/pgic_test.py
JonJala/pgi_correct
12d46d7e0c810772099eefce901e3ff150b12277
[ "MIT" ]
3
2021-04-19T09:05:52.000Z
2021-07-18T15:31:39.000Z
test/pgic_test.py
JonJala/pgi_correct
12d46d7e0c810772099eefce901e3ff150b12277
[ "MIT" ]
null
null
null
test/pgic_test.py
JonJala/pgi_correct
12d46d7e0c810772099eefce901e3ff150b12277
[ "MIT" ]
null
null
null
""" Unit tests of components in pgic.py. This should be run via pytest """ import pgs_correct.pgic as pgic ########################################### ######### ######### ######### ######### ########################################### ######### ######### ##############################...
35.168269
99
0.61285
""" Unit tests of components in pgic.py. This should be run via pytest """ import numpy as np import pgs_correct.pgic as pgic import pytest ########################################### class TestCalculateRho: ######### @pytest.mark.parametrize("h2, r2, expected_rho", [ (1.0, 1.0, 1.0), ...
0
3,661
0
37
0
0
0
-11
449
7689ca957b8217513c9d81c4bae48dd047fbdb17
7,799
py
Python
first.py
MobtgZhang/2021MathorCupBigDataCompetition
6cfd93157cfc1bfeebbb5223104a6617bfa5d754
[ "MIT" ]
1
2022-01-22T06:13:30.000Z
2022-01-22T06:13:30.000Z
first.py
MobtgZhang/2021MathorCupBigDataCompetition
6cfd93157cfc1bfeebbb5223104a6617bfa5d754
[ "MIT" ]
null
null
null
first.py
MobtgZhang/2021MathorCupBigDataCompetition
6cfd93157cfc1bfeebbb5223104a6617bfa5d754
[ "MIT" ]
null
null
null
import logging import torch.optim as optim import torch.nn as nn logging.basicConfig(level = logging.INFO,format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger() if __name__ == "__main__": main()
48.141975
174
0.719579
import os import uuid import time import logging import numpy as np import torch import torch.optim as optim import torch.nn as nn from src.data import CarDataset from src.data import batchfy,test_batchfy from src.utils import to_device,write_to_txt from src.evaluate import evaluate_dataset,draw_result,test_raw_datas...
192
0
0
0
0
7,101
0
84
311
6ae069873210b10cbb278cb6717af1f16b39fc45
2,706
py
Python
pyversasense/jsonHelpers.py
flamm3blemuff1n/pyversasense
7da5064c2dacf7d648ad09dd327fdd4d9c81df59
[ "Apache-2.0" ]
null
null
null
pyversasense/jsonHelpers.py
flamm3blemuff1n/pyversasense
7da5064c2dacf7d648ad09dd327fdd4d9c81df59
[ "Apache-2.0" ]
null
null
null
pyversasense/jsonHelpers.py
flamm3blemuff1n/pyversasense
7da5064c2dacf7d648ad09dd327fdd4d9c81df59
[ "Apache-2.0" ]
null
null
null
from .device import Device from .peripheral import Peripheral from .sample import Sample from .measurement import Measurement def jsonToDeviceDict(json): """Convert json to list of Device objects.""" deviceDict = {} for jsonDevice in json: mac = jsonDevice.get("mac") address = jsonDevice.ge...
38.112676
159
0.669623
from .device import Device from .peripheral import Peripheral from .sample import Sample from .measurement import Measurement def jsonToDeviceDict(json): """Convert json to list of Device objects.""" deviceDict = {} for jsonDevice in json: mac = jsonDevice.get("mac") address = jsonDevice.ge...
0
0
0
0
0
0
0
0
0
8f6c5e3dfd9e90a3d6ae3cf38da3f5e4316c18e3
857
py
Python
Python Codes/InstaGram Profile Picture.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
1
2020-06-28T12:35:55.000Z
2020-06-28T12:35:55.000Z
Python Codes/InstaGram Profile Picture.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
1
2021-10-02T05:33:51.000Z
2021-10-02T05:34:02.000Z
Python Codes/InstaGram Profile Picture.py
AalsiCodeMan/Notebook-Ex
fd1cf8beddf26f6dd94f476f4c308b9057cc5ac7
[ "Unlicense" ]
3
2020-10-17T08:19:02.000Z
2021-10-11T12:33:18.000Z
if __name__ == "__main__": user=input("Enter Insta Account: ") picture_download(user)
37.26087
70
0.683781
import os import instaloader def picture_download(username): parser=instaloader.Instaloader() #"Change Directory to Downloads" os.chdir(os.path.join(os.path.expanduser('~'),'Downloads')) #"Create custom folder" if os.path.isdir("d:/Notebook Ex/Python Codes/Insta Download"): os.chdir("d:/Not...
0
0
0
0
0
698
0
-15
67
8f492f61a54e4d6fcedd9cc2ddebe66010a06e47
528
py
Python
run.py
SeanSuny/PT_Captcha
0717bb093122490b0919b5e3f0c263ecccf91cbe
[ "MIT" ]
null
null
null
run.py
SeanSuny/PT_Captcha
0717bb093122490b0919b5e3f0c263ecccf91cbe
[ "MIT" ]
null
null
null
run.py
SeanSuny/PT_Captcha
0717bb093122490b0919b5e3f0c263ecccf91cbe
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- ############################################################ # @Author : Sean # @Date : 2022-02-22 19:05:52 # @LastEditors : Sean # @LastEditTime : 2022-03-10 15:26:49 # @Description : Sean # @FilePath : /run.py # @Copyright : Copyright 2019-2022 Sea...
29.333333
60
0.481061
#!/usr/bin/env python # -*- coding:utf-8 -*- ############################################################ # @Author : Sean # @Date : 2022-02-22 19:05:52 # @LastEditors : Sean # @LastEditTime : 2022-03-10 15:26:49 # @Description : 这是由 Sean 创建 # @FilePath : /run.py # @Copyright : Copyright ©2019-20...
17
0
0
0
0
0
0
0
0
d7ff8854a7a61d4e93e253d13f39b7389ac59287
2,505
py
Python
bin/diff_images.py
open-climate-tech/firecam
d0041332f3d8ba38b7db3b6426010bff0099f569
[ "Apache-2.0" ]
9
2020-11-25T03:51:50.000Z
2022-02-13T19:19:51.000Z
bin/diff_images.py
open-climate-tech/firecam
d0041332f3d8ba38b7db3b6426010bff0099f569
[ "Apache-2.0" ]
6
2020-03-27T01:35:10.000Z
2022-03-26T16:20:31.000Z
bin/diff_images.py
open-climate-tech/firecam
d0041332f3d8ba38b7db3b6426010bff0099f569
[ "Apache-2.0" ]
3
2020-06-08T15:49:40.000Z
2022-01-24T11:18:40.000Z
# Copyright 2020 Open Climate Tech Contributors # # 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 agr...
32.115385
113
0.653493
# Copyright 2020 Open Climate Tech Contributors # # 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 agr...
0
0
0
0
0
1,427
0
26
246
30dacab910f561d85f7309caed581620c94eedac
955
py
Python
examples/ES/noise.py
jkren6/PARL
7299032f8e1804bb4ada0f087fd485816046fa90
[ "Apache-2.0" ]
3,172
2018-05-22T02:02:29.000Z
2022-03-31T09:14:56.000Z
examples/ES/noise.py
ic7y/PARL
e8797bd0d31d81bc81aae8b12792ff922bcb8ea9
[ "Apache-2.0" ]
422
2018-05-17T16:58:45.000Z
2022-03-31T02:03:25.000Z
examples/ES/noise.py
ic7y/PARL
e8797bd0d31d81bc81aae8b12792ff922bcb8ea9
[ "Apache-2.0" ]
794
2018-05-21T18:33:19.000Z
2022-03-30T13:38:09.000Z
# Third party code # # The following code are copied or modified from: # https://github.com/ray-project/ray/blob/master/python/ray/rllib/utils/filter.py
29.84375
81
0.677487
# Third party code # # The following code are copied or modified from: # https://github.com/ray-project/ray/blob/master/python/ray/rllib/utils/filter.py import numpy as np class SharedNoiseTable(object): """Shared noise table used by learner and actor. Learner and actor will create a same noise table by pas...
0
0
0
758
0
0
0
-3
46
af19717c4c549fdc94dbb23204fa848d4a3b159c
180
py
Python
src/426B.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
2
2016-08-19T09:47:03.000Z
2016-10-01T10:15:03.000Z
src/426B.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
null
null
null
src/426B.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
1
2015-07-01T23:57:32.000Z
2015-07-01T23:57:32.000Z
n, m = [int(i) for i in input().split()] a = [input().split() for i in range(n)] while n%2==0: if a[:n//2] == a[n//2:n][::-1]: n //= 2 else: break print(n)
20
40
0.444444
n, m = [int(i) for i in input().split()] a = [input().split() for i in range(n)] while n%2==0: if a[:n//2] == a[n//2:n][::-1]: n //= 2 else: break print(n)
0
0
0
0
0
0
0
0
0
9f77b9d4d2d8a8250f96b841020ec2bdad8ae9ab
3,153
py
Python
plugins/rules.py
gorpoorko/Bot-Tcxs-Heroku
b272b1c491ec2bea14e65f1d4e0c96c23bc2d815
[ "FTL" ]
1
2020-12-11T10:15:46.000Z
2020-12-11T10:15:46.000Z
plugins/rules.py
gorpoorko/Bot-Tcxs-Heroku
b272b1c491ec2bea14e65f1d4e0c96c23bc2d815
[ "FTL" ]
null
null
null
plugins/rules.py
gorpoorko/Bot-Tcxs-Heroku
b272b1c491ec2bea14e65f1d4e0c96c23bc2d815
[ "FTL" ]
1
2021-06-22T19:27:38.000Z
2021-06-22T19:27:38.000Z
# -*- coding: utf-8 -*- # # # # # # # [+] @GorpoOrko 2020 - Telegram Bot and Personal Assistant [+] # | TCXS Project Hacker Team - https://tcxsproject.com.br | # | Telegram: @GorpoOrko Mail:gorpoorko@protonmail.com | # [...
48.507692
292
0.46654
# -*- coding: utf-8 -*- # ███╗ ███╗ █████╗ ███╗ ██╗██╗ ██████╗ ██████╗ ███╗ ███╗██╗ ██████╗ # ████╗ ████║██╔══██╗████╗ ██║██║██╔════╝██╔═══██╗████╗ ████║██║██╔═══██╗ # ██╔████╔██║███████║██╔██╗ ██║██║██║ ██║ ██║██╔████╔██║██║██║ ██║ # ██║╚██╔╝██║██╔══██║██║╚██╗██║██║██║ ██║ ██║██║╚██╔╝██║██║██║ █...
1,089
0
1,953
0
0
280
0
36
136
871b827e4d135a96b452c6f159dbe3cda9cd9258
2,269
py
Python
s011-largest-product-in-grid.py
urtuba/project_euler_solutions
7a4b20f2d70082ab62efb49231519fd9e4a5dc27
[ "MIT" ]
3
2021-07-13T00:00:56.000Z
2021-07-21T16:53:04.000Z
s011-largest-product-in-grid.py
urtuba/project_euler_solutions
7a4b20f2d70082ab62efb49231519fd9e4a5dc27
[ "MIT" ]
null
null
null
s011-largest-product-in-grid.py
urtuba/project_euler_solutions
7a4b20f2d70082ab62efb49231519fd9e4a5dc27
[ "MIT" ]
null
null
null
# Project Euler 11 - Largest product in a grid # GitHub: urtuba import numpy as np def load_2d_array(filename: str) -> np.ndarray: ''' Reads a txt file into 2d numpy integer array. :param filename: name of the txt file. :return: 2d numpy array ''' with open(filename, 'r') as file: arr...
33.367647
80
0.624063
# Project Euler 11 - Largest product in a grid # GitHub: urtuba import numpy as np def load_2d_array(filename: str) -> np.ndarray: ''' Reads a txt file into 2d numpy integer array. :param filename: name of the txt file. :return: 2d numpy array ''' with open(filename, 'r') as file: arr...
0
0
0
0
0
1,082
0
0
80
a226e79bfdf50d116f66a3442a68581d62bf1fe9
2,289
py
Python
lean/constants.py
bmello4688/lean-cli
20024db4d56ebb9ad8a149d1120baa94f96bfe0a
[ "Apache-2.0" ]
null
null
null
lean/constants.py
bmello4688/lean-cli
20024db4d56ebb9ad8a149d1120baa94f96bfe0a
[ "Apache-2.0" ]
null
null
null
lean/constants.py
bmello4688/lean-cli
20024db4d56ebb9ad8a149d1120baa94f96bfe0a
[ "Apache-2.0" ]
null
null
null
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean CLI v1.0. Copyright 2021 QuantConnect Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at http://www.apache...
41.618182
95
0.786806
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean CLI v1.0. Copyright 2021 QuantConnect Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at http://www.apache...
0
0
0
0
0
0
0
0
0
b4440c9ced88b5c5ff544a81303350b9cd3742b7
532
py
Python
0001_sum_in_array/find_sum__in_array.py
browniebroke/dailycodingproblem
9f4c0d50ad70333fe14ebe97ba01cb2551a8ba90
[ "MIT" ]
null
null
null
0001_sum_in_array/find_sum__in_array.py
browniebroke/dailycodingproblem
9f4c0d50ad70333fe14ebe97ba01cb2551a8ba90
[ "MIT" ]
null
null
null
0001_sum_in_array/find_sum__in_array.py
browniebroke/dailycodingproblem
9f4c0d50ad70333fe14ebe97ba01cb2551a8ba90
[ "MIT" ]
null
null
null
import random from timeit import timeit if __name__ == '__main__': # Correctness print(main([10, 2, 3, 4, 5, 11, 6, 7, 8, 9], 19)) # True print(main([10, 2, 3, 4, 5, 11, 6, 7, 8, 9], 40)) # False items = [random.choice(range(10_000)) for _ in range(10_000)] res1 = timeit("main(items, 17)", number...
26.6
66
0.586466
import random from timeit import timeit def main(array, sum_to_find): for i, a in enumerate(array): b = sum_to_find - a if b in array[i:]: return True return False if __name__ == '__main__': # Correctness print(main([10, 2, 3, 4, 5, 11, 6, 7, 8, 9], 19)) # True print(...
0
0
0
0
0
138
0
0
23
d2c903101c0ee1999875e54bf8037eb1efaded77
2,808
py
Python
tests/destroyed_symlinks_test.py
christhekeele/pre-commit-hooks
2f7e22dc211ddec22670778553b91850a4ba8c1f
[ "MIT" ]
3
2021-08-23T04:25:59.000Z
2022-01-24T08:37:46.000Z
tests/destroyed_symlinks_test.py
christhekeele/pre-commit-hooks
2f7e22dc211ddec22670778553b91850a4ba8c1f
[ "MIT" ]
null
null
null
tests/destroyed_symlinks_test.py
christhekeele/pre-commit-hooks
2f7e22dc211ddec22670778553b91850a4ba8c1f
[ "MIT" ]
4
2021-06-03T09:56:50.000Z
2022-03-17T09:48:29.000Z
TEST_SYMLINK = 'test_symlink' TEST_SYMLINK_TARGET = '/doesnt/really/matters' TEST_FILE = 'test_file' TEST_FILE_RENAMED = f'{TEST_FILE}_renamed'
37.44
78
0.644587
import os import subprocess import pytest from pre_commit_hooks.destroyed_symlinks import find_destroyed_symlinks from pre_commit_hooks.destroyed_symlinks import main TEST_SYMLINK = 'test_symlink' TEST_SYMLINK_TARGET = '/doesnt/really/matters' TEST_FILE = 'test_file' TEST_FILE_RENAMED = f'{TEST_FILE}_renamed' @pyt...
0
1,052
0
0
0
1,394
0
57
158
afde40ddd9d46f292fbab526fe9f8a3c2e2ecec5
2,362
py
Python
experimental_scripts/analyze2.py
w4k2/AWAE
fa5c5d8dca1a6bc46d9819a42fa92d1120639b58
[ "MIT" ]
null
null
null
experimental_scripts/analyze2.py
w4k2/AWAE
fa5c5d8dca1a6bc46d9819a42fa92d1120639b58
[ "MIT" ]
null
null
null
experimental_scripts/analyze2.py
w4k2/AWAE
fa5c5d8dca1a6bc46d9819a42fa92d1120639b58
[ "MIT" ]
null
null
null
import numpy as np from tabulate import tabulate from scipy.stats import ttest_ind from tabulate import tabulate ### E1 get end np.set_printoptions(precision=3) alpha = 0.05 results = np.load("results2.npy") optimized = np.load("optimized.npy") optimized = np.moveaxis(optimized, 0, 1) """ # Dimensions are # 0 - re...
24.604167
86
0.583827
import numpy as np from itertools import combinations from tabulate import tabulate from scipy.stats import wilcoxon, ttest_rel, ttest_ind import matplotlib.pyplot as plt from tabulate import tabulate from matplotlib import rcParams ### E1 get end np.set_printoptions(precision=3) alpha = 0.05 results = np.load("re...
0
0
0
0
0
0
0
54
67
4a05970ef5a40fd9d697ce0de9a42cdde1e268e5
568
gyp
Python
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
4
2020-04-16T12:57:47.000Z
2020-04-18T09:12:26.000Z
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
null
null
null
binding.gyp
orta/apple-unified-logging-node
c9a590b5c96651390ff32434b7e5b25d1af33fb3
[ "MIT" ]
null
null
null
{ "make_global_settings": [ ["CC", "/usr/bin/clang"], ["CXX", "/usr/bin/clang++"] ], "targets": [ { "target_name": "OSLogger", "sources": ["OSLogger.mm", "functions.cc"], "include_dirs": ["<!(node -e \"require('nan')\")"], "xcode_settings": { "CC": "clang", "MA...
22.72
68
0.463028
{ "make_global_settings": [ ["CC", "/usr/bin/clang"], ["CXX", "/usr/bin/clang++"] ], "targets": [ { "target_name": "OSLogger", "sources": ["OSLogger.mm", "functions.cc"], "include_dirs": ["<!(node -e \"require('nan')\")"], "xcode_settings": { "CC": "clang", "MA...
0
0
0
0
0
0
0
0
0
838af24b410963732c2e020aee8110a561953473
28,355
py
Python
zentral/contrib/inventory/views.py
WW-Digital/zentral
5a0907545612228315f335924e2c21860782c7b8
[ "Apache-2.0" ]
null
null
null
zentral/contrib/inventory/views.py
WW-Digital/zentral
5a0907545612228315f335924e2c21860782c7b8
[ "Apache-2.0" ]
null
null
null
zentral/contrib/inventory/views.py
WW-Digital/zentral
5a0907545612228315f335924e2c21860782c7b8
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger("zentral.contrib.inventory.views") TAG_COLOR_PRESETS = { "green": "61bd4f", "yellow": "f2d600", "orange": "ffab4a", "red": "eb5a46", "purple": "c377e0", "blue": "0079bf", "sky": "00c2e0", "lime": "51e898", "pink": ...
38.578231
119
0.637101
from datetime import datetime, timedelta import logging from math import ceil from django.contrib.auth.mixins import LoginRequiredMixin from django.core.exceptions import ObjectDoesNotExist from django.urls import reverse, reverse_lazy from django.http import Http404, HttpResponseRedirect from django.shortcuts import g...
0
0
0
25,794
0
0
0
1,063
1,112
9ff0e4ddc4d849ee487ec4a87d68254a3520bfea
4,655
py
Python
typeidea_MTV/typeidea/blog/views.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
typeidea_MTV/typeidea/blog/views.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
typeidea_MTV/typeidea/blog/views.py
zj-myidea/MYIDEA
901389a779329603d141f0641c8d2bae423f1d6b
[ "BSD-2-Clause" ]
null
null
null
# Create your views here. # function view # def post_list(requset:HttpRequest, category_id=None, tag_id=None): # # tag = None # category = None # if tag_id: # tag, post_list = Post.get_by_tag(tag_id) # # elif category_id: # category, post_list = Post.get_by_category(category_id) # ...
28.913043
121
0.630934
from datetime import date from django.core.cache import cache from django.db.models import Q,F from django.shortcuts import render from django.shortcuts import get_object_or_404 from django.http import HttpResponse,HttpRequest from django.views.generic import ListView, DetailView from blog.models import Post, Categ...
6
0
0
2,930
0
0
0
162
361
c74528859b1f29fe55276b27417d11f096badcfa
633
py
Python
tests/test_zodb_read_list.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
1
2021-09-06T10:19:55.000Z
2021-09-06T10:19:55.000Z
tests/test_zodb_read_list.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
null
null
null
tests/test_zodb_read_list.py
liuyxpp/ngpy
24f4c07e336d255302618ea113ba2e02f60e01b4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from ZODB.FileStorage import FileStorage from ZODB.DB import DB storage = FileStorage('Data.fs') db = DB(storage) connection = db.open() root = connection.root() print root.keys() print root.items() print print 'account-list-1:' for aa in root['account-list-1']: print aa.__dict__ print p...
17.583333
40
0.671406
#!/usr/bin/env python class Account(object): def __init__(self): self.balance = 0.0 def deposit(self,amount): self.balance += amount def cash(self,amount): assert amount < self.balance self.balance -= amount from ZODB.FileStorage import FileStorage from ZODB.DB import DB...
0
0
0
210
0
0
0
0
23
e904338f5ed343053a24025b038c5f63577310df
392
py
Python
views/main.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
2
2020-01-15T07:18:11.000Z
2020-01-29T16:36:20.000Z
views/main.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
2
2019-11-19T08:50:11.000Z
2019-12-29T07:15:59.000Z
views/main.py
AbhishekPednekar84/personal-portfolio
b7aa797e52399bc002efee21e78195edc110a446
[ "MIT" ]
null
null
null
from flask import Blueprint main_blueprint = Blueprint("main", __name__, template_folder="templates")
23.058824
80
0.686224
from flask import Blueprint, render_template main_blueprint = Blueprint("main", __name__, template_folder="templates") @main_blueprint.route("/") @main_blueprint.route("/main") def main(): """ View method to render the home.html page - https://www.abhishekpednekar.com/ Returns ------- home.html:...
0
248
0
0
0
0
0
17
23
7ab8bdf020a72a38095bb0dd20d869ce2e1bd3df
5,965
py
Python
reviews/config/commands.py
thewchan/reviews
f381a590ccdb37b04c1844684d4246f7570f7d2a
[ "MIT" ]
134
2021-05-01T22:33:57.000Z
2022-03-31T14:40:10.000Z
reviews/config/commands.py
thewchan/reviews
f381a590ccdb37b04c1844684d4246f7570f7d2a
[ "MIT" ]
233
2021-04-26T21:31:17.000Z
2022-03-31T08:15:12.000Z
reviews/config/commands.py
thewchan/reviews
f381a590ccdb37b04c1844684d4246f7570f7d2a
[ "MIT" ]
11
2021-04-27T15:36:34.000Z
2022-01-15T16:40:44.000Z
from datetime import datetime from time import sleep from typing import List, Tuple from rich.console import Group from rich.live import Live from rich.panel import Panel from ..controller import GithubPullRequestController, GitlabPullRequestController, PullRequestController from ..layout import (RenderLayoutManager,...
33.324022
104
0.649958
from datetime import datetime from time import sleep from typing import List, Tuple from rich.console import Group from rich.live import Live from rich.panel import Panel from ..controller import GithubPullRequestController, GitlabPullRequestController, PullRequestController from ..layout import ( RenderLayoutMan...
0
0
0
0
0
0
0
74
0
da84d08aae15798b975ebd2c177317bbea236ef2
4,034
py
Python
cava/nightwatch/generator/c/makefile.py
arthurp/lapis2
1c0644cf1eeb2ddc5a735ca002d561e308ed6014
[ "BSD-2-Clause" ]
null
null
null
cava/nightwatch/generator/c/makefile.py
arthurp/lapis2
1c0644cf1eeb2ddc5a735ca002d561e308ed6014
[ "BSD-2-Clause" ]
null
null
null
cava/nightwatch/generator/c/makefile.py
arthurp/lapis2
1c0644cf1eeb2ddc5a735ca002d561e308ed6014
[ "BSD-2-Clause" ]
null
null
null
# TODO: Add CMake support. """ cmake_minimum_required(VERSION 3.12) find_package(PkgConfig REQUIRED) pkg_check_modules(GLIB REQUIRED glib-2.0) include_directories(${GLIB_INCLUDE_DIRS}) link_directories(${GLIB_LIBRARY_DIRS} ../../cmake-build-debug/guestlib ../../cmake-build-debug/worker ../../cmake-build-debug/commo...
33.338843
133
0.740456
from nightwatch.model import API def source(api: API, errors): makefile = f""" ifdef RELEASE AVA_RELEASE=yes else ifdef R AVA_RELEASE=yes endif ifdef AVA_RELEASE AVA_RELEASE_FLAG=-DAVA_RELEASE -DNDEBUG -O2 -flto -ggdb -rdynamic else AVA_RELEASE_FLAG=-O0 -g -ggdb -rdynamic endif CC=gcc CXX=g++ LINKER={"g++" if a...
0
0
0
0
0
2,949
0
11
45
d1b28e19855950e08d6babef1c7d5225cdd1adcb
206
py
Python
listener.py
ASafarzadeh/AIFaceLock
5a5bd1a9faf146b323be24723305742682f054d0
[ "MIT" ]
null
null
null
listener.py
ASafarzadeh/AIFaceLock
5a5bd1a9faf146b323be24723305742682f054d0
[ "MIT" ]
null
null
null
listener.py
ASafarzadeh/AIFaceLock
5a5bd1a9faf146b323be24723305742682f054d0
[ "MIT" ]
null
null
null
import keyboard import time while True: if keyboard.is_pressed('Windows')and keyboard.is_pressed('`'): delay() time.sleep(5)
20.6
67
0.631068
import keyboard import time import os def delay(): os.startfile("lock.pyw") while True: if keyboard.is_pressed('Windows')and keyboard.is_pressed('`'): delay() time.sleep(5)
0
0
0
0
0
21
0
-12
46
cb3d6679d6986d591180aef56c98b9e155d3adb3
2,014
py
Python
core/data/samplers.py
RuiBai1999/myrepo
1cf51db063b922ef58ff11da998c3f12f643420d
[ "MIT" ]
471
2021-09-13T11:28:34.000Z
2022-03-30T07:26:54.000Z
core/data/samplers.py
liuwenqi528/LibFewShot
ea8d618995a51079c79a6291af2ca02b01b846ea
[ "MIT" ]
24
2021-09-22T02:34:05.000Z
2022-02-19T07:26:39.000Z
core/data/samplers.py
liuwenqi528/LibFewShot
ea8d618995a51079c79a6291af2ca02b01b846ea
[ "MIT" ]
82
2021-09-16T12:48:01.000Z
2022-03-28T06:57:47.000Z
# -*- coding: utf-8 -*-
30.059701
77
0.57001
# -*- coding: utf-8 -*- import numpy as np import torch from torch.utils.data import Sampler class CategoriesSampler(Sampler): """A Sampler to sample a FSL task. Args: Sampler (torch.utils.data.Sampler): Base sampler from PyTorch. """ def __init__( self, label_list, l...
0
0
0
1,897
0
0
0
3
89
f4dfdda1fdb02e78c8bd30f11a83b3dbc225966a
7,722
py
Python
bicpl/obj.py
FNNDSC/pybicpl
c6211805953f2a57be6a3630cd852d3f87a662e0
[ "MIT" ]
null
null
null
bicpl/obj.py
FNNDSC/pybicpl
c6211805953f2a57be6a3630cd852d3f87a662e0
[ "MIT" ]
null
null
null
bicpl/obj.py
FNNDSC/pybicpl
c6211805953f2a57be6a3630cd852d3f87a662e0
[ "MIT" ]
null
null
null
def _list2str(array): """ Join a list with spaces between elements. """ return ' '.join(str(a) for a in array)
34.168142
118
0.578736
import os import numpy as np import numpy.typing as npt from dataclasses import dataclass from bicpl.types import SurfProp, Colour @dataclass(frozen=True) class PolygonObj: """ Polygonal mesh in `.obj` file format. http://www.bic.mni.mcgill.ca/users/mishkin/mni_obj_format.pdf Note: the data represe...
0
7,293
0
0
0
120
0
21
157
21c9da6c066c767ba6dbb1d507644c104ded5a81
4,058
py
Python
migrations/versions/247c9e7de059_.py
hellwen/mytrade
fd2518ef043df1528d3d4fc9d1af74172f0d636a
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/247c9e7de059_.py
hellwen/mytrade
fd2518ef043df1528d3d4fc9d1af74172f0d636a
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/247c9e7de059_.py
hellwen/mytrade
fd2518ef043df1528d3d4fc9d1af74172f0d636a
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 247c9e7de059 Revises: None Create Date: 2015-12-02 15:03:20.582541 """ # revision identifiers, used by Alembic. revision = '247c9e7de059' down_revision = None
39.019231
75
0.676934
"""empty message Revision ID: 247c9e7de059 Revises: None Create Date: 2015-12-02 15:03:20.582541 """ # revision identifiers, used by Alembic. revision = '247c9e7de059' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ###...
0
0
0
0
0
3,770
0
3
91
6b130a327765a587bde17b4ef51ad6ce550cc0e4
16,412
py
Python
src/sage/interfaces/latte.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/interfaces/latte.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/interfaces/latte.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
r""" Interface to LattE integrale programs """ #***************************************************************************** # Copyright (C) 2017 Vincent Delecroix <vincent.delecroix@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
35.143469
126
0.602181
r""" Interface to LattE integrale programs """ #***************************************************************************** # Copyright (C) 2017 Vincent Delecroix <vincent.delecroix@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
0
0
0
0
0
0
0
0
0
864fb7ebe95beb35893c514f912a85306dc62da8
3,629
py
Python
vulnerabilities/tests/test_alpine.py
bhuvi11/vulnerablecode
8044a9826568b24397d143e17624299f8008b0e0
[ "Apache-2.0" ]
null
null
null
vulnerabilities/tests/test_alpine.py
bhuvi11/vulnerablecode
8044a9826568b24397d143e17624299f8008b0e0
[ "Apache-2.0" ]
null
null
null
vulnerabilities/tests/test_alpine.py
bhuvi11/vulnerablecode
8044a9826568b24397d143e17624299f8008b0e0
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/vulnerablecode/ # The VulnerableCode software is licensed under the Apache License version 2.0. # Data generated with VulnerableCode require an acknowledgment. # # You may not use this software except in complian...
39.445652
99
0.63709
# # Copyright (c) nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/vulnerablecode/ # The VulnerableCode software is licensed under the Apache License version 2.0. # Data generated with VulnerableCode require an acknowledgment. # # You may not use this software except in complian...
0
73
0
1,811
0
0
0
115
157
ff5a70baf4972d867ca8d968bf2847c28304808a
348
py
Python
baike_spider/html_downloader.py
iicoom/Python
977e552f53c1919bebb11fc4a0eaf2fbbb35f71a
[ "MIT" ]
null
null
null
baike_spider/html_downloader.py
iicoom/Python
977e552f53c1919bebb11fc4a0eaf2fbbb35f71a
[ "MIT" ]
null
null
null
baike_spider/html_downloader.py
iicoom/Python
977e552f53c1919bebb11fc4a0eaf2fbbb35f71a
[ "MIT" ]
null
null
null
#urllib2pythonpython2 #python3urlliburllib2urllib
19.333333
44
0.655172
import urllib class HtmlDownloader(object): def download(self, url): if url is None: return None response = urllib.urlopen(url) if response.getcode() != 200: return None return response.read() #urllib2是一个标准库,安装python之后就自带了,并且只在于python2中 #在python3中,已经把ur...
117
0
0
221
0
0
0
-8
45
d2ef85c011c60c30665c3bb1c7daa00f27a9f583
394
py
Python
scripts/clean_output.py
ivanna-ostrovets/compilation-theory
766b827431c7b71720e6798350d363ee373a25f4
[ "MIT" ]
null
null
null
scripts/clean_output.py
ivanna-ostrovets/compilation-theory
766b827431c7b71720e6798350d363ee373a25f4
[ "MIT" ]
null
null
null
scripts/clean_output.py
ivanna-ostrovets/compilation-theory
766b827431c7b71720e6798350d363ee373a25f4
[ "MIT" ]
null
null
null
import os if __name__ == '__main__': path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) dirs_to_remove = ['output'] clean_output(path, dirs_to_remove)
23.176471
71
0.642132
import os import shutil def clean_output(path, dirs_to_remove): for root, dirs, files in os.walk(path): for dir in dirs: if dir in dirs_to_remove: shutil.rmtree(root + "/" + dir) if __name__ == '__main__': path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))...
0
0
0
0
0
173
0
-8
45
520b6b58e129ff7fda3896c6ff71336d463f4c99
81,000
py
Python
skidl/libs/dc-dc_sklib.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
700
2016-08-16T21:12:50.000Z
2021-10-10T02:15:18.000Z
skidl/libs/dc-dc_sklib.py
0dvictor/skidl
458709a10b28a864d25ae2c2b44c6103d4ddb291
[ "MIT" ]
118
2016-08-16T20:51:05.000Z
2021-10-10T08:07:18.000Z
skidl/libs/dc-dc_sklib.py
0dvictor/skidl
458709a10b28a864d25ae2c2b44c6103d4ddb291
[ "MIT" ]
94
2016-08-25T14:02:28.000Z
2021-09-12T05:17:08.000Z
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' dc_dc = SchLib(tool=SKIDL).add_parts(*[ Part(name='ADP1108',dest=TEMPLATE,tool=SKIDL,keywords='switching buck boost converter step-down step-up',description='Micropower DC-DC conveter, step-up or step-down operation, 2V-30Vin, ad...
80.039526
426
0.610741
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib SKIDL_lib_version = '0.0.1' dc_dc = SchLib(tool=SKIDL).add_parts(*[ Part(name='ADP1108',dest=TEMPLATE,tool=SKIDL,keywords='switching buck boost converter step-down step-up',description='Micropower DC-DC conveter, step-up or step-down operation, 2V-30Vin, ad...
36
0
0
0
0
0
0
0
0
e758dd6d892125a54dd0a0809101ec74403d7e22
5,608
py
Python
chat_state.py
ProgrammingIncluded/PyAN
b5628891c2f0f7b4deb97d92c7b6ab1163a13b54
[ "MIT" ]
null
null
null
chat_state.py
ProgrammingIncluded/PyAN
b5628891c2f0f7b4deb97d92c7b6ab1163a13b54
[ "MIT" ]
null
null
null
chat_state.py
ProgrammingIncluded/PyAN
b5628891c2f0f7b4deb97d92c7b6ab1163a13b54
[ "MIT" ]
null
null
null
############################################ # Project: PyAN # File: chat_state.py # By: ProgrammingIncluded # Website: ProgrammingIncluded.com # Desc: File to hold chat screen and logic. ############################################ from datetime import datetime # File to handle chats. # Keeps track of new chat data, ...
28.180905
107
0.622147
############################################ # Project: PyAN # File: chat_state.py # By: ProgrammingIncluded # Website: ProgrammingIncluded.com # Desc: File to hold chat screen and logic. ############################################ import input_buffer as ib import connect as cnt from command import print_buf import c...
0
0
1,223
0
0
1,883
0
7
420
ab34fd8f2e7ea59b40d4c45ffef5279e314aabd8
10,280
py
Python
get_angle_route.py
cfhaiteeh/FightRoute
0055b13848d957d3876049ab8cba45d268fc34d6
[ "MIT" ]
13
2019-11-11T10:26:19.000Z
2021-07-03T05:08:06.000Z
get_angle_route.py
cfhaiteeh/FightRoute
0055b13848d957d3876049ab8cba45d268fc34d6
[ "MIT" ]
null
null
null
get_angle_route.py
cfhaiteeh/FightRoute
0055b13848d957d3876049ab8cba45d268fc34d6
[ "MIT" ]
3
2020-06-16T06:21:05.000Z
2020-08-19T04:03:11.000Z
from data_processing import csv_processing from sympy.abc import x, y, z import math csv_data = csv_processing.get_data('data/data2.csv') # data1############################################################## # ans_min= 103512, curve length = 103652 # [0, 503, 200, 80, 237, 170, 278, 369, 214, 397, 612] # ans_min= ...
37.381818
227
0.563716
from math import sqrt, acos, pi from model.model import Model from data_processing import csv_processing from sympy import * from sympy.abc import x, y, z from scipy.optimize import fsolve import math csv_data = csv_processing.get_data('data/data2.csv') class Vector(object): def __init__(self, coordinates): ...
363
0
0
876
0
0
0
28
111
633b30c2d7f3dafe3015745b544ea24057f6af41
216
py
Python
setup.py
OneStrangeAlgorithm/reddit-inbox-parser
9d2ae76e4c8f9540d804d56fd3354081f5ba95da
[ "MIT" ]
null
null
null
setup.py
OneStrangeAlgorithm/reddit-inbox-parser
9d2ae76e4c8f9540d804d56fd3354081f5ba95da
[ "MIT" ]
null
null
null
setup.py
OneStrangeAlgorithm/reddit-inbox-parser
9d2ae76e4c8f9540d804d56fd3354081f5ba95da
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name='inbox_personal_parser', version='1.0', install_requires=[ 'matplotlib', 'numpy','pandas' ], py_modules=['inbox_personal_parser'] )
24
42
0.625
from distutils.core import setup setup(name='inbox_personal_parser', version='1.0', install_requires=[ 'matplotlib', 'numpy','pandas' ], py_modules=['inbox_personal_parser'] )
0
0
0
0
0
0
0
0
0
564205bb675fa67eb13afacb4492b71d62426f73
7,864
py
Python
pgoapi/utilities.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
pgoapi/utilities.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
pgoapi/utilities.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
""" pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> 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 t...
34.79646
133
0.63441
""" pgoapi - Pokemon Go API Copyright (c) 2016 tjado <https://github.com/tejado> 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 t...
0
0
0
589
0
4,259
0
37
534
c671544be4fba8f56a178de1bfca22ffa337c680
2,198
py
Python
totalvoice/cliente/api/central/ura.py
kmee/totalvoice-python
715daf50509acb4f05c38db49d88629f7d0a8e71
[ "MIT" ]
25
2017-11-03T00:15:26.000Z
2021-01-22T01:30:08.000Z
totalvoice/cliente/api/central/ura.py
kmee/totalvoice-python
715daf50509acb4f05c38db49d88629f7d0a8e71
[ "MIT" ]
1
2018-08-08T12:49:48.000Z
2018-08-17T17:57:41.000Z
totalvoice/cliente/api/central/ura.py
kmee/totalvoice-python
715daf50509acb4f05c38db49d88629f7d0a8e71
[ "MIT" ]
10
2017-10-20T23:22:17.000Z
2022-03-08T20:40:19.000Z
# coding=utf-8
25.55814
148
0.601001
# coding=utf-8 from totalvoice.cliente.api.helper import utils from totalvoice.cliente.api.helper.routes import Routes from totalvoice.cliente.api.totalvoice import Totalvoice import json, requests class Ura(Totalvoice): def __init__(self, cliente): super(Ura, self).__init__(cliente) def criar(self...
66
0
0
1,942
0
0
0
95
112
4f6b6b108f537af275b20de53fb34c8e874d43ed
5,694
py
Python
src/swordfish/monitor.py
LooseLab/swordfish
db1686cdc511aed9f4f19b499a9191b2aff81f3f
[ "MIT" ]
null
null
null
src/swordfish/monitor.py
LooseLab/swordfish
db1686cdc511aed9f4f19b499a9191b2aff81f3f
[ "MIT" ]
1
2022-01-28T16:57:27.000Z
2022-01-28T16:57:27.000Z
src/swordfish/monitor.py
LooseLab/swordfish
db1686cdc511aed9f4f19b499a9191b2aff81f3f
[ "MIT" ]
null
null
null
import logging import sys import time from pprint import pformat from rich.logging import RichHandler from rich.console import Console from swordfish.endpoints import EndPoint from swordfish.minotour_api import MinotourAPI from swordfish.utils import validate_mt_connection, write_toml_file, get_original_toml_settings...
40.671429
188
0.684932
import logging import sys import time from pprint import pformat from rich.logging import RichHandler from rich.console import Console from swordfish.endpoints import EndPoint from swordfish.minotour_api import MinotourAPI from swordfish.utils import validate_mt_connection, write_toml_file, get_original_toml_settings...
0
0
0
0
0
0
0
22
23
f2144acceca67c3cd830ee591a18174ffec1f2af
4,670
py
Python
dashboard/dashboard/pinpoint/handlers/cas.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/pinpoint/handlers/cas.py
BearerPipelineTest/catapult
3800a67cd916200046a50748893bbd0dcf3d7f4a
[ "BSD-3-Clause" ]
1
2022-01-12T14:28:55.000Z
2022-01-12T14:28:55.000Z
dashboard/dashboard/pinpoint/handlers/cas.py
atuchin-m/catapult
108ea3e2ec108e68216b1250a3d79cc642600294
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2021 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. """Service for tracking CAS reference from RBE and looking them up by builder and commit. RBE is the Remote Build Execution used for building and storing the...
32.887324
79
0.68758
# Copyright 2021 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. """Service for tracking CAS reference from RBE and looking them up by builder and commit. RBE is the Remote Build Execution used for building and storing the...
0
0
0
3,934
0
0
0
87
134
996c930d9d02aeb43c6461584b566692eacdf450
6,464
py
Python
wordle.py
salil91/wordle_bot
bcf2e101dbba489f9c063586faabd5a548e40d0e
[ "MIT" ]
null
null
null
wordle.py
salil91/wordle_bot
bcf2e101dbba489f9c063586faabd5a548e40d0e
[ "MIT" ]
null
null
null
wordle.py
salil91/wordle_bot
bcf2e101dbba489f9c063586faabd5a548e40d0e
[ "MIT" ]
null
null
null
# wordle.py - Play Wordle in the command line # Usage: wordle.py [-h] [--hard] [--answer ANSWER] [--show-answer] # # options: # -h, --help show this help message and exit # --hard Enable hard mode # -a ANSWER, --answer ANSWER # Provide the answer # --show-answe...
31.227053
98
0.575031
# wordle.py - Play Wordle in the command line # Usage: wordle.py [-h] [--hard] [--answer ANSWER] [--show-answer] # # options: # -h, --help show this help message and exit # --hard Enable hard mode # -a ANSWER, --answer ANSWER # Provide the answer # --show-answe...
0
0
0
0
0
5,490
0
-26
182
035d6a6f8ab514691910e6331e9927a76dc1d2e1
5,796
py
Python
faster-rcnn-tutorial/detection/transformations.py
ifding/self-driving-car
fc8bc808d5439686f0ee24a4f0f3b1f5354df6c0
[ "MIT" ]
13
2018-05-15T16:33:11.000Z
2019-02-14T06:46:31.000Z
faster-rcnn-tutorial/detection/transformations.py
ifding/self-driving-car
fc8bc808d5439686f0ee24a4f0f3b1f5354df6c0
[ "MIT" ]
null
null
null
faster-rcnn-tutorial/detection/transformations.py
ifding/self-driving-car
fc8bc808d5439686f0ee24a4f0f3b1f5354df6c0
[ "MIT" ]
15
2018-05-18T19:19:48.000Z
2021-11-03T04:36:50.000Z
from typing import List import numpy as np import torch from sklearn.externals._pilutil import bytescale from torchvision.ops import nms def normalize_01(inp: np.ndarray): """Squash image input to the value range [0, 1] (no clipping)""" inp_out = (inp - np.min(inp)) / np.ptp(inp) return inp_out def norm...
28.411765
102
0.634748
from functools import partial from typing import List, Callable import albumentations as A import numpy as np import torch from sklearn.externals._pilutil import bytescale from torchvision.ops import nms def normalize_01(inp: np.ndarray): """Squash image input to the value range [0, 1] (no clipping)""" inp_o...
0
0
0
2,879
0
137
0
23
256
25e0eda74a0a2d3acf19dbccee784b659b59d150
2,658
py
Python
data/szse_cn/actutor.py
dingyuanhong/Collection
43bfae16c93b643d1b09d84f27bfdbe5ef8ed497
[ "MIT" ]
1
2021-07-03T13:39:42.000Z
2021-07-03T13:39:42.000Z
data/szse_cn/actutor.py
dingyuanhong/Collection
43bfae16c93b643d1b09d84f27bfdbe5ef8ed497
[ "MIT" ]
null
null
null
data/szse_cn/actutor.py
dingyuanhong/Collection
43bfae16c93b643d1b09d84f27bfdbe5ef8ed497
[ "MIT" ]
1
2020-05-29T23:38:22.000Z
2020-05-29T23:38:22.000Z
this = self_handlers()
27.978947
97
0.599699
from actuator.register import fm; from .task import * import data.db as database import copy class self_handlers: handlers = {}; def route(self,func): def registe(cls): self.handlers[func] = cls; return cls; return registe; this = self_handlers() @fm.route("szse.com",...
33
2,212
0
157
0
0
0
4
251
0b0b5074c0c90335e14a248846319d17179513c1
11,247
py
Python
4_archmage/ann.py
leriomaggio/develer-data-science
454e4d3b1aac5a167080d7c9abc58e7382105169
[ "MIT" ]
4
2018-10-18T07:44:19.000Z
2020-07-25T03:48:42.000Z
4_archmage/ann.py
leriomaggio/develer-data-science
454e4d3b1aac5a167080d7c9abc58e7382105169
[ "MIT" ]
4
2021-06-08T19:22:45.000Z
2022-03-11T23:32:44.000Z
4_archmage/ann.py
leriomaggio/develer-data-science
454e4d3b1aac5a167080d7c9abc58e7382105169
[ "MIT" ]
2
2019-07-30T02:33:29.000Z
2020-09-03T11:27:27.000Z
"""Python Implementation of Multi-Layer Perceptron""" # ================= # Utility functions # ================= import random random.seed(123) # calculate a random number where: a <= rand < b # Make a matrix # our sigmoid function # derivative of our sigmoid function, in terms of the output (i.e. y) # =======...
27.70197
77
0.530897
"""Python Implementation of Multi-Layer Perceptron""" import numpy as np from numpy.random import seed # ================= # Utility functions # ================= import random random.seed(123) # calculate a random number where: a <= rand < b def rand(a, b): return (b-a)*random.random() + a # Make a matrix de...
0
0
0
10,552
0
130
0
5
225
74c8f7159b191cad22f78f7bba1eb84335f560f9
70
py
Python
api/src/utils/constants.py
ethanglaser/alt_api
3be37efcfaea477d52e240a389d74bf0d0a1faf0
[ "MIT" ]
null
null
null
api/src/utils/constants.py
ethanglaser/alt_api
3be37efcfaea477d52e240a389d74bf0d0a1faf0
[ "MIT" ]
null
null
null
api/src/utils/constants.py
ethanglaser/alt_api
3be37efcfaea477d52e240a389d74bf0d0a1faf0
[ "MIT" ]
1
2022-02-28T22:05:06.000Z
2022-02-28T22:05:06.000Z
#!/usr/bin/env python3 """ Common constants """ # put constants here
10
22
0.671429
#!/usr/bin/env python3 """ Common constants """ # put constants here
0
0
0
0
0
0
0
0
0
0dc7942fe2367dd38c0a75e4cf534ac6c6dba719
4,129
py
Python
plugins/modules/openafs_store_facts.py
CheyenneWills/ansible-openafs
efd4000685da594881ba5566518020d033001ece
[ "BSD-2-Clause" ]
null
null
null
plugins/modules/openafs_store_facts.py
CheyenneWills/ansible-openafs
efd4000685da594881ba5566518020d033001ece
[ "BSD-2-Clause" ]
null
null
null
plugins/modules/openafs_store_facts.py
CheyenneWills/ansible-openafs
efd4000685da594881ba5566518020d033001ece
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, Sine Nomine Associates # BSD 2-Clause License ANSIBLE_METADATA = { 'metadata_version': '1.1.', 'status': ['preview'], 'supported_by': 'community', } DOCUMENTATION = r''' --- module: openafs_store_facts short_description: Store OpenAFS facts in a json file descript...
30.138686
78
0.618067
#!/usr/bin/python # Copyright (c) 2020, Sine Nomine Associates # BSD 2-Clause License ANSIBLE_METADATA = { 'metadata_version': '1.1.', 'status': ['preview'], 'supported_by': 'community', } DOCUMENTATION = r''' --- module: openafs_store_facts short_description: Store OpenAFS facts in a json file descript...
0
0
0
0
0
2,703
0
1
249
4b16c2cbf4f9436ef3ec03d61ee4684b4f9599e0
15,450
py
Python
batchtools/check_status.py
pwighton/batchtools
70706ca8b1a9e0886fffc74b50a458391cab52f1
[ "BSD-3-Clause" ]
null
null
null
batchtools/check_status.py
pwighton/batchtools
70706ca8b1a9e0886fffc74b50a458391cab52f1
[ "BSD-3-Clause" ]
1
2021-02-19T23:09:24.000Z
2021-02-19T23:09:24.000Z
batchtools/check_status.py
pwighton/batchtools
70706ca8b1a9e0886fffc74b50a458391cab52f1
[ "BSD-3-Clause" ]
1
2021-02-19T17:42:56.000Z
2021-02-19T17:42:56.000Z
import json import logging logging.basicConfig(format="%(message)s", level=logging.INFO) def read_json(json_file): """ (file) -> dict Read in json_file, which is in json format, and output a dict with its contents """ with open(json_file) as f: data = json.load(f) return data def ...
31.921488
138
0.580129
from collections import defaultdict import datetime import json import logging import os import sys import time from urllib.parse import urlparse import boto3 from botocore.exceptions import ClientError import click logging.basicConfig(format="%(message)s", level=logging.INFO) def read_file(input_file): file_co...
0
11,340
0
0
0
3,137
0
-9
429
5a3d8360392d0193c6e8dd7ba09c2d1c9c53052f
36,176
py
Python
sdk/python/pulumi_azure_nextgen/insights/v20180301/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/insights/v20180301/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/insights/v20180301/outputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from ... import _utilities, _tables __all__ = [ 'AutomationRunbookReceiverResponse', 'AzureAppPushReceiverResponse', 'AzureFu...
35.466667
227
0.641613
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
0
34,768
0
0
0
0
0
31
480
48604f9016b7a0e02473b3c43505936005371dbd
1,536
py
Python
tests/Unit/Domain/Python/Test_ElementId.py
nilsvu/spectre
1455b9a8d7e92db8ad600c66f54795c29c3052ee
[ "MIT" ]
117
2017-04-08T22:52:48.000Z
2022-03-25T07:23:36.000Z
tests/Unit/Domain/Python/Test_ElementId.py
GitHimanshuc/spectre
4de4033ba36547113293fe4dbdd77591485a4aee
[ "MIT" ]
3,177
2017-04-07T21:10:18.000Z
2022-03-31T23:55:59.000Z
tests/Unit/Domain/Python/Test_ElementId.py
geoffrey4444/spectre
9350d61830b360e2d5b273fdd176dcc841dbefb0
[ "MIT" ]
85
2017-04-07T19:36:13.000Z
2022-03-01T10:21:00.000Z
# Distributed under the MIT License. # See LICENSE.txt for details. import unittest if __name__ == '__main__': unittest.main(verbosity=2)
36.571429
76
0.599609
# Distributed under the MIT License. # See LICENSE.txt for details. from spectre.Domain import ElementId1D, ElementId2D, ElementId3D, SegmentId import unittest class TestElementId(unittest.TestCase): def test_construction(self): element_id = ElementId1D(block_id=1) self.assertEqual(element_id.blo...
0
0
0
1,291
0
0
0
54
46
be04224e66685cffdcbb2ea5d93e2e88ae71ac13
2,368
py
Python
spira/yevon/process/layer_map.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
10
2018-07-13T09:46:21.000Z
2021-06-22T13:34:50.000Z
spira/yevon/process/layer_map.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
8
2018-09-09T11:32:40.000Z
2019-10-08T07:47:31.000Z
spira/yevon/process/layer_map.py
qedalab/spira
32e4d2096e298b9fcc5952abd654312dc232a259
[ "MIT" ]
7
2019-01-17T18:50:17.000Z
2022-01-13T20:27:52.000Z
from spira.yevon.process import get_rule_deck RDD = get_rule_deck() __all__ = ['MapGdsiiToPhysical', 'MapPhysicalToGdsii']
35.878788
97
0.670186
from spira.core.parameters.variables import DictParameter from spira.core.parameters.initializer import ParameterInitializer from spira.core.parameters.descriptor import Parameter from spira.yevon.process.all import * from spira.yevon.process import get_rule_deck RDD = get_rule_deck() __all__ = ['MapGdsiiToPhysical...
0
194
0
1,781
0
0
0
130
134
5be75af59e12d2c5a0e5929f16d7cf1f2b35602b
537
py
Python
scale/ingest/scan/configuration/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/ingest/scan/configuration/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/ingest/scan/configuration/exceptions.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
"""Defines exceptions that can occur when interacting with Scan configuration"""
38.357143
97
0.750466
"""Defines exceptions that can occur when interacting with Scan configuration""" from util.exceptions import ValidationException class InvalidScanConfiguration(ValidationException): """Exception indicating that the provided Scan configuration was invalid""" def __init__(self, description): """Construc...
0
0
0
386
0
0
0
26
45
8e260b23a5b3a090c4476a794c44dbbc1cde1aa1
10,998
py
Python
dlpy/model_conversion/onnx_transforms.py
arharvey918/python-dlpy
423985ebe65acbcbe9a7996bb26aee5e66eddc49
[ "Apache-2.0" ]
1
2018-08-27T15:10:11.000Z
2018-08-27T15:10:11.000Z
dlpy/model_conversion/onnx_transforms.py
arharvey918/python-dlpy
423985ebe65acbcbe9a7996bb26aee5e66eddc49
[ "Apache-2.0" ]
null
null
null
dlpy/model_conversion/onnx_transforms.py
arharvey918/python-dlpy
423985ebe65acbcbe9a7996bb26aee5e66eddc49
[ "Apache-2.0" ]
1
2019-09-19T15:59:26.000Z
2019-09-19T15:59:26.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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...
30.381215
77
0.59329
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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...
0
114
0
9,867
0
0
0
96
254
503881dc00b3d350acf581bc073bb082a0eacc56
803
py
Python
listremove.py
carltraveler/FormalVerfication
52b7d15e066a477b732fb80cade4fbd64f60b879
[ "MIT" ]
null
null
null
listremove.py
carltraveler/FormalVerfication
52b7d15e066a477b732fb80cade4fbd64f60b879
[ "MIT" ]
null
null
null
listremove.py
carltraveler/FormalVerfication
52b7d15e066a477b732fb80cade4fbd64f60b879
[ "MIT" ]
null
null
null
OntCversion = '2.0.0' import ontology.builtins
18.674419
40
0.523039
OntCversion = '2.0.0' import ontology.builtins import ontology.libont def VaasAssert(expr): if not expr: raise Exception("AssertError") def main(): equal = 9 l4 = l3 = l = [9, 8, "hello", 6] l1 = [9, 8, "world" ,6] l2 = [9, 8, "hello", 6] if l is l2: equal = 1 else: ...
0
0
0
0
0
687
0
1
68
36b5baa6bcd6f0e6d530726507232ed96303b6b6
2,424
py
Python
Examples/2017 code/GetDatasetfromFiles.py
VickyBize/predicting-depression-with-nn
7261033e8e89944292082d7788b1b05929edfe28
[ "MIT" ]
null
null
null
Examples/2017 code/GetDatasetfromFiles.py
VickyBize/predicting-depression-with-nn
7261033e8e89944292082d7788b1b05929edfe28
[ "MIT" ]
null
null
null
Examples/2017 code/GetDatasetfromFiles.py
VickyBize/predicting-depression-with-nn
7261033e8e89944292082d7788b1b05929edfe28
[ "MIT" ]
null
null
null
import os import re import sys import numpy as np from collections import Counter import collections import h5py import pandas as pd pathname = os.path.abspath('C:\\Users\\Vicky\\Desktop\\Courses\\Avi\\erisk collections_2017_2018\\erisk collections\\2017\\2test') os.chdir(pathname) #############Read Outpu...
31.894737
131
0.492574
import os import re import sys import numpy as np from collections import Counter import collections import h5py import pandas as pd pathname = os.path.abspath('C:\\Users\\Vicky\\Desktop\\Courses\\Avi\\erisk collections_2017_2018\\erisk collections\\2017\\2test') os.chdir(pathname) #############Read Outpu...
0
0
0
0
0
0
0
0
0
e431ba97f53ff9a52b67b4a4e5466ab127b70b94
619
py
Python
two_b.py
pkpatricia/python34
5ee4f864444b8835f8ee6cf416bc9fd1d969595b
[ "bzip2-1.0.6" ]
null
null
null
two_b.py
pkpatricia/python34
5ee4f864444b8835f8ee6cf416bc9fd1d969595b
[ "bzip2-1.0.6" ]
null
null
null
two_b.py
pkpatricia/python34
5ee4f864444b8835f8ee6cf416bc9fd1d969595b
[ "bzip2-1.0.6" ]
null
null
null
color =["red", "green", "purple", "orange", "blue", "yellow"] pick = input("What is your favorite color ? ") if pick in color: # Storing the rank of the color picked rank = color.index(pick) + 1 # Check if the color is in your list if rank == 1: print("That is my favorite color.")...
22.107143
61
0.560582
color =["red", "green", "purple", "orange", "blue", "yellow"] pick = input("What is your favorite color ? ") if pick in color: # Storing the rank of the color picked rank = color.index(pick) + 1 # Check if the color is in your list if rank == 1: print("That is my favorite color.")...
0
0
0
0
0
0
0
0
0
138129d74b8b0f40430669bc72780639a642852c
913
py
Python
crds/tests/profile_pickling.py
nden/crds
b72f14cf07531ca70b61daa6b58e762e5899afa4
[ "BSD-3-Clause" ]
null
null
null
crds/tests/profile_pickling.py
nden/crds
b72f14cf07531ca70b61daa6b58e762e5899afa4
[ "BSD-3-Clause" ]
null
null
null
crds/tests/profile_pickling.py
nden/crds
b72f14cf07531ca70b61daa6b58e762e5899afa4
[ "BSD-3-Clause" ]
null
null
null
"""This module is used to profile getrecommendations() and bestreds.BestrefsScript().""" from crds.tests.test_config import run_and_profile if __name__ == "__main__": run_and_profile("HST pickle/unpickle", "pickle_unpickle('hst.pmap', 'data/j8bt06o6q_raw.fits')", globals())
30.433333
112
0.674699
"""This module is used to profile getrecommendations() and bestreds.BestrefsScript().""" from crds.python23 import pickle import crds from crds.tests.test_config import run_and_profile from crds import data_file def pickle_unpickle(context, data): p = crds.get_cached_mapping(context) p.get_required_parkeys(...
0
0
0
0
0
534
0
6
91
3dc7b538e16ff53c625f59a59f95f1ba42f7458d
8,507
py
Python
main.py
cypri99/Off-White-AccGen
e9956265f71ed43b7d14799296143402afd97107
[ "MIT" ]
2
2020-02-15T02:27:05.000Z
2020-04-19T01:15:37.000Z
main.py
cypri99/Off-White-AccGen
e9956265f71ed43b7d14799296143402afd97107
[ "MIT" ]
1
2020-02-15T04:43:05.000Z
2020-02-15T05:16:03.000Z
main.py
cypri99/Off-White-AccGen
e9956265f71ed43b7d14799296143402afd97107
[ "MIT" ]
2
2020-02-15T03:50:37.000Z
2020-05-17T22:00:54.000Z
from colorama import Fore, init import random from threading import Lock s_print_lock = Lock() def s_print(*a, **b): """Thread safe print function""" with s_print_lock: print(*a, **b) def get_proxy(proxy_list): ''' (list) -> dict Given a proxy list <proxy_list>, a proxy is selected and...
37.311404
255
0.543787
import requests from colorama import Fore, init from threading import Thread import random, time, names, string, json, os from threading import Lock from random import choice s_print_lock = Lock() def s_print(*a, **b): """Thread safe print function""" with s_print_lock: print(*a, **b) def log(tag,...
0
0
0
0
0
5,348
0
36
158
09c29307b8a660f980d0a78500b3685e3278ae6c
1,333
py
Python
coding_interviews/leetcode/easy/count_students/count_students.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
205
2018-12-01T17:49:49.000Z
2021-12-22T07:02:27.000Z
coding_interviews/leetcode/easy/count_students/count_students.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
2
2020-01-01T16:34:29.000Z
2020-04-26T19:11:13.000Z
coding_interviews/leetcode/easy/count_students/count_students.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
50
2018-11-28T20:51:36.000Z
2021-11-29T04:08:25.000Z
# https://leetcode.com/problems/number-of-students-unable-to-eat-lunch
25.634615
132
0.548387
# https://leetcode.com/problems/number-of-students-unable-to-eat-lunch def is_empty(arr): return len(arr) == 0 def count_students(students, sandwiches): preferred_circles = 0 preferred_squares = 0 for student in students: if student: preferred_squares += 1 else: ...
0
0
0
0
0
1,188
0
0
73
44c2bc408c2a5287fbf1d032d22a1fdf9c32764f
3,477
py
Python
tests/layer_tests/tensorflow_tests/test_tf_ScatterND.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
1
2022-02-26T17:33:44.000Z
2022-02-26T17:33:44.000Z
tests/layer_tests/tensorflow_tests/test_tf_ScatterND.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
18
2022-01-21T08:42:58.000Z
2022-03-28T13:21:31.000Z
tests/layer_tests/tensorflow_tests/test_tf_ScatterND.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0
47.630137
113
0.572332
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from openvino.tools.mo.front.common.partial_infer.utils import int64_array, float32_array from unit_tests.utils.graph import build_graph, regular_op_with_shaped_data, connect, \ shaped_data, connect_f...
0
503
0
2,459
0
0
0
253
179
91e21c4e14706dc08066abf07ddc50830bdd919e
342
py
Python
python/pygecko/fake/__init__.py
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
3
2019-06-13T07:52:12.000Z
2020-07-05T13:28:43.000Z
python/pygecko/fake/__init__.py
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
23
2017-07-07T01:29:33.000Z
2018-11-23T18:41:08.000Z
python/pygecko/fake/__init__.py
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
null
null
null
############################################## # The MIT License (MIT) # Copyright (c) 2014 Kevin Walchko # see LICENSE for full details ############################################## # this directory contains things for testing and fake sources # import pygecko.test.fake_camera as cv2 # from pygecko.test.process impo...
34.2
61
0.573099
############################################## # The MIT License (MIT) # Copyright (c) 2014 Kevin Walchko # see LICENSE for full details ############################################## # this directory contains things for testing and fake sources # import pygecko.test.fake_camera as cv2 # from pygecko.test.process impo...
0
0
0
0
0
0
0
0
0
f49add4aa7228f69d7edee216cdb417c7cecb848
6,473
py
Python
AtomPos/find_peaks.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
2
2020-10-05T06:12:43.000Z
2022-03-15T04:15:16.000Z
AtomPos/find_peaks.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
null
null
null
AtomPos/find_peaks.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
null
null
null
""" Interactive fitting of peaks in noisy 2D images. Copyright (c) 2013, rhambach. This file is part of the TEMimage package and released under the MIT-Licence. See LICENCE file for details. """ import scipy.ndimage as ndimage import scipy.ndimage.filters as filters import matplotlib.pyplot as plt # ---...
36.570621
94
0.630002
""" Interactive fitting of peaks in noisy 2D images. Copyright (c) 2013, rhambach. This file is part of the TEMimage package and released under the MIT-Licence. See LICENCE file for details. """ import numpy as np import scipy.ndimage as ndimage import scipy.ndimage.filters as filters import matplotlib.py...
0
0
0
5,752
0
0
0
42
90
67db5d120956c48d3d49e18bebfa1d66093df016
2,802
gyp
Python
CSipSimple/jni/webrtc/sources/common_video/common_video.gyp
dmfr/CSipSimple-mirror
f2f2b8efcb739090a45b205690a0fb5b74bce343
[ "OpenSSL", "Unlicense" ]
4
2016-09-29T00:04:31.000Z
2021-12-02T08:39:51.000Z
CSipSimple/jni/webrtc/sources/common_video/common_video.gyp
dmfr/CSipSimple-mirror
f2f2b8efcb739090a45b205690a0fb5b74bce343
[ "OpenSSL", "Unlicense" ]
null
null
null
CSipSimple/jni/webrtc/sources/common_video/common_video.gyp
dmfr/CSipSimple-mirror
f2f2b8efcb739090a45b205690a0fb5b74bce343
[ "OpenSSL", "Unlicense" ]
1
2015-01-20T01:38:20.000Z
2015-01-20T01:38:20.000Z
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
30.791209
89
0.546395
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
0
0
0
0
0
0
0
0
0
32f476e0d42b0dd90a1a723fb29cc27b1262e1fb
12,361
py
Python
src/ontology/imports/langual_subsets/adjust_siren.py
OnToologyUser/foodon
5213dd66c30b62c3bc3538bc3d21db5fba8998c7
[ "CC-BY-4.0" ]
121
2016-05-31T22:15:02.000Z
2022-03-30T09:20:51.000Z
src/ontology/imports/langual_subsets/adjust_siren.py
OnToologyUser/foodon
5213dd66c30b62c3bc3538bc3d21db5fba8998c7
[ "CC-BY-4.0" ]
172
2016-01-25T09:00:20.000Z
2022-03-31T13:22:36.000Z
src/ontology/imports/langual_subsets/adjust_siren.py
OnToologyUser/foodon
5213dd66c30b62c3bc3538bc3d21db5fba8998c7
[ "CC-BY-4.0" ]
31
2016-03-17T09:58:02.000Z
2022-02-25T15:07:31.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import re foodon_lookup = {} siren_lookup = {} nameless = '03301032 03301034 03301067 03301068 03301076 03301078 03301107 03301131 03301149 03301152 03301160 03301163 03301168 03301173 03301183 03301192 03301199 03301206 03301212 03301213 03301221 03301229 03301253 03301287 0...
209.508475
10,445
0.845805
#!/usr/bin/python # -*- coding: utf-8 -*- import re foodon_lookup = {} siren_lookup = {} nameless = '03301032 03301034 03301067 03301068 03301076 03301078 03301107 03301131 03301149 03301152 03301160 03301163 03301168 03301173 03301183 03301192 03301199 03301206 03301212 03301213 03301221 03301229 03301253 03301287 0...
0
0
0
0
0
0
0
0
0
5676dd80957d6e933463fa91265afbf0f6f96e70
1,277
py
Python
problems/047.py
6112/project-euler
b7478d14aa6defe347ab12178c7ffe90efdcb867
[ "MIT" ]
null
null
null
problems/047.py
6112/project-euler
b7478d14aa6defe347ab12178c7ffe90efdcb867
[ "MIT" ]
null
null
null
problems/047.py
6112/project-euler
b7478d14aa6defe347ab12178c7ffe90efdcb867
[ "MIT" ]
null
null
null
#encoding=utf-8 ## SOLVED 2014/04/10 ## 134043 # The first two consecutive numbers to have two distinct prime factors are: # 14 = 2 7 # 15 = 3 5 # The first three consecutive numbers to have three distinct prime factors are: # 644 = 2 7 23 # 645 = 3 5 43 # 646 = 2 17 19. # Find the first four consecutive i...
27.170213
79
0.622553
#encoding=utf-8 ## SOLVED 2014/04/10 ## 134043 # The first two consecutive numbers to have two distinct prime factors are: # 14 = 2 × 7 # 15 = 3 × 5 # The first three consecutive numbers to have three distinct prime factors are: # 644 = 2² × 7 × 23 # 645 = 3 × 5 × 43 # 646 = 2 × 17 × 19. # Find the first four cons...
18
0
0
0
0
649
0
0
23
40e2e30c984b7232475acc2d1822a04974af9399
1,150
py
Python
010_cons.py
Ananyapam7/Rosalind
3117a4a73989fd9c9faf011b345d5805c9dee0bf
[ "MIT" ]
1
2020-07-28T16:53:32.000Z
2020-07-28T16:53:32.000Z
010_cons.py
Ananyapam7/Rosalind
3117a4a73989fd9c9faf011b345d5805c9dee0bf
[ "MIT" ]
null
null
null
010_cons.py
Ananyapam7/Rosalind
3117a4a73989fd9c9faf011b345d5805c9dee0bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' A solution to a ROSALIND bioinformatics problem. Problem Title: Consensus and Profile Rosalind ID: SUBS Rosalind #: 009 URL: http://rosalind.info/problems/subs/ ''' from numpy import zeros from scripts import ReadFASTA # Data is in FASTA form dna_list = ReadFASTA('data/rosalind_cons.txt') ...
26.136364
54
0.633043
#!/usr/bin/env python ''' A solution to a ROSALIND bioinformatics problem. Problem Title: Consensus and Profile Rosalind ID: SUBS Rosalind #: 009 URL: http://rosalind.info/problems/subs/ ''' from numpy import zeros from scripts import ReadFASTA # Data is in FASTA form dna_list = ReadFASTA('data/rosalind_cons.txt') ...
0
0
0
0
0
0
0
0
0
663701b8a32d5455ba2e307ffd2012741310465a
18,886
py
Python
make_CF_RAPID_output.py
CI-WATER/erfp_data_process_ubuntu_aws
73ebef7d983900214890ba9f973f5e61cf386cf9
[ "MIT" ]
1
2015-09-06T01:58:45.000Z
2015-09-06T01:58:45.000Z
make_CF_RAPID_output.py
CI-WATER/erfp_data_process_ubuntu_aws
73ebef7d983900214890ba9f973f5e61cf386cf9
[ "MIT" ]
null
null
null
make_CF_RAPID_output.py
CI-WATER/erfp_data_process_ubuntu_aws
73ebef7d983900214890ba9f973f5e61cf386cf9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Copies data from RAPID netCDF output to a CF-compliant netCDF file. Remarks: A new netCDF file is created with data from RAPID [1] simulation model output. The result follows CF conventions [2] with additional metadata prescribed by the NODC timeSeries Orthogonal template [3]...
38.860082
145
0.592873
#!/usr/bin/env python """Copies data from RAPID netCDF output to a CF-compliant netCDF file. Remarks: A new netCDF file is created with data from RAPID [1] simulation model output. The result follows CF conventions [2] with additional metadata prescribed by the NODC timeSeries Orthogonal template [3]...
0
0
0
0
0
138
0
0
25
bfbadd3fb009fb3bf924dadff61855cd24d40f97
2,330
py
Python
beep/tests/test_splice.py
JosephMontoya-TRI/BEEP
a0b880997403c8ef528a4986654bab5f8197b842
[ "Apache-2.0" ]
null
null
null
beep/tests/test_splice.py
JosephMontoya-TRI/BEEP
a0b880997403c8ef528a4986654bab5f8197b842
[ "Apache-2.0" ]
123
2021-03-22T07:31:09.000Z
2022-03-28T23:06:32.000Z
beep/tests/test_splice.py
JosephMontoya-TRI/BEEP
a0b880997403c8ef528a4986654bab5f8197b842
[ "Apache-2.0" ]
null
null
null
# Copyright [2020] [Toyota Research Institute] # # 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 agre...
43.148148
87
0.722747
# Copyright [2020] [Toyota Research Institute] # # 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 agre...
0
0
0
1,497
0
0
0
5
89
f07d00c018134ce7b4554425cc07a4a6ea40c85c
505
py
Python
oo/pessoa.py
valmeida90/pythonbirds
305c1efbf3a9988c3ab552ad721923a48fc4944a
[ "MIT" ]
null
null
null
oo/pessoa.py
valmeida90/pythonbirds
305c1efbf3a9988c3ab552ad721923a48fc4944a
[ "MIT" ]
null
null
null
oo/pessoa.py
valmeida90/pythonbirds
305c1efbf3a9988c3ab552ad721923a48fc4944a
[ "MIT" ]
null
null
null
if __name__ == '__main__': victor = Pessoa(nome='Victor') vinicius = Pessoa(victor,nome='Vinicius') print(Pessoa.cumprimentar(vinicius)) print(id(vinicius)) print(vinicius.nome) print(vinicius.idade) for filho in vinicius.filhos: print(filho.nome)
22.954545
53
0.631683
class Pessoa: def __init__(self, *filhos, nome=None, idade=35): self.idade = idade self.nome = nome self.filhos = list(filhos) def cumprimentar(self): return f'Olá {id(self)}' if __name__ == '__main__': victor = Pessoa(nome='Victor') vinicius = Pessoa(victor,nome='Vin...
2
0
0
195
0
0
0
0
22
ecf8a9906dc459b62251a9a6b8d74ada32bd7948
857
py
Python
examples/panel.py
ronpandolfi/typhos
2a92d895438d3b0fc41ad51dd5b7f783ca306cf1
[ "BSD-3-Clause-LBNL" ]
null
null
null
examples/panel.py
ronpandolfi/typhos
2a92d895438d3b0fc41ad51dd5b7f783ca306cf1
[ "BSD-3-Clause-LBNL" ]
null
null
null
examples/panel.py
ronpandolfi/typhos
2a92d895438d3b0fc41ad51dd5b7f783ca306cf1
[ "BSD-3-Clause-LBNL" ]
null
null
null
"""Example to create a Panel of Ophyd Signals from an object""" import sys from qtpy.QtWidgets import QApplication import typhos # Create my device without a prefix sample = Sample('', name='sample') if __name__ == '__main__': # Create my application app = QApplication(sys.argv) typhos.use_stylesheet()...
25.205882
72
0.704784
"""Example to create a Panel of Ophyd Signals from an object""" import sys import numpy as np from qtpy.QtWidgets import QApplication import typhos from ophyd import Component as Cpt from ophyd import Device, Signal from typhos.utils import SignalRO class Sample(Device): """Simulated Device""" readback = Cp...
0
0
0
233
0
0
0
33
112
092091befa54823369ea669470b3ce9ea5f67f85
6,009
py
Python
src/decomposition.py
jjonhwa/Optuna_and_Knowledge-Distllation
166641fcdffc5b1f6e017ef917a3b0ff5ff516d6
[ "MIT" ]
null
null
null
src/decomposition.py
jjonhwa/Optuna_and_Knowledge-Distllation
166641fcdffc5b1f6e017ef917a3b0ff5ff516d6
[ "MIT" ]
null
null
null
src/decomposition.py
jjonhwa/Optuna_and_Knowledge-Distllation
166641fcdffc5b1f6e017ef917a3b0ff5ff516d6
[ "MIT" ]
1
2021-12-22T06:38:34.000Z
2021-12-22T06:38:34.000Z
from tensorly.decomposition import parafac, partial_tucker import torch import torch.nn as nn def cp_decomposition_conv_layer(layer, rank): # rank = max(layer.weight.data.numpy().shape) // 3 """Gets a conv layer and a target rank, returns a nn.Sequential object with the decomposition""" # Perform CP d...
31.793651
100
0.633217
import tensorly as tl from tensorly.decomposition import parafac, partial_tucker import numpy as np import torch import torch.nn as nn from typing import * def cp_decomposition_conv_layer(layer, rank): # rank = max(layer.weight.data.numpy().shape) // 3 """Gets a conv layer and a target rank, returns a nn....
0
0
0
0
0
1,552
0
-4
112
81d193fa7ba1fae44c78fce0674e30d3a87651ff
4,103
py
Python
voice_rec/speech2text.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
voice_rec/speech2text.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
voice_rec/speech2text.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import time framerate = 16000 # num_samples = 2000 channels = 1 sampwidth = 2 # FILEPATH = 'speech.wav' base_url = "https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=%s&client_secret=%s" APIKey = "xquGU6uUM5EUMmnjbWGkkGUG" SecretKey = "nfhYce3srBPwc6VQGbYL6KhG...
26.642857
114
0.558616
# -*- coding:utf-8 -*- import wave import requests import time import base64 import numpy as np from pyaudio import PyAudio, paInt16 import time from playsound import playsound import os import sys framerate = 16000 # num_samples = 2000 channels = 1 sampwidth = 2 # FILEPATH = 'speech.wav' base_url = "https://opena...
252
0
0
0
0
3,011
0
-35
336
b7eda93534e3e34ab718a9b46fc7957b48d53805
1,613
py
Python
setup.py
heitorbaldo/pypdc
442fb5ddf7c4dde05413803233812dd54d8d5a11
[ "MIT" ]
1
2021-11-28T02:44:55.000Z
2021-11-28T02:44:55.000Z
setup.py
heitorbaldo/pypdc
442fb5ddf7c4dde05413803233812dd54d8d5a11
[ "MIT" ]
null
null
null
setup.py
heitorbaldo/pypdc
442fb5ddf7c4dde05413803233812dd54d8d5a11
[ "MIT" ]
null
null
null
from setuptools import setup name = "pypdc" version="0.0.8" description = "Python asymptotic Partial Directed Coherence and Directed Coherence estimation package for brain connectivity analysis." authors = { "Sameshima": ("Koichi Sameshima", "ksameshi@usp.br"), "Brito": ("Carlos Stein Naves de Brito", "c.brit...
28.298246
135
0.637322
from glob import glob import os import sys from setuptools import setup name = "pypdc" version="0.0.8" description = "Python asymptotic Partial Directed Coherence and Directed Coherence estimation package for brain connectivity analysis." authors = { "Sameshima": ("Koichi Sameshima", "ksameshi@usp.br"), "Brit...
0
0
0
0
0
0
0
-23
66
2a697c10547ee998915d7b5fd9f3cad563a31878
2,326
py
Python
build_tools/benchmarks/common/android_device_utils.py
tjzhou23/iree
63fd39fa023d0c1e5fb828a96ba927249252ec52
[ "Apache-2.0" ]
null
null
null
build_tools/benchmarks/common/android_device_utils.py
tjzhou23/iree
63fd39fa023d0c1e5fb828a96ba927249252ec52
[ "Apache-2.0" ]
1
2022-01-27T18:10:51.000Z
2022-01-27T18:10:51.000Z
build_tools/benchmarks/common/android_device_utils.py
tjzhou23/iree
63fd39fa023d0c1e5fb828a96ba927249252ec52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2021 The IREE Authors # # Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """Utils for accessing Android devices.""" import json import re from typing i...
34.716418
80
0.662941
#!/usr/bin/env python3 # Copyright 2021 The IREE Authors # # Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """Utils for accessing Android devices.""" import json import re from typing i...
0
0
0
0
0
0
0
35
0
20086c74a46b05a7e048f8ea5df75ef9f99dc41f
6,284
py
Python
bin/ambient/profile_from_ctd.py
ChrisBarker-NOAA/tamoc
c797cbb6fee28d788b76d21cc5b0cc0df5444ba8
[ "MIT" ]
18
2016-02-24T01:48:41.000Z
2021-11-05T03:18:24.000Z
bin/ambient/profile_from_ctd.py
ChrisBarker-NOAA/tamoc
c797cbb6fee28d788b76d21cc5b0cc0df5444ba8
[ "MIT" ]
16
2016-08-09T07:06:35.000Z
2021-12-23T19:38:37.000Z
bin/ambient/profile_from_ctd.py
ChrisBarker-NOAA/tamoc
c797cbb6fee28d788b76d21cc5b0cc0df5444ba8
[ "MIT" ]
9
2017-03-01T01:22:27.000Z
2021-09-17T12:13:40.000Z
""" Create a profile from an ASCII CTD datafile =========================================== Use the TAMOC ambient module to create profiles in netCDF format for use by TAMOC from data in text files downloaded from a CTD. This file demonstrates working with the data from the R/V Brooks McCall at Station BM 54 on May ...
34.152174
78
0.612826
""" Create a profile from an ASCII CTD datafile =========================================== Use the TAMOC ambient module to create profiles in netCDF format for use by TAMOC from data in text files downloaded from a CTD. This file demonstrates working with the data from the R/V Brooks McCall at Station BM 54 on May ...
0
0
0
0
0
0
0
10
0
6f588d8ab562cb24f33c4c2987df22264aede027
2,094
py
Python
tensorflow/compiler/tests/nullary_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/compiler/tests/nullary_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/compiler/tests/nullary_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.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 applica...
33.774194
80
0.657116
# 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 applica...
0
0
0
939
0
0
0
93
113
812da7a9821d8cafd6fff8c1031df30589c192b0
272
py
Python
03 - Forms and User Input/blog/config.py
alok-sriv/Flask-Blog
27ac2c63a289ef448ffa9a2321b3c51a3d8c7c64
[ "MIT" ]
null
null
null
03 - Forms and User Input/blog/config.py
alok-sriv/Flask-Blog
27ac2c63a289ef448ffa9a2321b3c51a3d8c7c64
[ "MIT" ]
null
null
null
03 - Forms and User Input/blog/config.py
alok-sriv/Flask-Blog
27ac2c63a289ef448ffa9a2321b3c51a3d8c7c64
[ "MIT" ]
null
null
null
# FileName: Flask-Blog > blog > config.py
34
107
0.705882
# FileName: Flask-Blog > blog > config.py import os, secrets class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or secrets.token_urlsafe() # I prefer the "or" method, as that also works if the environment variable is set to an empty string.
0
0
0
183
0
0
0
-3
47
53a049eb1d8ddcb78573a7aaa15e0dc599c34ba0
1,912
py
Python
jike/qr_code.py
waysup/Jike-Metro
b8ead80dddd5d695784c5587edfd8df87c55a4e6
[ "MIT" ]
193
2018-04-04T02:27:51.000Z
2022-03-14T03:26:44.000Z
jike/qr_code.py
waysup/Jike-Metro
b8ead80dddd5d695784c5587edfd8df87c55a4e6
[ "MIT" ]
16
2018-04-04T05:58:15.000Z
2021-01-08T02:56:57.000Z
jike/qr_code.py
waysup/Jike-Metro
b8ead80dddd5d695784c5587edfd8df87c55a4e6
[ "MIT" ]
24
2018-04-06T09:34:58.000Z
2021-03-02T02:10:07.000Z
# -*- coding: utf-8 -*- """ QR code that be scanned to allow login """
26.555556
118
0.651674
# -*- coding: utf-8 -*- """ QR code that be scanned to allow login """ import qrcode import tempfile import webbrowser from decimal import Decimal from qrcode.image.svg import SvgImage from .constants import JIKE_URI_SCHEME_FMT, RENDER2BROWSER_HTML_TEMPLATE def make_qrcode(uuid, render_choice='browser'): qr = q...
0
0
0
247
0
1,285
0
55
248
f9734951c87899d8c4336cf213bf5f3befa02662
142
py
Python
decorators_nesting/nesting.py
shaunryan/python-decorators
04f36b25f6e616b01a566b3c4ff42a4b43650e97
[ "MIT" ]
null
null
null
decorators_nesting/nesting.py
shaunryan/python-decorators
04f36b25f6e616b01a566b3c4ff42a4b43650e97
[ "MIT" ]
null
null
null
decorators_nesting/nesting.py
shaunryan/python-decorators
04f36b25f6e616b01a566b3c4ff42a4b43650e97
[ "MIT" ]
null
null
null
# debug(do_twice(greet())) greet("Eva")
14.2
38
0.697183
from decorators import debug, do_twice # debug(do_twice(greet())) @debug @do_twice def greet(name): print(f"Hello {name}") greet("Eva")
0
39
0
0
0
0
0
17
44
7d38a049431e1714e2f405a24a19e3ada149bc62
14,810
py
Python
dataset_dstc_clean_asr.py
kolk/MODELING-ASR-AMBIGUITY-FOR-NEURAL-DIALOGUE-STATE-TRACKING-USING-WORD-CONFUSION-NETWORKS
4b70d90683f5489f903e296c3be493294e446cf3
[ "BSD-3-Clause" ]
3
2020-07-01T08:34:57.000Z
2021-12-04T04:22:13.000Z
dataset_dstc_clean_asr.py
kolk/MODELING-ASR-AMBIGUITY-FOR-NEURAL-DIALOGUE-STATE-TRACKING-USING-WORD-CONFUSION-NETWORKS
4b70d90683f5489f903e296c3be493294e446cf3
[ "BSD-3-Clause" ]
2
2019-11-23T20:56:00.000Z
2020-05-03T23:13:41.000Z
dataset_dstc_clean_asr.py
kolk/MODELING-ASR-AMBIGUITY-FOR-NEURAL-DIALOGUE-STATE-TRACKING-USING-WORD-CONFUSION-NETWORKS
4b70d90683f5489f903e296c3be493294e446cf3
[ "BSD-3-Clause" ]
null
null
null
import itertools from functools import reduce client = None def cnet_best_n_paths(confusion_network,n,paths): """Prints n best paths in list format with each element as a pair of string and log probability.Takes actual probability as input""" confusion_network=[list(sorted(i,key=lambda x:x[1],reverse=True)) fo...
55.676692
2,270
0.605469
import json from collections import defaultdict import numpy as np from tqdm import tqdm from stanza.nlp.corenlp import CoreNLPClient import itertools from jiwer import wer from utils import get_cnet_best_pass import csv from math import exp from functools import reduce import time client = None def cnet_best_n_paths(...
0
4,651
0
8,458
0
260
0
17
335
573d5849a3c8ba9bc16374ca194418c4c903bd84
19,822
py
Python
Code/binarytree.py
HexSeal/CS-1.3-Core-Data-Structures
1b6da3afe89cf68c1ad120617b8e1e80652694b9
[ "MIT" ]
null
null
null
Code/binarytree.py
HexSeal/CS-1.3-Core-Data-Structures
1b6da3afe89cf68c1ad120617b8e1e80652694b9
[ "MIT" ]
7
2020-02-14T18:14:10.000Z
2020-03-09T23:39:10.000Z
Code/binarytree.py
HexSeal/CS-1.3-Core-Data-Structures
1b6da3afe89cf68c1ad120617b8e1e80652694b9
[ "MIT" ]
null
null
null
#!python if __name__ == '__main__': test_binary_search_tree()
44.245536
141
0.619463
#!python from queue import LinkedQueue class BinaryTreeNode(object): def __init__(self, data): """Initialize this binary tree node with the given data.""" self.data = data self.left = None self.right = None def __repr__(self): """Return a string representation of this ...
0
0
0
18,572
0
1,082
0
8
91
0aa3d50febd9aa8cd29d83f827149973ff83da6e
349
py
Python
finished/python_principles/01_capital_indexes.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
8
2021-05-29T23:30:12.000Z
2021-09-24T03:25:44.000Z
finished/python_principles/01_capital_indexes.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
null
null
null
finished/python_principles/01_capital_indexes.py
UltiRequiem/daily-python-practice
31f72c45378be90b8fcadd30d7042819ee551a17
[ "MIT" ]
6
2021-06-02T14:20:24.000Z
2021-08-19T00:49:26.000Z
if __name__ == "__main__": tests()
26.846154
84
0.661891
def capital_indexes(string: str) -> list: return [index for index, char in enumerate(string) if char.isupper()] # return [letter for letter in range(len(indexes)) if indexes[letter].isupper()] def tests() -> None: print(capital_indexes("mYtESt")) # [1, 3, 4] print(capital_indexes("owO")) if __name_...
0
0
0
0
0
262
0
0
45
0f0307d4db988396f9cfea11798ce2ce8f64aeba
2,813
py
Python
neurokit2/signal/signal_period.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
neurokit2/signal/signal_period.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
neurokit2/signal/signal_period.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from .signal_interpolate import signal_interpolate from .signal_formatpeaks import _signal_formatpeaks_sanitize def signal_period(peaks, sampling_rate=1000, desired_length=None, interpolation_order="cubic"): """Calculate signal period from a series of ...
37.506667
79
0.651262
# -*- coding: utf-8 -*- import numpy as np from .signal_interpolate import signal_interpolate from .signal_formatpeaks import _signal_formatpeaks_sanitize def signal_period(peaks, sampling_rate=1000, desired_length=None, interpolation_order="cubic"): """Calculate signal period from a series of ...
0
0
0
0
0
0
0
0
0
ac01da5aed1a388f449625d499fb1102f61b10d4
6,431
py
Python
morgan/settings/base.py
morgan-county/site
86c0cc9d85fecd62e1d20bd3e841d19165ed3956
[ "MIT" ]
null
null
null
morgan/settings/base.py
morgan-county/site
86c0cc9d85fecd62e1d20bd3e841d19165ed3956
[ "MIT" ]
null
null
null
morgan/settings/base.py
morgan-county/site
86c0cc9d85fecd62e1d20bd3e841d19165ed3956
[ "MIT" ]
null
null
null
# Import global settings to make it easier to extend settings. #============================================================================ # Generic Django project settings #============================================================================ DEBUG = True TEMPLATE_DEBUG = DEBUG SITE_ID = 1 # Local time zon...
31.52451
78
0.573472
# Import global settings to make it easier to extend settings. from django.conf.global_settings import * # pylint: disable=W0614,W0401 #============================================================================ # Generic Django project settings #=====================================================================...
0
0
0
0
0
0
0
20
54
90be26666e54941741fa17431ea12c308a281654
176
py
Python
students/K33401/Nikitin_Michail/lab2/django_project_nikitin/project_first_app/admin.py
mexannik1998/ITMO_ICT_WebDevelopment_2020-2021
b35f80e8439784e1ab24fbe7db82f30864ba9b69
[ "MIT" ]
null
null
null
students/K33401/Nikitin_Michail/lab2/django_project_nikitin/project_first_app/admin.py
mexannik1998/ITMO_ICT_WebDevelopment_2020-2021
b35f80e8439784e1ab24fbe7db82f30864ba9b69
[ "MIT" ]
null
null
null
students/K33401/Nikitin_Michail/lab2/django_project_nikitin/project_first_app/admin.py
mexannik1998/ITMO_ICT_WebDevelopment_2020-2021
b35f80e8439784e1ab24fbe7db82f30864ba9b69
[ "MIT" ]
null
null
null
from django.contrib import admin admin.site.register(Car) admin.site.register(DriverLicense) admin.site.register(Driver) admin.site.register(Ownership)
19.555556
34
0.8125
from django.contrib import admin from .models import * admin.site.register(Car) admin.site.register(DriverLicense) admin.site.register(Driver) admin.site.register(Ownership)
0
0
0
0
0
0
0
0
22
4914b3ff58f712aa219e34237813c84706a51f0f
324
py
Python
_themes/conan/__init__.py
MarcoKoch/conan-docs
72b1fcbee094a33299567b11c0424874e5905aea
[ "MIT" ]
null
null
null
_themes/conan/__init__.py
MarcoKoch/conan-docs
72b1fcbee094a33299567b11c0424874e5905aea
[ "MIT" ]
null
null
null
_themes/conan/__init__.py
MarcoKoch/conan-docs
72b1fcbee094a33299567b11c0424874e5905aea
[ "MIT" ]
null
null
null
"""Sphinx ReadTheDocs theme. From https://github.com/ryan-roemer/sphinx-bootstrap-theme. """ import os __version__ = '0.2.0' __version_full__ = __version__ def get_html_theme_path(): """Return list of HTML theme paths.""" cur_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) return cur_...
20.25
73
0.722222
"""Sphinx ReadTheDocs theme. From https://github.com/ryan-roemer/sphinx-bootstrap-theme. """ import os __version__ = '0.2.0' __version_full__ = __version__ def get_html_theme_path(): """Return list of HTML theme paths.""" cur_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) return cur_...
0
0
0
0
0
0
0
0
0
483523b71a14c73ab3b6ee24a729378037e02225
6,289
py
Python
models/official/detection/modeling/segmentation_model.py
GerinTang/tpu
d6ca25c49b5f7e88fdf7d2623cf6fd8349ddfc3f
[ "Apache-2.0" ]
5,098
2018-02-09T16:56:49.000Z
2022-03-31T13:50:40.000Z
models/official/detection/modeling/segmentation_model.py
GerinTang/tpu
d6ca25c49b5f7e88fdf7d2623cf6fd8349ddfc3f
[ "Apache-2.0" ]
550
2018-02-07T05:30:06.000Z
2022-03-13T22:00:09.000Z
models/official/detection/modeling/segmentation_model.py
GerinTang/tpu
d6ca25c49b5f7e88fdf7d2623cf6fd8349ddfc3f
[ "Apache-2.0" ]
1,920
2018-02-07T23:44:49.000Z
2022-03-29T03:11:08.000Z
# Lint as: python2, python3 # Copyright 2019 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 # ...
36.563953
80
0.705677
# Lint as: python2, python3 # Copyright 2019 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 # ...
0
0
0
2,672
0
0
0
66
134
3de6097ae14b4d5331accdf470c72be7e4577169
26,868
py
Python
mf/mf_gp_bandit.py
rajatsen91/MFTreeSearchCV
cf5ef5f537267c1c2c34a4f40042a051aad434f9
[ "MIT" ]
8
2019-10-24T22:27:10.000Z
2021-10-07T00:19:52.000Z
mf/mf_gp_bandit.py
rajatsen91/MFTreeSearchCV
cf5ef5f537267c1c2c34a4f40042a051aad434f9
[ "MIT" ]
1
2021-03-16T23:20:54.000Z
2021-05-25T20:43:27.000Z
mf/mf_gp_bandit.py
rajatsen91/MFTreeSearchCV
cf5ef5f537267c1c2c34a4f40042a051aad434f9
[ "MIT" ]
1
2020-07-21T21:18:58.000Z
2020-07-21T21:18:58.000Z
""" Implements Multi-fidelity GP Bandit Optimisaiton. -- kandasamy@cs.cmu.edu """ # pylint: disable=import-error # pylint: disable=no-member # pylint: disable=invalid-name # pylint: disable=relative-import # pylint: disable=super-on-old-class # Local imports from mf_func import MFOptFunction from mf_gp import all_...
47.893048
90
0.679582
""" Implements Multi-fidelity GP Bandit Optimisaiton. -- kandasamy@cs.cmu.edu """ # pylint: disable=import-error # pylint: disable=no-member # pylint: disable=invalid-name # pylint: disable=relative-import # pylint: disable=super-on-old-class from argparse import Namespace from copy import deepcopy import time imp...
0
498
0
20,126
0
0
0
134
177
fa2d11736a48234a5b517a6bde2626fadc7b00b3
615
py
Python
tests/db.py
ralphqq/testing-async-db
de02ed891a638f839f063e7401839ee551955d4c
[ "MIT" ]
null
null
null
tests/db.py
ralphqq/testing-async-db
de02ed891a638f839f063e7401839ee551955d4c
[ "MIT" ]
null
null
null
tests/db.py
ralphqq/testing-async-db
de02ed891a638f839f063e7401839ee551955d4c
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.engine.url import URL from sqlalchemy.orm import scoped_session, sessionmaker from settings import DATABASE TEST_DB = dict(DATABASE) engine = create_engine(URL(**TEST_DB)) Session = scoped_session(sessionmaker(bind=engine)) def delete_rows(db_engine, base_obj):...
27.954545
63
0.744715
from sqlalchemy import create_engine from sqlalchemy.engine.url import URL from sqlalchemy.orm import scoped_session, sessionmaker from settings import DATABASE TEST_DB = dict(DATABASE) engine = create_engine(URL(**TEST_DB)) Session = scoped_session(sessionmaker(bind=engine)) def delete_rows(db_engine, base_obj):...
0
0
0
0
0
0
0
0
0