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
60648a56773ceecb201aec8a10a45d6b2f493b08
2,755
py
Python
Python/face_detect_camera/managers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
Python/face_detect_camera/managers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
Python/face_detect_camera/managers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import time class WindowManager(object):
28.697917
93
0.642468
6064dc0f50d6a2d8e20ae50d87b6b6f9606110f6
6,937
py
Python
ELLA/ELLA.py
micaelverissimo/lifelong_ringer
d2e7173ce08d1c087e811f6451cae1cb0e381076
[ "MIT" ]
null
null
null
ELLA/ELLA.py
micaelverissimo/lifelong_ringer
d2e7173ce08d1c087e811f6451cae1cb0e381076
[ "MIT" ]
null
null
null
ELLA/ELLA.py
micaelverissimo/lifelong_ringer
d2e7173ce08d1c087e811f6451cae1cb0e381076
[ "MIT" ]
null
null
null
""" Alpha version of a version of ELLA that plays nicely with sklearn @author: Paul Ruvolo """ from math import log import numpy as np from scipy.special import logsumexp from scipy.linalg import sqrtm, inv, norm from sklearn.linear_model import LinearRegression, Ridge, LogisticRegression, Lasso import matplotlib.pyp...
49.198582
119
0.618135
60652bf0a5fb58eb37f612eac700378eff72f02f
1,970
py
Python
webhook/utils.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
webhook/utils.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
webhook/utils.py
Myst1c-a/phen-cogs
672f9022ddbbd9a84b0a05357347e99e64a776fc
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020-present phenom4n4n 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, pub...
35.818182
96
0.740102
606613f1ae0ac5127e78b4dfa447fad203daeafe
6,736
py
Python
scripts/generate.py
jwise/pebble-caltrain
770497cb38205827fee2e4e4cfdd79bcf60ceb65
[ "MIT" ]
1
2019-06-18T01:17:25.000Z
2019-06-18T01:17:25.000Z
scripts/generate.py
jwise/pebble-caltrain
770497cb38205827fee2e4e4cfdd79bcf60ceb65
[ "MIT" ]
null
null
null
scripts/generate.py
jwise/pebble-caltrain
770497cb38205827fee2e4e4cfdd79bcf60ceb65
[ "MIT" ]
null
null
null
__author__ = 'katharine' import csv import struct import time import datetime if __name__ == "__main__": import sys generate_files(sys.argv[1], sys.argv[2])
36.215054
138
0.532512
606629e6c71087f04da2a0bec8e5f2d2e0b13de3
3,218
py
Python
tests/test_is_valid_php_version_file_version.py
gerardroche/sublime-phpunit
73e96ec5e4ac573c5d5247cf87c38e8243da906b
[ "BSD-3-Clause" ]
85
2015-02-18T00:05:54.000Z
2022-01-01T12:20:22.000Z
tests/test_is_valid_php_version_file_version.py
gerardroche/sublime-phpunit
73e96ec5e4ac573c5d5247cf87c38e8243da906b
[ "BSD-3-Clause" ]
98
2015-01-07T22:23:48.000Z
2021-06-03T19:37:50.000Z
tests/test_is_valid_php_version_file_version.py
gerardroche/sublime-phpunit
73e96ec5e4ac573c5d5247cf87c38e8243da906b
[ "BSD-3-Clause" ]
21
2015-08-12T01:02:17.000Z
2021-09-12T09:16:39.000Z
from PHPUnitKit.tests import unittest from PHPUnitKit.plugin import is_valid_php_version_file_version
52.754098
75
0.757613
6066634d419973bf2d50293d1e8b24d66fea6c84
3,554
py
Python
feed/tests/test_consts.py
cul-it/arxiv-rss
40c0e859528119cc8ba3700312cb8df095d95cdd
[ "MIT" ]
4
2020-06-29T15:05:37.000Z
2022-02-02T10:28:28.000Z
feed/tests/test_consts.py
arXiv/arxiv-feed
82923d062e2524df94c22490cf936a988559ce66
[ "MIT" ]
12
2020-03-06T16:45:00.000Z
2022-03-02T15:36:14.000Z
feed/tests/test_consts.py
cul-it/arxiv-rss
40c0e859528119cc8ba3700312cb8df095d95cdd
[ "MIT" ]
2
2020-12-06T16:30:06.000Z
2021-11-05T12:29:08.000Z
import pytest from feed.consts import FeedVersion from feed.utils import randomize_case from feed.errors import FeedVersionError # FeedVersion.supported # FeedVersion.get
27.765625
69
0.652786
6066c37cd5157dfddcd5a311c42cacbf5b1656ab
203
py
Python
cmsplugin_cascade/migrations/0007_add_proxy_models.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
139
2015-01-08T22:27:06.000Z
2021-08-19T03:36:58.000Z
cmsplugin_cascade/migrations/0007_add_proxy_models.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
286
2015-01-02T14:15:14.000Z
2022-03-22T11:00:12.000Z
cmsplugin_cascade/migrations/0007_add_proxy_models.py
teklager/djangocms-cascade
adc461f7054c6c0f88bc732aefd03b157df2f514
[ "MIT" ]
91
2015-01-16T15:06:23.000Z
2022-03-23T23:36:54.000Z
from django.db import migrations, models
16.916667
66
0.679803
60685790ed05ececd1e05f44f06a9d6c6808d671
1,380
py
Python
theonionbox/tob/credits.py
ralphwetzel/theonionbox
9812fce48153955e179755ea7a58413c3bee182f
[ "MIT" ]
120
2015-12-30T09:41:56.000Z
2022-03-23T02:30:05.000Z
theonionbox/tob/credits.py
nwithan8/theonionbox
9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713
[ "MIT" ]
57
2015-12-29T21:55:14.000Z
2022-01-07T09:48:51.000Z
theonionbox/tob/credits.py
nwithan8/theonionbox
9e51fe0b4d07fc89a8a133fdeceb5f97d5d58713
[ "MIT" ]
17
2018-02-05T08:57:46.000Z
2022-02-28T16:44:41.000Z
Credits = [ ('Bootstrap', 'https://getbootstrap.com', 'The Bootstrap team', 'MIT'), ('Bottle', 'http://bottlepy.org', 'Marcel Hellkamp', 'MIT'), ('Cheroot', 'https://github.com/cherrypy/cheroot', 'CherryPy Team', 'BSD 3-Clause "New" or "Revised" License'), ('Click', 'https://github.com/pallets/click', '...
69
118
0.647101
606899616433fe3e3273bc5fab025d75f1c9d731
3,953
py
Python
turorials/Google/projects/01_02_TextClassification/01_02_main.py
Ubpa/LearnTF
2c9f5d790a9911a860da1e0db4c7bb56a9eee5cb
[ "MIT" ]
null
null
null
turorials/Google/projects/01_02_TextClassification/01_02_main.py
Ubpa/LearnTF
2c9f5d790a9911a860da1e0db4c7bb56a9eee5cb
[ "MIT" ]
null
null
null
turorials/Google/projects/01_02_TextClassification/01_02_main.py
Ubpa/LearnTF
2c9f5d790a9911a860da1e0db4c7bb56a9eee5cb
[ "MIT" ]
null
null
null
#---------------- # 01_02 #---------------- # TensorFlow and tf.keras import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as np import matplotlib.pyplot as plt # TensorFlow's version : 1.12.0 print('TensorFlow\'s version : ', tf.__version__) #---------------- # 1 IMDB #----------...
24.251534
86
0.583607
6068adea6b26bf93c6fc76af394fa54701dacddb
6,134
py
Python
backend/api/urls.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
backend/api/urls.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
backend/api/urls.py
12xiaoni/text-label
7456c5e73d32bcfc81a02be7e0d748f162934d35
[ "MIT" ]
null
null
null
from django.urls import include, path from .views import (annotation, auto_labeling, comment, example, example_state, health, label, project, tag, task) from .views.tasks import category, relation, span, text urlpatterns_project = [ path( route='category-types', view=label.Cate...
28.798122
79
0.616074
6068f5688ef9ffee1272e2ce66f9f86a9888991e
4,855
py
Python
nwbwidgets/test/test_base.py
d-sot/nwb-jupyter-widgets
f9bf5c036c39f29e26b3cdb78198cccfa1b13cef
[ "BSD-3-Clause-LBNL" ]
null
null
null
nwbwidgets/test/test_base.py
d-sot/nwb-jupyter-widgets
f9bf5c036c39f29e26b3cdb78198cccfa1b13cef
[ "BSD-3-Clause-LBNL" ]
null
null
null
nwbwidgets/test/test_base.py
d-sot/nwb-jupyter-widgets
f9bf5c036c39f29e26b3cdb78198cccfa1b13cef
[ "BSD-3-Clause-LBNL" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd from pynwb import TimeSeries from datetime import datetime from dateutil.tz import tzlocal from pynwb import NWBFile from ipywidgets import widgets from pynwb.core import DynamicTable from pynwb.file import Subject from nwbwidgets.view import defaul...
32.366667
98
0.622039
606923d815b75242b92321d08cd16583deeb515a
7,987
py
Python
subliminal/video.py
orikad/subliminal
5bd87a505f7a4cad2a3a872128110450c69da4f0
[ "MIT" ]
null
null
null
subliminal/video.py
orikad/subliminal
5bd87a505f7a4cad2a3a872128110450c69da4f0
[ "MIT" ]
null
null
null
subliminal/video.py
orikad/subliminal
5bd87a505f7a4cad2a3a872128110450c69da4f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division from datetime import datetime, timedelta import logging import os from guessit import guessit logger = logging.getLogger(__name__) #: Video extensions VIDEO_EXTENSIONS = ('.3g2', '.3gp', '.3gp2', '.3gpp', '.60d', '.ajp', '.asf', '.asx', '.avchd', '.avi', '.bik'...
35.497778
116
0.597471
6069d2236a48fbb04ece52eba51a580571ed12ab
2,756
py
Python
backend/app/migrations/0001_initial.py
juniorosorio47/client-order
ec429436d822d07d0ec1e0be0c2615087eec6e65
[ "MIT" ]
null
null
null
backend/app/migrations/0001_initial.py
juniorosorio47/client-order
ec429436d822d07d0ec1e0be0c2615087eec6e65
[ "MIT" ]
null
null
null
backend/app/migrations/0001_initial.py
juniorosorio47/client-order
ec429436d822d07d0ec1e0be0c2615087eec6e65
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-18 23:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
41.757576
142
0.588534
606baf8442117d47dded1db451079748f48b00b6
4,291
py
Python
nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
1
2021-04-13T20:34:16.000Z
2021-04-13T20:34:16.000Z
nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/models/machine_translation/mt_enc_dec_config.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
32.022388
110
0.718714
606d3133565f3d0c7f55e0387f7f06dca6adb6f2
7,097
py
Python
shadowsocksr_cli/main.py
MaxSherry/ssr-command-client
e52ea0a74e2a1bbdd7e816e0e2670d66ebdbf159
[ "MIT" ]
null
null
null
shadowsocksr_cli/main.py
MaxSherry/ssr-command-client
e52ea0a74e2a1bbdd7e816e0e2670d66ebdbf159
[ "MIT" ]
null
null
null
shadowsocksr_cli/main.py
MaxSherry/ssr-command-client
e52ea0a74e2a1bbdd7e816e0e2670d66ebdbf159
[ "MIT" ]
null
null
null
""" @author: tyrantlucifer @contact: tyrantlucifer@gmail.com @blog: https://tyrantlucifer.com @file: main.py @time: 2021/2/18 21:36 @desc: shadowsocksr-cli """ import argparse import traceback from shadowsocksr_cli.functions import * if __name__ == "__main__": main()
52.962687
118
0.683106
606d8521b79694dc8353d8aa111b68f4f20bff71
9,321
py
Python
examples/Python 2.7/Client_Complete.py
jcjveraa/EDDN
d0cbae6b7a2cac180dd414cbc324c2d84c867cd8
[ "BSD-3-Clause" ]
100
2017-07-19T10:11:04.000Z
2020-07-05T22:07:39.000Z
examples/Python 2.7/Client_Complete.py
Assasinnys/EDDN
f03a0857cf4a2b95903d332697b07cc055c6cee7
[ "BSD-3-Clause" ]
61
2020-09-28T19:05:10.000Z
2022-03-22T09:16:08.000Z
examples/Python 2.7/Client_Complete.py
Assasinnys/EDDN
f03a0857cf4a2b95903d332697b07cc055c6cee7
[ "BSD-3-Clause" ]
28
2020-07-19T22:37:44.000Z
2022-03-22T09:01:39.000Z
import zlib import zmq import simplejson import sys, os, datetime, time """ " Configuration """ __relayEDDN = 'tcp://eddn.edcd.io:9500' #__timeoutEDDN = 600000 # 10 minuts __timeoutEDDN = 60000 # 1 minut # Set False to listen to production stream; True to listen to debug stream __deb...
40.526087
161
0.466259
606de86a65d9bb68c662f132a9f86b56feda8791
672
py
Python
zad1.py
nadkkka/H8PW
21b5d28bb42af163e7dad43368d21b550ae66618
[ "MIT" ]
6
2019-10-20T18:25:28.000Z
2019-11-17T12:21:42.000Z
zad1.py
nadkkka/H8PW
21b5d28bb42af163e7dad43368d21b550ae66618
[ "MIT" ]
null
null
null
zad1.py
nadkkka/H8PW
21b5d28bb42af163e7dad43368d21b550ae66618
[ "MIT" ]
4
2019-10-20T18:25:28.000Z
2019-11-30T19:33:47.000Z
print (repleace_pattern([1,2,3,1,2,3,4],[1,2,3,4],[9,0]))
18.162162
58
0.383929
606dfbab5706a842277bbd2a3b9198129d579201
2,249
py
Python
mycroft/client/enclosure/weather.py
Matjordan/mycroft-core
8b64930f3b3dae671535fc3b096ce9d846c54f6d
[ "Apache-2.0" ]
null
null
null
mycroft/client/enclosure/weather.py
Matjordan/mycroft-core
8b64930f3b3dae671535fc3b096ce9d846c54f6d
[ "Apache-2.0" ]
null
null
null
mycroft/client/enclosure/weather.py
Matjordan/mycroft-core
8b64930f3b3dae671535fc3b096ce9d846c54f6d
[ "Apache-2.0" ]
null
null
null
# 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...
34.075758
77
0.56514
606fa44df2b3928dca9a1f9a1a195390a91a5ba6
6,698
py
Python
tests/processing_components/test_image_iterators.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
22
2016-12-14T11:20:07.000Z
2021-08-13T15:23:41.000Z
tests/processing_components/test_image_iterators.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
30
2017-06-27T09:15:38.000Z
2020-09-11T18:16:37.000Z
tests/processing_components/test_image_iterators.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
20
2017-07-02T03:45:49.000Z
2019-12-11T17:19:01.000Z
"""Unit tests for image iteration """ import logging import unittest import numpy from data_models.polarisation import PolarisationFrame from processing_components.image.iterators import image_raster_iter, image_channel_iter, image_null_iter from processing_components.image.operations import create_empty_image_li...
49.985075
116
0.591371
606ffbed507972fed40e1f7c61ad9e16979a735d
1,501
py
Python
a_other_video/MCL-Motion-Focused-Contrastive-Learning/sts/motion_sts.py
alisure-fork/Video-Swin-Transformer
aa0a31bd4df0ad2cebdcfb2ad53df712fce79809
[ "Apache-2.0" ]
null
null
null
a_other_video/MCL-Motion-Focused-Contrastive-Learning/sts/motion_sts.py
alisure-fork/Video-Swin-Transformer
aa0a31bd4df0ad2cebdcfb2ad53df712fce79809
[ "Apache-2.0" ]
null
null
null
a_other_video/MCL-Motion-Focused-Contrastive-Learning/sts/motion_sts.py
alisure-fork/Video-Swin-Transformer
aa0a31bd4df0ad2cebdcfb2ad53df712fce79809
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from scipy import ndimage
24.209677
70
0.592938
606fff8ef61161b6a42c08c99645ebf6b02a454f
3,618
py
Python
tests/test_button.py
MSLNZ/msl-qt
33abbb4807b54e3a06dbe9c0f9b343802ece9b97
[ "MIT" ]
1
2018-07-14T23:02:24.000Z
2018-07-14T23:02:24.000Z
tests/test_button.py
MSLNZ/msl-qt
33abbb4807b54e3a06dbe9c0f9b343802ece9b97
[ "MIT" ]
1
2019-08-12T04:52:33.000Z
2019-08-21T00:06:59.000Z
tests/test_button.py
MSLNZ/msl-qt
33abbb4807b54e3a06dbe9c0f9b343802ece9b97
[ "MIT" ]
1
2019-08-05T05:22:47.000Z
2019-08-05T05:22:47.000Z
import os import sys import pytest from msl.qt import convert, Button, QtWidgets, QtCore, Qt
31.46087
93
0.657546
60700c79a8bc5322f89b51ceab88a89b92a4de5b
499
py
Python
Exercicios/ex028.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
Exercicios/ex028.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
Exercicios/ex028.py
MateusBarboza99/Python-03-
9c6df88aaa8ba83d385b92722ed1df5873df3a77
[ "MIT" ]
null
null
null
from random import randint from time import sleep computador = randint(0, 5) # Faz o computador "PENSAR" print('-=-' * 20) print('Vou Pensar em Um Nmero Entre 0 e 5. Tente Adivinhar Paoca...') print('-=-' * 20) jogador = int(input('Em que Nmero eu Pensei? ')) # Jogador tenta Adivinhar print('PROCESSANDO........') sleep...
35.642857
84
0.687375
6070e1255db727d4dd3901174951be184b84e950
2,691
py
Python
Student Database/input_details.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/input_details.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/input_details.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
from tkinter import* import tkinter.font as font import sqlite3 name2='' regis2='' branch2='' if __name__=='__main__': main()
25.149533
106
0.536603
60720921ca305f9abf0188d61f032d72e5cdb0ce
16,036
py
Python
IQS5xx/IQS5xx.py
jakezimmerTHT/py_IQS5xx
5f90be17ea0429eeeb3726c7647f0b7ad1fb7b06
[ "MIT" ]
1
2019-02-26T11:56:26.000Z
2019-02-26T11:56:26.000Z
IQS5xx/IQS5xx.py
jakezimmerTHT/py_IQS5xx
5f90be17ea0429eeeb3726c7647f0b7ad1fb7b06
[ "MIT" ]
null
null
null
IQS5xx/IQS5xx.py
jakezimmerTHT/py_IQS5xx
5f90be17ea0429eeeb3726c7647f0b7ad1fb7b06
[ "MIT" ]
1
2022-02-22T19:47:26.000Z
2022-02-22T19:47:26.000Z
import unittest import time import logging logging.basicConfig() from intelhex import IntelHex import Adafruit_GPIO.I2C as i2c from gpiozero import OutputDevice from gpiozero import DigitalInputDevice from ctypes import c_uint8, c_uint16, c_uint32, cast, pointer, POINTER from ctypes import create_string_buffer, Struct...
41.760417
175
0.692816
60730c8aa9c4f71059543c43f3553248624a3054
2,322
py
Python
code/loader/lock.py
IBCNServices/StardogStreamReasoning
646db9cec7bd06ac8bfa75952b9a41773f35544d
[ "Apache-2.0" ]
5
2020-04-08T22:55:17.000Z
2021-07-30T12:12:45.000Z
code/loader/lock.py
IBCNServices/StardogStreamReasoning
646db9cec7bd06ac8bfa75952b9a41773f35544d
[ "Apache-2.0" ]
1
2021-04-29T21:58:32.000Z
2021-05-04T08:05:11.000Z
code/loader/lock.py
IBCNServices/StardogStreamReasoning
646db9cec7bd06ac8bfa75952b9a41773f35544d
[ "Apache-2.0" ]
3
2020-06-12T13:48:08.000Z
2021-07-23T11:24:27.000Z
import threading
31.808219
75
0.736434
6073572f31a3babd2ff3a1985183c4320d96810e
5,627
py
Python
src/pyfmodex/channel_group.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
1
2017-02-21T16:46:21.000Z
2017-02-21T16:46:21.000Z
src/pyfmodex/channel_group.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
1
2017-02-21T17:57:05.000Z
2017-02-22T11:28:51.000Z
src/pyfmodex/channel_group.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
null
null
null
from .fmodobject import * from .globalvars import dll as _dll from .globalvars import get_class def get_group(self, idx): grp_ptr = c_void_p() self._call_fmod("FMOD_ChannelGroup_GetGroup", idx) return ChannelGroup(grp_ptr) def get_spectrum(self, numvalues, channeloffset, window): ...
31.61236
120
0.675671
60736b2c5b81bc8177746e07c1771f09afc46a66
2,214
py
Python
program.py
siddhi117/ADB_Homework
1751b3cc2d5ec1584efdf7f8961507bc29179e49
[ "MIT" ]
null
null
null
program.py
siddhi117/ADB_Homework
1751b3cc2d5ec1584efdf7f8961507bc29179e49
[ "MIT" ]
null
null
null
program.py
siddhi117/ADB_Homework
1751b3cc2d5ec1584efdf7f8961507bc29179e49
[ "MIT" ]
null
null
null
import sqlite3 from bottle import route, run,debug,template,request,redirect debug(True) run(reloader=True)
27.333333
93
0.584914
60761440b9fc5de896572a3624d9ef4c6e6c7759
3,246
py
Python
pipeline/metadata/maxmind.py
censoredplanet/censoredplanet-analysis
f5e5d82f890e47599bc0baa9a9390f3c5147a6f7
[ "Apache-2.0" ]
6
2021-06-02T11:15:12.000Z
2022-03-04T12:09:35.000Z
pipeline/metadata/maxmind.py
censoredplanet/censoredplanet-analysis
f5e5d82f890e47599bc0baa9a9390f3c5147a6f7
[ "Apache-2.0" ]
24
2021-04-13T18:07:29.000Z
2022-03-25T20:26:27.000Z
pipeline/metadata/maxmind.py
censoredplanet/censoredplanet-analysis
f5e5d82f890e47599bc0baa9a9390f3c5147a6f7
[ "Apache-2.0" ]
2
2021-06-02T11:30:21.000Z
2021-08-20T12:17:12.000Z
"""Module to initialize Maxmind databases and lookup IP metadata.""" import logging import os from typing import Optional, Tuple, NamedTuple import geoip2.database from pipeline.metadata.mmdb_reader import mmdb_reader MAXMIND_CITY = 'GeoLite2-City.mmdb' MAXMIND_ASN = 'GeoLite2-ASN.mmdb' # Tuple(netblock, asn, as_n...
30.336449
78
0.663586
6076505608a2c5b23c1f2f1d1636e9aacc345050
1,105
py
Python
examples/plot_graph.py
huyvo/gevent-websocket-py3.5
b2eb3b5cfb020ac976ac0970508589020dce03ad
[ "Apache-2.0" ]
null
null
null
examples/plot_graph.py
huyvo/gevent-websocket-py3.5
b2eb3b5cfb020ac976ac0970508589020dce03ad
[ "Apache-2.0" ]
null
null
null
examples/plot_graph.py
huyvo/gevent-websocket-py3.5
b2eb3b5cfb020ac976ac0970508589020dce03ad
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function """ This example generates random data and plots a graph in the browser. Run it using Gevent directly using: $ python plot_graph.py Or with an Gunicorn wrapper: $ gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" \ plot_graph:resource """ impo...
25.113636
76
0.700452
60765090bf7eb3ddb56eaccfac94b3add8ca8a04
844
py
Python
nas_big_data/combo/best/combo_4gpu_8_agebo/predict.py
deephyper/NASBigData
18f083a402b80b1d006eada00db7287ff1802592
[ "BSD-2-Clause" ]
3
2020-08-07T12:05:12.000Z
2021-04-05T19:38:37.000Z
nas_big_data/combo/best/combo_2gpu_8_agebo/predict.py
deephyper/NASBigData
18f083a402b80b1d006eada00db7287ff1802592
[ "BSD-2-Clause" ]
2
2020-07-17T14:44:12.000Z
2021-04-04T14:52:11.000Z
nas_big_data/combo/best/combo_4gpu_8_agebo/predict.py
deephyper/NASBigData
18f083a402b80b1d006eada00db7287ff1802592
[ "BSD-2-Clause" ]
1
2021-03-28T01:49:21.000Z
2021-03-28T01:49:21.000Z
import os import numpy as np import tensorflow as tf from nas_big_data.combo.load_data import load_data_npz_gz from deephyper.nas.run.util import create_dir from deephyper.nas.train_utils import selectMetric os.environ["CUDA_VISIBLE_DEVICES"] = ",".join([str(i) for i in range(4)]) HERE = os.path.dirname(os.path.absp...
26.375
89
0.722749
6077a342275cffb372223916fb877af7a30c823c
14,744
py
Python
ship/utils/utilfunctions.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
6
2016-04-10T17:32:44.000Z
2022-03-13T18:41:21.000Z
ship/utils/utilfunctions.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
19
2017-06-23T08:21:53.000Z
2017-07-26T08:23:03.000Z
ship/utils/utilfunctions.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
6
2016-10-26T16:04:38.000Z
2019-04-25T23:55:06.000Z
""" Summary: Utility Functions that could be helpful in any part of the API. All functions that are likely to be called across a number of classes and Functions in the API should be grouped here for convenience. Author: Duncan Runnacles Created: 01 Apr 2016 Copyri...
30.151329
89
0.573928
6077af38c7d93f92258618a8fca241844841e829
3,636
py
Python
src/ansible_navigator/ui_framework/content_defs.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
src/ansible_navigator/ui_framework/content_defs.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
src/ansible_navigator/ui_framework/content_defs.py
goneri/ansible-navigator
59c5c4e9758404bcf363face09cf46c325b01ad3
[ "Apache-2.0" ]
null
null
null
"""Definitions of UI content objects.""" from dataclasses import asdict from dataclasses import dataclass from enum import Enum from typing import Dict from typing import Generic from typing import TypeVar from ..utils.compatibility import TypeAlias from ..utils.serialize import SerializationFormat T = TypeVar("T"...
32.756757
98
0.667217
6077b8cff40a612dbe4bda3b40ee9c7455ae0910
1,244
py
Python
FWCore/MessageService/test/u28_cerr_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
FWCore/MessageService/test/u28_cerr_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
FWCore/MessageService/test/u28_cerr_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
# u28_cerr_cfg.py: # # Non-regression test configuration file for MessageLogger service: # distinct threshold level for linked destination, where # import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") import FWCore.Framework.test.cmsExceptionsFatal_cff process.options = FWCore.Framework.test.cmsExc...
29.619048
70
0.728296
607a424b8a6541dc8b215105306da525113497c5
2,001
py
Python
content/browse/utils.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
content/browse/utils.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
content/browse/utils.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
""" Created:04 Mar. 2020 Author: Jordan Prechac """ from revibe._helpers import const from administration.utils import retrieve_variable from content.models import Song, Album, Artist from content.serializers import v1 as cnt_ser_v1 # ----------------------------------------------------------------------------- # _...
34.5
127
0.710645
607a5c3dca22f0d225966ee1a7f786fad681858e
4,433
py
Python
Segmentation/model.py
vasetrendafilov/ComputerVision
5fcbe57fb1609ef44733aed0fab8c69d71fae21f
[ "MIT" ]
null
null
null
Segmentation/model.py
vasetrendafilov/ComputerVision
5fcbe57fb1609ef44733aed0fab8c69d71fae21f
[ "MIT" ]
null
null
null
Segmentation/model.py
vasetrendafilov/ComputerVision
5fcbe57fb1609ef44733aed0fab8c69d71fae21f
[ "MIT" ]
null
null
null
""" Authors: Elena Vasileva, Zoran Ivanovski E-mail: elenavasileva95@gmail.com, mars@feit.ukim.edu.mk Course: Mashinski vid, FEEIT, Spring 2021 Date: 09.03.2021 Description: function library model operations: construction, loading, saving Python version: 3.6 """ # python imports from keras.layers import ...
47.666667
134
0.723438
607a8097d7dacf319776f076e01a66d964066e6e
631
py
Python
Day24_Python/part1.py
Rog3rSm1th/PolyglotOfCode
a70f50b5c882139727cbdf75144a8346cb6c538b
[ "MIT" ]
7
2021-03-23T14:08:01.000Z
2021-05-17T16:24:16.000Z
Day24_Python/part1.py
Rog3rSm1th/PolyglotOfCode
a70f50b5c882139727cbdf75144a8346cb6c538b
[ "MIT" ]
null
null
null
Day24_Python/part1.py
Rog3rSm1th/PolyglotOfCode
a70f50b5c882139727cbdf75144a8346cb6c538b
[ "MIT" ]
2
2021-04-29T22:03:02.000Z
2022-01-18T15:55:42.000Z
#!/usr/bin/env python3 #-*- coding: utf-8 -*- from itertools import combinations packages = [int(num) for num in open('input.txt')] print(solve(packages, 3))
30.047619
74
0.62916
607b94247f45130f250e70bb74d679462531a2da
5,921
py
Python
generate-album.py
atomicparade/photo-album
437bc18bb00da5ce27216d03b48b78d60a0ad3fd
[ "CC0-1.0", "Unlicense" ]
null
null
null
generate-album.py
atomicparade/photo-album
437bc18bb00da5ce27216d03b48b78d60a0ad3fd
[ "CC0-1.0", "Unlicense" ]
null
null
null
generate-album.py
atomicparade/photo-album
437bc18bb00da5ce27216d03b48b78d60a0ad3fd
[ "CC0-1.0", "Unlicense" ]
null
null
null
import configparser import math import re import urllib from pathlib import Path from PIL import Image if __name__ == '__main__': main()
22.861004
161
0.570174
607c6c12c8adb56d644bb03375a7a0619419eb1b
4,385
py
Python
tests/test_sne_truth.py
LSSTDESC/sims_TruthCatalog
348f5d231997eed387aaa6e3fd4218c126e14cdb
[ "BSD-3-Clause" ]
2
2020-02-04T22:59:41.000Z
2020-03-19T00:17:09.000Z
tests/test_sne_truth.py
LSSTDESC/sims_TruthCatalog
348f5d231997eed387aaa6e3fd4218c126e14cdb
[ "BSD-3-Clause" ]
7
2020-02-10T21:59:19.000Z
2021-04-27T16:31:26.000Z
tests/test_sne_truth.py
LSSTDESC/sims_TruthCatalog
348f5d231997eed387aaa6e3fd4218c126e14cdb
[ "BSD-3-Clause" ]
null
null
null
""" Unit tests for SNIa truth catalog code. """ import os import unittest import sqlite3 import numpy as np import pandas as pd from desc.sims_truthcatalog import SNeTruthWriter, SNSynthPhotFactory if __name__ == '__main__': unittest.main()
41.367925
77
0.580844
607dfd1e508e9c983974056179f2dfae1594aa2a
10,053
py
Python
testsite/management/commands/load_test_transactions.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
null
null
null
testsite/management/commands/load_test_transactions.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
null
null
null
testsite/management/commands/load_test_transactions.py
gikoluo/djaodjin-saas
badd7894ac327191008a1b3a0ebd0d07b55908c3
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2018, DjaoDjin inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
34.90625
80
0.552372
607e7c80f119c1c9c55adbd71e291f8ae17a8b06
2,801
py
Python
seq2seq_pt/s2s/xutils.py
magic282/SEASS
b780bf45b47d15145a148e5992bcd157c119d338
[ "MIT" ]
36
2018-05-25T01:09:21.000Z
2022-01-25T02:45:18.000Z
seq2seq_pt/s2s/xutils.py
magic282/SEASS
b780bf45b47d15145a148e5992bcd157c119d338
[ "MIT" ]
11
2018-06-30T14:19:21.000Z
2021-03-19T01:27:09.000Z
seq2seq_pt/s2s/xutils.py
magic282/SEASS
b780bf45b47d15145a148e5992bcd157c119d338
[ "MIT" ]
10
2018-06-06T03:15:51.000Z
2022-01-25T02:45:44.000Z
import sys import struct
47.474576
87
0.593717
608009fe5a0b2fb99700c8345bb126060be7366e
4,219
py
Python
pml-services/pml_storage.py
Novartis/Project-Mona-Lisa
f8fcef5b434470e2a17e97fceaef46615eda1b31
[ "Apache-2.0" ]
3
2017-10-17T14:49:54.000Z
2021-01-12T23:37:33.000Z
pml-services/pml_storage.py
Novartis/Project-Mona-Lisa
f8fcef5b434470e2a17e97fceaef46615eda1b31
[ "Apache-2.0" ]
10
2019-12-16T20:37:22.000Z
2021-05-21T14:35:39.000Z
pml-services/pml_storage.py
Novartis/Project-Mona-Lisa
f8fcef5b434470e2a17e97fceaef46615eda1b31
[ "Apache-2.0" ]
1
2018-09-12T17:06:18.000Z
2018-09-12T17:06:18.000Z
# Copyright 2017 Novartis Institutes for BioMedical Research 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 agre...
35.754237
584
0.576677
6081b2d6561823daafb84e5aca2d32f42f1d920c
3,196
py
Python
binan.py
Nightleaf0512/PythonCryptoCurriencyPriceChecker
9531d4a6978d280b4ca759d7ba24d3edf77fe5b2
[ "CC0-1.0" ]
null
null
null
binan.py
Nightleaf0512/PythonCryptoCurriencyPriceChecker
9531d4a6978d280b4ca759d7ba24d3edf77fe5b2
[ "CC0-1.0" ]
null
null
null
binan.py
Nightleaf0512/PythonCryptoCurriencyPriceChecker
9531d4a6978d280b4ca759d7ba24d3edf77fe5b2
[ "CC0-1.0" ]
null
null
null
from binance.client import Client import PySimpleGUI as sg api_key = "your_binance_apikey" secret_key = "your_binance_secretkey" client = Client(api_key=api_key, api_secret=secret_key) # price # 24h percentchange # GUI sg.theme('DefaultNoMoreNagging') # Tabs # Layout layout = [[sg.Text("Crypto Cu...
42.613333
172
0.595432
608211636fe7f97cd14766030248070475866342
1,026
py
Python
saleor/graphql/ushop/bulk_mutations.py
nlkhagva/saleor
0d75807d08ac49afcc904733724ac870e8359c10
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/ushop/bulk_mutations.py
nlkhagva/saleor
0d75807d08ac49afcc904733724ac870e8359c10
[ "CC-BY-4.0" ]
1
2022-02-15T03:31:12.000Z
2022-02-15T03:31:12.000Z
saleor/graphql/ushop/bulk_mutations.py
nlkhagva/ushop
abf637eb6f7224e2d65d62d72a0c15139c64bb39
[ "CC-BY-4.0" ]
null
null
null
import graphene from ...unurshop.ushop import models from ..core.mutations import BaseBulkMutation, ModelBulkDeleteMutation
28.5
87
0.660819
608242d64b36989e754c60c8ef5cc3a72e5f5595
3,180
py
Python
src/main/NLP/STRING_MATCH/scopus_ha_module_match.py
alvinajacquelyn/COMP0016_2
fd57706a992e1e47af7c802320890e93a15fc0c7
[ "MIT" ]
null
null
null
src/main/NLP/STRING_MATCH/scopus_ha_module_match.py
alvinajacquelyn/COMP0016_2
fd57706a992e1e47af7c802320890e93a15fc0c7
[ "MIT" ]
null
null
null
src/main/NLP/STRING_MATCH/scopus_ha_module_match.py
alvinajacquelyn/COMP0016_2
fd57706a992e1e47af7c802320890e93a15fc0c7
[ "MIT" ]
null
null
null
import os, sys, re import json import pandas as pd import pymongo from main.LOADERS.publication_loader import PublicationLoader from main.MONGODB_PUSHERS.mongodb_pusher import MongoDbPusher from main.NLP.PREPROCESSING.preprocessor import Preprocessor
42.972973
136
0.610377
60848af0afddec7b1d22b291ac9bd888d5799291
642
py
Python
tools/urls.py
Cyberdeep/archerysec
a4b1a0c4f736bd70bdea693c7a7c479a69bb0f7d
[ "BSD-3-Clause" ]
null
null
null
tools/urls.py
Cyberdeep/archerysec
a4b1a0c4f736bd70bdea693c7a7c479a69bb0f7d
[ "BSD-3-Clause" ]
null
null
null
tools/urls.py
Cyberdeep/archerysec
a4b1a0c4f736bd70bdea693c7a7c479a69bb0f7d
[ "BSD-3-Clause" ]
1
2018-08-12T17:29:35.000Z
2018-08-12T17:29:35.000Z
# _ # /\ | | # / \ _ __ ___| |__ ___ _ __ _ _ # / /\ \ | '__/ __| '_ \ / _ \ '__| | | | # / ____ \| | | (__| | | | __/ | | |_| | # /_/ \_\_| \___|_| |_|\___|_| \__, | # __/ | # |___/ # Copyright (C) 20...
25.68
43
0.426791
6084e8784a7c8fb58869bc711fe87b2383807ac6
7,484
py
Python
api/vm/base/utils.py
erigones/esdc-ce
2e39211a8f5132d66e574d3a657906c7d3c406fe
[ "Apache-2.0" ]
97
2016-11-15T14:44:23.000Z
2022-03-13T18:09:15.000Z
api/vm/base/utils.py
erigones/esdc-ce
2e39211a8f5132d66e574d3a657906c7d3c406fe
[ "Apache-2.0" ]
334
2016-11-17T19:56:57.000Z
2022-03-18T10:45:53.000Z
api/vm/base/utils.py
erigones/esdc-ce
2e39211a8f5132d66e574d3a657906c7d3c406fe
[ "Apache-2.0" ]
33
2017-01-02T16:04:13.000Z
2022-02-07T19:20:24.000Z
from core.celery.config import ERIGONES_TASK_USER from que.tasks import execute, get_task_logger from vms.models import SnapshotDefine, Snapshot, BackupDefine, Backup, IPAddress logger = get_task_logger(__name__) def is_vm_missing(vm, msg): """ Check failed command output and return True if VM is not on comp...
45.084337
120
0.67504
60855d2a5eca63351c8e4dd3352e1f4b94d4ebb3
1,133
py
Python
993_Cousins-in-Binary-Tree.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
993_Cousins-in-Binary-Tree.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
993_Cousins-in-Binary-Tree.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right
30.621622
75
0.485437
6085668853e75c8ad16430458a509e22fa3b1078
5,433
py
Python
docker-images/taigav2/taiga-back/tests/integration/test_tasks_tags.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/tests/integration/test_tasks_tags.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
docker-images/taigav2/taiga-back/tests/integration/test_tasks_tags.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2016 Jess Espino <jespinog@gmail.com> # Copyright (C) 2014-2016 David Barragn <bameda@dbarragan.com> # Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net> # Copyright (C) 2014-2016 Anler Hernndez <he...
33.537037
99
0.679735
6085b11c27e78fe767fa371d2b33135501f31145
679
py
Python
pytorchocr/postprocess/cls_postprocess.py
satchelwu/PaddleOCR2Pytorch
6941565cfd4c45470cc3bf9d434c8c32267a33ef
[ "Apache-2.0" ]
3
2021-04-23T12:31:07.000Z
2021-11-17T04:39:38.000Z
pytorchocr/postprocess/cls_postprocess.py
satchelwu/PaddleOCR2Pytorch
6941565cfd4c45470cc3bf9d434c8c32267a33ef
[ "Apache-2.0" ]
null
null
null
pytorchocr/postprocess/cls_postprocess.py
satchelwu/PaddleOCR2Pytorch
6941565cfd4c45470cc3bf9d434c8c32267a33ef
[ "Apache-2.0" ]
1
2022-03-24T03:31:34.000Z
2022-03-24T03:31:34.000Z
import torch
33.95
62
0.60972
6088008352658e01cb8328f084aae6c78e40e074
5,717
py
Python
inference_folder.py
aba-ai-learning/Single-Human-Parsing-LIP
b1c0c91cef34dabf598231127886b669838fc085
[ "MIT" ]
null
null
null
inference_folder.py
aba-ai-learning/Single-Human-Parsing-LIP
b1c0c91cef34dabf598231127886b669838fc085
[ "MIT" ]
null
null
null
inference_folder.py
aba-ai-learning/Single-Human-Parsing-LIP
b1c0c91cef34dabf598231127886b669838fc085
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # -*- coding: utf-8 -*- import os import argparse import logging import numpy as np from PIL import Image import matplotlib import matplotlib.pyplot as plt import torch import torch.nn as nn from torchvision import transforms import cv2 import tqdm from net.pspnet import PSPNet models = { ...
36.414013
113
0.575477
608859a6a315773abcd6cc904b0d54529fd39c40
870
py
Python
src/random_policy.py
shuvoxcd01/Policy-Evaluation
6bfdfdaa67e1dd67edb75fcf5b4664f2584345ac
[ "Apache-2.0" ]
null
null
null
src/random_policy.py
shuvoxcd01/Policy-Evaluation
6bfdfdaa67e1dd67edb75fcf5b4664f2584345ac
[ "Apache-2.0" ]
null
null
null
src/random_policy.py
shuvoxcd01/Policy-Evaluation
6bfdfdaa67e1dd67edb75fcf5b4664f2584345ac
[ "Apache-2.0" ]
null
null
null
from src.gridworld_mdp import GridWorld
31.071429
79
0.651724
6088d8cdd329f8f2bb36a7c2566daad3bd603e75
6,013
py
Python
sktime/classification/feature_based/_summary_classifier.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
1
2021-09-08T14:24:52.000Z
2021-09-08T14:24:52.000Z
sktime/classification/feature_based/_summary_classifier.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
null
null
null
sktime/classification/feature_based/_summary_classifier.py
Rubiel1/sktime
2fd2290fb438224f11ddf202148917eaf9b73a87
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Summary Classifier. Pipeline classifier using the basic summary statistics and an estimator. """ __author__ = ["MatthewMiddlehurst"] __all__ = ["SummaryClassifier"] import numpy as np from sklearn.ensemble import RandomForestClassifier from sktime.base._base import _clone_estimator from s...
32.327957
82
0.617163
608959b12d0989d6fd9417a960a75d31ceab0a32
461
py
Python
Topics/Submitting data/POST Request With Several Keys/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
1
2021-07-26T03:06:14.000Z
2021-07-26T03:06:14.000Z
Topics/Submitting data/POST Request With Several Keys/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
null
null
null
Topics/Submitting data/POST Request With Several Keys/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from django.views import View
27.117647
56
0.590022
608982b20a5decc4b9d80d0fe548b89804a688a8
705
py
Python
pypeln/thread/api/to_iterable_thread_test.py
quarckster/pypeln
f4160d0f4d4718b67f79a0707d7261d249459a4b
[ "MIT" ]
1,281
2018-09-20T05:35:27.000Z
2022-03-30T01:29:48.000Z
pypeln/thread/api/to_iterable_thread_test.py
webclinic017/pypeln
5231806f2cac9d2019dacbbcf913484fd268b8c1
[ "MIT" ]
78
2018-09-18T20:38:12.000Z
2022-03-30T20:16:02.000Z
pypeln/thread/api/to_iterable_thread_test.py
webclinic017/pypeln
5231806f2cac9d2019dacbbcf913484fd268b8c1
[ "MIT" ]
88
2018-09-24T10:46:14.000Z
2022-03-28T09:34:50.000Z
import typing as tp from unittest import TestCase import hypothesis as hp from hypothesis import strategies as st import pypeln as pl import cytoolz as cz MAX_EXAMPLES = 10 T = tp.TypeVar("T")
23.5
46
0.721986
608996de745b7d9dc600ef6a4f86e57b6a5da416
410,082
py
Python
app/datastore/test.py
sem-onyalo/dnn-training-monitoring-flask
6a81e06a6871b0d6e890f9fd92f4ab79ac8ee639
[ "MIT" ]
null
null
null
app/datastore/test.py
sem-onyalo/dnn-training-monitoring-flask
6a81e06a6871b0d6e890f9fd92f4ab79ac8ee639
[ "MIT" ]
null
null
null
app/datastore/test.py
sem-onyalo/dnn-training-monitoring-flask
6a81e06a6871b0d6e890f9fd92f4ab79ac8ee639
[ "MIT" ]
null
null
null
import json from app.model import TrainMetrics, TrainPlots TEST_SUMMARY = ''' { "Epoch":10, "Real Accuracy":"1%", "Fake Accuracy":"99%", "Elapsed Time":"0:06:30.957221" } ''' TEST_HYPERPARAMETERS = ''' { "Epochs": 100, "Batch Size": 256, "Eval Frequency": 10, "Batches Per Epoch": 234...
5,467.76
189,814
0.965924
608a1240bebe926df3b7d5f1923157bb4c477433
1,614
py
Python
pybinsim/pose.py
fkleinTUI/pyBinSim
5320f62422e0a92154272f8167b87cabdcafe27f
[ "MIT" ]
null
null
null
pybinsim/pose.py
fkleinTUI/pyBinSim
5320f62422e0a92154272f8167b87cabdcafe27f
[ "MIT" ]
null
null
null
pybinsim/pose.py
fkleinTUI/pyBinSim
5320f62422e0a92154272f8167b87cabdcafe27f
[ "MIT" ]
null
null
null
import logging from collections import namedtuple logger = logging.getLogger("pybinsim.Pose")
32.938776
103
0.669145
608acb157c66cbf8e5a515ca2945d9dde9e8ed86
337
py
Python
morphocut_server/extensions.py
madelinetharp/morphocut-server
a82ad5916adbd168816f7b26432b4a98d978c299
[ "MIT" ]
null
null
null
morphocut_server/extensions.py
madelinetharp/morphocut-server
a82ad5916adbd168816f7b26432b4a98d978c299
[ "MIT" ]
1
2019-08-14T20:07:53.000Z
2019-08-14T20:07:53.000Z
morphocut_server/extensions.py
madelinetharp/morphocut-server
a82ad5916adbd168816f7b26432b4a98d978c299
[ "MIT" ]
2
2019-11-28T13:10:28.000Z
2021-11-19T20:37:19.000Z
from flask_sqlalchemy import SQLAlchemy from flask_redis import FlaskRedis from flask_migrate import Migrate # from flask_rq2 import RQ from rq import Queue from morphocut_server.worker import redis_conn database = SQLAlchemy() redis_store = FlaskRedis() migrate = Migrate() redis_queue = Queue(connection=redis_conn)...
22.466667
46
0.824926
608b4a53b9f9505194dcc39105a821f7c54562c8
12,881
py
Python
acq4/drivers/ThorlabsMFC1/tmcm.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
1
2020-06-04T17:04:53.000Z
2020-06-04T17:04:53.000Z
acq4/drivers/ThorlabsMFC1/tmcm.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
24
2016-09-27T17:25:24.000Z
2017-03-02T21:00:11.000Z
acq4/drivers/ThorlabsMFC1/tmcm.py
sensapex/acq4
9561ba73caff42c609bd02270527858433862ad8
[ "MIT" ]
4
2016-10-19T06:39:36.000Z
2019-09-30T21:06:45.000Z
from __future__ import print_function """ Low-level serial communication for Trinamic TMCM-140-42-SE controller (used internally for the Thorlabs MFC1) """ import serial, struct, time, collections try: # this is nicer because it provides deadlock debugging information from acq4.util.Mutex import RecursiveMut...
27.760776
98
0.559273
608ba712fb9a01badbb4b12d5b51c50071dede95
981
py
Python
tests/generators/ios/test_core_data.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
3
2016-02-04T22:58:03.000Z
2017-12-15T13:37:47.000Z
tests/generators/ios/test_core_data.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
37
2015-08-28T20:17:23.000Z
2021-12-13T19:48:49.000Z
tests/generators/ios/test_core_data.py
brianleungwh/signals
d28d2722d681d390ebd21cd668d0b19f2f184451
[ "MIT" ]
6
2016-01-12T18:51:27.000Z
2016-10-19T10:32:45.000Z
import unittest from signals.generators.ios.core_data import get_current_version, get_core_data_from_folder
49.05
91
0.768603
608c22777b56d9cf666ec3250a4f4ccb1c127d26
848
py
Python
mcmc/plot_graph.py
hudalao/mcmc
148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791
[ "MIT" ]
null
null
null
mcmc/plot_graph.py
hudalao/mcmc
148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791
[ "MIT" ]
null
null
null
mcmc/plot_graph.py
hudalao/mcmc
148d9fbb9ebd85ee5bfd3601d80ebbd96bc25791
[ "MIT" ]
null
null
null
# commend the lines for plotting using import matplotlib.pyplot as plt import networkx as nx # nx.draw_networkx_nodes(G[time_point],pos,node_size=200) # edges # nx.draw_networkx_edges(G[time_point],pos,edgelist=elarge,width=3) # nx.draw_networkx_edges(G[time_point],pos,edgelist=esmall,width=3,alpha=0.5,e...
33.92
110
0.681604
608d2fef138f592a57bb71b64db9742a86c572f7
293
py
Python
Number Theory/Sieve_of_Eratosthenes.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Number Theory/Sieve_of_Eratosthenes.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Number Theory/Sieve_of_Eratosthenes.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
from sys import stdin input = stdin.readline N = int(input()) primes = [1]*(N+1) primes[0] = 0 primes[1] = 0 for i in range(2,int(N**0.5)+1): if primes[i]: for j in range(i*i,N+1,i): primes[j] = 0 for i in range(N+1): if primes[i]: print(i,end = " ")
19.533333
34
0.522184
608e2946d7df6fc1e0129b19ce4192449ba804b9
6,118
py
Python
powerline/lib/tree_watcher.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
19
2015-09-01T20:49:16.000Z
2022-01-08T22:13:23.000Z
powerline/lib/tree_watcher.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
null
null
null
powerline/lib/tree_watcher.py
kruton/powerline
f6ddb95da5f41b8285cffd1d17c1ef46dc08a7d6
[ "MIT" ]
6
2019-04-25T03:42:35.000Z
2020-06-05T15:25:23.000Z
# vim:fileencoding=utf-8:noet from __future__ import (unicode_literals, absolute_import, print_function) __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' __docformat__ = 'restructuredtext en' import sys import os import errno from time import sleep from powerline.lib.monotonic import monotonic from powe...
27.936073
152
0.698431
60903b5f4352258ad0e0ec223250ecb5c743a43e
3,642
py
Python
python/qisys/test/fake_interact.py
PrashantKumar-sudo/qibuild
a16ce425cf25127ceff29507feeeeca37af23351
[ "BSD-3-Clause" ]
null
null
null
python/qisys/test/fake_interact.py
PrashantKumar-sudo/qibuild
a16ce425cf25127ceff29507feeeeca37af23351
[ "BSD-3-Clause" ]
null
null
null
python/qisys/test/fake_interact.py
PrashantKumar-sudo/qibuild
a16ce425cf25127ceff29507feeeeca37af23351
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2019 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ Fake Interact """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import...
31.396552
84
0.556013
6090c304e6f8f9a2666ec59c479f530bc3d45c1f
7,727
py
Python
muselsl/cli.py
kowalej/muse-lsl
9086f2588bee3b2858b0ff853b7a08cdcd0e7612
[ "BSD-3-Clause" ]
2
2020-12-04T15:01:19.000Z
2021-11-20T23:05:38.000Z
muselsl/cli.py
fahad101/muse-lsl
32aced5eb29db8834cbffd8533607e8d32cfa2b7
[ "BSD-3-Clause" ]
null
null
null
muselsl/cli.py
fahad101/muse-lsl
32aced5eb29db8834cbffd8533607e8d32cfa2b7
[ "BSD-3-Clause" ]
1
2020-12-03T21:28:01.000Z
2020-12-03T21:28:01.000Z
#!/usr/bin/python import sys import argparse
52.209459
140
0.533325
609290208240ce63b7e6295f7ddcd5f772b8a453
2,420
py
Python
src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py
Quantum-OCS/QuOCS-pyside2interface
69436666a67da6884aed1ddd087b7062dcd2ad90
[ "Apache-2.0" ]
1
2021-03-27T17:41:16.000Z
2021-03-27T17:41:16.000Z
src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py
Quantum-OCS/QuOCS-pyside2interface
69436666a67da6884aed1ddd087b7062dcd2ad90
[ "Apache-2.0" ]
null
null
null
src/quocspyside2interface/gui/freegradients/GeneralSettingsNM.py
Quantum-OCS/QuOCS-pyside2interface
69436666a67da6884aed1ddd087b7062dcd2ad90
[ "Apache-2.0" ]
null
null
null
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Copyright 2021- QuOCS Team # # 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://ww...
48.4
110
0.704132
60931ff29f096eec340bc02f5f6b68402207873f
5,803
py
Python
pulsar/datadog_checks/pulsar/check.py
divyamamgai/integrations-extras
8c40a9cf870578687cc224ee91d3c70cd3a435a4
[ "BSD-3-Clause" ]
158
2016-06-02T16:25:31.000Z
2022-03-16T15:55:14.000Z
pulsar/datadog_checks/pulsar/check.py
divyamamgai/integrations-extras
8c40a9cf870578687cc224ee91d3c70cd3a435a4
[ "BSD-3-Clause" ]
554
2016-03-15T17:39:12.000Z
2022-03-31T10:29:16.000Z
pulsar/datadog_checks/pulsar/check.py
divyamamgai/integrations-extras
8c40a9cf870578687cc224ee91d3c70cd3a435a4
[ "BSD-3-Clause" ]
431
2016-05-13T15:33:13.000Z
2022-03-31T10:06:46.000Z
from datadog_checks.base import ConfigurationError, OpenMetricsBaseCheck EVENT_TYPE = SOURCE_TYPE_NAME = 'pulsar'
58.616162
117
0.693607
6093e41de9ab4c93dd30e9d6abbd45ef1d80f2ad
214
py
Python
Chapter11/publish_horoscope1_in_another_ipns.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
62
2019-03-18T04:41:41.000Z
2022-03-31T05:03:13.000Z
Chapter11/publish_horoscope1_in_another_ipns.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
2
2020-06-14T21:56:03.000Z
2022-01-07T05:32:01.000Z
Chapter11/publish_horoscope1_in_another_ipns.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
42
2019-02-22T03:10:36.000Z
2022-02-20T04:47:04.000Z
import ipfsapi c = ipfsapi.connect() peer_id = c.key_list()['Keys'][1]['Id'] c.name_publish('QmYjYGKXqo36GDt6f6qvp9qKAsrc72R9y88mQSLvogu8Ub', key='another_key') result = c.cat('/ipns/' + peer_id) print(result)
19.454545
83
0.728972
6093e7dfd679097b8c74873a9180892df2d03fa2
1,756
py
Python
magie/window.py
NiumXp/Magie
f0dc1d135274b5453fde659ba46f09f4b303c099
[ "MIT" ]
1
2020-10-26T17:16:52.000Z
2020-10-26T17:16:52.000Z
magie/window.py
NiumXp/Magie
f0dc1d135274b5453fde659ba46f09f4b303c099
[ "MIT" ]
null
null
null
magie/window.py
NiumXp/Magie
f0dc1d135274b5453fde659ba46f09f4b303c099
[ "MIT" ]
null
null
null
import pygame def get_width(self) -> int: """Returns the widget of the window.""" if self.surface: return self.surface.get_width() return self.initial_dimension[0] def get_height(self) -> int: """Returns the height of the window.""" if self.surfa...
27.4375
71
0.574601
6093fc893ebcd37ea362c87f16107050ab4d6124
1,179
py
Python
tests/optimize/test_newton_raphson_hypo.py
dwillmer/fastats
5915423714b32ed7e953e1e3a311fe50c3f30943
[ "MIT" ]
26
2017-07-17T09:19:53.000Z
2021-11-30T01:36:56.000Z
tests/optimize/test_newton_raphson_hypo.py
dwillmer/fastats
5915423714b32ed7e953e1e3a311fe50c3f30943
[ "MIT" ]
320
2017-09-02T16:26:25.000Z
2021-07-28T05:19:49.000Z
tests/optimize/test_newton_raphson_hypo.py
dwillmer/fastats
5915423714b32ed7e953e1e3a311fe50c3f30943
[ "MIT" ]
13
2017-07-06T19:02:29.000Z
2020-01-22T11:36:34.000Z
from hypothesis import given, assume, settings from hypothesis.strategies import floats from numpy import cos from pytest import approx from fastats.optimise.newton_raphson import newton_raphson nr_func = newton_raphson(1, 1e-6, root=func, return_callable=True) nr_cos = newton_raphson(0.5, 1e-6, root=cos_func...
21.436364
71
0.676845
6096d49f97f28ce9400a93ea2f44d5ab24de77e4
2,701
py
Python
faceRecognition.py
sequery/Face-Recognition-Project
84d29322228e140c3d18c9c4d169819375a8e256
[ "MIT" ]
2
2020-12-23T13:39:54.000Z
2021-01-11T15:34:29.000Z
faceRecognition.py
sequery/Face-Recognition-Project
84d29322228e140c3d18c9c4d169819375a8e256
[ "MIT" ]
null
null
null
faceRecognition.py
sequery/Face-Recognition-Project
84d29322228e140c3d18c9c4d169819375a8e256
[ "MIT" ]
null
null
null
import cv2 import os import numpy as np # This module contains all common functions that are called in tester.py file # Given an image below function returns rectangle for face detected alongwith gray scale image # Given a directory below function returns part of gray_img which is face alongwith its label/ID # ...
41.553846
120
0.66716
60985f194b3e048052f9cb34471c7382107a1768
2,704
py
Python
evaluation/datasets/build_dataset_images.py
hsiehkl/pdffigures2
9ff2978a097f3d500dcb840d31587c26d994cb68
[ "Apache-2.0" ]
296
2016-06-19T02:41:09.000Z
2022-03-10T05:46:08.000Z
evaluation/datasets/build_dataset_images.py
hsiehkl/pdffigures2
9ff2978a097f3d500dcb840d31587c26d994cb68
[ "Apache-2.0" ]
37
2016-07-07T00:11:53.000Z
2022-03-18T07:27:32.000Z
evaluation/datasets/build_dataset_images.py
hsiehkl/pdffigures2
9ff2978a097f3d500dcb840d31587c26d994cb68
[ "Apache-2.0" ]
81
2016-07-06T23:51:21.000Z
2022-03-19T13:50:25.000Z
import argparse from os import listdir, mkdir from os.path import join, isdir from subprocess import call import sys import datasets from shutil import which """ Script to use pdftoppm to turn the pdfs into single images per page """ if __name__ == "__main__": parser = argparse.ArgumentParser(description='Cache...
36.053333
94
0.616864
60989896ae8b3f69efc7d2350add8f6f19d85669
220
py
Python
sympy/physics/__init__.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2018-11-20T11:40:30.000Z
2018-11-20T11:40:30.000Z
sympy/physics/__init__.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
14
2018-02-08T10:11:03.000Z
2019-04-16T10:32:46.000Z
sympy/physics/__init__.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2022-02-04T13:50:29.000Z
2022-02-04T13:50:29.000Z
""" A module that helps solving problems in physics. """ from . import units from .matrices import mgamma, msigma, minkowski_tensor, mdft __all__ = [ 'units', 'mgamma', 'msigma', 'minkowski_tensor', 'mdft', ]
16.923077
60
0.677273
609c0b0efb59d40f1ab4f4aa98dc75bbea0cab6a
23
py
Python
py.py
avr8082/Hadoop
64b2036e752ac01b9e2256e20b659b1b56a274c9
[ "Apache-2.0" ]
null
null
null
py.py
avr8082/Hadoop
64b2036e752ac01b9e2256e20b659b1b56a274c9
[ "Apache-2.0" ]
null
null
null
py.py
avr8082/Hadoop
64b2036e752ac01b9e2256e20b659b1b56a274c9
[ "Apache-2.0" ]
null
null
null
printf("Hello world")
11.5
22
0.695652
609c58346f33ce4d4cdeec7d9b46908849047083
21,070
py
Python
build/python-env/lib/python2.7/site-packages/elasticsearch/client/xpack/ml.py
imiMoisesEducation/beatcookie-discbot
59c8be23346d8d2fc1777a2b08856df88e2ae5c2
[ "Apache-2.0" ]
1
2021-05-11T12:09:58.000Z
2021-05-11T12:09:58.000Z
build/python-env/lib/python2.7/site-packages/elasticsearch/client/xpack/ml.py
imiMoisesEducation/beatcookie-discbot
59c8be23346d8d2fc1777a2b08856df88e2ae5c2
[ "Apache-2.0" ]
null
null
null
build/python-env/lib/python2.7/site-packages/elasticsearch/client/xpack/ml.py
imiMoisesEducation/beatcookie-discbot
59c8be23346d8d2fc1777a2b08856df88e2ae5c2
[ "Apache-2.0" ]
2
2020-01-13T17:51:02.000Z
2020-07-24T17:50:44.000Z
from elasticsearch.client.utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
43
102
0.64205
609c675a647587e5e1ba2913f0c1ade0647fff7d
17,264
py
Python
src/oci/service_catalog/service_catalog_client_composite_operations.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/service_catalog/service_catalog_client_composite_operations.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/service_catalog/service_catalog_client_composite_operations.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
54.460568
245
0.703313
609c86e4469f43e38a1d6ec5480ccb39cd4fde7a
1,776
py
Python
vision/_file_utils.py
BrianOfrim/boja
6571fbbfb7f015e96e80e822d9dc96b4636b4119
[ "MIT" ]
7
2020-01-27T18:39:02.000Z
2022-02-14T13:23:40.000Z
vision/_file_utils.py
a428tm/boja
6571fbbfb7f015e96e80e822d9dc96b4636b4119
[ "MIT" ]
1
2021-06-02T00:55:25.000Z
2021-06-02T00:55:25.000Z
vision/_file_utils.py
a428tm/boja
6571fbbfb7f015e96e80e822d9dc96b4636b4119
[ "MIT" ]
6
2020-01-28T21:28:23.000Z
2020-12-28T14:35:06.000Z
from typing import List import os import re
29.6
85
0.628378
609cf5344b535f0910e1e3a47704f4e750a0c25d
5,355
py
Python
vaccine_allocation/epi_simulations.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
vaccine_allocation/epi_simulations.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
vaccine_allocation/epi_simulations.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
import dask import numpy as np import pandas as pd from epimargin.models import Age_SIRVD from epimargin.utils import annually, normalize, percent, years from studies.vaccine_allocation.commons import * from tqdm import tqdm import warnings warnings.filterwarnings("error") num_sims = 1000 simulation_range = 1...
45
150
0.597572
609d2577b79fe5b4822db1b8e2ab1b0bb0027683
1,975
py
Python
src/core/agent_state.py
nandofioretto/py_dcop
fb2dbc97b69360f5d1fb67d84749e44afcdf48c3
[ "Apache-2.0" ]
4
2018-08-06T08:55:36.000Z
2018-09-28T12:54:21.000Z
src/core/agent_state.py
nandofioretto/py_dcop
fb2dbc97b69360f5d1fb67d84749e44afcdf48c3
[ "Apache-2.0" ]
null
null
null
src/core/agent_state.py
nandofioretto/py_dcop
fb2dbc97b69360f5d1fb67d84749e44afcdf48c3
[ "Apache-2.0" ]
null
null
null
'''Every agent has an agent state, which is its local view of the world''' import numpy as np import itertools
38.72549
86
0.663797
609dc8066e4ed58454e785ac9407ba710dd24391
32
py
Python
johnny_cache/__init__.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
3
2019-07-23T02:33:04.000Z
2021-05-25T16:57:24.000Z
johnny_cache/__init__.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
null
null
null
johnny_cache/__init__.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
null
null
null
from .server import app # noqa
16
31
0.71875
609f2b3abd12396a9fb221b6c6ef204f6a133c95
218
py
Python
python_packages_static/flopy/mf6/__init__.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
351
2015-01-03T15:18:48.000Z
2022-03-31T09:46:43.000Z
python_packages_static/flopy/mf6/__init__.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
1,256
2015-01-15T21:10:42.000Z
2022-03-31T22:43:06.000Z
python_packages_static/flopy/mf6/__init__.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
553
2015-01-31T22:46:48.000Z
2022-03-31T17:43:35.000Z
# imports from . import coordinates from . import data from .modflow import * from . import utils from .data import mfdatascalar, mfdatalist, mfdataarray from .mfmodel import MFModel from .mfbase import ExtFileAction
21.8
55
0.798165
609ff6c4c10fb31262c0f09062e4b789c62b7f8c
360
py
Python
tests/__init__.py
issuu/jmespath
7480643df8ad0c99269b1fa6b9e793582bcb7efe
[ "MIT" ]
null
null
null
tests/__init__.py
issuu/jmespath
7480643df8ad0c99269b1fa6b9e793582bcb7efe
[ "MIT" ]
null
null
null
tests/__init__.py
issuu/jmespath
7480643df8ad0c99269b1fa6b9e793582bcb7efe
[ "MIT" ]
null
null
null
import sys # The unittest module got a significant overhaul # in 2.7, so if we're in 2.6 we can use the backported # version unittest2. if sys.version_info[:2] == (2, 6): import unittest2 as unittest import simplejson as json from ordereddict import OrderedDict else: import unittest import json ...
21.176471
54
0.725
60a02b70b3feadeb7f3f6ef29e2296758c121c15
2,782
py
Python
src/routes/scoring.py
jtillman20/cfb-data-api
69bcae225e4fa0616eb526bd608e20ace17f1816
[ "MIT" ]
null
null
null
src/routes/scoring.py
jtillman20/cfb-data-api
69bcae225e4fa0616eb526bd608e20ace17f1816
[ "MIT" ]
null
null
null
src/routes/scoring.py
jtillman20/cfb-data-api
69bcae225e4fa0616eb526bd608e20ace17f1816
[ "MIT" ]
null
null
null
from typing import Union from flask import request from flask_restful import Resource from exceptions import InvalidRequestError from models import Scoring from utils import flask_response, rank, sort def secondary_sort(attr: str, side_of_ball: str) -> tuple: """ Determine the secondary sort attribute and ...
30.571429
74
0.626528
60a1ad6402e8e4a36b677d266c4a8212a4c64c09
15,419
py
Python
WebPortal/gbol_portal/vars.py
ZFMK/GermanBarcodeofLife
f9e9af699ba3f5b3d0d537819a8463c4162d7e82
[ "Apache-2.0" ]
null
null
null
WebPortal/gbol_portal/vars.py
ZFMK/GermanBarcodeofLife
f9e9af699ba3f5b3d0d537819a8463c4162d7e82
[ "Apache-2.0" ]
null
null
null
WebPortal/gbol_portal/vars.py
ZFMK/GermanBarcodeofLife
f9e9af699ba3f5b3d0d537819a8463c4162d7e82
[ "Apache-2.0" ]
null
null
null
import configparser c = configparser.ConfigParser() c.read("production.ini") config = {} config['host'] = c['dboption']['chost'] config['port'] = int(c['dboption']['cport']) config['user'] = c['dboption']['cuser'] config['pw'] = c['dboption']['cpw'] config['db'] = c['dboption']['cdb'] config['homepath'] = c['option'][...
48.335423
120
0.613075
60a325d8698400a67c71d72f6db2f8d62fcf36f0
1,798
py
Python
challenges/Backend Challenge/pendulum_sort.py
HernandezDerekJ/Interview
202d78767d452ecfe8c6220180d7ed53b1104231
[ "MIT" ]
null
null
null
challenges/Backend Challenge/pendulum_sort.py
HernandezDerekJ/Interview
202d78767d452ecfe8c6220180d7ed53b1104231
[ "MIT" ]
null
null
null
challenges/Backend Challenge/pendulum_sort.py
HernandezDerekJ/Interview
202d78767d452ecfe8c6220180d7ed53b1104231
[ "MIT" ]
null
null
null
""" Coderpad solution """ if __name__ == "__main__": arr = [5,1,3,6,2,4] pend(arr) arr = [5, 1, 3, 2, 4] pend(arr) arr = [10, 4, 1, 5, 4, 3, 7, 9] pend(arr)
31
102
0.375417
60a3e925a35adb27a53e4a197d8b807d37a073ac
13,745
py
Python
swagger_server/controllers/threadFactory.py
garagonc/optimization-framework
1ca57699d6a3f2f98dcaea96430e75c3f847b49f
[ "Apache-2.0" ]
null
null
null
swagger_server/controllers/threadFactory.py
garagonc/optimization-framework
1ca57699d6a3f2f98dcaea96430e75c3f847b49f
[ "Apache-2.0" ]
null
null
null
swagger_server/controllers/threadFactory.py
garagonc/optimization-framework
1ca57699d6a3f2f98dcaea96430e75c3f847b49f
[ "Apache-2.0" ]
null
null
null
import os import configparser import json import time from IO.inputConfigParser import InputConfigParser from IO.redisDB import RedisDB from optimization.ModelException import MissingKeysException from optimization.controllerDiscrete import OptControllerDiscrete from optimization.controllerMpc import OptControllerMPC...
56.102041
120
0.587923
60a44344bf403a9af637f117e79a2de34161a730
8,141
py
Python
ptrace/oop/math_tests.py
xann16/py-path-tracing
609dbe6b80580212bd9d8e93afb6902091040d7a
[ "MIT" ]
null
null
null
ptrace/oop/math_tests.py
xann16/py-path-tracing
609dbe6b80580212bd9d8e93afb6902091040d7a
[ "MIT" ]
null
null
null
ptrace/oop/math_tests.py
xann16/py-path-tracing
609dbe6b80580212bd9d8e93afb6902091040d7a
[ "MIT" ]
null
null
null
"""Unit tests for math-oriented common classes.""" import unittest import math import numpy as np from .vector import Vec3, OrthonormalBasis from .raycast_base import Ray from .camera import Camera if __name__ == '__main__': unittest.main()
35.550218
81
0.607051
60a44dedd81ec9521c352eb02db132ee4f4bcd33
2,336
py
Python
tests/integration/condition__browser__have_url_test.py
kianku/selene
5361938e4f34d6cfae6df3aeca80e06a3e657d8c
[ "MIT" ]
null
null
null
tests/integration/condition__browser__have_url_test.py
kianku/selene
5361938e4f34d6cfae6df3aeca80e06a3e657d8c
[ "MIT" ]
null
null
null
tests/integration/condition__browser__have_url_test.py
kianku/selene
5361938e4f34d6cfae6df3aeca80e06a3e657d8c
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2015-2020 Iakiv Kramarenko # # 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, modif...
37.079365
101
0.771404
60a47f3e241e5f669273b6d0c92cbb5374b0f349
3,970
py
Python
cohesity_management_sdk/models/scheduling_policy.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2021-01-07T20:36:22.000Z
2021-01-07T20:36:22.000Z
cohesity_management_sdk/models/scheduling_policy.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/scheduling_policy.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. import cohesity_management_sdk.models.continuous_schedule import cohesity_management_sdk.models.daily_schedule import cohesity_management_sdk.models.monthly_schedule import cohesity_management_sdk.models.rpo_schedule
43.152174
203
0.688917
60a5c5419df750bc2b6508ae2377a189aff71a1a
3,575
py
Python
networking_mlnx/eswitchd/cli/ebrctl.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
networking_mlnx/eswitchd/cli/ebrctl.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
networking_mlnx/eswitchd/cli/ebrctl.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2013 Mellanox Technologies, 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 applicab...
30.555556
73
0.683636
60a620c9bc97c103d049f3c1d9096836751f9133
161
py
Python
survos/core/__init__.py
paskino/SuRVoS
e01e784442e2e9f724826cdb70f3a50c034c6455
[ "Apache-2.0" ]
22
2016-09-30T08:04:42.000Z
2022-03-05T07:24:18.000Z
survos/core/__init__.py
paskino/SuRVoS
e01e784442e2e9f724826cdb70f3a50c034c6455
[ "Apache-2.0" ]
81
2016-11-21T15:32:14.000Z
2022-02-20T00:22:27.000Z
survos/core/__init__.py
paskino/SuRVoS
e01e784442e2e9f724826cdb70f3a50c034c6455
[ "Apache-2.0" ]
6
2018-11-22T10:19:59.000Z
2022-02-04T06:15:48.000Z
from .launcher import Launcher from .model import DataModel from .layers import LayerManager from .labels import LabelManager from .singleton import Singleton
20.125
32
0.832298
60a739a78fd701a33047ec6e80de5f418140cf06
2,567
py
Python
src/FinanceLib/analysis.py
Chahat-M/FinanceLib
0428779220a97e7fe0ad35a50207b737059b9c86
[ "MIT" ]
3
2021-06-20T14:55:16.000Z
2021-12-29T03:55:34.000Z
src/FinanceLib/analysis.py
Chahat-M/FinanceLib
0428779220a97e7fe0ad35a50207b737059b9c86
[ "MIT" ]
null
null
null
src/FinanceLib/analysis.py
Chahat-M/FinanceLib
0428779220a97e7fe0ad35a50207b737059b9c86
[ "MIT" ]
1
2021-06-26T05:39:08.000Z
2021-06-26T05:39:08.000Z
from typing import List, Union import numpy as np import pandas_datareader as pdr import pandas as pd import matplotlib.pyplot as plt def rsi(symbol :str ,name :str, date :str) -> None : """ Calculates and visualises the Relative Stock Index on a Stock of the company. Parameters: symbol(str) : Sy...
34.689189
96
0.626023
60aaca2558f26dc382fc17ea023f8e47287579c5
26,892
py
Python
datastore/core/test/test_basic.py
jbenet/datastore
6c0e9f39b844788ca21c5cf613c625a72fb20c20
[ "MIT" ]
1
2015-05-24T13:11:16.000Z
2015-05-24T13:11:16.000Z
datastore/core/test/test_basic.py
jbenet/datastore
6c0e9f39b844788ca21c5cf613c625a72fb20c20
[ "MIT" ]
null
null
null
datastore/core/test/test_basic.py
jbenet/datastore
6c0e9f39b844788ca21c5cf613c625a72fb20c20
[ "MIT" ]
null
null
null
import unittest import logging from ..basic import DictDatastore from ..key import Key from ..query import Query if __name__ == '__main__': unittest.main()
27.553279
77
0.643611
60aacb1ea53997b926d5fc68404773f2cbe78055
852
py
Python
rooms/models.py
Neisvestney/SentSyncServer
45e9572b6c9b274ed2cbad28749fcb2154c98757
[ "MIT" ]
null
null
null
rooms/models.py
Neisvestney/SentSyncServer
45e9572b6c9b274ed2cbad28749fcb2154c98757
[ "MIT" ]
null
null
null
rooms/models.py
Neisvestney/SentSyncServer
45e9572b6c9b274ed2cbad28749fcb2154c98757
[ "MIT" ]
null
null
null
from django.db import models
25.818182
82
0.597418
60ae0a74f0e5e8766035e68de7d7b1a1a948d0fa
321
py
Python
colbert/parameters.py
techthiyanes/ColBERT
6493193b98d95595f15cfc375fed2f0b24df4f83
[ "MIT" ]
421
2020-06-03T05:30:00.000Z
2022-03-31T13:10:42.000Z
colbert/parameters.py
xrr233/ColBERT
88a5ecd8aa7dca70d0d52ab51422cb06c843fb4e
[ "MIT" ]
87
2020-08-07T10:07:56.000Z
2022-03-30T03:49:16.000Z
colbert/parameters.py
xrr233/ColBERT
88a5ecd8aa7dca70d0d52ab51422cb06c843fb4e
[ "MIT" ]
111
2020-06-28T03:02:14.000Z
2022-03-15T05:56:24.000Z
import torch DEVICE = torch.device("cuda") SAVED_CHECKPOINTS = [32*1000, 100*1000, 150*1000, 200*1000, 300*1000, 400*1000] SAVED_CHECKPOINTS += [10*1000, 20*1000, 30*1000, 40*1000, 50*1000, 60*1000, 70*1000, 80*1000, 90*1000] SAVED_CHECKPOINTS += [25*1000, 50*1000, 75*1000] SAVED_CHECKPOINTS = set(SAVED_CHECKPOINTS)...
32.1
102
0.725857
60ae786acbdf645e9d5e08b60bc5b3249a338b60
6,496
py
Python
jarvis/stats.py
aburgd/sheila
556cf3e4a6992b8ba609ba281f5a3657cd91e709
[ "MIT" ]
null
null
null
jarvis/stats.py
aburgd/sheila
556cf3e4a6992b8ba609ba281f5a3657cd91e709
[ "MIT" ]
null
null
null
jarvis/stats.py
aburgd/sheila
556cf3e4a6992b8ba609ba281f5a3657cd91e709
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # Module Imports ############################################################################### import pyscp import textwrap from dominate import tags as dt from . import core, lex, ext ########################...
28.121212
79
0.475985
60aeca0f1277fa05a855d2d1630e9fb88e8caff2
124
py
Python
entry.py
Allenyou1126/allenyou-acme.sh
2f5fa606cb0a66ded49d75a98d0dc47adc68c87c
[ "Apache-2.0" ]
null
null
null
entry.py
Allenyou1126/allenyou-acme.sh
2f5fa606cb0a66ded49d75a98d0dc47adc68c87c
[ "Apache-2.0" ]
null
null
null
entry.py
Allenyou1126/allenyou-acme.sh
2f5fa606cb0a66ded49d75a98d0dc47adc68c87c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json from allenyoucert import Cert main()
11.272727
29
0.645161
60afd06ba545d034d33e457e4d731a2d4625fc23
340
py
Python
dynts/lib/fallback/simplefunc.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
57
2015-02-10T13:42:06.000Z
2022-03-28T14:48:36.000Z
dynts/lib/fallback/simplefunc.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
1
2016-11-01T07:43:05.000Z
2016-11-01T07:43:05.000Z
dynts/lib/fallback/simplefunc.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
17
2015-05-08T04:09:19.000Z
2021-08-02T19:24:52.000Z
from .common import *
20
31
0.297059
60b09b84c56168890b3b6bd6e6a345dc11ac1a37
3,552
py
Python
week9/finance/application.py
lcsm29/edx-harvard-cs50
283f49bd6a9e4b8497e2b397d766b64527b4786b
[ "MIT" ]
null
null
null
week9/finance/application.py
lcsm29/edx-harvard-cs50
283f49bd6a9e4b8497e2b397d766b64527b4786b
[ "MIT" ]
null
null
null
week9/finance/application.py
lcsm29/edx-harvard-cs50
283f49bd6a9e4b8497e2b397d766b64527b4786b
[ "MIT" ]
null
null
null
import os from cs50 import SQL from flask import Flask, flash, redirect, render_template, request, session from flask_session import Session from tempfile import mkdtemp from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError from werkzeug.security import check_password_hash, generate_pa...
24.839161
100
0.675113
60b0bb8f2315cabad512414bb05d03c08dd3d690
882
py
Python
users/forms.py
iurykrieger96/alura-django
d8ed9998ccbc629127b2c6ca3ed3798da9a578f3
[ "MIT" ]
null
null
null
users/forms.py
iurykrieger96/alura-django
d8ed9998ccbc629127b2c6ca3ed3798da9a578f3
[ "MIT" ]
null
null
null
users/forms.py
iurykrieger96/alura-django
d8ed9998ccbc629127b2c6ca3ed3798da9a578f3
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.forms.utils import ErrorList
32.666667
90
0.679138
60b1ecdd22ff60b0f76eb9a849e552628f551e26
6,547
py
Python
python/manager.py
Kiku-Reise/vsmart
dd8cf84816da8734e72dbb46c07694f561597648
[ "Apache-2.0" ]
null
null
null
python/manager.py
Kiku-Reise/vsmart
dd8cf84816da8734e72dbb46c07694f561597648
[ "Apache-2.0" ]
null
null
null
python/manager.py
Kiku-Reise/vsmart
dd8cf84816da8734e72dbb46c07694f561597648
[ "Apache-2.0" ]
null
null
null
from telethon.sync import TelegramClient from telethon.errors.rpcerrorlist import PhoneNumberBannedError import pickle, os from colorama import init, Fore from time import sleep init() n = Fore.RESET lg = Fore.LIGHTGREEN_EX r = Fore.RED w = Fore.WHITE cy = Fore.CYAN ye = Fore.YELLOW colors = [lg, r, w, cy, ye] try: ...
36.780899
109
0.494578