hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
c054e5df6525caa1e5b886eedf24790796e7312b
862
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/first_duplicate.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/first_duplicate.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/CODESIGNAL/first_duplicate.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
def firstDuplicate(a): number_frequencies, number_indices, duplicate_index = {}, {}, {} # Iterate through list and increment frequency count # if number not in dict. Also, note the index asscoiated # with the value for i in range(len(a)): if a[i] not in number_frequencies: numbe...
34.48
73
0.62413
0
0
0
0
0
0
0
0
124
0.143852
c0556573b1b396000e337b73f3de0c54b4d2d005
374
py
Python
src/viewer/abs/forms.py
ozacas/asxtrade
a3645ae526bfc7a546fdf2a39520feda99e3390a
[ "Apache-2.0" ]
8
2021-03-20T13:12:25.000Z
2022-02-07T11:17:40.000Z
src/viewer/abs/forms.py
ozacas/asxtrade
a3645ae526bfc7a546fdf2a39520feda99e3390a
[ "Apache-2.0" ]
8
2021-03-07T03:23:46.000Z
2021-06-01T10:49:56.000Z
src/viewer/abs/forms.py
ozacas/asxtrade
a3645ae526bfc7a546fdf2a39520feda99e3390a
[ "Apache-2.0" ]
3
2020-12-08T10:22:23.000Z
2021-08-04T01:59:24.000Z
from django import forms from django.core.exceptions import ValidationError from abs.models import dataflows class ABSDataflowForm(forms.Form): dataflow = forms.ChoiceField(choices=(), required=True) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields["dataflow"...
31.166667
83
0.71123
262
0.700535
0
0
0
0
0
0
10
0.026738
c058a47a9fcf9cced343a8955317d5594bcf17a7
734
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/dot1x/clear.py
patrickboertje/genielibs
61c37aacf3dd0f499944555e4ff940f92f53dacb
[ "Apache-2.0" ]
1
2022-01-16T10:00:24.000Z
2022-01-16T10:00:24.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/dot1x/clear.py
patrickboertje/genielibs
61c37aacf3dd0f499944555e4ff940f92f53dacb
[ "Apache-2.0" ]
null
null
null
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/dot1x/clear.py
patrickboertje/genielibs
61c37aacf3dd0f499944555e4ff940f92f53dacb
[ "Apache-2.0" ]
null
null
null
# Python import logging # Unicon from unicon.core.errors import SubCommandFailure # Logger log = logging.getLogger(__name__) def clear_access_session_intf(device, intf): """ clear access-session interface {} Args: device (`obj`): Device object intf('str'): Name of the interface ...
24.466667
83
0.622616
0
0
0
0
0
0
0
0
386
0.525886
c059b518fc62b90809941f99c3bd5f94aa341ed5
9,713
py
Python
pipeline/forms.py
jnis77diver/django-pipeline
8bac57adae84615d9d79ad19b2b591c2e46879f9
[ "MIT" ]
null
null
null
pipeline/forms.py
jnis77diver/django-pipeline
8bac57adae84615d9d79ad19b2b591c2e46879f9
[ "MIT" ]
1
2021-09-20T22:02:21.000Z
2021-09-21T13:55:41.000Z
pipeline/forms.py
jnis77diver/django-pipeline
8bac57adae84615d9d79ad19b2b591c2e46879f9
[ "MIT" ]
1
2021-09-18T01:39:48.000Z
2021-09-18T01:39:48.000Z
"""Support for referencing Pipeline packages in forms and widgets.""" from __future__ import unicode_literals from django.contrib.staticfiles.storage import staticfiles_storage from django.utils.functional import cached_property try: from django.utils.six import iteritems, add_metaclass except ImportError: fr...
34.81362
79
0.615258
9,141
0.94111
0
0
1,633
0.168125
0
0
6,478
0.666941
c05cbafe5128e838bdc6f0435f143a4bec7be43b
1,838
py
Python
api_user/views.py
archkwon/python-django-restful-mysql
a8097c08057de9656cb40266420fcffebb11bdb6
[ "MIT" ]
null
null
null
api_user/views.py
archkwon/python-django-restful-mysql
a8097c08057de9656cb40266420fcffebb11bdb6
[ "MIT" ]
null
null
null
api_user/views.py
archkwon/python-django-restful-mysql
a8097c08057de9656cb40266420fcffebb11bdb6
[ "MIT" ]
null
null
null
from django.http import QueryDict from django.http.response import JsonResponse from rest_framework import viewsets, status from rest_framework.views import APIView from .serializers import * class UserInfoViewSet(viewsets.ModelViewSet): queryset = UserInfoModel.objects.all() serializer_class = UserInfoSerial...
31.152542
72
0.650707
1,624
0.875
0
0
0
0
0
0
259
0.139547
c05d4625afeae008646d224702597baba51c509c
5,043
py
Python
vms/create_kit_files.py
vmssoftware/python_3_8_2
06cdf3fc9ae103afc55cbd5657ba7c7d09120a81
[ "CNRI-Python-GPL-Compatible" ]
3
2020-11-30T22:36:38.000Z
2021-01-22T01:00:06.000Z
vms/create_kit_files.py
vmssoftware/python_3_8_2
06cdf3fc9ae103afc55cbd5657ba7c7d09120a81
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
vms/create_kit_files.py
vmssoftware/python_3_8_2
06cdf3fc9ae103afc55cbd5657ba7c7d09120a81
[ "CNRI-Python-GPL-Compatible" ]
1
2021-04-13T13:17:02.000Z
2021-04-13T13:17:02.000Z
import os import re import sys def spec_replacer(match): if match.group(0) == ' ': return '^_' return '^' + match.group(0) def create_content(type, major, minor, level, edit): python_dir = '/python$root' python_dir_len = len(python_dir) all_dirs = [] all_files = [] spec_pattern = r...
26.265625
120
0.601229
0
0
0
0
0
0
0
0
2,887
0.572477
c05de0c488b3f0907732a9cffd73ea481b5c0be6
10,458
py
Python
dotfiles/config/feltnerm/bin/dots.py
feltnerm/dotfiles
0984ade31ecfcd003e1cce4f165fcd717e9b6317
[ "WTFPL" ]
4
2016-06-19T20:02:12.000Z
2017-02-27T19:55:49.000Z
dotfiles/config/feltnerm/bin/dots.py
feltnerm/dotfiles
0984ade31ecfcd003e1cce4f165fcd717e9b6317
[ "WTFPL" ]
6
2016-01-20T20:24:42.000Z
2016-08-17T02:31:43.000Z
dotfiles/config/feltnerm/bin/dots.py
feltnerm/dotfiles
0984ade31ecfcd003e1cce4f165fcd717e9b6317
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python # .py # @TODO: # - fix the diffing # - use rsync across hosts or something fancy import argparse, difflib, functools, re, shutil, subprocess, sys, time, os from pprint import pprint __description__ = "Manage your dotfiles." ls = lambda path: os.listdir(path) ls_abs = lambda path: [os.path.join...
34.288525
104
0.52467
7,188
0.687321
0
0
108
0.010327
0
0
2,450
0.23427
c05e6da89d714cfca87531c2eed521c2ad804f17
246
py
Python
plot_log_population.py
catskillsresearch/openasr20
b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e
[ "Apache-2.0" ]
null
null
null
plot_log_population.py
catskillsresearch/openasr20
b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e
[ "Apache-2.0" ]
null
null
null
plot_log_population.py
catskillsresearch/openasr20
b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e
[ "Apache-2.0" ]
1
2021-07-28T02:13:21.000Z
2021-07-28T02:13:21.000Z
import matplotlib.pylab as plt def plot_log_population(population, _title, _xlabel, _ylabel, _bins): plt.hist(population,bins=_bins) plt.xlabel(_xlabel) plt.ylabel(_ylabel) plt.title(_title) plt.yscale('log'); plt.show()
24.6
69
0.707317
0
0
0
0
0
0
0
0
5
0.020325
c05e9891a35e2b972d23578bd72644f77e52bb11
12,711
py
Python
src/stargazer/stargazer.py
magazino/stargazer
d350959b830b084d31656682721f68b22683ceba
[ "MIT" ]
1
2020-02-16T13:18:39.000Z
2020-02-16T13:18:39.000Z
src/stargazer/stargazer.py
magazino/stargazer
d350959b830b084d31656682721f68b22683ceba
[ "MIT" ]
3
2017-11-10T14:06:05.000Z
2020-04-10T08:27:00.000Z
src/stargazer/stargazer.py
magazino/stargazer
d350959b830b084d31656682721f68b22683ceba
[ "MIT" ]
null
null
null
""" Driver class for Hagisonic Stargazer, with no ROS dependencies. """ from serial import Serial from collections import deque import re import yaml import time import logging import rospy import numpy as np from threading import Thread, Event from tf import transformations # STX: char that represents the start of a ...
33.274869
131
0.567855
11,119
0.874754
0
0
350
0.027535
0
0
5,010
0.394147
c06110be42afdd7912f3230ce0bb253e62f06b14
107
py
Python
example.py
karishmashuklaa/flatifyLists
af9c1cfc45c29756ff9e285dba65f3b4909dabab
[ "MIT" ]
null
null
null
example.py
karishmashuklaa/flatifyLists
af9c1cfc45c29756ff9e285dba65f3b4909dabab
[ "MIT" ]
null
null
null
example.py
karishmashuklaa/flatifyLists
af9c1cfc45c29756ff9e285dba65f3b4909dabab
[ "MIT" ]
null
null
null
from flatifylists import flatifyList example = [[[1,2], [3,[4,[5],6],7],8,9]] print(flatifyList(example))
21.4
40
0.672897
0
0
0
0
0
0
0
0
0
0
c0619baa743809ca6b4e84726f67140652acbe34
834
py
Python
pympeg/_probe.py
AP-Atul/pympeg
26d18883d528ce73c09982f61440d170661165ae
[ "Unlicense" ]
5
2021-01-18T03:19:32.000Z
2021-04-27T06:58:41.000Z
pympeg/_probe.py
AP-Atul/pympeg
26d18883d528ce73c09982f61440d170661165ae
[ "Unlicense" ]
null
null
null
pympeg/_probe.py
AP-Atul/pympeg
26d18883d528ce73c09982f61440d170661165ae
[ "Unlicense" ]
null
null
null
import os import json import subprocess from ._exceptions import ProbeException __all__ = ['probe'] def probe(filename, cmd='ffprobe', timeout=None): """Runs the ffprobe on the given file and outputs in json format """ if not os.path.isfile(filename): raise FileExistsError(f"Input file {filename} d...
24.529412
72
0.640288
0
0
0
0
0
0
0
0
190
0.227818
c063c02a86fbd38bc9d19422a9222b6d2583e226
252
py
Python
example/func_doc.py
tinashime/Python27
b632918c7368a9bcfc5af8353e136247d954fb5e
[ "bzip2-1.0.6" ]
null
null
null
example/func_doc.py
tinashime/Python27
b632918c7368a9bcfc5af8353e136247d954fb5e
[ "bzip2-1.0.6" ]
null
null
null
example/func_doc.py
tinashime/Python27
b632918c7368a9bcfc5af8353e136247d954fb5e
[ "bzip2-1.0.6" ]
null
null
null
def printMax(x,y): '''prints the maximum of two numbers. The two values must be integers.''' x = int(x) y = int(y) if x > y: print x,'is maximun' else: print y,'is maximum' printMax(3,5) print printMax.__doc__
18
41
0.575397
0
0
0
0
0
0
0
0
102
0.404762
c064dd6092bc97df5e3082e40d12bf519228fd1e
16,602
py
Python
wifi_dos_own.py
Mr-Cracker-Pro/red-python-scripts
5bead83038aadf53fc868fb9a786cb37824b18eb
[ "MIT" ]
1,353
2021-01-07T17:12:01.000Z
2022-03-31T21:30:38.000Z
wifi_dos_own.py
deepahir/red-python-scripts
5deef698bf505de30735120e7c3bab34707ad32c
[ "MIT" ]
29
2021-01-30T21:12:16.000Z
2022-03-04T15:06:12.000Z
wifi_dos_own.py
deepahir/red-python-scripts
5deef698bf505de30735120e7c3bab34707ad32c
[ "MIT" ]
1,238
2021-01-07T17:05:18.000Z
2022-03-31T23:25:04.000Z
#!/usr/bin/env python3 # Disclaimer: # This script is for educational purposes only. # Do not use against any network that you don't own or have authorization to test. #!/usr/bin/python3 # We will be using the csv module to work with the data captured by airodump-ng. import csv # If we move csv files to a backup ...
50.1571
219
0.634743
0
0
0
0
0
0
0
0
9,946
0.599084
c0668c5403b0ea8527a26c2985cb37df3eafd6d0
597
py
Python
lightwood/mixers/helpers/debugging.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/mixers/helpers/debugging.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/mixers/helpers/debugging.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
import subprocess def get_gpu_memory_map(): ''' Keys are device ids as integers. Values are memory usage as integers in MB. ''' result = subprocess.check_output( [ 'nvidia-smi', '--query-gpu=memory.used', '--format=csv,nounits,noheader' ], encoding='...
27.136364
66
0.631491
0
0
0
0
0
0
0
0
215
0.360134
c066f48fe0ef8d58aa4b19024e03a53d9943e528
2,010
py
Python
optimization/prac1/tests/test_ridge.py
shaandesai1/AIMS
fee0be214b393af2184d565eb1e9aebb4eb6eeec
[ "MIT" ]
null
null
null
optimization/prac1/tests/test_ridge.py
shaandesai1/AIMS
fee0be214b393af2184d565eb1e9aebb4eb6eeec
[ "MIT" ]
null
null
null
optimization/prac1/tests/test_ridge.py
shaandesai1/AIMS
fee0be214b393af2184d565eb1e9aebb4eb6eeec
[ "MIT" ]
null
null
null
import unittest from sys import argv import numpy as np import torch from objective.ridge import Ridge, Ridge_ClosedForm, Ridge_Gradient from .utils import Container, assert_all_close, assert_all_close_dict def _init_ridge(cls): np.random.seed(1234) torch.manual_seed(1234) n_features = 3 n_samples ...
30.923077
79
0.656716
1,331
0.662189
0
0
0
0
0
0
109
0.054229
c0670360313a88da7a90013e4063946791935b2d
11,795
py
Python
app/parking/views.py
zollf/CITS3200
95fb7569dad325c057e441cd7265d3e85735c058
[ "CC0-1.0" ]
null
null
null
app/parking/views.py
zollf/CITS3200
95fb7569dad325c057e441cd7265d3e85735c058
[ "CC0-1.0" ]
null
null
null
app/parking/views.py
zollf/CITS3200
95fb7569dad325c057e441cd7265d3e85735c058
[ "CC0-1.0" ]
null
null
null
from django.shortcuts import redirect from django.http.response import JsonResponse from django.http import HttpResponse from django.views.decorators.csrf import csrf_protect from django.contrib.auth.decorators import login_required from rest_framework.response import Response from rest_framework.decorators import api...
36.292308
120
0.603815
0
0
0
0
11,222
0.95142
0
0
2,271
0.192539
c068ebb6bccce46da01fec0d1da4f714e0e2357e
33,949
py
Python
utils.py
eepLearning/learn2learn
4ed48e69f1ca5c9508331e15fd4a8f65c3cae750
[ "MIT" ]
null
null
null
utils.py
eepLearning/learn2learn
4ed48e69f1ca5c9508331e15fd4a8f65c3cae750
[ "MIT" ]
null
null
null
utils.py
eepLearning/learn2learn
4ed48e69f1ca5c9508331e15fd4a8f65c3cae750
[ "MIT" ]
null
null
null
import numpy as np import torch from torch.autograd import grad from learn2learn.utils import clone_module, update_module from torch import nn, optim def maml_update(model, lr, grads=None): """ [[Source]](https://github.com/learnables/learn2learn/blob/master/learn2learn/algorithms/maml.py) **Description** Perfo...
34.855236
113
0.745353
0
0
0
0
0
0
0
0
8,314
0.237319
c06a8301008200b139bb039c709d82f05d2164d7
1,602
py
Python
sigda/test/graylog.py
yangluoshen/sigda
83a2149d07edfbe56be95d5dc2a316c044bee54e
[ "BSD-2-Clause" ]
null
null
null
sigda/test/graylog.py
yangluoshen/sigda
83a2149d07edfbe56be95d5dc2a316c044bee54e
[ "BSD-2-Clause" ]
3
2017-08-21T07:26:11.000Z
2017-11-09T02:19:23.000Z
sigda/test/graylog.py
yangluoshen/sigda
83a2149d07edfbe56be95d5dc2a316c044bee54e
[ "BSD-2-Clause" ]
null
null
null
#coding:utf-8 #from graypy import GELFHandler import logging.config import logging ''' handler = GELFHandler(host='0.0.0.0', port=12201) logger = logging.getLogger() logger.addHandler(handler) logger.error('catch error') ''' LOG_LEVEL = 'DEBUG' def get_log_config(category): log_file = "{}.log".format(category)...
23.910448
92
0.473159
0
0
0
0
0
0
0
0
726
0.453184
c06b4470ee6ba272de73e528bcb01060567707f9
142
py
Python
instanotifier/fetcher/scripts/fetcher.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
null
null
null
instanotifier/fetcher/scripts/fetcher.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
6
2020-06-06T01:27:17.000Z
2022-02-10T11:20:17.000Z
instanotifier/fetcher/scripts/fetcher.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
null
null
null
from instanotifier.fetcher import tests def run(): # is executed when ran with 'manage.py runscript tests' tests.test_rss_fetcher()
20.285714
59
0.739437
0
0
0
0
0
0
0
0
55
0.387324
c06b5a0da650cb5b7106dc53e3294c6abe96376c
676
py
Python
clase_4/populate_alumnos.py
noctilukkas/python-programming
0ced5e1390e5501bae79fd30dd2baefd7bc09040
[ "Apache-2.0" ]
null
null
null
clase_4/populate_alumnos.py
noctilukkas/python-programming
0ced5e1390e5501bae79fd30dd2baefd7bc09040
[ "Apache-2.0" ]
null
null
null
clase_4/populate_alumnos.py
noctilukkas/python-programming
0ced5e1390e5501bae79fd30dd2baefd7bc09040
[ "Apache-2.0" ]
null
null
null
import sqlite3 def main(): # se establece conexion con la BD y abro cursor conn = sqlite3.connect("alumnos.db") cursor = conn.cursor() # creo una tupla de tuplas para agregar registros a la tabla alumnos = ( (1, "Juan", "Granizado", 8, 25), (2, "Esteban", "Quito", 2, 19), ...
22.533333
79
0.597633
0
0
0
0
0
0
0
0
334
0.494083
fbe36d61bbb46c7d89d9f7a7b5921b3928eef150
366
py
Python
cap11/main.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap11/main.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap11/main.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
import sqlite3 con = sqlite3.connect('agenda.db') cursor = con.cursor() cursor.execute(''' create table if not exists agenda( nome text, telefone text) ''') cursor.execute(''' insert into agenda(nome, telefone) values(?, ?) ''', ("Tamara", "51-98175-05...
22.875
42
0.562842
0
0
0
0
0
0
0
0
225
0.614754
fbe380b10e29919d567688beee1e5f00654464f3
4,298
py
Python
falconcv/data/scraper/flickr_scraper.py
haruiz/FalconCV
0c9444451a60c8f6375c30426811160ae79b02ba
[ "Apache-2.0" ]
16
2020-06-05T01:26:04.000Z
2020-09-18T23:56:14.000Z
falconcv/data/scraper/flickr_scraper.py
haruiz/FalconCV
0c9444451a60c8f6375c30426811160ae79b02ba
[ "Apache-2.0" ]
13
2020-06-01T17:35:22.000Z
2020-09-22T23:19:27.000Z
falconcv/data/scraper/flickr_scraper.py
haruiz/FalconCV
0c9444451a60c8f6375c30426811160ae79b02ba
[ "Apache-2.0" ]
2
2020-06-06T06:10:58.000Z
2020-06-08T07:19:24.000Z
import logging import math import re import time import dask import numpy as np import requests import json import xml.etree.ElementTree as ET from falconcv.data.scraper.scraper import ImagesScraper from falconcv.util import ImageUtil logger = logging.getLogger(__name__) FLICKR_ENDPOINT = "https://www.flickr.com/servic...
37.701754
90
0.543509
3,566
0.827378
829
0.192343
299
0.069374
0
0
1,090
0.2529
fbe3b3f30ddf6f664ac393236c6cc50652de4531
9,893
py
Python
argparser.py
geoff-smith/MCplotscripts
16dd5fd849671bb082a71f08492676be876209d3
[ "MIT" ]
null
null
null
argparser.py
geoff-smith/MCplotscripts
16dd5fd849671bb082a71f08492676be876209d3
[ "MIT" ]
null
null
null
argparser.py
geoff-smith/MCplotscripts
16dd5fd849671bb082a71f08492676be876209d3
[ "MIT" ]
null
null
null
# argParser # this class generates a RunParams object from the args passed to the script from runparams import * import os.path import string ## handles args passed to the program # class ArgParser(object): def parsePtCutString(self, ptCutString): return map(float, string.split(ptCutString,',') ) de...
39.730924
153
0.574548
9,707
0.981199
0
0
0
0
0
0
4,143
0.418781
fbe4f5813f57f07bcd01eac89fa0f4bcc8abfeac
1,326
py
Python
floppy/_surf-garbage.py
hillscott/windows
ba32cd43db1bd1495f0150ab0c32ee63b5a5d415
[ "Apache-2.0" ]
null
null
null
floppy/_surf-garbage.py
hillscott/windows
ba32cd43db1bd1495f0150ab0c32ee63b5a5d415
[ "Apache-2.0" ]
null
null
null
floppy/_surf-garbage.py
hillscott/windows
ba32cd43db1bd1495f0150ab0c32ee63b5a5d415
[ "Apache-2.0" ]
null
null
null
# pip install -U pywinauto from pywinauto.application import Application import subprocess import time subprocess.run('SCHTASKS /DELETE /TN BuildTasks\\Sites /f') app = Application(backend='uia') app.start('C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe --force-renderer-accessibility ') window = app.top_win...
27.625
103
0.748115
0
0
0
0
0
0
0
0
557
0.42006
fbe52989054e585791a8f893935e850e1910b673
992
py
Python
sla/migrations/0005_slaprobe_workflow.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sla/migrations/0005_slaprobe_workflow.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sla/migrations/0005_slaprobe_workflow.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # Migrate SLAProbe to workflow # ---------------------------------------------------------------------- # Copyright (C) 2007-2021 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- ...
31
90
0.484879
525
0.529234
0
0
0
0
0
0
525
0.529234
fbe699dad305df809951dcf85f4ec36f0f78ab23
2,640
py
Python
seqpos/lib/python2.7/site-packages/mercurial/dirstateguard.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mercurial/dirstateguard.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mercurial/dirstateguard.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
# dirstateguard.py - class to allow restoring dirstate after failure # # Copyright 2005-2007 Matt Mackall <[email protected]> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import from .i18n import ...
34.736842
77
0.610227
2,260
0.856061
0
0
0
0
0
0
1,014
0.384091
fbe71debd90d8d660d1121d1807a3090d9eabd7b
2,061
py
Python
config.py
mF2C/UserManagement
0a44f8fbf86a140156da2f87a25490345f296cbb
[ "Apache-2.0" ]
null
null
null
config.py
mF2C/UserManagement
0a44f8fbf86a140156da2f87a25490345f296cbb
[ "Apache-2.0" ]
12
2017-10-25T08:05:32.000Z
2019-11-13T14:29:42.000Z
config.py
mF2C/UserManagement
0a44f8fbf86a140156da2f87a25490345f296cbb
[ "Apache-2.0" ]
1
2017-10-24T10:13:55.000Z
2017-10-24T10:13:55.000Z
""" CONFIGURATION FILE This is being developed for the MF2C Project: http://www.mf2c-project.eu/ Copyright: Roi Sucasas Font, Atos Research and Innovation, 2017. This code is licensed under an Apache 2.0 license. Please, refer to the LICENSE.TXT file for more information Created on 18 oct. 2018 @author: Roi Sucasas...
32.714286
109
0.501698
0
0
0
0
0
0
0
0
1,255
0.608928
fbe8a390825becc2ff9eab5332457693f2473fbc
3,606
py
Python
pysnmp-with-texts/IANA-MALLOC-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/IANA-MALLOC-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/IANA-MALLOC-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 IANA-MALLOC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IANA-MALLOC-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:50:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
100.166667
537
0.781475
663
0.18386
0
0
0
0
0
0
1,836
0.509151
fbe96376f6c7e8ea5a7177b454718260bda00d58
112
py
Python
api/base/views/__init__.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
197
2016-12-08T02:33:32.000Z
2022-03-23T14:27:47.000Z
api/base/views/__init__.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
385
2017-01-03T22:51:46.000Z
2020-12-16T16:20:42.000Z
api/base/views/__init__.py
benlazarine/atmosphere
38fad8e4002e510e8b4294f2bb5bc75e8e1817fa
[ "BSD-3-Clause" ]
50
2016-12-08T08:32:25.000Z
2021-12-10T00:21:39.000Z
from .version import VersionViewSet, DeployVersionViewSet __all__ = ["VersionViewSet", "DeployVersionViewSet"]
28
57
0.821429
0
0
0
0
0
0
0
0
38
0.339286
fbed4a160c462e80695d00929515e53d559a44ef
455
py
Python
amaranth/vendor/xilinx_spartan_3_6.py
psumesh/nmigen
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
[ "BSD-2-Clause" ]
528
2020-01-28T18:21:00.000Z
2021-12-09T06:27:51.000Z
amaranth/vendor/xilinx_spartan_3_6.py
psumesh/nmigen
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
[ "BSD-2-Clause" ]
360
2020-01-28T18:34:30.000Z
2021-12-10T08:03:32.000Z
amaranth/vendor/xilinx_spartan_3_6.py
psumesh/nmigen
7d611b8fc1d9e58853ff268ec38ff8f4131a9774
[ "BSD-2-Clause" ]
100
2020-02-06T21:55:46.000Z
2021-11-25T19:20:44.000Z
import warnings from .xilinx import XilinxPlatform __all__ = ["XilinxSpartan3APlatform", "XilinxSpartan6Platform"] XilinxSpartan3APlatform = XilinxPlatform XilinxSpartan6Platform = XilinxPlatform # TODO(amaranth-0.4): remove warnings.warn("instead of amaranth.vendor.xilinx_spartan_3_6.XilinxSpartan3APlatform and...
26.764706
90
0.782418
0
0
0
0
0
0
0
0
221
0.485714
fbee0d4e9115c00d9a52094547d27c43033ebffb
2,968
py
Python
spatialtis/_plotting/api/community_map.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
10
2020-07-14T13:27:35.000Z
2021-11-24T21:41:30.000Z
spatialtis/_plotting/api/community_map.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
21
2021-01-10T09:39:25.000Z
2022-03-12T01:04:52.000Z
spatialtis/_plotting/api/community_map.py
Mr-Milk/SpatialTis
bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6
[ "Apache-2.0" ]
null
null
null
from ast import literal_eval from collections import Counter from typing import Dict, Optional from anndata import AnnData from spatialtis.config import Config, analysis_list from ...utils import doc from ..base import graph_position_interactive, graph_position_static from .utils import query_df @doc def community...
31.242105
91
0.637466
0
0
0
0
2,665
0.897911
0
0
672
0.226415
fbef292579d80d2de80ed4ab24cb1a2133c269b6
7,209
py
Python
pynics/binparse/castep_bin_results.py
ThatPerson/pynics
ae9dd58fa4353c4907f6fd7d6ad368029a4288f1
[ "MIT" ]
2
2019-10-03T21:18:17.000Z
2019-10-05T13:08:36.000Z
pynics/binparse/castep_bin_results.py
ThatPerson/pynics
ae9dd58fa4353c4907f6fd7d6ad368029a4288f1
[ "MIT" ]
2
2021-06-25T15:11:27.000Z
2021-10-04T13:23:04.000Z
pynics/binparse/castep_bin_results.py
ThatPerson/pynics
ae9dd58fa4353c4907f6fd7d6ad368029a4288f1
[ "MIT" ]
1
2021-06-25T14:32:07.000Z
2021-06-25T14:32:07.000Z
# Python 2-to-3 compatibility code from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import collections from pynics.binparse.forbinfile import RecordError def cbin_results_parse(binfile, results_store, curr_version, pa...
34.826087
78
0.629768
0
0
0
0
0
0
0
0
2,085
0.289222
fbef307f38bef0fc49bdcc1050b0a7022b885117
1,084
py
Python
epi-poc-demo/node-b/node-b.py
onnovalkering/epif-poc
0fac10ce59037fbf8725f09808813dbab71ff70a
[ "Apache-2.0" ]
null
null
null
epi-poc-demo/node-b/node-b.py
onnovalkering/epif-poc
0fac10ce59037fbf8725f09808813dbab71ff70a
[ "Apache-2.0" ]
null
null
null
epi-poc-demo/node-b/node-b.py
onnovalkering/epif-poc
0fac10ce59037fbf8725f09808813dbab71ff70a
[ "Apache-2.0" ]
null
null
null
import os import socket import threading HEADER = 64 PORT = 5053 FW = "192.168.101.2" ADDR = (FW, PORT) FORMAT = 'utf-8' DISCONNECT_MESSAGE = "!DISCONNECT" server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind(ADDR) def handle_client(conn, addr): print(f"[FIREWALL CONNECTION] {addr} connected.")...
23.565217
74
0.628229
0
0
0
0
0
0
0
0
237
0.218635
fbef8b98b95a0bd508e97ef365acd9e2c1cbd2ce
652
py
Python
sliding_window/equal_substring.py
sleebapaul/codeforces
50c8bff0b36e6ce7e8f89c7c827ae8845f80098e
[ "MIT" ]
null
null
null
sliding_window/equal_substring.py
sleebapaul/codeforces
50c8bff0b36e6ce7e8f89c7c827ae8845f80098e
[ "MIT" ]
null
null
null
sliding_window/equal_substring.py
sleebapaul/codeforces
50c8bff0b36e6ce7e8f89c7c827ae8845f80098e
[ "MIT" ]
null
null
null
""" 1208. Get Equal Substrings Within Budget Straight forward. Asked the max len, so count the max each time. """ class Solution: def equalSubstring(self, s: str, t: str, maxCost: int) -> int: cost = 0 window_start = 0 result = 0 for window_end in range(...
27.166667
72
0.518405
534
0.819018
0
0
0
0
0
0
115
0.17638
fbef9d38a58cfa2a1c22c680025cec376e6993bf
13,836
py
Python
test/functional/esperanza_withdraw.py
frolosofsky/unit-e
d3d12508b915986841bd19c4dee9e50dd662a112
[ "MIT" ]
null
null
null
test/functional/esperanza_withdraw.py
frolosofsky/unit-e
d3d12508b915986841bd19c4dee9e50dd662a112
[ "MIT" ]
null
null
null
test/functional/esperanza_withdraw.py
frolosofsky/unit-e
d3d12508b915986841bd19c4dee9e50dd662a112
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Unit-e developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import UnitETestFramework from test_framework.util import ( json, con...
46.901695
113
0.568661
13,215
0.954841
0
0
0
0
0
0
3,760
0.271676
fbf016290a6953a4fa95305b7831cd89ba6cb242
2,213
py
Python
test/geocoders/placefinder.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2019-07-17T14:38:52.000Z
2019-07-17T14:38:52.000Z
test/geocoders/placefinder.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
null
null
null
test/geocoders/placefinder.py
gongso1st/geopy
9252f4b12197ff3c5e3fae50d9bae74974d5d20f
[ "MIT" ]
1
2021-06-28T01:20:12.000Z
2021-06-28T01:20:12.000Z
import unittest from geopy.compat import u from geopy.point import Point from geopy.geocoders import YahooPlaceFinder from test.geocoders.util import GeocoderTestBase, env class YahooPlaceFinderTestCaseUnitTest(GeocoderTestBase): # pylint: disable=R0904,C0111 def test_user_agent_custom(self): geocoder ...
28.371795
87
0.598735
1,857
0.839132
0
0
1,655
0.747854
0
0
749
0.338455
fbf1cd1a479f1f30a64fa316deccf90f2fde6080
1,151
py
Python
inetdxmlrpc.py
Leonidas-from-XIV/sandbox
ca1f53d4ba1c27be4397c18bf3d5a2ccf9db6a50
[ "WTFPL" ]
null
null
null
inetdxmlrpc.py
Leonidas-from-XIV/sandbox
ca1f53d4ba1c27be4397c18bf3d5a2ccf9db6a50
[ "WTFPL" ]
null
null
null
inetdxmlrpc.py
Leonidas-from-XIV/sandbox
ca1f53d4ba1c27be4397c18bf3d5a2ccf9db6a50
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python2.4 # -*- encoding: latin-1 -*- """A small XML-RPC Server running under control of the internet superserver inetd. Configuring: Add this line to your inetd.conf embedxmlrpc stream tcp nowait user /usr/sbin/tcpd inetdxmlrpc.py Where user is the user to execute the script and inetdxmlp...
25.577778
77
0.645526
0
0
0
0
0
0
0
0
570
0.495222
fbf23a32edea1c76b286e1eb5b7cddd3cfc77494
17,504
py
Python
examples/tensorflow/train/crnn_chinese/code_multi/tools/train_shadownet_multi.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
38
2017-04-26T04:00:09.000Z
2022-02-10T02:51:05.000Z
examples/tensorflow/train/crnn_chinese/code_multi/tools/train_shadownet_multi.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
17
2017-11-20T20:47:09.000Z
2022-02-09T23:48:46.000Z
examples/tensorflow/train/crnn_chinese/code_multi/tools/train_shadownet_multi.py
soar-zhengjian/uai-sdk
e195bd3fb2b97aca7dac6722d332c25b7070481f
[ "Apache-2.0" ]
28
2017-07-08T05:23:13.000Z
2020-08-18T03:12:27.000Z
""" Train shadow net script """ import argparse import functools import itertools import os import os.path as ops import sys import time import numpy as np import tensorflow as tf import pprint import shadownet import six from six.moves import xrange # pylint: disable=redefined-builtin sys.path.append('/data/') fr...
40.424942
159
0.584324
0
0
0
0
0
0
0
0
3,428
0.195841
fbf29fa665c3f19650fb43d520ce03961090f743
7,007
py
Python
ovs/extensions/hypervisor/hypervisors/vmware.py
mflu/openvstorage_centos
280a98d3e5d212d58297e0ffcecd325dfecef0f8
[ "Apache-2.0" ]
1
2015-08-29T16:36:40.000Z
2015-08-29T16:36:40.000Z
ovs/extensions/hypervisor/hypervisors/vmware.py
rootfs-analytics/openvstorage
6184822340faea1d2927643330a7aaa781d92d36
[ "Apache-2.0" ]
null
null
null
ovs/extensions/hypervisor/hypervisors/vmware.py
rootfs-analytics/openvstorage
6184822340faea1d2927643330a7aaa781d92d36
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 CloudFounders NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
34.860697
123
0.628942
6,306
0.899957
252
0.035964
0
0
0
0
3,185
0.454545
fbf2ccc900304e6fa6940b6cc3e4418b5177231a
6,314
py
Python
fake_switches/dell10g/command_processor/config_interface.py
idjaw/fake-switches
9b481e17a26cca24bf3ef44466feebf9bff794f8
[ "Apache-2.0" ]
null
null
null
fake_switches/dell10g/command_processor/config_interface.py
idjaw/fake-switches
9b481e17a26cca24bf3ef44466feebf9bff794f8
[ "Apache-2.0" ]
1
2022-02-11T03:49:01.000Z
2022-02-11T03:49:01.000Z
fake_switches/dell10g/command_processor/config_interface.py
idjaw/fake-switches
9b481e17a26cca24bf3ef44466feebf9bff794f8
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Internap. # # 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, so...
46.77037
119
0.548939
5,556
0.879949
0
0
0
0
0
0
1,538
0.243586
fbf2e31cb815224097d8066fca9f33447d38f065
939
py
Python
setup.py
Spredzy/python-memsource
9624a1e93dab9cec874164fb390432c51ab0de31
[ "Apache-2.0" ]
null
null
null
setup.py
Spredzy/python-memsource
9624a1e93dab9cec874164fb390432c51ab0de31
[ "Apache-2.0" ]
null
null
null
setup.py
Spredzy/python-memsource
9624a1e93dab9cec874164fb390432c51ab0de31
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import setuptools from memsource import version with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="memsource", version=version.__version__, author="Yanis Guenane", author_email="[email protected]", desc...
27.617647
61
0.664537
0
0
0
0
0
0
0
0
434
0.462194
fbf375a6746c12699f7672902496fe49ba8773ae
5,637
py
Python
sktime/transformations/series/func_transform.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
2
2021-12-28T10:48:11.000Z
2022-03-06T18:08:01.000Z
sktime/transformations/series/func_transform.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
2
2021-04-19T17:38:33.000Z
2021-07-25T18:44:10.000Z
sktime/transformations/series/func_transform.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- """Implements FunctionTransformer, a class to create custom transformers.""" __author__ = ["Bouke Postma"] __all__ = ["FunctionTransformer"] import numpy as np from sktime.transformations.base import _SeriesToSeriesTransformer from sktime.utils.validation.series imp...
33.553571
88
0.631896
5,244
0.930282
0
0
0
0
0
0
3,841
0.681391
fbf4288218731b27d1646ee39344ec7cc83f8d4a
13,963
py
Python
regparser/tree/xml_parser/reg_text.py
cfpb/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
36
2015-01-05T21:17:36.000Z
2020-04-28T21:02:55.000Z
regparser/tree/xml_parser/reg_text.py
DalavanCloud/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
49
2015-01-28T15:54:25.000Z
2018-08-20T20:20:08.000Z
regparser/tree/xml_parser/reg_text.py
DalavanCloud/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
23
2015-01-28T15:34:18.000Z
2021-02-20T10:53:34.000Z
# vim: set encoding=utf-8 import re from lxml import etree import logging from regparser import content from regparser.tree.depth import heuristics, rules, markers as mtypes from regparser.tree.depth.derive import derive_depths from regparser.tree.struct import Node from regparser.tree.paragraph import p_level_of from...
37.840108
78
0.587911
0
0
0
0
0
0
0
0
2,321
0.166189
fbf49444e0f4679af981bbaa8faf8266920ca318
1,216
py
Python
setup.py
mark-dawn/stytra
be1d5be0a44aeb685d475240d056ef7adf60ed06
[ "MIT" ]
null
null
null
setup.py
mark-dawn/stytra
be1d5be0a44aeb685d475240d056ef7adf60ed06
[ "MIT" ]
null
null
null
setup.py
mark-dawn/stytra
be1d5be0a44aeb685d475240d056ef7adf60ed06
[ "MIT" ]
null
null
null
from distutils.core import setup from setuptools import find_packages setup( name="stytra", version="0.1", author="Vilim Stih, Luigi Petrucco @portugueslab", author_email="[email protected]", license="MIT", packages=find_packages(), install_requires=[ "pyqtgraph>=0.10.0", ...
28.27907
105
0.591283
0
0
0
0
0
0
0
0
697
0.573191
fbf4c0c322e799620006a7ec56b567282c3ba0ca
226
py
Python
checkTicTacToe/checkTicTacToe.py
nate-ar-williams/coding-questions
24baa901a786e6e2c4e8ea823a26416bc51e1f6a
[ "MIT" ]
null
null
null
checkTicTacToe/checkTicTacToe.py
nate-ar-williams/coding-questions
24baa901a786e6e2c4e8ea823a26416bc51e1f6a
[ "MIT" ]
null
null
null
checkTicTacToe/checkTicTacToe.py
nate-ar-williams/coding-questions
24baa901a786e6e2c4e8ea823a26416bc51e1f6a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # let board be 3x3 bool array def isWin(board): start = board[0][0] win = False next = [(0, 1), (1, 1), (1, 0)] while(!win): while return win def main(): pass if __name__ == '__main__': main()
12.555556
32
0.588496
0
0
0
0
0
0
0
0
57
0.252212
fbf52c7f3a9bab66d56f2bccbaf8974ecb5420d3
2,138
py
Python
openerp/exceptions.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
openerp/exceptions.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
openerp/exceptions.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 OpenERP s.a. (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the G...
37.508772
78
0.658092
868
0.405987
0
0
0
0
0
0
1,774
0.829747
fbf6f8315c8b89ca91d3b286cb9fd7bfaffd9e47
83,653
py
Python
MainUi.py
james646-hs/Fgo_teamup
f1e5c6f514818b68e9abb9eab3c6103fd000819a
[ "MIT" ]
18
2020-05-30T01:41:24.000Z
2021-03-04T08:07:35.000Z
MainUi.py
james646-hs/Fgo_teamup
f1e5c6f514818b68e9abb9eab3c6103fd000819a
[ "MIT" ]
1
2020-08-13T02:19:42.000Z
2020-08-13T02:19:42.000Z
MainUi.py
james646-hs/Fgo_teamup
f1e5c6f514818b68e9abb9eab3c6103fd000819a
[ "MIT" ]
2
2020-06-13T18:23:07.000Z
2020-08-13T02:08:54.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'MainUi.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWin...
64.746904
106
0.748927
83,713
0.997118
0
0
0
0
0
0
5,803
0.06912
fbf8146cd8db52170f45b639efbed1ee6e4abd99
1,177
py
Python
pyhutool/core/Io.py
kaysen820/PyHuTool
4de4c42a8dc499e22816ebbb3293897ee2b505f1
[ "BSD-3-Clause" ]
null
null
null
pyhutool/core/Io.py
kaysen820/PyHuTool
4de4c42a8dc499e22816ebbb3293897ee2b505f1
[ "BSD-3-Clause" ]
null
null
null
pyhutool/core/Io.py
kaysen820/PyHuTool
4de4c42a8dc499e22816ebbb3293897ee2b505f1
[ "BSD-3-Clause" ]
null
null
null
class File: @staticmethod def tail(self, file_path, lines=10): with open(file_path, 'rb') as f: total_lines_wanted = lines block_size = 1024 f.seek(0, 2) block_end_byte = f.tell() lines_to_go = total_lines_wanted block_number = -1 ...
40.586207
76
0.507222
1,177
1
0
0
1,161
0.986406
0
0
27
0.02294
fbf8cddf274b4edc3f9ca19f3358df84f5395fdb
4,122
py
Python
utils/argparse.py
toytag/self-supervised-learning-for-semantic-segmentation
b3326df6d1fa045fabb27fc30542313adee00d30
[ "MIT" ]
null
null
null
utils/argparse.py
toytag/self-supervised-learning-for-semantic-segmentation
b3326df6d1fa045fabb27fc30542313adee00d30
[ "MIT" ]
null
null
null
utils/argparse.py
toytag/self-supervised-learning-for-semantic-segmentation
b3326df6d1fa045fabb27fc30542313adee00d30
[ "MIT" ]
null
null
null
import argparse class ArchParser(argparse.ArgumentParser): def __init__(self, model_names, *args, **kwargs): super().__init__(*args, **kwargs) self.add_argument('-a', '--arch', metavar='ARCH', choices=model_names, help='model architecture: ' + ' | '.join(model_names)) c...
64.40625
90
0.566715
4,100
0.994663
0
0
0
0
0
0
1,584
0.384279
fbf9c31021598e1cfc750b4e1fb2c63076b4d3ce
2,401
py
Python
finicky/schema.py
yaaminu/yaval
32f04ecfa092c978fc026f6b7f58d6cf2defd8c9
[ "MIT" ]
14
2021-02-12T19:04:21.000Z
2021-03-12T18:18:09.000Z
finicky/schema.py
yaaminu/yaval
32f04ecfa092c978fc026f6b7f58d6cf2defd8c9
[ "MIT" ]
5
2021-02-12T16:04:37.000Z
2021-04-14T12:05:02.000Z
finicky/schema.py
yaaminu/yaval
32f04ecfa092c978fc026f6b7f58d6cf2defd8c9
[ "MIT" ]
null
null
null
from finicky.validators import ValidationException def validate(schema, data, hook=None): """ Given an input named `data` validate it against `schema` returning errors encountered if any and the input data. It's important to note that, validation continues even if an error is encountered. :param schem...
49
118
0.678051
0
0
0
0
0
0
0
0
1,877
0.781758
fbfb1bbd5566de1b6744d8dee7be28df74fd818c
3,194
py
Python
tests/unique_test.py
yohplala/vaex
ca7927a19d259576ca0403ee207a597aaef6adc2
[ "MIT" ]
null
null
null
tests/unique_test.py
yohplala/vaex
ca7927a19d259576ca0403ee207a597aaef6adc2
[ "MIT" ]
null
null
null
tests/unique_test.py
yohplala/vaex
ca7927a19d259576ca0403ee207a597aaef6adc2
[ "MIT" ]
null
null
null
from common import small_buffer import pytest import numpy as np import pyarrow as pa import vaex def test_unique_arrow(df_factory): ds = df_factory(x=vaex.string_column(['a', 'b', 'a', 'a', 'a', 'b', 'b', 'b', 'b', 'a'])) with small_buffer(ds, 2): assert set(ds.unique(ds.x)) == {'a', 'b'} v...
33.270833
102
0.584534
0
0
0
0
500
0.156544
0
0
352
0.110207
fbfb4b2b18ec51f6264b25bae8ef574c623943f4
810
py
Python
utils/utilsFreq.py
geobook2015/magPy
af0f31fc931786ac6f8d69a5290366418035859d
[ "Apache-2.0" ]
1
2021-05-19T18:29:15.000Z
2021-05-19T18:29:15.000Z
utils/utilsFreq.py
geobook2015/magPy
af0f31fc931786ac6f8d69a5290366418035859d
[ "Apache-2.0" ]
null
null
null
utils/utilsFreq.py
geobook2015/magPy
af0f31fc931786ac6f8d69a5290366418035859d
[ "Apache-2.0" ]
2
2021-06-03T01:59:02.000Z
2021-07-03T07:47:10.000Z
# utility functions for frequency related stuff import numpy as np import numpy.fft as fft import math def getFrequencyArray(fs, samples): # frequencies go from to nyquist nyquist = fs/2 return np.linspace(0, nyquist, samples) # use this function for all FFT calculations # then if change FFT later (i.e. FFTW), j...
27.931034
65
0.728395
0
0
0
0
0
0
0
0
228
0.281481
fbfbfe77a095f3da5c436ccb64b9b59f084a3b2c
2,329
py
Python
tools/extract_keywords.py
bitdotioinc/pglast
da4c0b1c237aad98894179af9cd29e044d526ba8
[ "PostgreSQL" ]
null
null
null
tools/extract_keywords.py
bitdotioinc/pglast
da4c0b1c237aad98894179af9cd29e044d526ba8
[ "PostgreSQL" ]
null
null
null
tools/extract_keywords.py
bitdotioinc/pglast
da4c0b1c237aad98894179af9cd29e044d526ba8
[ "PostgreSQL" ]
null
null
null
# -*- coding: utf-8 -*- # :Project: pglast -- Extract keywords from PostgreSQL header # :Created: dom 06 ago 2017 23:34:53 CEST # :Author: Lele Gaifax <[email protected]> # :License: GNU General Public License version 3 or later # :Copyright: © 2017, 2018 Lele Gaifax # from collections import defaultdict f...
30.246753
88
0.613568
0
0
253
0.108537
0
0
0
0
778
0.333762
fbfc768e9b9032e8d1b05f89ef3578bc75d58172
1,913
py
Python
tests/vi/test_indent_text_object.py
trishume/VintageousPlus
1dd62435138234979fe5bb413e1731119b017daf
[ "MIT" ]
6
2017-04-01T05:30:08.000Z
2017-04-05T14:17:40.000Z
tests/vi/test_indent_text_object.py
trishume/VintageousPlus
1dd62435138234979fe5bb413e1731119b017daf
[ "MIT" ]
1
2017-04-04T06:47:13.000Z
2017-04-04T14:26:32.000Z
tests/vi/test_indent_text_object.py
trishume/VintageousPlus
1dd62435138234979fe5bb413e1731119b017daf
[ "MIT" ]
null
null
null
from collections import namedtuple from sublime import Region as R from VintageousPlus.tests import set_text from VintageousPlus.tests import add_sel from VintageousPlus.tests import ViewTest from VintageousPlus.vi.text_objects import find_indent_text_object test = namedtuple('simple_test', 'content start expected ...
28.552239
149
0.681652
636
0.332462
0
0
0
0
0
0
587
0.306848
fbfd008303bf64141666afab184cb7b1413f62e6
1,417
py
Python
example_write_camera_frames_to_hdf5.py
mihsamusev/pytrl_demo
411a74cb5f3601f03438f608b4cf8e451a88345e
[ "MIT" ]
null
null
null
example_write_camera_frames_to_hdf5.py
mihsamusev/pytrl_demo
411a74cb5f3601f03438f608b4cf8e451a88345e
[ "MIT" ]
null
null
null
example_write_camera_frames_to_hdf5.py
mihsamusev/pytrl_demo
411a74cb5f3601f03438f608b4cf8e451a88345e
[ "MIT" ]
null
null
null
import cv2 from imutils.paths import list_images import imutils import re import datetime from datasets.hdf5datasetwriter import HDF5DatasetWriter import progressbar def get_frame_number(impath): return int(re.search(r"image data (\d+)", impath).group(1)) def get_timestamp(impath): "assuming that the timestam...
31.488889
79
0.715596
0
0
0
0
0
0
0
0
331
0.233592
fbfd2e30f614a3b655c2662e8c6213275af8c2ac
4,378
py
Python
touch.py
mendelmaker/dipn
a4871ecf2e4eeb40ff3b7945150c255802694609
[ "BSD-2-Clause" ]
8
2020-11-17T16:55:34.000Z
2021-04-28T09:24:37.000Z
touch.py
mendelmaker/dipn
a4871ecf2e4eeb40ff3b7945150c255802694609
[ "BSD-2-Clause" ]
null
null
null
touch.py
mendelmaker/dipn
a4871ecf2e4eeb40ff3b7945150c255802694609
[ "BSD-2-Clause" ]
8
2021-07-05T05:10:17.000Z
2022-03-02T12:10:25.000Z
#!/usr/bin/env python import matplotlib.pyplot as plt import numpy as np import time import cv2 from real.camera import Camera from robot import Robot from subprocess import Popen, PIPE def get_camera_to_robot_transformation(camera): color_img, depth_img = camera.get_data() cv2.imwrite("real/temp.jpg", color...
35.885246
97
0.653952
0
0
0
0
0
0
0
0
1,424
0.325263
fbfd539734cc022db7b79f3a3d092f8d88fe0ee4
3,708
py
Python
py/WB-Klein/5/5.4_cc.py
kassbohm/wb-snippets
f1ac5194e9f60a9260d096ba5ed1ce40b844a3fe
[ "MIT" ]
null
null
null
py/WB-Klein/5/5.4_cc.py
kassbohm/wb-snippets
f1ac5194e9f60a9260d096ba5ed1ce40b844a3fe
[ "MIT" ]
null
null
null
py/WB-Klein/5/5.4_cc.py
kassbohm/wb-snippets
f1ac5194e9f60a9260d096ba5ed1ce40b844a3fe
[ "MIT" ]
null
null
null
# Header starts here. from sympy.physics.units import * from sympy import * # Rounding: import decimal from decimal import Decimal as DX from copy import deepcopy def iso_round(obj, pv, rounding=decimal.ROUND_HALF_EVEN): import sympy """ Rounding acc. to DIN EN ISO 80000-1:2013-08 place value = Rundest...
21.433526
66
0.432848
0
0
0
0
0
0
0
0
1,702
0.437757
fbfd7d6f8721ebc2b678a03f3cc15caf4d6fced6
870
py
Python
ucc_csv_create.py
MasonDMitchell/HackNC-2019
4656f9dcc15ee86c66885267006ed9f4f5b935e7
[ "MIT" ]
null
null
null
ucc_csv_create.py
MasonDMitchell/HackNC-2019
4656f9dcc15ee86c66885267006ed9f4f5b935e7
[ "MIT" ]
null
null
null
ucc_csv_create.py
MasonDMitchell/HackNC-2019
4656f9dcc15ee86c66885267006ed9f4f5b935e7
[ "MIT" ]
1
2019-10-12T15:09:06.000Z
2019-10-12T15:09:06.000Z
#!/usr/bin/python3 import csv ucc_dictionary_file_list = [ './downloads/diary08/diary08/uccd08.txt', './downloads/diary09/diary09/uccd09.txt', './downloads/diary11/diary11/uccd11.txt', './downloads/diary10/diary10/uccd10.txt', ] cleaned_ucc_dictionary = dict() for dictionary in ucc_dictionary_file_l...
33.461538
78
0.688506
0
0
0
0
0
0
0
0
278
0.31954
fbff8e3dec4d22f8cf3a2af319e44b94680c5703
30,937
py
Python
eventsourcing/system/ray.py
gerbyzation/eventsourcing
a9e9ecf123af658762832cf97a9f00f8f7064393
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/system/ray.py
gerbyzation/eventsourcing
a9e9ecf123af658762832cf97a9f00f8f7064393
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/system/ray.py
gerbyzation/eventsourcing
a9e9ecf123af658762832cf97a9f00f8f7064393
[ "BSD-3-Clause" ]
null
null
null
import datetime import os import traceback from inspect import ismethod from queue import Empty, Queue from threading import Event, Lock, Thread from time import sleep from typing import Dict, Optional, Tuple, Type import ray from eventsourcing.application.process import ProcessApplication from eventsourcing.applicat...
41.030504
95
0.580761
29,594
0.956589
0
0
24,899
0.804829
0
0
5,374
0.173708
fbff951b3453445a7ed046dfadb09ce047c59a21
1,766
py
Python
authentik/stages/password/migrations/0007_app_password.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
15
2020-01-05T09:09:57.000Z
2020-11-28T05:27:39.000Z
authentik/stages/password/migrations/0007_app_password.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
302
2020-01-21T08:03:59.000Z
2020-12-04T05:04:57.000Z
authentik/stages/password/migrations/0007_app_password.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
3
2020-03-04T08:21:59.000Z
2020-08-01T20:37:18.000Z
# Generated by Django 3.2.6 on 2021-08-23 14:34 import django.contrib.postgres.fields from django.apps.registry import Apps from django.db import migrations, models from django.db.backends.base.schema import BaseDatabaseSchemaEditor from authentik.stages.password import BACKEND_APP_PASSWORD, BACKEND_INBUILT def upda...
36.040816
100
0.625708
1,008
0.570781
0
0
0
0
0
0
463
0.262174
220006b165652d33b27e971f916a5a800cf16e0a
1,211
py
Python
article/tests/test_models.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
article/tests/test_models.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
article/tests/test_models.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from article.models import Article, Category class ArticleModelTestCase(TestCase): def setUp(self): self.category = Category.objects.create(name=u'Sports') self.user = User.objects.create(username=u'test', password=u'sec...
29.536585
77
0.6218
1,085
0.895954
0
0
0
0
0
0
81
0.066887
2200800f734e84798d40a112ef14379650a7d44d
145
py
Python
tests/test_import.py
GoodManWEN/typehints_checker
36e2b2f27b4c392543972e8e466f8e48dfeff274
[ "MIT" ]
null
null
null
tests/test_import.py
GoodManWEN/typehints_checker
36e2b2f27b4c392543972e8e466f8e48dfeff274
[ "MIT" ]
null
null
null
tests/test_import.py
GoodManWEN/typehints_checker
36e2b2f27b4c392543972e8e466f8e48dfeff274
[ "MIT" ]
null
null
null
import os , sys sys.path.append(os.getcwd()) import pytest from typehints_checker import * @pytest.mark.asyncio async def test_import(): ...
18.125
31
0.737931
0
0
0
0
53
0.365517
32
0.22069
0
0
2200a38582a5987a8032f11e6758387289477471
2,240
py
Python
models/FlagAttachment.py
jeffg2k/RootTheBox
1bb971f98da96f66c868f5786c2405321b0be976
[ "Apache-2.0" ]
1
2020-02-28T16:23:12.000Z
2020-02-28T16:23:12.000Z
models/FlagAttachment.py
Warlockk/RootTheBox
e24f3e0350aec1b65be81cdc71ff09a5e1b8e587
[ "Apache-2.0" ]
null
null
null
models/FlagAttachment.py
Warlockk/RootTheBox
e24f3e0350aec1b65be81cdc71ff09a5e1b8e587
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Nov 24, 2014 @author: moloch Copyright 2014 Root the Box 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/licen...
31.111111
88
0.672768
1,288
0.575
0
0
666
0.297321
0
0
873
0.389732
22016594c64927e9cac7fbe2989ffcfcf16a646f
1,278
py
Python
connman_dispatcher/detect.py
a-sk/connman-dispatcher
2561ae87ffd26d0f98bb1ab2b430e181be3d01c1
[ "0BSD" ]
4
2015-01-04T19:26:01.000Z
2017-06-06T21:04:01.000Z
connman_dispatcher/detect.py
a-sk/connman-dispatcher
2561ae87ffd26d0f98bb1ab2b430e181be3d01c1
[ "0BSD" ]
1
2015-04-04T13:19:15.000Z
2015-04-04T13:19:15.000Z
connman_dispatcher/detect.py
a-sk/connman-dispatcher
2561ae87ffd26d0f98bb1ab2b430e181be3d01c1
[ "0BSD" ]
null
null
null
import glib import dbus from dbus.mainloop.glib import DBusGMainLoop from pyee import EventEmitter import logbook logger = logbook.Logger('connman-dispatcher') __all__ = ['detector'] def property_changed(_, message): if message.get_member() == "PropertyChanged": _, state = message.get_args_list() ...
25.058824
83
0.661972
0
0
0
0
0
0
0
0
264
0.206573
2202355dec4485d79be0734da044b8e85dc7a3dc
4,294
py
Python
integration/test/test_profile_overflow.py
avilcheslopez/geopm
35ad0af3f17f42baa009c97ed45eca24333daf33
[ "MIT", "BSD-3-Clause" ]
null
null
null
integration/test/test_profile_overflow.py
avilcheslopez/geopm
35ad0af3f17f42baa009c97ed45eca24333daf33
[ "MIT", "BSD-3-Clause" ]
null
null
null
integration/test/test_profile_overflow.py
avilcheslopez/geopm
35ad0af3f17f42baa009c97ed45eca24333daf33
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2015 - 2022, Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # """ Runs an application with a large number of short regions and checks that the controller successfully runs. """ import sys import unittest import os import subprocess import glob import geopmpy.io i...
32.778626
97
0.614578
3,766
0.877038
0
0
1,732
0.403354
0
0
1,555
0.362133
2203367508cf03902b996dcb408a29b0ce2106d4
13,627
py
Python
Objects/optAlignRNA.py
MooersLab/jupyterlabpymolpysnipsplus
b886750d63372434df53d4d6d7cdad6cb02ae4e7
[ "MIT" ]
null
null
null
Objects/optAlignRNA.py
MooersLab/jupyterlabpymolpysnipsplus
b886750d63372434df53d4d6d7cdad6cb02ae4e7
[ "MIT" ]
null
null
null
Objects/optAlignRNA.py
MooersLab/jupyterlabpymolpysnipsplus
b886750d63372434df53d4d6d7cdad6cb02ae4e7
[ "MIT" ]
null
null
null
# Description: OptiAlign.py by Jason Vertree modified for aligning multiple RNA structures. # Source: Generated while helping Miranda Adams at U of Saint Louis. """ cmd.do('python') cmd.do(' ##############################################################################') cmd.do('#') cmd.do('# @SUMMARY: -- QKabsch.py...
41.419453
143
0.634329
0
0
0
0
0
0
0
0
11,486
0.842885
220378f315f7e2f7d8cd6b8b856c000fc8a490f5
12,933
py
Python
2020/day11.py
asmeurer/advent-of-code
3ba3edb0c29994487f1b3344383dc41dfea9bfcb
[ "MIT" ]
null
null
null
2020/day11.py
asmeurer/advent-of-code
3ba3edb0c29994487f1b3344383dc41dfea9bfcb
[ "MIT" ]
null
null
null
2020/day11.py
asmeurer/advent-of-code
3ba3edb0c29994487f1b3344383dc41dfea9bfcb
[ "MIT" ]
null
null
null
test_input = """ L.LL.LL.LL LLLLLLL.LL L.L.L..L.. LLLL.LL.LL L.LL.LL.LL L.LLLLL.LL ..L.L..... LLLLLLLLLL L.LLLLLL.L L.LLLLL.LL """ test_input2 = """ .......#. ...#..... .#....... ......... ..#L....# ....#.... ......... #........ ...#..... """ test_input3 = """ ............. .L.L.#.#.#.#. ............. """ test_input...
45.861702
91
0.718163
0
0
0
0
0
0
0
0
9,408
0.727441
220420bd932e73713baed1135186d8fa37af4fd2
2,849
py
Python
final/runner_2.py
Pluriscient/sma2c-ipd
e6e4a5240930491a996afda4744714c5c4826ac2
[ "MIT" ]
null
null
null
final/runner_2.py
Pluriscient/sma2c-ipd
e6e4a5240930491a996afda4744714c5c4826ac2
[ "MIT" ]
null
null
null
final/runner_2.py
Pluriscient/sma2c-ipd
e6e4a5240930491a996afda4744714c5c4826ac2
[ "MIT" ]
null
null
null
from SMA2CAgent import SMA2CAgent from A2CAgent import A2CAgent from RandomAgent import RandomAgent # from .SMA2CAgent import SMA2CAgent import gym import numpy as np from IPD_fixed import IPDEnv import axelrod import time import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.ad...
43.830769
108
0.67708
0
0
0
0
0
0
0
0
1,193
0.418743
2204368a20f00021e6e644e58818806aeac0f4fc
876
py
Python
295-find-median-from-data-stream/295-find-median-from-data-stream.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
295-find-median-from-data-stream/295-find-median-from-data-stream.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
295-find-median-from-data-stream/295-find-median-from-data-stream.py
Dawit-Getachew/A2SV_Practice
2fe06d725e0acfe668c6dae98fe3ef6e6e26ef61
[ "MIT" ]
null
null
null
import heapq as h class MedianFinder: def __init__(self): self.rightHalf = [] self.leftHalf = [] def addNum(self, num: int) -> None: if len(self.leftHalf) > len(self.rightHalf): temp = h.heappush(self.leftHalf, -num) temp2 = h.heappop(self.leftHalf) ...
31.285714
67
0.586758
718
0.819635
0
0
0
0
0
0
134
0.152968
2204946bef0686b31437d34ea53f7a86c1f9035c
1,781
py
Python
mottak-arkiv-service/tests/routers/mappers/test_metadatafil.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
4
2021-03-05T15:39:24.000Z
2021-09-15T06:11:45.000Z
mottak-arkiv-service/tests/routers/mappers/test_metadatafil.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
631
2020-04-27T10:39:18.000Z
2022-03-31T14:51:38.000Z
mottak-arkiv-service/tests/routers/mappers/test_metadatafil.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
3
2020-02-20T15:48:03.000Z
2021-12-16T22:50:40.000Z
import pytest from app.domain.models.Metadatafil import Metadatafil, MetadataType from app.exceptions import InvalidContentType from app.routers.mappers.metadafil import _get_file_content, metadatafil_mapper, _content_type2metadata_type def test__content_type2metadata_type__success(): """ GIVEN the string ...
34.25
108
0.742841
0
0
0
0
0
0
0
0
808
0.453678
2204c4afb63d7b851791357727ac0902218aab44
2,748
py
Python
src/niweb/apps/noclook/templatetags/rack_tags.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/niweb/apps/noclook/templatetags/rack_tags.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
2
2019-07-24T12:41:11.000Z
2020-03-31T10:10:04.000Z
src/niweb/apps/noclook/templatetags/rack_tags.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
1
2019-02-25T14:58:20.000Z
2019-02-25T14:58:20.000Z
from django import template register = template.Library() RACK_SIZE_PX = 20 MARGIN_HEIGHT = 2 def _rack_unit_to_height(units): # for every unit over 1 add a 2 px margin margin = (units - 1) * MARGIN_HEIGHT return units * RACK_SIZE_PX + margin def _equipment_spacer(units): return { 'units': ...
28.926316
114
0.643377
0
0
0
0
1,193
0.434134
0
0
497
0.180859
2205e64387c6f4c5a706049e6175c53d8453ff11
442
py
Python
Cryptography/Exp-1-Shamirs-Secret-Sharing/main.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
null
null
null
Cryptography/Exp-1-Shamirs-Secret-Sharing/main.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
null
null
null
Cryptography/Exp-1-Shamirs-Secret-Sharing/main.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
1
2022-03-07T13:56:55.000Z
2022-03-07T13:56:55.000Z
import numpy as np import matplotlib.pyplot as plt from shamir import * from binascii import hexlify # img = plt.imread('cat.png') # plt.imshow(img) # plt.show() s = 'TEST_STRING'.encode() print("Original secret:", hexlify(s)) l = Shamir.split(3, 5, '12345'.encode()) for idx, item in l: print("Share {}: {}".fo...
18.416667
57
0.669683
0
0
0
0
0
0
0
0
142
0.321267
2206a89728beed4abfd89a30818175cab85e95be
825
py
Python
P20-Stack Abstract Data Type/Stack - Reverse Stack.py
necrospiritus/Python-Working-Examples
075d410673e470fc7c4ffc262e92109a3032132f
[ "MIT" ]
null
null
null
P20-Stack Abstract Data Type/Stack - Reverse Stack.py
necrospiritus/Python-Working-Examples
075d410673e470fc7c4ffc262e92109a3032132f
[ "MIT" ]
null
null
null
P20-Stack Abstract Data Type/Stack - Reverse Stack.py
necrospiritus/Python-Working-Examples
075d410673e470fc7c4ffc262e92109a3032132f
[ "MIT" ]
null
null
null
"""Reverse stack is using a list where the top is at the beginning instead of at the end.""" class Reverse_Stack: def __init__(self): self.items = [] def is_empty(self): # test to see whether the stack is empty. return self.items == [] def push(self, item): # adds a new item to the bas...
22.916667
92
0.632727
556
0.673939
0
0
0
0
0
0
306
0.370909
220737eae6a16eeacd5d110896be7e897b880d4e
101
py
Python
gerapy/cmd/server.py
awesome-archive/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
1
2018-12-07T02:05:32.000Z
2018-12-07T02:05:32.000Z
gerapy/cmd/server.py
Tilyp/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
null
null
null
gerapy/cmd/server.py
Tilyp/Gerapy
e9792d020397cd85b4d553b91b7829078b728b98
[ "MIT" ]
null
null
null
from gerapy.server.manage import manage import sys def server(): # Call django cmd manage()
14.428571
39
0.70297
0
0
0
0
0
0
0
0
17
0.168317
220739480d36f76e621c523e3b7cf2bdd8e3c62a
964
py
Python
client/walt/client/term.py
dia38/walt-python-packages
e6fa1f166f45e73173195d57840d22bef87b88f5
[ "BSD-3-Clause" ]
4
2020-01-14T09:12:56.000Z
2022-03-14T14:35:11.000Z
client/walt/client/term.py
dia38/walt-python-packages
e6fa1f166f45e73173195d57840d22bef87b88f5
[ "BSD-3-Clause" ]
73
2016-04-29T13:17:26.000Z
2022-03-01T15:06:48.000Z
client/walt/client/term.py
dia38/walt-python-packages
e6fa1f166f45e73173195d57840d22bef87b88f5
[ "BSD-3-Clause" ]
3
2019-03-18T14:27:56.000Z
2021-06-03T12:07:02.000Z
#!/usr/bin/env python import sys, tty, termios, array, fcntl, curses class TTYSettings(object): def __init__(self): self.tty_fd = sys.stdout.fileno() # save self.saved = termios.tcgetattr(self.tty_fd) self.win_size = self.get_win_size() self.rows, self.cols = self.win_size[0...
35.703704
69
0.629668
893
0.926349
0
0
0
0
0
0
85
0.088174
22075aae320e407eb3fd67de73b37aec7dd0a0b3
25,123
py
Python
improver_tests/calibration/ensemble_calibration/test_CalibratedForecastDistributionParameters.py
cpelley/improver
ebf77fe2adc85ed7aec74c26671872a2e4388ded
[ "BSD-3-Clause" ]
null
null
null
improver_tests/calibration/ensemble_calibration/test_CalibratedForecastDistributionParameters.py
cpelley/improver
ebf77fe2adc85ed7aec74c26671872a2e4388ded
[ "BSD-3-Clause" ]
null
null
null
improver_tests/calibration/ensemble_calibration/test_CalibratedForecastDistributionParameters.py
cpelley/improver
ebf77fe2adc85ed7aec74c26671872a2e4388ded
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
42.294613
88
0.690841
22,536
0.897027
0
0
17,265
0.687219
0
0
7,823
0.311388
2207cb5f7d7e3d98709c2a6697f808bd842caf1c
2,897
py
Python
rendaz/tests/test_daztools.py
veselosky/rendaz
c81298cb9b8f142c4748c28b7e93549a56ee248d
[ "Apache-2.0" ]
null
null
null
rendaz/tests/test_daztools.py
veselosky/rendaz
c81298cb9b8f142c4748c28b7e93549a56ee248d
[ "Apache-2.0" ]
null
null
null
rendaz/tests/test_daztools.py
veselosky/rendaz
c81298cb9b8f142c4748c28b7e93549a56ee248d
[ "Apache-2.0" ]
null
null
null
"Test handling/parsing of various DAZ Studio files" from pathlib import Path from tempfile import NamedTemporaryFile from django.apps import apps from rendaz.daztools import ( DSONFile, ProductMeta, manifest_files, supplement_product_name, ) TEST_DIR = Path(__file__).parent def test_read_dson_com...
29.561224
75
0.705557
0
0
0
0
0
0
0
0
864
0.29824
2209880d39d84bdcf0ec5ef896046b892fe747ab
20,000
py
Python
src/core/models/graph2seq.py
talha1503/RL-based-Graph2Seq-for-NQG
1039e0b6231ae7029ea6e4073b1e55df5ad2e928
[ "Apache-2.0" ]
100
2019-08-18T21:56:24.000Z
2022-03-31T08:54:41.000Z
src/core/models/graph2seq.py
talha1503/RL-based-Graph2Seq-for-NQG
1039e0b6231ae7029ea6e4073b1e55df5ad2e928
[ "Apache-2.0" ]
7
2019-12-26T03:49:20.000Z
2021-11-26T19:11:19.000Z
src/core/models/graph2seq.py
talha1503/RL-based-Graph2Seq-for-NQG
1039e0b6231ae7029ea6e4073b1e55df5ad2e928
[ "Apache-2.0" ]
17
2020-02-02T06:41:21.000Z
2022-03-09T02:53:27.000Z
import random import string from typing import Union, List import torch import torch.nn as nn import torch.nn.functional as F from ..layers.common import EncoderRNN, DecoderRNN, dropout from ..layers.attention import * from ..layers.graphs import GraphNN from ..utils.generic_utils import to_cuda, create_mask from ..u...
46.948357
194
0.6892
19,634
0.9817
0
0
0
0
0
0
4,337
0.21685
220aabb343a26ce1e8cadcc4df4a8b3a8adedfdb
2,939
py
Python
towhee/engine/pipeline.py
jeffoverflow/towhee
c576d22a4cdfc3909a3323b0d1decab87e83d26c
[ "Apache-2.0" ]
null
null
null
towhee/engine/pipeline.py
jeffoverflow/towhee
c576d22a4cdfc3909a3323b0d1decab87e83d26c
[ "Apache-2.0" ]
null
null
null
towhee/engine/pipeline.py
jeffoverflow/towhee
c576d22a4cdfc3909a3323b0d1decab87e83d26c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
33.397727
92
0.638312
2,195
0.746853
0
0
0
0
0
0
1,834
0.624022
220ccdab937624a53d838d42a5f734ee87cb22a8
744
py
Python
portfolio/models.py
MrInternauta/Python-Django-Portafolio-web-administrable
0df6f76cb5bdc2f28eb691d21f3592f7f082ce80
[ "MIT" ]
null
null
null
portfolio/models.py
MrInternauta/Python-Django-Portafolio-web-administrable
0df6f76cb5bdc2f28eb691d21f3592f7f082ce80
[ "MIT" ]
null
null
null
portfolio/models.py
MrInternauta/Python-Django-Portafolio-web-administrable
0df6f76cb5bdc2f28eb691d21f3592f7f082ce80
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Project(models.Model): title = models.CharField(max_length = 200, verbose_name = "Titulo") description = models.TextField(verbose_name="Descripcion") image = models.ImageField(verbose_name="Imagen", upload_to = "projects") link = mode...
43.764706
89
0.701613
684
0.919355
0
0
0
0
0
0
155
0.208333
220d1b0d3abc6c0db8d6bd13778e65f09dbb4290
231
py
Python
src/notifications/tests.py
kullo/webconfig
470839ed77fda11634d4e14a89bb5e7894aa707d
[ "BSD-3-Clause" ]
null
null
null
src/notifications/tests.py
kullo/webconfig
470839ed77fda11634d4e14a89bb5e7894aa707d
[ "BSD-3-Clause" ]
null
null
null
src/notifications/tests.py
kullo/webconfig
470839ed77fda11634d4e14a89bb5e7894aa707d
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015–2020 Kullo GmbH # # This source code is licensed under the 3-clause BSD license. See LICENSE.txt # in the root directory of this source tree for details. from django.test import TestCase # Create your tests here.
28.875
78
0.774892
0
0
0
0
0
0
0
0
194
0.832618
220da7c8db31ca8e3ea4491d39c1e1bb6b8b46fe
1,018
py
Python
examples/cam.py
jtme/button-shim
19b80a236866fad068e6d3aeb643a1270d6ae934
[ "MIT" ]
null
null
null
examples/cam.py
jtme/button-shim
19b80a236866fad068e6d3aeb643a1270d6ae934
[ "MIT" ]
null
null
null
examples/cam.py
jtme/button-shim
19b80a236866fad068e6d3aeb643a1270d6ae934
[ "MIT" ]
null
null
null
#!/usr/bin/env python import signal import buttonshim print(""" Button SHIM: rainbow.py Command on button press. Press Ctrl+C to exit. """) import commands @buttonshim.on_press(buttonshim.BUTTON_A) def button_a(button, pressed): buttonshim.set_pixel(0x94, 0x00, 0xd3) s=commands.getstatusoutput("ra...
19.960784
74
0.681729
0
0
0
0
795
0.780943
0
0
160
0.157171
220e0c7e4d7e7b9e561c692a325977f16ecf70b4
153
py
Python
built-in/TensorFlow/Official/cv/image_classification/ResnetVariant_for_TensorFlow/automl/vega/algorithms/nas/sm_nas/mmdet_meta_cfgs/bbox_head/__init__.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Official/cv/image_classification/ResnetVariant_for_TensorFlow/automl/vega/algorithms/nas/sm_nas/mmdet_meta_cfgs/bbox_head/__init__.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Research/cv/image_classification/Darts_for_TensorFlow/automl/vega/algorithms/nas/sm_nas/mmdet_meta_cfgs/bbox_head/__init__.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
from .cascade_head import CascadeFCBBoxHead from .convfc_bbox_head import SharedFCBBoxHead __all__ = [ 'CascadeFCBBoxHead', 'SharedFCBBoxHead']
21.857143
46
0.79085
0
0
0
0
0
0
0
0
37
0.24183
221167d3228359aec0ed9b72908eb095312e240f
3,146
py
Python
monzo/model/monzoaccount.py
elementechemlyn/pythonzo
ff6124119c7fe8c68c4bfa0e5d59b79ad442c1fc
[ "MIT" ]
null
null
null
monzo/model/monzoaccount.py
elementechemlyn/pythonzo
ff6124119c7fe8c68c4bfa0e5d59b79ad442c1fc
[ "MIT" ]
1
2021-06-01T22:01:40.000Z
2021-06-01T22:01:40.000Z
monzo/model/monzoaccount.py
elementechemlyn/pythonzo
ff6124119c7fe8c68c4bfa0e5d59b79ad442c1fc
[ "MIT" ]
null
null
null
import datetime from .monzobalance import MonzoBalance from .monzopagination import MonzoPaging from .monzotransaction import MonzoTransaction class MonzoAccount(object): def __init__(self,api,json_dict=None): self.api = api self.account_id = None self.created = None self.descripti...
35.75
95
0.651939
2,991
0.950731
0
0
600
0.190718
0
0
89
0.02829
22117a7dbdd2a79f096b01e929739e3fe71da985
3,718
py
Python
learninghouse/api/errors/__init__.py
DerOetzi/learninghouse-core
ece900b2a333b8ea9710609322cfefeeaf694cf8
[ "MIT" ]
1
2021-11-02T13:52:11.000Z
2021-11-02T13:52:11.000Z
learninghouse/api/errors/__init__.py
DerOetzi/learninghouse-core
ece900b2a333b8ea9710609322cfefeeaf694cf8
[ "MIT" ]
null
null
null
learninghouse/api/errors/__init__.py
DerOetzi/learninghouse-core
ece900b2a333b8ea9710609322cfefeeaf694cf8
[ "MIT" ]
1
2020-08-27T20:03:36.000Z
2020-08-27T20:03:36.000Z
from typing import Dict, Optional from fastapi import status, Request from fastapi.responses import JSONResponse from fastapi.exceptions import RequestValidationError from learninghouse.models import LearningHouseErrorMessage MIMETYPE_JSON = 'application/json' class LearningHouseException(Exception): STATUS_CO...
34.747664
133
0.604088
3,095
0.832437
0
0
1,419
0.381657
344
0.092523
668
0.179666
2212ba611cd09cc95cb9831180998a6882517ddf
1,751
py
Python
moda/dataprep/create_dataset.py
Patte1808/moda
312c9594754ae0f6d17cbfafaa2c4c790c58efe5
[ "MIT" ]
null
null
null
moda/dataprep/create_dataset.py
Patte1808/moda
312c9594754ae0f6d17cbfafaa2c4c790c58efe5
[ "MIT" ]
null
null
null
moda/dataprep/create_dataset.py
Patte1808/moda
312c9594754ae0f6d17cbfafaa2c4c790c58efe5
[ "MIT" ]
null
null
null
import pandas as pd def get_windowed_ts(ranged_ts, window_size, with_actual=True): """ Creates a data frame where each row is a window of samples from the time series. Each consecutive row is a shift of 1 cell from the previous row. For example: [[1,2,3],[2,3,4],[3,4,5]] :param ranged_ts: a pd.Da...
38.065217
109
0.703027
0
0
0
0
0
0
0
0
894
0.510565
22135083df33d8282602ed03efa2652030de4212
1,310
py
Python
test/test_ufunc.py
tuwien-cms/xprec
8f213aa9475342000883a56c56d54bb5208eb930
[ "MIT" ]
6
2021-10-01T16:35:27.000Z
2022-01-05T18:21:39.000Z
test/test_ufunc.py
tuwien-cms/xprec
8f213aa9475342000883a56c56d54bb5208eb930
[ "MIT" ]
8
2022-01-20T20:33:26.000Z
2022-03-25T09:27:49.000Z
test/test_ufunc.py
tuwien-cms/xprec
8f213aa9475342000883a56c56d54bb5208eb930
[ "MIT" ]
1
2022-01-21T22:49:16.000Z
2022-01-21T22:49:16.000Z
# Copyright (C) 2021 Markus Wallerberger and others # SPDX-License-Identifier: MIT import numpy as np import xprec def _compare_ufunc(ufunc, *args, ulps=1): fx_d = ufunc(*args) fx_q = ufunc(*(a.astype(xprec.ddouble) for a in args)).astype(float) # Ensure relative accuracy of 2 ulps np.testing.assert_...
24.716981
77
0.650382
0
0
0
0
0
0
0
0
214
0.163359
22135b653bd172de4f59e045357620ffd83da98a
48
py
Python
echolect/millstone/__init__.py
ryanvolz/echolect
ec2594925f34fdaea69b64e725fccb0c99665a55
[ "BSD-3-Clause" ]
1
2022-03-24T22:48:12.000Z
2022-03-24T22:48:12.000Z
echolect/millstone/__init__.py
scivision/echolect
ec2594925f34fdaea69b64e725fccb0c99665a55
[ "BSD-3-Clause" ]
1
2015-03-25T20:41:24.000Z
2015-03-25T20:41:24.000Z
echolect/millstone/__init__.py
scivision/echolect
ec2594925f34fdaea69b64e725fccb0c99665a55
[ "BSD-3-Clause" ]
null
null
null
from .read_hdf5 import * from .hdf5_api import *
24
24
0.770833
0
0
0
0
0
0
0
0
0
0
2214b7a4b4680d12ebfcca09d05d0ee1ade6215e
932
py
Python
pyptoolz/transforms.py
embedio/pyplinez
14b2e84d0f0bd86870d492a78f02c0b19810d3f6
[ "MIT" ]
null
null
null
pyptoolz/transforms.py
embedio/pyplinez
14b2e84d0f0bd86870d492a78f02c0b19810d3f6
[ "MIT" ]
null
null
null
pyptoolz/transforms.py
embedio/pyplinez
14b2e84d0f0bd86870d492a78f02c0b19810d3f6
[ "MIT" ]
null
null
null
from pathlib import Path from toolz import itertoolz, curried import vaex transform_path_to_posix = lambda path: path.as_posix() def path_to_posix(): return curried.valmap(transform_path_to_posix) transform_xlsx_to_vaex = lambda path: vaex.from_ascii(path, seperator="\t") def xlsx_to_vaex(): return curr...
20.26087
80
0.784335
0
0
0
0
0
0
0
0
8
0.008584
2214dd004a4a327669decd49302d44af0c040bf5
1,409
py
Python
experiments/s3-image-resize/chalicelib/s3_helpers.py
llamapope/chalice-experiments
f08fa0bade19c2659788a0678d89a4a63c2402d5
[ "MIT" ]
null
null
null
experiments/s3-image-resize/chalicelib/s3_helpers.py
llamapope/chalice-experiments
f08fa0bade19c2659788a0678d89a4a63c2402d5
[ "MIT" ]
2
2021-06-08T20:56:46.000Z
2022-01-13T02:15:29.000Z
experiments/s3-image-resize/chalicelib/s3_helpers.py
llamapope/chalice-experiments
f08fa0bade19c2659788a0678d89a4a63c2402d5
[ "MIT" ]
null
null
null
import PIL from PIL import Image from io import BytesIO import re def resize(s3_client, bucket, original_key, width, height, suffix): obj = s3_client.get_object(Bucket=bucket, Key=original_key) full_size_key = original_key.replace('__incoming/', '') ext = re.sub(r'.+\.([^.]+)$', r'\1', full_size_key) ...
29.978723
69
0.628105
0
0
0
0
0
0
0
0
308
0.218595
221552a2a64bb10ef85638e3e31fd395fcf10fcf
4,792
py
Python
synapse/handlers/room_member_worker.py
lukaslihotzki/synapse
1dfdc87b9bb07cc3c958dde7f41f2af4322477e5
[ "Apache-2.0" ]
9,945
2015-01-02T07:41:06.000Z
2022-03-31T23:22:42.000Z
synapse/handlers/room_member_worker.py
lukaslihotzki/synapse
1dfdc87b9bb07cc3c958dde7f41f2af4322477e5
[ "Apache-2.0" ]
9,320
2015-01-08T14:09:03.000Z
2022-03-31T21:11:24.000Z
synapse/handlers/room_member_worker.py
lukaslihotzki/synapse
1dfdc87b9bb07cc3c958dde7f41f2af4322477e5
[ "Apache-2.0" ]
2,299
2015-01-31T22:16:29.000Z
2022-03-31T06:08:26.000Z
# Copyright 2018-2021 The Matrix.org Foundation C.I.C. # # 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...
33.746479
77
0.660267
3,497
0.729758
0
0
0
0
2,997
0.625417
1,540
0.321369
22159f4a1c6d6e72ce319e5cebbbcc4d51c13acd
2,205
py
Python
win/devkit/other/pymel/extras/completion/py/maya/app/edl/importExport.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
10
2018-03-30T16:09:02.000Z
2021-12-07T07:29:19.000Z
win/devkit/other/pymel/extras/completion/py/maya/app/edl/importExport.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
null
null
null
win/devkit/other/pymel/extras/completion/py/maya/app/edl/importExport.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
9
2018-06-02T09:18:49.000Z
2021-12-20T09:24:35.000Z
import tempfile import maya.OpenMaya as OpenMaya import maya.OpenMayaRender as OpenMayaRender import maya.OpenMayaMPx as OpenMayaMPx import maya.cmds as cmds import maya import re from maya.app.edl.fcp import * class ImportExport(OpenMayaMPx.MPxCommand): def __del__(self): pass def __init__(...
17.64
92
0.647166
798
0.361905
0
0
0
0
0
0
976
0.44263
22189dbba6fcdc9b59fa2a428105a701aaaf4a2f
1,040
py
Python
packages/mcni/python/mcni/instrument_simulator/__init__.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mcni/python/mcni/instrument_simulator/__init__.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mcni/python/mcni/instrument_simulator/__init__.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 2006-2010 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~...
26.666667
100
0.575
79
0.075962
0
0
0
0
0
0
524
0.503846
22199caafbe2cf83aa5b2f765370eb9a8ab49f37
169
py
Python
todolist/wsgi.py
HangeZoe/django-todo-list
8a3232916e57724d52f0f93124f346d82b72e0ce
[ "MIT" ]
null
null
null
todolist/wsgi.py
HangeZoe/django-todo-list
8a3232916e57724d52f0f93124f346d82b72e0ce
[ "MIT" ]
null
null
null
todolist/wsgi.py
HangeZoe/django-todo-list
8a3232916e57724d52f0f93124f346d82b72e0ce
[ "MIT" ]
null
null
null
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'todolist.settings') application = get_wsgi_application()
21.125
68
0.828402
0
0
0
0
0
0
0
0
43
0.254438
221aaf010e11acc9785595a6c6873f1ea746ad9a
4,501
py
Python
cern_search_rest_api/modules/cernsearch/cli.py
inveniosoftware-contrib/citadel-search
736fdb3a5b32f750111bc846bc815c4671978fa1
[ "MIT" ]
6
2020-04-12T18:30:08.000Z
2021-09-15T05:53:40.000Z
cern_search_rest_api/modules/cernsearch/cli.py
inveniosoftware-contrib/cern-search
736fdb3a5b32f750111bc846bc815c4671978fa1
[ "MIT" ]
6
2020-03-19T13:28:38.000Z
2020-12-08T16:54:05.000Z
cern_search_rest_api/modules/cernsearch/cli.py
inveniosoftware-contrib/cern-search
736fdb3a5b32f750111bc846bc815c4671978fa1
[ "MIT" ]
2
2019-04-22T21:20:17.000Z
2019-05-16T08:50:38.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # This file is part of CERN Search. # Copyright (C) 2018-2021 CERN. # # Citadel Search is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Click command-line utilities.""" import json import c...
30.412162
108
0.682959
0
0
0
0
3,626
0.805599
0
0
1,511
0.335703
221ac1f2a8c5526fcda12d6ed18346f9e5d9d58a
906
py
Python
kasaya/core/backend/redisstore.py
AYAtechnologies/Kasaya-esb
150fa96d4136641cd4632f3c9a09d4fc2610df07
[ "BSD-2-Clause" ]
1
2015-06-26T18:05:20.000Z
2015-06-26T18:05:20.000Z
kasaya/core/backend/redisstore.py
AYAtechnologies/Kasaya-esb
150fa96d4136641cd4632f3c9a09d4fc2610df07
[ "BSD-2-Clause" ]
null
null
null
kasaya/core/backend/redisstore.py
AYAtechnologies/Kasaya-esb
150fa96d4136641cd4632f3c9a09d4fc2610df07
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'wektor' from generic import GenericBackend import redis class RedisBackend(GenericBackend): def __init__(self): pool = redis.ConnectionPool(host='localhost', port=6379, db=0) self.store = redis.Redis(connection_pool=pool) def get_typecode(self, value): typecode = str...
25.166667
71
0.562914
833
0.919426
0
0
0
0
0
0
88
0.09713
221b92eff3eb5754a23903956aeef1d20d52980f
11,288
py
Python
venv/lib/python3.6/site-packages/ansible_collections/amazon/aws/plugins/module_utils/rds.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
venv/lib/python3.6/site-packages/ansible_collections/amazon/aws/plugins/module_utils/rds.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/amazon/aws/plugins/module_utils/rds.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
# Copyright: (c) 2018, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type from collections import namedtuple from time import sleep try: from botocore.exceptions impor...
47.830508
159
0.710578
0
0
0
0
0
0
0
0
3,193
0.282867
221baabdac2f34fa39aafcaa192dcd1f1b264104
176
py
Python
week06/lecture/examples/src6/2/uppercase0.py
uldash/CS50x
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
[ "MIT" ]
null
null
null
week06/lecture/examples/src6/2/uppercase0.py
uldash/CS50x
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
[ "MIT" ]
null
null
null
week06/lecture/examples/src6/2/uppercase0.py
uldash/CS50x
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
[ "MIT" ]
null
null
null
# Uppercases string one character at a time from cs50 import get_string s = get_string("Before: ") print("After: ", end="") for c in s: print(c.upper(), end="") print()
17.6
43
0.653409
0
0
0
0
0
0
0
0
67
0.380682
221c5dbcccafcacd09ca66b22dfdff675d20b942
2,050
py
Python
tests/test_kobo.py
Donearm/kobuddy
9c55f2f94c3c949c4d8a5ba18704be92c055873c
[ "MIT" ]
75
2019-08-24T14:21:53.000Z
2022-02-21T17:20:20.000Z
tests/test_kobo.py
Donearm/kobuddy
9c55f2f94c3c949c4d8a5ba18704be92c055873c
[ "MIT" ]
9
2019-10-15T19:30:16.000Z
2021-08-17T15:24:00.000Z
tests/test_kobo.py
Donearm/kobuddy
9c55f2f94c3c949c4d8a5ba18704be92c055873c
[ "MIT" ]
4
2020-02-05T13:53:59.000Z
2021-08-17T14:50:39.000Z
from datetime import datetime from pathlib import Path import pytz import kobuddy def get_test_db(): # db = Path(__file__).absolute().parent.parent / 'KoboShelfes' / 'KoboReader.sqlite.0' db = Path(__file__).absolute().parent / 'data' / 'kobo_notes' / 'input' / 'KoboReader.sqlite' return db # a bit meh, ...
28.472222
159
0.691707
0
0
0
0
0
0
0
0
692
0.337561
221edc811e6d0e0ea5e013272ed5a112078a3713
1,062
py
Python
tanks/views.py
BArdelean/djangostuff
b4b7b6bac5e1d8dbc73e2f5cb5a7e784a82c9519
[ "bzip2-1.0.6" ]
null
null
null
tanks/views.py
BArdelean/djangostuff
b4b7b6bac5e1d8dbc73e2f5cb5a7e784a82c9519
[ "bzip2-1.0.6" ]
null
null
null
tanks/views.py
BArdelean/djangostuff
b4b7b6bac5e1d8dbc73e2f5cb5a7e784a82c9519
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render from .models import Tank from django.db import models from django.http import HttpResponse from django.views import View # Create your views here. # The view for the created model Tank def tank_view(request): queryset = Tank.objects.all() context = { 'object': quer...
21.673469
54
0.65725
0
0
0
0
0
0
0
0
187
0.176083