hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b505a0cc8f3a985629823c99bd91b07762dddac6
4,299
py
Python
ppci/arch/example.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
null
null
null
ppci/arch/example.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
null
null
null
ppci/arch/example.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
1
2021-11-23T14:23:04.000Z
2021-11-23T14:23:04.000Z
""" This is an example target with some instructions. It is used in test-cases and serves as a minimal example. """ from .arch import Architecture from .arch_info import ArchInfo, TypeInfo from .encoding import Instruction, Syntax, Operand from .registers import Register, RegisterClass from .. import ir from ....
26.86875
79
0.592929
e77b61c6ccaa67a120ee4b1d377264e2846813f6
27,563
py
Python
tests/sensors/test_base.py
JGoldman110/airflow
93e2c945b1be5b7c9700e780d2aa67846503763b
[ "Apache-2.0" ]
1
2022-03-25T23:49:03.000Z
2022-03-25T23:49:03.000Z
tests/sensors/test_base.py
JGoldman110/airflow
93e2c945b1be5b7c9700e780d2aa67846503763b
[ "Apache-2.0" ]
null
null
null
tests/sensors/test_base.py
JGoldman110/airflow
93e2c945b1be5b7c9700e780d2aa67846503763b
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.096454
109
0.61949
703a292bcb677b4d069025242dc6e5a1528ffaf1
308
py
Python
torrents/admin.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
torrents/admin.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
torrents/admin.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Torrent,Category class CategoryAdmin(admin.ModelAdmin): list_display = ['title'] admin.site.register( Category, CategoryAdmin) class TorrentAdmin(admin.ModelAdmin): list_display = ['name','category'] admin.site.register( Torrent, TorrentAdmin)
25.666667
45
0.775974
fc09683a6ffeec1817143fc921d6d2e7f3579578
3,598
py
Python
unit_tests/test_utils.py
openstack/charm-heat
d337e71a288ead3fb2dd335e22146e8a36d15f3b
[ "ECL-2.0", "Apache-2.0" ]
16
2016-04-17T04:00:48.000Z
2020-05-06T14:07:36.000Z
unit_tests/test_utils.py
openstack/charm-heat
d337e71a288ead3fb2dd335e22146e8a36d15f3b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
unit_tests/test_utils.py
openstack/charm-heat
d337e71a288ead3fb2dd335e22146e8a36d15f3b
[ "ECL-2.0", "Apache-2.0" ]
10
2016-03-23T20:32:46.000Z
2019-10-22T03:49:29.000Z
# Copyright 2016 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
26.455882
77
0.637298
05fe9832afc309b298c1b81ed9f4cc58ec225546
225
py
Python
src/accounts/serializers.py
elephantatech/django-docker-template
9e0cb87c717933b7cadf8d6ef206fb55317c5eeb
[ "Apache-2.0" ]
null
null
null
src/accounts/serializers.py
elephantatech/django-docker-template
9e0cb87c717933b7cadf8d6ef206fb55317c5eeb
[ "Apache-2.0" ]
3
2021-06-04T23:48:24.000Z
2021-06-10T20:00:48.000Z
src/accounts/serializers.py
elephantatech/django-docker-template
9e0cb87c717933b7cadf8d6ef206fb55317c5eeb
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth import get_user_model from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): class Meta: model = get_user_model() fields = ('id', 'username',)
28.125
50
0.733333
f3b31551dc4760b2a392277c6ce4adbbe9d40b21
32,141
py
Python
mne/preprocessing/tests/test_ica.py
christian-oreilly/mne-python
d925082e5b1e6f0f3649d8b909340e7b79a632ec
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/tests/test_ica.py
christian-oreilly/mne-python
d925082e5b1e6f0f3649d8b909340e7b79a632ec
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/tests/test_ica.py
christian-oreilly/mne-python
d925082e5b1e6f0f3649d8b909340e7b79a632ec
[ "BSD-3-Clause" ]
1
2017-12-05T05:13:56.000Z
2017-12-05T05:13:56.000Z
from __future__ import print_function # Author: Denis Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # # License: BSD (3-clause) import os import os.path as op import warnings from nose.tools import (assert_true, assert_raises, assert_equal, assert_false, ...
39.340269
79
0.636259
84a59366fb513734250aada0cc52440407bbef04
392
py
Python
app/wsgi.py
miraculixx/tastypie-async
6da1e92730954f1c3a4234f64c9a828dd4102ae9
[ "MIT" ]
3
2016-03-29T18:17:51.000Z
2021-08-19T20:12:33.000Z
app/wsgi.py
miraculixx/tastypie-async
6da1e92730954f1c3a4234f64c9a828dd4102ae9
[ "MIT" ]
2
2015-07-20T07:06:12.000Z
2016-10-03T06:44:52.000Z
app/wsgi.py
miraculixx/tastypie-async
6da1e92730954f1c3a4234f64c9a828dd4102ae9
[ "MIT" ]
4
2015-07-21T11:27:00.000Z
2021-08-19T20:12:10.000Z
""" WSGI config for tastypie-async project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings") from django.cor...
26.133333
78
0.788265
ea68dce7e4a8b0d1a9f2f46f756fecd373452448
378
py
Python
angr/procedures/posix/recvfrom.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2021-07-07T11:18:34.000Z
2021-07-07T11:18:34.000Z
angr/procedures/posix/recvfrom.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/posix/recvfrom.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2022-02-10T02:29:38.000Z
2022-02-10T02:29:38.000Z
import angr ###################################### # recvfrom ###################################### class recvfrom(angr.SimProcedure): #pylint:disable=arguments-differ def run(self, fd, dst, length, flags, src_addr, addrlen): #pylint:disable=unused-argument bytes_recvd = self.state.posix.read(fd, ds...
29.076923
93
0.568783
f2dd0435d6af445b6029cfcdbe5768ae0e406519
656
py
Python
manage.py
sling254/MitPitch
68b1a62f04aac3ef6cda0c1b575b65de2a887acb
[ "MIT" ]
null
null
null
manage.py
sling254/MitPitch
68b1a62f04aac3ef6cda0c1b575b65de2a887acb
[ "MIT" ]
1
2021-11-19T04:37:04.000Z
2021-11-19T04:37:04.000Z
manage.py
sling254/MitPitch
68b1a62f04aac3ef6cda0c1b575b65de2a887acb
[ "MIT" ]
1
2021-11-17T12:16:04.000Z
2021-11-17T12:16:04.000Z
from flask_script import Manager, Server from flask_migrate import Migrate, MigrateCommand from app import create_app,db from app.models import User # Creating app instance app = create_app('production') manager = Manager(app) manager.add_command('server',Server) migrate = Migrate(app,db) manager.add_command('db',...
21.16129
51
0.737805
470d26d3ab2a3352ee9cf216094b5cc46d6a662a
5,992
py
Python
qiskit_aqua/components/initial_states/custom.py
gitcyberian/aqua
617bafe8654b49e80f7593e4f634e8662e1d3796
[ "Apache-2.0" ]
1
2019-01-03T20:06:19.000Z
2019-01-03T20:06:19.000Z
qiskit_aqua/components/initial_states/custom.py
jodyburksphd/qiskit-aqua
d1050e3362276894b0e3442717f0f2a774a177b0
[ "Apache-2.0" ]
null
null
null
qiskit_aqua/components/initial_states/custom.py
jodyburksphd/qiskit-aqua
d1050e3362276894b0e3442717f0f2a774a177b0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 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 agre...
38.165605
100
0.556409
a9a6dcf2bdd5fe96e42fe8473f0fd5246a76710f
1,453
py
Python
prompt_toolkit/contrib/shell/layout.py
mfussenegger/python-prompt-toolkit
193c1f528ee69f4cdbc2dc710ebbaee8a3655814
[ "BSD-3-Clause" ]
1
2019-01-31T02:41:57.000Z
2019-01-31T02:41:57.000Z
prompt_toolkit/contrib/shell/layout.py
Carreau/python-prompt-toolkit
e95726b6a8325a44a753d68a49ceb7d657ba3930
[ "BSD-3-Clause" ]
null
null
null
prompt_toolkit/contrib/shell/layout.py
Carreau/python-prompt-toolkit
e95726b6a8325a44a753d68a49ceb7d657ba3930
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from pygments.token import Token from .rules import TokenStream from .lexer import lex_document class CompletionHint(object): def __init__(self, grammar): self.grammar = grammar def write(self, cli, screen): if not (cli.is_exiting or cli.is_aborting o...
30.914894
85
0.549209
ccffec93d0c86349835a6f5512536dd65637e582
2,843
py
Python
misc/config_tools/service_vm_config/serial_config.py
jackwhich/acrn-hypervisor-1
2ff11c2ef04a2668979b3e363e25f13cf48376ac
[ "BSD-3-Clause" ]
null
null
null
misc/config_tools/service_vm_config/serial_config.py
jackwhich/acrn-hypervisor-1
2ff11c2ef04a2668979b3e363e25f13cf48376ac
[ "BSD-3-Clause" ]
null
null
null
misc/config_tools/service_vm_config/serial_config.py
jackwhich/acrn-hypervisor-1
2ff11c2ef04a2668979b3e363e25f13cf48376ac
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2021 Intel Corporation. # # SPDX-License-Identifier: BSD-3-Clause # import sys, os sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'library')) import argparse import lxml.etree import common #vuart devices name is configured to start from /dev/tt...
42.432836
110
0.663384
e538f89361def811e56e17fd0b1bb6df348acb2e
818
py
Python
flexpart_alto/scratch/Untitled.py
daliagachc/flexpart-alto
2663fad47239989bb4aff0e2058bfd62e2489d07
[ "Xnet", "X11" ]
null
null
null
flexpart_alto/scratch/Untitled.py
daliagachc/flexpart-alto
2663fad47239989bb4aff0e2058bfd62e2489d07
[ "Xnet", "X11" ]
null
null
null
flexpart_alto/scratch/Untitled.py
daliagachc/flexpart-alto
2663fad47239989bb4aff0e2058bfd62e2489d07
[ "Xnet", "X11" ]
null
null
null
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.7.0-rc1 # kernelspec: # display_name: Python [conda env:b36] # language: python # name: conda-env-b36-py # --- # %% from useful_scit.imps...
14.872727
72
0.601467
aaf6cf992782cf91f0848810b2fad985bfd2deb7
6,611
py
Python
hysds/user_rules_job.py
fgreg/hysds
74a1019665b02f0f475cc4e7fc0a993dd71d7a53
[ "Apache-2.0" ]
null
null
null
hysds/user_rules_job.py
fgreg/hysds
74a1019665b02f0f475cc4e7fc0a993dd71d7a53
[ "Apache-2.0" ]
null
null
null
hysds/user_rules_job.py
fgreg/hysds
74a1019665b02f0f475cc4e7fc0a993dd71d7a53
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() import os import sys import json import requests import time import backoff import socket import t...
31.783654
88
0.566329
67e3a0a298ed87092953c78d658a1b0a70a6a974
3,412
py
Python
src/vbs_to_js/vbs_checker.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
null
null
null
src/vbs_to_js/vbs_checker.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
null
null
null
src/vbs_to_js/vbs_checker.py
ITh4cker/auto_tools
8e0e00cdf8bf60ee3f26fa5ae8f18c376298d0aa
[ "Apache-2.0" ]
1
2021-06-16T07:32:17.000Z
2021-06-16T07:32:17.000Z
# auther = Cheng Chang(SA) # Date = 2016/12/16 import os import sys import shutil from vbs2js import VBSConverter sys.path.append("..\..") import third_party.wrappers.SALineup_python.pysal as SA def get_parent_path(path, grade): if grade > 0 and path.count('\\') >= grade: l = path.split('\\') ...
32.188679
97
0.580598
22514f28481b5364873fea007c702466c338d2d4
11,522
py
Python
greentest/test__pool.py
bkad/gevent
185b71cc472db413515059ab4a197207cdaf1f6c
[ "MIT" ]
2
2015-12-19T01:34:43.000Z
2018-02-02T12:32:01.000Z
greentest/test__pool.py
alex/gevent
454a77ca561868854760b2d9cbfa3bf3bbd2e062
[ "MIT" ]
null
null
null
greentest/test__pool.py
alex/gevent
454a77ca561868854760b2d9cbfa3bf3bbd2e062
[ "MIT" ]
2
2019-11-24T12:11:50.000Z
2020-12-26T19:00:20.000Z
from __future__ import with_statement from time import time import gevent from gevent import pool from gevent.event import Event import greentest import random from greentest import ExpectedException import six import unittest class TestCoroutinePool(unittest.TestCase): klass = pool.Pool def test_apply_asyn...
27.368171
97
0.582104
7d6bcf098a527eb8f141ad2155193f3ead334ad7
23,788
py
Python
src/pitchly/pitch_control.py
opunsoars/pitchly
ad3bba4ab7ce1f2dc5cb6d184aac14a487d20056
[ "MIT" ]
7
2021-04-12T18:28:44.000Z
2021-12-24T06:13:34.000Z
src/pitchly/pitch_control.py
opunsoars/pitchly
ad3bba4ab7ce1f2dc5cb6d184aac14a487d20056
[ "MIT" ]
1
2021-08-11T13:58:38.000Z
2021-08-11T15:06:23.000Z
src/pitchly/pitch_control.py
opunsoars/pitchly
ad3bba4ab7ce1f2dc5cb6d184aac14a487d20056
[ "MIT" ]
1
2021-08-11T13:21:37.000Z
2021-08-11T13:21:37.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # this file is modified from https://github.com/Friends-of-Tracking-Data-FoTD/LaurieOnTracking/blob/master/Metrica_PitchControl.py # original author: Laurie Shaw (research work developed by William Spearman) import numpy as np """ Created on Mon Apr 19 14:52:19 2020 Mod...
38.869281
130
0.630654
130b9c30414551712569888766316bbebf4fd066
135
py
Python
app_metrics/tests/__init__.py
pivotal-energy-solutions/django-app-metrics
d2d016595375a65414f9028b13a413fb740967b3
[ "BSD-3-Clause" ]
1
2018-01-18T11:48:22.000Z
2018-01-18T11:48:22.000Z
app_metrics/tests/__init__.py
pivotal-energy-solutions/django-app-metrics
d2d016595375a65414f9028b13a413fb740967b3
[ "BSD-3-Clause" ]
null
null
null
app_metrics/tests/__init__.py
pivotal-energy-solutions/django-app-metrics
d2d016595375a65414f9028b13a413fb740967b3
[ "BSD-3-Clause" ]
1
2016-04-11T18:39:52.000Z
2016-04-11T18:39:52.000Z
# -*- coding: utf-8 -*- from .base_tests import * from .mixpanel_tests import * from .statsd_tests import * from .redis_tests import *
22.5
29
0.718519
9142a8af3c41e634916b50f3ba0995d823f3bc53
3,986
py
Python
Python/ShapeCohortGenPackage/ShapeCohortGen/CohortGenerator.py
SCIInstitute/shapeworks
cbd44fdeb83270179c2331f2ba8431cf7330a4ff
[ "MIT" ]
3
2016-04-26T15:29:58.000Z
2018-10-05T18:39:12.000Z
Python/ShapeCohortGenPackage/ShapeCohortGen/CohortGenerator.py
ben2k/ShapeWorks
a61d2710c5592db1dc00b4fe11990e512220161f
[ "MIT" ]
35
2015-05-22T18:26:16.000Z
2019-06-03T18:09:40.000Z
Python/ShapeCohortGenPackage/ShapeCohortGen/CohortGenerator.py
ben2k/ShapeWorks
a61d2710c5592db1dc00b4fe11990e512220161f
[ "MIT" ]
7
2015-06-18T18:56:12.000Z
2019-06-17T19:15:06.000Z
from ShapeCohortGen import Supershapes,Ellipsoids,EllipsoidJoints,CohortGenUtils,Tori class CohortGenerator(): def __init__(self,out_dir): self.out_dir = out_dir self.meshes = [] self.contours = [] self.segs = [] self.images = [] def generate_segmentations(self, randomize_size=True, spacing=[1.0,1.0,1.0], ...
56.942857
181
0.804315
dae1401ff06dc73ad6961384daaf70da9189d55a
2,413
py
Python
tests/test_client.py
loretoparisi/stanfordnlp
8e3af00671d92898ab0a2eaaba825694ccfb82ca
[ "Apache-2.0" ]
2
2019-03-01T15:32:03.000Z
2020-01-08T21:46:16.000Z
tests/test_client.py
loretoparisi/stanfordnlp
8e3af00671d92898ab0a2eaaba825694ccfb82ca
[ "Apache-2.0" ]
null
null
null
tests/test_client.py
loretoparisi/stanfordnlp
8e3af00671d92898ab0a2eaaba825694ccfb82ca
[ "Apache-2.0" ]
null
null
null
""" Tests that call a running CoreNLPClient. """ import stanfordnlp.server as corenlp TEXT = "Chris wrote a simple sentence that he parsed with Stanford CoreNLP.\n" def test_connect(): with corenlp.CoreNLPClient() as client: client.ensure_alive() assert client.is_active assert client.is_al...
36.560606
117
0.491504
885188e7b914a5da05cce5c86ca5c3d0f8cfd48f
115
py
Python
Python/Uri 1930 - Tomadas.py
Gui25Reis/URI
3df11b4eb27513b336bdff1e56b7707568b249e3
[ "MIT" ]
null
null
null
Python/Uri 1930 - Tomadas.py
Gui25Reis/URI
3df11b4eb27513b336bdff1e56b7707568b249e3
[ "MIT" ]
null
null
null
Python/Uri 1930 - Tomadas.py
Gui25Reis/URI
3df11b4eb27513b336bdff1e56b7707568b249e3
[ "MIT" ]
null
null
null
print(sum([int(x) for x in input().split() ])-3) # Pede as entradas, soma elas e tira 3 (3 tomadas forma usadas)
115
115
0.66087
51885e5882cdfc8a16bd3a583a6dc38b6705e164
1,678
py
Python
mindsdb/integrations/trino_handler/tests/test_trino_handler.py
mindsdb/main
2c7c09a756c17a47f2ff4a38bf45203d706240ee
[ "MIT" ]
261
2018-09-28T02:32:17.000Z
2018-12-10T06:30:54.000Z
mindsdb/integrations/trino_handler/tests/test_trino_handler.py
mindsdb/main
2c7c09a756c17a47f2ff4a38bf45203d706240ee
[ "MIT" ]
27
2018-09-26T08:49:11.000Z
2018-12-10T14:42:52.000Z
mindsdb/integrations/trino_handler/tests/test_trino_handler.py
mindsdb/main
2c7c09a756c17a47f2ff4a38bf45203d706240ee
[ "MIT" ]
46
2018-10-06T10:11:18.000Z
2018-12-10T04:02:17.000Z
import unittest from mindsdb.api.mysql.mysql_proxy.mysql_proxy import RESPONSE_TYPE from mindsdb.integrations.trino_handler.trino_handler import TrinoHandler class TrinoHandlerTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.kwargs = { "host": "qa.analytics.quantum.site.gs....
32.901961
73
0.64124
66d46ad775615b295a293f451ac53628a65f6cd7
2,365
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_user.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_user.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_user.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2020 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.533333
103
0.615645
12c1cdf222d0466ecc48e7e292558364bb5dac6c
561
py
Python
process_presentations.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
3
2018-04-13T15:45:21.000Z
2018-12-16T16:50:37.000Z
process_presentations.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
249
2018-03-26T14:04:11.000Z
2020-04-13T22:32:36.000Z
process_presentations.py
SmartPhoenix/Persistent-Kingdoms
772574471279825b43788c87df4eab44444912a3
[ "Unlicense" ]
11
2018-04-10T15:56:01.000Z
2019-12-10T21:39:32.000Z
import process_operations as po import module_presentations def process_entry(processor, txt_file, entry, index): output_list = ["prsnt_%s %d %d " % (entry[0], entry[1], processor.process_id(entry[2], "mesh"))] output_list.extend(processor.process_triggers(entry[3], entry[0])) output_list.append("\r\n\r\n"...
46.75
105
0.741533
17357b6569b9655f2f9bb985b2dd37f76d4fb8e8
303
gyp
Python
binding.gyp
Himujjal/tree-sitter-sveltealt
d16c4b74df8a8e8cfb13a94ca2eb75f4061dc93b
[ "MIT" ]
null
null
null
binding.gyp
Himujjal/tree-sitter-sveltealt
d16c4b74df8a8e8cfb13a94ca2eb75f4061dc93b
[ "MIT" ]
null
null
null
binding.gyp
Himujjal/tree-sitter-sveltealt
d16c4b74df8a8e8cfb13a94ca2eb75f4061dc93b
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "tree_sitter_sveltealt_binding", "include_dirs": [ "<!(node -e \"require('nan')\")", "src" ], "sources": [ "src/parser.c", "src/binding.cc" ], "cflags_c": [ "-std=c99", ] } ] }
15.947368
53
0.39604
f836c1ad8b37af676cfaa0df9ef6edd9953d2e7a
1,684
py
Python
bot/power_device.py
KapJI/moonraker-telegram-bot
fce9b572cd3b10bf3d445cf677d0ce8b83155d24
[ "CC0-1.0" ]
null
null
null
bot/power_device.py
KapJI/moonraker-telegram-bot
fce9b572cd3b10bf3d445cf677d0ce8b83155d24
[ "CC0-1.0" ]
null
null
null
bot/power_device.py
KapJI/moonraker-telegram-bot
fce9b572cd3b10bf3d445cf677d0ce8b83155d24
[ "CC0-1.0" ]
null
null
null
import logging import threading import requests logger = logging.getLogger(__name__) class PowerDevice(object): def __new__(cls, name: str, moonraker_host: str): if name: return super(PowerDevice, cls).__new__(cls) else: return None def __init__(self, name: str, moon...
31.773585
127
0.584917
c2a3ec07dfbfd8dcdb23a915c2fb51f470de3b18
2,239
py
Python
testing/watchdog/examplefiles/dylansawesome/app/views.py
zinglax/SPA-BoilerPlate2017
b3a22a828546d97589093a7e2abd2a37a7785959
[ "MIT" ]
1
2017-03-18T15:34:26.000Z
2017-03-18T15:34:26.000Z
testing/watchdog/examplefiles/dylansawesome/app/views.py
zinglax/SPA-BoilerPlate2017
b3a22a828546d97589093a7e2abd2a37a7785959
[ "MIT" ]
null
null
null
testing/watchdog/examplefiles/dylansawesome/app/views.py
zinglax/SPA-BoilerPlate2017
b3a22a828546d97589093a7e2abd2a37a7785959
[ "MIT" ]
null
null
null
import os from app import app from flask import render_template, request, jsonify, url_for, flash, redirect import json import jinja2 script_args = {} @app.route('/', methods=['GET', 'POST']) def page_index(): page_args = script_args.copy() # AJAX Action Occurs. if request.method == 'POST' and 'action'...
28.705128
80
0.629299
97c5287b9bbb567f4dfecf6d13579e5990aa82fc
3,649
py
Python
web_server/parsers/WIP/RIA.py
yutkin/News-Aggregator
b35b2cdd873121aab03cb14c191b2a3b4d3d5180
[ "MIT" ]
17
2017-05-09T13:03:21.000Z
2022-01-08T18:32:01.000Z
web_server/parsers/WIP/RIA.py
uav-profile/News-Aggregator
b35b2cdd873121aab03cb14c191b2a3b4d3d5180
[ "MIT" ]
null
null
null
web_server/parsers/WIP/RIA.py
uav-profile/News-Aggregator
b35b2cdd873121aab03cb14c191b2a3b4d3d5180
[ "MIT" ]
6
2018-04-23T03:28:33.000Z
2021-04-02T06:29:23.000Z
import urllib import urllib.request import re from datetime import datetime from bs4 import BeautifulSoup from pprint import pprint from BaseParser import BaseParser class RIA(BaseParser): """docstring for RIA""" def __init__(self): super(RIA, self).__init__( 'RIA', 'https://ria.ru',...
36.49
80
0.479035
13ceaac1e1fa7562c7ca27aa2f3ed706d7a653c2
9,476
py
Python
colour/models/cie_lab.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/models/cie_lab.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/models/cie_lab.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
""" CIE L*a*b* Colourspace ====================== Defines the *CIE L\\*a\\*b\\** colourspace transformations: - :func:`colour.XYZ_to_Lab` - :func:`colour.Lab_to_XYZ` - :func:`colour.Lab_to_LCHab` - :func:`colour.LCHab_to_Lab` References ---------- - :cite:`CIETC1-482004m` : CIE TC 1-48. (2004). CIE 1976 un...
31.905724
78
0.372837
1cfe0fad76ab6e7281946bb8830a350c7f9a2b33
1,047
py
Python
blast_parser_grep_high_evalues.py
chnops/code
cd48843ed7b7239fdb85bff66f02510a7c7899b5
[ "MIT" ]
null
null
null
blast_parser_grep_high_evalues.py
chnops/code
cd48843ed7b7239fdb85bff66f02510a7c7899b5
[ "MIT" ]
null
null
null
blast_parser_grep_high_evalues.py
chnops/code
cd48843ed7b7239fdb85bff66f02510a7c7899b5
[ "MIT" ]
1
2020-10-19T02:22:06.000Z
2020-10-19T02:22:06.000Z
#! /usr/bin/env python #Parser for blast -m 8 or blast+ -m 6 and 7 output file with description inserted import sys ##Query id,Subject id,Description, % identity, alignment length,mismatches,gap openings,q. start,q. end,s. start,s. end,e-value,bit score dict1={} for line in open(sys.argv[1]): data = line.spl...
36.103448
137
0.567335
41c13dc6e8dac3bf4c33b2f57ef32472bc8d8795
2,193
py
Python
Zhihu/dir.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
1
2018-02-26T15:45:17.000Z
2018-02-26T15:45:17.000Z
Zhihu/dir.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
null
null
null
Zhihu/dir.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
null
null
null
from numpy import * import os import operator def img2vector(filename): returnVect = zeros((1, 1024)) fr = open(filename) for i in range(32): lineStr = fr.readline() for j in range(32): returnVect[0, 32*i+j] = int(lineStr[j]) return returnVect def classify(inX, dataSet, lab...
39.872727
107
0.653443
c22477c87be326981e07496b9a5b69b0c2e240c0
2,037
py
Python
tests/unit/python/__template__.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
69
2019-12-03T17:54:33.000Z
2022-03-13T07:05:23.000Z
tests/unit/python/__template__.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
125
2020-02-13T15:11:28.000Z
2022-03-29T14:42:36.000Z
tests/unit/python/__template__.py
DDC-NDRS/fledge-iot_fledge
27a5e66a55daaab1aca14ce6e66f9f1e6efaef51
[ "Apache-2.0" ]
24
2019-12-27T07:48:45.000Z
2022-03-13T07:05:28.000Z
# -*- coding: utf-8 -*- # FLEDGE_BEGIN # See: http://fledge-iot.readthedocs.io/ # FLEDGE_END """Example of docstring of test purpose""" # package imports, utilities that will be used for running this module., e.g: import pytest from unittest import mock from unittest.mock import patch # Fledge imports # from fledge...
36.375
139
0.694158
dd835a698819ae141c0b549bfa25908887906c01
11,008
py
Python
aea/cli/publish.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
aea/cli/publish.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
aea/cli/publish.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
33.156627
189
0.667605
64eee8595ad2902c7c4925b3206048d3c627550e
1,966
py
Python
katie/SVD_Code_OLD/coviddataanalysis/nyhialfl.py
S-I-SVD/Randomized-SVD
82108238a53c70938af87417f98aadc7f74b2a87
[ "MIT" ]
1
2021-12-09T13:34:44.000Z
2021-12-09T13:34:44.000Z
katie/SVD_Code_OLD/coviddataanalysis/nyhialfl.py
S-I-SVD/Randomized-SVD
82108238a53c70938af87417f98aadc7f74b2a87
[ "MIT" ]
null
null
null
katie/SVD_Code_OLD/coviddataanalysis/nyhialfl.py
S-I-SVD/Randomized-SVD
82108238a53c70938af87417f98aadc7f74b2a87
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 6 19:03:01 2020 @author: katie """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 6 16:24:08 2020 @author: katie """ import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import numpy as np import os...
28.492754
93
0.669888
841b830c3b1db7ca077549f44bb42d779b80653c
171,957
py
Python
src/transformers/__init__.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
3
2022-01-15T08:06:07.000Z
2022-03-10T07:13:18.000Z
src/transformers/__init__.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
null
null
null
src/transformers/__init__.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
38.834011
119
0.658921
73f1af0e66018590cf308cee1b23b3a0ad4f86b3
494
py
Python
tests/unit/test_nba_teams.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
1
2020-03-08T20:17:39.000Z
2020-03-08T20:17:39.000Z
tests/unit/test_nba_teams.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
tests/unit/test_nba_teams.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
1
2020-07-08T16:05:25.000Z
2020-07-08T16:05:25.000Z
from flexmock import flexmock from sportsreference.nba.schedule import Schedule from sportsreference.nba.teams import Team class TestNBATeams: def test_nba_schedule_returns_schedule(self, *args, **kwargs): flexmock(Team) \ .should_receive('_parse_team_data') \ .and_return(None) ...
27.444444
66
0.65587
5b0d01193f1da18faf4fdf6c077b1af43ff15dba
902
py
Python
glance/notifier/notify_noop.py
citrix-openstack-build/glance
5048ceea989d93c8819d2dc6377803fc74620d14
[ "Apache-2.0" ]
1
2018-05-03T03:52:39.000Z
2018-05-03T03:52:39.000Z
glance/notifier/notify_noop.py
citrix-openstack-build/glance
5048ceea989d93c8819d2dc6377803fc74620d14
[ "Apache-2.0" ]
null
null
null
glance/notifier/notify_noop.py
citrix-openstack-build/glance
5048ceea989d93c8819d2dc6377803fc74620d14
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011, OpenStack LLC. # # 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 #...
28.1875
78
0.697339
a5db863db4017738bee7ad885c75edeba4e779ea
2,783
py
Python
spidermon/contrib/stats/counters.py
zanachka/spidermon
d2840b6bbb6ba6d8a0ef633deac66588d243e615
[ "BSD-3-Clause" ]
405
2019-01-10T13:06:09.000Z
2022-03-30T20:14:58.000Z
spidermon/contrib/stats/counters.py
zanachka/spidermon
d2840b6bbb6ba6d8a0ef633deac66588d243e615
[ "BSD-3-Clause" ]
226
2019-01-04T13:31:17.000Z
2022-03-28T21:06:10.000Z
spidermon/contrib/stats/counters.py
zanachka/spidermon
d2840b6bbb6ba6d8a0ef633deac66588d243e615
[ "BSD-3-Clause" ]
87
2019-01-07T10:23:26.000Z
2022-02-22T04:38:04.000Z
import collections class PercentCounterBase: def __init__(self, total=0): self._total = total @property def count(self): raise NotImplementedError @property def percent(self): if self._total <= 0 or self.count <= 0: return 0 else: return fl...
24.2
78
0.613008
af045923a7a4b90b07e016c00428e2fbfbba0468
339
py
Python
fireup/__init__.py
kashif/firedup
9e6605dbb6f564c8e1e35121681581e103c476b5
[ "MIT" ]
121
2019-01-18T19:32:04.000Z
2022-02-28T13:07:40.000Z
fireup/__init__.py
arnaudvl/firedup
9629fffc8af7d9607025d82ad757a67baa805285
[ "MIT" ]
11
2019-02-19T12:35:11.000Z
2020-08-03T04:08:05.000Z
fireup/__init__.py
arnaudvl/firedup
9629fffc8af7d9607025d82ad757a67baa805285
[ "MIT" ]
27
2019-01-19T14:16:05.000Z
2021-12-30T22:19:09.000Z
# Algorithms from fireup.algos.ddpg.ddpg import ddpg from fireup.algos.ppo.ppo import ppo from fireup.algos.sac.sac import sac from fireup.algos.td3.td3 import td3 from fireup.algos.trpo.trpo import trpo from fireup.algos.vpg.vpg import vpg from fireup.algos.dqn.dqn import dqn # Loggers from fireup.utils.logx import L...
28.25
49
0.811209
9176abae1de424faba48ca68ef1e645c159c3607
8,760
py
Python
arjuna/core/error.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
null
null
null
arjuna/core/error.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
null
null
null
arjuna/core/error.py
bhargavkumar-65/arjuna
400dfd598096199e89d64eb6e8d2932892d37f6d
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2021 Rahul Verma # Website: www.RahulVerma.net # 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...
35.465587
182
0.665525
64f76736343282fe38084973c26034acaadb4017
1,125
py
Python
examples/ex1_ODE.py
Foxp1/chebyspectral
4456e534304f2dafd74a252d74a9fd5f185fd1cf
[ "MIT" ]
null
null
null
examples/ex1_ODE.py
Foxp1/chebyspectral
4456e534304f2dafd74a252d74a9fd5f185fd1cf
[ "MIT" ]
null
null
null
examples/ex1_ODE.py
Foxp1/chebyspectral
4456e534304f2dafd74a252d74a9fd5f185fd1cf
[ "MIT" ]
null
null
null
import sys sys.path.append('..') import numpy as np import matplotlib.pyplot as plt from chebyspectral import * deg = 16 # degree of Chebyshev polynomial # Source term C = -4*np.exp(1)/(1+np.exp(2)) f = lambda xq: np.exp(xq) + C fHat = chebfit(f, deg) # Boundary conditions bc_value_1 = 0 bc_derivative_order_1 = 0 ...
24.456522
83
0.705778
ba3e60697087f34c303a11ac200f6ef3d6d8d6db
2,523
py
Python
models/utils.py
kilsenp/person-multi-task-dataset
2f186cafa3db2c77d8c6c4309b2cadc13d4f92ab
[ "MIT" ]
4
2020-10-08T03:31:36.000Z
2021-03-06T08:06:23.000Z
models/utils.py
kilianyp/person-multi-task-dataset
2f186cafa3db2c77d8c6c4309b2cadc13d4f92ab
[ "MIT" ]
7
2021-06-08T20:55:10.000Z
2022-02-10T00:38:32.000Z
models/utils.py
kilsenp/person-multi-task-dataset
2f186cafa3db2c77d8c6c4309b2cadc13d4f92ab
[ "MIT" ]
null
null
null
import torch from builders import model_builder import torch.nn as nn class InferenceModel(object): def __init__(self, model_path, augmentation, cuda=True): raise NotImplementedError self.cuda = cuda args = load_args(model_path) augment_fn, num_augmentations = augmentation_fn_build...
30.39759
77
0.615141
03b13e6b0f1876bac6f488a685395c59344ff576
14,682
py
Python
xslack/xslack.py
Lilleengen/xSlack
05fa204276816b707f970f893349d34ef1dd8f6c
[ "MIT" ]
1
2016-11-26T12:57:46.000Z
2016-11-26T12:57:46.000Z
xslack/xslack.py
Lilleengen/xSlack
05fa204276816b707f970f893349d34ef1dd8f6c
[ "MIT" ]
null
null
null
xslack/xslack.py
Lilleengen/xSlack
05fa204276816b707f970f893349d34ef1dd8f6c
[ "MIT" ]
null
null
null
import json import re import threading import time import urllib import requests from slackclient import SlackClient config = dict() c = threading.Condition() threads = dict() shared_files = dict() def run(token, other_tokens, channel_names): print(other_tokens) print(channel_names) members = dict() ...
61.689076
126
0.387141
2839143a4def11458504d877324b5ef866e48d3e
5,036
py
Python
batchup/datasets/cifar100.py
Britefury/batchup
eba03676d9707133a67184200c10d9c5b575c6a5
[ "MIT" ]
89
2017-04-19T12:13:32.000Z
2021-08-31T12:42:16.000Z
batchup/datasets/cifar100.py
Britefury/batchup
eba03676d9707133a67184200c10d9c5b575c6a5
[ "MIT" ]
4
2017-04-28T03:11:43.000Z
2017-11-29T15:27:28.000Z
batchup/datasets/cifar100.py
Britefury/batchup
eba03676d9707133a67184200c10d9c5b575c6a5
[ "MIT" ]
10
2017-04-19T18:56:55.000Z
2021-04-13T04:35:55.000Z
import os import sys import shutil import tarfile import pickle import numpy as np import tables from .. import config from ..image.utils import ImageArrayUInt8ToFloat32 from . import dataset # Pickle encoding parameters depend on Python version _PICKLE_ENC = {} if sys.version_info[0] == 2 else {'encoding': 'latin1'...
39.968254
77
0.654289
e232c3d0d6f4dd0d426df8504c6e9184882a2277
3,060
py
Python
pytorch_toolkit/face_antispoofing/demo_tools/ie_tools.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
3
2020-12-29T02:47:32.000Z
2021-11-12T08:12:51.000Z
pytorch_toolkit/face_antispoofing/demo_tools/ie_tools.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
9
2021-09-08T03:12:59.000Z
2022-03-12T00:57:19.000Z
pytorch_toolkit/face_antispoofing/demo_tools/ie_tools.py
abhatikar/training_extensions
1c96e0f5f39688f8b79735e8dfa90646afc3d5e6
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
41.351351
119
0.701961
8587e842d9dbc10835c15638ad7eb7457d62e91b
16,999
py
Python
tests/event_test.py
djotaku/matrix-nio
fa5d887c76e51034c81197523cd505d3b2df1b3e
[ "Apache-2.0" ]
1
2021-01-05T19:45:40.000Z
2021-01-05T19:45:40.000Z
tests/event_test.py
djotaku/matrix-nio
fa5d887c76e51034c81197523cd505d3b2df1b3e
[ "Apache-2.0" ]
null
null
null
tests/event_test.py
djotaku/matrix-nio
fa5d887c76e51034c81197523cd505d3b2df1b3e
[ "Apache-2.0" ]
1
2020-06-24T01:41:44.000Z
2020-06-24T01:41:44.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json import pdb from nio.events import ( BadEvent, OlmEvent, PowerLevelsEvent, RedactedEvent, RedactionEvent, RoomAliasEvent, RoomCreateEvent, RoomGuestAccessEvent, RoomHistoryVisibilityEvent, RoomJoinRules...
36.556989
88
0.664921
15e432bd32fe0dc38e5923de5bcf6095c7d93732
2,706
py
Python
respx/transports.py
shadchin/respx
3981b5b4e3301bb6099bed8b45ecbdd8c5aec89f
[ "BSD-3-Clause" ]
297
2019-11-18T09:56:16.000Z
2022-03-31T12:33:56.000Z
respx/transports.py
shadchin/respx
3981b5b4e3301bb6099bed8b45ecbdd8c5aec89f
[ "BSD-3-Clause" ]
161
2019-11-16T11:39:58.000Z
2022-03-16T15:07:30.000Z
respx/transports.py
shadchin/respx
3981b5b4e3301bb6099bed8b45ecbdd8c5aec89f
[ "BSD-3-Clause" ]
30
2019-11-18T20:45:57.000Z
2021-12-29T13:34:37.000Z
from types import TracebackType from typing import ( TYPE_CHECKING, Any, Awaitable, Callable, List, Optional, Type, Union, cast, ) from warnings import warn import httpx from httpx import AsyncBaseTransport, BaseTransport from .models import PassThrough if TYPE_CHECKING: from ...
28.787234
83
0.624908
4c78bac5ffa8cf5a5803a39f789c86aaab0278d3
2,653
py
Python
pspnet.py
KruskalLin/Segmentation
ba097d1d20eeba6f8d1851709aa4daad78865c1b
[ "MIT" ]
1
2021-04-27T05:22:31.000Z
2021-04-27T05:22:31.000Z
pspnet.py
KruskalLin/Segmentation
ba097d1d20eeba6f8d1851709aa4daad78865c1b
[ "MIT" ]
null
null
null
pspnet.py
KruskalLin/Segmentation
ba097d1d20eeba6f8d1851709aa4daad78865c1b
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F import extractors class PSPModule(nn.Module): def __init__(self, features, out_features=1024, sizes=(1, 2, 3, 6)): super().__init__() self.stages = [] self.stages = nn.ModuleList([self._make_stage(features, size) for s...
31.963855
114
0.592914
adf31351884d9c28889566105f35ce88772cc56c
2,991
py
Python
tardis/plasma/properties/continuum_processes.py
subhayu99/tardis
50f13ba63499d5371af790025c659483ef52bfd1
[ "BSD-3-Clause" ]
1
2021-06-24T17:16:53.000Z
2021-06-24T17:16:53.000Z
tardis/plasma/properties/continuum_processes.py
dhiganthrao/tardis
7792e722f929d661244a819332a031cee7d1b3bf
[ "BSD-3-Clause" ]
null
null
null
tardis/plasma/properties/continuum_processes.py
dhiganthrao/tardis
7792e722f929d661244a819332a031cee7d1b3bf
[ "BSD-3-Clause" ]
null
null
null
import logging import numpy as np import pandas as pd from numba import prange, njit from astropy import constants as const from tardis.plasma.properties.base import ProcessingPlasmaProperty __all__ = ["SpontRecombRateCoeff"] logger = logging.getLogger(__name__) njit_dict = {"fastmath": False, "parallel": False} ...
29.323529
75
0.645938
0755941a21294dd9c82fe44dd3a95b18ddebc264
4,868
py
Python
allennlp/data/dataset_readers/dataset_reader.py
CuriousKomodo/allennlp
38f74bfb56326137a67e9442346425e639614605
[ "Apache-2.0" ]
null
null
null
allennlp/data/dataset_readers/dataset_reader.py
CuriousKomodo/allennlp
38f74bfb56326137a67e9442346425e639614605
[ "Apache-2.0" ]
null
null
null
allennlp/data/dataset_readers/dataset_reader.py
CuriousKomodo/allennlp
38f74bfb56326137a67e9442346425e639614605
[ "Apache-2.0" ]
null
null
null
from typing import Iterable, Iterator, Callable import logging from allennlp.data.instance import Instance from allennlp.common import Tqdm from allennlp.common.checks import ConfigurationError from allennlp.common.registrable import Registrable logger = logging.getLogger(__name__) # pylint: disable=invalid-name cl...
45.495327
99
0.661463
76e5af815fc87cf5b4d549b43a2d7049aa7b0cf3
2,400
py
Python
flask_admin/contrib/mongoengine/fields.py
UUDigitalHumanitieslab/flask-admin
8d7b0a50f2547b6549dd2a3ee6fdab9de3798b76
[ "BSD-3-Clause" ]
2
2015-01-04T15:56:55.000Z
2015-06-23T19:55:07.000Z
flask_admin/contrib/mongoengine/fields.py
xelez/flask-admin
a671952f498d9a355d15ec332d4e01e621bf1e6d
[ "BSD-3-Clause" ]
null
null
null
flask_admin/contrib/mongoengine/fields.py
xelez/flask-admin
a671952f498d9a355d15ec332d4e01e621bf1e6d
[ "BSD-3-Clause" ]
null
null
null
from werkzeug.datastructures import FileStorage from wtforms import fields try: from wtforms.fields.core import _unset_value as unset_value except ImportError: from wtforms.utils import unset_value from . import widgets from flask.ext.admin.model.fields import InlineFormField def is_empty(file_object): ...
27.586207
85
0.625833
2e8b7f8c147b5ca8886eb1d27fbcad7fdffb3ec9
8,648
py
Python
test/unit/test_mvt_manager.py
neogeo-technologies/djangorestframework-mvt
138a09f092c04247f3f9dfc4546e5dad5d04ccc6
[ "BSD-3-Clause" ]
43
2019-06-17T19:18:24.000Z
2022-03-09T19:52:07.000Z
test/unit/test_mvt_manager.py
neogeo-technologies/djangorestframework-mvt
138a09f092c04247f3f9dfc4546e5dad5d04ccc6
[ "BSD-3-Clause" ]
15
2019-12-18T14:27:43.000Z
2021-05-05T13:01:11.000Z
test/unit/test_mvt_manager.py
neogeo-technologies/djangorestframework-mvt
138a09f092c04247f3f9dfc4546e5dad5d04ccc6
[ "BSD-3-Clause" ]
10
2020-01-13T11:37:17.000Z
2022-02-07T12:58:51.000Z
from django.core.exceptions import FieldError from rest_framework_mvt.managers import MVTManager from rest_framework.serializers import ValidationError from mock import patch, MagicMock import pytest @pytest.fixture def mvt_manager(): mvt_manager = MVTManager(geo_col="jazzy_geo") meta = MagicMock(db_table="te...
39.852535
150
0.690796
7a3755e53a9f13b6314a8dca1b28613ad81236a0
24,813
py
Python
zerver/webhooks/bitbucket2/tests.py
shreyanshdwivedi/zulip
fe39ad04e191c4d0d4a4b54fd94529a9df9f72ae
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/bitbucket2/tests.py
shreyanshdwivedi/zulip
fe39ad04e191c4d0d4a4b54fd94529a9df9f72ae
[ "Apache-2.0" ]
7
2020-09-06T14:54:30.000Z
2022-02-10T18:51:14.000Z
zerver/webhooks/bitbucket2/tests.py
b-randall/SpecialEdd
014fd2b220f52762848592cab90c493d1c77682d
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
# -*- coding: utf-8 -*- from typing import Optional from mock import MagicMock, patch from zerver.lib.test_classes import WebhookTestCase class Bitbucket2HookTests(WebhookTestCase): STREAM_NAME = 'bitbucket2' URL_TEMPLATE = "/api/v1/external/bitbucket2?stream={stream}&api_key={api_key}" FIXTURE_DIR_NAME ...
74.290419
480
0.750615
ad9a4929e056025f566448d9ef7de8f698786173
4,891
py
Python
misc/hybrid_CNN_legacy.py
genglinliu/Hybrid-Convolution-Shortfuse
a3d691d64c6bf879e25f509c773e4d9ab9392da1
[ "MIT" ]
1
2021-12-21T22:32:02.000Z
2021-12-21T22:32:02.000Z
misc/hybrid_CNN_legacy.py
genglinliu/celebA
a3d691d64c6bf879e25f509c773e4d9ab9392da1
[ "MIT" ]
null
null
null
misc/hybrid_CNN_legacy.py
genglinliu/celebA
a3d691d64c6bf879e25f509c773e4d9ab9392da1
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F """ [deprecated - only process covariate as scalar values and processes images one by one] You got a d-dim covaraite vector as input K_l = W_0 + W_1 * S_l S_0 = male (1) S_1 = female (0) for i, (images, labels) in enumerate(train_loader): label...
31.75974
92
0.579841
b66dbfb826dabbbfcd7bef668f8ef8a24a00eb19
2,538
py
Python
Program/thread_database.py
edgecomp/academic-ranking
2cb0b9117e3e7abcb42f1ae30349e80169898535
[ "MIT" ]
null
null
null
Program/thread_database.py
edgecomp/academic-ranking
2cb0b9117e3e7abcb42f1ae30349e80169898535
[ "MIT" ]
null
null
null
Program/thread_database.py
edgecomp/academic-ranking
2cb0b9117e3e7abcb42f1ae30349e80169898535
[ "MIT" ]
1
2020-02-23T02:32:28.000Z
2020-02-23T02:32:28.000Z
import psycopg2 from psycopg2.pool import ThreadedConnectionPool link_base_dblp = "https://dblp.org/search/venue/api?q=" DSN = "host='localhost' dbname='rankedcategories' user='lucas'" tcp = ThreadedConnectionPool(1, 18, DSN) # Threaded version of the db class class ThreadDb: def __init__(self): self....
37.323529
115
0.604807
8d92a3098dcc6e026a15b6b0af7dc11b04e7b14f
9,426
py
Python
paddleseg/models/losses/cross_entropy_loss.py
simuler/ESPNet
618768f494edbd7fa82e51b0b3d88244e19370ee
[ "Apache-2.0" ]
1
2022-03-28T14:10:39.000Z
2022-03-28T14:10:39.000Z
paddleseg/models/losses/cross_entropy_loss.py
simuler/ESPNet
618768f494edbd7fa82e51b0b3d88244e19370ee
[ "Apache-2.0" ]
null
null
null
paddleseg/models/losses/cross_entropy_loss.py
simuler/ESPNet
618768f494edbd7fa82e51b0b3d88244e19370ee
[ "Apache-2.0" ]
1
2021-12-03T08:55:13.000Z
2021-12-03T08:55:13.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
42.651584
102
0.58763
3e3d918e901cc7bdbc33ce5061a27e495a1de415
672
py
Python
bh_modules/foldbracket.py
jfcherng-sublime/ST-BracketHighlighter
223ffd4ceafd58686503e3328934c039e959a88c
[ "Unlicense", "MIT" ]
1,047
2015-01-01T16:11:42.000Z
2022-03-12T08:29:13.000Z
bh_modules/foldbracket.py
jfcherng-sublime/ST-BracketHighlighter
223ffd4ceafd58686503e3328934c039e959a88c
[ "Unlicense", "MIT" ]
374
2015-01-07T02:47:55.000Z
2022-03-24T12:59:09.000Z
bh_modules/foldbracket.py
jfcherng-sublime/ST-BracketHighlighter
223ffd4ceafd58686503e3328934c039e959a88c
[ "Unlicense", "MIT" ]
223
2015-01-11T04:21:06.000Z
2021-10-05T15:00:32.000Z
""" BracketHighlighter. Copyright (c) 2013 - 2016 Isaac Muse <isaacmuse@gmail.com> License: MIT """ from BracketHighlighter import bh_plugin import sublime class FoldBrackets(bh_plugin.BracketPluginCommand): """Fold bracket plugin.""" def run(self, edit, name): """Fold the content between the bracke...
23.172414
65
0.65625
6c7191dbf910cb9131843f77b6efb0a3f1b90fbd
1,376
py
Python
app/jobs.py
averycrespi/statice
bd6158595106df90fcabd8ac16e899bf58db1a3b
[ "MIT" ]
null
null
null
app/jobs.py
averycrespi/statice
bd6158595106df90fcabd8ac16e899bf58db1a3b
[ "MIT" ]
40
2020-01-23T01:45:20.000Z
2020-03-24T18:48:25.000Z
app/jobs.py
averycrespi/statice
bd6158595106df90fcabd8ac16e899bf58db1a3b
[ "MIT" ]
null
null
null
from datetime import datetime import http.client import requests from requests.exceptions import ( ConnectionError, RequestException, Timeout, TooManyRedirects, ) from app import rq from app.models import Response, Status @rq.job def send_request(check, timeout): """Send an HTTP GET request for a...
29.913043
81
0.645349
10a7fbbacfdccf1bb5d3a1bb98258f8eb2f1268a
549
py
Python
gssetting/model/gssetting.py
deresmos/gssetting
6c6a30bc048194930337b3253b14aba65144e06a
[ "MIT" ]
null
null
null
gssetting/model/gssetting.py
deresmos/gssetting
6c6a30bc048194930337b3253b14aba65144e06a
[ "MIT" ]
null
null
null
gssetting/model/gssetting.py
deresmos/gssetting
6c6a30bc048194930337b3253b14aba65144e06a
[ "MIT" ]
null
null
null
from sys import exit from typing import List class GSSetting: headers: List[str] = [] indices: List[int] = [] def __init__(self) -> None: if not (len(self.headers) or len(self.indices)): print("Must set headers or indices of model.") exit(1) @classmethod def is_cl...
20.333333
58
0.57377
b8850cfdfe3bba3a99e8f18cb6ca76a687a0f004
8,045
py
Python
scraper.py
amikar/flickr-scraper
a63787a0ee2b4bfa7add191526c9ff7f01038dc7
[ "Unlicense" ]
2
2018-05-30T13:17:45.000Z
2019-02-04T17:19:17.000Z
scraper.py
amikar/flickr-scraper
a63787a0ee2b4bfa7add191526c9ff7f01038dc7
[ "Unlicense" ]
null
null
null
scraper.py
amikar/flickr-scraper
a63787a0ee2b4bfa7add191526c9ff7f01038dc7
[ "Unlicense" ]
null
null
null
import requests import re from bs4 import BeautifulSoup import urllib2 import string import json import time import threading import os import sqlite3 ''' Get the html using beautifulsoup, not a needed wrapper since its being used only once at the moment. can be erased in the future ''' def get_soup(url,header): ...
36.90367
980
0.740211
0d6a05505e29b0e524d1716eabed99ec27d0421f
409
py
Python
gunicorn_config.py
geocompass/robosat.pink
44d95183322ba68c0728de44a66e50f510bfd919
[ "MIT" ]
31
2019-10-19T04:07:51.000Z
2022-02-25T11:14:04.000Z
gunicorn_config.py
geocompass/robosat.pink
44d95183322ba68c0728de44a66e50f510bfd919
[ "MIT" ]
2
2020-03-13T01:26:15.000Z
2020-10-30T01:59:29.000Z
gunicorn_config.py
geocompass/robosat.pink
44d95183322ba68c0728de44a66e50f510bfd919
[ "MIT" ]
19
2019-10-31T04:52:08.000Z
2022-03-04T06:24:56.000Z
# config.py 教程:https://www.jianshu.com/p/fecf15ad0c9a import os import gevent.monkey gevent.monkey.patch_all() import multiprocessing # debug = True loglevel = 'debug' bind = "0.0.0.0:5000" pidfile = "log/gunicorn.pid" accesslog = "log/access.log" errorlog = "log/debug.log" daemon = True # 启动的进程数 workers = multiproc...
21.526316
53
0.748166
9cb0fa365ff9b97d483fa9e80f7d301466d69d27
1,607
py
Python
library/r1soft_volume.py
vexxhost/ansible-role-r1soft
1cd17f5f3bb37280e790b90b061a3cae5b881a72
[ "Apache-1.1" ]
1
2017-11-02T16:02:34.000Z
2017-11-02T16:02:34.000Z
library/r1soft_volume.py
vexxhost/ansible-role-r1soft
1cd17f5f3bb37280e790b90b061a3cae5b881a72
[ "Apache-1.1" ]
null
null
null
library/r1soft_volume.py
vexxhost/ansible-role-r1soft
1cd17f5f3bb37280e790b90b061a3cae5b881a72
[ "Apache-1.1" ]
2
2021-01-30T04:48:07.000Z
2021-01-31T20:10:35.000Z
#!/usr/bin/python from ansible.module_utils.basic import AnsibleModule from requests.auth import HTTPBasicAuth from zeep import Client from zeep.exceptions import Fault from zeep.transports import Transport def _volume_exists(client, path): volumes = client.service.getVolumes() for vol in volumes: i...
27.237288
77
0.647169
9a401cac9127daed78da8eda43d279990f8a37ae
6,664
py
Python
drf_spectacular/views.py
AlexChalk/drf-spectacular
abff8b315718c380c3a26abef3b8a74a639f9a36
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/views.py
AlexChalk/drf-spectacular
abff8b315718c380c3a26abef3b8a74a639f9a36
[ "BSD-3-Clause" ]
null
null
null
drf_spectacular/views.py
AlexChalk/drf-spectacular
abff8b315718c380c3a26abef3b8a74a639f9a36
[ "BSD-3-Clause" ]
null
null
null
import json from collections import namedtuple from typing import Any, Dict from django.conf import settings from django.utils import translation from django.utils.translation import gettext_lazy as _ from rest_framework.renderers import TemplateHTMLRenderer from rest_framework.response import Response from rest_frame...
39.431953
95
0.684424
76a55c569d1b3f55cbc291a008deb58ff8e1e5ec
3,705
py
Python
test/functional/wallet_keypool_topup.py
pbitmonkey/bitmonkey-debug
f48bab02e88b1fcf445c59380e6fda018d86f462
[ "MIT" ]
null
null
null
test/functional/wallet_keypool_topup.py
pbitmonkey/bitmonkey-debug
f48bab02e88b1fcf445c59380e6fda018d86f462
[ "MIT" ]
null
null
null
test/functional/wallet_keypool_topup.py
pbitmonkey/bitmonkey-debug
f48bab02e88b1fcf445c59380e6fda018d86f462
[ "MIT" ]
1
2020-11-04T06:59:13.000Z
2020-11-04T06:59:13.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The bitmonkey Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test HD Wallet keypool restore function. Two nodes. Node1 is under test. Node0 is providing transact...
42.586207
164
0.659919
91ecdc915ac6137d69216770f5a5dcc36a462c2d
4,106
py
Python
cluster/juju/charms/trusty/kubernetes-master/unit_tests/test_install.py
dnwake/kubernetes_trust
96a313825a7ef88ac37133bd3f7e7523aceae385
[ "Apache-2.0" ]
6
2021-05-01T14:35:57.000Z
2022-03-09T13:31:26.000Z
cluster/juju/charms/trusty/kubernetes-master/unit_tests/test_install.py
dnwake/kubernetes_trust
96a313825a7ef88ac37133bd3f7e7523aceae385
[ "Apache-2.0" ]
1
2016-08-05T22:00:45.000Z
2016-08-05T22:00:45.000Z
cluster/juju/charms/trusty/kubernetes-master/unit_tests/test_install.py
dnwake/kubernetes_trust
96a313825a7ef88ac37133bd3f7e7523aceae385
[ "Apache-2.0" ]
3
2021-05-01T14:36:03.000Z
2022-03-09T13:30:54.000Z
#!/usr/bin/env python # Copyright 2015 The Kubernetes Authors All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
37.669725
80
0.657574
37b6fce6f6d467b70763f4341b50930db92a50f4
1,809
py
Python
src/scripts/extract_scored.py
Clinical-Genomics/CADD-scripts
d5a53004da6f6c8b597174d9ba45ef73ae635855
[ "Unlicense" ]
1
2021-05-11T09:44:29.000Z
2021-05-11T09:44:29.000Z
src/scripts/extract_scored.py
Clinical-Genomics/CADD-scripts
d5a53004da6f6c8b597174d9ba45ef73ae635855
[ "Unlicense" ]
null
null
null
src/scripts/extract_scored.py
Clinical-Genomics/CADD-scripts
d5a53004da6f6c8b597174d9ba45ef73ae635855
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: ASCII -*- import sys, os import pysam from optparse import OptionParser parser = OptionParser() parser.add_option("-p","--path", dest="path", help="Path to scored variants.") parser.add_option("--found_out", dest="found_out", help="Write found variants to file (default 'output.tsv'...
29.177419
130
0.66335
fccc3faa81d4bae5846f7c485f3deb52d37d42e3
1,885
py
Python
aiida/backends/profile.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/profile.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/profile.py
iriberri/aiida_core
c4a1ec5dac92ee62c59d39ca580bde449f3abf73
[ "BSD-2-Clause" ]
1
2018-12-21T11:10:09.000Z
2018-12-21T11:10:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.25
75
0.606897
97eff68a111e8a04c968e50b3ac86b890adddde9
1,885
py
Python
art/tests.py
Fahari/museum
c3368464ea04e426a88b8d2ca4337eb7a773ca31
[ "MIT" ]
null
null
null
art/tests.py
Fahari/museum
c3368464ea04e426a88b8d2ca4337eb7a773ca31
[ "MIT" ]
null
null
null
art/tests.py
Fahari/museum
c3368464ea04e426a88b8d2ca4337eb7a773ca31
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import Photo,Location,Category # Create your tests here. class CategoryTestClass(TestCase): def setUp(self): self.cat= Category(name = 'birds') def test_instance(self): self.assertTrue(isinstance(self.cat,Category)) # Testing save method def test...
33.660714
119
0.666313
a788c76cfa2fa3e309f44ce0760fbc6d84210ca8
81
py
Python
src/babysitter/models/__init__.py
alexm92/babysitter
30f610fe1686c23b2261a9cd7d2f41eaade615b9
[ "MIT" ]
null
null
null
src/babysitter/models/__init__.py
alexm92/babysitter
30f610fe1686c23b2261a9cd7d2f41eaade615b9
[ "MIT" ]
null
null
null
src/babysitter/models/__init__.py
alexm92/babysitter
30f610fe1686c23b2261a9cd7d2f41eaade615b9
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .user import * from .issue import *
16.2
38
0.790123
e32e8d1314c097c07aa1c0f72461d55d40e2a4b7
215
py
Python
src/CallOnce/Enums.py
RobertOlechowski/RR_Utils_Python
e25375638ba765c5f7bab545e63d1fdc9743d4c4
[ "MIT" ]
null
null
null
src/CallOnce/Enums.py
RobertOlechowski/RR_Utils_Python
e25375638ba765c5f7bab545e63d1fdc9743d4c4
[ "MIT" ]
null
null
null
src/CallOnce/Enums.py
RobertOlechowski/RR_Utils_Python
e25375638ba765c5f7bab545e63d1fdc9743d4c4
[ "MIT" ]
null
null
null
from enum import IntEnum class ArgumentsMode(IntEnum): IGNORE = 1 SERIALIZE_AND_HASH = 2 class HashFunction(IntEnum): PYTHON = 1 MD5 = 2 class StorageMode(IntEnum): Memory = 1 Disk = 2
12.647059
29
0.660465
45522705c4a00e5d752d69bf224a09299fdc263e
1,991
py
Python
source/machine_learning/trainModel.py
HuyTu7/face_rating
a7d689c6cab3cee9f445c40c0267525641090c5a
[ "MIT" ]
70
2017-09-22T09:28:33.000Z
2022-03-06T12:06:39.000Z
source/machine_learning/trainModel.py
HuyTu7/face_rating
a7d689c6cab3cee9f445c40c0267525641090c5a
[ "MIT" ]
1
2017-07-08T08:11:57.000Z
2018-07-16T03:04:38.000Z
source/machine_learning/trainModel.py
HuyTu7/face_rating
a7d689c6cab3cee9f445c40c0267525641090c5a
[ "MIT" ]
18
2018-07-11T05:16:08.000Z
2021-09-06T14:41:19.000Z
import argparse import numpy as np import matplotlib.pyplot as plt from sklearn import decomposition from sklearn import linear_model from sklearn.ensemble import RandomForestRegressor from sklearn import svm from sklearn import gaussian_process parser = argparse.ArgumentParser() parser.add_argument('-model', type=st...
31.603175
96
0.762933
11c4a48caf4308268d328747a41e1c796973493e
260
py
Python
test_haystack/core/custom_identifier.py
amir-khakshour/django-haystack
622921f55cda896868b284ff4c7f0413cd2c52ba
[ "BSD-3-Clause" ]
null
null
null
test_haystack/core/custom_identifier.py
amir-khakshour/django-haystack
622921f55cda896868b284ff4c7f0413cd2c52ba
[ "BSD-3-Clause" ]
4
2015-09-25T13:14:49.000Z
2020-04-24T19:56:19.000Z
test_haystack/core/custom_identifier.py
amir-khakshour/django-haystack
622921f55cda896868b284ff4c7f0413cd2c52ba
[ "BSD-3-Clause" ]
1
2016-09-01T14:09:13.000Z
2016-09-01T14:09:13.000Z
# encoding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals def get_identifier_method(key): """ Custom get_identifier method used for testing the setting HAYSTACK_IDENTIFIER_MODULE """ return key
21.666667
82
0.757692
a56793a8e01a3bae33e9c397e66c4e623f009482
16,463
py
Python
frappe/desk/desktop.py
alijasim/frappe
17803d5408d0a0257ab6968acb1a847a582b07ce
[ "MIT" ]
null
null
null
frappe/desk/desktop.py
alijasim/frappe
17803d5408d0a0257ab6968acb1a847a582b07ce
[ "MIT" ]
null
null
null
frappe/desk/desktop.py
alijasim/frappe
17803d5408d0a0257ab6968acb1a847a582b07ce
[ "MIT" ]
null
null
null
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt # Author - Shivam Mishra <shivam@frappe.io> from __future__ import unicode_literals import frappe from json import loads, dumps from frappe import _, DoesNotExistError, ValidationError, _dict from frappe.boot import get...
26.682334
127
0.719371
5f0e8dfc04b8946ba753102fcac5bf7542486a1d
9,842
py
Python
preprocessing/LibriSpeech.py
amari97/sfc-audio
7e919079f163696775cfae049cadcc5f33746c5e
[ "MIT" ]
null
null
null
preprocessing/LibriSpeech.py
amari97/sfc-audio
7e919079f163696775cfae049cadcc5f33746c5e
[ "MIT" ]
null
null
null
preprocessing/LibriSpeech.py
amari97/sfc-audio
7e919079f163696775cfae049cadcc5f33746c5e
[ "MIT" ]
null
null
null
import os from typing import List, Tuple, Union from torch import Tensor import torch from torch.utils.data import Dataset import soundfile as sf import h5py from glob import glob from tqdm import tqdm import json from nltk.tokenize import RegexpTokenizer SAMPLING_RATE_LIBRISPEECH = 16000 LENGTH_LIBRISPEECH=SAMPLING...
38.901186
149
0.567669
4bac92b33d0e8d5c248cf9b70f30fb2c648842c8
2,620
py
Python
tests/test_error.py
timgates42/rest_toolkit
e7f9682dbbdc1ce50b9e2d7d30e80cae68110ec7
[ "BSD-2-Clause" ]
27
2015-01-02T23:52:44.000Z
2018-07-10T04:20:40.000Z
tests/test_error.py
timgates42/rest_toolkit
e7f9682dbbdc1ce50b9e2d7d30e80cae68110ec7
[ "BSD-2-Clause" ]
9
2015-02-06T04:14:20.000Z
2022-03-21T22:18:04.000Z
tests/test_error.py
timgates42/rest_toolkit
e7f9682dbbdc1ce50b9e2d7d30e80cae68110ec7
[ "BSD-2-Clause" ]
8
2015-07-31T13:21:16.000Z
2020-03-29T10:03:04.000Z
from webtest import TestApp from pyramid.config import Configurator def make_app(config): return TestApp(config.make_wsgi_app()) def test_resource_constructor_exception(): config = Configurator() config.include('rest_toolkit') config.scan('resource_error') app = make_app(config) r = app.get(...
28.791209
58
0.675191
f58cf307a0de146f2b4a54c2774a6f38dad5bc01
109,674
py
Python
numpy/core/tests/test_datetime.py
mbkumar/numpy
0645461254a2110438b6df63ef193c1138c306ec
[ "BSD-3-Clause" ]
3
2021-02-06T06:47:30.000Z
2021-08-11T10:05:27.000Z
numpy/core/tests/test_datetime.py
mbkumar/numpy
0645461254a2110438b6df63ef193c1138c306ec
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_datetime.py
mbkumar/numpy
0645461254a2110438b6df63ef193c1138c306ec
[ "BSD-3-Clause" ]
null
null
null
import numpy import numpy as np import datetime import pytest from numpy.testing import ( assert_, assert_equal, assert_raises, assert_warns, suppress_warnings, assert_raises_regex, ) from numpy.compat import pickle # Use pytz to test out various time zones if available try: from pytz import timezone ...
45.507884
101
0.538414
a93fc680bf9d8f9b05ed7862ae2d1435b39a9e8e
376
py
Python
ocpmodels/trainers/__init__.py
Irlirion/ocp
6fb3e794eef31559db990300198eca20f41d8f37
[ "MIT", "BSD-3-Clause" ]
242
2020-10-14T11:10:43.000Z
2022-03-29T07:50:18.000Z
ocpmodels/trainers/__init__.py
Irlirion/ocp
6fb3e794eef31559db990300198eca20f41d8f37
[ "MIT", "BSD-3-Clause" ]
100
2020-10-13T23:27:04.000Z
2022-03-23T16:50:26.000Z
ocpmodels/trainers/__init__.py
Irlirion/ocp
6fb3e794eef31559db990300198eca20f41d8f37
[ "MIT", "BSD-3-Clause" ]
86
2020-10-15T05:56:28.000Z
2022-03-16T16:11:45.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. __all__ = [ "BaseTrainer", "ForcesTrainer", "EnergyTrainer", ] from .base_trainer import BaseTrainer from .energy_trainer import ...
25.066667
65
0.757979
8005cfb1ab0caaeec62ec6984bec758a2a69ca11
756
py
Python
simulation/sim.py
raad1masum/ParrotNAV
09c1a31453da5aa4c6a572bdaa5e2b06b6dc5f5c
[ "MIT" ]
1
2020-06-08T20:10:13.000Z
2020-06-08T20:10:13.000Z
simulation/sim.py
raad1masum/ParrotNAV
09c1a31453da5aa4c6a572bdaa5e2b06b6dc5f5c
[ "MIT" ]
null
null
null
simulation/sim.py
raad1masum/ParrotNAV
09c1a31453da5aa4c6a572bdaa5e2b06b6dc5f5c
[ "MIT" ]
null
null
null
from selenium import webdriver from time import sleep from controls import controls DRIVER_LOCATION = './drivers/edgedriver_win64/msedgedriver.exe' driver = webdriver.Edge(DRIVER_LOCATION) driver.get('https://iss-sim.spacex.com/') begin_button = "//*[@id='begin-button']" # get info from HUD def get_info...
22.909091
64
0.746032
32bf3976675381c9f116e4719e534ba7fc7c09b0
726
py
Python
docs/demos/multi-page-example1/app.py
johnkangw/dash-labs
6c34eba81faf1cb0cfd79961e54673326639d13a
[ "MIT" ]
110
2021-04-16T14:41:54.000Z
2022-03-24T22:29:41.000Z
docs/demos/multi-page-example1/app.py
johnkangw/dash-labs
6c34eba81faf1cb0cfd79961e54673326639d13a
[ "MIT" ]
59
2021-04-16T10:42:34.000Z
2022-03-21T18:43:25.000Z
docs/demos/multi-page-example1/app.py
johnkangw/dash-labs
6c34eba81faf1cb0cfd79961e54673326639d13a
[ "MIT" ]
28
2021-04-16T16:26:32.000Z
2022-03-28T17:32:42.000Z
import dash import dash_labs as dl import dash_bootstrap_components as dbc app = dash.Dash( __name__, plugins=[dl.plugins.pages], external_stylesheets=[dbc.themes.BOOTSTRAP] ) navbar = dbc.NavbarSimple( dbc.DropdownMenu( [ dbc.DropdownMenuItem(page["name"], href=page["path"]) ...
22
85
0.632231
68ec6ab1b86308958861c497b2233ee300fd9f62
1,476
py
Python
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/task_agent_queue.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/task_agent_queue.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/task_agent/v4_1/models/task_agent_queue.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
38.842105
96
0.506098
5e113ae8641c3d2b266c50232cea695ddae35f25
4,630
py
Python
nucanvas/nucanvas.py
JacoboSpain/symbolator
a9b24e4d6cf2a5369cd2a4a9604025f1c9e2ecdb
[ "MIT" ]
124
2017-06-07T15:08:26.000Z
2022-03-21T06:10:32.000Z
nucanvas/nucanvas.py
JacoboSpain/symbolator
a9b24e4d6cf2a5369cd2a4a9604025f1c9e2ecdb
[ "MIT" ]
13
2017-12-21T07:18:07.000Z
2022-01-06T15:42:39.000Z
nucanvas/nucanvas.py
JacoboSpain/symbolator
a9b24e4d6cf2a5369cd2a4a9604025f1c9e2ecdb
[ "MIT" ]
33
2018-06-25T07:28:59.000Z
2022-02-16T11:59:39.000Z
# -*- coding: utf-8 -*- # Copyright © 2017 Kevin Thibedeau # Distributed under the terms of the MIT license from __future__ import print_function from shapes import GroupShape, DrawStyle class NuCanvas(GroupShape): '''This is a clone of the Tk canvas subset used by the original Tcl It implements an abstracted...
29.490446
122
0.631749
af42272b02097c2b990c3d943801b0344d68dcc0
5,219
py
Python
litex_boards/targets/linsn_rv901t.py
chmousset/litex-boards
c081177d77f37a4ea6cff150d42a69bd6f0abbc2
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/linsn_rv901t.py
chmousset/litex-boards
c081177d77f37a4ea6cff150d42a69bd6f0abbc2
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/linsn_rv901t.py
chmousset/litex-boards
c081177d77f37a4ea6cff150d42a69bd6f0abbc2
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2019-2020 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from migen import * from litex.build.io import DDROutput from litex_boards.platforms import linsn_rv901t from litex.soc.integration.soc_core...
42.778689
133
0.572907
d85bd687c8e2f1e02956de17e531058bd0966fab
204
py
Python
odoo-13.0/addons/l10n_pt/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
odoo-13.0/addons/l10n_pt/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_pt/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # Copyright (C) 2012 Thinkopen Solutions, Lda. All Rights Reserved # http://www.thinkopensolutions.com.
34
74
0.730392
0f5b81b7ff27faad8e883183428f4b59597f4e25
858
py
Python
referral_system/users/tests/test_drf_views.py
todd-sudo/referral_system
a2220a780e7705f3f235ac5cb99f0b8802925300
[ "MIT" ]
null
null
null
referral_system/users/tests/test_drf_views.py
todd-sudo/referral_system
a2220a780e7705f3f235ac5cb99f0b8802925300
[ "MIT" ]
1
2022-03-24T17:24:11.000Z
2022-03-24T17:24:11.000Z
referral_system/users/tests/test_drf_views.py
todd-sudo/referral_system
a2220a780e7705f3f235ac5cb99f0b8802925300
[ "MIT" ]
null
null
null
import pytest from django.test import RequestFactory from referral_system.users.api.views import UserViewSet from referral_system.users.models import User pytestmark = pytest.mark.django_db class TestUserViewSet: def test_get_queryset(self, user: User, rf: RequestFactory): view = UserViewSet() r...
25.235294
67
0.630536
ab08fa13ba5c2a327065b7ab4beedeed8c7dd107
293
py
Python
cart/urls.py
mmeerrccyy/eltexua_async
a5587317b790796bd072fa116ff7bba268643948
[ "CC0-1.0" ]
null
null
null
cart/urls.py
mmeerrccyy/eltexua_async
a5587317b790796bd072fa116ff7bba268643948
[ "CC0-1.0" ]
1
2021-05-31T22:14:41.000Z
2021-05-31T22:14:41.000Z
cart/urls.py
mmeerrccyy/eltexua_async
a5587317b790796bd072fa116ff7bba268643948
[ "CC0-1.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.CartDetail.as_view(), name='cart_detail'), path('add/<int:product_id>/', views.CartAdd.as_view(), name='cart_add'), path('remove/<int:product_id>/', views.CartRemove.as_view(), name='cart_remove'), ]
32.555556
85
0.68942
cdbb83abf68faae652de7d81c5417098baa1e4fb
19,935
py
Python
install/app_store/tk-framework-qtwidgets/v2.6.6/python/shotgun_fields/shotgun_field_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.6/python/shotgun_fields/shotgun_field_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-framework-qtwidgets/v2.6.6/python/shotgun_fields/shotgun_field_delegate.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# Copyright (c) 2016 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the S...
38.116635
80
0.644545
b1b5061b51a56520eb8a3d66dfcfc605aefc7abd
5,750
py
Python
tests/test_change.py
mattj23/m-notes
1e5b039cd70d87c1665afc4e73c743a79fe7fd4f
[ "MIT" ]
null
null
null
tests/test_change.py
mattj23/m-notes
1e5b039cd70d87c1665afc4e73c743a79fe7fd4f
[ "MIT" ]
1
2021-02-11T06:02:15.000Z
2021-02-11T06:02:15.000Z
tests/test_change.py
mattj23/m-notes
1e5b039cd70d87c1665afc4e73c743a79fe7fd4f
[ "MIT" ]
null
null
null
from copy import deepcopy from typing import Dict import pytest from datetime import datetime as DateTime from mnotes.notes.index import IndexBuilder, GlobalIndices from mnotes.notes.markdown_notes import Note, ID_TIME_FORMAT, NoteBuilder from tests.tools.file_system_mocks import TestFileSystemProvider from tests.tes...
31.593407
82
0.713565
c29faba1e2b96a2628ea3b6d0cf31355fc0010cf
2,780
py
Python
rfd.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
null
null
null
rfd.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
null
null
null
rfd.py
ebraminio/DeltaBot
14d427ca644c4e842f72802a0e07adcaecda7097
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # licensed under CC-Zero: https://creativecommons.org/publicdomain/zero/1.0 import pywikibot import re site = pywikibot.Site('wikidata', 'wikidata') repo = site.data_repository() page = pywikibot.Page(site, 'Wikidata:Requests for deletions') cntDone = 0 cntNotDone = 0 force...
42.769231
128
0.526619
0e5ed14801e703a45e564f269c28a1f8b34016dc
935
py
Python
scripts/rewards/rewards_utils.py
lookfirst/badger-system
8362bcbf00abf51d24e0ba67b1b30c301ca34e40
[ "MIT" ]
null
null
null
scripts/rewards/rewards_utils.py
lookfirst/badger-system
8362bcbf00abf51d24e0ba67b1b30c301ca34e40
[ "MIT" ]
null
null
null
scripts/rewards/rewards_utils.py
lookfirst/badger-system
8362bcbf00abf51d24e0ba67b1b30c301ca34e40
[ "MIT" ]
null
null
null
import time from brownie import * from config.badger_config import badger_config from rich.console import Console from scripts.systems.badger_system import connect_badger from config.rewards_config import rewards_config from assistant.rewards.rewards_assistant import fetch_current_rewards_tree, run_action console = C...
30.16129
86
0.768984
4c7670376346521392937121b74e940ea309a90e
364
py
Python
tele_weather_bot/weather/configuration.py
herzog0/TeleWeatherBot
f6b351930704f50cce129275a9f904e339c7cbfd
[ "MIT" ]
null
null
null
tele_weather_bot/weather/configuration.py
herzog0/TeleWeatherBot
f6b351930704f50cce129275a9f904e339c7cbfd
[ "MIT" ]
null
null
null
tele_weather_bot/weather/configuration.py
herzog0/TeleWeatherBot
f6b351930704f50cce129275a9f904e339c7cbfd
[ "MIT" ]
null
null
null
""" Algumas pequenas mudanças na configuração """ from pyowm.caches.lrucache import LRUCache from pyowm.weatherapi25.weathercoderegistry import WeatherCodeRegistry from pyowm.weatherapi25.configuration25 import * # uso de um cache LRU simples pra tentar reduzir os requests no OWM cache = LRUCache(cache_max_size=50)...
22.75
70
0.807692
fd93a8bd1edc592a2d8dabb4163927723903d439
3,317
py
Python
agents/pathfinder.py
AnupNair08/Genetic-Algorithms
b24534beee99b841655388e7a74e582a02ff895b
[ "MIT" ]
null
null
null
agents/pathfinder.py
AnupNair08/Genetic-Algorithms
b24534beee99b841655388e7a74e582a02ff895b
[ "MIT" ]
null
null
null
agents/pathfinder.py
AnupNair08/Genetic-Algorithms
b24534beee99b841655388e7a74e582a02ff895b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt populationSize = int(input('Enter population size:\n')) generations = 200 # Hyperparameters for mutation and crossover CROSS_RATE = 0.7 MUTATE_RATE = 0.001 # The state space consisting of a 2D grid with start point end point and obstacle class environment(): d...
30.712963
84
0.614712
36adc320365ff3ce80837f057d3eca4cb3e4ec82
1,120
py
Python
azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.129032
93
0.640179
53a15bc66c71182bc2a76a13d69af186bf3512ae
5,556
py
Python
jupyterlab_translate/api.py
goanpeca/jupyterlab-language
5db3231ce3f47fb7cd6a6f7ad5d49acffe5c0173
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_translate/api.py
goanpeca/jupyterlab-language
5db3231ce3f47fb7cd6a6f7ad5d49acffe5c0173
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_translate/api.py
goanpeca/jupyterlab-language
5db3231ce3f47fb7cd6a6f7ad5d49acffe5c0173
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. """ API interface. """ import os import shutil from pathlib import Path from typing import List from typing import Union from .constants import EXTENSIONS_FOLDER from .constants import JUPYTERLAB from .constants import...
28.346939
86
0.685565
c76bd6f2d3f1b43b74a64ba82121f547732bd895
6,574
py
Python
qiling/examples/doogie_8086_crack.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:01.000Z
2021-06-04T14:27:15.000Z
qiling/examples/doogie_8086_crack.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
null
null
null
qiling/examples/doogie_8086_crack.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:09.000Z
2021-06-04T14:27:21.000Z
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # import sys, curses, math, struct, string, time sys.path.append("..") from qiling import * from qiling.const import * from qiling.os.disk import QlDisk from qiling.os.dos.utils import BIN2BCD from struct import pack ...
31.304762
107
0.596897
fea0ab12a344493c6c8f48a36d83ad166b39ad18
856
py
Python
tests/__init__.py
JhonJYJ/Marvel
0f367a0ba00d76090cb6d766b61b0c9c364ff501
[ "MIT" ]
null
null
null
tests/__init__.py
JhonJYJ/Marvel
0f367a0ba00d76090cb6d766b61b0c9c364ff501
[ "MIT" ]
null
null
null
tests/__init__.py
JhonJYJ/Marvel
0f367a0ba00d76090cb6d766b61b0c9c364ff501
[ "MIT" ]
null
null
null
from doctest import DocTestSuite from unittest import TestSuite from unittest import TextTestRunner import arcade def load_tests(loader=None, tests=None, pattern=None): suite = TestSuite() suite.addTests(DocTestSuite('arcade.draw_commands')) suite.addTests(DocTestSuite('arcade.buffered_draw_commands')) ...
32.923077
65
0.766355
ca34f008acf0929efc271561b48547022559811e
391
py
Python
AB_site/wsgi.py
john-fitz/Address_Book
405f21adee592d6fbe6096fbc20403a561fc5be4
[ "Unlicense" ]
null
null
null
AB_site/wsgi.py
john-fitz/Address_Book
405f21adee592d6fbe6096fbc20403a561fc5be4
[ "Unlicense" ]
null
null
null
AB_site/wsgi.py
john-fitz/Address_Book
405f21adee592d6fbe6096fbc20403a561fc5be4
[ "Unlicense" ]
null
null
null
""" WSGI config for AB_site project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
d4513950fe59aa77e90faa1a93fa6a84219f5b19
1,263
py
Python
test_project/frac/app/models.py
jmichalicek/django-fractions
693be84e14ff7ebdf2165692e4a98f2723e9070f
[ "BSD-3-Clause" ]
4
2016-02-25T05:20:23.000Z
2019-06-25T00:34:40.000Z
test_project/frac/app/models.py
jmichalicek/django-fractions
693be84e14ff7ebdf2165692e4a98f2723e9070f
[ "BSD-3-Clause" ]
7
2016-12-28T10:06:30.000Z
2021-12-02T00:44:06.000Z
test_project/frac/app/models.py
jmichalicek/django-fractions
693be84e14ff7ebdf2165692e4a98f2723e9070f
[ "BSD-3-Clause" ]
3
2020-03-12T14:17:59.000Z
2021-11-24T20:31:09.000Z
from django.db import models from djfractions.models import DecimalFractionField class TestModel(models.Model): """ A test model to use for testing custom fields. This technique is based on core django code such as at https://github.com/django/django/blob/stable/1.8.x/tests/field_subclassing/models.py ...
46.777778
99
0.752177
b61e2319643def1f582c3876da23d17c610b24ef
3,096
py
Python
test/functional/mining_getblocktemplate_longpoll.py
MoneyTreeXE/MoneyTreeXE
86966233c9a2172c5400c9ff17326c82b6e7c8f1
[ "MIT" ]
null
null
null
test/functional/mining_getblocktemplate_longpoll.py
MoneyTreeXE/MoneyTreeXE
86966233c9a2172c5400c9ff17326c82b6e7c8f1
[ "MIT" ]
null
null
null
test/functional/mining_getblocktemplate_longpoll.py
MoneyTreeXE/MoneyTreeXE
86966233c9a2172c5400c9ff17326c82b6e7c8f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test longpolling with getblocktemplate.""" from test_framework.test_framework import MoneyTreeXETestFr...
43
112
0.68314
71ef05aab284f800cb717d997fc31df218f296a8
1,124
py
Python
meraki/http/http_call_back.py
bossypants22/python-sdk-test
37701d62dc18c2abb910eb790ab978913adcaf7b
[ "MIT" ]
37
2019-04-24T14:01:33.000Z
2022-01-28T01:37:21.000Z
meraki/http/http_call_back.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
10
2019-07-09T16:35:11.000Z
2021-12-07T03:47:53.000Z
meraki/http/http_call_back.py
ankita66666666/meraki-python-sdk
9894089eb013318243ae48869cc5130eb37f80c0
[ "MIT" ]
17
2019-04-30T23:53:21.000Z
2022-02-07T22:57:44.000Z
# -*- coding: utf-8 -*- """ meraki This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ class HttpCallBack(object): """An interface for the callback to be called before and after the HTTP call for an endpoint is made. This class should not...
30.378378
95
0.606762
f073cf94c27abd32d986f8b86eb1de04f89898e7
2,282
py
Python
PyQt5/Widget/ClipboardDemo.py
zhaokai0402/PyQt5-Study
e6280fdc615e47c947c0902836350db49441e6de
[ "MIT" ]
null
null
null
PyQt5/Widget/ClipboardDemo.py
zhaokai0402/PyQt5-Study
e6280fdc615e47c947c0902836350db49441e6de
[ "MIT" ]
null
null
null
PyQt5/Widget/ClipboardDemo.py
zhaokai0402/PyQt5-Study
e6280fdc615e47c947c0902836350db49441e6de
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys, os, math #pylint: disable=E0602 sys.path.append(os.getcwd()) from importQt import * class Form(QDialog): def __init__(self, parent=None): super(Form, self).__init__(parent) textCopyButton = QPushButton("&Copy Text") textPasteButton = QPushButton("Paste &Text") htmlCopyButt...
32.140845
102
0.745399