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
20f09232bbd39f5341bb954d6c3dd267beb0e85a
10,058
py
Python
venv/lib/python3.6/site-packages/ansible/module_utils/facts/hardware/aix.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/module_utils/facts/hardware/aix.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
ansible/ansible/module_utils/facts/hardware/aix.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that ...
39.754941
137
0.509644
20f0b9c08e120b15c6e37ccd433da0ddfa26dd09
1,148
py
Python
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
''' (c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights Reserved. The copyright to the software program(s) is property of Telefonica I+D. The program(s) may be used and or copied only with the express written consent of Telefonica I+D or in accordance with the terms and conditions stipulated in t...
42.518519
106
0.743031
20f40bb6774c781a86ff7385108395d2e004318d
9,669
py
Python
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
null
null
null
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
null
null
null
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
1
2021-09-24T18:18:40.000Z
2021-09-24T18:18:40.000Z
# -*- coding: utf-8 -*- #BEGIN_HEADER import logging import os import uuid import shutil from installed_clients.WorkspaceClient import Workspace from installed_clients.DataFileUtilClient import DataFileUtil from installed_clients.KBaseReportClient import KBaseReport from installed_clients.GenericsAPIClient import Gene...
28.862687
121
0.562416
20f473683e772c87b537f146508f569bdfe393ff
4,189
py
Python
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
import os import cv2 import glob import tqdm import argparse from skimage.filters import threshold_local import pytesseract import numpy as np import random if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--input', type=str, default='./images') parser.add_argument('--use_binary...
32.726563
108
0.610169
20f4974dbfb9b7e44a6eecfec1209588daffaa28
762
py
Python
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
# __main__.py # Walker M. White (wmw2) # November 12, 2012 """__main__ module for Breakout This is the module with the application code. Make sure that this module is in a folder with the following files: breakout.py (the primary controller class) model.py (the model classes) game2d.py (the view ...
29.307692
83
0.711286
20f4bb00c3e32da2d3d3c84f05ad3e299944fc74
394
py
Python
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import git # The top-level path of this repository git_repo = git.Repo(__file__, search_parent_directories=True) git_root_dir = Path(git_repo.git.rev_parse("--show-toplevel")) # This should match the major.minor version list in .circleci/generate_circleci_config.py # Patch version should alwa...
35.818182
89
0.763959
4545c91d0cdf7bdd633b1682893229895b5c4a88
2,808
py
Python
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
from ...common.utils import patch; patch() import boto3 import urllib.request from .PaaS import PaaS from ..service import docker from ...common.consts import * COREOS_AMI_URL = "https://stable.release.core-os.net/amd64-usr/current/coreos_production_ami_hvm_{region}.txt" COREOS_USERNAME = "core" VM_TAG = [{"Resource...
37.44
110
0.535613
45485b7021d68a5f5cea1ac732317f7615814dbe
3,099
py
Python
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ csrweb.api.resources ~~~~~~~~~~~~~~~~~~~~ API resources. :copyright: Copyright 2019 by Ed Beard. :license: MIT, see LICENSE file for more details. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode...
32.621053
133
0.700871
454b01b109820104ab60f6103cb4df1d537ab584
1,084
py
Python
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
5
2017-05-28T03:13:17.000Z
2019-12-17T11:34:16.000Z
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
2
2016-01-03T03:22:27.000Z
2018-11-29T19:55:49.000Z
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
3
2016-08-28T11:39:32.000Z
2019-09-17T10:47:17.000Z
import unittest from wmsigner import Signer # signer = Signer(wmid='000000000000', keys='/home/egor/000000000000.kwm', password='**********') if __name__ == '__main__': unittest.main()
26.439024
78
0.606089
454b47b3f84be1c2c230d352ee328c9b29ca854a
676
py
Python
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
import os, sys import csv import leancloud from leancloud import cloud import requests import re leancloud.init("ELXEVn8IoKWzNVU52gmYKnn6-gzGzoHsz", master_key="kYWSFq2AwQyBhujn5oIBo64n") data_info = {'id': 2017718538, 'user_name': 'js999986', 'first_name': '', 'last_name': None, 'userName': None, 'url': None, 'bio':...
35.578947
200
0.720414
454c3029fdf43b8fecffd75acd0e4868c4a676d6
273
py
Python
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
import re import numpy as np
21
40
0.608059
454ca970a91a509b88675311e18e5508a0f457e1
1,729
py
Python
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from pyspark import SparkContext from pyspark.mllib.classification import LogisticRegressionWithLBFGS, LogisticRegressionModel from pyspark.mllib.regression import LabeledPoint from pyspark.mllib.util import MLUtils #(' 101356, 101356, 32714, 32714, 5963, 10594, 21240, 34825, 5963...
36.787234
99
0.685367
45502c36194120822d47a489bb35792d7a4b090d
754
py
Python
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
7
2018-05-29T07:14:22.000Z
2020-03-05T06:45:04.000Z
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
null
null
null
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
5
2018-11-08T04:03:48.000Z
2020-03-05T06:45:06.000Z
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-10, 10, 40) y1 = 10 * x + 50 y2 = x**2 plt.figure() plt.plot(x, y1, 'b-') plt.plot(x, y2, 'b--') plt.xlim((-20, 20)) plt.ylim((-60, 160)) plt.xlabel('I am x') plt.ylabel('I am y') plt.xticks(np.linspace(-20, 20, 5)) plt.yticks([0, 50, 100], [r'$bad$...
24.322581
60
0.690981
4552844d1989cd409ab97253e0c1d21d415c08b6
1,943
py
Python
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
1
2021-06-14T20:27:30.000Z
2021-06-14T20:27:30.000Z
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
null
null
null
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
1
2021-06-14T20:27:55.000Z
2021-06-14T20:27:55.000Z
#!/usr/bin/env python # # # # Autor: Michela Negro, GSFC/CRESST/UMBC . # # On behalf of the Fermi-LAT Collaboration. ...
36.660377
80
0.507463
4554d96aff6eab12cf01ea18c66f303bf1e65edd
3,008
py
Python
tests/test_clouds.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
1
2019-04-10T11:37:25.000Z
2019-04-10T11:37:25.000Z
tests/test_clouds.py
d-mo/mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
3
2021-04-07T23:15:17.000Z
2021-09-23T23:21:45.000Z
tests/test_clouds.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
null
null
null
"""Tests Cloud models and Controllers""" import os import uuid import json from deepdiff import DeepDiff from pprint import pprint def diff(a, b, **kwargs): """Return a recursive diff of two objects after casting unicodes to str""" return DeepDiff(unicode_to_str(a), unicode_to_str(b), **kwargs) def compar...
29.782178
78
0.628657
4555138ee889d6a8eb7274ba38acfdb8b6a01114
36,944
py
Python
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
null
null
null
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
null
null
null
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
1
2021-01-20T21:26:10.000Z
2021-01-20T21:26:10.000Z
# $ANTLR 3.1 jed.g 2014-02-17 18:49:15 import sys from antlr3 import * from antlr3.compat import set, frozenset import os import sys from bitarray import bitarray # for convenience in actions HIDDEN = BaseRecognizer.HIDDEN # token types F=9 STAR=19 OTHER=5 C=18 L=11 N=12 J=10 V=15 ONE=7 Q=14 P=13 EOF=-1 ...
27.570149
151
0.481242
4555aaa5efb8e9633d6c3233732fefd9345316e0
41
py
Python
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
(a + b + c + d+ e+ f )
4.555556
8
0.146341
4555f8bdea823e3c6bf72f128d96fb3a61fb035f
6,542
py
Python
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ --- Day 10: The Stars Align --- It's no use; your navigation system simply isn't capable of providing walking directions in the arctic circle, and certainly not in 1018. The Elves suggest an alternative. In times like these, North Pole rescue operations will arrange points of light in the s...
32.068627
419
0.486854
4556270ed64165ee50af5ad0e7a8aeb1bf232a5f
302
py
Python
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from torrents import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url(r'^upload/$', views.upload, name='upload'), url(r'^browse/$', views.browse, name='browse'), ]
25.166667
51
0.735099
45563edf7177293ae810f1142fc2457d7d0c9f98
170,658
py
Python
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
1
2022-03-23T11:50:53.000Z
2022-03-23T11:50:53.000Z
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
4
2021-12-18T04:01:41.000Z
2022-03-10T16:13:18.000Z
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
null
null
null
""" This is the main script to analyze projects without an NDA in place. Authors: Nikhil Kondabala, Alexandra Arntsen, Andrew Black, Barrett Goudeau, Nigel Swytink-Binnema, Nicolas Jolin Updated: 7/01/2021 Example command line execution: python TACT.py -in /Users/aearntsen/cfarsMASTER/CFARSPhase3/test/518Tower...
55.211258
372
0.607127
4557176f3d49e4358253305342218dd4750b9adc
1,343
py
Python
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
1
2020-07-15T10:02:40.000Z
2020-07-15T10:02:40.000Z
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
null
null
null
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
null
null
null
""" @Author : xiaotao @Email : 18773993654@163.com @Lost modifid : 2020/4/24 10:18 @Filename : LanguagePack.py @Description : @Software : PyCharm """ # language_pack = { RET.OK: ("",), RET.DBERR: ("",), RET.NODATA: ("",), RET.DATAEXIST: ("",), RET.DATAERR: ("",), RET.REQE...
19.463768
52
0.531646
45582f74d0d0ee28b2acea145b7197bbf28904ac
1,414
py
Python
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='test@londonappdev.com', password='testpass'): """Create a sample user""" return get_user_model().objects.create_user(email, password)
28.28
68
0.642857
4558b0a8efff5ece908e59c6b9303248612636c0
2,427
py
Python
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
if __name__ == '__main__': bad_root = construct_bad_tree() assert not is_valid_tree(bad_root) good_root = construct_good_tree() assert is_valid_tree(good_root) bad_root2 = construct_bad_tree2() assert not is_valid_tree(bad_root2) good_root2 = construct_good_tree2() assert is...
22.682243
82
0.651834
455a1e9bca84b3eaa5bb4b8f7d096c8385e30f66
307
py
Python
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
18
2016-11-10T06:18:45.000Z
2022-02-27T14:49:00.000Z
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
null
null
null
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
13
2017-10-24T21:21:51.000Z
2020-06-27T15:41:54.000Z
import subprocess import time proc = subprocess.Popen( ["ping", "-c", "10", "localhost"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) counter = 0 for line in iter(proc.stdout.readline, ''): print line progress.setPercentage( counter ) counter +=10
18.058824
43
0.667752
455a97ef8134576551c4ea049b3b9d369f2092fc
630
py
Python
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
2
2021-05-21T07:03:14.000Z
2021-08-05T14:35:37.000Z
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
null
null
null
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
null
null
null
from get_earth import GetEarth # 835 , 1416 # p11 = (835, 1416) # p12 = (885,1516) # p1 = (886,1416) # p2 = (935,1516) # p1 = (885, 1415) # p2 = (890, 1420) # p1 = (890,1415) # p2 = (895,1420) # p1 = (835, 1416) # p2 = (885,1516) # start where you end it # p1 = (885, 1416) # p2 = (935,1516) # p1 = (835,1516) # ...
14.318182
43
0.555556
455cfcd1a4533c63cce20863058bc3230fd98394
2,076
py
Python
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
""" Solutions for day 12 of 2020's Advent of Code """ from typing import Tuple def part_a(data) -> int: """ Solution for part a Parameters ---------- data: str Returns ------- answer: int """ directions = ['N', 'E', 'S', 'W'] direction = 'E' n = 0 e = 0 fo...
21.625
65
0.461464
455d6ce36a65cf0610f2586646f75e04d7e70b2f
138
py
Python
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
import _logging as logging logger = logging.logging() logger.DEBUG('TEST') logger.ERROR('TEST') logger.INFO('TEST') logger.WARNING('TEST')
23
26
0.753623
455db22f99db07331fddab80325507e7476dc805
3,786
py
Python
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
19
2020-11-05T13:55:45.000Z
2021-01-08T13:19:40.000Z
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
29
2020-10-13T10:29:21.000Z
2021-01-10T18:34:06.000Z
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
6
2021-03-20T07:04:11.000Z
2022-03-22T02:39:03.000Z
# Object representing a stack instantiation.
46.740741
120
0.626519
455ecf77b284ae23c05aaa297b5a0ed55da0477f
1,519
py
Python
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Reads in photometry from different sources, normalizes them, and puts them # onto a BJD time scale # Created 2021 Dec. 28 by E.S. import numpy as np import pandas as pd from astropy.time import Time import matplotlib.pyplot as plt from sklearn.preprocessing import MinMaxScaler...
33.021739
120
0.75181
455edc273b8a123c3adfc56630705426d3b15ce0
356
py
Python
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
1
2022-02-24T17:30:53.000Z
2022-02-24T17:30:53.000Z
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
null
null
null
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
2
2021-10-06T11:52:41.000Z
2022-01-20T11:07:27.000Z
# Generated by Django 3.1.7 on 2021-03-08 09:39 from django.db import migrations
19.777778
64
0.623596
456020c6f80bf546826faf9d3db7db5ef4399eed
4,012
py
Python
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
3
2016-04-11T13:51:07.000Z
2022-03-10T15:42:24.000Z
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
null
null
null
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
null
null
null
from history.tools import normalization, filter_by_mins, create_sample_row from history.models import Price, PredictionTest import time from history.tools import print_and_log
48.337349
380
0.692423
45604bd1b05655ed30e4f3d8cdc52c6f47f66f14
16,129
py
Python
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
1
2018-07-24T05:40:44.000Z
2018-07-24T05:40:44.000Z
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
null
null
null
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 18 12:06:09 2018 @author: linkermann Wasserstein GAN simplified """ import os, sys sys.path.append(os.getcwd()) import tflib.save_images as imsaver import tflib.plot as plotter #import tflib.mnist as mnistloader import time import numpy as np impor...
49.627692
150
0.684915
456368c28972d08c5777b27f3941bd69bf9f4b4c
2,786
py
Python
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
null
null
null
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
5
2018-10-15T11:52:05.000Z
2018-10-30T12:58:53.000Z
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
null
null
null
from rl_teacher.segment_sampling import segments_from_rand_rollout, sample_segment_from_path, basic_segment_from_null_action import numpy as np
37.648649
169
0.66224
45636a74d98ccc7ab3ff22be9c83602f958559c0
9,474
py
Python
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################## # NSAp - Copyright (C) CEA, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html #...
34.830882
79
0.576947
456499cb6f4f56978c9d9e33ec8c47f7702e105f
1,161
py
Python
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
import collections import flask_restplus from flask_restplus import fields from flask_restplus import reqparse from api import util api = util.build_api('alpha', __name__, url_prefix='/subparts/alpha') v1 = util.build_namespace(api, 'v1', description='Version 1') AlphaSpec = collections.namedtuple('Alpha', ['x_and_...
32.25
77
0.707149
4566cf4e6c09c759fddb48cfdd14738b0604abb8
4,612
py
Python
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
"""# Baseline classifier and regressor""" import numpy as np import pandas as pd from sklearn.base import BaseEstimator, ClassifierMixin, RegressorMixin from sklearn.utils.multiclass import check_classification_targets from sklearn.utils.validation import _check_sample_weight
28.645963
96
0.597572
456a57330f91e998b987f4f3389f029412491435
268
py
Python
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
11
2018-07-13T14:40:56.000Z
2021-07-09T07:27:37.000Z
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
167
2018-06-30T13:40:18.000Z
2021-07-27T06:27:54.000Z
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
2
2018-11-07T12:19:39.000Z
2018-11-10T10:03:21.000Z
import requests response = requests.get("https://cojeapi.honzajavorek.now.sh/movies") movies = response.json() for movie in movies: response = requests.get(movie['url']) movie_details = response.json() print(movie_details['name'], movie_details['year'])
26.8
69
0.720149
456b9d36efdf097837bfdedc583dac092dcbd61c
4,927
py
Python
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
null
null
null
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
null
null
null
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
4
2021-01-10T02:22:24.000Z
2021-01-29T07:01:16.000Z
""" Program to provide generic parsing for all files in user-specified directory. The program assumes the input files have been scrubbed, i.e., HTML, ASCII-encoded binary, and any other embedded document structures that are not intended to be analyzed have been deleted from the file. Dependencies: Pytho...
38.795276
104
0.629592
456ce9a81e255b4fb4013dc47630ffa6a975e439
1,542
py
Python
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
1
2020-10-11T15:34:56.000Z
2020-10-11T15:34:56.000Z
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
import sinput import keys
24.09375
66
0.559663
456d5f84b2506b512723f3a37ab5b953c8eded00
4,882
py
Python
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
import os from sklearn.model_selection import train_test_split import numpy as np from operator import itemgetter from math import log import random from gensim.summarization.summarizer import summarize from sklearn.naive_bayes import BernoulliNB from sklearn.metrics import accuracy_score from sklearn.metrics import co...
33.902778
140
0.670012
456d637d0c21bbaf1dc386e6ddbca0f048272275
785
py
Python
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
1
2020-01-08T14:10:24.000Z
2020-01-08T14:10:24.000Z
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
null
null
null
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
null
null
null
""" 295. Find Median from Data Stream https://leetcode.com/problems/find-median-from-data-stream/ Time complexity: O() Space complexity: O() Solution: """ from typing import List # Your MedianFinder object will be instantiated and called as such: # obj = MedianFinder() # obj.addNum(num) # param_2 = ob...
23.787879
68
0.559236
456e07cc6bba172145470a41d9133e6c7f291230
2,701
py
Python
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
null
null
null
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
null
null
null
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
1
2021-12-03T05:28:20.000Z
2021-12-03T05:28:20.000Z
from gql import gql, Client from gql.transport.requests import RequestsHTTPTransport import requests from datetime import datetime, timedelta, timezone import os from os.path import join, dirname from dotenv import load_dotenv dotenv_path = join(dirname(__file__), "../../", '.env') load_dotenv(dotenv_path) RASPI_URL ...
28.135417
90
0.583858
456e575a68c8ec3a64ef628b7c4703459442d23a
199
py
Python
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
9
2020-10-25T15:13:32.000Z
2022-03-26T11:27:21.000Z
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
null
null
null
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
7
2021-03-01T11:06:45.000Z
2022-03-14T07:06:04.000Z
import requests import pandas as pd url = "http://comp.fnguide.com/SVO2/common/lookup_data.asp?mkt_gb=1&comp_gb=1" resp = requests.get(url) data = resp.json() df = pd.DataFrame(data=data) df.head()
22.111111
78
0.738693
4570e2df961c67f0b695d56e2b1d04a5a28131d6
7,316
py
Python
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
1
2021-04-23T21:04:57.000Z
2021-04-23T21:04:57.000Z
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
2
2021-03-04T19:48:38.000Z
2021-03-07T06:39:55.000Z
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
2
2021-03-27T17:28:07.000Z
2021-04-23T21:05:05.000Z
import arcade from arcade.gui import UIImageButton, UIManager, UIToggle import game.constants as constants from game.gameview import GameView
33.254545
122
0.613313
4571550f6f8b64310d107516d99e19dee198a41b
2,711
py
Python
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE is licensed under the MIT License. License for BK-BASE : ---------------------------------------------------------------...
41.707692
111
0.727407
4571c0f5a311380362a2ed94f464b2d2bf10f14f
1,162
py
Python
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from watson_developer_cloud import NaturalLanguageUnderstandingV1 as nlu import watson_developer_cloud.natural_language_understanding.features.v1 \ as Features if __name__ == '__main__': concept_recog()
28.341463
74
0.605852
45723f2ab738ef71e49f0975850a3b605e12c203
2,120
py
Python
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
import pytest from factor import modular_inverse, continued_fraction, approximate_fraction, is_prime
34.193548
86
0.64717
4573153b3fe512c2a5e16ccae54eb2974cf42494
6,242
py
Python
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os import zmq import time import logging from PyQt5 import QtWidgets as W, QtCore as C, QtGui as G from qtzevents.bus import Pub, Push from qtzevents.background import Background from images7.config import Config from images7.system import System from .grid import ThumbView ...
27.257642
103
0.630567
45754cc8939f2ca8f5551df60c1a102df61680b5
2,049
py
Python
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
iphone_price = 5800 mac_price = 9000 coffee_price = 32 python_price = 80 bicyle_price = 1500 list = [] salary = int(input("Please input your salary:")) print("********************") while True: print("1. iPhone 11 %d" % iphone_price) print("2. Mac book %d" % mac_price) print("3. coffee %d" % coffee...
28.859155
60
0.537823
45756f7f3335ea9abab94df669ff19ff707b1db9
1,079
py
Python
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact import random
46.913043
107
0.720111
4576b3475ac0244bd672a11541f51bd060fa0ab8
1,555
py
Python
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
1
2022-03-21T22:41:58.000Z
2022-03-21T22:41:58.000Z
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
47
2020-10-02T20:33:58.000Z
2022-03-31T19:10:18.000Z
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
4
2020-05-25T04:50:51.000Z
2022-02-04T15:20:28.000Z
from pathlib import Path from typing import Sequence import tomlkit from .types import BaseReader, Distribution
29.339623
91
0.534405
457919564bdf80b71f716bf686e0ed54de0bb593
9,424
py
Python
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
"""Implementation of TypedDict.""" import dataclasses from typing import Any, Dict, Set from pytype.abstract import abstract from pytype.abstract import abstract_utils from pytype.abstract import function from pytype.overlays import classgen from pytype.pytd import pytd def _check_str_key(self, name): if ...
34.520147
80
0.694822
4579450f7ab9dcd55c2527f2db1b882e121fbb78
4,962
py
Python
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
148
2017-02-07T13:16:03.000Z
2022-03-26T02:21:56.000Z
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
2,026
2017-02-03T12:57:13.000Z
2022-03-31T15:11:51.000Z
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
113
2017-01-27T13:10:19.000Z
2022-02-03T13:42:11.000Z
"""ESMValTool CMORizer for APHRODITE Monsoon Asia (APHRO-MA) data. Tier Tier 3: restricted dataset. Source http://aphrodite.st.hirosaki-u.ac.jp/download/ Last access 20200306 Download and processing instructions Register at http://aphrodite.st.hirosaki-u.ac.jp/download/create/ Download the ...
33.08
77
0.620919
457e24632a032a8570bd0202286ce93c186089e2
1,285
py
Python
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
import sys import json from pathlib import Path from unittest.mock import patch import pytest from conftest import FakeFile, config # @patch.object(sys, "argv", ["backup_utils", "-r"]) # @patch("backup_utils.databases.databases") # @patch("backup_utils.syncs.syncs") # @patch("backup_utils.tasks.tasks") # def tes...
25.7
68
0.650584
457e2b38d8a451c8e775c1c394ef7b2670d5e8bd
5,074
py
Python
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
18
2019-04-30T21:07:30.000Z
2021-12-16T17:56:08.000Z
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
30
2019-02-26T11:25:44.000Z
2021-04-16T00:12:11.000Z
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
6
2019-02-25T22:12:29.000Z
2020-12-23T00:24:48.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from copy import deepcopy import mock import pytest from swagger_spec_compatibility.spec_utils import load_spec_from_spec_dict from swagger_spec_compatibility.util import Entit...
38.732824
136
0.522862
457e798e0ae1080ec8d8cbb20b32459584d047c1
4,997
py
Python
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
from logisimpy.circuit import Circuit, Wire from logisimpy.logic import AND, AND3, NOT, OR
26.721925
86
0.336202
4580e5185df673dea05c4292da77636775a057d5
434
py
Python
flocka/forms/branch.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
null
null
null
flocka/forms/branch.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
null
null
null
flocka/forms/branch.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
null
null
null
from flask_wtf import Form from wtforms import StringField from wtforms.validators import DataRequired
25.529412
64
0.658986
458209565dea8013a3f4eb68bbd3789f17400e4a
2,458
py
Python
igvjs/main.py
Sparktx-Data-Science/igv.js-flask
1fc3a6623b6a747830ea0b4c3636adb4e6134c9f
[ "MIT" ]
25
2017-07-20T07:41:30.000Z
2021-12-30T15:49:03.000Z
igvjs/main.py
kkapuria3/igv.js-flask
f3cde4547eaa29133535f95501778d9fe492532d
[ "MIT" ]
10
2017-09-07T23:30:26.000Z
2021-08-06T05:08:32.000Z
igvjs/main.py
kkapuria3/igv.js-flask
f3cde4547eaa29133535f95501778d9fe492532d
[ "MIT" ]
12
2017-10-05T15:00:13.000Z
2021-12-30T15:49:07.000Z
import requests import re import os from flask import Response, request, abort, render_template, url_for, Blueprint from igvjs._config import basedir seen_tokens = set() igvjs_blueprint = Blueprint('igvjs', __name__) # give blueprint access to app config # routes def allowed_emails(): emails = [] if os.pat...
35.114286
94
0.634662
4583a8b165ab4c78a4b26d904a7a68c5264ba730
335
py
Python
ccij/ccij/doctype/representacion/representacion.py
dacosta2213/ccij
ef68d49d8dbabd5e381bcd411dc48b670621e666
[ "MIT" ]
null
null
null
ccij/ccij/doctype/representacion/representacion.py
dacosta2213/ccij
ef68d49d8dbabd5e381bcd411dc48b670621e666
[ "MIT" ]
null
null
null
ccij/ccij/doctype/representacion/representacion.py
dacosta2213/ccij
ef68d49d8dbabd5e381bcd411dc48b670621e666
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, Totall and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document
23.928571
50
0.755224
4583c54cfccd1fb3b1fb1dbcb0947ff6d8d1c59a
458
py
Python
Modulo 1/009.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
1
2022-03-22T22:36:48.000Z
2022-03-22T22:36:48.000Z
Modulo 1/009.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
null
null
null
Modulo 1/009.py
thiago19maciel/Exercicios-em-Python
0d46816caf655c6e870510bb1136964854fc875f
[ "MIT" ]
null
null
null
numero = int(input('Tabuada do ')) print(f'{numero} X 0 = {numero*0}') print(f'{numero} X 1 = {numero*1}') print(f'{numero} X 2 = {numero*2}') print(f'{numero} X 3 = {numero*3}') print(f'{numero} X 4 = {numero*4}') print(f'{numero} X 5 = {numero*5}') print(f'{numero} X 6 = {numero*6}') print(f'{numero} X ...
38.166667
39
0.558952
4584c9acdb19bbdce86f86b2d488f787d8a6387a
5,068
py
Python
kraken/shut_down/common_shut_down_func.py
Sau1506mya/kraken-1
4f7616a1508e0f1f64356512aeda265e1dce5144
[ "Apache-2.0" ]
83
2021-01-15T10:42:22.000Z
2022-03-23T16:01:22.000Z
kraken/shut_down/common_shut_down_func.py
Sau1506mya/kraken-1
4f7616a1508e0f1f64356512aeda265e1dce5144
[ "Apache-2.0" ]
126
2021-01-19T07:41:06.000Z
2022-03-31T16:27:02.000Z
kraken/shut_down/common_shut_down_func.py
Sau1506mya/kraken-1
4f7616a1508e0f1f64356512aeda265e1dce5144
[ "Apache-2.0" ]
26
2021-01-27T19:34:33.000Z
2022-03-18T21:18:35.000Z
#!/usr/bin/env python import sys import yaml import logging import time from multiprocessing.pool import ThreadPool import kraken.cerberus.setup as cerberus import kraken.kubernetes.client as kubecli import kraken.post_actions.actions as post_actions from kraken.node_actions.aws_node_scenarios import AWS from kraken.n...
40.870968
103
0.653907
4588e1870c69bb48a27afabbf83f4786a23a64c3
16,539
py
Python
game_seq_embedder/app/app_utils.py
Anonymous9999999/Pretrain-via-MTC
bc47c162aecb68708b68d8ff7c9bfd54b0fc485e
[ "Artistic-1.0-Perl" ]
null
null
null
game_seq_embedder/app/app_utils.py
Anonymous9999999/Pretrain-via-MTC
bc47c162aecb68708b68d8ff7c9bfd54b0fc485e
[ "Artistic-1.0-Perl" ]
null
null
null
game_seq_embedder/app/app_utils.py
Anonymous9999999/Pretrain-via-MTC
bc47c162aecb68708b68d8ff7c9bfd54b0fc485e
[ "Artistic-1.0-Perl" ]
null
null
null
import h5py import collections import numpy as np import os import ipdb import math import time import datetime import random import torch from torch.utils.data.dataset import Dataset def get_dataset( tokenizer, block_size, behave_tokenizer=None, design_tokenizer=None, use_...
39.949275
120
0.589697
4588f69996e623a4acf1af26a59a4813391ce065
248
py
Python
hackerrank/regex/intro/05-word.py
everarch/psets
7fddb2a01ce8c4e601d63c3be3b11cd2113be035
[ "MIT" ]
null
null
null
hackerrank/regex/intro/05-word.py
everarch/psets
7fddb2a01ce8c4e601d63c3be3b11cd2113be035
[ "MIT" ]
null
null
null
hackerrank/regex/intro/05-word.py
everarch/psets
7fddb2a01ce8c4e601d63c3be3b11cd2113be035
[ "MIT" ]
null
null
null
# # Matching Word & Non-Word Character # # https://www.hackerrank.com/challenges/matching-word-non-word/problem # Regex_Pattern = r"\w{3}\W\w{10}\W\w{3}" # Do not delete 'r'. import re print(str(bool(re.search(Regex_Pattern, input()))).lower())
20.666667
70
0.689516
4589ea2bd19fdb4c4eadac909d6adbd2ca938167
980
py
Python
python/problems/same_tree.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2019-05-04T13:21:41.000Z
2019-05-04T13:21:41.000Z
python/problems/same_tree.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
1
2021-08-30T09:34:58.000Z
2021-08-30T09:34:58.000Z
python/problems/same_tree.py
vivaxy/algorithms
b2e49476ed2ad1fd82a1183f656d1907a666c347
[ "MIT" ]
null
null
null
""" https://leetcode.com/problems/same-tree/ https://leetcode.com/submissions/detail/109733704/ """ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None from common.tree_node import TreeNode import ...
21.777778
111
0.584694
458a74a131096b9821f4d2a10c82a473fe5352fd
30,220
py
Python
src/pagure/forms.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/forms.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
src/pagure/forms.py
yifengyou/learn-pagure
e54ba955368918c92ad2be6347b53bb2c24a228c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ (c) 2014-2016 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> """ # pylint: disable=too-few-public-methods # pylint: disable=no-init # pylint: disable=super-on-old-class from __future__ import unicode_literals, absolute_import import datetime import re i...
30.556117
79
0.615321
458b9c87e0590b71665c205e005ed91d9aac38d7
5,285
py
Python
docknv/shell/handlers/service.py
sharingcloud/docknv
6eec6a576a32cb05278b7af045f90859066c9f1d
[ "MIT" ]
null
null
null
docknv/shell/handlers/service.py
sharingcloud/docknv
6eec6a576a32cb05278b7af045f90859066c9f1d
[ "MIT" ]
null
null
null
docknv/shell/handlers/service.py
sharingcloud/docknv
6eec6a576a32cb05278b7af045f90859066c9f1d
[ "MIT" ]
null
null
null
"""Service sub commands.""" from docknv.shell.common import exec_handler, load_project
28.111702
78
0.653359
458bd70a94f9a431da5e652ce85be0f3753bf347
7,254
py
Python
fgapiserverconfig.py
FutureGateway/geAPIServer
486056784e2927342d0079aef12be7e05d3832f5
[ "Apache-2.0" ]
null
null
null
fgapiserverconfig.py
FutureGateway/geAPIServer
486056784e2927342d0079aef12be7e05d3832f5
[ "Apache-2.0" ]
null
null
null
fgapiserverconfig.py
FutureGateway/geAPIServer
486056784e2927342d0079aef12be7e05d3832f5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015: # Istituto Nazionale di Fisica Nucleare (INFN), Italy # Consorzio COMETA (COMETA), Italy # # See http://www.infn.it and and http://www.consorzio-cometa.it for details on # the copyright holders. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
39.423913
78
0.602426
458d75bdd1f6d36bbdc888e70fe25b1dda1e7cf1
130
py
Python
src/read_data.py
argj92/bball
226827249c83647263447e3ef9f831e70ae1dfa3
[ "Apache-2.0" ]
null
null
null
src/read_data.py
argj92/bball
226827249c83647263447e3ef9f831e70ae1dfa3
[ "Apache-2.0" ]
null
null
null
src/read_data.py
argj92/bball
226827249c83647263447e3ef9f831e70ae1dfa3
[ "Apache-2.0" ]
1
2018-09-26T02:13:47.000Z
2018-09-26T02:13:47.000Z
import pandas as pd import numpy as np if __name__ == "__main__": main()
16.25
39
0.669231
458efec9cad1dcaa401e2261be2ecb2c2d569528
1,466
py
Python
canvasaio/bookmark.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
canvasaio/bookmark.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
canvasaio/bookmark.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
from canvasaio.canvas_object import CanvasObject from canvasaio.util import combine_kwargs
32.577778
100
0.621419
458fa1840f8fd2566ce3891b8a4741c03204e606
5,295
py
Python
hivwholeseq/sequencing/split_reads_for_mapping.py
neherlab/hivwholeseq
978ce4060362e4973f92b122ed5340a5314d7844
[ "MIT" ]
3
2016-09-13T12:15:47.000Z
2021-07-03T01:28:56.000Z
hivwholeseq/sequencing/split_reads_for_mapping.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
null
null
null
hivwholeseq/sequencing/split_reads_for_mapping.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
3
2016-01-17T03:43:46.000Z
2020-03-25T07:00:11.000Z
#!/usr/bin/env python # vim: fdm=marker ''' author: Fabio Zanini date: 17/05/14 content: Split the reads for mapping into small aliquots, to exploit the short queue on the cluster. ''' # Modules import os import sys import time import argparse import pysam import numpy as np import subprocess a...
36.267123
115
0.630595
458fd64c7c730e3cd0e0feae971b00d775ff1c85
3,843
py
Python
spikeforest/forestview/sortingresultcontext.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
1
2021-09-23T01:07:19.000Z
2021-09-23T01:07:19.000Z
spikeforest/forestview/sortingresultcontext.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
null
null
null
spikeforest/forestview/sortingresultcontext.py
mhhennig/spikeforest
5b4507ead724af3de0be5d48a3b23aaedb0be170
[ "Apache-2.0" ]
1
2021-09-23T01:07:21.000Z
2021-09-23T01:07:21.000Z
from spikeforest import SFMdaSortingExtractor from copy import deepcopy from mountaintools import client as mt from .recordingcontext import RecordingContext import mtlogging
33.417391
112
0.684361
4590230328e5c1d8487fcc4dc18325b330d72349
2,712
py
Python
sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py
herove/dotfiles
5f08d4d6f518758b3ad0516d9e704edf251e8ff3
[ "MIT" ]
1
2018-06-23T08:07:39.000Z
2018-06-23T08:07:39.000Z
sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py
herove/dotfiles
5f08d4d6f518758b3ad0516d9e704edf251e8ff3
[ "MIT" ]
null
null
null
sublime/Packages/BracketHighlighter/bh_modules/tagattrselect.py
herove/dotfiles
5f08d4d6f518758b3ad0516d9e704edf251e8ff3
[ "MIT" ]
null
null
null
import bh_plugin
35.220779
106
0.450959
45916c29934819dc98d987bba06861eec3a41f1f
8,304
py
Python
backend/tools/code/merge/git-auto.py
lokiworks/codebase
48a7dfc65311f2776efc87d254dc006251f77628
[ "MIT" ]
2
2021-01-20T13:48:32.000Z
2021-11-14T13:29:19.000Z
backend/tools/code/merge/git-auto.py
lokiworks/codebase
48a7dfc65311f2776efc87d254dc006251f77628
[ "MIT" ]
4
2020-05-19T14:02:17.000Z
2021-08-15T11:17:30.000Z
backend/tools/code/merge/git-auto.py
lokiworks/codebase
48a7dfc65311f2776efc87d254dc006251f77628
[ "MIT" ]
null
null
null
"""" using python version 3.7+ python-gitlab version 1.8.0 python-jenkins version 1.7.0 """ import gitlab import jenkins import smtplib import ssl import markdown from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def main(): """ Gitlab Account Information """ # ...
32.4375
120
0.595376
4591e96ca8eecc10cdc680e19398cdebfb252e8a
5,189
py
Python
interpro7dw/interpro/oracle/clans.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
interpro7dw/interpro/oracle/clans.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
interpro7dw/interpro/oracle/clans.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
import json import pickle from typing import Dict import cx_Oracle from interpro7dw import pfam from interpro7dw.utils import logger from interpro7dw.utils.oracle import lob_as_str from interpro7dw.utils.store import BasicStore
28.827778
78
0.533629
459361bbb100cff1efc28163721eb85c951bcf87
4,054
py
Python
tests/test_core/test_controller.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_core/test_controller.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
tests/test_core/test_controller.py
aaron-parsons/pymalcolm
4e7ebd6b09382ab7e013278a81097d17873fa5c4
[ "Apache-2.0" ]
null
null
null
import unittest from annotypes import add_call_types, Anno from malcolm.core import Controller, Part, PartRegistrar, StringMeta, \ Process, Queue, Get, Return, Put, Error, Post, Subscribe, Update, \ Unsubscribe with Anno("The return value"): AWorld = str
33.783333
91
0.629008
45937b2939b14680c7fe8bf6cdcae998c44d589b
2,364
py
Python
Violent_Python/Chapter2/2.063injectPage.py
suleisulei/Violent_Python_Examples
df88fc8b0dde5fac135647d46130e98a4f6b90e2
[ "Apache-2.0" ]
2
2019-07-30T13:47:43.000Z
2021-12-27T09:03:47.000Z
Violent_Python/Chapter2/2.063injectPage.py
suleisulei/Violent_Python_Examples
df88fc8b0dde5fac135647d46130e98a4f6b90e2
[ "Apache-2.0" ]
null
null
null
Violent_Python/Chapter2/2.063injectPage.py
suleisulei/Violent_Python_Examples
df88fc8b0dde5fac135647d46130e98a4f6b90e2
[ "Apache-2.0" ]
null
null
null
# _*_coding:utf8- import ftplib from Violent_Python import _Config ''' This code, we need learning how to upload file or download file with target FTP. Note:Make sure your "write enable equal YES" in your /etc/vsftpd.conf Document: --------- 1. we logon target FTP, and use ftp.retrlines(cmd,callback) function down...
33.771429
108
0.600677
4594f72e405e0824b4be1fe0fefd39e46766217c
684
py
Python
dado.py
crysller/Dado
63c77bb81bec6fe9d2add2b0d14ba5d399b30018
[ "MIT" ]
null
null
null
dado.py
crysller/Dado
63c77bb81bec6fe9d2add2b0d14ba5d399b30018
[ "MIT" ]
null
null
null
dado.py
crysller/Dado
63c77bb81bec6fe9d2add2b0d14ba5d399b30018
[ "MIT" ]
null
null
null
from random import randint from time import sleep continuar = 'Ss' while continuar in 'Ss': print('\033[1;32mVamos jogar. Exemplo: 1d20 ou 5d10\033[m') opc = input() qntDados = int(opc[:1]) valorDado = int(opc[2:]) if qntDados > 10 or valorDado not in [4,6,8,10,12,20,100]: print('\033[1;31m...
34.2
89
0.599415
4595098c311e3e92f7b064d28a78bd111f665e93
3,155
py
Python
tests/test_marklogic_utils.py
marklogic/newrelic-plugin
61bf437cace1c9d9b517e7ae2ad0022b8225086c
[ "Apache-2.0" ]
3
2017-07-08T04:28:43.000Z
2020-03-25T17:35:22.000Z
tests/test_marklogic_utils.py
marklogic-community/newrelic-plugin
61bf437cace1c9d9b517e7ae2ad0022b8225086c
[ "Apache-2.0" ]
13
2017-08-03T19:06:49.000Z
2021-06-25T15:25:03.000Z
tests/test_marklogic_utils.py
marklogic-community/newrelic-plugin
61bf437cace1c9d9b517e7ae2ad0022b8225086c
[ "Apache-2.0" ]
3
2019-03-16T22:15:31.000Z
2020-03-25T17:35:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 MarkLogic 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# # # U...
39.4375
131
0.701109
4595f169799444e02f534a9747ed945159901694
1,094
py
Python
test/signature.py
orbs-network/orbs-client-sdk-python
1e8d5699ee98e2ff59d36081eb569237949a558b
[ "MIT" ]
5
2018-08-10T15:39:46.000Z
2020-02-10T03:14:51.000Z
test/signature.py
orbs-network/orbs-client-sdk-python
1e8d5699ee98e2ff59d36081eb569237949a558b
[ "MIT" ]
3
2018-06-22T07:32:46.000Z
2018-12-13T14:16:56.000Z
test/signature.py
orbs-network/orbs-client-sdk-python
1e8d5699ee98e2ff59d36081eb569237949a558b
[ "MIT" ]
2
2018-07-01T12:45:38.000Z
2020-04-13T11:09:36.000Z
import unittest from os import sys, path from crypto.signature import Signature sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) if __name__ == '__main__': unittest.main()
42.076923
167
0.761426
45960c81e911bf2eccfc72ba2ed6263dc24bbc1a
429
py
Python
bbs_viewer/modules/points/admin.py
yoophi/bbs_viewer
bda8604c02214738c55b6130450d0bff15ee9a0d
[ "MIT" ]
null
null
null
bbs_viewer/modules/points/admin.py
yoophi/bbs_viewer
bda8604c02214738c55b6130450d0bff15ee9a0d
[ "MIT" ]
null
null
null
bbs_viewer/modules/points/admin.py
yoophi/bbs_viewer
bda8604c02214738c55b6130450d0bff15ee9a0d
[ "MIT" ]
null
null
null
# -*- coding: utf8 from __future__ import unicode_literals from flask_admin.contrib.sqla import ModelView from instashare.database import db from instashare.extensions import admin from .models import UserPointInfo, UserDailyPointInfo, \ UserPointHistory admin.add_view(ModelView(UserPointInfo, db.session)) admin...
30.642857
57
0.827506
459719287cbd8d4d670931c7497d555a6c24e23b
318
py
Python
q3volume.py
tiwa2022/Lab2
22ebbe4367316a969c0a1642747516b606618ca5
[ "MIT" ]
1
2022-01-27T16:57:53.000Z
2022-01-27T16:57:53.000Z
q3volume.py
tiwa2022/Lab2
22ebbe4367316a969c0a1642747516b606618ca5
[ "MIT" ]
null
null
null
q3volume.py
tiwa2022/Lab2
22ebbe4367316a969c0a1642747516b606618ca5
[ "MIT" ]
null
null
null
#input print("This program find the volume of a cylinder") PI= 3.14159265359 diameter= float(input("Enter diameter: ")) height= float(input("Enter height: ")) #processing volume= PI * diameter *height #output (print("The volume of a cyclinder with a diameter of",diameter, "and a height of", height, "is",volume))
26.5
105
0.72327
45973111e2e222b6bc6613d5dc785ebea5705bc1
946
py
Python
cp_rest.py
cloudplugs/rest-python
63ea5c3ba699663912c728f67b190a9141448786
[ "Apache-2.0" ]
null
null
null
cp_rest.py
cloudplugs/rest-python
63ea5c3ba699663912c728f67b190a9141448786
[ "Apache-2.0" ]
null
null
null
cp_rest.py
cloudplugs/rest-python
63ea5c3ba699663912c728f67b190a9141448786
[ "Apache-2.0" ]
null
null
null
CloudPlugHttpResult = CP_HTTP_RESULT CloudPlugErrorCode = CP_ERR_CODE
27.823529
39
0.743129
4599de31dc9c5682547c724f43eebc62f2ecf2f8
600
py
Python
components.py
andrewmccullough/linksaver
443dbe9ec4df76f30884550b7da3402cfad194d1
[ "Apache-2.0" ]
1
2017-09-18T01:39:08.000Z
2017-09-18T01:39:08.000Z
components.py
andrewmccullough/linksaver
443dbe9ec4df76f30884550b7da3402cfad194d1
[ "Apache-2.0" ]
null
null
null
components.py
andrewmccullough/linksaver
443dbe9ec4df76f30884550b7da3402cfad194d1
[ "Apache-2.0" ]
null
null
null
import praw # Visit the PRAW website for instructions on installation and configuration. # https://praw.readthedocs.io/en/latest/getting_started/authentication.html#script-application username="" #Your username. reddit = praw.Reddit( client_id = "", #14 character code. client_secret = "", #27 character code....
28.571429
117
0.688333
459b4482cc67e06b82631e6053118e1bd6455789
2,219
py
Python
ebay_accounts/test_settings.py
luke-dixon/django-ebay-accounts
54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0
[ "BSD-3-Clause" ]
4
2018-01-28T20:10:11.000Z
2020-09-06T14:30:36.000Z
ebay_accounts/test_settings.py
luke-dixon/django-ebay-accounts
54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0
[ "BSD-3-Clause" ]
7
2017-06-04T08:50:06.000Z
2020-09-06T16:03:53.000Z
ebay_accounts/test_settings.py
luke-dixon/django-ebay-accounts
54cf0e90b75dfbdd63bcd588f3c4771ebe1297c0
[ "BSD-3-Clause" ]
7
2017-06-01T09:51:35.000Z
2021-05-25T16:01:53.000Z
# -*- coding: utf-8 -*- """ Test Settings """ import django APP_NAME = 'ebay_accounts' INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'ebay_accounts', ) MIDDLEWARE = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.Cs...
26.105882
74
0.605228
459ba84999942fac75ac072ba3f560b858a33ebf
2,736
py
Python
indicatorParametersUI.py
webclinic017/backtrader-pyqt-ui
71630a387e63bb054e069e05efe1baa7e98551b2
[ "MIT" ]
105
2021-11-20T20:28:26.000Z
2022-03-31T14:19:07.000Z
indicatorParametersUI.py
tubu/backtrader-pyqt-ui
543ebb2049b0e58feb1b0bec760a32ea619097a0
[ "MIT" ]
2
2021-11-16T14:48:11.000Z
2022-01-20T19:20:08.000Z
indicatorParametersUI.py
tubu/backtrader-pyqt-ui
543ebb2049b0e58feb1b0bec760a32ea619097a0
[ "MIT" ]
48
2021-11-20T20:28:30.000Z
2022-03-28T16:18:15.000Z
from PyQt5 import QtCore, QtWidgets, QtGui, uic import os
30.065934
87
0.613304
459cfc983851a8ba57e8cee990af42bcae99c62a
699
py
Python
django-simple-captcha/captcha/tests/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
django-simple-captcha/captcha/tests/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
django-simple-captcha/captcha/tests/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
try: from django.conf.urls import url, patterns, include except ImportError: from django.conf.urls.defaults import url, patterns, include urlpatterns = patterns('', url(r'test/$', 'captcha.tests.views.test', name='captcha-test'), url(r'test-modelform/$', 'captcha.tests.views.test_model_form', name='cap...
49.928571
111
0.719599
459db3d81ac904122652cb0bff922fb7f630a44a
5,475
py
Python
export/views.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
export/views.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
export/views.py
felix-engelmann/badgecc
5bc0ced339f18737e24cc34935a87e96ae14a825
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.template.loader import render_to_string from django.http import HttpResponse from django.conf import settings from persons.models import Role, Right, Department, Person from math import floor import os from subprocess import Popen, PIPE import tempfile # Create your...
29.755435
184
0.588493
459fe241fa9cf83ded4a40b6c2040315ffceaa98
7,118
py
Python
Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py
fromasmtodisasm/o3de
0d728a76778cb0ca88caa5c07f17162fac668b2a
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py
fromasmtodisasm/o3de
0d728a76778cb0ca88caa5c07f17162fac668b2a
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/Atom/Feature/Common/Editor/Scripts/ColorGrading/lut_helper.py
fromasmtodisasm/o3de
0d728a76778cb0ca88caa5c07f17162fac668b2a
[ "Apache-2.0", "MIT" ]
null
null
null
# coding:utf-8 #!/usr/bin/python # # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # # lut_helper.py import sys import os import argparse import math import s...
38.064171
139
0.631779
45a007eb5d03a7c8e9669fdf3b4bcdcd8f2e9700
2,922
py
Python
raxmlOutputWindows/standardLayout.py
chilleo/ALPHA
61ac17a08eb4eb778cec9236f4792c97969311a2
[ "MIT" ]
11
2017-09-18T20:32:04.000Z
2020-08-27T03:38:03.000Z
raxmlOutputWindows/standardLayout.py
chilleo/ALPHA
61ac17a08eb4eb778cec9236f4792c97969311a2
[ "MIT" ]
3
2017-09-30T00:13:47.000Z
2019-06-18T23:24:55.000Z
raxmlOutputWindows/standardLayout.py
chilleo/ALPHA
61ac17a08eb4eb778cec9236f4792c97969311a2
[ "MIT" ]
5
2017-09-28T01:17:15.000Z
2019-05-11T08:56:29.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'standardLayout.ui' # # Created by: PyQt4 UI code generator 4.12 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: try: _encodin...
39.486486
80
0.710815
45a09665933e84a803dd9206ddcc338279cc67a4
283
py
Python
setup.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
1
2022-02-20T08:21:07.000Z
2022-02-20T08:21:07.000Z
setup.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
1
2022-03-08T12:46:09.000Z
2022-03-08T12:46:09.000Z
setup.py
zauberzeug/rosys
10271c88ffd5dcc4fb8eec93d46fe4144a9e40d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from distutils.core import setup setup( name='RoSys', version='0.1', description='Zauberzeug Robot System', author='Zauberzeug', author_email='info@zauberzeug.com', url='https://github.com/zauberzeug/rosys/', packages=['rosys'], )
21.769231
47
0.667845
45a097cba2dbbe048aae9c8954d61af23516651a
7,560
py
Python
recon/nmap.py
bbhunter/recon-pipeline
234fe5e639c2a6ef7573410eb4765df07fb352d1
[ "MIT" ]
null
null
null
recon/nmap.py
bbhunter/recon-pipeline
234fe5e639c2a6ef7573410eb4765df07fb352d1
[ "MIT" ]
null
null
null
recon/nmap.py
bbhunter/recon-pipeline
234fe5e639c2a6ef7573410eb4765df07fb352d1
[ "MIT" ]
1
2020-01-30T10:27:30.000Z
2020-01-30T10:27:30.000Z
import pickle import logging import subprocess import concurrent.futures from pathlib import Path import luigi from luigi.util import inherits from recon.config import defaults from recon.masscan import ParseMasscanOutput
38.571429
121
0.626852
45a34389a4196f702824ce54a8d761be8862131f
3,041
py
Python
docs/source/generate_cli_help.py
Conzel/CompressAI
55be017e93e25fc936fe0fb4fa5851b3c1032dfc
[ "BSD-3-Clause-Clear" ]
515
2020-06-24T23:48:02.000Z
2022-03-31T08:09:19.000Z
docs/source/generate_cli_help.py
Conzel/CompressAI
55be017e93e25fc936fe0fb4fa5851b3c1032dfc
[ "BSD-3-Clause-Clear" ]
102
2020-08-12T15:13:19.000Z
2022-03-30T22:28:16.000Z
docs/source/generate_cli_help.py
Conzel/CompressAI
55be017e93e25fc936fe0fb4fa5851b3c1032dfc
[ "BSD-3-Clause-Clear" ]
123
2020-06-25T00:32:29.000Z
2022-03-28T19:19:16.000Z
# Copyright (c) 2021-2022, InterDigital Communications, Inc # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted (subject to the limitations in the disclaimer # below) provided that the following conditions are met: # * Redistributions of source cod...
34.954023
111
0.694837
45a3d4d8a1f127580265a0a3c5979a90f99be58c
2,219
py
Python
implementation/data_io.py
rpalo/masters-thesis
fcc0beb933634b17dbe41bde982e947204fd498b
[ "MIT" ]
null
null
null
implementation/data_io.py
rpalo/masters-thesis
fcc0beb933634b17dbe41bde982e947204fd498b
[ "MIT" ]
null
null
null
implementation/data_io.py
rpalo/masters-thesis
fcc0beb933634b17dbe41bde982e947204fd498b
[ "MIT" ]
null
null
null
"""Data I/O: Import and export data to other useable formats.""" import csv from pathlib import Path from model import Job def import_csv(filename, base_dir=Path("data/")): """Converts CSV files with the relevant data (see columns below) to a list of Jobs. """ datafile = base_dir / filename with ...
36.377049
85
0.545291
45a6eb2cafb85abd876f4684bf56dbe0066463d9
16,694
py
Python
research/cv/eppmvsnet/src/networks.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/eppmvsnet/src/networks.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/eppmvsnet/src/networks.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "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...
41.424318
117
0.636157
45a8522dedcb5eb9f2989b1034c59beaba43571b
93
py
Python
christina/utils/__init__.py
guansss/christina
e6e8172bd7b0b68bda4f3c13f6427b7f9db4d2ef
[ "MIT" ]
null
null
null
christina/utils/__init__.py
guansss/christina
e6e8172bd7b0b68bda4f3c13f6427b7f9db4d2ef
[ "MIT" ]
null
null
null
christina/utils/__init__.py
guansss/christina
e6e8172bd7b0b68bda4f3c13f6427b7f9db4d2ef
[ "MIT" ]
null
null
null
from .eventemitter import * from .misc import * from .process import * from .string import *
18.6
27
0.741935
45a91df091f1f1c66e15a3e3dba9ef0eebdccd22
406
py
Python
apps/courses/migrations/0003_auto_20200414_1516.py
wychmod/Taro-Education
869852b33c06f6eb2c06191c4544e74db9eba8ce
[ "Apache-2.0" ]
1
2020-04-14T16:50:04.000Z
2020-04-14T16:50:04.000Z
apps/courses/migrations/0003_auto_20200414_1516.py
wychmod/Taro-Education
869852b33c06f6eb2c06191c4544e74db9eba8ce
[ "Apache-2.0" ]
3
2021-03-10T14:51:26.000Z
2022-02-27T03:03:10.000Z
apps/courses/migrations/0003_auto_20200414_1516.py
wychmod/Taro-Education
869852b33c06f6eb2c06191c4544e74db9eba8ce
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-14 07:16 from django.db import migrations, models
21.368421
68
0.603448
45aa13a44c60964639568833f156cf26339f8f91
9,162
py
Python
master-v0/todolist_seperated.py
kaixindelele/Study-System
d64ed15d425064445e2ca6a4bb89515dec68d19c
[ "Apache-2.0" ]
null
null
null
master-v0/todolist_seperated.py
kaixindelele/Study-System
d64ed15d425064445e2ca6a4bb89515dec68d19c
[ "Apache-2.0" ]
null
null
null
master-v0/todolist_seperated.py
kaixindelele/Study-System
d64ed15d425064445e2ca6a4bb89515dec68d19c
[ "Apache-2.0" ]
null
null
null
import tkinter from tkinter import messagebox import random WINDOW_HEIGHT=1200 WINDOW_WIDTH=600 BUTTON_HEIGHT=2 BUTTON_WIDTH=10 def main(): todo_list=TODO_list() if __name__ == "__main__": main()
34.186567
127
0.573456
45aad84988a3fb71c8fae9c7b834e17f70aac378
1,728
py
Python
nesi/huawei/huawei_resources/huawei_vlan_interface.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
1
2021-04-26T23:15:33.000Z
2021-04-26T23:15:33.000Z
nesi/huawei/huawei_resources/huawei_vlan_interface.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
null
null
null
nesi/huawei/huawei_resources/huawei_vlan_interface.py
Tubbz-alt/NESi
0db169dd6378fbd097380280cc41440e652de19e
[ "BSD-2-Clause" ]
null
null
null
# This file is part of the NESi software. # # Copyright (c) 2020 # Original Software Design by Ilya Etingof <https://github.com/etingof>. # # Software adapted by inexio <https://github.com/inexio>. # - Janis Gro <https://github.com/unkn0wn-user> # - Philip Konrath <https://github.com/Connyko65> # - Alexander Dincher <h...
35.265306
102
0.740162
45aafdc53dd12d0a6a957bd81175c72fb3ad70c0
2,665
py
Python
src/settings/base.py
Hammerstad/blog
3075e59c46321fd5fd5ccafbfb36e6d59b765259
[ "MIT" ]
null
null
null
src/settings/base.py
Hammerstad/blog
3075e59c46321fd5fd5ccafbfb36e6d59b765259
[ "MIT" ]
null
null
null
src/settings/base.py
Hammerstad/blog
3075e59c46321fd5fd5ccafbfb36e6d59b765259
[ "MIT" ]
null
null
null
import os, re from django.contrib.messages import constants as messages BASE_DIR = os.path.dirname(os.path.dirname(__file__)) makepath = lambda *f: os.path.join(BASE_DIR, *f) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = ')2x-r4x+4oxdmvvxenj*dhq##uxrgl%f3=#+l*1s32y=f^51hz' ALLOWED_H...
26.386139
73
0.734709
45ab1de9e03a368e0762b53b648e16454e16ea66
4,147
py
Python
aea/cli/list.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
aea/cli/list.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
aea/cli/list.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
33.176
91
0.672534