hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
90c1b22f3826d40d5a8ce3040c417f17a6d33b58
1,247
py
Python
digraph/source/generator.py
addy1997/python-RRT
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
11
2020-05-28T00:55:55.000Z
2022-01-03T10:59:26.000Z
digraph/source/generator.py
addy1997/Internship-HTIC
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
1
2020-10-19T16:20:30.000Z
2021-03-22T19:01:14.000Z
digraph/source/generator.py
addy1997/Internship-HTIC
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
2
2021-07-07T01:09:50.000Z
2022-03-12T23:40:56.000Z
#!/usr/bin/env python # coding: utf-8 # In[2]: from time import time import networkx as nx from source.DiGraph import DiGraph from source.model.Edge import Edge # In[ ]:
18.893939
51
0.572574
90c3c10d1bd2a3bf341092a750b3ced35a3d1342
451
py
Python
[1] BEGINNER/1000 - Hello World!.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
1
2022-03-15T03:03:26.000Z
2022-03-15T03:03:26.000Z
[1] BEGINNER/1000 - Hello World!.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
null
null
null
[1] BEGINNER/1000 - Hello World!.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
null
null
null
''' https://resources.urionlinejudge.com.br/gallery/images/problems/UOJ_1000.png Bem-vindo ao URI Online Judge! O seu primeiro programa em qualquer linguagem de programao normalmente o "Hello World!". Neste primeiro problema tudo o que voc precisa fazer imprimir esta mensagem na tela. Entrada Este problema no poss...
30.066667
180
0.78714
90c4143d466cb79c3fc483f709341546a5611433
615
py
Python
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 668: Square root smooth Numbers # https://projecteuler.net/problem=668 # # A positive integer is called square root smooth if all of its prime factors # are strictly less than its square root. Including the number $1$, there are # $29$ square root smooth numbers not exceeding $...
26.73913
78
0.705691
90c531d029592c14df121556138eab86864faa16
2,927
py
Python
user/forms.py
Zidan-Kharisma-Sakana/uts-f02
d29652cb73829ffa63e0ca4d0e5f8d6d62500367
[ "Unlicense" ]
null
null
null
user/forms.py
Zidan-Kharisma-Sakana/uts-f02
d29652cb73829ffa63e0ca4d0e5f8d6d62500367
[ "Unlicense" ]
null
null
null
user/forms.py
Zidan-Kharisma-Sakana/uts-f02
d29652cb73829ffa63e0ca4d0e5f8d6d62500367
[ "Unlicense" ]
null
null
null
from django import forms from django.contrib.auth import authenticate from django.contrib.auth.models import User from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.forms import ValidationError, EmailField from user import models
32.522222
98
0.585924
90c5a20a145e1728ffe9af8247c9eff4f8b98279
3,476
py
Python
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
null
null
null
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
32
2020-07-16T07:11:35.000Z
2022-02-27T19:01:03.000Z
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
null
null
null
"""Try doing Post-Order tomorrow""" # Visualization of Current Tree # Pre-Order Output: 1--2--4--9--10--11--5--3--6--7--8-- # In-Order Output: 11--10--9--4--2--5--1--6--3--7--8-- # Pre-Order Output: 11--10--9--4--5--2--6--8--7--3--1-- # 1 # / \ # 2 3 # / | / | # 4...
31.315315
114
0.585155
90c608f7d84094a6c38930b235bc4cc2b22ca8af
2,044
py
Python
powerranger/files.py
clayboone/powerranger
09315c8b37132add56ce31f1b0c1dd0b1692bd23
[ "MIT" ]
null
null
null
powerranger/files.py
clayboone/powerranger
09315c8b37132add56ce31f1b0c1dd0b1692bd23
[ "MIT" ]
8
2020-04-18T20:20:08.000Z
2020-05-06T13:39:03.000Z
powerranger/files.py
clayboone/powerranger
09315c8b37132add56ce31f1b0c1dd0b1692bd23
[ "MIT" ]
null
null
null
import curses import itertools import os from pathlib import Path import stat from typing import Optional, Union import config from colors import Colors class Directory: """A list of items inside of a directory."""
27.253333
98
0.620841
90c62d1dcdf46b749f960d31f0195049399228f2
12,647
py
Python
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
1
2019-04-19T06:39:41.000Z
2019-04-19T06:39:41.000Z
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
null
null
null
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. im...
39.276398
79
0.633826
90c6e79ecc4dd80005f6bae2d4343c17f1c96324
6,517
py
Python
scripts/train_model.py
allenai/sledgehammer
03982da9cd0c543a76832a903033c2d97dbfb113
[ "Apache-2.0" ]
47
2020-04-14T18:10:05.000Z
2022-02-16T05:17:03.000Z
scripts/train_model.py
yardenTal1/sledgehammer
842a48023451a81c83cdf29cdd7c601b1114a207
[ "Apache-2.0" ]
1
2020-05-04T19:35:06.000Z
2020-06-08T02:53:53.000Z
scripts/train_model.py
yardenTal1/sledgehammer
842a48023451a81c83cdf29cdd7c601b1114a207
[ "Apache-2.0" ]
9
2020-04-12T17:31:12.000Z
2022-03-19T21:23:59.000Z
#!/usr/bin/env python import sys import os import random import copy import subprocess from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter # PYTHON_DIR="/".join(os.environ['CONDA_EXE'].split("/")[:-2])+'/envs/allennlp_0.8.4/bin/' exit_threshold=0.9 def arg_parser(): """Extracting CLI arguments"...
45.894366
570
0.603038
90c797e8f34b8974fc670dfa1133ddb2a05d7a20
918
py
Python
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
import os import shutil import time src_path = "C:\dev\KFG\Data/Korean/AFAD/AFAD-Lite" # new_path = "C:\dev\KFG\Data/Korean/AFAD/AFAD_gathered" # start_time = time.time() # file_list = read_all_file(src_path) copy_all_file(file_list, new_path) print("=" * 40) print(" : {}".format(tim...
27
65
0.604575
90c806da308d72b961e15453707e27dd9643ad2b
1,897
py
Python
code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py
wenhel/Argus
39768a8d1671eb80f86bbd67e58478a4cbdcdeca
[ "MIT" ]
4
2019-06-28T23:27:43.000Z
2021-09-27T03:17:58.000Z
code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py
wenhel/Argus
39768a8d1671eb80f86bbd67e58478a4cbdcdeca
[ "MIT" ]
2
2020-01-16T19:39:44.000Z
2021-02-24T22:45:37.000Z
code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py
wenhel/Argus
39768a8d1671eb80f86bbd67e58478a4cbdcdeca
[ "MIT" ]
1
2019-09-09T07:40:45.000Z
2019-09-09T07:40:45.000Z
"""Actev module: get-system git Actev modules are used to parse actev commands in order to get arguments before calling associated entry point methods to execute systems. Warning: this file should not be modified: see src/entry_points to add your source code. """ from diva_evaluation_cli.bin.commands.actev_command i...
43.113636
111
0.641012
90c8c7759fc79bbde613e0b6f813d1b176c1ecaf
902
py
Python
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
3
2017-02-05T03:17:13.000Z
2019-03-11T19:44:34.000Z
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
null
null
null
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
7
2016-06-19T02:24:09.000Z
2018-09-11T01:32:02.000Z
import re textinput = widget_inputs["text1"] comments = [] is_correct = False result = re.match(".*window.*", textinput, flags=re.IGNORECASE) if result: is_correct = True commentizer("You're right, but there's a little more to it than that. Make sure you watch the solution video.") result = re.match(".*glo...
29.096774
115
0.701774
90c8e1c41e29404a0d0d0511d6b46db43890fb89
4,106
py
Python
test/test_markdown_parser.py
Asana/SGTM
0e9e236980ed68e80e021470da6374945bbac501
[ "MIT" ]
8
2020-12-05T00:13:03.000Z
2022-01-11T11:35:51.000Z
test/test_markdown_parser.py
Asana/SGTM
0e9e236980ed68e80e021470da6374945bbac501
[ "MIT" ]
12
2020-12-14T18:21:21.000Z
2022-03-29T17:06:20.000Z
test/test_markdown_parser.py
Asana/SGTM
0e9e236980ed68e80e021470da6374945bbac501
[ "MIT" ]
2
2021-06-27T09:32:55.000Z
2022-02-27T23:17:36.000Z
import unittest from html import escape from src.markdown_parser import convert_github_markdown_to_asana_xml if __name__ == "__main__": from unittest import main as run_tests run_tests()
33.933884
115
0.585485
90cb7a749d3451fbf2614d7b4cc6d0e278b4fb6b
3,724
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2018 Cisco and/or its affiliates. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your ...
33.854545
117
0.705961
90cbba8be9d213494b028b083d0b0f3629b1868d
1,244
py
Python
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
2
2019-08-16T11:21:10.000Z
2022-01-03T21:10:59.000Z
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
null
null
null
"""Trust ping admin routes.""" from aiohttp import web from aiohttp_apispec import docs from ..connections.models.connection_record import ConnectionRecord from .messages.ping import Ping from ...storage.error import StorageNotFoundError async def register(app: web.Application): """Register routes.""" app...
29.619048
84
0.730707
90cceb9760edd56688a99f6ee73a68bdf983a84e
619
py
Python
python/wotdbg.py
wanyancan/wot-debugserver
4c6dd5c511659885abb355bef7c9318ed3e42937
[ "MIT" ]
32
2015-01-23T16:13:20.000Z
2021-05-29T21:11:42.000Z
python/wotdbg.py
wanyancan/wot-debugserver
4c6dd5c511659885abb355bef7c9318ed3e42937
[ "MIT" ]
null
null
null
python/wotdbg.py
wanyancan/wot-debugserver
4c6dd5c511659885abb355bef7c9318ed3e42937
[ "MIT" ]
16
2015-08-25T08:02:52.000Z
2022-01-19T19:16:16.000Z
import os.path import tcprepl import BigWorld def echo(s): '''Send string to client''' if tcprepl.write_client is not None: tcprepl.write_client(s) def exec_file(filename, exec_globals=None): ''' Execute file Try to find file named `filename` and execute it. If `exec_globals` is spec...
22.107143
74
0.660743
90d0a5da5e0a56dfea4ae7b895d09b65486f6dc4
1,861
py
Python
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
1
2021-10-30T17:49:28.000Z
2021-10-30T17:49:28.000Z
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
null
null
null
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
null
null
null
"""Exception which are not actually thrown, only their docstrings are used.""" import colorama import sys __all__ = [ "Error", "ParentIsNotAFolderError", "InvalidURLError", "ImageFormatNotSupportedError", "ImageNotSpecifiedError", "FolderIconAlreadyExistsError", "DesktopIniError", "exc...
22.975309
108
0.652875
90d0ff663bec28d2147cf9908b2baeccc98682a7
1,224
py
Python
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
234
2015-08-25T02:41:33.000Z
2020-03-30T15:30:23.000Z
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
170
2015-09-12T07:02:32.000Z
2020-03-20T13:34:34.000Z
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
142
2015-08-26T07:08:56.000Z
2020-03-20T11:59:52.000Z
from six import python_2_unicode_compatible from .base import QuickbooksManagedObject, QuickbooksTransactionEntity, Ref, CustomField, MetaData
28.465116
107
0.688725
90d1622a98abf59a298f4b58a00b76f812b4c744
604
py
Python
books/migrations/0004_alter_book_category.py
MwinyiMoha/books-service
31a980a8505c5d5c2acad698bb493fad8c0ce8fe
[ "MIT" ]
null
null
null
books/migrations/0004_alter_book_category.py
MwinyiMoha/books-service
31a980a8505c5d5c2acad698bb493fad8c0ce8fe
[ "MIT" ]
3
2021-04-08T17:44:07.000Z
2021-04-12T09:38:26.000Z
books/migrations/0004_alter_book_category.py
MwinyiMoha/books-service
31a980a8505c5d5c2acad698bb493fad8c0ce8fe
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-10 12:34 from django.db import migrations, models
24.16
57
0.47351
90d18046bd7a28075eedb453f3f4d1aabe4f7e65
16,575
py
Python
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
from itertools import zip_longest import syft from syft.generic.frameworks.hook import hook_args from syft.generic.abstract.tensor import AbstractTensor from syft.workers.abstract import AbstractWorker from syft_proto.execution.v1.placeholder_pb2 import Placeholder as PlaceholderPB def instantiate(self, tensor):...
37.247191
98
0.640422
90d1a9736c8c20db26fd37eb2b021b1ef2da5b41
21,547
py
Python
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
53
2019-10-02T17:10:49.000Z
2022-03-04T17:35:26.000Z
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
1
2021-09-24T01:00:54.000Z
2021-09-24T03:06:43.000Z
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
6
2019-11-26T11:44:45.000Z
2021-11-11T22:23:50.000Z
""" MAIN STYLING AND RENDERING FILE Requirements: ------------------------------------------------------------------------------ IMPORTANT! This has only been tested with Blender 2.79 API. We have run this on Linux and MacOS. Execution: ------------------------------------------------------------------------------ Th...
49.194064
108
0.58616
90d3d04333f570bee6151ef38e0d8057f563ad15
5,004
py
Python
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
from foundations_spec import * from unittest.mock import call
42.769231
146
0.689249
90d3d4041471f93cb0f82d38f927e393e1e21818
34,846
py
Python
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
21
2021-01-10T16:44:55.000Z
2022-03-03T13:15:07.000Z
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
3
2021-01-10T15:38:50.000Z
2021-04-29T09:45:47.000Z
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
1
2021-01-10T15:07:38.000Z
2021-01-10T15:07:38.000Z
# pylint: skip-file import unittest import array from collections import namedtuple from itertools import product from functional.pipeline import Sequence, is_iterable, _wrap, extend from functional.transformations import name from functional import seq, pseq Data = namedtuple("Data", "x y")
34.229862
88
0.544711
90d42edecd2171b0bdded78b6fa56be73310676a
9,412
py
Python
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
1,582
2015-01-05T02:41:44.000Z
2022-03-30T20:03:22.000Z
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
66
2015-01-23T07:58:04.000Z
2021-11-12T02:23:27.000Z
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
347
2015-01-05T07:47:07.000Z
2021-09-20T21:22:32.000Z
# -*- coding: utf-8 -*- import os from vilya.models.project import CodeDoubanProject from vilya.models import git from tests.base import TestCase from tests.utils import mkdtemp from vilya.libs import gyt from vilya.libs.permdir import get_repo_root
42.977169
95
0.595516
90d5aacb48382d69453f984a43223f2aa79a4272
11,704
py
Python
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
13
2016-02-02T00:26:21.000Z
2022-01-14T07:31:59.000Z
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
674
2015-09-15T15:02:06.000Z
2022-02-23T18:39:02.000Z
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
29
2015-06-09T13:51:48.000Z
2021-06-05T06:03:18.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import re import numpy as np from scipy.interpolate import interp2d from scipy.interpolate import interp1d
38.5
114
0.605092
90d6fa60d16e379bff07b720da304a90340377ce
1,135
py
Python
safe_control_gym/controllers/__init__.py
gokhanalcan/safe-control-gym
e9086e102663a60a66f2cc9c8cd7610888744056
[ "MIT" ]
null
null
null
safe_control_gym/controllers/__init__.py
gokhanalcan/safe-control-gym
e9086e102663a60a66f2cc9c8cd7610888744056
[ "MIT" ]
null
null
null
safe_control_gym/controllers/__init__.py
gokhanalcan/safe-control-gym
e9086e102663a60a66f2cc9c8cd7610888744056
[ "MIT" ]
null
null
null
"""Register controllers. """ from safe_control_gym.utils.registration import register register(id="mpc", entry_point="safe_control_gym.controllers.mpc.mpc:MPC", config_entry_point="safe_control_gym.controllers.mpc:mpc.yaml") register(id="linear_mpc", entry_point="safe_control_gym.controlle...
39.137931
91
0.757709
90d7c582c62cd57d3012bffede812a95aec2d89a
378
py
Python
tests/plot_profile/test_utils.py
mizeller/plot_profile
832f1d47a182d65747f18cf1ac90afc9a3b821c1
[ "MIT" ]
null
null
null
tests/plot_profile/test_utils.py
mizeller/plot_profile
832f1d47a182d65747f18cf1ac90afc9a3b821c1
[ "MIT" ]
3
2021-11-10T15:37:27.000Z
2022-03-28T13:29:42.000Z
tests/plot_profile/test_utils.py
MeteoSwiss-APN/plot_profile
832f1d47a182d65747f18cf1ac90afc9a3b821c1
[ "MIT" ]
null
null
null
"""Test module ``plot_profile/utils.py``.""" # Standard library import logging # First-party from plot_profile.utils import count_to_log_level
27
51
0.759259
90d92df312eb9bb3199567f0c02a6aff1611d818
1,116
py
Python
spider/utilities/util_config.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
null
null
null
spider/utilities/util_config.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
null
null
null
spider/utilities/util_config.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
null
null
null
# _*_ coding: utf-8 _*_ """ util_config.py by xianhu """ __all__ = [ "CONFIG_FETCH_MESSAGE", "CONFIG_PARSE_MESSAGE", "CONFIG_MESSAGE_PATTERN", "CONFIG_URL_LEGAL_PATTERN", "CONFIG_URL_ILLEGAL_PATTERN", ] # define the structure of message, used in Fetcher and Parser CONFIG_FETCH_MESSAGE = "priority...
42.923077
147
0.634409
90d9a5726836680355d0f136ca02e9d3ff263f57
1,087
py
Python
modcma/__main__.py
IOHprofiler/ModularCMAES
5ae3310d68b7e2bc37ef10de07945e89c16d6654
[ "MIT" ]
2
2021-04-08T06:16:21.000Z
2022-01-25T18:18:51.000Z
modcma/__main__.py
IOHprofiler/ModularCMAES
5ae3310d68b7e2bc37ef10de07945e89c16d6654
[ "MIT" ]
3
2020-11-16T15:24:53.000Z
2021-11-10T10:27:50.000Z
modcma/__main__.py
IOHprofiler/ModularCMAES
5ae3310d68b7e2bc37ef10de07945e89c16d6654
[ "MIT" ]
2
2021-01-13T15:36:46.000Z
2021-04-08T06:24:25.000Z
"""Allows the user to call the library as a cli-module.""" from argparse import ArgumentParser from .modularcmaes import evaluate_bbob parser = ArgumentParser(description="Run single function CMAES") parser.add_argument( "-f", "--fid", type=int, help="bbob function id", required=False, default=5 ) parser.add_ar...
29.378378
79
0.689052
90da83a21ced32c3bda1f81dfc548d05d09d8656
7,303
py
Python
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
null
null
null
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
17
2020-10-24T18:03:54.000Z
2020-11-11T22:25:16.000Z
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
null
null
null
import numpy as np
37.451282
121
0.546899
90db629f11aa0043b43ed88cb2e40c8fc351233e
2,122
py
Python
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
"""Define the CSRmatrix class.""" import numpy as np from scipy.sparse import coo_matrix from six import iteritems from openmdao.matrices.coo_matrix import COOMatrix
34.786885
83
0.60132
90decc71935f62f946a40921c43b3f8580f075de
2,398
py
Python
setup.py
medchemfi/sdfconf
81b1ed383c1d4b3e633fdc555e4027091226b025
[ "MIT" ]
6
2021-12-27T07:55:16.000Z
2022-01-26T04:36:53.000Z
setup.py
medchemfi/sdfconf
81b1ed383c1d4b3e633fdc555e4027091226b025
[ "MIT" ]
null
null
null
setup.py
medchemfi/sdfconf
81b1ed383c1d4b3e633fdc555e4027091226b025
[ "MIT" ]
3
2022-01-06T13:54:48.000Z
2022-01-26T04:36:54.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import re import os with open("src/sdfconf/_version.py", "rt") as vf: VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" for line in vf: mo = re.search(VSRE, line, re.M) if mo: verstr = mo.group(1) break ...
42.821429
97
0.470809
90df7ee581fbe2b55cfc18df37ae0baf763d0554
2,453
py
Python
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
from aws_cdk import ( aws_cognito as cognito, aws_iam as iam, aws_ssm as ssm, core )
34.069444
77
0.538932
90dfa79ebe79555eaeba7589bba91bb7586ad592
3,570
py
Python
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
from typing import Dict, List from cloudrail.knowledge.context.aws.iam.policy import S3Policy from cloudrail.knowledge.context.aws.iam.policy_statement import StatementEffect from cloudrail.knowledge.context.aws.s3.s3_bucket import S3Bucket from cloudrail.knowledge.context.aws.ec2.vpc import Vpc from cloudrail.knowled...
51.73913
123
0.671989
90e09e247242d171d4b02ca536f204cbdf79e682
2,034
py
Python
src/gluonts/core/serde/_json.py
PascalIversen/gluon-ts
cb6b5145b94f942f7803383a70813363f6953509
[ "Apache-2.0" ]
1
2020-11-30T18:05:24.000Z
2020-11-30T18:05:24.000Z
src/gluonts/core/serde/_json.py
PascalIversen/gluon-ts
cb6b5145b94f942f7803383a70813363f6953509
[ "Apache-2.0" ]
null
null
null
src/gluonts/core/serde/_json.py
PascalIversen/gluon-ts
cb6b5145b94f942f7803383a70813363f6953509
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
26.076923
75
0.67355
90e1d06ca5448614066727df6e46a00f224d0fe4
36,937
py
Python
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
7
2017-07-24T15:19:29.000Z
2018-11-18T21:59:13.000Z
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
1
2018-06-12T10:30:23.000Z
2018-06-12T15:54:01.000Z
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import os import sys import re import shutil import tempfile import pwd import grp import tarfile import time import glob import urllib.request from subprocess import Popen, PIPE import aur import pacman local_source_dir = '/makepkg/local_src' build_dir = os.path.abspath('/makepkg/b...
35.861165
166
0.570133
90e34a12e8b9e4a3553e847fbec09a27e4f92d6a
12,680
py
Python
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
1
2021-09-01T02:11:03.000Z
2021-09-01T02:11:03.000Z
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
null
null
null
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
null
null
null
"""Test methods for testing the schemagen package (specifically, the SchemaGenerator class). Typical usage example: python -m unittest or, to run a single test: python -m unittest -k test__build_schema """ import unittest import pathlib import logging import copy import os import pandas as pd import numpy a...
38.895706
146
0.711435
90e49b3af233dbd74b52999ca2aa64df02b0beff
368
py
Python
core/migrations/0008_auto_20190528_1802.py
peterson-dev/code-snippet-app
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
2
2019-05-22T21:54:43.000Z
2019-05-26T22:22:14.000Z
core/migrations/0008_auto_20190528_1802.py
peterson-dev/code-snippet-app
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
14
2020-02-12T00:04:05.000Z
2022-03-11T23:51:10.000Z
core/migrations/0008_auto_20190528_1802.py
peterson-dev/kode-kangaroo
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-28 22:02 from django.db import migrations
19.368421
47
0.589674
90e4c87211faae293a93093b6b860b2f8d021a50
2,740
py
Python
scripts/Biupdownsample/grad_check.py
dongdong93/a2u_matting
1d0ad8e630cce50c5b36c40ad384c888d292f9a8
[ "MIT" ]
22
2021-04-28T03:48:53.000Z
2022-01-24T09:42:53.000Z
scripts/Biupdownsample/grad_check.py
dongdong93/a2u_matting
1d0ad8e630cce50c5b36c40ad384c888d292f9a8
[ "MIT" ]
1
2021-08-08T20:10:18.000Z
2021-08-23T07:33:38.000Z
scripts/Biupdownsample/grad_check.py
dongdong93/a2u_matting
1d0ad8e630cce50c5b36c40ad384c888d292f9a8
[ "MIT" ]
5
2021-09-17T08:02:06.000Z
2022-01-24T09:43:03.000Z
import os.path as osp import sys import subprocess subprocess.call(['pip', 'install', 'cvbase']) import cvbase as cvb import torch from torch.autograd import gradcheck sys.path.append(osp.abspath(osp.join(__file__, '../../'))) from biupdownsample import biupsample_naive, BiupsampleNaive from biupdownsample import bid...
31.494253
79
0.691606
90e637b1e45a7f0c6d8c0bde7e551fe538035277
521
py
Python
sunshinectf2020/speedrun/exploit_05.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
101
2020-03-09T17:40:47.000Z
2022-03-31T23:26:55.000Z
sunshinectf2020/speedrun/exploit_05.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
1
2021-11-09T13:39:40.000Z
2021-11-10T19:15:04.000Z
sunshinectf2020/speedrun/exploit_05.py
datajerk/ctf-write-ups
1bc4ecc63a59de7d924c7214b1ce467801792da0
[ "MIT" ]
31
2020-05-27T12:29:50.000Z
2022-03-31T23:23:32.000Z
#!/usr/bin/env python3 from pwn import * binary = context.binary = ELF('./chall_05') if not args.REMOTE: p = process(binary.path) else: p = remote('chal.2020.sunshinectf.org', 30005) p.sendlineafter('Race, life\'s greatest.\n','foobar') p.recvuntil('Yes I\'m going to win: ') _ = p.recvline().strip() main = int(_...
20.038462
53
0.677543
90e6b33612e9aeabab01c1e1b9a83bc6ae67ea29
1,047
py
Python
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
9
2019-01-03T16:57:27.000Z
2020-07-08T07:17:35.000Z
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
1
2019-04-30T18:30:15.000Z
2019-04-30T18:30:15.000Z
coderedcms/wagtail_flexible_forms/edit_handlers.py
mikiec84/coderedcms
d72de2118d777f23d9512dc348691d3d7b46d0e5
[ "BSD-3-Clause" ]
4
2019-06-04T21:05:02.000Z
2020-04-20T00:39:52.000Z
from django.template.loader import render_to_string from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from wagtail.admin.edit_handlers import EditHandler
33.774194
78
0.669532
90e6e714df05484ba942b1438ac0306e81a7602d
2,189
py
Python
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
6
2021-11-10T21:42:53.000Z
2022-03-17T13:22:07.000Z
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
9
2021-11-11T14:33:35.000Z
2022-02-14T15:25:41.000Z
python/elasticache/cache/helper/vpc.py
chejef/aws-cdk-examples-proserve
ea0b72475e2d28192a9088ac8ee8cb6498f6cb39
[ "MIT-0" ]
10
2021-11-13T17:32:06.000Z
2022-01-17T18:13:02.000Z
from aws_cdk import ( core as cdk, aws_elasticache as elasticache, aws_ec2 as ec2, ) from aws_cdk.core import Tags from config import config_util as config def get_vpc(scope: cdk.Construct) -> ec2.Vpc: """ Look up and return the none default vpc. Args: scope: the cdk construct. ...
28.802632
110
0.677935
90e79b451ed65372d3a6d5c89f828338b8e17cd2
5,101
py
Python
src/pyscaffold/extensions/namespace.py
jayvdb/pyscaffold
c97ab5fd17ace3e1250741434f8728999359c8c2
[ "MIT" ]
2
2019-08-23T12:59:04.000Z
2021-04-14T14:45:36.000Z
.eggs/PyScaffold-3.2.3-py3.7.egg/pyscaffold/extensions/namespace.py
nkapchenko/HW
92f51d1ac4fc009e24350844172a1fb3b111ea27
[ "MIT" ]
19
2020-03-24T18:12:18.000Z
2022-03-29T22:27:59.000Z
.eggs/PyScaffold-3.2.3-py3.7.egg/pyscaffold/extensions/namespace.py
nkapchenko/HW
92f51d1ac4fc009e24350844172a1fb3b111ea27
[ "MIT" ]
1
2020-05-10T06:24:38.000Z
2020-05-10T06:24:38.000Z
# -*- coding: utf-8 -*- """ Extension that adjust project file tree to include a namespace package. This extension adds a **namespace** option to :obj:`~pyscaffold.api.create_project` and provides correct values for the options **root_pkg** and **namespace_pkg** to the following functions in the action list. """ impo...
32.909677
79
0.634581
90e88281f8a4c42ecdd83892971dad7b739f5530
2,324
py
Python
tests/solr_tests/tests/test_templatetags.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
1
2017-10-12T14:25:06.000Z
2017-10-12T14:25:06.000Z
tests/solr_tests/tests/templatetags.py
ericholscher/django-haystack
1fde37afa4921c2121a95a4902f2012bbf837bf1
[ "BSD-3-Clause" ]
1
2016-08-03T18:01:43.000Z
2016-08-03T18:03:00.000Z
tests/solr_tests/tests/templatetags.py
ericholscher/django-haystack
1fde37afa4921c2121a95a4902f2012bbf837bf1
[ "BSD-3-Clause" ]
2
2015-08-11T17:00:42.000Z
2021-01-04T08:39:33.000Z
# encoding: utf-8 from mock import call, patch from django.template import Template, Context from django.test import TestCase from core.models import MockModel
41.5
173
0.645869
90e8e47f66221f7bc0ae337311c1f500db447d05
669
py
Python
tests_project/homepage/views/__init__.py
wynnw/django-mako-plus
8a33eb3911fc84ddddd590152f475fd78c6a501f
[ "Apache-2.0" ]
79
2015-01-21T23:29:16.000Z
2021-08-22T03:38:20.000Z
tests_project/homepage/views/__init__.py
wynnw/django-mako-plus
8a33eb3911fc84ddddd590152f475fd78c6a501f
[ "Apache-2.0" ]
34
2015-01-08T03:11:07.000Z
2021-09-07T15:04:43.000Z
tests_project/homepage/views/__init__.py
wynnw/django-mako-plus
8a33eb3911fc84ddddd590152f475fd78c6a501f
[ "Apache-2.0" ]
23
2015-01-08T03:11:26.000Z
2021-05-22T11:12:24.000Z
from django_mako_plus.converter import ParameterConverter from django_mako_plus import view_function from django.http import HttpRequest
47.785714
105
0.741405
90e95d3f579e468dcd63f6bfea79961b11c3e5b8
1,953
py
Python
jupyterlab_bigquery/jupyterlab_bigquery/__init__.py
shunr/jupyter-extensions
a2fb310215664e29fd7252e5fe353f60a91a0aba
[ "Apache-2.0" ]
null
null
null
jupyterlab_bigquery/jupyterlab_bigquery/__init__.py
shunr/jupyter-extensions
a2fb310215664e29fd7252e5fe353f60a91a0aba
[ "Apache-2.0" ]
1
2020-07-20T23:09:46.000Z
2020-07-20T23:09:46.000Z
jupyterlab_bigquery/jupyterlab_bigquery/__init__.py
shunr/jupyter-extensions
a2fb310215664e29fd7252e5fe353f60a91a0aba
[ "Apache-2.0" ]
null
null
null
from notebook.utils import url_path_join from jupyterlab_bigquery.list_items_handler import handlers from jupyterlab_bigquery.details_handler import DatasetDetailsHandler, TablePreviewHandler, TableDetailsHandler from jupyterlab_bigquery.version import VERSION from jupyterlab_bigquery.pagedAPI_handler import PagedQuer...
35.509091
111
0.721966
90eb050355216ee7d1a8b303ce6104092d1b2ec7
581
py
Python
ios_notifications/migrations/0004_auto_20141105_1515.py
chillbear/django-ios-notifications
d48a7862eaa499672f27c192a3cf6f06e06f8117
[ "BSD-3-Clause" ]
2
2021-12-01T21:34:49.000Z
2021-12-13T19:22:12.000Z
ios_notifications/migrations/0004_auto_20141105_1515.py
chillbear/django-ios-notifications
d48a7862eaa499672f27c192a3cf6f06e06f8117
[ "BSD-3-Clause" ]
1
2019-10-04T01:18:32.000Z
2019-10-04T01:18:32.000Z
ios_notifications/migrations/0004_auto_20141105_1515.py
chillbear/django-ios-notifications
d48a7862eaa499672f27c192a3cf6f06e06f8117
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django_fields.fields
26.409091
142
0.667814
90eb7ca2d6e3944281a7dc60550b6a349ec9b59b
9,232
py
Python
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
4
2021-09-06T06:40:41.000Z
2022-02-14T09:59:37.000Z
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
null
null
null
fairseq/tasks/audio_pretraining.py
hwp/fairseq
f5cf2278d10a2aa8ee5759ce924d23aef6f82e6f
[ "MIT" ]
1
2021-07-12T12:34:47.000Z
2021-07-12T12:34:47.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import editdistance import os impo...
36.634921
96
0.604311
90eb98699fec58dcce70daf5b1617e8fd2c20143
20,440
py
Python
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
null
null
null
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
null
null
null
caffe-int8-convert-tool-dev.py
daquexian/caffe-int8-convert-tools
07bbb40e2b39493a0777f2be564114721a99c501
[ "BSD-3-Clause" ]
1
2021-04-22T08:55:38.000Z
2021-04-22T08:55:38.000Z
# -*- coding: utf-8 -*- # SenseNets is pleased to support the open source community by making caffe-int8-convert-tool available. # # Copyright (C) 2018 SenseNets Technology Ltd. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the L...
35.241379
201
0.623092
90ebe6d271ee6c6cf02d97187537a0fc19ca7af6
2,404
py
Python
example_project/views.py
AKuederle/flask-template-master
d6d8d2747eccc6629658caf4295106db1b3326a1
[ "MIT" ]
2
2018-04-06T19:40:22.000Z
2019-10-09T18:58:03.000Z
example_project/views.py
AKuederle/flask-template-master
d6d8d2747eccc6629658caf4295106db1b3326a1
[ "MIT" ]
null
null
null
example_project/views.py
AKuederle/flask-template-master
d6d8d2747eccc6629658caf4295106db1b3326a1
[ "MIT" ]
null
null
null
""" All your views aka. your template endpoints go here. There are two ways to create a view. 1. Create a new Subclass inheriting from one of the flask_template_master views 2. Use the view-factory function flask_template_master.views.create_template_endpoint Each view requires an 1 (and 2 optional) things: 1. An envi...
50.083333
123
0.784526
90ee4b4c80b7c7885dba22f095e28a087fcc1818
5,534
py
Python
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/test/test_data.py
dpacgopinath/translate-1
032246359eab512bcc76208d357eac71e6017eca
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import unittest import os from pytorch_translate import data from pytorch_translate import dictionary from pytorch_translate.test import utils as test_utils
39.248227
104
0.568666
90ee60eea24c42a26b118fc9be18f7e7dc1fe829
2,877
py
Python
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
171
2020-06-28T04:03:23.000Z
2022-03-30T08:50:20.000Z
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
9
2020-08-20T08:56:38.000Z
2022-01-19T19:53:51.000Z
CompareWHDR.py
Z7Gao/InverseRenderingOfIndoorScene
f245d20dcbe05b1de766c2e53af79fd489f58d74
[ "MIT" ]
19
2020-06-23T11:49:03.000Z
2022-01-22T01:49:26.000Z
import numpy as np import sys import json import glob import os.path as osp import cv2 #root = './testReal_cascade0_black_height120_width160/cascade0/iiw/' root = 'IIW_cascade1/results_brdf2_brdf1/' rootGt = '/home/zhl/CVPR20/Resubmission/Dataset/IIW/iiw-dataset/data/' suffix = 'albedoBS1.png' count = 0.0 whdr_sum =...
30.284211
132
0.601321
90f09eaebc2c156f0e6cd05610e75beced48fbbf
141
py
Python
theonionbox/stamp.py
ralphwetzel/theonionbox
9812fce48153955e179755ea7a58413c3bee182f
[ "MIT" ]
120
2015-12-30T09:41:56.000Z
2022-03-23T02:30:05.000Z
theonionbox/stamp.py
nwithan8/theonionbox
9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713
[ "MIT" ]
57
2015-12-29T21:55:14.000Z
2022-01-07T09:48:51.000Z
theonionbox/stamp.py
nwithan8/theonionbox
9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713
[ "MIT" ]
17
2018-02-05T08:57:46.000Z
2022-02-28T16:44:41.000Z
__title__ = 'The Onion Box' __description__ = 'Dashboard to monitor Tor node operations.' __version__ = '20.2' __stamp__ = '20200119|095654'
28.2
61
0.758865
90f0c3ec3d38a98bb3fcc92188fa52c0d41d3751
649
py
Python
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
UnicodeTraps.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
import re from sublime import Region import sublime_plugin REPLACEMENTS = { '\u00a0': ' ', # no-break space '\u200b': '', # zero-width space }
24.037037
87
0.66718
90f11b4939ee595b17ff6883b04027fa19911aa3
2,743
py
Python
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
172
2019-12-18T22:19:42.000Z
2022-03-29T01:58:25.000Z
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
165
2020-01-10T19:05:16.000Z
2022-03-31T16:08:36.000Z
simba/ROI_multiply.py
KonradDanielewski/simba
d7a448222e33dcb9880b65c14b5b676933cc6fd7
[ "MIT" ]
80
2019-12-20T00:01:43.000Z
2022-03-29T16:20:10.000Z
import glob import pandas as pd from configparser import ConfigParser import os from simba.drop_bp_cords import *
55.979592
131
0.647466
90f1959d5f3a4e728e1f0156fde3bb7e15e63fa1
689
py
Python
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
null
null
null
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
2
2020-12-05T09:31:01.000Z
2020-12-05T12:28:33.000Z
src/utils/ccxt/fetch_order_book.py
YasunoriMATSUOKA/crypto-asset-easy-management
5c33fd8612b843ed39f0ec1fd84efa83f3967e42
[ "MIT" ]
null
null
null
from logging import getLogger import traceback from .get_public_exchange import get_public_exchange logger = getLogger("__main__").getChild(__name__)
27.56
52
0.70537
90f2e833a7f803e0952b3382cebde491d441fdf8
20,080
py
Python
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
10
2019-12-19T02:37:33.000Z
2021-12-07T04:47:08.000Z
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
5
2019-10-27T23:22:52.000Z
2020-02-13T23:08:15.000Z
smoke-classifier/detect_fire.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
13
2019-09-24T18:53:24.000Z
2021-07-16T05:57:18.000Z
# Copyright 2018 The Fuego Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
42.008368
165
0.68745
90f4632c21bed176e470218adb359ed714cf422b
8,165
py
Python
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
torch_agents/cogment_verse_torch_agents/third_party/hive/mlp.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
import math import numpy as np import torch import torch.nn.functional as F from torch import nn
32.145669
116
0.54158
90f47be06645ba00851f14cd7c007a7d8432d2b8
1,705
py
Python
phonenumbers/data/region_AC.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
2
2019-02-22T05:27:22.000Z
2020-12-30T19:33:18.000Z
phonenumbers/data/region_AC.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
phonenumbers/data/region_AC.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. AC metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AC = PhoneMetadata(id='AC', country_code=247, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2-467]\\d{3}', possible_number_pattern=...
85.25
149
0.794721
90f5a5e0a26c00e35828acb499a24e15b010c10d
1,574
py
Python
awx/main/migrations/0156_capture_mesh_topology.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
1
2019-07-21T11:19:50.000Z
2019-07-21T11:19:50.000Z
awx/main/migrations/0156_capture_mesh_topology.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
2
2022-02-10T11:57:21.000Z
2022-02-27T22:43:44.000Z
awx/main/migrations/0156_capture_mesh_topology.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.20 on 2021-12-17 19:26 from django.db import migrations, models import django.db.models.deletion
34.977778
141
0.540661
90f60f7f71e4d156824089d61cc0fca325d7afa6
2,981
py
Python
models/dsd/bicubic.py
VinAIResearch/blur-kernel-space-exploring
619c9b3b33961ef9311399d7cbbf92050a0c6b51
[ "Apache-2.0" ]
93
2021-05-11T08:35:24.000Z
2022-03-30T10:41:14.000Z
models/dsd/bicubic.py
abcdef2000/blur-kernel-space-exploring
56f707c6fa6e3c4a570f7816b0d60cd45441de0e
[ "Apache-2.0" ]
14
2021-05-20T05:05:19.000Z
2022-01-22T22:09:36.000Z
models/dsd/bicubic.py
abcdef2000/blur-kernel-space-exploring
56f707c6fa6e3c4a570f7816b0d60cd45441de0e
[ "Apache-2.0" ]
29
2021-05-13T04:16:56.000Z
2022-03-03T02:07:24.000Z
import torch from torch import nn from torch.nn import functional as F
38.714286
113
0.570949
90f65c76bdf901f4200cf464ae0ba5ac4a47f91a
655
py
Python
control/webapp/__init__.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
1
2020-07-22T21:47:15.000Z
2020-07-22T21:47:15.000Z
control/webapp/__init__.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
5
2020-08-02T09:59:25.000Z
2021-11-03T08:02:39.000Z
control/webapp/__init__.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
2
2020-08-02T09:02:25.000Z
2020-12-20T17:45:30.000Z
import logging from flask import Flask from . import utils, home, member, society, signup, jobs, admin from .flask_seasurf import SeaSurf from flask_talisman import Talisman app = Flask(__name__, template_folder="../templates", static_folder="../static") app.config['CSRF_CHECK_REFERER'] = F...
23.392857
71
0.770992
90f6a8b251142a71fb640f4f91f600712ec01fc8
3,569
py
Python
tests/rules/test_duplicates.py
imbillu/arche
67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66
[ "MIT" ]
1
2022-02-22T11:56:03.000Z
2022-02-22T11:56:03.000Z
tests/rules/test_duplicates.py
imbillu/arche
67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66
[ "MIT" ]
null
null
null
tests/rules/test_duplicates.py
imbillu/arche
67a24b83e2f936f1f6f8d1c7bbd4aa147f128b66
[ "MIT" ]
null
null
null
import arche.rules.duplicates as duplicates from arche.rules.result import Level, Outcome from conftest import create_result import numpy as np import pandas as pd import pytest unique_inputs = [ ({}, {}, {Level.INFO: [(Outcome.SKIPPED,)]}), ( {"id": ["0", "0", "1"]}, {"unique": ["id"]}, ...
29.741667
86
0.42589
90f6bebd46777b051dad40dbf866fa9c85663a73
2,602
py
Python
Question_1.py
Queen-Jonnie/Work
0197644b09700c8ed9576f8270f3f334588cabc9
[ "Apache-2.0" ]
null
null
null
Question_1.py
Queen-Jonnie/Work
0197644b09700c8ed9576f8270f3f334588cabc9
[ "Apache-2.0" ]
null
null
null
Question_1.py
Queen-Jonnie/Work
0197644b09700c8ed9576f8270f3f334588cabc9
[ "Apache-2.0" ]
null
null
null
# This is the word list from where the answers for the hangman game will come from. word_list = [ 2015, "Fred Swaniker", "Rwanda and Mauritius", 2, "Dr, Gaidi Faraj", "Sila Ogidi", "Madagascar", 94, 8, "Mauritius" ] # Here we are defining the variables 'Right'(for ...
22.050847
117
0.595696
90f6d9fde4d8fbf472167b25a5be418433abe7aa
1,416
py
Python
node-api/get-block-transfers/request.py
Venoox/casper-integrations
2da32cc5db8278fff09d2a966c24491c6b936c80
[ "Apache-2.0" ]
5
2021-07-01T13:58:19.000Z
2022-03-02T10:46:32.000Z
node-api/get-block-transfers/request.py
Venoox/casper-integrations
2da32cc5db8278fff09d2a966c24491c6b936c80
[ "Apache-2.0" ]
3
2021-06-07T15:15:36.000Z
2021-10-10T15:38:44.000Z
node-api/get-block-transfers/request.py
Venoox/casper-integrations
2da32cc5db8278fff09d2a966c24491c6b936c80
[ "Apache-2.0" ]
6
2021-06-05T16:04:28.000Z
2022-01-06T07:30:05.000Z
import json import os import pycspr # A known casper test-net node address. _NODE_ADDRESS = os.getenv("CASPER_NODE_ADDRESS", "3.136.227.9") # A known block hash. _BLOCK_HASH: bytes = bytes.fromhex("c7148e1e2e115d8fba357e04be2073d721847c982dc70d5c36b5f6d3cf66331c") # A known block height. _BLOCK_HEIGHT: int = 2065...
30.782609
114
0.551554
90f942653019dc0ae99aab8acbed167dceaab3ce
582
py
Python
tests/test_util.py
re3turn/twicrawler
139c8f72a619b188433e32c271e64d3b5dc0c77e
[ "MIT" ]
14
2019-10-18T04:01:38.000Z
2022-02-24T15:28:54.000Z
tests/test_util.py
re3turn/twicrawler
139c8f72a619b188433e32c271e64d3b5dc0c77e
[ "MIT" ]
47
2019-10-05T13:32:56.000Z
2021-10-17T06:40:25.000Z
tests/test_util.py
re3turn/twicrawler
139c8f72a619b188433e32c271e64d3b5dc0c77e
[ "MIT" ]
4
2019-10-05T13:23:47.000Z
2020-10-01T05:32:26.000Z
import nose2.tools from typing import Union from app.util import has_attributes
20.068966
89
0.575601
90f9829385890920a9abc0c7d59d052db4801faf
4,427
py
Python
commands/data/fusion_data.py
Christ0ph990/Fusion360DevTools
fce10e34b3b92a058d275956c07d1b891ce02192
[ "MIT" ]
3
2022-02-12T21:00:39.000Z
2022-03-18T13:17:17.000Z
commands/data/fusion_data.py
Christ0ph990/Fusion360DevTools
fce10e34b3b92a058d275956c07d1b891ce02192
[ "MIT" ]
null
null
null
commands/data/fusion_data.py
Christ0ph990/Fusion360DevTools
fce10e34b3b92a058d275956c07d1b891ce02192
[ "MIT" ]
null
null
null
# Copyright 2022 by Autodesk, Inc. # Permission to use, copy, modify, and distribute this software in object code form # for any purpose and without fee is hereby granted, provided that the above copyright # notice appears in all copies and that both that copyright notice and the limited # warranty and restricted ...
42.161905
120
0.688954
90f9b4568f182777eba66204bdc021fa7e74466b
5,044
py
Python
src/config-producer/config_topic.py
DougFigueroa/realde-kafka-assesment
06582907d05a51a68cc368d00f85ba97f95fd533
[ "MIT" ]
null
null
null
src/config-producer/config_topic.py
DougFigueroa/realde-kafka-assesment
06582907d05a51a68cc368d00f85ba97f95fd533
[ "MIT" ]
null
null
null
src/config-producer/config_topic.py
DougFigueroa/realde-kafka-assesment
06582907d05a51a68cc368d00f85ba97f95fd533
[ "MIT" ]
null
null
null
""" This process creates the two kafka topics to be used. The input-topic with ten partitions and the output-topic with one partition. Also preloads the kafka cluster with test data (if flag is set to true). """ import os import time import json import logging from confluent_kafka.admin import AdminClient, NewTopic fro...
35.77305
80
0.673672
90f9cab42c98867e4c26010b699fc6f4bbfe103f
167
py
Python
deallocate/params.py
jefferycwc/tacker-example-plugin
641d2acebca3b95c7d2d635769b6f0f2d84051b2
[ "Apache-2.0" ]
null
null
null
deallocate/params.py
jefferycwc/tacker-example-plugin
641d2acebca3b95c7d2d635769b6f0f2d84051b2
[ "Apache-2.0" ]
null
null
null
deallocate/params.py
jefferycwc/tacker-example-plugin
641d2acebca3b95c7d2d635769b6f0f2d84051b2
[ "Apache-2.0" ]
1
2022-01-19T01:35:43.000Z
2022-01-19T01:35:43.000Z
OS_MA_NFVO_IP = '192.168.1.197' OS_USER_DOMAIN_NAME = 'Default' OS_USERNAME = 'admin' OS_PASSWORD = '0000' OS_PROJECT_DOMAIN_NAME = 'Default' OS_PROJECT_NAME = 'admin'
27.833333
34
0.772455
90f9e5e1aabce04f1b2939743e6a19578017960f
1,591
py
Python
anoplura/patterns/body_part.py
rafelafrance/traiter_lice
29d653a80b57225203c98198c26fd9fcbdb08843
[ "MIT" ]
null
null
null
anoplura/patterns/body_part.py
rafelafrance/traiter_lice
29d653a80b57225203c98198c26fd9fcbdb08843
[ "MIT" ]
1
2020-06-07T18:25:08.000Z
2020-06-07T18:25:08.000Z
anoplura/patterns/body_part.py
rafelafrance/traiter_lice
29d653a80b57225203c98198c26fd9fcbdb08843
[ "MIT" ]
null
null
null
"""Extract body part annotations.""" import re import spacy from traiter.const import COMMA from traiter.patterns.matcher_patterns import MatcherPatterns from anoplura.pylib.const import COMMON_PATTERNS from anoplura.pylib.const import CONJ from anoplura.pylib.const import MISSING from anoplura.pylib.const import REP...
26.081967
68
0.60088
90fa1b52a86892da98479fc272386682615fa765
17,478
py
Python
Termux-pkg-apt.py
Hironotori/Termux-pkg-apt
db1c33b750e82943c8c5b2780d69654ab4afde96
[ "BSL-1.0" ]
1
2021-04-12T18:33:25.000Z
2021-04-12T18:33:25.000Z
Termux-pkg-apt.py
Hironotori/Termux-pkg-apt
db1c33b750e82943c8c5b2780d69654ab4afde96
[ "BSL-1.0" ]
null
null
null
Termux-pkg-apt.py
Hironotori/Termux-pkg-apt
db1c33b750e82943c8c5b2780d69654ab4afde96
[ "BSL-1.0" ]
1
2021-10-17T00:44:37.000Z
2021-10-17T00:44:37.000Z
#!/usr/bin/python3 import os import time import sys os.system("clear") print('''\033[91m CREATED BY Hironotori ''') slowprint(''' \033[93m [1] apt-pkg pip-pip3 [2] apt-pkg python [3] apt-pkg python2 [4] apt-pkg bash [5] apt-pkg git [6] apt-pkg perl [7] apt-pkg nano [8] apt-p...
31.099644
54
0.66947
90faa5d3c27957f6280791f2da201e228021ab56
10,255
py
Python
RFEM/Loads/solidSetLoad.py
DavidNaizheZhou/RFEM_Python_Client
a5f7790b67de3423907ce10c0aa513c0a1aca47b
[ "MIT" ]
16
2021-10-13T21:00:11.000Z
2022-03-21T11:12:09.000Z
RFEM/Loads/solidSetLoad.py
DavidNaizheZhou/RFEM_Python_Client
a5f7790b67de3423907ce10c0aa513c0a1aca47b
[ "MIT" ]
49
2021-10-19T13:18:51.000Z
2022-03-30T08:20:17.000Z
RFEM/Loads/solidSetLoad.py
DavidNaizheZhou/RFEM_Python_Client
a5f7790b67de3423907ce10c0aa513c0a1aca47b
[ "MIT" ]
7
2021-10-13T06:06:24.000Z
2022-03-29T17:48:39.000Z
from RFEM.initModel import Model, clearAtributes, ConvertToDlString from RFEM.enums import SolidSetLoadType, SolidSetLoadDistribution, SolidSetLoadDirection
36.756272
202
0.648757
90ff9054dbaf433bbb08f4f56988df6c49765e6b
838
py
Python
examples_2d/patch.py
5A5H/PyFEMP
94ebf58a52230680fd87b699f295ccb3efa6c46a
[ "MIT" ]
1
2021-12-09T06:40:39.000Z
2021-12-09T06:40:39.000Z
examples_2d/patch.py
5A5H/PyFEMP
94ebf58a52230680fd87b699f295ccb3efa6c46a
[ "MIT" ]
null
null
null
examples_2d/patch.py
5A5H/PyFEMP
94ebf58a52230680fd87b699f295ccb3efa6c46a
[ "MIT" ]
null
null
null
# 2D example tensile test import numpy as np import matplotlib.pyplot as plt import PyFEMP import PyFEMP.elements.Elmt_BaMo_2D as ELEMENT FEM = PyFEMP.FEM_Simulation(ELEMENT) n = 4 XI, Elem = PyFEMP.msh_rec([0.0, 0.0], [10.0, 10.0], [n, n], type='Q1') FEM.Add_Mesh(XI, Elem) FEM.Add_Material([2100, 0.3], "All") FEM.A...
25.393939
79
0.656325
2902581b3eec77bc0cde12663550bb823357a3a8
547
py
Python
common-patterns/producer_consumer_client.py
kyeett/websockets-examples
bf4f3d848bd5ac523563fc2a5624aaec85c6124d
[ "MIT" ]
null
null
null
common-patterns/producer_consumer_client.py
kyeett/websockets-examples
bf4f3d848bd5ac523563fc2a5624aaec85c6124d
[ "MIT" ]
null
null
null
common-patterns/producer_consumer_client.py
kyeett/websockets-examples
bf4f3d848bd5ac523563fc2a5624aaec85c6124d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import asyncio import websockets import os port = int(os.environ.get('PORT', '8765')) asyncio.get_event_loop().run_until_complete(hello())
21.038462
75
0.586837
290322d74e5c2e76a5c2f837892bc099f63d97a5
1,073
py
Python
wagtailflags/forms.py
cfpb/wagtail-flags
3ef8b51b7e3c8f0f55ec4fbed07668210cc04274
[ "CC0-1.0" ]
75
2017-02-02T19:25:50.000Z
2022-03-23T08:09:20.000Z
wagtailflags/forms.py
cfpb/wagtail-flags
3ef8b51b7e3c8f0f55ec4fbed07668210cc04274
[ "CC0-1.0" ]
31
2017-02-02T16:48:44.000Z
2021-12-01T19:36:39.000Z
wagtailflags/forms.py
cfpb/wagtail-flags
3ef8b51b7e3c8f0f55ec4fbed07668210cc04274
[ "CC0-1.0" ]
17
2017-01-31T18:52:19.000Z
2021-09-20T14:34:17.000Z
from django import forms from flags.forms import FlagStateForm as DjangoFlagsFlagStateForm from flags.models import FlagState from flags.sources import get_flags
24.953488
65
0.61603
29036ba6db6b8f13ddf689e6933342fcab6c293b
830
py
Python
src/utils/utils.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
null
null
null
src/utils/utils.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
2
2022-01-19T04:36:29.000Z
2022-01-27T09:15:38.000Z
src/utils/utils.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
null
null
null
# -*- coding:utf8 -*- """ """ import uuid from enum import Enum, unique from utils.log import get_logger logger = get_logger(__name__)
21.282051
92
0.657831
2903a87ca8ef20b939b217181d37a2379c18a9f6
693
py
Python
extras/scripts/finish_ci.py
connornishijima/PixieChroma
4812c72087550797d17f6fe4d003eda2ce1cc25a
[ "MIT" ]
20
2021-10-30T19:15:27.000Z
2022-03-22T14:59:13.000Z
extras/scripts/finish_ci.py
connornishijima/PixieChroma
4812c72087550797d17f6fe4d003eda2ce1cc25a
[ "MIT" ]
39
2021-10-29T22:21:53.000Z
2022-02-06T17:50:05.000Z
extras/scripts/finish_ci.py
connornishijima/PixieChroma
4812c72087550797d17f6fe4d003eda2ce1cc25a
[ "MIT" ]
5
2021-10-30T23:55:41.000Z
2022-01-07T09:05:47.000Z
# This is just for GitHub, and is used to clean up leftover files after # automatic testing has completed, and generate developer reports about # anything left undocumented! # run: "sudo python ./extras/scripts/finish_ci.py" import os import sys os.system("sudo python ./extras/scripts/generate_doxygen_report.py") os...
30.130435
71
0.74026
2903ad47c07cf0194fa493bc2ea6ee436c013991
9,549
py
Python
matchingGame.py
VinnieM-3/MemoryGames
65b92b2eeaa56879fd491b1169bad84dfd9e672e
[ "MIT" ]
null
null
null
matchingGame.py
VinnieM-3/MemoryGames
65b92b2eeaa56879fd491b1169bad84dfd9e672e
[ "MIT" ]
null
null
null
matchingGame.py
VinnieM-3/MemoryGames
65b92b2eeaa56879fd491b1169bad84dfd9e672e
[ "MIT" ]
1
2021-03-29T20:31:34.000Z
2021-03-29T20:31:34.000Z
import pygame import random pygame.init() pygame.font.init() def get_matching_card(card_list, card_to_match): """ This function returns the card that matches the one passed in """ the_matching_card = None for test_card in card_list: if test_card.value == card_to_match.value and test_card != card...
43.404545
120
0.597549
29057d1781f0e8f9898d6f1c32f5772d89c7df3a
1,889
py
Python
darts_search_space/imagenet/rlnas/evolution_search/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
17
2021-05-17T04:54:17.000Z
2022-01-23T09:59:02.000Z
darts_search_space/imagenet/rlnas/evolution_search/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
2
2021-07-09T05:14:29.000Z
2022-02-05T10:15:31.000Z
darts_search_space/imagenet/rlnas/evolution_search/config.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
8
2021-05-28T00:04:20.000Z
2021-10-18T02:41:34.000Z
import os for i in ['exp_name']: print('{}: {}'.format(i,eval('config.{}'.format(i))))
25.527027
112
0.528322
2908444cad199e2ad0cbe23b1b79f2e9191d879c
6,801
py
Python
packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy
30.773756
86
0.53845
29098333a5185a77af4d5f34240be5bf5108f278
1,286
py
Python
j3d/string_table.py
blank63/j3dview
498225e12119a9a2b4af9beed1be95f28d8410e2
[ "MIT" ]
13
2016-04-22T10:45:08.000Z
2022-02-23T23:50:53.000Z
j3d/string_table.py
blank63/j3dview
498225e12119a9a2b4af9beed1be95f28d8410e2
[ "MIT" ]
1
2017-03-19T20:31:03.000Z
2017-03-20T17:09:36.000Z
j3d/string_table.py
blank63/j3dview
498225e12119a9a2b4af9beed1be95f28d8410e2
[ "MIT" ]
2
2016-09-10T07:35:35.000Z
2021-12-29T23:23:36.000Z
from btypes.big_endian import * cstring_sjis = CString('shift-jis') def unsigned_to_signed_byte(b): return b - 0x100 if b & 0x80 else b def calculate_hash(string): h = 0 for b in string: h = (h*3 + unsigned_to_signed_byte(b)) & 0xFFFF return h def pack(stream, strings): strings = [...
22.172414
72
0.650855
2909ec5a9aa5da7302caa8a0154901f2a00348b4
4,549
py
Python
deConzSensors.py
peterstadler/deConzSensors
c30cd78083cea89f9f0416c046e472774e0bb54d
[ "MIT" ]
null
null
null
deConzSensors.py
peterstadler/deConzSensors
c30cd78083cea89f9f0416c046e472774e0bb54d
[ "MIT" ]
null
null
null
deConzSensors.py
peterstadler/deConzSensors
c30cd78083cea89f9f0416c046e472774e0bb54d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.5 from time import sleep, time from datetime import datetime, timedelta from pid.decorator import pidfile #from subprocess import call from RPi import GPIO import requests import json #import config import logging import signal import sys #13: grn #16: braun #19: orange #20: grn #21: braun #26:...
36.392
130
0.603869
290a002c458607061f9182749313cea5d389910f
1,757
py
Python
src/admin.py
kappa243/agh-db-proj
73a3e69fa11e65e196b3d8a34be0b1051654a7eb
[ "MIT" ]
null
null
null
src/admin.py
kappa243/agh-db-proj
73a3e69fa11e65e196b3d8a34be0b1051654a7eb
[ "MIT" ]
null
null
null
src/admin.py
kappa243/agh-db-proj
73a3e69fa11e65e196b3d8a34be0b1051654a7eb
[ "MIT" ]
null
null
null
from flask import Blueprint, request, render_template, flash, redirect, url_for from flask_login import login_user, login_required, current_user, logout_user from models import User from werkzeug.security import generate_password_hash, check_password_hash from app import db, login_manager admin = Blueprint('admin', __...
39.931818
100
0.636881
290c6742df1f8f4ad0e590b81b60add7140d2294
4,321
py
Python
test/lib/test_map.py
oldmantaiter/inferno
88da465625d18c6848f4be5fb37e20a5ae2c6db1
[ "MIT" ]
1
2015-10-15T04:18:14.000Z
2015-10-15T04:18:14.000Z
test/lib/test_map.py
oldmantaiter/inferno
88da465625d18c6848f4be5fb37e20a5ae2c6db1
[ "MIT" ]
null
null
null
test/lib/test_map.py
oldmantaiter/inferno
88da465625d18c6848f4be5fb37e20a5ae2c6db1
[ "MIT" ]
null
null
null
import datetime import types from nose.tools import eq_ from nose.tools import ok_ from inferno.lib.map import keyset_map from inferno.lib.rule import InfernoRule
36.008333
80
0.592918
290cd15c3b088b77632afac10c8cccada862dde1
1,882
bzl
Python
dart/build_rules/internal/pub.bzl
nickclmb/rules_dart
2cae27be60b858bfa45c649db15946cabb245556
[ "Apache-2.0" ]
null
null
null
dart/build_rules/internal/pub.bzl
nickclmb/rules_dart
2cae27be60b858bfa45c649db15946cabb245556
[ "Apache-2.0" ]
null
null
null
dart/build_rules/internal/pub.bzl
nickclmb/rules_dart
2cae27be60b858bfa45c649db15946cabb245556
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Bazel 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 applicable la...
29.40625
74
0.685441
290d81aaa0377937c4a0c3f9c72f2fe1d0c01962
928
py
Python
auror_core/__init__.py
millengustavo/auror-core
e215af6a5a1f3822693ad2d0882cbcd7882a2e35
[ "Apache-2.0" ]
11
2018-12-15T04:07:52.000Z
2020-12-07T13:06:22.000Z
auror_core/__init__.py
millengustavo/auror-core
e215af6a5a1f3822693ad2d0882cbcd7882a2e35
[ "Apache-2.0" ]
12
2018-12-15T17:48:59.000Z
2021-10-14T02:49:06.000Z
auror_core/__init__.py
millengustavo/auror-core
e215af6a5a1f3822693ad2d0882cbcd7882a2e35
[ "Apache-2.0" ]
5
2019-10-14T02:28:38.000Z
2020-10-01T14:32:01.000Z
import copy import os
23.794872
70
0.579741
2910bdc7ca3987dad2077d2434ff681fd6095d52
2,337
py
Python
app.py
Vaishnavid14/snakegame
cd98926ea23ed8494689ed9b0a6372e469b37083
[ "MIT" ]
5
2018-06-03T19:07:45.000Z
2022-03-22T00:58:50.000Z
app.py
Vaishnavid14/snakegame
cd98926ea23ed8494689ed9b0a6372e469b37083
[ "MIT" ]
1
2020-10-02T03:24:04.000Z
2020-10-02T03:24:04.000Z
app.py
Vaishnavid14/snakegame
cd98926ea23ed8494689ed9b0a6372e469b37083
[ "MIT" ]
3
2018-10-13T16:47:09.000Z
2020-12-11T09:09:36.000Z
''' Purpose: Server responsible for routing Author: Md. Tanvir Islam Command to execute: python app.py ''' from flask import Flask from flask import render_template from flask import json from flask import request import random import sys app = Flask(__name__) print("Server is live...", file = s...
22.04717
90
0.641849
2910c5c59d8ba3a8c530e8551e58a52db38377c4
254
py
Python
grafana_api/api/__init__.py
sedan07/grafana_api
4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3
[ "MIT" ]
null
null
null
grafana_api/api/__init__.py
sedan07/grafana_api
4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3
[ "MIT" ]
null
null
null
grafana_api/api/__init__.py
sedan07/grafana_api
4cc0b85e8660d9f21c8bd1997c5163a730ac2ee3
[ "MIT" ]
null
null
null
from .base import Base from .admin import Admin from .dashboard import Dashboard from .datasource import Datasource from .folder import Folder from .organisation import Organisation, Organisations from .search import Search from .user import User, Users
28.222222
53
0.826772
291160bd0c346287015511cf9e4797089cf45195
9,176
py
Python
shop/views.py
Ayushman-Singh/ecommerce
78f007fea89ead412d10554e69b9f4854f67d277
[ "MIT" ]
1
2019-11-25T06:42:47.000Z
2019-11-25T06:42:47.000Z
shop/views.py
Ayushman-Singh/ecommerce
78f007fea89ead412d10554e69b9f4854f67d277
[ "MIT" ]
12
2020-02-12T02:54:15.000Z
2022-03-12T00:06:14.000Z
shop/views.py
Ayushman-Singh/ecommerce
78f007fea89ead412d10554e69b9f4854f67d277
[ "MIT" ]
3
2019-11-25T19:53:18.000Z
2020-10-01T12:01:24.000Z
from shop.forms import UserForm from django.views import generic from django.urls import reverse_lazy from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import auth from .models import Product, Contact, Categ...
32.196491
92
0.53095
2911bd336905b53ebe454ea6d5b0bca66ffa304e
347
py
Python
SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
7
2016-07-17T02:34:54.000Z
2019-08-13T07:58:37.000Z
SimMuon/GEMDigitizer/python/muonGEMDigi_cff.py
NTrevisani/cmssw
a212a27526f34eb9507cf8b875c93896e6544781
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms from SimMuon.GEMDigitizer.muonGEMDigis_cfi import * from SimMuon.GEMDigitizer.muonGEMPadDigis_cfi import * from SimMuon.GEMDigitizer.muonGEMPadDigiClusters_cfi import * muonGEMDigiTask = cms.Task(simMuonGEMDigis, simMuonGEMPadDigis, simMuonGEMPadDigiClusters) muonGEMDigi = cms...
38.555556
90
0.864553
2913388d5314daafd30d30378e540525568a897d
8,843
py
Python
paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
767
2019-03-25T06:35:43.000Z
2022-03-30T08:57:51.000Z
paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
194
2019-03-29T07:16:41.000Z
2022-03-30T06:17:49.000Z
paas-ce/paas/esb/lib/redis_rate_limit/ratelimit.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
381
2019-03-25T07:19:54.000Z
2022-03-29T03:22:42.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
36.241803
305
0.622413
291353fc46f6b36f8dcc9b15e6f8fd7bfb761f8c
7,094
py
Python
tela_cadastro_loja_embala.py
lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas
56588bfb8543ea070ccb53635486a14ddfda6202
[ "MIT" ]
1
2020-02-21T22:54:05.000Z
2020-02-21T22:54:05.000Z
tela_cadastro_loja_embala.py
lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas
56588bfb8543ea070ccb53635486a14ddfda6202
[ "MIT" ]
1
2020-01-22T04:27:02.000Z
2020-01-22T04:27:02.000Z
tela_cadastro_loja_embala.py
lucasHashi/PyQt5-gerenciador-de-vendas-de-comidas
56588bfb8543ea070ccb53635486a14ddfda6202
[ "MIT" ]
null
null
null
import sys from PyQt5 import QtCore, QtGui, QtWidgets, uic import database_receita import pyqt5_aux qt_tela_inicial = "telas/tela_cadastro_loja_embala.ui" Ui_MainWindow, QtBaseClass = uic.loadUiType(qt_tela_inicial)
37.734043
175
0.695235
2913e256dfb84f164f18ed5f1a7cbb5235605636
2,253
py
Python
test/test_layers.py
mukeshv0/ParallelWaveGAN
40fd282d0364c8d8711efed21d9689653d85b3a2
[ "MIT" ]
null
null
null
test/test_layers.py
mukeshv0/ParallelWaveGAN
40fd282d0364c8d8711efed21d9689653d85b3a2
[ "MIT" ]
null
null
null
test/test_layers.py
mukeshv0/ParallelWaveGAN
40fd282d0364c8d8711efed21d9689653d85b3a2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2019 Tomoki Hayashi # MIT License (https://opensource.org/licenses/MIT) import logging import numpy as np import torch from parallel_wavegan.layers import Conv1d from parallel_wavegan.layers import Conv1d1x1 from parallel_wavegan.layers import Conv2d from ...
40.232143
98
0.626276
29145e423185507525f6b1aaf218e49896993e52
22,417
py
Python
geotrek/tourism/models.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
geotrek/tourism/models.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
geotrek/tourism/models.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
import os import re import logging from django.conf import settings from django.contrib.gis.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.formats import date_format from easy_thumbnails.alias import aliases from easy_thumbnails.exceptions import InvalidImageFormatError fro...
43.868885
171
0.657581
2914b183f0a48cc6b1b59de7781f38a975146534
6,313
py
Python
Service_Components/Sink/Sink_DataFlow.py
mydata-sdk/mydata-sdk-1.x
74064d7a42fc0435511eae6e77e49ddc7d9723f3
[ "MIT" ]
null
null
null
Service_Components/Sink/Sink_DataFlow.py
mydata-sdk/mydata-sdk-1.x
74064d7a42fc0435511eae6e77e49ddc7d9723f3
[ "MIT" ]
2
2018-04-20T23:07:01.000Z
2018-04-21T01:01:20.000Z
Service_Components/Sink/Sink_DataFlow.py
fititnt/mydata-sdk--hiit
19d7a2ddbc3b5a05665539fbcc7f461c13793e03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from signed_requests.signed_request_auth import SignedRequest __author__ = 'alpaloma' from flask import Blueprint, current_app, request from helpers import Helpers import requests from json import dumps, loads from DetailedHTTPException import error_handler from flask_restful import Resource, A...
42.655405
274
0.642009
29153ac2726304eba8abb15e0e28ea926d19d5f2
1,075
py
Python
alignment/find_bug/is_bored.py
LaudateCorpus1/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
3
2021-07-29T23:40:15.000Z
2021-08-12T10:18:09.000Z
alignment/find_bug/is_bored.py
openai/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
1
2021-09-19T06:44:15.000Z
2021-09-19T06:44:15.000Z
alignment/find_bug/is_bored.py
LaudateCorpus1/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
1
2021-09-19T06:44:03.000Z
2021-09-19T06:44:03.000Z
def is_bored(S): """ You'll be given a string of words, and your task is to count the number of boredoms. A boredom is a sentence that starts with the word "I". Sentences are delimited by '.', '?' or '!'. For example: >>> is_bored("Hello world") 0 >>> is_bored("The sky is blue. The s...
24.431818
115
0.584186
2915a5cec252d8d1a0fc059343505bed4b8a4276
23,882
py
Python
Support/Python/tbdata/printing.py
twitchplayskh/open-brush
2094339be6851731d293f2574c1fc706ee388d84
[ "Apache-2.0" ]
null
null
null
Support/Python/tbdata/printing.py
twitchplayskh/open-brush
2094339be6851731d293f2574c1fc706ee388d84
[ "Apache-2.0" ]
null
null
null
Support/Python/tbdata/printing.py
twitchplayskh/open-brush
2094339be6851731d293f2574c1fc706ee388d84
[ "Apache-2.0" ]
1
2021-02-04T21:45:45.000Z
2021-02-04T21:45:45.000Z
# Copyright 2020 The Tilt Brush Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
33.031812
166
0.638682
29160e7d22c4f8b9d6d61e7d7e39b92b66f54862
33,150
py
Python
src/tests/scenarios/Maxwell_Main.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
src/tests/scenarios/Maxwell_Main.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
1
2019-03-13T20:52:22.000Z
2019-03-13T20:52:22.000Z
src/tests/scenarios/Maxwell_Main.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
''' ''' ''' ISC License Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all c...
45.163488
135
0.672851
29173261ce308b02b389884ae4d161ff95145254
2,458
py
Python
generators/map_parallel.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
6
2017-12-21T04:32:35.000Z
2022-02-15T07:06:45.000Z
generators/map_parallel.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
21
2017-09-08T13:02:18.000Z
2020-03-28T19:10:01.000Z
generators/map_parallel.py
CodyKochmann/generators
a637bf9cb5e48251aa800753ba0aa79b3ca18dcf
[ "MIT" ]
2
2018-09-30T16:16:10.000Z
2019-05-06T02:16:11.000Z
from multiprocessing import Pool from multiprocessing.pool import ThreadPool from queue import Queue from .chunks import chunks __all__ = 'map_parallel', 'map_multicore', 'map_multithread' def map_multicore(pipe, fn, workers): ''' This streams map operations through a Pool without needing to load the ent...
30.345679
78
0.627339
2917e89341b91949b9706419236eae722cd755a7
492
py
Python
apps/bot/classes/messages/attachments/AudioAttachment.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
null
null
null
apps/bot/classes/messages/attachments/AudioAttachment.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
null
null
null
apps/bot/classes/messages/attachments/AudioAttachment.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
null
null
null
from apps.bot.classes.messages.attachments.Attachment import Attachment
30.75
80
0.691057
2917f428a5344543b5b9765a392fb7105a798a1a
4,384
py
Python
app/models.py
TrigeekSpace/academia-bknd
bd3b821240ef50868cd7d7b59c8d25e71086e70e
[ "BSD-3-Clause" ]
null
null
null
app/models.py
TrigeekSpace/academia-bknd
bd3b821240ef50868cd7d7b59c8d25e71086e70e
[ "BSD-3-Clause" ]
null
null
null
app/models.py
TrigeekSpace/academia-bknd
bd3b821240ef50868cd7d7b59c8d25e71086e70e
[ "BSD-3-Clause" ]
null
null
null
""" SQLAlchemy database models. """ from datetime import datetime from depot.fields.sqlalchemy import UploadedFileField from app import db from app.util.data import many_to_many, foreign_key from app.config import TOKEN_LEN
47.652174
87
0.707345