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
098d7c6c55f7415535fddaa88a483e5bc3bc96a3
650
py
Python
Python/[4 kyu] Sum of Intervals.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[4 kyu] Sum of Intervals.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[4 kyu] Sum of Intervals.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
# More details on this kata # https://www.codewars.com/kata/52b7ed099cdc285c300001cd
32.5
56
0.432308
098ecd46fb3c22e9788a5fea3f7f90c4783dd2f7
59,170
py
Python
tests/test_certdb.py
crocs-muni/cert-validataion-stats
bd61968c0487e634c160f6e25b7bb0eb1bab64fc
[ "MIT" ]
3
2020-06-26T09:31:35.000Z
2020-06-26T09:32:17.000Z
tests/test_certdb.py
crocs-muni/cert-validataion-stats
bd61968c0487e634c160f6e25b7bb0eb1bab64fc
[ "MIT" ]
null
null
null
tests/test_certdb.py
crocs-muni/cert-validataion-stats
bd61968c0487e634c160f6e25b7bb0eb1bab64fc
[ "MIT" ]
null
null
null
""" This module contains white-box unit tests of CertDB package """ # pylint: disable=W0212, C0103, C0302 import sys import os import subprocess import time import shutil import string import random import unittest import unittest.mock from collections import OrderedDict import toml from cevast.utils import make_PEM_fi...
43.86212
112
0.65905
09902a24aa7794ecafdf93045b5137f40aa8d310
2,325
py
Python
src/utils/utils.py
T1b4lt/gen-alg-examples
7498c3b96fbc2b6c968cc98d0f1ef6551345a1f4
[ "MIT" ]
null
null
null
src/utils/utils.py
T1b4lt/gen-alg-examples
7498c3b96fbc2b6c968cc98d0f1ef6551345a1f4
[ "MIT" ]
null
null
null
src/utils/utils.py
T1b4lt/gen-alg-examples
7498c3b96fbc2b6c968cc98d0f1ef6551345a1f4
[ "MIT" ]
null
null
null
import uuid import numpy as np def fitness_offsprings(mutated_offsprings, func_weights): fitness_array = [] for indv in mutated_offsprings: fitness_array.append(fitness_max_function(indv.weights, func_weights)) print("Actual offsprings fitness values:") print(fitness_array) return fitness_array def fitne...
27.034884
112
0.743656
0990ac9875cade50ef8fa38605b20f842216c59c
516
py
Python
main/migrations/0023_auto_20200114_2019.py
Ducolnd/SQ37
2323c3bd07124f082f1bb018c6ae5ee4cb7c94d1
[ "Apache-2.0" ]
null
null
null
main/migrations/0023_auto_20200114_2019.py
Ducolnd/SQ37
2323c3bd07124f082f1bb018c6ae5ee4cb7c94d1
[ "Apache-2.0" ]
null
null
null
main/migrations/0023_auto_20200114_2019.py
Ducolnd/SQ37
2323c3bd07124f082f1bb018c6ae5ee4cb7c94d1
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.1 on 2020-01-14 19:19 from django.db import migrations, models
22.434783
74
0.581395
0990bfe14e23c72b11bf2defe5e3302294dbdd91
11,197
py
Python
unit_list.py
guliverza/AdditionalPylons
37336dcd1678c6cdfa22d881c2178ba65cb1fd61
[ "MIT" ]
null
null
null
unit_list.py
guliverza/AdditionalPylons
37336dcd1678c6cdfa22d881c2178ba65cb1fd61
[ "MIT" ]
null
null
null
unit_list.py
guliverza/AdditionalPylons
37336dcd1678c6cdfa22d881c2178ba65cb1fd61
[ "MIT" ]
null
null
null
import sc2 from sc2.constants import * #our own classes from unit_counters import UnitCounter from warpprism import WarpPrism as wpControl from immortal import Immortal as imControl from stalker import Stalker as skControl from zealot import Zealot as zlControl from sentry import Sentry as snControl from ade...
34.24159
155
0.703224
09912f75595653975287507558557321b7720adb
619
py
Python
src/lib/bver/Versioned/Addon.py
backboneHQ/bver
c3c929442fadb28a3f39d0ddec19fb2dfc7a4732
[ "MIT" ]
1
2021-09-09T01:22:37.000Z
2021-09-09T01:22:37.000Z
src/lib/bver/Versioned/Addon.py
backboneHQ/bver
c3c929442fadb28a3f39d0ddec19fb2dfc7a4732
[ "MIT" ]
null
null
null
src/lib/bver/Versioned/Addon.py
backboneHQ/bver
c3c929442fadb28a3f39d0ddec19fb2dfc7a4732
[ "MIT" ]
1
2021-09-03T18:45:15.000Z
2021-09-03T18:45:15.000Z
from .Versioned import Versioned
23.807692
77
0.568659
099172de3e642bdeca5a27c254f8bd00fc1bca12
393
py
Python
agendamentos/migrations/0002_rename_ponto_agendamentos.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/migrations/0002_rename_ponto_agendamentos.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/migrations/0002_rename_ponto_agendamentos.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-15 20:32 from django.db import migrations
20.684211
63
0.613232
09928e74c332f7b48d51ab003cf566958a601031
5,988
py
Python
backend/filing/admin.py
bhardwajRahul/sec-filings-app
8cf7f5956717db8fee1f9a20445986ad9cb831ca
[ "MIT" ]
36
2020-12-04T08:16:38.000Z
2022-03-22T02:30:49.000Z
backend/filing/admin.py
bhardwajRahul/sec-filings-app
8cf7f5956717db8fee1f9a20445986ad9cb831ca
[ "MIT" ]
1
2021-10-14T22:20:40.000Z
2021-10-17T17:29:50.000Z
backend/filing/admin.py
briancaffey/sec-filings-app
8cf7f5956717db8fee1f9a20445986ad9cb831ca
[ "MIT" ]
16
2020-11-30T18:46:51.000Z
2022-01-20T23:01:58.000Z
from datetime import date from django.contrib import admin, messages from django.core.management import call_command from django.utils.html import format_html from django.http import HttpResponseRedirect from django.urls import path # Register your models here. from .models import ( FilingList, Filing, H...
27.981308
129
0.644122
0993f348c7032c4b29ebad6f8cebebce182f1117
1,039
py
Python
2019/day_06.py
nabiirah/advent-of-code
9c7e7cae437c024aa05d9cb7f9211fd47f5226a2
[ "MIT" ]
24
2020-12-08T20:07:52.000Z
2022-01-18T20:08:06.000Z
2019/day_06.py
nestorhf/advent-of-code
1bb827e9ea85e03e0720e339d10b3ed8c44d8f27
[ "MIT" ]
null
null
null
2019/day_06.py
nestorhf/advent-of-code
1bb827e9ea85e03e0720e339d10b3ed8c44d8f27
[ "MIT" ]
10
2020-12-04T10:04:15.000Z
2022-02-21T22:22:26.000Z
"""Advent of Code 2019 Day 6 - Universal Orbit Map.""" with open('inputs/day_06.txt', 'r') as f: orbits = f.read().split() objects_dict = {} for orbit in orbits: orbited, orbiter = orbit.split(')') objects_dict[orbiter] = orbited num_orbits = 0 for orbiter in objects_dict: next_orbit = objects_dict....
25.975
79
0.704524
099616993ba496a5f298e789a5f964e19fc3db1f
663
py
Python
tests/test_handler.py
jbasko/hookery
5638de2999ad533f83bc9a03110f85e5a0404257
[ "MIT" ]
3
2017-06-25T22:52:03.000Z
2018-08-11T22:43:49.000Z
tests/test_handler.py
jbasko/hookery
5638de2999ad533f83bc9a03110f85e5a0404257
[ "MIT" ]
null
null
null
tests/test_handler.py
jbasko/hookery
5638de2999ad533f83bc9a03110f85e5a0404257
[ "MIT" ]
1
2018-06-05T02:56:28.000Z
2018-06-05T02:56:28.000Z
from hookery import Handler, Hook
22.1
66
0.641026
0996b5a05af034475da68915d54936a0fd18f441
1,057
py
Python
apps/permcontrol/router.py
zshengsheng/Swallow
dd5098e241c5b4e50e53abbb105fd45323abf4d5
[ "MIT" ]
10
2018-03-18T14:22:31.000Z
2019-03-18T03:13:40.000Z
apps/permcontrol/router.py
zshengsheng/Swallow
dd5098e241c5b4e50e53abbb105fd45323abf4d5
[ "MIT" ]
null
null
null
apps/permcontrol/router.py
zshengsheng/Swallow
dd5098e241c5b4e50e53abbb105fd45323abf4d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/2/25 14:14 # @Author : ZJJ # @Email : 597105373@qq.com from .views import UserViewset, ChangeUserPasswdView, GroupsViewset, UserGroupViewset, GroupMemberViewset, \ PermissionViewset, GroupPermViewset, PersonalInfoViewset from rest_framework...
52.85
109
0.796594
0996f3d1f1ac8a9ea6f99a214f2486805b79d23f
3,742
py
Python
__init__.py
FabienBasset/evolucare-skill
4ecce1615cb11d72196ea745d2753fec19117b12
[ "Apache-2.0" ]
null
null
null
__init__.py
FabienBasset/evolucare-skill
4ecce1615cb11d72196ea745d2753fec19117b12
[ "Apache-2.0" ]
null
null
null
__init__.py
FabienBasset/evolucare-skill
4ecce1615cb11d72196ea745d2753fec19117b12
[ "Apache-2.0" ]
null
null
null
# TODO: Add an appropriate license to your skill before publishing. See # the LICENSE file for more information. # Below is the list of outside modules you'll be using in your skill. # They might be built-in to Python, from mycroft-core or from external # libraries. If you use an external library, be sure to include...
33.711712
84
0.638696
0997546f6d77374f92afff882bacd381651ee0ae
123
py
Python
inconnu/traits/__init__.py
tiltowait/inconnu
6cca5fed520899d159537701b695c94222d8dc45
[ "MIT" ]
4
2021-09-06T20:18:13.000Z
2022-02-05T17:08:44.000Z
inconnu/traits/__init__.py
tiltowait/inconnu
6cca5fed520899d159537701b695c94222d8dc45
[ "MIT" ]
7
2021-09-13T00:46:57.000Z
2022-01-11T06:38:50.000Z
inconnu/traits/__init__.py
tiltowait/inconnu
6cca5fed520899d159537701b695c94222d8dc45
[ "MIT" ]
2
2021-11-27T22:24:53.000Z
2022-03-16T21:05:00.000Z
"""Set up the package interface.""" from .add_update import add, update from .show import show from .delete import delete
20.5
35
0.756098
0997cd0a89022a9406ffd19fb23a90e8f3cec543
300
py
Python
web/searching.py
Kabanosk/JAVRIS
f3fac115eb537e689c59bd093da34e7f0b34a035
[ "MIT" ]
null
null
null
web/searching.py
Kabanosk/JAVRIS
f3fac115eb537e689c59bd093da34e7f0b34a035
[ "MIT" ]
null
null
null
web/searching.py
Kabanosk/JAVRIS
f3fac115eb537e689c59bd093da34e7f0b34a035
[ "MIT" ]
null
null
null
import webbrowser as web from bs4 import BeautifulSoup STARTING_URL = 'https://www.google.com/search?q='
25
50
0.716667
099a45ec8f275507986b6214bd241fe4b6c71ae3
54
py
Python
tests/__init__.py
GDG-Ukraine/talks-feedback
9016e2ecc35858d45f4979fab5a54ee953a75f04
[ "MIT" ]
null
null
null
tests/__init__.py
GDG-Ukraine/talks-feedback
9016e2ecc35858d45f4979fab5a54ee953a75f04
[ "MIT" ]
null
null
null
tests/__init__.py
GDG-Ukraine/talks-feedback
9016e2ecc35858d45f4979fab5a54ee953a75f04
[ "MIT" ]
null
null
null
"""Test suite for the Talks Feedback microservice."""
27
53
0.740741
099a7200287e3918106aa13022ec6083c9f7a764
867
py
Python
app/models.py
KhaledHamoul/nbo_cs_dashboard
0fc5a3479da4346d3b8f5cf44b19292ea2b99b10
[ "MIT" ]
null
null
null
app/models.py
KhaledHamoul/nbo_cs_dashboard
0fc5a3479da4346d3b8f5cf44b19292ea2b99b10
[ "MIT" ]
null
null
null
app/models.py
KhaledHamoul/nbo_cs_dashboard
0fc5a3479da4346d3b8f5cf44b19292ea2b99b10
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User import json
29.896552
81
0.730104
099bd56c8872287f3abf2cdee5e4888979d01b99
86
py
Python
bigGay/__init__.py
MayaValentia/byleth-bot-dev
d22290156fdac597aca2dd6d83020dbb49ad8ff0
[ "MIT" ]
1
2020-08-12T18:46:49.000Z
2020-08-12T18:46:49.000Z
bigGay/__init__.py
MayaValentia/byleth-bot-dev
d22290156fdac597aca2dd6d83020dbb49ad8ff0
[ "MIT" ]
null
null
null
bigGay/__init__.py
MayaValentia/byleth-bot-dev
d22290156fdac597aca2dd6d83020dbb49ad8ff0
[ "MIT" ]
2
2020-09-13T02:55:48.000Z
2021-02-11T09:34:07.000Z
from .bigGay import bigGay
17.2
26
0.674419
099c6d4626feec61b7b00c6c857042abd77c6c2a
2,039
py
Python
ai_script_writer.py
FLWL/aoc-ai-parser
2e08fc7b0909579aced5a84bda3645dbe8834d39
[ "MIT" ]
10
2019-03-17T00:48:35.000Z
2022-02-06T18:15:48.000Z
ai_script_writer.py
FLWL/aoc-ai-parser
2e08fc7b0909579aced5a84bda3645dbe8834d39
[ "MIT" ]
null
null
null
ai_script_writer.py
FLWL/aoc-ai-parser
2e08fc7b0909579aced5a84bda3645dbe8834d39
[ "MIT" ]
1
2022-01-16T12:38:52.000Z
2022-01-16T12:38:52.000Z
from ai_constants import * import ai_generator if __name__ == '__main__': # generate and express a rule rule_tree = ai_generator.generate_rule() rule_script = express_node(rule_tree) print(rule_script) # generate and write a script script_tree = ai_generator.generate_script() write_sc...
30.432836
91
0.650809
099d1dd35cd095ae208ec87e7df60676dd935b0a
1,316
py
Python
euler-148.py
simonolander/euler
4d7c4cd9333201cd0065419a511f111b6d75d90c
[ "MIT" ]
null
null
null
euler-148.py
simonolander/euler
4d7c4cd9333201cd0065419a511f111b6d75d90c
[ "MIT" ]
null
null
null
euler-148.py
simonolander/euler
4d7c4cd9333201cd0065419a511f111b6d75d90c
[ "MIT" ]
null
null
null
import numpy as np from tabulate import tabulate np.set_printoptions(linewidth=400, threshold=100000) print(c(1000000000))
19.939394
70
0.506839
099d22378abb2c23fd159020197e09cb83d9cba8
440
py
Python
geotrek/common/utils/translation.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
geotrek/common/utils/translation.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
geotrek/common/utils/translation.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings if 'modeltranslation' in settings.INSTALLED_APPS: from modeltranslation.translator import translator, NotRegistered def get_translated_fields(model): """Get translated fields from a model""" try: mto = translator.get_options_for_model(model) except NotRegister...
27.5
69
0.731818
099dcffa5aed44bda69a923f230dbcd1cba3e9b5
141,668
py
Python
pysnmp-with-texts/OSPF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/OSPF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/OSPF-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module OSPF-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OSPF-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:18:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
152.659483
9,786
0.785753
099e3f2b24bd01bfd5b7e1350533a5d17bf7ffdd
1,695
py
Python
abandoned-ideas/yml-generator.py
HenryZheng1/sengrep-cli-py
89d2ffad813706a534290f248220f0d32aeb4c3c
[ "Apache-2.0" ]
null
null
null
abandoned-ideas/yml-generator.py
HenryZheng1/sengrep-cli-py
89d2ffad813706a534290f248220f0d32aeb4c3c
[ "Apache-2.0" ]
null
null
null
abandoned-ideas/yml-generator.py
HenryZheng1/sengrep-cli-py
89d2ffad813706a534290f248220f0d32aeb4c3c
[ "Apache-2.0" ]
2
2021-07-23T16:46:16.000Z
2021-07-30T02:59:43.000Z
from csv import reader import yaml import json go()
35.3125
150
0.60118
099e6785d5350ed75115c74f1a4e9bf333839d99
4,018
py
Python
linearizer/utils.py
Max1993Liu/Linearizer
739c47c0d98d262a0bc962a450729bcf83c61212
[ "MIT" ]
null
null
null
linearizer/utils.py
Max1993Liu/Linearizer
739c47c0d98d262a0bc962a450729bcf83c61212
[ "MIT" ]
null
null
null
linearizer/utils.py
Max1993Liu/Linearizer
739c47c0d98d262a0bc962a450729bcf83c61212
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from types import FunctionType import warnings from .transform import BaseTransformer def drop_na(x, y, according='both'): """ Drop the values in both x and y if the element in `according` is missing ex. drop_na([1, 2, np.nan], [1, 2, 3], 'x') => [1, 2], [1, 2] ...
31.637795
106
0.612245
099e97710e96accac9ae6950fc54a6209ae97168
821
py
Python
lintcode/NineChapters/06/remove-duplicates-from-sorted-list-ii.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
lintcode/NineChapters/06/remove-duplicates-from-sorted-list-ii.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
lintcode/NineChapters/06/remove-duplicates-from-sorted-list-ii.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
__author__ = 'yinjun' """ Definition of ListNode class ListNode(object): def __init__(self, val, next=None): self.val = val self.next = next """
22.805556
61
0.504263
09a082c5b766d52ac4bd284843a07b1bfbf38eba
325
py
Python
testings.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
testings.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
testings.py
GYosifov88/Python-Fundamentals
b46ba2822bd2dac6ff46830c6a520e559b448442
[ "MIT" ]
null
null
null
vid = input() object = Object(vid) a = int(input()) b = int(input()) print(f'{object.square(a,b)}')
18.055556
35
0.52
09a0e0698bb4f209bcf75379d2f58d655b33426a
809
py
Python
argdeco/__main__.py
klorenz/python-argdeco
eb614d63430c5da68a972bdc40f8a1541070089d
[ "MIT" ]
null
null
null
argdeco/__main__.py
klorenz/python-argdeco
eb614d63430c5da68a972bdc40f8a1541070089d
[ "MIT" ]
null
null
null
argdeco/__main__.py
klorenz/python-argdeco
eb614d63430c5da68a972bdc40f8a1541070089d
[ "MIT" ]
null
null
null
from .main import Main from .arguments import arg from textwrap import dedent main = Main() command = main.command main()
28.892857
100
0.700865
09a18d4b2a0fa8ae47cff0df35320c0b38f5b9e2
1,500
py
Python
Resources/Python Example Files/Prior_move_rel.py
stephf0716/MATLAB-scanning-stage
a4f5e96b86d1c95bf16ff7262959b7c0f8b8e51d
[ "MIT" ]
null
null
null
Resources/Python Example Files/Prior_move_rel.py
stephf0716/MATLAB-scanning-stage
a4f5e96b86d1c95bf16ff7262959b7c0f8b8e51d
[ "MIT" ]
null
null
null
Resources/Python Example Files/Prior_move_rel.py
stephf0716/MATLAB-scanning-stage
a4f5e96b86d1c95bf16ff7262959b7c0f8b8e51d
[ "MIT" ]
null
null
null
# ********************************************************* # Relative Stage Movement # # Stephanie Fung 2014 # ********************************************************* # Import modules. # --------------------------------------------------------- import visa import string import struct import sys import serial # =...
25.862069
59
0.420667
09a1a281f097af89e78698b2962835021fca03c7
7,794
py
Python
ratatosk/lib/tools/picard.py
SciLifeLab/ratatosk
4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0
[ "Apache-2.0" ]
null
null
null
ratatosk/lib/tools/picard.py
SciLifeLab/ratatosk
4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0
[ "Apache-2.0" ]
null
null
null
ratatosk/lib/tools/picard.py
SciLifeLab/ratatosk
4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Per Unneberg # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
41.903226
186
0.673723
09a25fafbbc8341875cf49512a6963ebb67af9a9
1,092
py
Python
working-with-data/part1/reading-and-writing-text-files.py
LucasHelal/data-science
9b243be1dea23a521e6ebb49dc358708a9b17dbd
[ "MIT" ]
null
null
null
working-with-data/part1/reading-and-writing-text-files.py
LucasHelal/data-science
9b243be1dea23a521e6ebb49dc358708a9b17dbd
[ "MIT" ]
null
null
null
working-with-data/part1/reading-and-writing-text-files.py
LucasHelal/data-science
9b243be1dea23a521e6ebb49dc358708a9b17dbd
[ "MIT" ]
null
null
null
import sys import pandas as pd # Can open csv files as a dataframe dframe = pd.read_csv('lec25.csv') # Can also use read_table with ',' as a delimiter dframe = pd.read_table('lec25.csv', sep=',') # If we dont want the header to be the first row dframe = pd.read_csv('lec25.csv', header=None) # We can also indicate a...
28.736842
79
0.739011
09a28df0637d0c34e269ec275da4a8046d1b7543
385
py
Python
python-framework/libs/crypto.py
huangxingx/python-framework
a62618b0ee5ecff9de426327892cdd690d10510d
[ "MIT" ]
7
2019-10-24T03:26:22.000Z
2019-10-27T14:55:07.000Z
python-framework/libs/crypto.py
PJoemu/python-framework
a62618b0ee5ecff9de426327892cdd690d10510d
[ "MIT" ]
3
2021-06-08T19:13:10.000Z
2022-01-13T00:38:48.000Z
python-framework/libs/crypto.py
PJoemu/python-framework
a62618b0ee5ecff9de426327892cdd690d10510d
[ "MIT" ]
2
2019-10-25T03:54:51.000Z
2020-06-28T08:50:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @author: x.huang # @date:17-8-17 from Crypto.Hash import MD5 if __name__ == '__main__': print(encrypto('arhieason'))
15.4
51
0.623377
09a2b27d6e9143175c3eaab5d912857ca2f60085
1,428
py
Python
comments/urls.py
ggetzie/greaterdebater
fb1739f3db42717f3d63fe6c9dbf0c2402fb1fd5
[ "MIT" ]
null
null
null
comments/urls.py
ggetzie/greaterdebater
fb1739f3db42717f3d63fe6c9dbf0c2402fb1fd5
[ "MIT" ]
1
2020-05-02T02:03:08.000Z
2020-05-02T02:03:08.000Z
comments/urls.py
ggetzie/greaterdebater
fb1739f3db42717f3d63fe6c9dbf0c2402fb1fd5
[ "MIT" ]
null
null
null
from django.conf.urls import patterns from comments.views import CommentDebateList # This url file is included from items.urls with the prefix /comments/ urlpatterns = patterns('', # Add a comment to a topic (r'^(?P<topic_id>\d+)/add/$', 'comments.views.add'), ...
42
93
0.464286
09a4876d8faaee60c05b563c48e7b9207133b300
2,022
py
Python
src/engine/app.py
vxlk/stoinks
afea92824a21d203098dd41137957f2343ec363d
[ "MIT" ]
1
2020-12-30T23:54:58.000Z
2020-12-30T23:54:58.000Z
src/engine/app.py
vxlk/stoinks
afea92824a21d203098dd41137957f2343ec363d
[ "MIT" ]
null
null
null
src/engine/app.py
vxlk/stoinks
afea92824a21d203098dd41137957f2343ec363d
[ "MIT" ]
null
null
null
import sys from threading import Thread from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * from pyqtconsole.console import PythonConsole from view.console import Console from view.gui_dock import * from util.logger import * from model.engine import * # clear logs logge...
27.69863
67
0.787834
09a62e7b8881c3b94a94393151fe47674d845dd0
845
py
Python
Python/behavioral_patterns/command/history_command.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
28
2018-09-28T07:45:35.000Z
2022-02-12T12:25:05.000Z
Python/behavioral_patterns/command/history_command.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
null
null
null
Python/behavioral_patterns/command/history_command.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
5
2021-05-10T23:19:55.000Z
2022-03-04T20:26:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # from behavioral_patterns.command.command import Command # # Holder of the past commands # #
15.089286
55
0.502959
09a65708ef251f13b9781f1e9b250a16f7eb5521
8,710
py
Python
Agents/agent.py
TylerJamesMalloy/bullet3
e357853815c1e0297683218273de79e586b574c8
[ "Zlib" ]
null
null
null
Agents/agent.py
TylerJamesMalloy/bullet3
e357853815c1e0297683218273de79e586b574c8
[ "Zlib" ]
null
null
null
Agents/agent.py
TylerJamesMalloy/bullet3
e357853815c1e0297683218273de79e586b574c8
[ "Zlib" ]
null
null
null
import logging, os, time, multiprocessing, sys, signal logging.disable(logging.WARNING) os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" import tensorflow as tf import gym import pybullet, pybullet_envs, pybullet_data import numpy as np import pandas as pd from stable_baselines.sac.policies import MlpPolicy from stable_ba...
46.57754
186
0.666475
09a9810fc20f0e86e48fafc4f5dbb9adb6c5702a
1,274
py
Python
ToDoApp/todo/urls.py
akmcinto/ToDoApp
2176294c1cfc33a2e651f613f23922a2c8879a84
[ "Apache-2.0" ]
null
null
null
ToDoApp/todo/urls.py
akmcinto/ToDoApp
2176294c1cfc33a2e651f613f23922a2c8879a84
[ "Apache-2.0" ]
null
null
null
ToDoApp/todo/urls.py
akmcinto/ToDoApp
2176294c1cfc33a2e651f613f23922a2c8879a84
[ "Apache-2.0" ]
null
null
null
""" Copyright 2016 Andrea McIntosh 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 i...
39.8125
79
0.689953
09a9fcdb559137e2907018a24bc26f28eb5ecd69
81,886
py
Python
froi/main.py
sunshineDrizzle/FreeROI
e2bae1a19835667988e9dbe4a1a88e5b2778d819
[ "BSD-3-Clause" ]
13
2016-02-12T05:10:23.000Z
2021-01-13T01:40:12.000Z
froi/main.py
sunshineDrizzle/FreeROI
e2bae1a19835667988e9dbe4a1a88e5b2778d819
[ "BSD-3-Clause" ]
14
2015-05-04T05:56:45.000Z
2021-01-24T11:49:13.000Z
froi/main.py
sunshineDrizzle/FreeROI
e2bae1a19835667988e9dbe4a1a88e5b2778d819
[ "BSD-3-Clause" ]
8
2016-03-07T06:29:51.000Z
2017-10-30T13:59:27.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Graphic User Interface.""" import sys import os import glob import ConfigParser from PyQt4.QtCore import * from PyQt4.QtGui import * from version import __version__ from algorithm.imtool import label...
46.97992
120
0.591078
09aba896248f30069fcb0a73d80efae7ce718e1a
975
py
Python
class1/exercise6&7.py
linkdebian/pynet_course
e0de498078ab914b3535fa2ea5c2e71d6e3799fb
[ "Apache-2.0" ]
null
null
null
class1/exercise6&7.py
linkdebian/pynet_course
e0de498078ab914b3535fa2ea5c2e71d6e3799fb
[ "Apache-2.0" ]
null
null
null
class1/exercise6&7.py
linkdebian/pynet_course
e0de498078ab914b3535fa2ea5c2e71d6e3799fb
[ "Apache-2.0" ]
null
null
null
import yaml import json from pprint import pprint as pp my_list = [] while True: x = raw_input("Enter num or text to add to list or press enter to finish: ") if not x: break my_list.append(x) my_list.append({}) while True: y = raw_input("Enter the name of the key in the list or press enter to finish...
20.744681
85
0.58359
09abc457e5bd1caa1d8046d6ee92bbfdae5edefe
1,475
py
Python
backend/naki/naki/model/digital_item.py
iimcz/emod
432094c020247597a94e95f76cc524c20b68b685
[ "MIT" ]
null
null
null
backend/naki/naki/model/digital_item.py
iimcz/emod
432094c020247597a94e95f76cc524c20b68b685
[ "MIT" ]
6
2021-03-08T23:32:15.000Z
2022-02-26T08:11:38.000Z
backend/naki/naki/model/digital_item.py
iimcz/emod
432094c020247597a94e95f76cc524c20b68b685
[ "MIT" ]
null
null
null
import colander from sqlalchemy import Column, ForeignKey from sqlalchemy.types import DateTime, Integer, Unicode, UnicodeText from naki.model.meta import Base
34.302326
110
0.602034
09ae724cdc803309af6a236723605a5ad5b9d098
4,389
py
Python
z3/labeled_dice.py
Wikunia/hakank
030bc928d2efe8dcbc5118bda3f8ae9575d0fd13
[ "MIT" ]
279
2015-01-10T09:55:35.000Z
2022-03-28T02:34:03.000Z
z3/labeled_dice.py
Wikunia/hakank
030bc928d2efe8dcbc5118bda3f8ae9575d0fd13
[ "MIT" ]
10
2017-10-05T15:48:50.000Z
2021-09-20T12:06:52.000Z
z3/labeled_dice.py
Wikunia/hakank
030bc928d2efe8dcbc5118bda3f8ae9575d0fd13
[ "MIT" ]
83
2015-01-20T03:44:00.000Z
2022-03-13T23:53:06.000Z
#!/usr/bin/python -u # -*- coding: latin-1 -*- # # Labeled dice and Building block problems in Z3 # # * Labeled dice # # From Jim Orlin 'Colored letters, labeled dice: a logic puzzle' # http://jimorlin.wordpress.com/2009/02/17/colored-letters-labeled-dice-a-logic-puzzle/ # ''' # My daughter Jenn bough a puzzle...
26.281437
99
0.549784
09af767430017771c3139a9ce09339ca19b87b16
2,741
py
Python
samples/flat_sample/test.py
benlindsay/job_tree
0cdb293fd166d8d1cd50e54ab090264029adf978
[ "MIT" ]
null
null
null
samples/flat_sample/test.py
benlindsay/job_tree
0cdb293fd166d8d1cd50e54ab090264029adf978
[ "MIT" ]
null
null
null
samples/flat_sample/test.py
benlindsay/job_tree
0cdb293fd166d8d1cd50e54ab090264029adf978
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017 Ben Lindsay <benjlindsay@gmail.com> from job_tree import job_tree # Tier 1 is 3 values of VAR_1 (1, 2, and 3) found in 'tier_1.csv' tier_1_csv_file = 'tier_1.csv' # Tier 2 is 2 values of VAR_2 for each VAR_1, defined as a function of VAR_1 # Tier ...
24.256637
79
0.549435
09b071406342703275a6a5f8df9c8ce73299146c
1,602
py
Python
scripts/ai/mle/test_ai.py
AlexGustafsson/word-frequencies
21a73dc1e56770f5563f928b7e3943874c995bd9
[ "Unlicense" ]
null
null
null
scripts/ai/mle/test_ai.py
AlexGustafsson/word-frequencies
21a73dc1e56770f5563f928b7e3943874c995bd9
[ "Unlicense" ]
null
null
null
scripts/ai/mle/test_ai.py
AlexGustafsson/word-frequencies
21a73dc1e56770f5563f928b7e3943874c995bd9
[ "Unlicense" ]
null
null
null
import pickle import random from argparse import ArgumentParser # Requires NLTK to be installed: # python3 -m pip install nltk # python3 -c 'import nltk;nltk.download("punkt")' # May be slow at first start due to NLTK preparing its dependencies from nltk.tokenize.treebank import TreebankWordDetokenizer from nltk.lm im...
32.693878
115
0.692884
09b38cadc8a5b66d765f9f62596709fa7325c773
7,529
py
Python
lib/common/render_utils.py
YuliangXiu/ICON
ece5a09aa2d56aec28017430e65a0352622a0f30
[ "Intel" ]
486
2021-12-16T03:13:31.000Z
2022-03-30T04:26:48.000Z
lib/common/render_utils.py
YuliangXiu/ICON
ece5a09aa2d56aec28017430e65a0352622a0f30
[ "Intel" ]
33
2021-12-30T07:28:10.000Z
2022-03-30T08:04:06.000Z
lib/common/render_utils.py
YuliangXiu/ICON
ece5a09aa2d56aec28017430e65a0352622a0f30
[ "Intel" ]
38
2021-12-17T10:55:01.000Z
2022-03-30T23:25:39.000Z
# -*- coding: utf-8 -*- # Max-Planck-Gesellschaft zur Frderung der Wissenschaften e.V. (MPG) is # holder of all proprietary rights on this computer program. # You can only use this computer program if you have closed # a license agreement with MPG or you get the right to use the computer # program from someone who is...
33.914414
79
0.592376
09b41443c1ba334ee6ad9dc77418ea29db20354e
456
py
Python
merge_string.py
mrillusi0n/compete
ac798e2b1ff27abddd8bebf113d079228f038e56
[ "MIT" ]
null
null
null
merge_string.py
mrillusi0n/compete
ac798e2b1ff27abddd8bebf113d079228f038e56
[ "MIT" ]
null
null
null
merge_string.py
mrillusi0n/compete
ac798e2b1ff27abddd8bebf113d079228f038e56
[ "MIT" ]
null
null
null
######################### AABCAAADA from collections import OrderedDict def remove_duplicates(block): """ >>> remove_duplicates('AAB') >>> 'AB' """ freq = OrderedDict() for c in block: freq[c] = freq.get(c, 0) + 1 return ''.join(freq.keys()) print(solve('AABCAAADA', 3))
18.24
65
0.58114
09b4cd6f2d42318aef248c6850aeea38ce8781bf
335
py
Python
src/art_of_geom/_util/_tmp.py
Mathverse/Art-of-Geometry
8fd89fd3526f871815c38953580a48b017d39847
[ "MIT" ]
1
2021-12-25T01:16:10.000Z
2021-12-25T01:16:10.000Z
src/art_of_geom/_util/_tmp.py
Mathverse/Art-of-Geometry
8fd89fd3526f871815c38953580a48b017d39847
[ "MIT" ]
null
null
null
src/art_of_geom/_util/_tmp.py
Mathverse/Art-of-Geometry
8fd89fd3526f871815c38953580a48b017d39847
[ "MIT" ]
null
null
null
__all__ = 'TMP_NAME_FACTORY', 'tmp_file_name', 'str_uuid' import os from tempfile import NamedTemporaryFile from uuid import uuid4 TMP_NAME_FACTORY = tmp_file_name
17.631579
57
0.755224
09b5a2bb038f2cac57634bfef33f5cb085b77a89
48
py
Python
tests/__init__.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
1
2020-02-28T17:26:36.000Z
2020-02-28T17:26:36.000Z
tests/__init__.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
tests/__init__.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
import sys sys.path.append("apps/controllerx")
12
35
0.770833
09b5d250f780316cd9c06c021e66be29bc76a8ed
884
py
Python
tests/views/test_is_component_field_model_or_unicorn_field.py
nerdoc/django-unicorn
e512b8f64f5c276a78127db9a05d9d5c042232d5
[ "MIT" ]
1
2021-12-21T16:20:49.000Z
2021-12-21T16:20:49.000Z
tests/views/test_is_component_field_model_or_unicorn_field.py
teury/django-unicorn
5e9142b8a7e13b862ece419d567e805cc783b517
[ "MIT" ]
null
null
null
tests/views/test_is_component_field_model_or_unicorn_field.py
teury/django-unicorn
5e9142b8a7e13b862ece419d567e805cc783b517
[ "MIT" ]
1
2022-02-10T07:47:01.000Z
2022-02-10T07:47:01.000Z
from django_unicorn.components import UnicornView from django_unicorn.views.utils import _is_component_field_model_or_unicorn_field from example.coffee.models import Flavor def test_type_hint(): component = TypeHintView(component_name="asdf", component_id="hjkl") name = "model" actual = _is_component_fi...
27.625
81
0.7681
09bb144937911126f0899a4f90a8ca7646246b73
431
py
Python
data_wrangling/data_manipulation/check_if_even.py
dkedar7/Notes
08a9e710a774fd46ec525e0041c1cbd67fbe6c20
[ "MIT" ]
3
2021-05-28T09:00:56.000Z
2021-12-21T01:12:20.000Z
data_wrangling/data_manipulation/check_if_even.py
dkedar7/Notes
08a9e710a774fd46ec525e0041c1cbd67fbe6c20
[ "MIT" ]
null
null
null
data_wrangling/data_manipulation/check_if_even.py
dkedar7/Notes
08a9e710a774fd46ec525e0041c1cbd67fbe6c20
[ "MIT" ]
null
null
null
import pytest testdata = [ (2, True), (3, False), (4, True), (5, True) # We expect this test to fail ] def check_if_even(a): """ Returns True if 'a' is an even number """ return a % 2 == 0
17.958333
61
0.612529
09bf7c1ce0c20840d83284f246ccdbf099539181
4,970
py
Python
intvalpy/linear/system_properties.py
SShary/intvalpy
42f4c8f6b23e6481f4032b0a0f7cc0d798fda3be
[ "MIT" ]
null
null
null
intvalpy/linear/system_properties.py
SShary/intvalpy
42f4c8f6b23e6481f4032b0a0f7cc0d798fda3be
[ "MIT" ]
null
null
null
intvalpy/linear/system_properties.py
SShary/intvalpy
42f4c8f6b23e6481f4032b0a0f7cc0d798fda3be
[ "MIT" ]
null
null
null
import numpy as np from scipy.optimize import minimize from intvalpy.MyClass import Interval from intvalpy.intoper import zeros def Uni(A, b, x=None, maxQ=False, x0=None, tol=1e-12, maxiter=1e3): """ Uni. , maxQ=True . Parameters: A: Interval . ...
31.257862
86
0.547485
09bffb272321cfeba42574b90d3f77c2507d62be
3,648
py
Python
libcity/utils/GPS_utils.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
221
2021-09-06T03:33:31.000Z
2022-03-28T05:36:49.000Z
libcity/utils/GPS_utils.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
43
2021-09-19T16:12:28.000Z
2022-03-31T16:29:03.000Z
libcity/utils/GPS_utils.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
64
2021-09-06T07:56:10.000Z
2022-03-25T08:48:35.000Z
import math R_EARTH = 6371000 # meter def angle2radian(angle): """ convert from an angle to a radian :param angle: (float) :return: radian (float) """ return math.radians(angle) def spherical_law_of_cosines(phi1, lambda1, phi2, lambda2): """ calculate great circle distance with sp...
32.283186
111
0.654331
09c01d1c28ae990e8cd5cd83a9d33b741fa6c805
1,154
py
Python
python/docstring/__init__.py
liguohao96/template
31648c4334bdce50cadcfc707c5f64c483e1abce
[ "MIT" ]
null
null
null
python/docstring/__init__.py
liguohao96/template
31648c4334bdce50cadcfc707c5f64c483e1abce
[ "MIT" ]
null
null
null
python/docstring/__init__.py
liguohao96/template
31648c4334bdce50cadcfc707c5f64c483e1abce
[ "MIT" ]
null
null
null
""" Python Template for docstring ----------------------------- python.docstring is a package cotaining TEMPLATE for docstring in python. usage: >>> from python import docstring >>> help(docstring) >>> print(docstring.module_.__doc__) >>> print(docstring.class_.__doc__) >>> print(docstrin...
31.189189
90
0.714905
09c0c79a0b5cfaa45266d9d9675a6a0f9435dae8
6,234
py
Python
orwell/agent/main.py
dchilot/agent-server-game-python
ce8db9560047a06960343cc66a9eddb11e77f5a1
[ "BSD-3-Clause" ]
null
null
null
orwell/agent/main.py
dchilot/agent-server-game-python
ce8db9560047a06960343cc66a9eddb11e77f5a1
[ "BSD-3-Clause" ]
null
null
null
orwell/agent/main.py
dchilot/agent-server-game-python
ce8db9560047a06960343cc66a9eddb11e77f5a1
[ "BSD-3-Clause" ]
null
null
null
import logging import sys import socket from cliff.app import App from cliff.command import Command from cliff.commandmanager import CommandManager def main(argv=sys.argv[1:]): myapp = AgentApp() return myapp.run(argv) if ("__main__" == __name__): sys.exit(main(sys.argv[1:])) # pragma: n...
26.193277
76
0.611806
09c1b09e1644ac2346f010a7494eb66da023d9f8
88
py
Python
yad2/encoders/__init__.py
odcinek/yad2
5ecf5073a7eb9651944837e33c083c4a1e7945bc
[ "MIT" ]
null
null
null
yad2/encoders/__init__.py
odcinek/yad2
5ecf5073a7eb9651944837e33c083c4a1e7945bc
[ "MIT" ]
null
null
null
yad2/encoders/__init__.py
odcinek/yad2
5ecf5073a7eb9651944837e33c083c4a1e7945bc
[ "MIT" ]
1
2021-10-17T15:46:50.000Z
2021-10-17T15:46:50.000Z
from format2 import Format2 from format40 import Format40 from format80 import Format80
22
29
0.863636
09c1d29d541d96d593332dafbd24a6cf449f04ba
20,705
py
Python
bin/scripts/findsnps_refalt.py
smozaffari/ASE
ad0013daf8505227d1818ba8f9e4ea6cc1fd0f4b
[ "Apache-2.0" ]
null
null
null
bin/scripts/findsnps_refalt.py
smozaffari/ASE
ad0013daf8505227d1818ba8f9e4ea6cc1fd0f4b
[ "Apache-2.0" ]
null
null
null
bin/scripts/findsnps_refalt.py
smozaffari/ASE
ad0013daf8505227d1818ba8f9e4ea6cc1fd0f4b
[ "Apache-2.0" ]
1
2016-01-26T07:15:50.000Z
2016-01-26T07:15:50.000Z
import sys import os import gzip import argparse import numpy as np import pysam import util import snptable import tables MAX_SEQS_DEFAULT = 64 MAX_SNPS_DEFAULT = 6 def parse_options(): parser = argparse.ArgumentParser(description="Looks for SNPs and indels " ...
40.203883
205
0.543009
09c1f3727d6933c8c847df8d0be18f6dbfa8e1a9
25,145
py
Python
bungieapi/generated/clients/group_v2.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
5
2022-01-06T21:05:53.000Z
2022-02-12T19:58:11.000Z
bungieapi/generated/clients/group_v2.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
8
2021-12-25T02:40:56.000Z
2022-03-28T03:31:41.000Z
bungieapi/generated/clients/group_v2.py
itemmanager/bungieapi
0c4326f88ea0f28a1dcab683dc08c8d21c940fc1
[ "MIT" ]
1
2022-01-30T23:53:25.000Z
2022-01-30T23:53:25.000Z
# generated by update to not change manually import typing as t from bungieapi.base import BaseClient, clean_query_value from bungieapi.forge import forge from bungieapi.generated.components.responses import ( CEListOfGroupOptionalConversationClientResponse, DictionaryOfint32AndstringClientResponse, ListOf...
36.923642
197
0.643786
09c267a3cb1cc17f6f5bb5ef69492d09f87a64fa
1,475
py
Python
tests/test_models.py
jimimvp/CausalProb
900527725ad43eac258df2b16ef93fd1643deb3a
[ "MIT" ]
3
2021-11-04T16:37:45.000Z
2022-03-08T10:24:19.000Z
tests/test_models.py
jimimvp/CausalProb
900527725ad43eac258df2b16ef93fd1643deb3a
[ "MIT" ]
13
2021-11-07T11:11:54.000Z
2021-11-20T10:40:39.000Z
tests/test_models.py
jimimvp/CausalProb
900527725ad43eac258df2b16ef93fd1643deb3a
[ "MIT" ]
1
2021-11-17T21:40:49.000Z
2021-11-17T21:40:49.000Z
from causalprob import CausalProb import unittest import jax.numpy as jnp import numpy as np
39.864865
122
0.547119
09c2c4fe16627c25f8121510a450845e41ae70cc
1,713
py
Python
python/analysis/simulations/replot_as_bar.py
UKPLab/tacl2018-preference-convincing
65eb1cd3bf76f8068889880e0f80178e790350ce
[ "Apache-2.0" ]
13
2019-03-01T19:40:23.000Z
2022-01-10T05:53:47.000Z
python/analysis/simulations/replot_as_bar.py
UKPLab/tacl2018-preference-convincing
65eb1cd3bf76f8068889880e0f80178e790350ce
[ "Apache-2.0" ]
12
2020-11-13T17:54:01.000Z
2022-02-09T23:39:11.000Z
python/analysis/simulations/replot_as_bar.py
UKPLab/tacl2018-preference-convincing
65eb1cd3bf76f8068889880e0f80178e790350ce
[ "Apache-2.0" ]
5
2019-02-06T12:08:20.000Z
2022-01-10T20:40:22.000Z
''' Generate a bar chart with error bars -- might be easier to read than a line graph with error bars. ''' import matplotlib.pyplot as plt import pandas as pd import numpy as np if __name__ == '__main__': figure_save_path = './results/synth2/' filename = 'r_pairs_bar.pdf' fig = None cs = [1,3,10,20]...
32.320755
119
0.624051
09c49181d3fdabb104e8b2473f43e07ce944fcb6
74
py
Python
shapes-trainer/training_shapes_module/__init__.py
dakotaJang/shapes
19ba73ad2a9b50b57cafca53560678273aeb7776
[ "MIT" ]
1
2019-02-02T11:46:55.000Z
2019-02-02T11:46:55.000Z
shapes-trainer/training_shapes_module/__init__.py
dakotaJang/shapes
19ba73ad2a9b50b57cafca53560678273aeb7776
[ "MIT" ]
null
null
null
shapes-trainer/training_shapes_module/__init__.py
dakotaJang/shapes
19ba73ad2a9b50b57cafca53560678273aeb7776
[ "MIT" ]
null
null
null
from .loader import * from .model import * from .train_and_test import *
24.666667
29
0.743243
09c6c74d8c24c276c440f25295526d610514d57d
468
py
Python
python-lab-file/78_tkintermenu.py
zshashz/py1729
3281ae2a20c665ebcc0d53840cc95143cbe6861b
[ "MIT" ]
1
2021-01-22T09:03:59.000Z
2021-01-22T09:03:59.000Z
python-lab-file/78_tkintermenu.py
zshashz/py1729
3281ae2a20c665ebcc0d53840cc95143cbe6861b
[ "MIT" ]
null
null
null
python-lab-file/78_tkintermenu.py
zshashz/py1729
3281ae2a20c665ebcc0d53840cc95143cbe6861b
[ "MIT" ]
2
2021-05-04T11:29:38.000Z
2021-11-03T13:09:48.000Z
# Program 77 : make Tkinter menu from tkinter import * from tkinter import * root = Tk() menu = Menu(root) root.config(menu=menu) filemenu = Menu(menu) menu.add_cascade(label='File', menu=filemenu) filemenu.add_command(label='New') filemenu.add_command(label='Open...') filemenu.add_separator() filemenu.add_command(...
23.4
53
0.75641
09c972c8ee2252231ba255a8d7fd24be9200e9e4
445
py
Python
chat/tests/factories.py
gurupratap-matharu/chatylon
d23ce4b9fa3954ad49fc18647ccf54cd0cc73cf8
[ "MIT" ]
4
2020-11-16T01:53:17.000Z
2021-09-01T06:02:31.000Z
chat/tests/factories.py
gurupratap-matharu/chatylon
d23ce4b9fa3954ad49fc18647ccf54cd0cc73cf8
[ "MIT" ]
null
null
null
chat/tests/factories.py
gurupratap-matharu/chatylon
d23ce4b9fa3954ad49fc18647ccf54cd0cc73cf8
[ "MIT" ]
null
null
null
import factory from chat.models import Chat, ChatRoom from users.factories import UserFactory
22.25
57
0.730337
09c9a15d0f7a17f53680be679c2a6066d5b21c97
1,335
py
Python
tools/prepare_data.py
xrick/CTC_DySpeechCommands
d92cb97f7344fb5acdb6aa3fc3dfb7c022fffc6e
[ "MIT" ]
74
2018-05-05T18:43:28.000Z
2022-03-21T13:00:14.000Z
tools/prepare_data.py
xrick/CTC_DySpeechCommands
d92cb97f7344fb5acdb6aa3fc3dfb7c022fffc6e
[ "MIT" ]
5
2018-07-20T16:18:57.000Z
2021-01-26T11:52:31.000Z
tools/prepare_data.py
xrick/CTC_DySpeechCommands
d92cb97f7344fb5acdb6aa3fc3dfb7c022fffc6e
[ "MIT" ]
21
2018-06-18T07:21:19.000Z
2021-04-11T06:49:03.000Z
"""Downloads the training dataset and removes bad samples. """ import csv import os import urllib.request import tarfile import glob DATA_URL = 'http://download.tensorflow.org/data/speech_commands_v0.01.tar.gz' TRAIN_DIR = '../dataset/train/audio/' FILE_BAD = 'bad_samples.txt' def maybe_download(data_url, dest_di...
26.7
77
0.698876
09ca172ccac0fbc44db1af59fb9a28884f053bb0
162
py
Python
remote_control/apps.py
adrienemery/auv-control-api
44d04c070879be3a52633369886534657b2d67ca
[ "MIT" ]
null
null
null
remote_control/apps.py
adrienemery/auv-control-api
44d04c070879be3a52633369886534657b2d67ca
[ "MIT" ]
2
2016-08-03T00:37:37.000Z
2016-08-03T00:46:12.000Z
remote_control/apps.py
adrienemery/auv-control
44d04c070879be3a52633369886534657b2d67ca
[ "MIT" ]
null
null
null
from django.apps import AppConfig
18
37
0.734568
09caab87d8b63d185ae16695cb5079d8b60078ed
4,232
py
Python
Dashboard_Relay/tests/unit/api/test_authorization.py
weiwa6/SecValidation
e899b7aa3f46ded3b39aeb6a1eeab95cc8dc21b5
[ "BSD-3-Clause" ]
null
null
null
Dashboard_Relay/tests/unit/api/test_authorization.py
weiwa6/SecValidation
e899b7aa3f46ded3b39aeb6a1eeab95cc8dc21b5
[ "BSD-3-Clause" ]
null
null
null
Dashboard_Relay/tests/unit/api/test_authorization.py
weiwa6/SecValidation
e899b7aa3f46ded3b39aeb6a1eeab95cc8dc21b5
[ "BSD-3-Clause" ]
null
null
null
from http import HTTPStatus from authlib.jose import jwt from pytest import fixture from .utils import get_headers from api.errors import AUTH_ERROR def test_call_with_authorization_header_failure( route, client, authorization_errors_expected_payload ): response = client.post(route) a...
27.660131
79
0.712193
09cbcab75f8e35ba54cb7a9b30b5581da605210d
1,562
py
Python
ops-implementations/ads-ml-service/app/gunicorn.init.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
1
2021-09-14T18:40:33.000Z
2021-09-14T18:40:33.000Z
ops-implementations/ads-ml-service/app/gunicorn.init.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
7
2021-04-23T13:41:39.000Z
2021-08-12T09:33:10.000Z
ops-implementations/ads-ml-service/app/gunicorn.init.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
5
2020-12-10T14:27:23.000Z
2022-03-29T08:44:22.000Z
#!/usr/bin/env python3 # # Copyright 2020 IBM # 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 t...
33.956522
111
0.734955
09cd5bd9b3afeaf12e00c4f547e27cdd27294e5a
394
py
Python
projecteuler/util/summation.py
Tenebrar/codebase
59c9a35289fb29afedad0e3edd0519b67372ef9f
[ "Unlicense" ]
1
2020-04-21T11:39:25.000Z
2020-04-21T11:39:25.000Z
projecteuler/util/summation.py
Tenebrar/codebase
59c9a35289fb29afedad0e3edd0519b67372ef9f
[ "Unlicense" ]
7
2020-02-12T01:08:01.000Z
2022-02-10T11:56:56.000Z
projecteuler/util/summation.py
Tenebrar/codebase
59c9a35289fb29afedad0e3edd0519b67372ef9f
[ "Unlicense" ]
null
null
null
def sum_all_to(num: int) -> int: """ Return the sum of all numbers up to and including the input number """ return num * (num + 1) // 2 def square_pyramidal_number(num: int) -> int: """ Return the sum of the squares of all numbers up to and including the input number """ # https://en.wikipedia.org/wik...
39.4
93
0.649746
09ce6912201c289c5c7f36b054105384590d7dc8
2,143
py
Python
graphics/place_camera.py
bdemin/M113_Visualization
bf863af9dfc2902ae9123afeae8d5bd413a4bedb
[ "MIT" ]
null
null
null
graphics/place_camera.py
bdemin/M113_Visualization
bf863af9dfc2902ae9123afeae8d5bd413a4bedb
[ "MIT" ]
null
null
null
graphics/place_camera.py
bdemin/M113_Visualization
bf863af9dfc2902ae9123afeae8d5bd413a4bedb
[ "MIT" ]
null
null
null
import numpy as np
31.985075
133
0.585161
09cf011d62fddefba9f4507356da24e66db71898
16,405
py
Python
src/tools/api_compiler/compiler.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
2
2020-09-17T20:51:18.000Z
2020-11-03T15:58:10.000Z
src/tools/api_compiler/compiler.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
97
2020-08-26T05:07:08.000Z
2022-03-28T16:01:49.000Z
src/tools/api_compiler/compiler.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
null
null
null
""" .. /------------------------------------------------------------------------------\ | -- FACADE TECHNOLOGIES INC. CONFIDENTIAL -- | |------------------------------------------------------------------------------| | ...
40.208333
120
0.585431
09d449514e9039bc5c41cf98d5932b80f0321669
898
py
Python
TestSourceCode_Store/PIM_example_resize.py
leejaymin/QDroid
13ff9d26932378513a7c9f0038eb59b922ed06eb
[ "Apache-2.0" ]
null
null
null
TestSourceCode_Store/PIM_example_resize.py
leejaymin/QDroid
13ff9d26932378513a7c9f0038eb59b922ed06eb
[ "Apache-2.0" ]
null
null
null
TestSourceCode_Store/PIM_example_resize.py
leejaymin/QDroid
13ff9d26932378513a7c9f0038eb59b922ed06eb
[ "Apache-2.0" ]
null
null
null
import sys from PIL import Image #import ImageChops #import numpy as np #import ImageChops if __name__ == '__main__': srcList = [] targetList = [] colorRate = [] avgColorRate = 0.0 sumColorRate = 0 validCount = 0 # image_src = '/root/Android_Application_source/recomended/0.png' fir...
26.411765
85
0.680401
09d4d5139b90907a08147b1f476920cdd503f04c
15,484
py
Python
src/testing/functionaltests/webtest.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
1
2018-03-26T22:39:36.000Z
2018-03-26T22:39:36.000Z
src/testing/functionaltests/webtest.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
null
null
null
src/testing/functionaltests/webtest.py
pgecsenyi/piepy
37bf6cb5bc8c4f9da3f695216beda7353d79fb29
[ "MIT" ]
null
null
null
""" Web unit tests """ # pylint: disable=too-many-public-methods import time import unittest import requests from testing.communicationhelper import get_json, put_json from testing.functions import are_expected_items_in_list, are_expected_kv_pairs_in_list, \ get_item_from_embedded_dict...
32.529412
120
0.58822
09d79f0d227847749db1ddb7eb6acbb60326e8b8
862
py
Python
10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py
ZeroWeight/Pattern-Recognize
ce18ab7d218840978f546a94d02d4183c9dc1aac
[ "MIT" ]
4
2018-07-30T01:46:22.000Z
2019-04-09T12:23:52.000Z
10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py
ZeroWeight/Pattern-Recognize
ce18ab7d218840978f546a94d02d4183c9dc1aac
[ "MIT" ]
null
null
null
10_Name_Card_Detection/pytorch-faster-rcnn/lib/datasets/factory.py
ZeroWeight/Pattern-Recognize
ce18ab7d218840978f546a94d02d4183c9dc1aac
[ "MIT" ]
1
2020-02-25T05:09:06.000Z
2020-02-25T05:09:06.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Factory method for easily getting imdbs by name.""" __sets = {} fro...
29.724138
79
0.612529
09d9a6c70c2c9fb2475c65d8587c45d1e8aa1eb1
1,251
py
Python
portafolio/core/views.py
breinerGiraldo/python
89603d7ce0be8e2bb20817ee3c845fdb26a1b54a
[ "bzip2-1.0.6" ]
null
null
null
portafolio/core/views.py
breinerGiraldo/python
89603d7ce0be8e2bb20817ee3c845fdb26a1b54a
[ "bzip2-1.0.6" ]
null
null
null
portafolio/core/views.py
breinerGiraldo/python
89603d7ce0be8e2bb20817ee3c845fdb26a1b54a
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render,HTTpResponse # Create your views here.
39.09375
106
0.655476
09da5fe1886cdd50f1983ad7996a351fe7c5c4f5
257
py
Python
setup.py
luphord/australian-housing-exercise
441b8700cfe6d50742945b33d4f123dc6c497e5a
[ "MIT" ]
null
null
null
setup.py
luphord/australian-housing-exercise
441b8700cfe6d50742945b33d4f123dc6c497e5a
[ "MIT" ]
null
null
null
setup.py
luphord/australian-housing-exercise
441b8700cfe6d50742945b33d4f123dc6c497e5a
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='australian_housing', packages=find_packages(), version='0.2.1', description='"A data science exercise on Australian house approvements"', author='"luphord"', license='MIT', )
23.363636
77
0.696498
09dbc482da6f2620a0ec95d44dab6ffbe0c052f9
4,439
py
Python
monopoly.py
michaelhutton/monopoly
d3adcf524dfb015dbdaaadf905ca8cc4396fde3e
[ "MIT" ]
null
null
null
monopoly.py
michaelhutton/monopoly
d3adcf524dfb015dbdaaadf905ca8cc4396fde3e
[ "MIT" ]
null
null
null
monopoly.py
michaelhutton/monopoly
d3adcf524dfb015dbdaaadf905ca8cc4396fde3e
[ "MIT" ]
null
null
null
import random squares = [ "Go", "Mediterranean Ave.", "Community Chest", "Baltic Ave.", "Income Tax", "Reading Railroad", "Oriental Ave.", "Chance", "Vermont Ave.", "Connecticut Ave.", "Jail", "St. Charles Place", "Electric Company", "States Ave.", "Virginia ...
29.593333
80
0.581437
09ddae526c3cd9bcfe820b2b4ae3706b5e1e7c32
7,769
py
Python
coinzdense/app.py
pibara/coinzdense-python
f051770b71fa0afe935eb0d2079dab21eea9432d
[ "BSD-3-Clause" ]
null
null
null
coinzdense/app.py
pibara/coinzdense-python
f051770b71fa0afe935eb0d2079dab21eea9432d
[ "BSD-3-Clause" ]
null
null
null
coinzdense/app.py
pibara/coinzdense-python
f051770b71fa0afe935eb0d2079dab21eea9432d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 from coinzdense.signing import SigningKey as _SigningKey from coinzdense.validation import ValidationEnv as _ValidationEnv from coinzdense.wallet import create_wallet as _create_wallet from coinzdense.wallet import open_wallet as _open_wallet
50.122581
132
0.635603
09de00e54d3860203b7729e1854754335ac141d7
1,296
py
Python
src/asyncdataflow/inspector.py
tomaszkingukrol/async-data-flow
1572ef101cb0e6a0f27a77401538a4620ee9939f
[ "Apache-2.0" ]
null
null
null
src/asyncdataflow/inspector.py
tomaszkingukrol/async-data-flow
1572ef101cb0e6a0f27a77401538a4620ee9939f
[ "Apache-2.0" ]
null
null
null
src/asyncdataflow/inspector.py
tomaszkingukrol/async-data-flow
1572ef101cb0e6a0f27a77401538a4620ee9939f
[ "Apache-2.0" ]
null
null
null
from collections.abc import Iterable from typing import Callable, Tuple import inspect from .definition import DataFlowInspector from .exceptions import DataFlowFunctionArgsError, DataFlowNotCallableError, DataFlowEmptyError, DataFlowNotTupleError def _check_positional_or_keyword_args(func: Callable) -> bool: ...
35.027027
118
0.655864
09e5ab892fd8685aedec11f8378615ed2931fa1c
891
py
Python
processing_pipeline/extractionless_registration.py
SijRa/Brain-Image-Analysis-using-Deep-Learning
a35411bda6e39eff57f715a695b7fb6a30997706
[ "MIT" ]
2
2022-01-04T16:54:20.000Z
2022-01-24T03:01:14.000Z
processing_pipeline/extractionless_registration.py
SijRa/Brain-Image-Analysis-using-Deep-Learning
a35411bda6e39eff57f715a695b7fb6a30997706
[ "MIT" ]
null
null
null
processing_pipeline/extractionless_registration.py
SijRa/Brain-Image-Analysis-using-Deep-Learning
a35411bda6e39eff57f715a695b7fb6a30997706
[ "MIT" ]
1
2020-07-05T09:30:11.000Z
2020-07-05T09:30:11.000Z
from ants import registration, image_read, image_write, resample_image, crop_image from os import listdir mri_directory = "ADNI_baseline_raw/" template_loc = "MNI152_2009/mni_icbm152_t1_tal_nlin_sym_09a.nii" template = image_read(template_loc) template = resample_image(template, (192, 192, 160), True, 4) #template = ...
40.5
89
0.751964
09e5f7e19923e048c28f58a87dbbfe0de36d4a04
362
py
Python
3rdparty/pytorch/torch/autograd/variable.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
51
2020-01-26T23:32:57.000Z
2022-03-20T14:49:57.000Z
3rdparty/pytorch/torch/autograd/variable.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
2
2020-12-19T20:00:28.000Z
2021-03-03T20:22:45.000Z
3rdparty/pytorch/torch/autograd/variable.py
WoodoLee/TorchCraft
999f68aab9e7d50ed3ae138297226dc95fefc458
[ "MIT" ]
33
2020-02-18T16:15:48.000Z
2022-03-24T15:12:05.000Z
import torch from torch._six import with_metaclass from torch._C import _ImperativeEngine as ImperativeEngine Variable._execution_engine = ImperativeEngine()
22.625
75
0.79558
09e7e9329ecb594a1ce5f26cf6f1dcdac3d78aef
15,237
py
Python
sp_api/api/finances/models/shipment_item.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
sp_api/api/finances/models/shipment_item.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
sp_api/api/finances/models/shipment_item.py
lionsdigitalsolutions/python-amazon-sp-api
7374523ebc65e2e01e37d03fc4009a44fabf2c3b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Selling Partner API for Finances The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You ...
35.270833
377
0.671458
09e83bd920be035d9c74e3803047761cd01ba2d9
583
py
Python
glycan_profiling/database/prebuilt/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
4
2019-04-26T15:47:57.000Z
2021-04-20T22:53:58.000Z
glycan_profiling/database/prebuilt/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
8
2017-11-22T19:20:20.000Z
2022-02-14T01:49:58.000Z
glycan_profiling/database/prebuilt/__init__.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
3
2017-11-21T18:05:28.000Z
2021-09-23T18:38:33.000Z
from .utils import hypothesis_register from . import heparin from . import combinatorial_mammalian_n_linked from . import glycosaminoglycan_linkers from . import combinatorial_human_n_linked from . import biosynthesis_human_n_linked from . import biosynthesis_mammalian_n_linked from . import human_mucin_o_linked __al...
27.761905
46
0.806175
09e84e1dd2d539b68ad7f9d464717d52336a5ae9
216
py
Python
zhongyicheng/scripts/test.py
Chr0802/No-easy-summer1
d8d88b8d025f039deca7c89518b63446e4f80567
[ "MIT" ]
2
2021-08-05T11:44:12.000Z
2021-08-31T10:50:13.000Z
zhongyicheng/scripts/test.py
Chr0802/No-easy-summer1
d8d88b8d025f039deca7c89518b63446e4f80567
[ "MIT" ]
1
2021-08-07T03:21:12.000Z
2021-08-07T03:21:12.000Z
zhongyicheng/scripts/test.py
Chr0802/No-easy-summer1
d8d88b8d025f039deca7c89518b63446e4f80567
[ "MIT" ]
8
2021-07-26T05:11:37.000Z
2021-10-05T05:34:34.000Z
from elasticsearch import Elasticsearch es = Elasticsearch([ {'host':'localhost','port':8200}, ]) print(es.search(index='ename_test_multiprocess',body={"query":{"match":{"name":str(input())}}})['hits']['hits'])
30.857143
112
0.680556
09e89717699974cfa907e599273f2f898e6cc20f
30
py
Python
pastepdb/__init__.py
pooriaahmadi/pastepdb
166b2e8614ee2ea6c8f2f804af23458defb4674a
[ "MIT" ]
8
2021-03-17T10:48:49.000Z
2021-04-06T08:16:04.000Z
pastepdb/__init__.py
pooriaahmadi/pastepdb
166b2e8614ee2ea6c8f2f804af23458defb4674a
[ "MIT" ]
null
null
null
pastepdb/__init__.py
pooriaahmadi/pastepdb
166b2e8614ee2ea6c8f2f804af23458defb4674a
[ "MIT" ]
null
null
null
from .pastepdb import pastepdb
30
30
0.866667
09e89b2450d77d8cea8acdf70dfa8deb4095af90
3,370
py
Python
my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
my_plugins/youcompleteme/python/ycm/tests/diagnostic_interface_test.py
VirtualLG/vimrc
33f961b0e465b852753479bc4aa0a32a6ff017cf
[ "MIT" ]
null
null
null
# Copyright (C) 2015-2018 YouCompleteMe contributors # # This file is part of YouCompleteMe. # # YouCompleteMe 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 opt...
32.403846
77
0.625223
09e91e344b133bb70e9396f03df09da25b24a2b5
1,372
py
Python
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
quandxbp/vnpt-ccos
23d2bc3d3db2e0bce479e0ccfa62e13451306635
[ "bzip2-1.0.6" ]
null
null
null
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
quandxbp/vnpt-ccos
23d2bc3d3db2e0bce479e0ccfa62e13451306635
[ "bzip2-1.0.6" ]
null
null
null
oa_zalo/zalo_base/migrations/0004_auto_20210714_0949.py
quandxbp/vnpt-ccos
23d2bc3d3db2e0bce479e0ccfa62e13451306635
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 3.2.4 on 2021-07-14 02:49 from django.db import migrations, models
29.191489
74
0.559038
09e9f3d9309a9df34ab48cce11c67316c012a978
272
py
Python
project/web/utils/docx_files.py
sirodeneko/pyProject
02cd67df26decf7b0ec20d86a2bbb5bce9f4e369
[ "MIT" ]
null
null
null
project/web/utils/docx_files.py
sirodeneko/pyProject
02cd67df26decf7b0ec20d86a2bbb5bce9f4e369
[ "MIT" ]
1
2020-11-30T09:35:15.000Z
2020-11-30T09:35:15.000Z
project/web/utils/docx_files.py
sirodeneko/pyProject
02cd67df26decf7b0ec20d86a2bbb5bce9f4e369
[ "MIT" ]
1
2020-11-30T09:33:24.000Z
2020-11-30T09:33:24.000Z
import json import os import re import urllib.request
17
35
0.632353
09eadaf88e96e921514284415b829745e173d0ca
708
py
Python
pkgs/javusdev/javusdev/settings.py
quapka/javus
577e0c2dabfaea39d7ffacd42100d8a5f4cd738c
[ "MIT" ]
1
2020-09-22T01:38:21.000Z
2020-09-22T01:38:21.000Z
pkgs/javusdev/javusdev/settings.py
petrs/javus
6927c824d5e6b574a6a323c87bd5aa117eca5b00
[ "MIT" ]
null
null
null
pkgs/javusdev/javusdev/settings.py
petrs/javus
6927c824d5e6b574a6a323c87bd5aa117eca5b00
[ "MIT" ]
1
2020-07-26T07:20:47.000Z
2020-07-26T07:20:47.000Z
import os from pathlib import Path PROJECT_ROOT = get_project_root() PROJECT_SRC = get_project_src() DATA = get_project_data() JAVUS_ATTACKS_DIR = get_javus_attacks_dir()
23.6
83
0.728814
09edfb321e8839956c0dd18d657713402150647f
2,043
py
Python
examples/design_studies/ihm_fingergait/check_progress.py
cbteeple/somo
53a1a94f7d9d624bc4c43e582c80f24a0e98df24
[ "MIT" ]
null
null
null
examples/design_studies/ihm_fingergait/check_progress.py
cbteeple/somo
53a1a94f7d9d624bc4c43e582c80f24a0e98df24
[ "MIT" ]
null
null
null
examples/design_studies/ihm_fingergait/check_progress.py
cbteeple/somo
53a1a94f7d9d624bc4c43e582c80f24a0e98df24
[ "MIT" ]
null
null
null
# Be sure to run this file from the "palm_sweeps" folder # cd examples/palm_sweeps import os import sys from datetime import datetime path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) sys.path.insert(0, path) from somo.sweep import iter_utils config_file = "sweeps/grid_diam_height.yam...
29.185714
94
0.708762
09f226a5810e82fde46ce6d76eb7db7321ca355b
3,998
py
Python
Projects/Project 1/Handin/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 1/Handin/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
Projects/Project 1/Handin/program.py
ymirthor/T-215-STY1
b888da1e88c5aa16eac03353f525e9e0b9d901df
[ "MIT" ]
null
null
null
from collections import deque as LL
35.070175
79
0.598049
09f23dc12e2bcbc1428ea1ce895f4e644cb3aca4
2,449
py
Python
utils/ion.py
karlstratos/EntityQuestions
c4969aa6ca464773c2c35ab0569ba5924320d8d9
[ "MIT" ]
103
2021-09-16T18:19:49.000Z
2022-03-29T03:18:50.000Z
utils/ion.py
karlstratos/EntityQuestions
c4969aa6ca464773c2c35ab0569ba5924320d8d9
[ "MIT" ]
8
2021-09-25T00:00:37.000Z
2022-03-24T01:01:35.000Z
utils/ion.py
karlstratos/EntityQuestions
c4969aa6ca464773c2c35ab0569ba5924320d8d9
[ "MIT" ]
10
2021-09-19T08:12:53.000Z
2022-03-23T09:09:23.000Z
""" General framework for reading/writing data from/to files on the local system. """ import json import random from pathlib import Path ############################################################################### # FILE READING ################################################# ####################...
31
79
0.475704
09f240acbe9b8fa80d51945cdcc670845719d41c
2,394
py
Python
pg_methods/interfaces/state_processors.py
zafarali/policy-gradient-methods
f0d83a80ddc772dcad0c851aac9bfd41d436c274
[ "MIT" ]
28
2018-06-12T21:37:20.000Z
2021-12-27T15:13:14.000Z
pg_methods/interfaces/state_processors.py
zafarali/policy-gradient-methods
f0d83a80ddc772dcad0c851aac9bfd41d436c274
[ "MIT" ]
3
2018-05-10T16:33:05.000Z
2018-06-19T18:17:37.000Z
pg_methods/interfaces/state_processors.py
zafarali/policy-gradient-methods
f0d83a80ddc772dcad0c851aac9bfd41d436c274
[ "MIT" ]
7
2018-05-08T04:13:21.000Z
2021-04-02T12:31:55.000Z
import gym import torch import numpy as np from pg_methods.interfaces import common_interfaces as common
36.272727
102
0.575188
09f69dea9d9541fb1a471fe9f8d7ffca1d756933
3,935
py
Python
tests/test_emlib.py
mjpekala/faster-membranes
f203fc8608603bc7b16a1abeac324d52e9dfe96a
[ "Apache-2.0" ]
null
null
null
tests/test_emlib.py
mjpekala/faster-membranes
f203fc8608603bc7b16a1abeac324d52e9dfe96a
[ "Apache-2.0" ]
null
null
null
tests/test_emlib.py
mjpekala/faster-membranes
f203fc8608603bc7b16a1abeac324d52e9dfe96a
[ "Apache-2.0" ]
null
null
null
"""Unit test for emlib.py To run: PYTHONPATH=../src python test_emlib.py """ __author__ = "Mike Pekala" __copyright__ = "Copyright 2015, JHU/APL" __license__ = "Apache 2.0" import unittest import numpy as np from sklearn.metrics import precision_recall_fscore_support as smetrics import emlib if __name__ ...
33.067227
88
0.519695
09f80f8b20cbf9fab41433b7fb79cb311415a791
193
py
Python
src/biopsykit/signals/imu/feature_extraction/__init__.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
10
2020-11-05T13:34:55.000Z
2022-03-11T16:20:10.000Z
src/biopsykit/signals/imu/feature_extraction/__init__.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
14
2021-03-11T14:43:52.000Z
2022-03-10T19:44:57.000Z
src/biopsykit/signals/imu/feature_extraction/__init__.py
Zwitscherle/BioPsyKit
7200c5f1be75c20f53e1eb4c991aca1c89e3dd88
[ "MIT" ]
3
2021-09-13T13:14:38.000Z
2022-02-19T09:13:25.000Z
"""Module containing scripts for different feature extraction techniques from raw IMU data.""" from biopsykit.signals.imu.feature_extraction import static_moments __all__ = ["static_moments"]
38.6
94
0.818653
09f91afeaca4a61947c025a6985fde971a2433a0
727
py
Python
app/core/bluetooth/models.py
FHellmann/MLWTF
582c3505d638907a848d5a6c739ee99981300f17
[ "Apache-2.0" ]
null
null
null
app/core/bluetooth/models.py
FHellmann/MLWTF
582c3505d638907a848d5a6c739ee99981300f17
[ "Apache-2.0" ]
null
null
null
app/core/bluetooth/models.py
FHellmann/MLWTF
582c3505d638907a848d5a6c739ee99981300f17
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ Author: Fabio Hellmann <info@fabio-hellmann.de> """ from attr import s, ib from attr.validators import instance_of
27.961538
114
0.68088
09f949d20672656308f4b25b2fb52c7d29555163
1,511
py
Python
Algorithms_medium/1102. Path With Maximum Minimum Value.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
4
2020-08-11T20:45:15.000Z
2021-03-12T00:33:34.000Z
Algorithms_medium/1102. Path With Maximum Minimum Value.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
Algorithms_medium/1102. Path With Maximum Minimum Value.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
""" 1102. Path With Maximum Minimum Value Medium Given a matrix of integers A with R rows and C columns, find the maximum score of a path starting at [0,0] and ending at [R-1,C-1]. The score of a path is the minimum value in that path. For example, the value of the path 8 4 5 9 is 4. A path moves some number ...
26.982143
154
0.536069
09f9da8e8fb3a2cb6c40b0627a6fdbf5844460e0
1,436
py
Python
tests/extractor/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
tests/extractor/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
tests/extractor/test_factory.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
import pytest import data_pipeline.db.factory as db_factory import data_pipeline.extractor.factory as extractor_factory import tests.unittest_utils as utils import data_pipeline.constants.const as const from pytest_mock import mocker from data_pipeline.db.exceptions import UnsupportedDbTypeError def test_build_unsu...
34.190476
79
0.766017
09fa1379267ff36d7eaf0c8f04ba9a7c23bd124b
3,424
py
Python
suremco/tracker.py
modsim/SurEmCo
71fc0cfc62f8733de93ee2736421574a154e3db3
[ "BSD-2-Clause" ]
null
null
null
suremco/tracker.py
modsim/SurEmCo
71fc0cfc62f8733de93ee2736421574a154e3db3
[ "BSD-2-Clause" ]
null
null
null
suremco/tracker.py
modsim/SurEmCo
71fc0cfc62f8733de93ee2736421574a154e3db3
[ "BSD-2-Clause" ]
null
null
null
# SurEmCo - C++ tracker wrapper import ctypes from enum import IntEnum import sys import os import numpy import numpy.ctypeslib
29.517241
101
0.580023
09fa8917e01388a6694109a784fa133ce2d71a48
774
py
Python
lianxi/abc.py
xuguoqiang1/qiang
a95f105897462a630d8312eabea6a0f905c3e3e1
[ "MIT" ]
null
null
null
lianxi/abc.py
xuguoqiang1/qiang
a95f105897462a630d8312eabea6a0f905c3e3e1
[ "MIT" ]
null
null
null
lianxi/abc.py
xuguoqiang1/qiang
a95f105897462a630d8312eabea6a0f905c3e3e1
[ "MIT" ]
null
null
null
# coding=utf-8 from flask import Flask from flask_sqlalchemy import SQLAlchemy from config import Config app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) if __name__ == '__main__': db.create_all() app.run()
24.967742
62
0.682171
09fb1d9a7c357f2bc49fb2f43274b073bfff333e
4,026
py
Python
foreign_languages/anderson.py
ds-modules/NESTUD-190A
54ca1cd9a8f369f48946147f72377f874738f7d5
[ "MIT" ]
6
2017-11-06T03:18:12.000Z
2019-10-02T19:41:06.000Z
foreign_languages/anderson.py
admndrsn/NESTUD-190A
54ca1cd9a8f369f48946147f72377f874738f7d5
[ "MIT" ]
null
null
null
foreign_languages/anderson.py
admndrsn/NESTUD-190A
54ca1cd9a8f369f48946147f72377f874738f7d5
[ "MIT" ]
2
2018-02-09T01:04:58.000Z
2019-06-19T17:45:34.000Z
from IPython.core.display import display, HTML import translation
31.209302
132
0.721063
61cb92b7eff849f550f556cfcf71f302f039dac7
1,315
py
Python
landdox/core.py
natefduncan/landdox
58908554034577cc20c6f89ee6056da90cbfbd4e
[ "MIT" ]
1
2019-12-13T16:19:56.000Z
2019-12-13T16:19:56.000Z
landdox/core.py
natefduncan/landdox
58908554034577cc20c6f89ee6056da90cbfbd4e
[ "MIT" ]
null
null
null
landdox/core.py
natefduncan/landdox
58908554034577cc20c6f89ee6056da90cbfbd4e
[ "MIT" ]
null
null
null
import requests import json import pandas as pd import os from .endpoints import *
26.3
62
0.580989
61cd1b7623e09e8563a60f3d87a7caf270f2faa2
589
py
Python
src/signalplotter/qt/makePyUI.py
jowanpittevils/Databasemanager_Signalplotter
993152ad15793054df2acf386eb1c9a76610b789
[ "BSD-3-Clause" ]
null
null
null
src/signalplotter/qt/makePyUI.py
jowanpittevils/Databasemanager_Signalplotter
993152ad15793054df2acf386eb1c9a76610b789
[ "BSD-3-Clause" ]
null
null
null
src/signalplotter/qt/makePyUI.py
jowanpittevils/Databasemanager_Signalplotter
993152ad15793054df2acf386eb1c9a76610b789
[ "BSD-3-Clause" ]
null
null
null
#%% uiNames = ['plotter_uiDesign'] makeUI(uiNames) # %%
21.035714
69
0.50764
61cd45cf1541403e9fd5c523d38b1e30cb5cbcc0
1,640
py
Python
scraper.py
mikeku1116/python-accupass-scraper
ad3301fde373ce68e55459ba5af0273599d25e37
[ "MIT" ]
null
null
null
scraper.py
mikeku1116/python-accupass-scraper
ad3301fde373ce68e55459ba5af0273599d25e37
[ "MIT" ]
null
null
null
scraper.py
mikeku1116/python-accupass-scraper
ad3301fde373ce68e55459ba5af0273599d25e37
[ "MIT" ]
null
null
null
from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from bs4 import BeautifulSoup import pandas as pd # ChromeChrome browser = webdriver.Chrome(ChromeDriverManager().install()) browser.get( "https://old.accupass.com/search/r/0/0/0/0/4/0/00010101/99991231?q=python") soup = Beau...
30.943396
111
0.65
61cea84c27bf7df9b0289ed47ffee2781ddbdc17
3,148
py
Python
mpcontribs-users/mpcontribs/users/swf/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
1
2019-07-03T04:38:58.000Z
2019-07-03T04:38:58.000Z
mpcontribs-users/mpcontribs/users/swf/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
null
null
null
mpcontribs-users/mpcontribs/users/swf/pre_submission.py
josuav1/MPContribs
3cbf0e83ba6cd749dd4fc988c9f6ad076b05f935
[ "MIT" ]
1
2019-07-03T04:39:04.000Z
2019-07-03T04:39:04.000Z
from mpcontribs.config import mp_level01_titles from mpcontribs.io.core.recdict import RecursiveDict from mpcontribs.io.core.utils import clean_value, get_composition_from_string from mpcontribs.users.utils import duplicate_check
43.123288
91
0.656607