hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
d56478987f3e6255c6745deb0d7aee98caccdf0d
4,596
py
Python
tests/test_provider_hashicorp_kubernetes.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_hashicorp_kubernetes.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_hashicorp_kubernetes.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_hashicorp_kubernetes.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:43 UTC) def test_provider_import(): import terrascript.provider.hashicorp.kubernetes def test_resource_import(): from terrascript.resource.hashicorp.kubernetes import kubernetes_api_service f...
34.556391
88
0.811793
d564858ecd96dfb1d257155b64887f14119f4330
201
py
Python
random/booglesort.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
random/booglesort.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
random/booglesort.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
import random arr = [5,2,4,1,6,7,3] arrOrd = arr.sort() while True: rand = random.randint(0, len(arr)) x = arr[-1] arr[-1] = arr[rand] arr[rand] = x if arr == arrOrd: break
18.272727
38
0.537313
d564906e342dd27abd52cfaa270aee57e38214fe
3,142
py
Python
venv/Lib/site-packages/pyrogram/raw/types/payments/validated_requested_info.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/payments/validated_requested_info.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/payments/validated_requested_info.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 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...
36.114943
134
0.633673
d56493fe7bad26847a220fc948f3529591ff6234
2,794
py
Python
contrast/motors/Pmd401Motor.py
alexbjorling/acquisition-framework
4090381344aabca05155612845ba4e4a47455dc3
[ "MIT" ]
null
null
null
contrast/motors/Pmd401Motor.py
alexbjorling/acquisition-framework
4090381344aabca05155612845ba4e4a47455dc3
[ "MIT" ]
2
2018-09-19T06:49:03.000Z
2019-06-28T10:47:37.000Z
contrast/motors/Pmd401Motor.py
alexbjorling/acquisition-framework
4090381344aabca05155612845ba4e4a47455dc3
[ "MIT" ]
null
null
null
""" Provides a ``Motor`` subclass for PiezoLEGS positioners controlled by a Pmd401 controller via a MAX IV Tango device. """ import PyTango import time import math from . import Motor from . import PseudoMotor class Pmd401Motor(Motor): """ Single Pmd401 PiezoLEGS motor axis. """ def __init__(self, d...
29.410526
77
0.633858
d5649db92d44c675e1ae4b6d2d38c0bdfe9e4e26
305
py
Python
graphic_templates/newsletter/graphic_config.py
brmayes/dailygraphics-kit
ec3e4283a764b1bb519fbea67d330684100f9a70
[ "MIT" ]
null
null
null
graphic_templates/newsletter/graphic_config.py
brmayes/dailygraphics-kit
ec3e4283a764b1bb519fbea67d330684100f9a70
[ "MIT" ]
null
null
null
graphic_templates/newsletter/graphic_config.py
brmayes/dailygraphics-kit
ec3e4283a764b1bb519fbea67d330684100f9a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1RaQaVlR1Tm3Mw_EOha_QU1aWrsy9q7KCedvrrb3GS7U' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.819672
d564a0747484cdd59352204ec2601158646eddef
15,049
py
Python
src/olympia/abuse/admin.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
3
2020-03-05T18:17:14.000Z
2020-03-09T01:24:38.000Z
src/olympia/abuse/admin.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/abuse/admin.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-06-04T10:18:59.000Z
2020-06-04T10:18:59.000Z
from collections import OrderedDict from django import forms from django.contrib import admin from django.core.paginator import Paginator from django.db.models import Count, Q, Prefetch from django.template import loader from django.utils.translation import ugettext from rangefilter.filter import ( DateRangeFilte...
36.794621
79
0.620905
d564c8293352fd73c294dbe0f08ff05faba17ef6
55,193
py
Python
dabax/common_tools.py
oasys-kit/dabax
245e82acd0d8223cb3a98d2e0b642077f2e6dd74
[ "MIT" ]
null
null
null
dabax/common_tools.py
oasys-kit/dabax
245e82acd0d8223cb3a98d2e0b642077f2e6dd74
[ "MIT" ]
null
null
null
dabax/common_tools.py
oasys-kit/dabax
245e82acd0d8223cb3a98d2e0b642077f2e6dd74
[ "MIT" ]
null
null
null
import numpy from scipy.optimize import curve_fit # # misc # def atomic_symbols(): return [ 'Vacuum', 'H', 'He', 'Li', 'Be', 'B', 'C', 'N', 'O', 'F', 'Ne', 'Na', 'Mg', 'Al', 'Si', 'P', 'S', 'Cl', 'Ar', 'K', 'Ca', 'Sc', 'Ti', 'V', 'Cr', 'Mn', 'Fe', 'Co', 'Ni', 'Cu', 'Zn', 'Ga', 'Ge...
98.558929
407
0.593862
d565315c3382d0fdf4d5a81126599bb89b3d95d0
2,788
py
Python
Common/Predictors/Linear/LinearPredictor.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/Predictors/Linear/LinearPredictor.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/Predictors/Linear/LinearPredictor.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
from Common.Measures.Time.TimeSpan import TimeSpan from Common.Predictors.AbstractPredictor import AbstractPredictor from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from pandas import DataFrame import numpy as np import matplotlib.pyplot as plt class LinearPredic...
42.242424
124
0.670732
d56536d27e9f0992f30f8c4421177509cf845f29
184
py
Python
myCodeSamples.py
Enzo-ltz/BachelorDIM-Lectures-Algorithms-2020
4aeb6cf0e1ed32052498f98647160be343f6628a
[ "MIT" ]
null
null
null
myCodeSamples.py
Enzo-ltz/BachelorDIM-Lectures-Algorithms-2020
4aeb6cf0e1ed32052498f98647160be343f6628a
[ "MIT" ]
null
null
null
myCodeSamples.py
Enzo-ltz/BachelorDIM-Lectures-Algorithms-2020
4aeb6cf0e1ed32052498f98647160be343f6628a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Sep 15 15:17:43 2020 @author: runner """ def my_addition(a, b): return a+b print('10+2=12 ?',my_addition(10,2))
15.333333
36
0.61413
d565528c5530c984d139540df73655c89848a029
5,807
py
Python
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/macUtils.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
2
2019-05-24T18:19:18.000Z
2020-09-17T10:23:13.000Z
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/macUtils.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
9
2019-06-15T21:31:27.000Z
2021-05-08T18:55:51.000Z
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/macUtils.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
"""ttLib.macUtils.py -- Various Mac-specific stuff.""" from __future__ import print_function, division, absolute_import from fontTools.misc.py23 import * import sys import os if sys.platform not in ("mac", "darwin"): raise ImportError("This module is Mac-only!") try: from Carbon import Res except ImportError: impor...
28.605911
88
0.688652
d5655ff797abedc6a3e9c6577647bad04a866c48
1,045
py
Python
taf/testlib/dev_switch_lxc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
taf/testlib/dev_switch_lxc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
taf/testlib/dev_switch_lxc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
# Copyright (c) 2016 - 2017, 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 agre...
27.5
81
0.732057
d565744842610ebcbe05d04f00c80b3ccf99eff3
14,583
py
Python
setup.py
ConnectionMaster/azure-functions-python-worker
b5a41e492e91d9787cd80ed04c737be53b3eaece
[ "MIT" ]
null
null
null
setup.py
ConnectionMaster/azure-functions-python-worker
b5a41e492e91d9787cd80ed04c737be53b3eaece
[ "MIT" ]
1
2021-01-31T07:05:09.000Z
2021-01-31T07:05:09.000Z
setup.py
ConnectionMaster/azure-functions-python-worker
b5a41e492e91d9787cd80ed04c737be53b3eaece
[ "MIT" ]
null
null
null
import distutils.cmd import glob import os import pathlib import shutil import subprocess import sys import json import tempfile import urllib.request import zipfile import re from distutils import dir_util from distutils.command import build from setuptools import setup from setuptools.command import develop # The G...
36.096535
79
0.587465
d5658b814e0aa5ac05a66357a59374db64f3e43f
5,017
py
Python
processing/crossref2schema.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
processing/crossref2schema.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
processing/crossref2schema.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import json import sys from es2json import eprint def handleperson(schemaorg_attr, sourceRecord): ret=[] schemaorg_name_mapping={"given":"givenName", "family":"familyName", "name":"name", "suffix":"honorifix...
33.006579
75
0.531792
d565aed1c9497128c3df274b2fedc183b8cb3a21
56,028
py
Python
runtests.py
wking/cython
87a227a16dc5453f8ff1ac6c8f1d9f05d4846420
[ "Apache-2.0" ]
1
2016-01-23T13:12:55.000Z
2016-01-23T13:12:55.000Z
runtests.py
wking/cython
87a227a16dc5453f8ff1ac6c8f1d9f05d4846420
[ "Apache-2.0" ]
null
null
null
runtests.py
wking/cython
87a227a16dc5453f8ff1ac6c8f1d9f05d4846420
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import sys import re import gc import codecs import shutil import time import unittest import doctest import operator import tempfile import traceback try: from StringIO import StringIO except ImportError: from io import StringIO try: import cPickle as pickle except ImportError...
38.773702
125
0.574838
d565b8c8f3b6c0f143ce2275f9e6d33897c4fd4c
36,984
py
Python
dpp_nets/my_torch/simulator.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
1
2021-06-05T11:14:13.000Z
2021-06-05T11:14:13.000Z
dpp_nets/my_torch/simulator.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
null
null
null
dpp_nets/my_torch/simulator.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from dpp_nets.my_torch.linalg import custom_decomp from dpp_nets.my_torch.DPP import DPP from dpp_nets.my_torch.utilities import compute_baseline from dpp_nets.my_torch.utilities import pad_tensor import dpp_nets.my_tor...
35.391388
128
0.567408
d565cb427899c1aa6f1d1db6ca6bb32f9d22c6f2
1,862
py
Python
custom_admin/migrations/0001_initial.py
samuira/TutionMastor
5b6d89efc90a9ebb54766530554d7dc9d5ee8298
[ "MIT" ]
1
2019-11-09T17:18:10.000Z
2019-11-09T17:18:10.000Z
custom_admin/migrations/0001_initial.py
abhisek11/TutionMastor
5b6d89efc90a9ebb54766530554d7dc9d5ee8298
[ "MIT" ]
19
2019-12-05T00:13:31.000Z
2022-03-11T23:58:13.000Z
custom_admin/migrations/0001_initial.py
abhisek11/TutionMastor
5b6d89efc90a9ebb54766530554d7dc9d5ee8298
[ "MIT" ]
1
2020-02-29T07:35:25.000Z
2020-02-29T07:35:25.000Z
# Generated by Django 2.2 on 2019-04-11 11:05 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fie...
51.722222
266
0.634264
d565d32f1f1ebf4553495eb909625e6d20d6a3ba
132,756
py
Python
venv/Lib/site-packages/tensorflow/python/ops/gen_sparse_ops.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow/python/ops/gen_sparse_ops.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow/python/ops/gen_sparse_ops.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
1
2020-06-28T11:47:47.000Z
2020-06-28T11:47:47.000Z
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: sparse_ops.cc """ import collections from tensorflow.python import pywrap_tfe as pywrap_tfe from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _core from t...
43.512291
242
0.699275
d565f1a8ea54688d83e3d223a8823195e970e5c9
3,894
py
Python
PCprophet/map_to_database.py
anfoss/PCprophet
039a15d7ee0a63b9da62097e192e5df58a11f8ce
[ "MIT" ]
10
2021-04-13T11:09:53.000Z
2021-12-27T04:08:35.000Z
PCprophet/map_to_database.py
fossatiA/PCprophet
6a91936da3bb7918150cf647a9b55e9b6025ca88
[ "MIT" ]
13
2021-03-31T01:03:33.000Z
2022-01-11T16:18:46.000Z
PCprophet/map_to_database.py
fossatiA/PCprophet
6a91936da3bb7918150cf647a9b55e9b6025ca88
[ "MIT" ]
3
2021-04-30T06:12:55.000Z
2021-08-31T09:52:41.000Z
import sys import os import re import networkx as nx import PCprophet.io_ as io import PCprophet.mcl as mc import PCprophet.stats_ as st # standardize and center methods def center_arr(hoa, fr_nr="all", smooth=True, stretch=(True, 72), resc=True): norm = {} for k in hoa: key = hoa[k] if fr_nr...
33.282051
81
0.570621
d5665f262649ecdbb9f8db22ecf1d13c3e3d9321
7,828
py
Python
dags/dv360_editor_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
null
null
null
dags/dv360_editor_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
null
null
null
dags/dv360_editor_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2020 Google 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 # # https://www.apache.org/l...
31.821138
145
0.521461
d566796e19a8bc77d989a835bfa35e86bda3625d
333
py
Python
modules/templates/BRCMS/Standard/config.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/BRCMS/Standard/config.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/BRCMS/Standard/config.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
1
2017-10-03T13:03:47.000Z
2017-10-03T13:03:47.000Z
""" BRCMS: Beneficiary Registry and Case Management System License: MIT """ def config(settings): # PrePopulate data settings.base.prepopulate.append("BRCMS/Standard") settings.base.prepopulate_demo.append("BRCMS/Standard/Demo") # END =============================================================...
23.785714
79
0.555556
d566a12a45550d4b4817d9bcea0ce9a6bf37b79d
490
py
Python
ConfigVersionControl/test_modules/__init__.py
ISISComputingGroup/EPICS-inst_servers
056fed778ebd1190421e06b9ac9c8a0bdae0d317
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:53.000Z
2020-08-20T23:38:53.000Z
ConfigVersionControl/test_modules/__init__.py
ISISComputingGroup/EPICS-inst_servers
056fed778ebd1190421e06b9ac9c8a0bdae0d317
[ "BSD-3-Clause" ]
88
2015-09-03T11:50:41.000Z
2021-02-18T19:13:04.000Z
ConfigVersionControl/test_modules/__init__.py
ISISComputingGroup/EPICS-inst_servers
056fed778ebd1190421e06b9ac9c8a0bdae0d317
[ "BSD-3-Clause" ]
1
2020-08-20T23:38:05.000Z
2020-08-20T23:38:05.000Z
import os import six import unittest def load_tests(loader, standard_tests, pattern): """ This function is needed by the load_tests protocol described at https://docs.python.org/3/library/unittest.html#load-tests-protocol The tests in this module are only added under Python 3. """ if six.PY3:...
27.222222
92
0.714286
d566a81cfa4769af4508dc1a9452b1f71be8fb83
11,966
py
Python
crane_plus_gripper/src/gripper_controller.py
leo-miura-robot/crane_plus_arm
7df68aba23efc02e220410f2c8a6ccece335e1e6
[ "Apache-2.0" ]
11
2017-05-17T11:39:12.000Z
2021-12-10T01:02:47.000Z
crane_plus_gripper/src/gripper_controller.py
shu-rt/crane_plus_arm
e9457afa2e0447f0379622597fe920780a283e19
[ "Apache-2.0" ]
1
2021-09-22T23:01:44.000Z
2021-09-22T23:01:44.000Z
crane_plus_gripper/src/gripper_controller.py
shu-rt/crane_plus_arm
e9457afa2e0447f0379622597fe920780a283e19
[ "Apache-2.0" ]
7
2017-08-20T06:28:03.000Z
2021-12-10T01:02:32.000Z
#!/usr/bin/env python """Controller node for the CRANE+ gripper.""" import sys import rospy import rosgraph import actionlib from control_msgs.msg import GripperCommandAction, GripperCommandFeedback, GripperCommandResult from control_msgs.msg import JointControllerState from dynamixel_msgs.msg import JointState from...
42.735714
95
0.603376
d566d7a5249d7d99733928a695c456bf957fe2d6
16,645
py
Python
tests/test_ULA.py
jamesba/pyz80
25730c9eb07432d92518ad4ed8688b489a59d84f
[ "Apache-2.0" ]
4
2018-01-01T16:27:44.000Z
2020-07-06T00:52:32.000Z
tests/test_ULA.py
jamesba/pyz80
25730c9eb07432d92518ad4ed8688b489a59d84f
[ "Apache-2.0" ]
null
null
null
tests/test_ULA.py
jamesba/pyz80
25730c9eb07432d92518ad4ed8688b489a59d84f
[ "Apache-2.0" ]
null
null
null
import unittest from pyz80.memorybus import MemoryBus from pyz80.ULA import * from unittest import mock import itertools class TestSpectrumULA(unittest.TestCase): def setUp(self): self.pixels = {} with mock.patch('tkinter.Tk') as tk: with mock.patch('tkinter.Canvas') as Canvas: ...
56.423729
159
0.481166
d566fde0011987bb332fa441e7fd7ca7154b24c3
3,208
py
Python
src/api/bkuser_core/tests/categories/plugins/local/test_fetcher.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/api/bkuser_core/tests/categories/plugins/local/test_fetcher.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/api/bkuser_core/tests/categories/plugins/local/test_fetcher.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
36.454545
115
0.581359
d56732a2c9179c4badeae9c14cf5f8f7fec1270b
1,263
py
Python
Assignment2/code_review.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
Assignment2/code_review.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
Assignment2/code_review.py
Iamlegend-Imani/LamData3
69c593c2a69a6894a3e3d8770737d3f9bd14e468
[ "MIT" ]
null
null
null
# IN style_example.py FILE # this string used to be too long import math import sys def example1(): # THIS IS A LONG COMMENT AND should be wrapped to fit within a 72 # character limit some_tuple = (1, 2, 3, 'a') some_variable = { "long": 'LINES should be within 79 character to prevent page c...
22.157895
78
0.460808
d56747c9f5b9556eeb50f78c6d52c0a791ba5ebb
59
py
Python
Cryptography/Exp-1-Shamirs-Secret-Sharing/history/tempCodeRunnerFile.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
null
null
null
Cryptography/Exp-1-Shamirs-Secret-Sharing/history/tempCodeRunnerFile.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
null
null
null
Cryptography/Exp-1-Shamirs-Secret-Sharing/history/tempCodeRunnerFile.py
LuminolT/Cryptographic
87fffae591eee9644641a4c511972df0c2a44df7
[ "MIT" ]
1
2022-03-07T13:56:55.000Z
2022-03-07T13:56:55.000Z
:param min_num: 最小秘密数量 :param prime: 共享秘密素数
29.5
30
0.576271
d5674930c398967261e2653ce0ff0a064271b261
409
py
Python
appengine/chromium_cq_status/highend.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/chromium_cq_status/highend.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/chromium_cq_status/highend.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import gae_ts_mon import webapp2 from handlers.login import Login from handlers.query import Query handlers = [ (r'/login', Login), (r'/query(/.*)?', Q...
22.722222
72
0.745721
d5677ac54fe60a880cbe951609ee10965abe3504
2,625
py
Python
taskmanager/tasklets/StartupTasklet.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
3
2016-02-20T00:47:52.000Z
2018-07-27T22:57:36.000Z
taskmanager/tasklets/StartupTasklet.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
1
2016-07-29T07:19:01.000Z
2016-07-29T07:19:01.000Z
taskmanager/tasklets/StartupTasklet.py
InWorldz/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
2
2018-04-09T18:15:18.000Z
2018-05-20T16:14:28.000Z
''' Created on Jan 11, 2014 @author: David Daeschler ''' import time from tasklets.TaskletBase import TaskletBase from inworldz.maestro.environment.RegionEntry import RegionState import inworldz.maestro.environment.ComputeResource as ComputeResource class StartupTasklet(TaskletBase): ''' Tasklet that start...
33.227848
141
0.641905
d567840198bf0ce73de0833fea306925793eadd2
794
py
Python
src/ggrc_workflows/migrations/versions/20140609210017_2078f4b2c9f9_add_order_index_to_taskgrouptask.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
src/ggrc_workflows/migrations/versions/20140609210017_2078f4b2c9f9_add_order_index_to_taskgrouptask.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_workflows/migrations/versions/20140609210017_2078f4b2c9f9_add_order_index_to_taskgrouptask.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Add order/index to TaskGroupTask Revision ID: 2078f4b2c9f9 Revises: 8ca25af37c4 Create Date: 2014-06-09 21:00:17.361594 """ # revision identifiers, used by Alembic. revision = '2078f4b2c9f9' down_revi...
27.37931
103
0.746851
d567dfb725ac1936d4f419b3a23b026440d81c8c
61,836
py
Python
xlwings/_xlmac.py
ZoomerAnalytics/xlwings
bc6846785d29d6511beff29e536b937ec0e5a57b
[ "BSD-3-Clause" ]
1,138
2015-01-02T23:04:18.000Z
2019-04-02T09:04:09.000Z
xlwings/_xlmac.py
ZoomerAnalytics/xlwings
bc6846785d29d6511beff29e536b937ec0e5a57b
[ "BSD-3-Clause" ]
872
2015-01-02T01:43:52.000Z
2019-04-02T20:30:10.000Z
xlwings/_xlmac.py
ZoomerAnalytics/xlwings
bc6846785d29d6511beff29e536b937ec0e5a57b
[ "BSD-3-Clause" ]
261
2015-01-13T17:34:07.000Z
2019-03-20T17:33:36.000Z
import os import re import datetime as dt import subprocess import struct import shutil import atexit import psutil import aem import appscript from appscript import k as kw, mactypes, its from appscript.reference import CommandError from .constants import ColorIndex from .utils import ( int_to_rgb, np_dateti...
29.264553
88
0.597807
d567ea7468769b8041673122d96c5ae7c3894a87
4,742
py
Python
tests/st/ops/gpu/test_solve_eigh_value_op.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
1
2021-11-19T14:21:45.000Z
2021-11-19T14:21:45.000Z
tests/st/ops/gpu/test_solve_eigh_value_op.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
tests/st/ops/gpu/test_solve_eigh_value_op.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
42.720721
119
0.605863
d56814ee4fe9ea2eaa044a5e1cb62b598c52315f
1,639
py
Python
setup.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
setup.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
setup.py
maartenbreddels/kaplot
305026209f8026094d54373e14541f4f039501d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup, Extension from distutils.sysconfig import get_python_inc, get_python_lib import os import sys sys.path.append(os.path.dirname(__file__)) pjoin = os.path.join from extensions import extensions #import kaplot #version = kaplot.__version__ version = "0.3" data_file...
23.414286
97
0.675412
d5682ef2e18a1366724ef5b53bad2fa47e1a6231
915
py
Python
test_projects/debug_mode/main.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
test_projects/debug_mode/main.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
test_projects/debug_mode/main.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
"""The test project for the debug mode setting. Command examples: $ python test_projects/debug_mode/main.py """ import sys sys.path.append('./') import os from types import ModuleType import apysc as ap from apysc._file import file_util this_module: ModuleType = sys.modules[__name__] _DEST_DIR_...
19.468085
59
0.636066
d568346bb081128e3ade3829dc4fb5b94762684c
12,327
py
Python
wienerschnitzelgemeinschaft/src/Dmytro/src/classification_dataset.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Dmytro/src/classification_dataset.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Dmytro/src/classification_dataset.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
from collections import namedtuple import cv2 import numpy as np import pandas as pd from collections import defaultdict import math from scipy import ndimage from torch.utils.data import Dataset import skimage.color import skimage.io from tqdm import tqdm import utils import glob import pickle import enum import s...
36.470414
116
0.566886
d56836ad633d227f809c1ece61aa8efb98697e90
3,757
py
Python
tests/test_api.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
13
2018-12-17T02:20:30.000Z
2019-11-27T23:56:56.000Z
tests/test_api.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
7
2018-10-25T13:53:32.000Z
2019-03-19T22:20:59.000Z
tests/test_api.py
RAbraham/thampi
7591882551cab433f9bd52b3b8446a6306577fd8
[ "Apache-2.0" ]
3
2018-10-01T20:01:22.000Z
2019-10-29T23:43:27.000Z
import unittest from thampi.core import api from unittest.mock import MagicMock import json from pathlib import Path AWS_REGION = "us-east-1" S3_BUCKET = "zappa-thampi-trial" class MyTestCase(unittest.TestCase): def test_serve(self): import uuid a_random_uuid = str(uuid.uuid4()) # Given ...
38.731959
128
0.606335
d5684e52441aea9b6e8949f7d671ee35ce9bbada
1,613
py
Python
data/level/level10370.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level10370.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level10370.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = {'level_index': 10370, 'move_count': '30', 'board_info': {(0, 8): {}, (0, 7): {}, (0, 6): {}, (0, 5): {}, (0, 4): {}, (0, 3): {}, (0, 2): {}, (0, 1): {}, (0, 0): {'fall_point': (0, -1)}, (1, 8): {}, (1, 7): {}, (1, 6): {}, (1, 5): {}, (1, 4): {}, (1, 3): {}, ...
100.8125
118
0.221327
d5685539b3461fea4ea20e91a0b19638c5e585ad
1,683
py
Python
SOLO/preprocess/find_folder.py
youngster-all/Unified-Gesture
8d20e051f2b692244c38a4d016629f13fe81c200
[ "MIT" ]
1
2019-12-24T17:00:11.000Z
2019-12-24T17:00:11.000Z
SOLO/preprocess/find_folder.py
youngster-all/Unified-Gesture
8d20e051f2b692244c38a4d016629f13fe81c200
[ "MIT" ]
null
null
null
SOLO/preprocess/find_folder.py
youngster-all/Unified-Gesture
8d20e051f2b692244c38a4d016629f13fe81c200
[ "MIT" ]
1
2019-12-24T17:39:46.000Z
2019-12-24T17:39:46.000Z
""" Finding the folder name from image name """ from SOLO.preprocess.finger_flag import Finger def find_folder(image_name): name = image_name.split('_') if 'One' in name: folder_name = 'SingleOne' elif 'Two' in name: folder_name = 'SingleTwo' elif 'Three' in name: folder_name =...
28.05
47
0.593583
d56867743ac159fd64db0036261d42e67ca1e022
3,863
py
Python
oscar/lib/python2.7/site-packages/django/template/loaders/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/template/loaders/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/template/loaders/base.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import warnings from django.template import Origin, Template, TemplateDoesNotExist from django.utils.deprecation import RemovedInDjango20Warning from django.utils.inspect import func_supports_parameter class Loader(object): def __init__(self, engine): self.engine = engine def __call__(s...
36.790476
80
0.620243
d56887cfe9e6f0e8213ac712210057e1169449d4
10,238
py
Python
oscar/lib/python2.7/site-packages/whoosh/matching/combo.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/matching/combo.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/whoosh/matching/combo.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2010 Matt Chaput. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions a...
32.709265
79
0.581168
d5688974fff551b7f87a4bed5b8b27fecaeac0a3
198
py
Python
finetuned_model/constants.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
1
2021-09-25T14:11:22.000Z
2021-09-25T14:11:22.000Z
finetuned_model/constants.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
null
null
null
finetuned_model/constants.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
4
2021-04-10T01:33:03.000Z
2021-11-11T06:58:59.000Z
# List of the training runs for the different target dataset sizes TRAINING_RUNS = [ 'large_dataset/20200616_150747', 'medium_dataset/20200617_073349', 'small_dataset/20200617_164302' ]
28.285714
66
0.767677
d568a4f2a4c0020eb01e88a80ba57519f44c5384
33,727
py
Python
intersight/apis/snmp_policy_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/snmp_policy_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/snmp_policy_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from s...
47.302945
818
0.59777
d568b1a69be98221b670637094d2c5b5caefeebb
675
py
Python
body_temp_from_external/tests/integrate_factors_test.py
SoftwareDevEngResearch/body_temp_from_external
2f560ccc51e9f3c5bde25630b811586972fe884c
[ "MIT" ]
1
2020-02-15T05:30:07.000Z
2020-02-15T05:30:07.000Z
body_temp_from_external/tests/integrate_factors_test.py
SoftwareDevEngResearch/body_temp_from_external
2f560ccc51e9f3c5bde25630b811586972fe884c
[ "MIT" ]
null
null
null
body_temp_from_external/tests/integrate_factors_test.py
SoftwareDevEngResearch/body_temp_from_external
2f560ccc51e9f3c5bde25630b811586972fe884c
[ "MIT" ]
3
2018-04-18T23:39:00.000Z
2020-03-15T14:46:20.000Z
#!/usr/bin/env python # Author: Makenzie Brian # Date: April 25, 2018 # Class: ME 599 # File: conv_core_temp_test.py # Description: tests for conv_core_temp.py import pytest from ..integrate_factors import check_if_fever def test_1_check_if_fever(): """confirms values higher than set temp return true; uses i...
25
126
0.696296
d568b2b65597aca4e7c78a0373ed4ebb120d91fa
4,813
py
Python
blendosim/moments.py
JonathanCamargo/BlendOsim
51ea3fd2e87361f7d4320596355734c175c50b8d
[ "MIT" ]
2
2021-05-15T19:42:54.000Z
2021-07-16T18:16:23.000Z
blendosim/moments.py
JonathanCamargo/BlendOsim
51ea3fd2e87361f7d4320596355734c175c50b8d
[ "MIT" ]
null
null
null
blendosim/moments.py
JonathanCamargo/BlendOsim
51ea3fd2e87361f7d4320596355734c175c50b8d
[ "MIT" ]
null
null
null
import bpy from bpy.types import Operator from bpy.props import FloatVectorProperty from bpy_extras.object_utils import AddObjectHelper, object_data_add from mathutils import Vector import bmesh import numpy as np import math from blendosim.common import data2keyframes, loadAnimation, readNames import os rootpath=...
32.52027
94
0.614793
d568b8b0eec3d42afc4e26a2b361e6d3df1f0ec2
7,198
py
Python
r2d7/discord/__main__.py
FreakyDug/r2-d7
c1af24d177ecad63f2d011127fc9505459783b11
[ "MIT" ]
13
2016-07-06T12:47:15.000Z
2022-02-03T21:18:06.000Z
r2d7/discord/__main__.py
FreakyDug/r2-d7
c1af24d177ecad63f2d011127fc9505459783b11
[ "MIT" ]
35
2017-01-31T17:36:07.000Z
2022-03-30T02:52:42.000Z
r2d7/discord/__main__.py
Apollonaut13/r2-d7
dab40911e4ebacccdc57ea500b4d4429d5b0d816
[ "MIT" ]
13
2016-09-22T05:22:30.000Z
2022-03-14T23:18:08.000Z
#!/usr/bin/env python import logging import os import re import asyncio import discord from r2d7.listformatter import ListFormatter from r2d7.cardlookup import CardLookup from r2d7.factionlister import FactionLister from r2d7.meta import Metawing from r2d7.roller import Roller from r2d7.talkback import Talkback from ...
37.295337
120
0.533898
d5693d79261fd86d6848b077b5e0aeb8866b5b40
14,333
py
Python
YouTube.py
vivek-gite/YouTube-Downloader
24f469dd8619eab54744df6151f76c19e243bc82
[ "MIT" ]
null
null
null
YouTube.py
vivek-gite/YouTube-Downloader
24f469dd8619eab54744df6151f76c19e243bc82
[ "MIT" ]
null
null
null
YouTube.py
vivek-gite/YouTube-Downloader
24f469dd8619eab54744df6151f76c19e243bc82
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import ttk from PIL import ImageTk, Image import PIL import requests from io import BytesIO from tkinter import * from tkinter.tix import * from tkinter import filedialog from tkinter import messagebox from pytube import * import pytube import threading as th from tkinte...
34.371703
150
0.605805
d569487698dbd2b71e86405404413d7d347f2422
505
py
Python
MatricesM/C_funcs/setup.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
4
2019-05-04T00:54:52.000Z
2019-12-11T05:57:16.000Z
MatricesM/C_funcs/setup.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
80
2019-01-23T20:47:42.000Z
2020-02-20T05:53:28.000Z
MatricesM/C_funcs/setup.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
2
2019-02-23T12:34:23.000Z
2020-07-29T17:45:03.000Z
from distutils.core import setup from distutils.extension import Extension from Cython.Build import cythonize from Cython.Compiler.Options import get_directive_defaults get_directive_defaults()['linetrace'] = True get_directive_defaults()['binding'] = True extensions = [ Extension("randgen", ["randgen.pyx"]), ...
28.055556
81
0.750495
d5697ba21f51c43d4cac31d14358fa11ba8ae110
7,255
py
Python
strippairing/strippairing2.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-01-29T07:24:14.000Z
2022-03-16T10:05:25.000Z
strippairing/strippairing2.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-07-03T00:31:10.000Z
2021-09-10T07:45:01.000Z
strippairing/strippairing2.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
5
2019-02-27T22:56:49.000Z
2019-08-24T19:01:41.000Z
import ROOT import array import sys import itertools import permutations class StripPairing: def __init__(self, filename, variable): self.filename = filename self.variable = variable def run(self): #put multiples and permutations in a separate file #upload to github #play with neural network setting...
30.87234
273
0.642453
d5698a52671be840d188e14eab299cc3e8e1e6d3
47,661
py
Python
cam/sgnmt/decode_utils.py
wenting-zhao/sgnmt
bc6be550b116a1274b44eb1deabf67d99975d434
[ "Apache-2.0" ]
59
2016-05-20T16:15:58.000Z
2021-11-22T14:21:56.000Z
cam/sgnmt/decode_utils.py
wenting-zhao/sgnmt
bc6be550b116a1274b44eb1deabf67d99975d434
[ "Apache-2.0" ]
9
2018-10-08T10:05:41.000Z
2022-02-24T07:46:02.000Z
cam/sgnmt/decode_utils.py
wenting-zhao/sgnmt
bc6be550b116a1274b44eb1deabf67d99975d434
[ "Apache-2.0" ]
19
2016-06-07T14:19:50.000Z
2022-03-08T03:43:07.000Z
# -*- coding: utf-8 -*- # coding=utf-8 # Copyright 2019 The SGNMT Authors. # # 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 requir...
49.543659
84
0.52458
d569cd6f68bd5df337be82fd2b805ef9ecad0641
1,290
py
Python
tree/lowest_common_ancestor_of_a_binary_tree_iii.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
tree/lowest_common_ancestor_of_a_binary_tree_iii.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
tree/lowest_common_ancestor_of_a_binary_tree_iii.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
import copy class Solution: """ @param {TreeNode} root The root of the binary tree. @param {TreeNode} A and {TreeNode} B two nodes @return Return the LCA of the two nodes. """ def lowestCommonAncestor3(self, root, A, B): # write your code here aExist, bExist, lca = self.helper(ro...
31.463415
75
0.566667
d569da16d528421815547657000236cc4b2db099
166
py
Python
globals.py
DariHernandez/crimegrade-scraper
ffc08b7a14d414c97013b64b4ca549b9dfd4045f
[ "MIT" ]
null
null
null
globals.py
DariHernandez/crimegrade-scraper
ffc08b7a14d414c97013b64b4ca549b9dfd4045f
[ "MIT" ]
null
null
null
globals.py
DariHernandez/crimegrade-scraper
ffc08b7a14d414c97013b64b4ca549b9dfd4045f
[ "MIT" ]
null
null
null
global status global loading global db_manager global tables global truncate status = "Loading..." loading = False db_manager = None tables = None truncate = False
12.769231
21
0.777108
d569dadf6d491a37880f2de9198bb0c53a984856
2,362
py
Python
rabbithelper.py
scion-network/ion-deploy
6ef8b5afb22ef2d93dcf639f6ef304e27383cfcf
[ "BSD-2-Clause" ]
null
null
null
rabbithelper.py
scion-network/ion-deploy
6ef8b5afb22ef2d93dcf639f6ef304e27383cfcf
[ "BSD-2-Clause" ]
null
null
null
rabbithelper.py
scion-network/ion-deploy
6ef8b5afb22ef2d93dcf639f6ef304e27383cfcf
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python from rabbitmqadmin import Management, LISTABLE, DELETABLE import shlex import simplejson class RabbitManagementHelper(object): def __init__(self, options): self.options = options def list_names(self, listable_type): list_str = '%s name' % listable_type mgmt = Managem...
40.724138
93
0.628704
d569fe77687f742ae8157c452f55afe6461558e6
1,009
py
Python
kitchen/backends/plugins/monitoring.py
tobami/kitchen
a87f55b559649c84d1f57bde480a94e35edf425b
[ "Apache-2.0" ]
1
2020-02-10T14:42:05.000Z
2020-02-10T14:42:05.000Z
kitchen/backends/plugins/monitoring.py
tobami/kitchen
a87f55b559649c84d1f57bde480a94e35edf425b
[ "Apache-2.0" ]
null
null
null
kitchen/backends/plugins/monitoring.py
tobami/kitchen
a87f55b559649c84d1f57bde480a94e35edf425b
[ "Apache-2.0" ]
null
null
null
"""Plugin that adds monitoring links""" from django.shortcuts import redirect from kitchen.backends.plugins import is_view def inject(node): link = { 'url': "http://monitoring.mydomain.com/{0}".format(node['fqdn']), 'img': 'http://munin-monitoring.org/static/munin.png', 'title': 'monitori...
28.027778
73
0.545094
d56a0f51ebcd58d9e02aeb887ea27632b1a53356
3,460
py
Python
spaces/dict.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
2
2019-02-28T01:47:23.000Z
2021-04-10T14:37:46.000Z
spaces/dict.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
spaces/dict.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
from collections import OrderedDict from .space import Space class Dict(Space): """ A dictionary of simpler spaces. Example usage: self.observation_space = spaces.Dict({"position": spaces.Discrete(2), "velocity": spaces.Discrete(3)}) Example usage [nested]: self.nested_observation_space = sp...
38.021978
113
0.568497
d56a4577717a05465d5826dd4f58160825b614cf
16,441
py
Python
sigmapiweb/apps/PartyListV2/models.py
sigmapi-gammaiota/sigmapi-web
4648112c8ed65694a2d07aa3af9573868cf72b45
[ "MIT" ]
8
2018-01-19T15:27:24.000Z
2022-02-04T05:57:01.000Z
sigmapiweb/apps/PartyListV2/models.py
sigmapi-gammaiota/sigmapi-web
4648112c8ed65694a2d07aa3af9573868cf72b45
[ "MIT" ]
71
2017-07-17T04:44:35.000Z
2022-02-19T19:33:24.000Z
sigmapiweb/apps/PartyListV2/models.py
sigmapi-gammaiota/sigmapi-web
4648112c8ed65694a2d07aa3af9573868cf72b45
[ "MIT" ]
6
2019-04-12T03:18:12.000Z
2021-09-28T23:33:12.000Z
""" Models for the PartyList V2 app. """ import json from datetime import datetime from Levenshtein._levenshtein import distance from django import forms from django.contrib import admin from django.contrib.auth.models import User from django.db import models from common.mixins import ModelMixin from common.utils imp...
30.673507
88
0.615534
d56aa6f5d8bbe3306280406f0db20b8ff961d0a4
1,582
py
Python
models/final_experiment_scripts/eICU/LoS/transformer_labs_only.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
29
2020-11-23T16:27:41.000Z
2022-03-25T16:05:24.000Z
models/final_experiment_scripts/eICU/LoS/transformer_labs_only.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
2
2020-11-28T04:11:12.000Z
2021-08-23T12:42:08.000Z
models/final_experiment_scripts/eICU/LoS/transformer_labs_only.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
9
2021-02-23T07:12:58.000Z
2022-01-13T15:11:59.000Z
from eICU_preprocessing.split_train_test import create_folder from torch.optim import Adam from models.transformer_model import Transformer from models.experiment_template import ExperimentTemplate from models.initialise_arguments import initialise_transformer_arguments from models.final_experiment_scripts.best_hyperpa...
43.944444
128
0.637168
d56af2cf95612d942e376f6e2fb8bfa3871ad61e
497
py
Python
blousebrothers/dashboard/catalogue/forms.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/dashboard/catalogue/forms.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/dashboard/catalogue/forms.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
from django import forms from oscar.apps.dashboard.catalogue.forms import ProductClassSelectForm as OriginalProductClassSelectForm from oscar.apps.dashboard.catalogue.forms import ProductClass from django.utils.translation import ugettext_lazy as _ class ProductClassSelectForm(OriginalProductClassSelectForm): pro...
41.416667
105
0.790744
d56b473364df5d5ccf8b17f6888b9b58b2c32b33
10,881
py
Python
test/unit/test_nifti_loader.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
379
2020-07-18T22:00:53.000Z
2022-03-31T05:17:29.000Z
test/unit/test_nifti_loader.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
646
2020-07-18T08:55:48.000Z
2022-03-29T02:24:54.000Z
test/unit/test_nifti_loader.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
62
2020-07-26T05:00:23.000Z
2022-02-22T21:58:19.000Z
""" Tests functionality of the NiftiFileLoader """ import os from test.unit.util import is_equal_np import numpy as np import pytest from deepreg.dataset.loader.nifti_loader import NiftiFileLoader, load_nifti_file def get_loader(loader_name): if loader_name in [ "paired", "unpaired", "gr...
32.972727
87
0.423031
d56b63e95346837a228decb631d9f67609764912
7,602
py
Python
vision.py
docongminh/Simple-google-vision-api
7eedddb97125b55edfaea5281e9c3266d070951c
[ "MIT" ]
null
null
null
vision.py
docongminh/Simple-google-vision-api
7eedddb97125b55edfaea5281e9c3266d070951c
[ "MIT" ]
3
2021-06-30T10:46:38.000Z
2021-06-30T10:46:39.000Z
vision.py
docongminh/Simple-google-vision-api
7eedddb97125b55edfaea5281e9c3266d070951c
[ "MIT" ]
null
null
null
import json import os import glob import pickle from tqdm import tqdm import h5py import argparse import logging import requests as r from base64 import b64encode allow_text = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '?', 'A', 'Á', 'À', 'Ạ', 'Ấ', 'Ậ', 'B', 'C', 'D', 'E', 'È', 'Ẹ', 'Ê', 'Ế', 'Ệ',...
39.801047
121
0.426072
d56b8a6f06eee597412085e1073e92c49e45c300
20,818
py
Python
project/migrations/0001_initial.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
null
null
null
project/migrations/0001_initial.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
3
2020-02-12T02:52:01.000Z
2021-06-10T22:18:25.000Z
project/migrations/0001_initial.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-11-13 07:50 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.Crea...
68.255738
212
0.621866
d56ba9995d0000685c0a4e5a387b7c7365dbe518
5,602
py
Python
main_pretrain.py
vlfom/UNO-1
94cce7cf11f9b0bef69d22c4ba811cc03923dec8
[ "MIT" ]
null
null
null
main_pretrain.py
vlfom/UNO-1
94cce7cf11f9b0bef69d22c4ba811cc03923dec8
[ "MIT" ]
null
null
null
main_pretrain.py
vlfom/UNO-1
94cce7cf11f9b0bef69d22c4ba811cc03923dec8
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import torchvision import pytorch_lightning as pl from pl_bolts.optimizers.lr_scheduler import LinearWarmupCosineAnnealingLR from pytorch_lightning.metrics import Accuracy from utils.data import get_datamodule from utils.nets import MultiHeadResNet from utils.callbacks impo...
37.851351
100
0.680293
d56bacef1e8ade919d088732ce51b47bbd638e5d
1,783
py
Python
var/spack/repos/builtin/packages/py-flask/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-flask/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-flask/package.py
flatironinstitute/spack
71a7b1b5fadbe16bcdb36fb679aa828cd7d83b02
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyFlask(PythonPackage): """A simple framework for building complex web applications.""" ...
50.942857
96
0.706674
d56bbdb8b806abcfb5c6d19b001c698af9e5597e
1,423
py
Python
frameworks/naver_translate/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
1
2019-11-09T04:18:58.000Z
2019-11-09T04:18:58.000Z
frameworks/naver_translate/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
frameworks/naver_translate/entrypoint.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
import os import requests from nmtwizard.cloud_translation_framework import CloudTranslationFramework naver_lang_dict_map = { 'zh':'zh-CN', 'en':'en', 'fr':'fr', 'id':'id', 'ko':'ko', 'es':'es', 'th':'th', 'zt':'zh-TW', 'vi':'vi' } class NaverTranslateFramework(CloudTranslationFramework): de...
27.365385
90
0.604357
d56bf75a8878fc413227bc4fefd6be96411afa20
3,776
py
Python
tests/receipts/previous/db_services_tests.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
2
2020-10-15T15:16:08.000Z
2020-11-06T10:41:13.000Z
tests/receipts/previous/db_services_tests.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
1
2020-11-14T19:40:14.000Z
2020-11-14T19:40:14.000Z
tests/receipts/previous/db_services_tests.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
null
null
null
import unittest from src.api.receipts.previous.db_services import InputOutputDBService from src.api.receipts.previous.entities import InputOutput, InputOutputSchema from src.shared.test_base import DBBaseTestCase class InputOutputDBServiceTestCase(DBBaseTestCase): def setUp(self): super(InputOutputDBServ...
48.410256
108
0.713983
d56c30efbb631dcf1947b770e2718ad47a16e63e
4,623
py
Python
flasynk/celery_specifics.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
flasynk/celery_specifics.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
flasynk/celery_specifics.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
from datetime import datetime import logging import os import celery.result from celery import Celery, current_task from celery.task import control logger = logging.getLogger("asynchronous_server") def build_async_application(config: dict, *apps: str, **kwargs) -> Celery: """ This function should be called ...
31.236486
111
0.585334
d56c550255c2d33bf626910e13bb0637715779d9
4,203
py
Python
prot/estimate.py
gchure/quantitative_proteome
90d15dd208647332aeb06cf7e16ab71a6b210820
[ "MIT" ]
2
2020-05-18T23:03:10.000Z
2020-10-27T19:31:51.000Z
prot/estimate.py
gchure/quantitative_proteome
90d15dd208647332aeb06cf7e16ab71a6b210820
[ "MIT" ]
1
2020-02-14T23:03:21.000Z
2020-02-14T23:03:21.000Z
prot/estimate.py
RPGroup-PBoC/quantitative_proteome
90d15dd208647332aeb06cf7e16ab71a6b210820
[ "MIT" ]
null
null
null
import numpy as np from . import size def load_constants(lambda_bounds = [0, 2]): """ Loads and returns a dictionary with a variety of numeric constants Parameters ---------- lambda_bounds : list List of length=2 entries that define the upper and lower bounds of the grwoth rate ran...
53.202532
104
0.584582
d56c562ce597216398bf8848176b361658726176
1,399
py
Python
python/main.py
leonoverweel/graph-coloring
48654a2e4cb3ddd786ac6193f9d73271c43eabf0
[ "MIT" ]
null
null
null
python/main.py
leonoverweel/graph-coloring
48654a2e4cb3ddd786ac6193f9d73271c43eabf0
[ "MIT" ]
null
null
null
python/main.py
leonoverweel/graph-coloring
48654a2e4cb3ddd786ac6193f9d73271c43eabf0
[ "MIT" ]
null
null
null
import random import sys from coloring import Coloring from models.graph import Graph from models.vertex import Vertex def main(): """Run graph coloring.""" # Grab command line args file_name = sys.argv[1] if len(sys.argv) > 1 else None num_vertices = sys.argv[2] if len(sys.argv) > 3 else None ...
29.145833
113
0.616154
d56c57683ecdedabd2d42fc9f27279d28cc8b8cc
2,774
py
Python
tests/common/test_run/ascend/fused_mul_sub_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/fused_mul_sub_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/fused_mul_sub_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
45.47541
115
0.71341
d56c7057f66bbe9460733e1ab3357bbc9779329b
11,545
py
Python
tensorflow/python/debug/wrappers/framework_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/python/debug/wrappers/framework_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
5
2017-02-21T08:37:52.000Z
2017-03-29T05:46:05.000Z
tensorflow/python/debug/wrappers/framework_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
11
2017-09-10T16:22:21.000Z
2021-08-09T09:24:50.000Z
# Copyright 2016 The TensorFlow 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 applica...
35.091185
80
0.711563
d56c785cd8f5e2e49382ab1f74d1a35b15a31a88
1,631
py
Python
tests/metric/test_accuracy.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
117
2019-03-14T15:06:42.000Z
2022-02-28T07:06:34.000Z
tests/metric/test_accuracy.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
149
2019-03-12T09:43:21.000Z
2020-08-24T02:56:34.000Z
tests/metric/test_accuracy.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
51
2019-03-14T15:12:48.000Z
2021-08-09T03:37:48.000Z
import random import numpy as np import json import pytest from metric_base import * from cotk.metric import AccuracyMetric from cotk.dataloader import UbuntuCorpus, LanguageProcessing def setup_module(): random.seed(0) np.random.seed(0) class TestAccuracyMetric: def test_init(self): dl = None label_key = "lab...
29.654545
63
0.727774
d56ca6dfe580b0f2f118e03179a599dd347e8ba4
541
py
Python
src/szz/map_bugs2snapshot/get_sha_pairs_from_deleted_linums.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
9
2017-10-21T13:29:46.000Z
2022-01-10T23:49:54.000Z
src/szz/map_bugs2snapshot/get_sha_pairs_from_deleted_linums.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
3
2018-01-09T11:28:55.000Z
2019-01-20T08:45:18.000Z
src/szz/map_bugs2snapshot/get_sha_pairs_from_deleted_linums.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
1
2020-12-29T05:10:31.000Z
2020-12-29T05:10:31.000Z
import pandas, sys data_dir = sys.argv[1] + '/' project_name = sys.argv[2] deleted_lines_filename = data_dir + 'lines_deleted_in_bf_shas/' + project_name + '.buggylines' df = pandas.read_csv(deleted_lines_filename) df = df[['bf_sha', 'bi_sha']] grouped = df.groupby(['bf_sha', 'bi_sha']) index = [gp_keys[0] for gp_key...
36.066667
94
0.737523
d56cf3c7c858854287e84677eed44474ef9c8056
10,487
py
Python
asyncy/Apps.py
zeebonk/platform-engine
c82feecad7a7e3786ed69e02bbeef712182a27ae
[ "Apache-2.0" ]
null
null
null
asyncy/Apps.py
zeebonk/platform-engine
c82feecad7a7e3786ed69e02bbeef712182a27ae
[ "Apache-2.0" ]
null
null
null
asyncy/Apps.py
zeebonk/platform-engine
c82feecad7a7e3786ed69e02bbeef712182a27ae
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import asyncio import os import select import signal import threading import psycopg2 from .App import App from .Config import Config from .Containers import Containers from .DeploymentLock import DeploymentLock from .GraphQLAPI import GraphQLAPI from .Logger import Logger from .Sentry import ...
35.429054
78
0.53943
d56d154802e7a911ef7cd9bdcdef113772756b87
591
py
Python
desafios/Mundo 3/Ex085.py
duartecgustavo/Python---Estudos-
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
6
2021-01-20T20:43:39.000Z
2021-08-13T15:44:10.000Z
desafios/Mundo 3/Ex085.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
null
null
null
desafios/Mundo 3/Ex085.py
duartecgustavo/PythonProgress
13a47f115dd24ef475addaed7b0c860a7b3817ca
[ "MIT" ]
1
2020-09-06T03:34:19.000Z
2020-09-06T03:34:19.000Z
# Desafio 85 - Aula 18 : Programa que leia 7 valores digitados pelo usuario e cadastre-os em uma lista unica. # Esta lista deve manter os valores separados entre impares e pares e no final mostre os valores em ordem crescente. valores = [[],[]] for cont in range(1,8): valor = int(input(f'Diga o {cont}° valor: '))...
31.105263
116
0.671743
d56d2d0673c4bd35b1e9bc5edf25fc7b8e2ac4d7
160
py
Python
datafiles/apps.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
1
2021-04-26T20:03:11.000Z
2021-04-26T20:03:11.000Z
datafiles/apps.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
17
2021-04-23T16:51:59.000Z
2021-12-13T21:17:41.000Z
datafiles/apps.py
ChalkLab/SciFlow
5bf021007d6184402ebfe6cefc2111d99160cb69
[ "MIT" ]
null
null
null
""" django appconfig file """ from django.apps import AppConfig class DatafilesConfig(AppConfig): """ config for datafiles app """ name = 'datafiles'
20
36
0.69375
d56d446d1e7070cee5187e640e7c9f538341792f
6,381
py
Python
callstack.py
zhiqiang-hu/DAPCmdr
077bf8f25e6bf47986ade3f1c3c80b1f611fb00e
[ "MIT" ]
28
2018-06-23T05:44:42.000Z
2021-12-15T06:00:44.000Z
callstack.py
zhiqiang-hu/DAPCmdr
077bf8f25e6bf47986ade3f1c3c80b1f611fb00e
[ "MIT" ]
null
null
null
callstack.py
zhiqiang-hu/DAPCmdr
077bf8f25e6bf47986ade3f1c3c80b1f611fb00e
[ "MIT" ]
10
2018-06-23T12:23:32.000Z
2022-03-20T10:58:19.000Z
#!python3 import os import re import collections Function = collections.namedtuple('Function','start end callees callers') # callees: 此函数调用的函数 # address1 callee1,此函数在address1处调用了callee1 ...
44.622378
151
0.469362
d56d8ba1166071c86b02d9772c3f3de5d199510e
14,100
py
Python
src/util/ordereddict.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/util/ordereddict.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/util/ordereddict.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
# 05-07-03 #v1.0.3 # ordereddict.py # A class that is a drop in replacement for an ordinary dictionary. # methods that would normally return values/items in a random manner return them # in an ordered and consistent manner. # Copyright Michael Foord # Not for use in commercial projects without permission. (A...
41.59292
492
0.623262
d56d9bbd469b25c703a46bba9820d09becb2f444
126
py
Python
Element_Analytics/apps/upload/apps.py
drproduck/Element-Analytics
aa1a77578e6401b4e82ce9fe9072c796496d878d
[ "MIT" ]
1
2019-12-09T09:43:30.000Z
2019-12-09T09:43:30.000Z
Element_Analytics/apps/upload/apps.py
drproduck/Element-Analytics
aa1a77578e6401b4e82ce9fe9072c796496d878d
[ "MIT" ]
37
2018-02-04T04:41:46.000Z
2018-04-29T20:39:09.000Z
Element_Analytics/apps/upload/apps.py
drproduck/Element-Analytics
aa1a77578e6401b4e82ce9fe9072c796496d878d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class CoreConfig(AppConfig): name = 'upload'
15.75
39
0.785714
d56dbdf1ab04fa3fa8197a17a368073ad08ece81
9,152
py
Python
sdk/media/azure-mgmt-media/azure/mgmt/media/aio/_azure_media_services.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/media/azure-mgmt-media/azure/mgmt/media/aio/_azure_media_services.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/media/azure-mgmt-media/azure/mgmt/media/aio/_azure_media_services.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 may ...
62.684932
494
0.76781
d56dcc98096f02155f027a9d2573f7511f051c6f
8,457
py
Python
autosynth/change_pusher.py
jskeet/synthtool
d73e8dea90af1b463a7f9d4a33244cf4612ada7c
[ "Apache-2.0" ]
3
2020-12-31T05:26:56.000Z
2021-03-01T07:28:06.000Z
autosynth/change_pusher.py
jskeet/synthtool
d73e8dea90af1b463a7f9d4a33244cf4612ada7c
[ "Apache-2.0" ]
null
null
null
autosynth/change_pusher.py
jskeet/synthtool
d73e8dea90af1b463a7f9d4a33244cf4612ada7c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.6 # Copyright 2020 Google 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 # # Unless required by applicable law o...
34.100806
87
0.64219
d56defa4fd63757ed410327db3aa74b42927d4e7
27,561
py
Python
Components/_7__cpu.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
Components/_7__cpu.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
Components/_7__cpu.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
''' TODO: . CS (chip select) equivalent when write to memory mapped IO address ''' '''----------------------------- Imports -----------------------------''' # Built ins import math # Hack computer from ._x__components import * import Assembler.disassembler as dis '''------------------------------- CPU ---------...
38.654979
225
0.474475
d56df648b119597fda48c1b13cfcb42cce649688
695
py
Python
src/LDPC/pycodes/build/lib.linux-x86_64-2.7/pycodes/tests/quantization/BEC/Hamming_BEC_perf.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
1
2019-04-24T15:24:48.000Z
2019-04-24T15:24:48.000Z
src/LDPC/pycodes/tests/quantization/BEC/Hamming_BEC_perf.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
src/LDPC/pycodes/tests/quantization/BEC/Hamming_BEC_perf.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
""" This script tests the BEC quantizer on the dual of a Hamming code. The features that make this test interesting are that the code is small enough to visualize or decode with pencil and paper, yet still contains cycles. """ from pycodes.utils.bec_quant_perf import * tester = BECTester([CodeParams(N=7,K=4,E=12,L...
34.75
78
0.592806
d56df8eb91cae7d6c526d478d741f44d6a08fe39
615
py
Python
lib/windows/ServiceInfo.py
ashiscs/Cinfo
7e8fa8ce19f323425fab6117e68ac2678b4e17dc
[ "MIT" ]
2
2019-08-04T17:07:15.000Z
2020-02-27T21:10:33.000Z
lib/windows/ServiceInfo.py
ashiscs/Cinfo
7e8fa8ce19f323425fab6117e68ac2678b4e17dc
[ "MIT" ]
null
null
null
lib/windows/ServiceInfo.py
ashiscs/Cinfo
7e8fa8ce19f323425fab6117e68ac2678b4e17dc
[ "MIT" ]
null
null
null
from lib.windows.common.CommandHandler import CommandHandler from lib.windows.common import Utility as utl class ServiceInfo: def __init__(self): self.cmd=CommandHandler() def Preprocess(self,text): cmd=f'wmic {text} list /format:csv' Command_res=self.cmd.getCmdOutput(cmd) ...
30.75
60
0.668293
d56e0d3b57f6eff455c3bad8993cd1ea9b6b8faf
994
py
Python
tests/unit/types/test_repr_str.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
15,179
2020-04-28T10:23:56.000Z
2022-03-31T14:35:25.000Z
tests/unit/types/test_repr_str.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
3,912
2020-04-28T13:01:29.000Z
2022-03-31T14:36:46.000Z
tests/unit/types/test_repr_str.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1,955
2020-04-28T10:50:49.000Z
2022-03-31T12:28:34.000Z
import numpy as np import pytest from jina import Document from jina.types.arrays.chunk import ChunkArray from jina.types.arrays.match import MatchArray from jina.types.ndarray.generic import NdArray from jina.types.request import Request from jina.types.score import NamedScore @pytest.mark.parametrize( 'obj', ...
22.590909
66
0.620724
d56e5e553514a4ca2e9e50c79efe7d9e26ac787d
5,698
py
Python
alipay/aop/api/domain/AlipayFinancialnetAuthPaymentNotifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayFinancialnetAuthPaymentNotifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayFinancialnetAuthPaymentNotifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayFinancialnetAuthPaymentNotifyModel(object): def __init__(self): self._basic_amount = None self._benefit_amount = None self._biz_status = None self._commodity...
32.375
83
0.607933
d56e8ac463969684cb38b8a48817c3db1165c289
6,196
py
Python
hw/hw03/hw03.py
suvix/cs61a-fa19
53a0ecf29d13fc13113894255b6422eba0f82832
[ "MIT" ]
null
null
null
hw/hw03/hw03.py
suvix/cs61a-fa19
53a0ecf29d13fc13113894255b6422eba0f82832
[ "MIT" ]
null
null
null
hw/hw03/hw03.py
suvix/cs61a-fa19
53a0ecf29d13fc13113894255b6422eba0f82832
[ "MIT" ]
null
null
null
from operator import sub, mul HW_SOURCE_FILE = __file__ def num_eights(pos): """Returns the number of times 8 appears as a digit of pos. >>> num_eights(3) 0 >>> num_eights(8) 1 >>> num_eights(88888888) 8 >>> num_eights(2638) 1 >>> num_eights(86380) 2 >>> num_eights(123...
25.186992
114
0.581666
d56e926c9ab9da7f09d6496cacd42a0430d46ce7
910
py
Python
game/tests/test_models.py
DanielPDWalker/blacksentryclone
6d5cb5b278e332662de9bcd5d92e8463dece93a0
[ "MIT" ]
null
null
null
game/tests/test_models.py
DanielPDWalker/blacksentryclone
6d5cb5b278e332662de9bcd5d92e8463dece93a0
[ "MIT" ]
5
2021-03-30T14:03:20.000Z
2021-09-22T19:26:40.000Z
game/tests/test_models.py
DanielPDWalker/blacksentryclone
6d5cb5b278e332662de9bcd5d92e8463dece93a0
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from game.models import Player, Enemy class TestGameModels(TestCase): def setUp(self): self.test_user = User.objects.create( password='qwerty', username='djangodango', email='dandandjangodan@...
28.4375
85
0.673626
d56eb0aed82da1ef9b4f5b581173ef3944f7d249
15,308
py
Python
db/Updater/classes_tests/emd_entry_test.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
db/Updater/classes_tests/emd_entry_test.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
db/Updater/classes_tests/emd_entry_test.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
''' Created on 18 mar. 2019 @author: luis98 ''' from classes.emd_entry import Emd_entry import pytest from pytest_postgresql import factories # Import the ability to use postgresql emd_entry = Emd_entry(None, None, None, None, None, None, None, None, None, None, None, None, ...
27.681736
104
0.627384
d56eb74ca5a48dd92d0274a0fcf5627037bec5a1
143,046
py
Python
src/sardana/taurus/core/tango/sardana/pool.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
null
null
null
src/sardana/taurus/core/tango/sardana/pool.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
null
null
null
src/sardana/taurus/core/tango/sardana/pool.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
37.485849
106
0.615921
d56ed32f8b69af9afa698cb76dc70ccc5fd7d422
2,125
py
Python
client/lab-gateway/azext_lab_gateway/_client_factory.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
null
null
null
client/lab-gateway/azext_lab_gateway/_client_factory.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
1
2022-01-30T04:05:08.000Z
2022-01-30T04:05:08.000Z
client/lab-gateway/azext_lab_gateway/_client_factory.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.636364
94
0.739765
d56ed48244c0e317d30c832c0f5cb36d7c35e70d
614
py
Python
examples/multiple_instance.py
kemingy/flaskerk
4d29761a876a267a48946d318efbfdcdcdf95806
[ "MIT" ]
25
2019-08-20T10:34:41.000Z
2021-06-01T07:48:14.000Z
examples/multiple_instance.py
assem-ch/flaskerk
3d348b8f081623545064b768c2b3679b9a06acbd
[ "MIT" ]
10
2019-08-28T11:21:30.000Z
2020-01-14T09:57:07.000Z
examples/multiple_instance.py
assem-ch/flaskerk
3d348b8f081623545064b768c2b3679b9a06acbd
[ "MIT" ]
5
2019-10-03T10:23:49.000Z
2020-03-03T09:01:44.000Z
from flask import Flask, request, jsonify from flaskerk import Flaskerk from pydantic import BaseModel class Query(BaseModel): text: str app = Flask(__name__) api = Flaskerk() another = Flaskerk(ui='swagger', mode='strict') @app.route('/api/classify') @api.validate(query=Query) def classify(): print(reque...
16.594595
47
0.687296
d56eeaeddf87f530e859abda96f32dee5d5d0ccc
449
py
Python
tests/hardware/__init__.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
2
2021-05-22T00:04:20.000Z
2021-11-17T11:21:46.000Z
tests/hardware/__init__.py
bpapajewski/qupulse
c3969a4fa9eabe69c1143ad16e6e3ca5fb9c068e
[ "MIT" ]
null
null
null
tests/hardware/__init__.py
bpapajewski/qupulse
c3969a4fa9eabe69c1143ad16e6e3ca5fb9c068e
[ "MIT" ]
null
null
null
"""Import dummy packages for non-available drivers""" from tests.hardware.dummy_modules import import_package try: import atsaverage except ImportError: atsaverage = import_package('atsaverage') try: import pyvisa except ImportError: pyvisa = import_package('pyvisa') try: import pytabor except Im...
20.409091
55
0.746102
d56efdae0efb1add9dd3fab1bace8cb3a76cc44c
704
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/Header/header/models/_auto_rest_swagger_bat_header_service_enums.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/legacy/Expected/AcceptanceTests/Header/header/models/_auto_rest_swagger_bat_header_service_enums.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/legacy/Expected/AcceptanceTests/Header/header/models/_auto_rest_swagger_bat_header_service_enums.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 may ...
37.052632
94
0.603693
d56f1682c31ce8048e74391adff42f7825775c3c
9,786
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-07-15T09:50:14.000Z
2020-07-15T09:50:14.000Z
third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Pull latest revisions of a W3C test repo and make a local commit.""" import argparse from webkitpy.common.webkit_finder import WebKitFinder # Import de...
43.493333
149
0.622318
d56f466ae517edcf297c6e19b32604937bd7c8e0
2,869
py
Python
socialtracker/__init__.py
RyanSquared/social-tracker
39d09a121c292c005a88c31f86f01e3af6f9cf21
[ "MIT" ]
1
2020-04-15T08:28:38.000Z
2020-04-15T08:28:38.000Z
socialtracker/__init__.py
RyanSquared/social-tracker
39d09a121c292c005a88c31f86f01e3af6f9cf21
[ "MIT" ]
5
2020-04-14T09:10:21.000Z
2022-03-11T23:11:44.000Z
socialtracker/__init__.py
RyanSquared/social-tracker
39d09a121c292c005a88c31f86f01e3af6f9cf21
[ "MIT" ]
null
null
null
"Monitor social networks such as Twitter and Instagram." import logging import threading import six import json from socialtracker.base import SocialTracker class TrackerThread(threading.Thread): "Thread class for iterating over posts and using callbacks." def __init__(self, tracker): super(TrackerThr...
35.419753
76
0.574068
d56f48790f9c58194ff86a52ac3ba8f9564be6da
1,208
py
Python
lawyerd/products/views.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
lawyerd/products/views.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
lawyerd/products/views.py
loobinsk/customer_project
4f43d4c6db2c99926715ea16451511466569c4ae
[ "MIT" ]
null
null
null
# from django.conf.global_settings import EMAIL_HOST_USER from django.contrib.auth.mixins import LoginRequiredMixin # from django.core.mail import send_mail from django.http import HttpResponseRedirect # from django.shortcuts import render # from django.template.loader import render_to_string from django.urls import re...
32.648649
70
0.765728
d56f4e3dfd3d9d363cb006aca1d0942b082e6972
2,684
py
Python
code/lib/cran/cran_parser.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/lib/cran/cran_parser.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/lib/cran/cran_parser.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
# # Copyright 2017 CNIT - Consorzio Nazionale Interuniversitario per le Telecomunicazioni # # 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/LICE...
32.731707
106
0.629657
d56f5dd72d58705be6bd926b8683153c7513ebaa
628
py
Python
0x07-python-test_driven_development/5-text_indentation.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x07-python-test_driven_development/5-text_indentation.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x07-python-test_driven_development/5-text_indentation.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 """This module has a function that that prints a text with 2 new lines after each of these characters: ., ? and : """ def text_indentation(text): """That prints a text with 2 new lines after each of these characters: .,: Arguments: text (str) -- text Raises: T...
22.428571
60
0.533439
d56f5ef65d05fdbc22b4a4a94c9c9629e65f7249
151
py
Python
management/apps.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
management/apps.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
management/apps.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ManagementConfig(AppConfig): name = 'management' def ready(self): import management.signals
16.777778
34
0.715232
d56fc13b7ab105b69edee81ccf0ebeb465ca106b
406
py
Python
projects/chapter6_try_yourself/6.10.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
projects/chapter6_try_yourself/6.10.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
projects/chapter6_try_yourself/6.10.py
rock-gustavo/Python_Crash_Course
8c08c8f83e70d54f85983777dc29f1094f43f421
[ "MIT" ]
null
null
null
""" 6-10. Favorite Numbers: Modify your program from Exercise 6-2 (page 99) so each person can have more than one favorite number. Then print each person’s name along with their favorite numbers. """ fav_number = {'gustavo': [11, 7], 'clara': [7, 17], 'enzo': [7, 8]} for k, v in fav_number.items(): print(f"{k.ti...
31.230769
118
0.64532
d56fc3aa8b6c7364842361ac33b87b5bd96e10cb
4,032
py
Python
tests/jury/metrics/test_precision.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
64
2021-07-16T08:37:45.000Z
2022-02-05T10:28:27.000Z
tests/jury/metrics/test_precision.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
46
2021-07-14T22:41:56.000Z
2022-03-21T07:51:52.000Z
tests/jury/metrics/test_precision.py
Tiamat-Tech/jury
566ee2ec6b1a1a502f6e13b84f40274b51ef7d48
[ "MIT" ]
9
2021-07-15T21:19:06.000Z
2022-03-17T21:46:15.000Z
import pytest from jury import Jury from jury.metrics import AutoMetric from tests.jury.conftest import get_expected_output from tests.utils import assert_almost_equal_dict @pytest.fixture(scope="module") def jury_language_generation(): metric = AutoMetric.load("precision") return Jury(metrics=metric) @pyt...
35.681416
120
0.851438
d56feef675228632ad00fdfe6234072c46fc4d9d
1,254
py
Python
lang/python/zhao/tokstr.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/zhao/tokstr.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/zhao/tokstr.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
""" My solution for [[http://blog.zhaojie.me/2009/10/code-for-fun-tokenizer.html]] - token split with - - group of token split with -- - shift with ' when have - in token - double '' represent ' in token """ def rmQuote(s): if len(s) > 0 and s[0] == '\'' and s[-1] == '\'': s = s[1:-1] s = s.replace('...
21.62069
91
0.50638