hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794fbf1811b974bc06de79ee633730607292449b
3,242
py
Python
12/navigation.py
SteScheller/AoC_2020
f60d89d19b6c6c19e12f263fe46bc5f36b737327
[ "Unlicense" ]
null
null
null
12/navigation.py
SteScheller/AoC_2020
f60d89d19b6c6c19e12f263fe46bc5f36b737327
[ "Unlicense" ]
null
null
null
12/navigation.py
SteScheller/AoC_2020
f60d89d19b6c6c19e12f263fe46bc5f36b737327
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import re import math from typing import List, Tuple def parse_input(file_path: str) -> List[Tuple[str, int]]: with open(file_path) as f: lines = f.readlines() instructions = list() for l in lines: m = re.fullmatch(r'(N|S|E|W|L|R|F)([\d]+)\n', l) instructions...
37.264368
76
0.55768
794fbf1b23e1faea30e5fef56f20293dd0bd3d16
2,100
py
Python
tests/test_class.py
Jon-Burr/memoclass
93dc1c67fb14b91245e39a480957d0d31977e795
[ "MIT" ]
null
null
null
tests/test_class.py
Jon-Burr/memoclass
93dc1c67fb14b91245e39a480957d0d31977e795
[ "MIT" ]
null
null
null
tests/test_class.py
Jon-Burr/memoclass
93dc1c67fb14b91245e39a480957d0d31977e795
[ "MIT" ]
null
null
null
""" Tests for MemoClass """ from memoclass.memoclass import MemoClass, mutates from memoclass.memoize import memomethod import pytest class PartialSum(MemoClass): def __init__(self, stored, **kwargs): super(PartialSum, self).__init__( mutable_attrs=["call_count"], **kwargs) self.st...
22.580645
63
0.594762
794fc0bd6c08fc4ec4e6110376ace5447a13868d
1,055
py
Python
pycvc/tests/external_tests.py
Geosyntec/python-cvc
9d92efe81a10d2284f796a39673a17b8ef980d27
[ "BSD-3-Clause" ]
null
null
null
pycvc/tests/external_tests.py
Geosyntec/python-cvc
9d92efe81a10d2284f796a39673a17b8ef980d27
[ "BSD-3-Clause" ]
null
null
null
pycvc/tests/external_tests.py
Geosyntec/python-cvc
9d92efe81a10d2284f796a39673a17b8ef980d27
[ "BSD-3-Clause" ]
null
null
null
import sys import os from six import StringIO import datetime from pkg_resources import resource_filename import textwrap from io import StringIO import nose.tools as nt from nose.plugins.attrib import attr from unittest import mock import numpy.testing as nptest import pandas.util.testing as pdtest import numpy as ...
25.119048
80
0.67109
794fc0f34398b88aaed2e1cc14c2c36123438118
739
py
Python
server/helpers/combineMixerTwitchStreams.py
RjDrury/Cryptic_live
3091ddfcfd31b65f949a65c5b0292821bb5924c0
[ "MIT" ]
null
null
null
server/helpers/combineMixerTwitchStreams.py
RjDrury/Cryptic_live
3091ddfcfd31b65f949a65c5b0292821bb5924c0
[ "MIT" ]
4
2021-03-10T16:04:23.000Z
2022-01-22T11:47:59.000Z
server/helpers/combineMixerTwitchStreams.py
RjDrury/Cryptic_live
3091ddfcfd31b65f949a65c5b0292821bb5924c0
[ "MIT" ]
null
null
null
from operator import itemgetter def combine_twitch_mix_streams(twitch, mixer): stream_info = [] for stream in twitch["data"]: stream_info.append({"name":stream["user_name"], "viewers":stream["viewer_count"] ,"thumbnail":stream["thumbnail_url"],"game_id":stream["game_id"], "title":stream...
46.1875
93
0.656292
794fc190c0dcf82e433a76d90e37c06941508ce7
891
py
Python
firstone/firstone/urls.py
avulaankith/Django-Codes
e4216f6a51b5baa745d5a0214afcaf024d048f44
[ "MIT" ]
null
null
null
firstone/firstone/urls.py
avulaankith/Django-Codes
e4216f6a51b5baa745d5a0214afcaf024d048f44
[ "MIT" ]
null
null
null
firstone/firstone/urls.py
avulaankith/Django-Codes
e4216f6a51b5baa745d5a0214afcaf024d048f44
[ "MIT" ]
null
null
null
"""firstone URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
35.64
77
0.693603
794fc1eae33988609e7152e7521416c14c6eaee3
3,574
py
Python
venv/Lib/site-packages/caffe2/quantization/server/int8_gen_quant_params_min_max_test.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
venv/Lib/site-packages/caffe2/quantization/server/int8_gen_quant_params_min_max_test.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/caffe2/quantization/server/int8_gen_quant_params_min_max_test.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
null
null
null
# Copyright (c) 2016-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
42.547619
148
0.643816
794fc22fc4e97e6784a7d4704951806c270f9bda
247
py
Python
data/aihub/preprocessed_data.py
shwksl101/nc_style_transfer
104c93f9e0f302fcfff6e7accd1a4f82f90202c3
[ "Apache-2.0" ]
null
null
null
data/aihub/preprocessed_data.py
shwksl101/nc_style_transfer
104c93f9e0f302fcfff6e7accd1a4f82f90202c3
[ "Apache-2.0" ]
null
null
null
data/aihub/preprocessed_data.py
shwksl101/nc_style_transfer
104c93f9e0f302fcfff6e7accd1a4f82f90202c3
[ "Apache-2.0" ]
null
null
null
import sentencepiece as spm def make_vocab_file(): spm.SentencePieceTrainer.train(input='./colloquial_literary.txt', model_prefix='spm', vocab_size=50000) if __name__ == '__main__': make_vocab_file()
22.454545
89
0.647773
794fc3610962879f1eaf886ac05d401e19a3d9d3
198
py
Python
instrument/instrument/doctype/pick_list_items/pick_list_items.py
sds2402/rushabhinstruments_V13
2a3e293996b9b01f952aa3f76b8b679dce98bc3e
[ "MIT" ]
1
2021-07-14T12:34:14.000Z
2021-07-14T12:34:14.000Z
instrument/instrument/doctype/pick_list_items/pick_list_items.py
sds2402/rushabhinstruments_V13
2a3e293996b9b01f952aa3f76b8b679dce98bc3e
[ "MIT" ]
null
null
null
instrument/instrument/doctype/pick_list_items/pick_list_items.py
sds2402/rushabhinstruments_V13
2a3e293996b9b01f952aa3f76b8b679dce98bc3e
[ "MIT" ]
4
2021-07-06T10:01:11.000Z
2021-12-28T20:40:30.000Z
# Copyright (c) 2021, instrument and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class PickListItems(Document): pass
22
49
0.79798
794fc37a26a947f0f14c2b2defeb4af7b7070785
7,128
py
Python
terraform-modules/lambda/code/alias-eb/alias-eb.py
trustedshops/domain-protect
d103aa086b8d937eeb21d76685d317818c6d344c
[ "Apache-2.0" ]
null
null
null
terraform-modules/lambda/code/alias-eb/alias-eb.py
trustedshops/domain-protect
d103aa086b8d937eeb21d76685d317818c6d344c
[ "Apache-2.0" ]
null
null
null
terraform-modules/lambda/code/alias-eb/alias-eb.py
trustedshops/domain-protect
d103aa086b8d937eeb21d76685d317818c6d344c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os, boto3 import logging import json import dns.resolver from botocore.exceptions import ClientError from datetime import datetime def json_serial(obj): """JSON serializer for objects not serializable by default json code""" if isinstance(obj, datetime): serial = obj.isof...
50.553191
180
0.55289
794fc40d5e82408b04fa887b84ce64e912add7c8
6,765
py
Python
webots_ros2_core/webots_ros2_core/devices/camera_device.py
renan028/webots_ros2
24cfd4e99b73b89e38f3f4993339473c27fa7661
[ "Apache-2.0" ]
1
2021-02-25T05:03:38.000Z
2021-02-25T05:03:38.000Z
webots_ros2_core/webots_ros2_core/devices/camera_device.py
renan028/webots_ros2
24cfd4e99b73b89e38f3f4993339473c27fa7661
[ "Apache-2.0" ]
null
null
null
webots_ros2_core/webots_ros2_core/devices/camera_device.py
renan028/webots_ros2
24cfd4e99b73b89e38f3f4993339473c27fa7661
[ "Apache-2.0" ]
null
null
null
# Copyright 1996-2021 Cyberbotics Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
42.816456
123
0.610791
794fc48adf79a4fcf42ee037e7f35fea076f24dc
947
py
Python
src/vsc/model/expr_dynamic_model.py
fvutils/py-vsc
e30ffae1b750d8182d102b1fe5b1cfdce017a092
[ "Apache-2.0" ]
54
2020-03-28T17:54:00.000Z
2022-03-27T08:53:13.000Z
src/vsc/model/expr_dynamic_model.py
fvutils/py-vsc
e30ffae1b750d8182d102b1fe5b1cfdce017a092
[ "Apache-2.0" ]
124
2020-04-10T03:06:03.000Z
2022-03-24T18:35:46.000Z
src/vsc/model/expr_dynamic_model.py
fvutils/py-vsc
e30ffae1b750d8182d102b1fe5b1cfdce017a092
[ "Apache-2.0" ]
17
2020-04-09T21:47:58.000Z
2022-02-23T19:37:37.000Z
''' Created on Aug 21, 2020 @author: ballance ''' from vsc.model.expr_model import ExprModel class ExprDynamicModel(ExprModel): '''Base class for expressions that must be computed dynamically''' def __init__(self): self.cached_expr = None self.cached_node = None pass def r...
27.057143
86
0.608237
794fc4af9d6e7ef0f36216f8f67d788d184fdda2
37
py
Python
login.py
TmacChenQian/django26
59c0afe075a5c9454a42bb27cdba8ac56e7582fc
[ "MIT" ]
null
null
null
login.py
TmacChenQian/django26
59c0afe075a5c9454a42bb27cdba8ac56e7582fc
[ "MIT" ]
null
null
null
login.py
TmacChenQian/django26
59c0afe075a5c9454a42bb27cdba8ac56e7582fc
[ "MIT" ]
null
null
null
num1=1 num2=2 num3=3 num4=40 num5=5
5.285714
7
0.702703
794fc589249a0f67eb431bdc67e3e34101fc1481
938
py
Python
graph/BFS/test_BFS.py
s1s1ty/Algo-DS-Implementation
56c40fe107a48b5562794775d671db88d04594b3
[ "MIT" ]
9
2018-03-29T13:03:45.000Z
2020-01-22T10:42:47.000Z
graph/BFS/test_BFS.py
s1s1ty/Algo-DS-Implementation
56c40fe107a48b5562794775d671db88d04594b3
[ "MIT" ]
null
null
null
graph/BFS/test_BFS.py
s1s1ty/Algo-DS-Implementation
56c40fe107a48b5562794775d671db88d04594b3
[ "MIT" ]
4
2018-03-29T13:06:41.000Z
2020-11-22T13:58:19.000Z
import unittest import collections from BFS import BFSM, BFS class BFSTestCase(unittest.TestCase): def test(self): ob = BFS() graph = collections.defaultdict(set) graph[1] = [2, 3, 5] graph[2] = [8] graph[3] = [5,4] graph[8] = [4] source = 2 destinati...
23.45
79
0.515991
794fc5e890187a35e6c99ed0f6bb8b0042ec1808
6,508
py
Python
mrmpi/oink/Make.py
mkaczanowski/ompi-mutual-friends
8d3f994fe5fe648332b9c2b09ea2a712a241d6c1
[ "MIT" ]
null
null
null
mrmpi/oink/Make.py
mkaczanowski/ompi-mutual-friends
8d3f994fe5fe648332b9c2b09ea2a712a241d6c1
[ "MIT" ]
1
2021-06-12T00:50:08.000Z
2021-06-15T17:59:12.000Z
mrmpi/oink/Make.py
mkaczanowski/ompi-mutual-friends
8d3f994fe5fe648332b9c2b09ea2a712a241d6c1
[ "MIT" ]
1
2021-06-11T19:34:43.000Z
2021-06-11T19:34:43.000Z
#!/usr/local/bin/python # Make.py to create style_*.h files by parsing other files # Syntax: Make.py import sys,os,glob,commands,re # style_command.h files = glob.glob("*.h") files.sort() fp = open("style_command.tmp","w") for file in files: txt = open(file,"r").read() if "COMMAND_CLASS" in txt: print >>fp...
24.651515
77
0.589121
794fc5f240d328af07b7f07dc10164c0f176f40c
7,573
py
Python
python/glow/hail/tests/test_from_matrix_table.py
mah-databricks/glow
958fd9480211ca8ac9229f39617e273cd8067f8c
[ "Apache-2.0" ]
214
2019-10-17T15:10:34.000Z
2022-03-22T08:09:16.000Z
python/glow/hail/tests/test_from_matrix_table.py
mah-databricks/glow
958fd9480211ca8ac9229f39617e273cd8067f8c
[ "Apache-2.0" ]
433
2019-10-15T14:58:10.000Z
2022-03-30T18:41:27.000Z
python/glow/hail/tests/test_from_matrix_table.py
mah-databricks/glow
958fd9480211ca8ac9229f39617e273cd8067f8c
[ "Apache-2.0" ]
74
2019-10-15T14:02:01.000Z
2022-03-31T19:36:30.000Z
# Copyright 2019 The Glow 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 writ...
43.774566
173
0.643866
794fc7ecd02b6f16b8b020ad2062d59e3217ea69
2,389
py
Python
tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/see_in_the_dark.py
TolyaTalamanov/open_model_zoo
1697e60712df4ca72635a2080a197b9d3bc24129
[ "Apache-2.0" ]
2,201
2018-10-15T14:37:19.000Z
2020-07-16T02:05:51.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/see_in_the_dark.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
759
2018-10-18T07:43:55.000Z
2020-07-16T01:23:12.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/see_in_the_dark.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
808
2018-10-16T14:03:49.000Z
2020-07-15T11:41:45.000Z
""" Copyright (c) 2018-2022 Intel 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.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
47.78
113
0.714525
794fc8044a33048ff270eeba53862e6f1b42c964
2,472
py
Python
sewer/catalog.py
kylejohnson/sewer
056ac64fe294fb284ec5b920ec1a9425dd254e92
[ "MIT" ]
135
2017-12-31T22:01:33.000Z
2022-01-20T18:18:11.000Z
sewer/catalog.py
kylejohnson/sewer
056ac64fe294fb284ec5b920ec1a9425dd254e92
[ "MIT" ]
149
2018-01-10T10:36:18.000Z
2021-07-01T16:22:47.000Z
sewer/catalog.py
kylejohnson/sewer
056ac64fe294fb284ec5b920ec1a9425dd254e92
[ "MIT" ]
61
2018-03-05T16:58:55.000Z
2021-05-21T01:30:07.000Z
import codecs, importlib, json, os from typing import Dict, List, Sequence from .auth import ProviderBase class ProviderDescriptor: def __init__( self, *, name: str, desc: str, chals: Sequence[str], args: Sequence[Dict[str, str]], deps: Sequence[str], ...
31.291139
91
0.601537
794fca761acfc988e57563c500c6b9c9ef668e2d
2,627
py
Python
Module5/assignment1.py
sidbose/PythonForDataScienceBasics
191f56904b1fefebd441e3fde63f52b6936959d8
[ "MIT" ]
null
null
null
Module5/assignment1.py
sidbose/PythonForDataScienceBasics
191f56904b1fefebd441e3fde63f52b6936959d8
[ "MIT" ]
null
null
null
Module5/assignment1.py
sidbose/PythonForDataScienceBasics
191f56904b1fefebd441e3fde63f52b6936959d8
[ "MIT" ]
null
null
null
# # TODO: Import whatever needs to be imported to make this work # import pandas as pd import matplotlib.pyplot as plt import matplotlib from sklearn.cluster import KMeans # Look Pretty # matplotlib.style.use('ggplot') plt.style.use('ggplot') # # TODO: To procure the dataset, follow these steps: # 1...
27.652632
100
0.680244
794fcbf16641ea1a76a46c1b9b03ea6b0192d253
2,319
py
Python
djnic/cambios/models.py
avdata99/nic
70399bd78fd2b4b496d338e7959867ad12cdf477
[ "MIT" ]
8
2021-05-01T13:03:22.000Z
2021-12-17T21:50:04.000Z
djnic/cambios/models.py
avdata99/nic
70399bd78fd2b4b496d338e7959867ad12cdf477
[ "MIT" ]
16
2020-11-20T23:18:22.000Z
2021-04-08T20:09:35.000Z
djnic/cambios/models.py
OpenDataCordoba/nic
f9528856e13d106bdfb476cab1236bc5b8a92183
[ "MIT" ]
null
null
null
from django.db import models from registrantes.models import Registrante class CambiosDominio(models.Model): """ a domain is checks (having or no aby changes) """ dominio = models.ForeignKey('dominios.Dominio', on_delete=models.CASCADE, related_name='cambios') momento = models.DateTimeField() # to imp...
39.305085
107
0.675722
794fcbf6f1bc104288d2eac3977910ad2a3029bc
1,306
py
Python
src/make_dataframe.py
datavistics/sms_spam
d858fdd25371979b42fb66093866479fe098aff0
[ "BSD-3-Clause" ]
null
null
null
src/make_dataframe.py
datavistics/sms_spam
d858fdd25371979b42fb66093866479fe098aff0
[ "BSD-3-Clause" ]
null
null
null
src/make_dataframe.py
datavistics/sms_spam
d858fdd25371979b42fb66093866479fe098aff0
[ "BSD-3-Clause" ]
null
null
null
import zipfile from pathlib import Path import pandas as pd import requests project_dir = Path(__file__).parents[1] url = 'https://archive.ics.uci.edu/ml/machine-learning-databases/00228/smsspamcollection.zip' data_path = project_dir / 'data' / 'smsspamcollection.zip' file_path = project_dir / 'data' / 'SMSSpamCollec...
23.745455
93
0.674579
794fcc2d867456fa71cc034dd4048ec7bc1f178a
3,070
py
Python
assets/misc/Algorithm_practice/test.py
oliviapy960825/oliviapy960825.github.io
7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde
[ "CC-BY-3.0" ]
null
null
null
assets/misc/Algorithm_practice/test.py
oliviapy960825/oliviapy960825.github.io
7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde
[ "CC-BY-3.0" ]
null
null
null
assets/misc/Algorithm_practice/test.py
oliviapy960825/oliviapy960825.github.io
7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 17 16:38:08 2020 @author: wangpeiyu """ """ a1='11000000 10101000 00000001 00000001' b='11111111 11111111 11111111 11110000' a2='11000000 10101000 00000001 00000000' """ """ def BFS(length, matrix,row,col,count): while row<length-1 and col<leng...
42.054795
168
0.656678
794fcc625e953aa2835dede95b32432878ae2964
973
py
Python
pyMKL/loadMKL.py
jcapriot/pyMKL
4b960585903bc1504dec2e37aa09d67849986322
[ "MIT" ]
10
2016-05-18T09:33:39.000Z
2021-03-13T07:10:46.000Z
pyMKL/loadMKL.py
jcapriot/pyMKL
4b960585903bc1504dec2e37aa09d67849986322
[ "MIT" ]
10
2016-04-29T16:07:21.000Z
2022-01-02T19:15:06.000Z
pyMKL/loadMKL.py
jcapriot/pyMKL
4b960585903bc1504dec2e37aa09d67849986322
[ "MIT" ]
16
2016-04-29T14:14:38.000Z
2022-01-04T11:52:56.000Z
from ctypes import CDLL, RTLD_GLOBAL import sys, os platform = sys.platform libname = {'linux':'libmkl_rt.so', # works for python3 on linux 'linux2':'libmkl_rt.so', # works for python2 on linux 'darwin':'libmkl_rt.dylib', 'win32':'mkl_rt.dll'} def _loadMKL(): try: # ...
32.433333
70
0.505653
794fcda35dce03ecd1e5700c24b77d104458f143
535
py
Python
test_app/urls.py
benzkji/django-minimalist-cms
b25024c489e2be3fb3a7f664a2535592fd89d08c
[ "MIT" ]
null
null
null
test_app/urls.py
benzkji/django-minimalist-cms
b25024c489e2be3fb3a7f664a2535592fd89d08c
[ "MIT" ]
8
2019-01-10T11:59:06.000Z
2019-10-22T17:25:36.000Z
test_app/urls.py
benzkji/django-minimalist-cms
b25024c489e2be3fb3a7f664a2535592fd89d08c
[ "MIT" ]
1
2019-04-09T11:18:36.000Z
2019-04-09T11:18:36.000Z
from __future__ import unicode_literals from django.conf import settings from django.conf.urls import url, include from django.contrib import admin from django.conf.urls.static import static from test_app.views import TestModelView admin.autodiscover() urlpatterns = [ url(r'^$', TestModelView.as_view(), name='...
20.576923
58
0.721495
794fce11a66db5cfcee95b74dfac9cd163d5f7e6
20,649
py
Python
xpath/compilerv1/XPathLexer.py
cs4221/xpath
55cbfe7e7e0d4ec0edd85cf0cb5fa9c0320356e6
[ "Unlicense" ]
null
null
null
xpath/compilerv1/XPathLexer.py
cs4221/xpath
55cbfe7e7e0d4ec0edd85cf0cb5fa9c0320356e6
[ "Unlicense" ]
null
null
null
xpath/compilerv1/XPathLexer.py
cs4221/xpath
55cbfe7e7e0d4ec0edd85cf0cb5fa9c0320356e6
[ "Unlicense" ]
null
null
null
# Generated from .\xpath\xpathgrammer\XPath.g4 by ANTLR 4.9.3 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u...
58.997143
103
0.557364
794fcef4254301fdbd3484937d106394849ac8c2
294
py
Python
BOJ/05000~05999/5000~5099/5046.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/05000~05999/5000~5099/5046.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/05000~05999/5000~5099/5046.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
N,B,H,W =map(int,input().split()) ans = 9876543210 for i in range(H): p = int(input()) L = list(map(int,input().split())) for i in L: if i >=N: if p*N <= B and p*N < ans: ans = p*N if ans == 9876543210: print("stay home") else: print(ans)
22.615385
38
0.489796
794fcf0ec29ca239aa9d110da4827fe2cc52b65c
507
py
Python
flask_request_logger/schemas.py
passiomatic/flask-request-logger
bbace0a0c3ba80b87bd03f53fcec290ba7ded9aa
[ "MIT" ]
5
2018-10-26T09:49:40.000Z
2022-01-13T06:40:06.000Z
flask_request_logger/schemas.py
passiomatic/flask-request-logger
bbace0a0c3ba80b87bd03f53fcec290ba7ded9aa
[ "MIT" ]
1
2019-08-20T02:40:02.000Z
2019-08-20T02:40:02.000Z
flask_request_logger/schemas.py
passiomatic/flask-request-logger
bbace0a0c3ba80b87bd03f53fcec290ba7ded9aa
[ "MIT" ]
4
2019-08-17T16:48:26.000Z
2021-05-25T12:02:17.000Z
from marshmallow import fields, Schema from marshmallow_sqlalchemy import ModelSchema from flask_request_logger.models import RequestLog, ResponseLog class RequestLogSchema(ModelSchema): class Meta: model = RequestLog exclude = ('response_log', ) class ResponseLogSchema(ModelSchema): class ...
23.045455
63
0.733728
794fcf1061ffc8027cc181bac23b01bad5cb3077
2,063
py
Python
demos/HFL/algorithm/fed_avg.py
monadyn/fedlearn-algo
c4459d421139b0bb765527d636fff123bf17bda4
[ "Apache-2.0" ]
86
2021-07-20T01:54:21.000Z
2021-10-06T04:02:40.000Z
demos/HFL/algorithm/fed_avg.py
fedlearnAI/fedlearnalgo
63d9ceb64d331ff2b5103ae49e54229cad7e2095
[ "Apache-2.0" ]
5
2021-07-23T21:22:16.000Z
2021-09-12T15:48:35.000Z
demos/HFL/algorithm/fed_avg.py
fedlearnAI/fedlearnalgo
63d9ceb64d331ff2b5103ae49e54229cad7e2095
[ "Apache-2.0" ]
28
2021-07-20T07:15:33.000Z
2021-08-22T20:04:57.000Z
# Copyright 2021 Fedlearn 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 writi...
31.738462
102
0.619001
794fd06da7b6aaac348173f372a080759b75e27c
3,325
py
Python
tests/interfaces/curses_interface/test_render.py
carlosmaniero/ascii-engine
47f6b6769a6ed5b2497330c9b5575c7cc8566544
[ "MIT" ]
2
2018-03-02T17:02:30.000Z
2018-11-22T13:43:37.000Z
tests/interfaces/curses_interface/test_render.py
carlosmaniero/ascii-engine
47f6b6769a6ed5b2497330c9b5575c7cc8566544
[ "MIT" ]
6
2018-04-10T03:31:44.000Z
2018-04-10T04:12:16.000Z
tests/interfaces/curses_interface/test_render.py
carlosmaniero/ascii-engine
47f6b6769a6ed5b2497330c9b5575c7cc8566544
[ "MIT" ]
null
null
null
from unittest.mock import Mock import pytest import time from ascii_engine.elements.styles import colorize from tests.mocked_modules.curses import (mocked_curses, patch_curses, setup_curses) from ascii_engine.interfaces.curses_interface.render import CursesRender from ascii_eng...
31.971154
79
0.754887
794fd3ed8006763c681b85b856f90cacab4c03be
1,042
py
Python
setup.py
kowaalczyk/reformer-tts
4d39bf0677fb34298f1bf88f17c6623d5a96de80
[ "MIT" ]
6
2020-06-22T18:01:07.000Z
2021-09-22T02:46:41.000Z
setup.py
kowaalczyk/reformer-tts
4d39bf0677fb34298f1bf88f17c6623d5a96de80
[ "MIT" ]
null
null
null
setup.py
kowaalczyk/reformer-tts
4d39bf0677fb34298f1bf88f17c6623d5a96de80
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="reformer_tts", version="0.1", packages=find_packages(include=('reformer_tts', 'reformer_tts.*')), python_requires=">=3.8", install_requires=[ "dacite==1.4.0", "dvc==0.88", "Click==7", "pytorch-lightning==0.7.6"...
25.414634
71
0.485605
794fd4374386f93b8974b22499ebc7ea422e18d8
90
py
Python
app/__init__.py
gabrielx52/lineup
2590d29cac45d84d9d810b50cc201130238dd936
[ "MIT" ]
null
null
null
app/__init__.py
gabrielx52/lineup
2590d29cac45d84d9d810b50cc201130238dd936
[ "MIT" ]
null
null
null
app/__init__.py
gabrielx52/lineup
2590d29cac45d84d9d810b50cc201130238dd936
[ "MIT" ]
null
null
null
"""Init script.""" from flask import Flask app = Flask(__name__) from app import routes
12.857143
23
0.722222
794fd459299266a6600a912e0418b5dfdf58d812
26,702
py
Python
vut/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/commands/install.py
dan-mutua/djangowk1
1e5dcb6443ef21451e21845ec639198719e11b10
[ "MIT" ]
18,636
2017-12-06T14:53:18.000Z
2022-03-31T13:12:34.000Z
vut/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/commands/install.py
dan-mutua/djangowk1
1e5dcb6443ef21451e21845ec639198719e11b10
[ "MIT" ]
3,640
2017-12-06T16:58:35.000Z
2022-03-31T22:20:57.000Z
vut/lib/python3.8/site-packages/pipenv/patched/notpip/_internal/commands/install.py
dan-mutua/djangowk1
1e5dcb6443ef21451e21845ec639198719e11b10
[ "MIT" ]
1,987
2017-12-06T15:04:51.000Z
2022-03-26T10:05:15.000Z
# The following comment should be removed at some point in the future. # It's included for now because without it InstallCommand.run() has a # couple errors where we have to know req.name is str rather than # Optional[str] for the InstallRequirement req. # mypy: strict-optional=False # mypy: disallow-untyped-defs=False...
38.037037
97
0.58696
794fd4c2d15c3142a462c1cf48c79fa20bfb1952
7,576
py
Python
is_export_edi.py
tonygalmiche/is_plastigray
10669dda26f5a8653371a52798f41fdc805c61f2
[ "MIT" ]
1
2018-12-29T08:34:25.000Z
2018-12-29T08:34:25.000Z
is_export_edi.py
tonygalmiche/is_plastigray
10669dda26f5a8653371a52798f41fdc805c61f2
[ "MIT" ]
null
null
null
is_export_edi.py
tonygalmiche/is_plastigray
10669dda26f5a8653371a52798f41fdc805c61f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from openerp import models,fields,api from openerp.tools.translate import _ from openerp.exceptions import Warning import os # TODO : # - Créer l'import EDI pour ce fichier (type edi = odoo) class is_export_edi(models.Model): _name='is.export.edi' _order='name desc' @api.depend...
38.070352
123
0.48614
794fd52e532728401e3e2805bb759c96d73361be
40,041
py
Python
sdk/python/pulumi_azure_native/network/v20200401/security_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200401/security_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200401/security_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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 warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
60.031484
4,975
0.701081
794fd5d9e256b9f7163d7a29fc7267a43414d5a0
2,152
py
Python
tplink_wr/fetchers/wlan.py
n1k0r/tplink-wr-api
7f4e29b4b08cf6564b06d9bc3381ab5682afd83f
[ "MIT" ]
5
2021-11-02T13:13:10.000Z
2021-12-14T14:13:28.000Z
tplink_wr/fetchers/wlan.py
n1k0r/tplink-wr-api
7f4e29b4b08cf6564b06d9bc3381ab5682afd83f
[ "MIT" ]
null
null
null
tplink_wr/fetchers/wlan.py
n1k0r/tplink-wr-api
7f4e29b4b08cf6564b06d9bc3381ab5682afd83f
[ "MIT" ]
null
null
null
from dataclasses import dataclass from tplink_wr.parse.utils import extract_vars from tplink_wr.router import RouterInterface from .fetcher import Fetcher @dataclass class WLANStats(Fetcher): ssid: list[str] mac_filter_enabled: bool mac_filter_whitelist: bool clients: list @classmethod def ...
28.693333
66
0.563197
794fd604bb49beacb1b7ca11da994bbdb4f38580
3,148
py
Python
PyProxyToolkit/check.py
maxpalpal/permanrkee
e895fbd6a205c324ad185f607f0c43ea27e47acc
[ "MIT" ]
null
null
null
PyProxyToolkit/check.py
maxpalpal/permanrkee
e895fbd6a205c324ad185f607f0c43ea27e47acc
[ "MIT" ]
null
null
null
PyProxyToolkit/check.py
maxpalpal/permanrkee
e895fbd6a205c324ad185f607f0c43ea27e47acc
[ "MIT" ]
1
2020-11-04T06:11:05.000Z
2020-11-04T06:11:05.000Z
""" Copyright (C) 2016 Garry Lachman garry@lachman.co under GNU LGPL https://github.com/garrylachman/PyProxyToolkit https://rev.proxies.online This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1, as published by the Free Software ...
36.183908
130
0.595299
794fd60ec4a627f30e70e38b3dc2e5f2a0357887
20,555
py
Python
keystone/common/utils.py
andy-ning/stx-keystone
d25ef53d1a152025b78dbf7780b93fe356323836
[ "Apache-2.0" ]
1
2019-05-08T06:09:35.000Z
2019-05-08T06:09:35.000Z
keystone/common/utils.py
andy-ning/stx-keystone
d25ef53d1a152025b78dbf7780b93fe356323836
[ "Apache-2.0" ]
4
2018-08-22T14:51:02.000Z
2018-10-17T14:04:26.000Z
keystone/common/utils.py
andy-ning/stx-keystone
d25ef53d1a152025b78dbf7780b93fe356323836
[ "Apache-2.0" ]
5
2018-08-03T17:19:34.000Z
2019-01-11T15:54:42.000Z
# Copyright 2012 OpenStack Foundation # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 - 2012 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
34.662732
92
0.636633
794fd691ddb3301fcce03574d769e878a2ace157
5,317
py
Python
tests/test_articles.py
iq9/say-so-backend-flask
1e463afd29bb312466d8c0e24d61152782223acf
[ "MIT" ]
1
2021-01-03T16:13:35.000Z
2021-01-03T16:13:35.000Z
tests/test_articles.py
rbrooks/say-so-backend-flask
1e463afd29bb312466d8c0e24d61152782223acf
[ "MIT" ]
1
2020-05-28T06:22:31.000Z
2020-05-28T06:22:31.000Z
tests/test_articles.py
iq9/say-so-backend-flask
1e463afd29bb312466d8c0e24d61152782223acf
[ "MIT" ]
null
null
null
# coding: utf-8 from flask import url_for from datetime import datetime class TestArticleViews: def test_get_articles_by_author(self, testapp, user): user = user.get() resp = testapp.post_json(url_for('user.login_user'), {'user': { 'email': user.email, 'password': 'mypreci...
38.251799
90
0.507053
794fd99c84a35687bd729dbdeee48af2b12fb742
2,534
py
Python
src/tests/catwalk_tests/test_individual_importance.py
adunmore/triage
51f4e5bb73740378d22de16de4b15c78a1feea7b
[ "MIT" ]
null
null
null
src/tests/catwalk_tests/test_individual_importance.py
adunmore/triage
51f4e5bb73740378d22de16de4b15c78a1feea7b
[ "MIT" ]
null
null
null
src/tests/catwalk_tests/test_individual_importance.py
adunmore/triage
51f4e5bb73740378d22de16de4b15c78a1feea7b
[ "MIT" ]
1
2020-03-07T09:51:43.000Z
2020-03-07T09:51:43.000Z
from triage.component.catwalk.individual_importance import ( IndividualImportanceCalculator, ) from tests.utils import ( rig_engines, fake_trained_model, matrix_creator, matrix_metadata_creator, get_matrix_store, ) from unittest.mock import patch def sample_individual_importance_strategy( ...
31.675
87
0.617995
794fd9b86307754cb526b893ffd3a18d8e8e3b29
10,139
py
Python
main/migrations/0010_auto__add_field_userevent_geo_lat__add_field_userevent_geo_lon__add_fi.py
mattr555/AtYourService
41af372176dc607e97851b2c1e8c8efac392787c
[ "MIT" ]
1
2020-11-05T07:29:46.000Z
2020-11-05T07:29:46.000Z
main/migrations/0010_auto__add_field_userevent_geo_lat__add_field_userevent_geo_lon__add_fi.py
mattr555/AtYourService
41af372176dc607e97851b2c1e8c8efac392787c
[ "MIT" ]
null
null
null
main/migrations/0010_auto__add_field_userevent_geo_lat__add_field_userevent_geo_lon__add_fi.py
mattr555/AtYourService
41af372176dc607e97851b2c1e8c8efac392787c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'UserEvent.geo_lat' db.add_column('main_userevent', 'geo_lat', self.gf(...
61.448485
184
0.568202
794fd9bc34add1c4836399941ba668ab552b7b44
1,344
py
Python
fit_1D_NestedSampling/examples/multinest/tutorials/example1/1d_multimodal.py
crpurcell/pythonFitting
54315e336593f7f105f516766fb323662eadd5e3
[ "MIT" ]
1
2021-10-11T06:05:56.000Z
2021-10-11T06:05:56.000Z
fit_1D_NestedSampling/examples/multinest/tutorials/example1/1d_multimodal.py
crpurcell/pythonFitting
54315e336593f7f105f516766fb323662eadd5e3
[ "MIT" ]
null
null
null
fit_1D_NestedSampling/examples/multinest/tutorials/example1/1d_multimodal.py
crpurcell/pythonFitting
54315e336593f7f105f516766fb323662eadd5e3
[ "MIT" ]
4
2018-08-08T10:38:53.000Z
2020-08-08T13:41:07.000Z
import json import numpy from numpy import log, exp, pi import scipy.stats, scipy import pymultinest import matplotlib.pyplot as plt # we define the problem: we need a prior function which maps from [0:1] to the parameter space # we only have one parameter, the position of the gaussian (ndim == 1) # map it from the u...
31.255814
94
0.723958
794fda86072a9e6d090b8e8bc7b8cef5493861a2
637
py
Python
weather.py
Tounie123/hellogithu
5c21721fe00bbe38e11ed91a3514c905117de813
[ "MIT" ]
null
null
null
weather.py
Tounie123/hellogithu
5c21721fe00bbe38e11ed91a3514c905117de813
[ "MIT" ]
null
null
null
weather.py
Tounie123/hellogithu
5c21721fe00bbe38e11ed91a3514c905117de813
[ "MIT" ]
null
null
null
from urllib.request import urlopen from bs4 import BeautifulSoup import re resp=urlopen('http://www.weather.com.cn/weather/101280701.shtml') print(resp) soup=BeautifulSoup(resp,'html.parser') tagToday=soup.find('p',class_="tem") #第一个包含class="tem"的p标签即为存放今天天气数据的标签 try: temperatureHigh=tagToday.span.string #有时候这个最...
33.526316
83
0.77394
794fdac3eac0af3a0a69fca2494c028e527df357
2,427
py
Python
homeassistant/components/hunterdouglas_powerview/sensor.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
homeassistant/components/hunterdouglas_powerview/sensor.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
47
2020-07-23T07:13:11.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/hunterdouglas_powerview/sensor.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Support for hunterdouglass_powerview sensors.""" import logging from aiopvapi.resources.shade import factory as PvShade from homeassistant.const import DEVICE_CLASS_BATTERY, UNIT_PERCENTAGE from homeassistant.core import callback from .const import ( COORDINATOR, DEVICE_INFO, DOMAIN, PV_API, P...
27.896552
85
0.678204
794fdba9f029a6a9f9c258c591354c01530f93c0
3,367
py
Python
utils/evaluation.py
langyijun/proxy-synthesis
4c69a17522a4aab9e1cfe568e900ca82b109e427
[ "Apache-2.0" ]
26
2021-02-02T02:46:29.000Z
2022-02-27T17:17:32.000Z
utils/evaluation.py
langyijun/proxy-synthesis
4c69a17522a4aab9e1cfe568e900ca82b109e427
[ "Apache-2.0" ]
2
2021-08-16T09:23:57.000Z
2021-12-19T00:47:33.000Z
utils/evaluation.py
langyijun/proxy-synthesis
4c69a17522a4aab9e1cfe568e900ca82b109e427
[ "Apache-2.0" ]
8
2021-02-02T04:53:36.000Z
2022-02-16T10:25:26.000Z
''' proxy-synthesis Copyright (c) 2021-present NAVER Corp. Apache License v2.0 ''' import faiss import numpy as np from sklearn.cluster import KMeans from sklearn.metrics.cluster import normalized_mutual_info_score def evaluation(X, Y, Kset, args): def get_recallK(Y_query, YNN, Kset): recallK = np.zeros(l...
30.889908
94
0.520345
794fdc1702c8e25956abc1fda319b65fe44dd668
109,730
py
Python
XLMMacroDeobfuscator/deobfuscator.py
kirk-sayre-work/XLMMacroDeobfuscator
fee0cf5a61e32d7e18f96ab44dbef50a84ed6b96
[ "Apache-2.0" ]
null
null
null
XLMMacroDeobfuscator/deobfuscator.py
kirk-sayre-work/XLMMacroDeobfuscator
fee0cf5a61e32d7e18f96ab44dbef50a84ed6b96
[ "Apache-2.0" ]
null
null
null
XLMMacroDeobfuscator/deobfuscator.py
kirk-sayre-work/XLMMacroDeobfuscator
fee0cf5a61e32d7e18f96ab44dbef50a84ed6b96
[ "Apache-2.0" ]
null
null
null
import traceback import argparse import base64 import hashlib import json import msoffcrypto import os import sys import json import time from _ast import arguments from tempfile import mkstemp from lark import Lark from lark.exceptions import ParseError from lark.lexer import Token from lark.tree import Tree from XLMM...
46.066331
150
0.565998
794fde5050ffdadb9fbdddde87ba03912918053b
27,369
py
Python
tests/test_conferences.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
1
2019-12-23T04:30:20.000Z
2019-12-23T04:30:20.000Z
tests/test_conferences.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
17
2016-01-27T03:26:00.000Z
2019-10-30T13:49:15.000Z
tests/test_conferences.py
yuanyuan-deng/RDM-osf.io
e1c54e97c898d26406d71129db7e4baf82802224
[ "Apache-2.0" ]
1
2015-08-28T20:00:52.000Z
2015-08-28T20:00:52.000Z
# -*- coding: utf-8 -*- import mock from nose.tools import * # noqa (PEP8 asserts) import hmac import hashlib from StringIO import StringIO from django.core.exceptions import ValidationError from django.db import IntegrityError import furl from framework.auth import get_or_create_user from framework.auth.core impo...
36.736913
114
0.610654
794fdf3beaeacf64fdd917baf3bf4576c15628a8
851
py
Python
DESAFIO-064.py
Lukones/Evolution-Projetos-Python
d979f3702f0e22ab5256b19fd957dba587c44f85
[ "MIT" ]
null
null
null
DESAFIO-064.py
Lukones/Evolution-Projetos-Python
d979f3702f0e22ab5256b19fd957dba587c44f85
[ "MIT" ]
null
null
null
DESAFIO-064.py
Lukones/Evolution-Projetos-Python
d979f3702f0e22ab5256b19fd957dba587c44f85
[ "MIT" ]
null
null
null
from time import sleep cont18 = conthomen = contF20 = 0 while True: idade = int(input('Digite sua idade: ')) sexo = ' ' while sexo not in 'FM': sexo = str(input('Digite seu sexo [F/M]: ')).strip().upper()[0] print('='*30) print('\033[4;31mCADASTRANDO...\033[m') print('='*30) sleep(1)...
30.392857
91
0.578143
794fdf7e6c7d106a5c9fe7a38b91e796b67a67ca
18,746
py
Python
utils/dataset_manifest/core.py
minguin05/cvat
c85bfb86f22e3840dee2f9d60ed4caf229302782
[ "Intel", "MIT" ]
2
2022-03-13T03:45:15.000Z
2022-03-13T03:46:19.000Z
utils/dataset_manifest/core.py
minguin05/cvat
c85bfb86f22e3840dee2f9d60ed4caf229302782
[ "Intel", "MIT" ]
null
null
null
utils/dataset_manifest/core.py
minguin05/cvat
c85bfb86f22e3840dee2f9d60ed4caf229302782
[ "Intel", "MIT" ]
null
null
null
# Copyright (C) 2021 Intel Corporation # # SPDX-License-Identifier: MIT import av import json import os from abc import ABC, abstractmethod, abstractproperty from collections import OrderedDict from contextlib import closing from PIL import Image from .utils import md5_hash, rotate_image class VideoStreamReader: ...
36.4
118
0.591273
794fdfe34467fd8272a26ebd5b4c6566bf325719
268
py
Python
medium/13_validate_credit_card_nums.py
UltiRequiem/hacker-rank-python
bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1
[ "MIT" ]
4
2021-08-02T21:34:38.000Z
2021-09-24T03:26:33.000Z
medium/13_validate_credit_card_nums.py
UltiRequiem/hacker-rank-python
bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1
[ "MIT" ]
null
null
null
medium/13_validate_credit_card_nums.py
UltiRequiem/hacker-rank-python
bcc6a467dd2a1f90cf61c1d6b049f566f5ffabe1
[ "MIT" ]
3
2021-08-02T21:34:39.000Z
2021-08-02T21:37:16.000Z
from re import compile def run(DATA): for _ in range(int(input().strip())): print("Valid" if DATA.search(input().strip()) else "Invalid") if __name__ == "__main__": run(compile(r"^" r"(?!.*(\d)(-?\1){3})" r"[456]" r"\d{3}" r"(?:-?\d{4}){3}" r"$"))
24.363636
86
0.526119
794fe06b2f1e44b4fc0a7ec067a3c1433ab4528c
3,434
py
Python
resources/genotypes.py
rahulg603/ukbb_pan_ancestry
482f23f0ae7ea14a92540f218aa7b0750e207605
[ "MIT" ]
null
null
null
resources/genotypes.py
rahulg603/ukbb_pan_ancestry
482f23f0ae7ea14a92540f218aa7b0750e207605
[ "MIT" ]
null
null
null
resources/genotypes.py
rahulg603/ukbb_pan_ancestry
482f23f0ae7ea14a92540f218aa7b0750e207605
[ "MIT" ]
null
null
null
import hail as hl from .generic import * ukb_imputed_bgen_path = 'gs://fc-7d5088b4-7673-45b5-95c2-17ae00a04183/imputed/ukb_imp_chr{}_v3.bgen' ukb_imputed_info_path = 'gs://fc-7d5088b4-7673-45b5-95c2-17ae00a04183/imputed/ukb_mfi_chr{}_v3.txt' ukb_imputed_info_ht_path = f'{bucket}/imputed/ukb_mfi_v3.ht' def get_sample...
39.471264
107
0.650844
794fe08c919b830bfb4dda4da5bc1421b03d15e5
12,844
py
Python
pyEPR/calcs/back_box_numeric.py
mkxia57/pyEPR
fab8c9434888982dcf4a8cec1d348200dbb02d11
[ "BSD-3-Clause" ]
109
2017-09-19T18:53:45.000Z
2022-03-07T17:39:09.000Z
pyEPR/calcs/back_box_numeric.py
mkxia57/pyEPR
fab8c9434888982dcf4a8cec1d348200dbb02d11
[ "BSD-3-Clause" ]
78
2017-09-21T16:08:55.000Z
2022-03-31T12:42:52.000Z
pyEPR/calcs/back_box_numeric.py
mkxia57/pyEPR
fab8c9434888982dcf4a8cec1d348200dbb02d11
[ "BSD-3-Clause" ]
139
2017-09-18T19:01:20.000Z
2022-03-22T21:07:59.000Z
''' Numerical diagonalization of quantum Hamiltonian and parameter extraction. @author: Phil Reinhold, Zlatko Minev, Lysander Christakis Original code on black_box_hamiltonian and make_dispersive functions by Phil Reinhold Revisions and updates by Zlatko Minev & Lysander Christakis ''' # pylint: disable=invalid-name ...
42.813333
536
0.616007
794fe093bbb31b83d8b9e55012c0df569dfdd145
43,417
py
Python
pubsub/tests/unit/test__http.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
pubsub/tests/unit/test__http.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
pubsub/tests/unit/test__http.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.235849
79
0.638621
794fe19dcec28ad6fb64a0917e1c07f83b92917e
3,959
py
Python
dask-gateway-server/dask_gateway_server/backends/jobqueue/slurm.py
AndreaGiardini/dask-gateway
c2583548df19359d24031e1dd9161c616d3bed50
[ "BSD-3-Clause" ]
69
2019-09-19T06:19:48.000Z
2022-02-04T23:01:15.000Z
dask-gateway-server/dask_gateway_server/backends/jobqueue/slurm.py
AndreaGiardini/dask-gateway
c2583548df19359d24031e1dd9161c616d3bed50
[ "BSD-3-Clause" ]
318
2019-09-18T18:42:57.000Z
2022-03-31T11:05:38.000Z
dask-gateway-server/dask_gateway_server/backends/jobqueue/slurm.py
AndreaGiardini/dask-gateway
c2583548df19359d24031e1dd9161c616d3bed50
[ "BSD-3-Clause" ]
61
2019-09-18T18:09:56.000Z
2022-03-25T20:35:11.000Z
import math import os import shutil from traitlets import Unicode, default from .base import JobQueueBackend, JobQueueClusterConfig from ...traitlets import Type __all__ = ("SlurmBackend", "SlurmClusterConfig") def slurm_format_memory(n): """Format memory in bytes for use with slurm.""" if n >= 10 * (1024...
32.45082
88
0.576156
794fe2ea8816533628ae9764137dfbcb380f78d9
30,200
py
Python
applications/StructuralMechanicsApplication/python_scripts/structural_mechanics_solver.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
2
2020-04-30T19:13:08.000Z
2021-04-14T19:40:47.000Z
applications/StructuralMechanicsApplication/python_scripts/structural_mechanics_solver.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
1
2020-04-30T19:19:09.000Z
2020-05-02T14:22:36.000Z
applications/StructuralMechanicsApplication/python_scripts/structural_mechanics_solver.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
1
2020-06-12T08:51:24.000Z
2020-06-12T08:51:24.000Z
from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # Importing the Kratos Library import KratosMultiphysics # Import applications import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication # Importin...
58.413926
145
0.688477
794fe387714e74df97b7b6adb6a5fa190de66e94
2,601
py
Python
users/models.py
benhoyt/pythondotorg
954865291a8e4a4c4a4adb269b505d6dbab0eb5f
[ "Apache-2.0" ]
null
null
null
users/models.py
benhoyt/pythondotorg
954865291a8e4a4c4a4adb269b505d6dbab0eb5f
[ "Apache-2.0" ]
null
null
null
users/models.py
benhoyt/pythondotorg
954865291a8e4a4c4a4adb269b505d6dbab0eb5f
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib.auth.models import AbstractUser from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from markupfield.fields import MarkupField from .managers import UserManager DEFAULT_MARKUP_TYPE = getattr(settings, 'DEFAUL...
37.695652
121
0.720492
794fe39613cff7104c15ae5188a98b37eacb4626
3,334
py
Python
Calculate-distance/distance_proj/settings.py
Aayush-hub/Amazing-Python-Scripts
5488454b16fa969d32ad7a56618e62e64291c052
[ "MIT" ]
3
2021-01-14T13:54:22.000Z
2021-11-15T11:26:51.000Z
Calculate-distance/distance_proj/settings.py
Aayush-hub/Amazing-Python-Scripts
5488454b16fa969d32ad7a56618e62e64291c052
[ "MIT" ]
1
2021-02-24T02:06:21.000Z
2021-02-24T02:06:21.000Z
Calculate-distance/distance_proj/settings.py
Aayush-hub/Amazing-Python-Scripts
5488454b16fa969d32ad7a56618e62e64291c052
[ "MIT" ]
null
null
null
""" Django settings for distance_proj project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from p...
26.460317
91
0.70246
794fe3a29826c70ad02ae0479da3dd8af9e14fba
499
py
Python
alunos/views/matriculas.py
scpaes/django-REST-framework-project
9f2eaf82d5eb742434a16cd69d84983c5f1966d9
[ "MIT" ]
null
null
null
alunos/views/matriculas.py
scpaes/django-REST-framework-project
9f2eaf82d5eb742434a16cd69d84983c5f1966d9
[ "MIT" ]
null
null
null
alunos/views/matriculas.py
scpaes/django-REST-framework-project
9f2eaf82d5eb742434a16cd69d84983c5f1966d9
[ "MIT" ]
null
null
null
from alunos.serializer import MatriculaSerializer from rest_framework import viewsets from alunos.models import Matricula from rest_framework.authentication import BasicAuthentication from rest_framework.permissions import IsAuthenticated class MatriculaViewSet(viewsets.ModelViewSet): """Endpoint de matriculas""...
31.1875
61
0.825651
794fe461e3c04b260d93b432513a8ecb087f32ce
22,269
py
Python
doc/integrations/pytorch/parlai/agents/transformer/polyencoder.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2020-09-27T05:00:06.000Z
2020-09-27T05:00:06.000Z
doc/integrations/pytorch/parlai/agents/transformer/polyencoder.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-08-04T11:17:39.000Z
2021-08-04T11:17:39.000Z
doc/integrations/pytorch/parlai/agents/transformer/polyencoder.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-05-03T13:27:14.000Z
2021-05-03T13:27:14.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # hack to make sure -m transformer/generator works as expected """ Poly-encoder Agent. """ from parlai.core.pa...
37.680203
111
0.586915
794fe58c0313ee36dd73a228e17c9ec7c2ecf884
2,244
py
Python
accounts/admin.py
mtuktarov/mtuktarov.com
82a3b70da1f81e49f5df0d4c98fd213372c3a7bc
[ "MIT" ]
null
null
null
accounts/admin.py
mtuktarov/mtuktarov.com
82a3b70da1f81e49f5df0d4c98fd213372c3a7bc
[ "MIT" ]
null
null
null
accounts/admin.py
mtuktarov/mtuktarov.com
82a3b70da1f81e49f5df0d4c98fd213372c3a7bc
[ "MIT" ]
null
null
null
from django import forms from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.contrib.auth.forms import ReadOnlyPasswordHashField # Register your models here. from .models import BlogUser from django.utils.tra...
35.0625
97
0.680036
794fe5b636d673855828a5eec038bb101309e95d
11,213
py
Python
tensorflow_probability/python/mcmc/transformed_kernel_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
1
2020-07-12T22:40:42.000Z
2020-07-12T22:40:42.000Z
tensorflow_probability/python/mcmc/transformed_kernel_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
2
2019-08-01T18:31:41.000Z
2019-08-01T19:42:15.000Z
tensorflow_probability/python/mcmc/transformed_kernel_test.py
nxdao2000/probability
33d2bc1cb0e7b6284579ea7f3692b9d056e0d700
[ "Apache-2.0" ]
1
2020-04-17T18:01:47.000Z
2020-04-17T18:01:47.000Z
# Copyright 2018 The TensorFlow Probability 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 o...
36.288026
95
0.675198
794fe73d96b0a0802c06268dd28084b7e47c45cb
881
py
Python
scripts/make_Txt.py
COEN-390/YOLOv5-Lite
06a53f5d001c5d37729f55f47cbd46cc8eb63f84
[ "MIT" ]
null
null
null
scripts/make_Txt.py
COEN-390/YOLOv5-Lite
06a53f5d001c5d37729f55f47cbd46cc8eb63f84
[ "MIT" ]
null
null
null
scripts/make_Txt.py
COEN-390/YOLOv5-Lite
06a53f5d001c5d37729f55f47cbd46cc8eb63f84
[ "MIT" ]
1
2021-09-03T01:16:31.000Z
2021-09-03T01:16:31.000Z
import os import random trainval_percent = 0.1 train_percent = 0.9 xmlfilepath = 'data/Person1K/Annotations' txtsavepath = 'data/Person1K/ImageSets' total_xml = os.listdir(xmlfilepath) num = len(total_xml) list = range(num) tv = int(num * trainval_percent) tr = int(tv * train_percent) trainval = random.sample(list, t...
24.472222
61
0.673099
794fe88f64243e31adb84e0f4495980c23c96f9d
1,927
py
Python
backend/api/migrations/0010_advertsettings_mimeuser_timeline.py
Kovszasz/MYG
fc932bef8b67d568ac60bba5604009550570fca9
[ "MIT" ]
null
null
null
backend/api/migrations/0010_advertsettings_mimeuser_timeline.py
Kovszasz/MYG
fc932bef8b67d568ac60bba5604009550570fca9
[ "MIT" ]
7
2020-06-06T00:58:09.000Z
2022-02-26T20:03:02.000Z
backend/api/migrations/0010_advertsettings_mimeuser_timeline.py
Kovszasz/MYG
fc932bef8b67d568ac60bba5604009550570fca9
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-16 18:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('auth', '0011_update_prox...
41.891304
171
0.60301
794fe8a5884c417938fb16e54f045b0d3636db61
41,494
py
Python
core/domain/suggestion_registry.py
shavavo/oppia
db78ca81804c3d05334d74efd2c5e55f86ef8545
[ "Apache-2.0" ]
null
null
null
core/domain/suggestion_registry.py
shavavo/oppia
db78ca81804c3d05334d74efd2c5e55f86ef8545
[ "Apache-2.0" ]
1
2020-03-02T21:05:42.000Z
2020-03-03T07:09:51.000Z
core/domain/suggestion_registry.py
shavavo/oppia
db78ca81804c3d05334d74efd2c5e55f86ef8545
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia 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 ...
41.577154
80
0.645973
794fe8a5c3c8d0da7b3e12f368b37f164db1f50e
2,205
py
Python
Day49/main.py
SSRout/100-days-of-code
7aafa7789a57bf701b60043fa2bf8fb61b64bfb5
[ "MIT" ]
null
null
null
Day49/main.py
SSRout/100-days-of-code
7aafa7789a57bf701b60043fa2bf8fb61b64bfb5
[ "MIT" ]
null
null
null
Day49/main.py
SSRout/100-days-of-code
7aafa7789a57bf701b60043fa2bf8fb61b64bfb5
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import NoSuchElementException import time ACCOUNT_EMAIL = YOUR LOGIN EMAIL ACCOUNT_PASSWORD = YOUR LOGIN PASSWORD PHONE = YOUR PHONE NUMBER chrome_driver_path = YOUR CHROME DRIVER PATH driver = webdriver.Chr...
33.409091
192
0.724717
794fea70c868b926769b8f3adb50ca1c6e38f9e2
4,146
py
Python
Connectors/WordPress/webservice.py
tjgillies/Locker
420f80f1ce6022a8502c01c36b1dafb8faf438ba
[ "BSD-3-Clause" ]
1
2015-11-05T11:33:55.000Z
2015-11-05T11:33:55.000Z
Connectors/WordPress/webservice.py
tjgillies/Locker
420f80f1ce6022a8502c01c36b1dafb8faf438ba
[ "BSD-3-Clause" ]
null
null
null
Connectors/WordPress/webservice.py
tjgillies/Locker
420f80f1ce6022a8502c01c36b1dafb8faf438ba
[ "BSD-3-Clause" ]
null
null
null
import sys import json import logging from flask import Flask, render_template, request, redirect, url_for sys.path.append("../../Common/python") import lockerfs import client import util import xmlrpclib import os app = Flask(__name__) @app.route("/setupAuth") def setupAuth(): return render_template("setupAuth...
30.485294
148
0.638929
794feb5bad6a6e38b8e8a889fc828d7f46c9ac43
1,702
py
Python
nova/api/openstack/compute/views/addresses.py
russellb/nova
99c2e02b44a1012c8e26fc7658dc40ec4620a1ee
[ "Apache-2.0" ]
1
2015-07-15T08:51:16.000Z
2015-07-15T08:51:16.000Z
nova/api/openstack/compute/views/addresses.py
russellb/nova
99c2e02b44a1012c8e26fc7658dc40ec4620a1ee
[ "Apache-2.0" ]
1
2020-07-24T14:14:13.000Z
2020-07-24T14:14:13.000Z
nova/api/openstack/compute/views/addresses.py
russellb/nova
99c2e02b44a1012c8e26fc7658dc40ec4620a1ee
[ "Apache-2.0" ]
2
2019-06-12T00:52:15.000Z
2020-07-24T10:35:29.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010-2011 OpenStack LLC. # 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...
32.113208
78
0.673325
794fec61d2e6c7bcd2e3259336a3fed2b499024c
395
py
Python
memmories/asgi.py
EidAbdullahi/gallery-application
b1a0952b3d111408c33d7ec279f5d1d5b35638c6
[ "Info-ZIP" ]
null
null
null
memmories/asgi.py
EidAbdullahi/gallery-application
b1a0952b3d111408c33d7ec279f5d1d5b35638c6
[ "Info-ZIP" ]
null
null
null
memmories/asgi.py
EidAbdullahi/gallery-application
b1a0952b3d111408c33d7ec279f5d1d5b35638c6
[ "Info-ZIP" ]
null
null
null
""" ASGI config for memmories project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
794feda5e6eb8570322380edee0e8793a241634d
5,274
py
Python
cride/users/migrations/0001_initial.py
MrRomo/cride
9ceef8169b6ad49fd3063758898b03abcb47f682
[ "MIT" ]
null
null
null
cride/users/migrations/0001_initial.py
MrRomo/cride
9ceef8169b6ad49fd3063758898b03abcb47f682
[ "MIT" ]
null
null
null
cride/users/migrations/0001_initial.py
MrRomo/cride
9ceef8169b6ad49fd3063758898b03abcb47f682
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-11-24 00:39 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migr...
73.25
329
0.658324
794fee25dc427259929694990bd4731534be77d3
2,169
py
Python
setup.py
aleszoulek/fabric
586518f89c9341fbbba6a29d62bd052f2edcb319
[ "BSD-2-Clause" ]
1
2022-02-18T05:31:07.000Z
2022-02-18T05:31:07.000Z
setup.py
aleszoulek/fabric
586518f89c9341fbbba6a29d62bd052f2edcb319
[ "BSD-2-Clause" ]
null
null
null
setup.py
aleszoulek/fabric
586518f89c9341fbbba6a29d62bd052f2edcb319
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys from setuptools import setup, find_packages from fabric.version import get_version readme = open('README').read() long_description = """ To find out what's new in this version of Fabric, please see `the changelog <http://docs.fabfile.org/changes/%s.html>`_. ---- %s ---- For mo...
31.897059
89
0.61964
794fee9830aaeacb45de64c0f4e2bc6d205b5345
750
py
Python
flask/code/P9.FlaskMarshalling/app.py
santiagovj22/python-training
3fbcc9e5df22432c6e75d80c90d1c235652354df
[ "MIT" ]
null
null
null
flask/code/P9.FlaskMarshalling/app.py
santiagovj22/python-training
3fbcc9e5df22432c6e75d80c90d1c235652354df
[ "MIT" ]
null
null
null
flask/code/P9.FlaskMarshalling/app.py
santiagovj22/python-training
3fbcc9e5df22432c6e75d80c90d1c235652354df
[ "MIT" ]
null
null
null
#Example 9 import logging from flask import Flask from flask_restx import Api from controllers.games_controller import init_games_controller def get_app(name, configuration): app = Flask(name) #Configure logger #LOG_FILENAME = './logs/app.log' logging.basicConfig(level=logging.INFO, format='%(asctim...
25
128
0.714667
794fef1245b0fa8f8e1d34ec8c93254cbbe02367
22,867
py
Python
miditok/cp_word.py
ilya16/MidiTok
03d80fadbdf5bbe7802d97f7424638cff96e1a2b
[ "MIT" ]
null
null
null
miditok/cp_word.py
ilya16/MidiTok
03d80fadbdf5bbe7802d97f7424638cff96e1a2b
[ "MIT" ]
null
null
null
miditok/cp_word.py
ilya16/MidiTok
03d80fadbdf5bbe7802d97f7424638cff96e1a2b
[ "MIT" ]
null
null
null
""" MIDI encoding method, similar to Compound Word https://arxiv.org/abs/2101.02402 """ from typing import List, Tuple, Dict, Optional, Union import numpy as np from miditoolkit import Instrument, Note, TempoChange from .midi_tokenizer_base import MIDITokenizer, Vocabulary, Event, detect_chords from .constants impo...
51.61851
120
0.599729
794fef505fbd8acc556f458e74026b744391c9bc
10,506
py
Python
GUI.py
Archie-Dev-main/AutoClicker
cb3b496abfba9a98737d615f0f761899d50f88f4
[ "MIT" ]
null
null
null
GUI.py
Archie-Dev-main/AutoClicker
cb3b496abfba9a98737d615f0f761899d50f88f4
[ "MIT" ]
null
null
null
GUI.py
Archie-Dev-main/AutoClicker
cb3b496abfba9a98737d615f0f761899d50f88f4
[ "MIT" ]
null
null
null
# Uses the installer class to check for and install missing modules import installer install = installer.Installer() install.install_required_modules() import tkinter as tk import mouse import time from sys import maxsize import ExitSplash as ES # The main housing for both the GUI and the entire program class GUI(tk...
47.538462
241
0.673996
794fefbf21ced9a4d0f8221df4f08d6118034226
54
py
Python
main.py
RafaelFreita/hcpa-image-processing
480858eb7a486bce74dc8b74cfd04ebcf5059b83
[ "MIT" ]
null
null
null
main.py
RafaelFreita/hcpa-image-processing
480858eb7a486bce74dc8b74cfd04ebcf5059b83
[ "MIT" ]
null
null
null
main.py
RafaelFreita/hcpa-image-processing
480858eb7a486bce74dc8b74cfd04ebcf5059b83
[ "MIT" ]
null
null
null
from hcpa_biomed_processing import execute execute()
13.5
42
0.851852
794fefffeccf062660906113be0cd3acf27e7981
6,685
py
Python
homeassistant/components/media_player/samsungtv.py
loraxx753/skynet
86a1b0a6c6a3f81bc92d4f61de6a9a6b9f964543
[ "Apache-2.0" ]
null
null
null
homeassistant/components/media_player/samsungtv.py
loraxx753/skynet
86a1b0a6c6a3f81bc92d4f61de6a9a6b9f964543
[ "Apache-2.0" ]
null
null
null
homeassistant/components/media_player/samsungtv.py
loraxx753/skynet
86a1b0a6c6a3f81bc92d4f61de6a9a6b9f964543
[ "Apache-2.0" ]
1
2019-08-04T19:25:10.000Z
2019-08-04T19:25:10.000Z
""" Support for interface with an Samsung TV. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.samsungtv/ """ import logging import socket import voluptuous as vol from homeassistant.components.media_player import ( SUPPORT_NEXT_TRACK, S...
31.533019
77
0.638893
794ff0e78e65da514e612b51f968f8d4471422a9
10,899
py
Python
sd/sd_plots.py
shibaji7/AMGeO-SD
f7380271affa191f0444289e4663bcd54f36cc9b
[ "MIT" ]
1
2020-12-02T20:13:18.000Z
2020-12-02T20:13:18.000Z
sd/sd_plots.py
shibaji7/AMGeO-SD
f7380271affa191f0444289e4663bcd54f36cc9b
[ "MIT" ]
null
null
null
sd/sd_plots.py
shibaji7/AMGeO-SD
f7380271affa191f0444289e4663bcd54f36cc9b
[ "MIT" ]
3
2020-07-08T17:03:38.000Z
2020-07-08T19:03:40.000Z
import os import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import matplotlib.dates as mdates from matplotlib.dates import DateFormatter, num2date from matplotlib import patches import matplotlib.patches as mpatches import random import pytz import datetime as dt import pandas as pd import u...
48.874439
129
0.556473
794ff10ea4136d67db70e1e70fe82e6e415f34fe
934
py
Python
thermosteam/utils/__init__.py
yoelcortes/thermotree
7d7c045ed7324ff7fd69188f3176207be08d7070
[ "MIT" ]
2
2020-01-10T14:23:08.000Z
2020-02-21T20:36:49.000Z
thermosteam/utils/__init__.py
yoelcortes/thermotree
7d7c045ed7324ff7fd69188f3176207be08d7070
[ "MIT" ]
3
2019-12-09T08:10:41.000Z
2019-12-09T08:40:52.000Z
thermosteam/utils/__init__.py
yoelcortes/thermotree
7d7c045ed7324ff7fd69188f3176207be08d7070
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020-2021, Yoel Cortes-Pena <yoelcortes@gmail.com> # # This module is under the UIUC open-source license. See # github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt # for license details...
25.944444
75
0.691649
794ff33c2bc40452dcb98d0453cfb34711510d76
2,736
py
Python
pyal3dtf/plotting.py
petebachant/NACA0020-3D-OpenFOAM
ddb7105d534f859bb19ff1e0bb9be39c3ae7943f
[ "MIT" ]
1
2021-08-16T03:32:48.000Z
2021-08-16T03:32:48.000Z
pyal3dtf/plotting.py
petebachant/actuatorLine-3D-turbinesFoam
ddb7105d534f859bb19ff1e0bb9be39c3ae7943f
[ "MIT" ]
2
2015-10-17T01:01:53.000Z
2015-10-17T20:43:29.000Z
pyal3dtf/plotting.py
petebachant/NACA0020-3D-OpenFOAM
ddb7105d534f859bb19ff1e0bb9be39c3ae7943f
[ "MIT" ]
null
null
null
""" Plotting functions. """ import numpy as np import matplotlib.pyplot as plt from . import processing as pr import os def plot_spanwise_pressure(ax=None, simtype="BR", save=False): """Plot spanwise pressure, normalized and inverted.""" df = pr.load_sampled_set("spanwise", "p", simtype=simtype) df["p_no...
29.73913
68
0.625731
794ff6bc1e17b53cea6c1471bd86225b63a69b94
2,157
py
Python
orm/modelmeta.py
theikkila/lopputili
25842e54a272f12ae6bdafeb98c676da396cddf2
[ "MIT" ]
null
null
null
orm/modelmeta.py
theikkila/lopputili
25842e54a272f12ae6bdafeb98c676da396cddf2
[ "MIT" ]
null
null
null
orm/modelmeta.py
theikkila/lopputili
25842e54a272f12ae6bdafeb98c676da396cddf2
[ "MIT" ]
null
null
null
from . import fields from . import descriptors import weakref import copy ''' This is the most magical part of the orm. Metaclass constructs other classes. In practice converts Models from nice declarative format into working ones. ''' class ModelMeta(type): def __new__(cls, name, based, attributes): # Always add ...
35.360656
100
0.749189
794ff6c96f42878f3980d36575e533c3821fed9b
3,335
py
Python
env/lib/python3.5/site-packages/ipykernel/tests/test_jsonutil.py
riordan/who-owns-what
62538fdb6d40ed1e0cdafb0df388be95fb388907
[ "Apache-2.0" ]
4
2018-01-19T17:15:06.000Z
2018-01-24T00:06:42.000Z
ipykernel/tests/test_jsonutil.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
10
2017-07-13T00:24:03.000Z
2017-07-17T07:39:03.000Z
ipykernel/tests/test_jsonutil.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
7
2017-08-01T04:02:07.000Z
2018-10-06T21:07:20.000Z
# coding: utf-8 """Test suite for our JSON utilities.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import json import sys if sys.version_info < (3,): from base64 import decodestring as decodebytes else: from base64 import decodebytes from datetime i...
29.254386
85
0.592504
794ff983897603df7d758424f71cf9f82fdac15e
428
py
Python
config/urls.py
Mohammad-Abdul-Ghafour/DjangoX-project
f84e0ee9b8092ab2384106248f8943f99a614c63
[ "MIT" ]
null
null
null
config/urls.py
Mohammad-Abdul-Ghafour/DjangoX-project
f84e0ee9b8092ab2384106248f8943f99a614c63
[ "MIT" ]
null
null
null
config/urls.py
Mohammad-Abdul-Ghafour/DjangoX-project
f84e0ee9b8092ab2384106248f8943f99a614c63
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('accounts/', include('allauth.urls')), path('page/', include('pages.urls')), path('', include('emplyees.urls')), ] if settings.DEBUG: import...
25.176471
56
0.67757
794ffaa8238503940fa20d88ac77a32dc0791793
6,904
py
Python
dep/scintilla/scintilla-3.21.0/scripts/LexGen.py
Matt-Soft/gitahead
4be5639202b1354cbe244cd37db90efabb5106b8
[ "MIT" ]
1,626
2018-12-15T12:07:00.000Z
2022-03-31T15:08:04.000Z
dep/scintilla/scintilla-3.21.0/scripts/LexGen.py
Matt-Soft/gitahead
4be5639202b1354cbe244cd37db90efabb5106b8
[ "MIT" ]
541
2018-12-10T21:33:40.000Z
2022-03-25T02:25:02.000Z
dep/scintilla/scintilla-3.21.0/scripts/LexGen.py
Matt-Soft/gitahead
4be5639202b1354cbe244cd37db90efabb5106b8
[ "MIT" ]
270
2018-12-27T21:37:26.000Z
2022-03-31T23:00:06.000Z
#!/usr/bin/env python # LexGen.py - implemented 2002 by Neil Hodgson neilh@scintilla.org # Released to the public domain. # Regenerate the Scintilla source files that list all the lexers. # Should be run whenever a new lexer is added or removed. # Requires Python 2.5 or later # Files are regenerated in place with temp...
44.541935
249
0.671495
794ffd81bf08d9b067f88d06e2115a9372f9cba9
3,611
py
Python
src/test_onnx.py
kkourt/cmnnc
965e8150ab50c19237dbf4afd2e62bca1f5d53c8
[ "BSD-3-Clause" ]
8
2020-04-08T04:27:22.000Z
2022-01-02T08:21:07.000Z
src/test_onnx.py
kkourt/cmnnc
965e8150ab50c19237dbf4afd2e62bca1f5d53c8
[ "BSD-3-Clause" ]
null
null
null
src/test_onnx.py
kkourt/cmnnc
965e8150ab50c19237dbf4afd2e62bca1f5d53c8
[ "BSD-3-Clause" ]
5
2020-02-05T11:59:38.000Z
2021-12-07T07:14:14.000Z
# Copyright (c) 2019-2020, IBM Research. # # Author: Kornilios Kourtis <kou@zurich.ibm.com> # # vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: import typing import dataclasses as dc from pprint import pprint import numpy as np import onnxruntime as onnxrt import onnx import conv import pipeline as pl from ...
27.150376
74
0.609526
794ffe7c25991b4b9d159eff214d7f8c84fbc886
72
py
Python
modbus_tcp_server/data_source/__init__.py
smok-serwis/modbus-tcp-server
558eca908b6762280a74b16d78d56dc047a9dace
[ "MIT" ]
null
null
null
modbus_tcp_server/data_source/__init__.py
smok-serwis/modbus-tcp-server
558eca908b6762280a74b16d78d56dc047a9dace
[ "MIT" ]
null
null
null
modbus_tcp_server/data_source/__init__.py
smok-serwis/modbus-tcp-server
558eca908b6762280a74b16d78d56dc047a9dace
[ "MIT" ]
null
null
null
from .base import BaseDataSource from .testing import TestingDataSource
24
38
0.861111
794ffedfb7b99f73279d7608665beabb55738339
5,386
py
Python
templates/ecs.py
skyer9/CloudFormationForPython
6b5e1de4336a0ba9b0899a3cd7c83e08d24b078e
[ "MIT" ]
1
2019-02-18T06:45:36.000Z
2019-02-18T06:45:36.000Z
templates/ecs.py
skyer9/CloudFormationForPython
6b5e1de4336a0ba9b0899a3cd7c83e08d24b078e
[ "MIT" ]
null
null
null
templates/ecs.py
skyer9/CloudFormationForPython
6b5e1de4336a0ba9b0899a3cd7c83e08d24b078e
[ "MIT" ]
1
2019-02-18T06:45:41.000Z
2019-02-18T06:45:41.000Z
from troposphere import ( AWS_ACCOUNT_ID, AWS_REGION, Equals, GetAtt, iam, Join, logs, Not, Output, Ref, Template, ImportValue, Sub) from troposphere.ecs import ( ContainerDefinition, DeploymentConfiguration, Environment, LoadBalancer, LogConfiguratio...
27.20202
96
0.559599
794fff4b71d33e1c96ffa24f861e9070e1f0c40a
3,714
py
Python
changes/vcs/git.py
alex/changes
69a17b4c639e7082a75d037384ccb68ead3a0b4b
[ "Apache-2.0" ]
1
2015-11-08T13:00:44.000Z
2015-11-08T13:00:44.000Z
changes/vcs/git.py
alex/changes
69a17b4c639e7082a75d037384ccb68ead3a0b4b
[ "Apache-2.0" ]
null
null
null
changes/vcs/git.py
alex/changes
69a17b4c639e7082a75d037384ccb68ead3a0b4b
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function from datetime import datetime from urlparse import urlparse from changes.utils.cache import memoize from .base import Vcs, RevisionResult, BufferParser, CommandError LOG_FORMAT = '%H\x01%an <%ae>\x01%at\x01%cn <%ce>\x01%ct\x01%P\x01%B\x02' ORIGIN_PRE...
31.210084
84
0.562466
794fff5d828446d85cceda6a506d45b8c0eec90c
1,920
py
Python
utils.py
Team-Audio/audio_overlay_tool
92e7a1b222cf16227448f03230d9aca61ae44182
[ "MIT" ]
null
null
null
utils.py
Team-Audio/audio_overlay_tool
92e7a1b222cf16227448f03230d9aca61ae44182
[ "MIT" ]
null
null
null
utils.py
Team-Audio/audio_overlay_tool
92e7a1b222cf16227448f03230d9aca61ae44182
[ "MIT" ]
null
null
null
import asyncio import os from typing import AnyStr, Dict from pydub import AudioSegment from pathlib import Path def is_file_in_dir(file: AnyStr, directory: AnyStr) -> bool: """ same as os.path.isfile but with a cwd :param file: the file you want to check :param directory: the directory...
23.414634
82
0.616667
794fff6c8e2fabdda895cec4c280526cfa2d2856
3,514
py
Python
authapp/authapp/settings.py
janakhpon/django-auth
4e19f68b7b9a19a7fc2c0649f0938e0926cced0a
[ "MIT" ]
null
null
null
authapp/authapp/settings.py
janakhpon/django-auth
4e19f68b7b9a19a7fc2c0649f0938e0926cced0a
[ "MIT" ]
null
null
null
authapp/authapp/settings.py
janakhpon/django-auth
4e19f68b7b9a19a7fc2c0649f0938e0926cced0a
[ "MIT" ]
null
null
null
""" Django settings for authapp project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
25.649635
91
0.701195
794fffb730b0175f439472d21994d23d050afe57
6,121
py
Python
research/cv/tsm/src/utils/non_local.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/tsm/src/utils/non_local.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/tsm/src/utils/non_local.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.25625
104
0.576867
79500021c2970181de70389666a3ee05a3cf07ca
299
py
Python
3. Data types and operators/complex_numbers.py
CalilQ/ComDig
13c34eaddc909c70a00820e3a15e1308139cb134
[ "MIT" ]
null
null
null
3. Data types and operators/complex_numbers.py
CalilQ/ComDig
13c34eaddc909c70a00820e3a15e1308139cb134
[ "MIT" ]
null
null
null
3. Data types and operators/complex_numbers.py
CalilQ/ComDig
13c34eaddc909c70a00820e3a15e1308139cb134
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 19 16:45:07 2017 @author: Calil """ # Funcoes para numeros complexos from cmath import sqrt # Declarar variaveis a = 4 b = -4 c = 1 + 2j d = 3 - 3j # Imprimir na tela print(sqrt(a)) print(sqrt(b)) print(c + d) print(a*c) print(d.real) print(d.imag)
13
35
0.638796
795000af495cf9094a09aa0c7df2156df11f8319
6,088
py
Python
mycroft/metrics/__init__.py
assistent-cat/mycroft-core
6f8bae6ba136c9dd66ca47aaadd75e214d006190
[ "Apache-2.0" ]
2
2021-04-05T22:28:37.000Z
2021-06-16T00:24:41.000Z
mycroft/metrics/__init__.py
assistent-cat/mycroft-core
6f8bae6ba136c9dd66ca47aaadd75e214d006190
[ "Apache-2.0" ]
4
2021-06-08T22:01:56.000Z
2022-03-12T00:41:15.000Z
mycroft/metrics/__init__.py
assistent-cat/mycroft-core
6f8bae6ba136c9dd66ca47aaadd75e214d006190
[ "Apache-2.0" ]
2
2020-09-28T01:38:34.000Z
2020-12-03T03:14:32.000Z
# Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
28.853081
77
0.600197
795002b748adfab2457ef4a06efc49bada9cbf79
3,294
py
Python
data/consumer_expenditures/raw/convert_CE_data.py
srnnkls/getml-examples
45d179928ce6d7dccb2848b37c709b1dae0081e0
[ "MIT" ]
null
null
null
data/consumer_expenditures/raw/convert_CE_data.py
srnnkls/getml-examples
45d179928ce6d7dccb2848b37c709b1dae0081e0
[ "MIT" ]
null
null
null
data/consumer_expenditures/raw/convert_CE_data.py
srnnkls/getml-examples
45d179928ce6d7dccb2848b37c709b1dae0081e0
[ "MIT" ]
null
null
null
## This script imports the CE data and formats it in such a way the ## user can handle it way more easily in the getting started guide. import datetime import os import numpy as np import pandas as pd ## ------------------------------------------------------------------- ## Setup # The folder that contains all requ...
37.862069
103
0.549787
795003e5f15f8f992f531ccda78dc10090e9e051
8,415
py
Python
docs/conf.py
novafloss/django-i18nurl
0c7d5505154dd8f3c1c78e64d6c3dbc33a63fa8b
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
novafloss/django-i18nurl
0c7d5505154dd8f3c1c78e64d6c3dbc33a63fa8b
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
novafloss/django-i18nurl
0c7d5505154dd8f3c1c78e64d6c3dbc33a63fa8b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # django-i18nurl documentation build configuration file, created by # sphinx-quickstart on Mon Aug 27 11:37:23 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. ...
31.754717
80
0.712894
795003eec7257fcd8190b74ce5ba4d88f2aab131
70,897
py
Python
test/integration/component/maint/testpath_disablestoragepool.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,131
2015-01-08T18:59:06.000Z
2022-03-29T11:31:10.000Z
test/integration/component/maint/testpath_disablestoragepool.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
5,908
2015-01-13T15:28:37.000Z
2022-03-31T20:31:07.000Z
test/integration/component/maint/testpath_disablestoragepool.py
ycyun/ablestack-cloud
b7bd36a043e2697d05303246373988aa033c9229
[ "Apache-2.0" ]
1,083
2015-01-05T01:16:52.000Z
2022-03-31T12:14:10.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
43.682686
127
0.555778
795004fca0e8add873abd4312b26549b1dcabfdd
15,471
py
Python
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/protocols.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/protocols.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/protocols.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
# Copyright 1997 - 2018 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, p...
34.45657
152
0.753927
795006074c393a90f382bb58a702e55db96ff292
17,303
py
Python
experiments/trainer/hamiltonian_dynamics.py
felipeescallon/equivariant-MLP
1542fcbb747292ae1c529d551595d919087c617d
[ "MIT" ]
1
2021-07-06T21:07:57.000Z
2021-07-06T21:07:57.000Z
experiments/trainer/hamiltonian_dynamics.py
felipeescallon/equivariant-MLP
1542fcbb747292ae1c529d551595d919087c617d
[ "MIT" ]
null
null
null
experiments/trainer/hamiltonian_dynamics.py
felipeescallon/equivariant-MLP
1542fcbb747292ae1c529d551595d919087c617d
[ "MIT" ]
null
null
null
import jax.numpy as jnp from jax import grad, jit, vmap, jacfwd, jvp, vjp from jax import random import numpy as np import jax.numpy as jnp from jax.experimental.ode import odeint from torch.utils.data import Dataset from emlp.groups import SO2eR3,O2eR3,DkeR3,Trivial from emlp.reps import T,Scalar from oil.utils.utils ...
37.862144
139
0.613709
795006762868c728050c23e208f30b26853853bb
600
py
Python
concolic/concolic/__init__.py
msymt/Laelaps
a9ab61eda5ba0e8d15fe1a5ce925087784743c36
[ "MIT" ]
16
2020-12-14T21:31:25.000Z
2022-01-26T03:21:40.000Z
concolic/concolic/__init__.py
msymt/Laelaps
a9ab61eda5ba0e8d15fe1a5ce925087784743c36
[ "MIT" ]
3
2021-07-27T19:36:05.000Z
2021-12-31T02:20:53.000Z
concolic/concolic/__init__.py
msymt/Laelaps
a9ab61eda5ba0e8d15fe1a5ce925087784743c36
[ "MIT" ]
8
2020-12-30T13:55:20.000Z
2022-01-17T03:20:36.000Z
import logging import sys import os import shutil LOGDIR = 'logfiles' if os.path.exists(LOGDIR): shutil.rmtree(LOGDIR) os.makedirs(LOGDIR) logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # propagate to Angr for STDIO # ch = logging.StreamHandler(sys.stdout) # logger.addHandler(ch) # we handle...
19.354839
85
0.745
7950067b6df40b780655b33074d50ccc952d0ea7
6,772
py
Python
avatar/relgan/utils/metrics/DocEmbSim.py
Julian-Theis/AVATAR
24fcd6eaa26f413be528a160d865d5d7e49a780b
[ "MIT" ]
7
2020-12-22T12:09:14.000Z
2022-03-29T12:50:35.000Z
avatar/relgan/utils/metrics/DocEmbSim.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
10
2020-11-13T17:45:59.000Z
2022-02-10T00:50:38.000Z
avatar/relgan/utils/metrics/DocEmbSim.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
2
2020-03-26T22:27:27.000Z
2020-07-07T22:36:41.000Z
import collections import math import random import nltk import numpy as np import tensorflow as tf from scipy.spatial.distance import cosine from avatar.relgan.utils.metrics.Metrics import Metrics class DocEmbSim(Metrics): def __init__(self, oracle_file=None, generator_file=None, num_vocabulary=None, name='Doc...
41.802469
118
0.612965
7950078596d2c065a217c94205bfc57e7ee8e2e1
10,310
py
Python
tfs/collection.py
st-walker/tfs
7a229f4fecbf04d544c5116d79a281e4365ccd1d
[ "MIT" ]
5
2019-02-18T14:38:59.000Z
2021-12-14T15:33:50.000Z
tfs/collection.py
st-walker/tfs
7a229f4fecbf04d544c5116d79a281e4365ccd1d
[ "MIT" ]
54
2019-02-19T14:44:36.000Z
2022-02-16T15:07:53.000Z
tfs/collection.py
st-walker/tfs
7a229f4fecbf04d544c5116d79a281e4365ccd1d
[ "MIT" ]
4
2019-10-17T08:58:57.000Z
2022-02-15T15:55:18.000Z
""" Collection ---------------------- Advanced **TFS** files reading and writing functionality. """ import pathlib from pandas import DataFrame from tfs.frame import TfsDataFrame from tfs.reader import read_tfs from tfs.writer import write_tfs class _MetaTfsCollection(type): """ Metaclass for TfsCollection...
36.048951
104
0.63967
795007c97e62f75c45d0bc8b3e5c956c64244e48
9,616
py
Python
allennlp/models/decomposable_attention.py
nadgeri14/allennlp
2eefffaf71612263a1c20e8ce4107849cfd5efe3
[ "Apache-2.0" ]
null
null
null
allennlp/models/decomposable_attention.py
nadgeri14/allennlp
2eefffaf71612263a1c20e8ce4107849cfd5efe3
[ "Apache-2.0" ]
null
null
null
allennlp/models/decomposable_attention.py
nadgeri14/allennlp
2eefffaf71612263a1c20e8ce4107849cfd5efe3
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Optional, List, Any import torch from allennlp.common.checks import check_dimensions_match from allennlp.data import TextFieldTensors, Vocabulary from allennlp.models.model import Model from allennlp.modules import FeedForward from allennlp.modules import Seq2SeqEncoder, SimilarityFunction, T...
47.60396
161
0.710483
7950083d20f9939b6bcce14e6e9f15c238e75152
1,278
py
Python
ct/src/test_provision_and_traffic.py
testillano/h1mock
76e74c71311bd3c3cf1e41c80d7b18e88e9f182c
[ "MIT" ]
1
2021-12-16T19:11:46.000Z
2021-12-16T19:11:46.000Z
ct/src/test_provision_and_traffic.py
testillano/h1mock
76e74c71311bd3c3cf1e41c80d7b18e88e9f182c
[ "MIT" ]
null
null
null
ct/src/test_provision_and_traffic.py
testillano/h1mock
76e74c71311bd3c3cf1e41c80d7b18e88e9f182c
[ "MIT" ]
null
null
null
import pytest import json def test_001_provision_rules_and_functions(resources, h1mc_admin): # Send POST rulesAndFunctionsProvision = resources("foo-bar") response = h1mc_admin.postData("app/v1/provision/myprovision", rulesAndFunctionsProvision) # Verify response assert response.status_code == 201 asser...
27.782609
121
0.754304
795008dd550f3e82af873bfde617609d890a27fb
11,428
py
Python
hassiogooglebackup/googlebackup/gbcommon.py
ulf111/syncjpg
2d959e4f0708132bf8bd7b242b5278d680cf6769
[ "MIT" ]
null
null
null
hassiogooglebackup/googlebackup/gbcommon.py
ulf111/syncjpg
2d959e4f0708132bf8bd7b242b5278d680cf6769
[ "MIT" ]
null
null
null
hassiogooglebackup/googlebackup/gbcommon.py
ulf111/syncjpg
2d959e4f0708132bf8bd7b242b5278d680cf6769
[ "MIT" ]
null
null
null
import googleapiclient.http from google_auth_oauthlib.flow import InstalledAppFlow from google_auth_oauthlib.flow import Flow from oauth2client.client import GoogleCredentials from googleapiclient.discovery import build from httplib2 import Http import logging import requests from django.conf import settings import os...
34.421687
132
0.659608