hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797d6f94db047f5a8dd9ebb6c1c7d941ec0ea8a6
113
py
Python
scikits/crab/metrics/__init__.py
ga2arch/crab
773c79889d243f4967b8a030c6bb214bad7e4849
[ "BSD-3-Clause" ]
1
2015-11-05T20:05:48.000Z
2015-11-05T20:05:48.000Z
scikits/crab/metrics/__init__.py
ga2arch/crab
773c79889d243f4967b8a030c6bb214bad7e4849
[ "BSD-3-Clause" ]
null
null
null
scikits/crab/metrics/__init__.py
ga2arch/crab
773c79889d243f4967b8a030c6bb214bad7e4849
[ "BSD-3-Clause" ]
null
null
null
""" Metrics module with score functions, performance metrics and pairwise metrics or distances computation """
18.833333
61
0.787611
797d6fb54f48d27374db66d2f00fbc38c86661ff
7,500
py
Python
tests/test_clipboard.py
aleasto/pyclip
665c6aafc6a7494fee71a176e915dd1b8b4f90e6
[ "Apache-2.0" ]
null
null
null
tests/test_clipboard.py
aleasto/pyclip
665c6aafc6a7494fee71a176e915dd1b8b4f90e6
[ "Apache-2.0" ]
null
null
null
tests/test_clipboard.py
aleasto/pyclip
665c6aafc6a7494fee71a176e915dd1b8b4f90e6
[ "Apache-2.0" ]
null
null
null
import sys, os try: import pyclip as clip except ImportError: # XXX: probably shouldn't do this, but oh well ¯\_(ツ)_/¯ sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import pyclip as clip import pytest from unittest import mock def test_copypaste(): clip.copy('f...
35.377358
100
0.685733
797d708fbcb9ee2ef345ea9c8e4179e13ad385e0
10,220
py
Python
var/spack/repos/builtin/packages/amber/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/amber/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/amber/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 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 * import os import shutil class Amber(Package, CudaPackage): """Amber is a suite of biomolecular s...
44.434783
92
0.645499
797d714f4a7cfbccb99848e1ed3c31d7e383b0b6
8,003
py
Python
json2run/experiment.py
liuq/json2run
5d65de7ebf1247338514c01b5300ce6820029aa0
[ "MIT" ]
null
null
null
json2run/experiment.py
liuq/json2run
5d65de7ebf1247338514c01b5300ce6820029aa0
[ "MIT" ]
null
null
null
json2run/experiment.py
liuq/json2run
5d65de7ebf1247338514c01b5300ce6820029aa0
[ "MIT" ]
null
null
null
import json from threading import * from . persistent import * from . parameterexpression import * from time import sleep import random from datetime import datetime import logging as log class ExperimentRunner(Thread): """Experiment consumer, handles experiment launching and interruption.""" def __init__(se...
34.200855
107
0.568037
797d7158655e061d320c424ece050f49c3ffa5f3
4,375
py
Python
benchmark/startQiskit_Class1394.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class1394.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class1394.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=54 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
31.702899
80
0.610514
797d71b06c70dac78f281cc186634e2f6bb25418
12,360
py
Python
tasks/tests.py
Xcov19/Django-CRM
ed88b38525b5a049b15335277cd6220980ad96e3
[ "MIT" ]
2
2020-07-28T12:32:57.000Z
2020-08-20T11:47:07.000Z
tasks/tests.py
MrNevil/Django-CRM
8cb9803748bb3e03f843c47413232185f78261f2
[ "MIT" ]
null
null
null
tasks/tests.py
MrNevil/Django-CRM
8cb9803748bb3e03f843c47413232185f78261f2
[ "MIT" ]
1
2021-12-09T09:38:50.000Z
2021-12-09T09:38:50.000Z
from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase from django.urls import reverse from accounts.models import Account from common.models import Attachments, Comment, User, Company from tasks.models import Task from teams.models import Teams class TaskCreateTest(object): ...
38.148148
88
0.631634
797d72ed7df3b8aea9be6e8426d85c0e24de9c93
4,043
py
Python
src/OTLMOW/OTLModel/Classes/DynBordExternePU.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Classes/DynBordExternePU.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Classes/DynBordExternePU.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.PU import PU from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField from OTLMOW.OTLModel.Datatypes.DtcDocument import DtcDocument from OTLMOW.OTLModel.Datatypes.KlDynBordExternePUMerk import KlDynBordE...
48.710843
200
0.598565
797d72fa83afee21e44788440dee17bb90c6c660
839
py
Python
Ages/migrations/0001_initial.py
dev-great/Django-Real-Estate-Management-Webapp
a20b33567d7b1b7217f9170ee2a5da328d307fd0
[ "CNRI-Python" ]
4
2021-07-24T13:59:36.000Z
2021-12-12T13:57:26.000Z
Ages/migrations/0001_initial.py
GR8T/Django-Real-Estate-Management-Webapp
a20b33567d7b1b7217f9170ee2a5da328d307fd0
[ "CNRI-Python" ]
null
null
null
Ages/migrations/0001_initial.py
GR8T/Django-Real-Estate-Management-Webapp
a20b33567d7b1b7217f9170ee2a5da328d307fd0
[ "CNRI-Python" ]
1
2021-07-27T10:10:46.000Z
2021-07-27T10:10:46.000Z
# Generated by Django 3.2.6 on 2021-11-27 13:40 import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AgesVerification', fields=[ ...
31.074074
126
0.592372
797d7336306fbbf7d1d9c069682df7ddde32f44a
68,272
py
Python
dev/Tools/build/waf-1.7.13/lmbrwaflib/qt5.py
brianherrera/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Tools/build/waf-1.7.13/lmbrwaflib/qt5.py
ArchitectureStudios/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Tools/build/waf-1.7.13/lmbrwaflib/qt5.py
ArchitectureStudios/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006-2015 (ita) # Modifications copyright Amazon.com, Inc. or its affiliates. """ Tool Description ================ This tool helps with finding Qt5 tools and libraries, and also provides syntactic sugar for using Qt5 tools. The following snippet illustrates t...
38.076966
184
0.610558
797d73a14e4936ac33bd380de8d3d03ff71f8215
370
py
Python
learn/control/controller.py
natolambert/dynamicslearn
ad32bf12ff0283884c4b0bcdcbb30ce680446208
[ "MIT" ]
32
2019-09-13T21:40:05.000Z
2022-01-22T11:35:25.000Z
learn/control/controller.py
natolambert/dynamics-learn
ad32bf12ff0283884c4b0bcdcbb30ce680446208
[ "MIT" ]
7
2019-09-05T00:25:46.000Z
2019-09-05T00:51:53.000Z
learn/control/controller.py
natolambert/dynamicslearn
ad32bf12ff0283884c4b0bcdcbb30ce680446208
[ "MIT" ]
12
2019-10-09T01:34:42.000Z
2021-07-21T22:07:01.000Z
class Controller: def __init__(self, cfg): self.internal = 0 # self.update_period = cfg.policy.params.period self.last_action = None def reset(self): raise NotImplementedError("Subclass must implement this function") def get_action(self, state): raise NotImplement...
24.666667
74
0.678378
797d73d9c382fdc3401deec401cdd3435ff84072
1,343
py
Python
test/test_get_address_details_r.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
test/test_get_address_details_r.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
test/test_get_address_details_r.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
34.435897
484
0.758749
797d73fd37a73be8fb58afe3db2d062d6c6b6451
9,186
py
Python
rcon/hooks.py
charlesLoiseau/hll_rcon_tool
8cbf77d4733f2fa09830e70dce743d6c3a93dbfc
[ "MIT" ]
null
null
null
rcon/hooks.py
charlesLoiseau/hll_rcon_tool
8cbf77d4733f2fa09830e70dce743d6c3a93dbfc
[ "MIT" ]
null
null
null
rcon/hooks.py
charlesLoiseau/hll_rcon_tool
8cbf77d4733f2fa09830e70dce743d6c3a93dbfc
[ "MIT" ]
null
null
null
import logging import os from functools import wraps from discord_webhook import DiscordEmbed from rcon.recorded_commands import RecordedRcon from rcon.player_history import ( save_player, save_start_player_session, save_end_player_session, safe_save_player_action, get_player, _get_set_player,...
33.525547
111
0.615611
797d7403936a735978dcc74af837f52c1255dbff
3,718
py
Python
server/bingo_server.py
AndrewWasHere/buzzwordbing
d4d45b18258f70453fef9ba74081da3b2aa90a1e
[ "BSD-3-Clause" ]
null
null
null
server/bingo_server.py
AndrewWasHere/buzzwordbing
d4d45b18258f70453fef9ba74081da3b2aa90a1e
[ "BSD-3-Clause" ]
2
2020-01-21T00:38:12.000Z
2020-01-21T00:49:10.000Z
server/bingo_server.py
AndrewWasHere/buzzwordbing
d4d45b18258f70453fef9ba74081da3b2aa90a1e
[ "BSD-3-Clause" ]
null
null
null
# # Copyright 2019 Andrew Lin. All rights reserved. # # This software is released under the BSD 3-clause license. See LICENSE.txt or # https://opensource.org/licenses/BSD-3-Clause for more information. # from flask import Flask, request, render_template, abort, redirect from bingo.game import Game class BingoServer(F...
29.507937
95
0.623722
797d740cbff67418638d743df80a812016c4d301
40,596
py
Python
Code/complexnn/conv.py
RickyMexx/3D-Sound-Localization
43fd4d2f341fea91ba48f82cd519a65c82ec1cb2
[ "Apache-2.0" ]
13
2020-03-27T10:33:17.000Z
2022-02-05T09:44:07.000Z
complexnn/conv.py
FedericaCoppa/Neural-Network-Project-QUATERNION-SELD-TCN
8ba9a05e52fecce68864919464f1d495aed31896
[ "RSA-MD" ]
4
2020-09-25T22:38:22.000Z
2022-02-09T23:37:53.000Z
complexnn/conv.py
FedericaCoppa/Neural-Network-Project-QUATERNION-SELD-TCN
8ba9a05e52fecce68864919464f1d495aed31896
[ "RSA-MD" ]
1
2020-03-28T10:52:24.000Z
2020-03-28T10:52:24.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Contributors : Titouan Parcollet # Initial Authors: Chiheb Trabelsi from keras import backend as K from keras import activations, initializers, regularizers, constraints from keras.layers import Lambda, Layer, InputSpec, Convolution1D, Convolution2D, add, multip...
47.985816
128
0.606143
797d752077424bfed5b7d76207e62e8756ed49b9
6,326
py
Python
rescape_region/model_helpers.py
calocan/rescape-region
8cb0c4d5e2f4c92939eb9a30473808decdb4bef2
[ "MIT" ]
1
2021-05-08T12:04:23.000Z
2021-05-08T12:04:23.000Z
rescape_region/model_helpers.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
15
2021-04-06T18:05:04.000Z
2022-03-12T00:22:35.000Z
rescape_region/model_helpers.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
null
null
null
import importlib from django.apps import apps from django.conf import settings from django.core.exceptions import ImproperlyConfigured from rescape_python_helpers import ewkt_from_feature from rescape_python_helpers.geospatial.geometry_helpers import ewkt_from_feature_collection from rescape_python_helpers import ramd...
32.111675
144
0.66614
797d7550020505d2b76cf6e33774a49fa0ae556f
16,660
py
Python
tests/queries/models.py
romulorosa/django
12d0567aa5e82322543f0c0c126ba18c91a1e439
[ "PSF-2.0", "BSD-3-Clause" ]
1
2018-09-22T20:35:14.000Z
2018-09-22T20:35:14.000Z
tests/queries/models.py
seanfagan/django
66bbde6819586cc3a75630e12e569dc8ae72f211
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/queries/models.py
seanfagan/django
66bbde6819586cc3a75630e12e569dc8ae72f211
[ "PSF-2.0", "BSD-3-Clause" ]
1
2017-08-03T13:06:19.000Z
2017-08-03T13:06:19.000Z
""" Various complex queries that have been problematic in the past. """ import threading from django.db import models class DumbCategory(models.Model): pass class ProxyCategory(DumbCategory): class Meta: proxy = True class NamedCategory(DumbCategory): name = models.CharField(max_length=10) ...
23.698435
103
0.696879
797d764f7fe4d0e45eed60c9847c130ba2117cdf
424
py
Python
task3.py
reemmohab/evolutionpython
5594aed2045622bbf150241c0a4065c25503df91
[ "Apache-2.0" ]
null
null
null
task3.py
reemmohab/evolutionpython
5594aed2045622bbf150241c0a4065c25503df91
[ "Apache-2.0" ]
null
null
null
task3.py
reemmohab/evolutionpython
5594aed2045622bbf150241c0a4065c25503df91
[ "Apache-2.0" ]
null
null
null
# name = input("Type your name: ") # name = "Reem" # print(name + " Sleeping") x = input("x: ") y = input("y: ") operation = input("select operation (+ - / *)") if operation == "+": result = float(x) + int(y) if operation == "-": result = float(x) - int(y) if operation == "/": result = float(x) / int(y...
17.666667
47
0.549528
797d766b972f0d8b7107970e74123cc0c61e6bd1
1,300
py
Python
Code/ml_pipeline/utils/Logging.py
anku18069/Machine-Olf-Action
f58636a703e2a29fdd39436c47400ebbc21542d8
[ "MIT" ]
1
2021-01-16T11:58:44.000Z
2021-01-16T11:58:44.000Z
Code/ml_pipeline/utils/Logging.py
anku18069/Machine-Olf-Action
f58636a703e2a29fdd39436c47400ebbc21542d8
[ "MIT" ]
1
2020-12-20T13:41:55.000Z
2020-12-20T13:41:55.000Z
Code/ml_pipeline/utils/Logging.py
anku18069/Machine-Olf-Action
f58636a703e2a29fdd39436c47400ebbc21542d8
[ "MIT" ]
2
2020-10-02T19:58:58.000Z
2021-05-07T00:15:47.000Z
import logging import os # logger = logging.getLogger('main_logger') if len(logger.handlers) == 0: logger.setLevel(logging.INFO) formatter = logging.Formatter('%(asctime)s:%(levelname)s:%(message)s') stream_handler = logging.StreamHandler() stream_handler.setFormatter(formatter) logger.addHandler(...
32.5
78
0.699231
797d7834162aaa75b3dbbd45c1019f41b0461598
3,349
py
Python
openapi-python-client/openapi_client/models/count_result_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/count_result_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/count_result_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Camunda BPM REST API OpenApi Spec for Camunda BPM REST API. # noqa: E501 The version of the OpenAPI document: 7.13.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration clas...
27.227642
80
0.568827
797d78dc8a7e7f2b8677fa417daf060e2f5479f3
2,026
py
Python
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
7
2021-02-26T06:12:28.000Z
2022-03-27T17:06:41.000Z
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
21
2020-09-18T14:03:16.000Z
2022-02-14T10:48:40.000Z
.pre-commit/check_version.py
JPchico/aiida-lammps
8f618541784bbd6360efc653350570cf76398e83
[ "MIT" ]
5
2018-03-02T23:49:41.000Z
2020-04-17T05:35:19.000Z
"""Validate consistency of versions and dependencies. Validates consistency of setup.json and * environment.yml * version in aiida_lammps/__init__.py """ import json import os import sys import click FILENAME_SETUP_JSON = "setup.json" SCRIPT_PATH = os.path.split(os.path.realpath(__file__))[0] ROOT_DIR = os.path.j...
28.138889
118
0.661895
797d7965bebace892f43a368c23c5ac2d26f18ba
19,905
py
Python
neptune/new/internal/backends/hosted_file_operations.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
13
2019-02-11T13:18:38.000Z
2019-12-26T06:26:07.000Z
neptune/new/internal/backends/hosted_file_operations.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
39
2019-03-07T13:40:10.000Z
2020-01-07T17:19:24.000Z
neptune/new/internal/backends/hosted_file_operations.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
4
2019-02-11T13:07:23.000Z
2019-11-26T08:20:24.000Z
# # Copyright (c) 2020, Neptune Labs Sp. z o.o. # # 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 agr...
34.859895
98
0.635368
797d7db602b574ed13098b0e33a80c90e86c4a6e
23,239
py
Python
ui/GraphicalComponents.py
MrAttoAttoAtto/CircuitSimulatorC2
4d821c86404fe3271363fd8c1438e4ca29c17a13
[ "MIT" ]
2
2020-02-25T14:46:19.000Z
2020-06-25T07:58:33.000Z
ui/GraphicalComponents.py
MrAttoAttoAtto/CircuitSimulatorC2
4d821c86404fe3271363fd8c1438e4ca29c17a13
[ "MIT" ]
null
null
null
ui/GraphicalComponents.py
MrAttoAttoAtto/CircuitSimulatorC2
4d821c86404fe3271363fd8c1438e4ca29c17a13
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt, QRectF, QPointF from PyQt5.QtGui import QPen, QPolygonF, QPainterPathStroker, QPainterPath, QFont, QColor, QBrush from PyQt5.QtWidgets import QDialog, QGridLayout, QLabel, QLineEdit, QDialogButtonBox, QMessageBox, QGraphicsItem, \ QGraphicsRectItem, QGraphicsLineItem, QGraphicsEllipseIt...
35.973684
120
0.605491
797d7df4725f970eea553d3da8b38e8bd9b799ca
3,950
py
Python
test/test_unit_typing.py
khillion/python-cwlgen
fc3911e9936c46ec2fa343b019b27001ad0ad5b9
[ "MIT" ]
33
2017-01-25T14:41:28.000Z
2020-03-30T20:00:51.000Z
test/test_unit_typing.py
khillion/python-cwlgen
fc3911e9936c46ec2fa343b019b27001ad0ad5b9
[ "MIT" ]
47
2017-05-11T15:17:57.000Z
2020-06-09T13:16:32.000Z
test/test_unit_typing.py
khillion/python-cwlgen
fc3911e9936c46ec2fa343b019b27001ad0ad5b9
[ "MIT" ]
12
2017-03-31T19:15:18.000Z
2020-03-30T05:47:11.000Z
import unittest from cwlgen import get_type_dict from cwlgen.common import parse_type, CwlTypes, CommandInputArraySchema import logging class TestParamTyping(unittest.TestCase): def test_types(self): for cwl_type in CwlTypes.NON_NULL_TYPES: self.assertEqual(parse_type(cwl_type), cwl_type) ...
37.619048
111
0.668861
797d7e03dd4e0f3f19f4fcbb303f8f841acafb4b
3,596
py
Python
conans/test/functional/toolchains/cmake/test_cmake_toolchain_win_clang.py
JoachimKuebart-TomTom/conan
bf716c094d6b3f5acd727eed3c4b4fe1ad9e1c00
[ "MIT" ]
null
null
null
conans/test/functional/toolchains/cmake/test_cmake_toolchain_win_clang.py
JoachimKuebart-TomTom/conan
bf716c094d6b3f5acd727eed3c4b4fe1ad9e1c00
[ "MIT" ]
null
null
null
conans/test/functional/toolchains/cmake/test_cmake_toolchain_win_clang.py
JoachimKuebart-TomTom/conan
bf716c094d6b3f5acd727eed3c4b4fe1ad9e1c00
[ "MIT" ]
null
null
null
import platform import textwrap import pytest from conans.test.assets.cmake import gen_cmakelists from conans.test.assets.sources import gen_function_cpp from conans.test.utils.tools import TestClient from conans.util.files import save @pytest.fixture def client(): c = TestClient() save(c.cache.new_config_p...
34.912621
92
0.660456
797d7e0c0e9e582891b215b3603936803ca03d60
12,404
py
Python
usr/local/lib/python3.6/dist-packages/jose/backends/cryptography_backend.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
42
2019-03-01T09:51:13.000Z
2021-07-22T12:22:49.000Z
usr/local/lib/python3.6/dist-packages/jose/backends/cryptography_backend.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
3
2020-06-06T01:17:20.000Z
2021-06-10T22:33:34.000Z
usr/local/lib/python3.6/dist-packages/jose/backends/cryptography_backend.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
10
2019-12-25T20:42:37.000Z
2021-11-17T15:19:00.000Z
import six import ecdsa from ecdsa.util import sigdecode_string, sigencode_string, sigdecode_der, sigencode_der from jose.backends.base import Key from jose.utils import base64_to_long, long_to_base64 from jose.constants import ALGORITHMS from jose.exceptions import JWKError from cryptography.exceptions import Invali...
36.482353
117
0.586666
797d7ebab32c634be50afd05122be32f8788f698
269
py
Python
tbgi.py
evdhout/tbgi
0612b34f23fc28289adde415085ce82cf2a04922
[ "MIT" ]
null
null
null
tbgi.py
evdhout/tbgi
0612b34f23fc28289adde415085ce82cf2a04922
[ "MIT" ]
null
null
null
tbgi.py
evdhout/tbgi
0612b34f23fc28289adde415085ce82cf2a04922
[ "MIT" ]
null
null
null
#!python3 from controllers.options_controller import OptionsController from controllers.window_controller import WindowController if __name__ == '__main__': options = OptionsController(program_type='window').options windows = WindowController(options=options)
33.625
62
0.821561
797d7fff8a1e99e57f834ebcbf3117cd6dea5881
10,789
py
Python
train/compute/python/workloads/pytorch/split_table_batched_embeddings_ops.py
caogao/param
9de2602c894df264a004c352ee16abc14f93da76
[ "MIT" ]
34
2020-10-07T23:55:19.000Z
2022-03-15T03:18:23.000Z
train/compute/python/workloads/pytorch/split_table_batched_embeddings_ops.py
caogao/param
9de2602c894df264a004c352ee16abc14f93da76
[ "MIT" ]
33
2020-10-09T23:57:45.000Z
2022-03-24T08:15:35.000Z
train/compute/python/workloads/pytorch/split_table_batched_embeddings_ops.py
caogao/param
9de2602c894df264a004c352ee16abc14f93da76
[ "MIT" ]
16
2020-10-08T12:43:08.000Z
2022-03-04T17:09:15.000Z
import copy import gc import os from typing import Any from typing import ( Dict, Optional, ) from typing import List from typing import Tuple import numpy as np import torch from fbgemm_gpu.split_table_batched_embeddings_ops import ( CacheAlgorithm, OptimType, SparseType, PoolingMode, Embe...
33.506211
109
0.591065
797d801742550cd74a7dd12dd58c81fec063edb4
5,584
py
Python
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1c_for_PyTorch/timm/optim/adamw.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1c_for_PyTorch/timm/optim/adamw.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_classification/Gluon_ResNet50_v1c_for_PyTorch/timm/optim/adamw.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2019 Ross Wightman # 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...
42.30303
116
0.598675
797d817d497521233b494ae086b39a2c0ad9f4ff
4,788
py
Python
scan_bucket.py
pius-grainger/bucket-antivirus-function
b24d372689f4273bf85e83094212eb31a3105346
[ "Apache-2.0" ]
null
null
null
scan_bucket.py
pius-grainger/bucket-antivirus-function
b24d372689f4273bf85e83094212eb31a3105346
[ "Apache-2.0" ]
null
null
null
scan_bucket.py
pius-grainger/bucket-antivirus-function
b24d372689f4273bf85e83094212eb31a3105346
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # Upside Travel, Inc. # # 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 app...
37.116279
96
0.712615
797d82beb75c4e276402ce8524b743a802e63921
3,874
py
Python
tfsnippet/layers/convolutional/pooling.py
QianLiGui/tfsnippet
63adaf04d2ffff8dec299623627d55d4bacac598
[ "MIT" ]
63
2018-06-06T11:56:40.000Z
2022-03-22T08:00:59.000Z
tfsnippet/layers/convolutional/pooling.py
QianLiGui/tfsnippet
63adaf04d2ffff8dec299623627d55d4bacac598
[ "MIT" ]
39
2018-07-04T12:40:53.000Z
2022-02-09T23:48:44.000Z
tfsnippet/layers/convolutional/pooling.py
QianLiGui/tfsnippet
63adaf04d2ffff8dec299623627d55d4bacac598
[ "MIT" ]
34
2018-06-25T09:59:22.000Z
2022-02-23T12:46:33.000Z
import tensorflow as tf from tensorflow.contrib.framework import add_arg_scope from tfsnippet.ops import flatten_to_ndims, unflatten_from_ndims from tfsnippet.utils import validate_enum_arg, add_name_arg_doc from .utils import validate_conv2d_strides_tuple, validate_conv2d_input __all__ = ['avg_pool2d', 'max_pool2d'...
32.830508
80
0.658493
797d8456dde50231f29635015cd900bb1d8b8c4a
2,954
py
Python
skyportal_spatial/none.py
lpsinger/skyportal_spatial
b6380c0c2201dfc2febccc0b67b19085428094cc
[ "BSD-3-Clause" ]
null
null
null
skyportal_spatial/none.py
lpsinger/skyportal_spatial
b6380c0c2201dfc2febccc0b67b19085428094cc
[ "BSD-3-Clause" ]
null
null
null
skyportal_spatial/none.py
lpsinger/skyportal_spatial
b6380c0c2201dfc2febccc0b67b19085428094cc
[ "BSD-3-Clause" ]
1
2020-07-14T01:03:23.000Z
2020-07-14T01:03:23.000Z
import numpy as np import sqlalchemy as sa from astropy.coordinates import SkyCoord from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.ext.hybrid import hybrid_method from sqlalchemy.dialects import postgresql as psql DEG_TO_RAD = np.pi / 180. RADIANS_PER_ARCSEC = DEG_TO_RAD / 3600. class Unindexe...
37.871795
89
0.672647
797d852bd96c524070fef846d7fa4406b0c7be4a
17,567
py
Python
quantum gravity/Getting Started/readligo.py
DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
7adab3877fc1d3f1d5f57e6c1743dae8f76f72c5
[ "Apache-2.0" ]
3,266
2017-08-06T16:51:46.000Z
2022-03-30T07:34:24.000Z
quantum gravity/Getting Started/readligo.py
nuhaltinsoy/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
6017441f2d476f9c6c568dd886da43c6c0fd89bd
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
quantum gravity/Getting Started/readligo.py
nuhaltinsoy/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
6017441f2d476f9c6c568dd886da43c6c0fd89bd
[ "Apache-2.0" ]
1,449
2017-08-06T17:40:59.000Z
2022-03-31T12:03:24.000Z
""" readligo.py updated: January 15, 2018 by: Agata Trovato what has been modified: minor corrections to make it usable with python 3 (tab replaced with spaces, argument of 'reshape' integer, forced the integer conversion also for slices) Version 0.3 January 10, 2017 Jonah Kanner, Roy Williams, and Alan Weinstein U...
33.333966
114
0.617408
797d85d0629c94b23159ea330746bbead08e6e48
108,210
py
Python
Lib/test/test_re.py
askervin/cpython
001fee14e0f2ba5f41fb733adc69d5965925a094
[ "CNRI-Python-GPL-Compatible" ]
1
2019-02-25T09:42:36.000Z
2019-02-25T09:42:36.000Z
Lib/test/test_re.py
askervin/cpython
001fee14e0f2ba5f41fb733adc69d5965925a094
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/test/test_re.py
askervin/cpython
001fee14e0f2ba5f41fb733adc69d5965925a094
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
from test.support import (gc_collect, bigmemtest, _2G, cpython_only, captured_stdout) import locale import re import sre_compile import string import unittest import warnings from re import Scanner from weakref import proxy # Misc tests from Tim Peters' re.doc # WARNING: Don't change details...
47.027379
97
0.518898
797d86d1600df49e62df7fc813ba8a74a606eea9
1,823
py
Python
ThermalRadiance.py
matteoschiav/lowtran
5c34d9bff4882de58a69d9d976f73b680dcea866
[ "MIT" ]
44
2019-05-24T08:42:51.000Z
2022-03-21T08:06:11.000Z
ThermalRadiance.py
matteoschiav/lowtran
5c34d9bff4882de58a69d9d976f73b680dcea866
[ "MIT" ]
10
2019-08-14T07:50:53.000Z
2022-03-29T02:14:32.000Z
ThermalRadiance.py
matteoschiav/lowtran
5c34d9bff4882de58a69d9d976f73b680dcea866
[ "MIT" ]
18
2019-06-21T07:59:45.000Z
2022-02-23T00:47:56.000Z
#!/usr/bin/env python """ Total Radiance = atmosphere rad. or boundary rad. + atm. scat. or boundary refl. Lowtran outputs W cm^-2 ster^-1 micron^-1 we want photons cm^-2 s^-1 ster^-1 micron^-1 1 W cm^-2 = 10000 W m^-2 h = 6.62607004e-34 m^2 kg s^-1 I: irradiance Np: numer of photons Np = (Ilowtran*10000)*lambda_m/(...
24.306667
86
0.584202
797d87dc1e1d37d507753a6d6c0aaf33e284062a
252
py
Python
ui/ComplexSprite.py
LeoTheMighty/ApocalypseLater
f65aacee6ab4115c11fa95a29689ac8c3d3ae533
[ "MIT" ]
null
null
null
ui/ComplexSprite.py
LeoTheMighty/ApocalypseLater
f65aacee6ab4115c11fa95a29689ac8c3d3ae533
[ "MIT" ]
null
null
null
ui/ComplexSprite.py
LeoTheMighty/ApocalypseLater
f65aacee6ab4115c11fa95a29689ac8c3d3ae533
[ "MIT" ]
null
null
null
import pygame class ComplexSprite(pygame.sprite.Sprite): def __init__(self, groups=[]): super().__init__(groups) self.sprite_groups = [] def add_sprite_group(self, group): self.sprite_groups.append(group)
21
43
0.638889
797d8828975bbe766c4020c3c030240011ccb7bf
780
py
Python
AoC2020/aoc20-03-code.py
pascalddg/AoC
82558aeb073efd475943da0040bbd538e7f75eff
[ "MIT" ]
null
null
null
AoC2020/aoc20-03-code.py
pascalddg/AoC
82558aeb073efd475943da0040bbd538e7f75eff
[ "MIT" ]
4
2021-01-06T10:19:10.000Z
2021-01-06T22:02:28.000Z
AoC2020/aoc20-03-code.py
pascalddg/AoC
82558aeb073efd475943da0040bbd538e7f75eff
[ "MIT" ]
null
null
null
import math def load_data(): with open("aoc20-03-data.txt", "r") as f: data = f.read().splitlines() # read file and removes end of line character print("Loaded lines:", len(data)) return data def count_trees(forest, step_x, step_y): pattern_size = len(forest[0]) counter = 0 x = 0 ...
22.941176
83
0.597436
797d883e0c483ce2e553bc5690afa55e10860a77
10,534
py
Python
quilt/db.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
4
2016-12-28T23:28:02.000Z
2022-03-15T02:46:10.000Z
quilt/db.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
17
2017-02-24T09:16:14.000Z
2019-04-08T08:37:17.000Z
quilt/db.py
jayvdb/python-quilt
f09799e28ac3ced07dff91b1b677b3db00781ae9
[ "MIT" ]
2
2017-01-03T00:55:59.000Z
2019-03-28T15:42:12.000Z
# vim: fileencoding=utf-8 et sw=4 ts=4 tw=80: # python-quilt - A Python implementation of the quilt patch system # # Copyright (C) 2012 - 2017 Björn Ricks <bjoern.ricks@gmail.com> # # See LICENSE comming with the source of python-quilt for details. from __future__ import print_function import getopt import os.path i...
31.444776
80
0.591133
797d88ab3f9747e9debc7dacab9fcc9efaeb6f7e
36,553
py
Python
library/python/pytest/plugins/ya.py
TheBits/catboost
0fe3e7523f6dc7301345b5847595e49d5dbcacb8
[ "Apache-2.0" ]
1
2021-11-04T07:13:15.000Z
2021-11-04T07:13:15.000Z
library/python/pytest/plugins/ya.py
TheBits/catboost
0fe3e7523f6dc7301345b5847595e49d5dbcacb8
[ "Apache-2.0" ]
null
null
null
library/python/pytest/plugins/ya.py
TheBits/catboost
0fe3e7523f6dc7301345b5847595e49d5dbcacb8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import re import sys import os import logging import fnmatch import json import time import collections import py import pytest import _pytest import _pytest.mark import signal import inspect import six from yatest_lib import test_splitter try: import resource except ImportError: resource = N...
38.639535
178
0.645474
797d89c0fbf17328a05f4cfeadfa71e5b65cb71a
6,489
py
Python
05-teleop/joy_mapper/joy_mapper/joy_mapper_node.py
mstuettgen/duckietown2
90595beabda92084e05229661c1d80f188f2ebb1
[ "Apache-2.0" ]
11
2018-06-20T23:43:00.000Z
2020-04-27T08:59:47.000Z
05-teleop/joy_mapper/joy_mapper/joy_mapper_node.py
mstuettgen/duckietown2
90595beabda92084e05229661c1d80f188f2ebb1
[ "Apache-2.0" ]
null
null
null
05-teleop/joy_mapper/joy_mapper/joy_mapper_node.py
mstuettgen/duckietown2
90595beabda92084e05229661c1d80f188f2ebb1
[ "Apache-2.0" ]
12
2018-07-13T18:54:48.000Z
2022-01-25T02:18:17.000Z
# Copyright (c) 2018 LG Electronics, Inc. # # 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...
39.090361
149
0.663276
797d8b3064cf24843af1db610c6352f3a465182e
2,992
py
Python
GPy/models/sparse_gp_coregionalized_regression.py
strongh/GPy
775ce9e64c1e8f472083b8f2430134047d97b2fa
[ "BSD-3-Clause" ]
1
2015-08-06T13:47:10.000Z
2015-08-06T13:47:10.000Z
GPy/models/sparse_gp_coregionalized_regression.py
strongh/GPy
775ce9e64c1e8f472083b8f2430134047d97b2fa
[ "BSD-3-Clause" ]
null
null
null
GPy/models/sparse_gp_coregionalized_regression.py
strongh/GPy
775ce9e64c1e8f472083b8f2430134047d97b2fa
[ "BSD-3-Clause" ]
1
2020-02-21T02:40:18.000Z
2020-02-21T02:40:18.000Z
# Copyright (c) 2012 - 2014 the GPy Austhors (see AUTHORS.txt) # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from ..core import SparseGP from ..inference.latent_function_inference import VarDTC from .. import likelihoods from .. import kern from .. import util class SparseGPCoregional...
44.656716
165
0.697527
797d8b6017ecdc89b8d86327a2e8a88ec106fc72
4,525
py
Python
reports/views.py
reallinfo/babybuddy
7fb6e8694a96b4353bea29b53a99cfb976e16f78
[ "BSD-2-Clause" ]
null
null
null
reports/views.py
reallinfo/babybuddy
7fb6e8694a96b4353bea29b53a99cfb976e16f78
[ "BSD-2-Clause" ]
null
null
null
reports/views.py
reallinfo/babybuddy
7fb6e8694a96b4353bea29b53a99cfb976e16f78
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib.auth.mixins import PermissionRequiredMixin from django.views.generic.detail import DetailView from core import models from . import graphs class DiaperChangeLifetimesChildReport(PermissionRequiredMixin, DetailView): """ Graph of diaper "lifetimes" - time between d...
33.029197
78
0.654365
797d8c15f9bdc72e85de9f69b41e33be1cef3fdb
2,308
py
Python
tests/models/validators/v2_2_1/jsd_d0586946be75e0f9f2c170217d45a28.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
tests/models/validators/v2_2_1/jsd_d0586946be75e0f9f2c170217d45a28.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
tests/models/validators/v2_2_1/jsd_d0586946be75e0f9f2c170217d45a28.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center getTaskCount data model. Copyright (c) 2019-2021 Cisco Systems. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without ...
34.969697
82
0.671144
797d8d5fd9c9689c77f0df0e18b4a807b77132e1
3,579
py
Python
ryu/cmd/manager.py
w180112/ryu
aadb6609f585c287b4928db9462baf72c6410718
[ "Apache-2.0" ]
975
2015-01-03T02:30:13.000Z
2020-05-07T14:01:48.000Z
ryu/cmd/manager.py
DiegoRossiMafioletti/ryu
6f906e72c92e10bd0264c9b91a2f7bb85b97780c
[ "Apache-2.0" ]
66
2020-05-22T21:55:42.000Z
2022-03-31T12:35:04.000Z
ryu/cmd/manager.py
DiegoRossiMafioletti/ryu
6f906e72c92e10bd0264c9b91a2f7bb85b97780c
[ "Apache-2.0" ]
763
2015-01-01T03:38:43.000Z
2020-05-06T15:46:09.000Z
#!/usr/bin/env python # # Copyright (C) 2011, 2012 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2011 Isaku Yamahata <yamahata at valinux co jp> # # 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...
30.07563
78
0.673931
797d8d8d25216a47c1e93b29422f08101e265487
5,872
py
Python
idea/migrations/0002_auto__del_field_comment_issue__add_field_comment_idea.py
mikiec84/idea-box
02df9e5130ab4d463ad7f43f7a4a3a51dc640840
[ "CC0-1.0" ]
111
2015-01-05T21:15:31.000Z
2021-08-18T18:07:53.000Z
idea/migrations/0002_auto__del_field_comment_issue__add_field_comment_idea.py
mikiec84/idea-box
02df9e5130ab4d463ad7f43f7a4a3a51dc640840
[ "CC0-1.0" ]
30
2015-02-11T21:09:49.000Z
2022-03-11T23:26:07.000Z
idea/migrations/0002_auto__del_field_comment_issue__add_field_comment_idea.py
gaybro8777/idea-box
02df9e5130ab4d463ad7f43f7a4a3a51dc640840
[ "CC0-1.0" ]
39
2015-01-06T07:41:49.000Z
2022-02-24T14:03:04.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Comment.issue' db.delete_column('idea_comment', 'issue_id') # Adding field 'Comme...
61.166667
182
0.555177
797d8e986147d2f21242f008c6bbb04677717e35
8,005
py
Python
ivy_tests/test_ivy/test_functional/test_core/test_statistical.py
bicycleman15/ivy
1eb841cdf595e2bb269fce084bd50fb79ce01a69
[ "Apache-2.0" ]
1
2022-02-13T19:35:02.000Z
2022-02-13T19:35:02.000Z
ivy_tests/test_ivy/test_functional/test_core/test_statistical.py
Arijit1000/ivy
de193946a580ca0f54d78fe7fc4031a6ff66d2bb
[ "Apache-2.0" ]
null
null
null
ivy_tests/test_ivy/test_functional/test_core/test_statistical.py
Arijit1000/ivy
de193946a580ca0f54d78fe7fc4031a6ff66d2bb
[ "Apache-2.0" ]
null
null
null
"""Collection of tests for statistical functions.""" # global import numpy as np from hypothesis import given, assume, strategies as st # local import ivy import ivy_tests.test_ivy.helpers as helpers import ivy.functional.backends.numpy as ivy_np @st.composite def statistical_dtype_values(draw, function): dtype ...
23.613569
85
0.624235
797d8fbe11e29cadfe0a20b0986ed499315e6897
46,611
py
Python
tests/gcp/hooks/test_gcs.py
kpathak13/airflow-1
02b478ef8a7e1c1f890e5eb89842333a53654a70
[ "Apache-2.0" ]
1
2019-10-02T13:33:48.000Z
2019-10-02T13:33:48.000Z
tests/gcp/hooks/test_gcs.py
kpathak13/airflow-1
02b478ef8a7e1c1f890e5eb89842333a53654a70
[ "Apache-2.0" ]
null
null
null
tests/gcp/hooks/test_gcs.py
kpathak13/airflow-1
02b478ef8a7e1c1f890e5eb89842333a53654a70
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 #...
41.728738
108
0.655039
797d912a4b72b6ddefc6db6da420be65309898b7
9,602
py
Python
Others/py/Montage.py
duangsuse/Share
fac2af2dc24bc9952b6849241d81020600e3c7e8
[ "MIT" ]
5
2019-08-06T14:21:20.000Z
2022-02-20T16:02:43.000Z
Others/py/Montage.py
duangsuse-valid-projects/Share
3b01f8acc235333cd0c2a943a22d6031c005d0d0
[ "MIT" ]
3
2019-07-24T00:02:44.000Z
2020-12-16T06:21:41.000Z
Others/py/Montage.py
duangsuse/Share
fac2af2dc24bc9952b6849241d81020600e3c7e8
[ "MIT" ]
1
2019-07-23T13:58:04.000Z
2019-07-23T13:58:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # https://github.com/FerryYoungFan/SimpleTextMontage # 之前我不知道 Montage 是什么 # 其实用反向 Alpha-blend 也可以,不过我不想这么做,因为懒,而且我是没大阅读 doc… from PIL import Image from PIL import ImageDraw, ImageFont from argparse import ArgumentParser, FileType from math import ceil from sys import std...
37.80315
128
0.643199
797d919a65671602f6f7b8c76bd48e5f32e408e1
1,413
py
Python
test/test_create_hardening_resolve_item_response.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_create_hardening_resolve_item_response.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_create_hardening_resolve_item_response.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 l...
28.836735
113
0.7615
797d91ab62332da8c42360ac6888ec788cb8a222
2,974
py
Python
main.py
joway/MFS
158be3dbcc9117634ec1f6b256f62ef7a3fb0fc3
[ "MIT" ]
null
null
null
main.py
joway/MFS
158be3dbcc9117634ec1f6b256f62ef7a3fb0fc3
[ "MIT" ]
null
null
null
main.py
joway/MFS
158be3dbcc9117634ec1f6b256f62ef7a3fb0fc3
[ "MIT" ]
null
null
null
from mfs.constants import CommandType, CommandHelp from mfs.exceptions import MFSException from mfs.mfs import MFS if __name__ == '__main__': mfs = MFS() help_text = """ Help: /---------------------------------------------------------\\ | CMD | Usage | Example | ---------------...
37.175
77
0.422999
797d91f26e44e071d7eced50feaaacef7bef24d4
646
py
Python
downburst/util.py
ceph/downburst
c554e82c32bac176d8954095fdee926be4ae3c09
[ "MIT" ]
14
2015-02-08T13:44:32.000Z
2022-02-24T07:46:31.000Z
downburst/util.py
ceph/downburst
c554e82c32bac176d8954095fdee926be4ae3c09
[ "MIT" ]
8
2015-02-27T21:12:28.000Z
2021-09-29T15:10:50.000Z
downburst/util.py
ceph/downburst
c554e82c32bac176d8954095fdee926be4ae3c09
[ "MIT" ]
12
2015-07-06T23:48:01.000Z
2021-01-26T10:49:57.000Z
import logging from lxml import etree log = logging.getLogger(__name__) def lookup_emulator(xml_text, arch): """ Find emulator path for the arch in capabilities xml """ arch_map = { 'amd64': 'x86_64', 'x86_64': 'x86_64', 'i686': 'i686', } _arch = a...
24.846154
74
0.613003
797d92f1e30154474f057fdd11e262ab4e1b196d
16,313
py
Python
model/model.py
ManishBachhu/editsql
c046dfbee72d3b54ebc7a2326b1eb7797b23d10e
[ "MIT" ]
1
2021-09-29T13:52:50.000Z
2021-09-29T13:52:50.000Z
model/model.py
ManishBachhu/editsql
c046dfbee72d3b54ebc7a2326b1eb7797b23d10e
[ "MIT" ]
null
null
null
model/model.py
ManishBachhu/editsql
c046dfbee72d3b54ebc7a2326b1eb7797b23d10e
[ "MIT" ]
null
null
null
""" Class for the Sequence to sequence model for ATIS.""" import os import torch import torch.nn.functional as F from . import torch_utils from . import utils_bert from data_util.vocabulary import DEL_TOK, UNK_TOK from .encoder import Encoder from .embedder import Embedder from .token_predictor import construct_tok...
41.614796
226
0.618954
797d947effb3815343dde90fef55569b35245dab
10,269
py
Python
tests/inventory/pipelines/test_data/fake_ke_services.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
1
2018-03-26T08:15:21.000Z
2018-03-26T08:15:21.000Z
tests/inventory/pipelines/test_data/fake_ke_services.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
null
null
null
tests/inventory/pipelines/test_data/fake_ke_services.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Forseti Security 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 ap...
60.052632
2,754
0.635894
797d95110768ca834f086f7a0198b58b8e717aa0
9,452
py
Python
openelex/us/fl/load.py
Mpopoma/oe-core
860b99e14b9089a56b54cdd00285216a5cf77046
[ "MIT" ]
null
null
null
openelex/us/fl/load.py
Mpopoma/oe-core
860b99e14b9089a56b54cdd00285216a5cf77046
[ "MIT" ]
null
null
null
openelex/us/fl/load.py
Mpopoma/oe-core
860b99e14b9089a56b54cdd00285216a5cf77046
[ "MIT" ]
null
null
null
from builtins import str from builtins import object import logging import unicodecsv from openelex.base.load import BaseLoader from openelex.lib.text import slugify, ocd_type_id from openelex.models import RawResult from .datasource import Datasource class LoadResults(object): """Entry point for data loading. ...
36.353846
346
0.602306
797d9539d5b6cd0694467f6abab881f89363ba85
13,238
py
Python
airflow/providers/google/marketing_platform/hooks/campaign_manager.py
PoojaChandak/airflow
688b07682442dfa24b7b6a8ae8a388e01b5872ab
[ "Apache-2.0" ]
1
2021-02-19T11:56:19.000Z
2021-02-19T11:56:19.000Z
airflow/providers/google/marketing_platform/hooks/campaign_manager.py
PoojaChandak/airflow
688b07682442dfa24b7b6a8ae8a388e01b5872ab
[ "Apache-2.0" ]
5
2021-09-01T00:38:27.000Z
2022-03-29T22:29:04.000Z
airflow/providers/google/marketing_platform/hooks/campaign_manager.py
PoojaChandak/airflow
688b07682442dfa24b7b6a8ae8a388e01b5872ab
[ "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...
37.081232
101
0.61331
797d953f8e2f3cb4b5a8a16826c35c21f69f6049
1,483
py
Python
pc-configure.py
ebeuerle/pcs-toolbox
9da36201f0b6090aa97d679cdd37baf744922909
[ "MIT" ]
13
2020-04-25T09:53:17.000Z
2021-03-23T18:48:08.000Z
pc-configure.py
ebeuerle/pcs-toolbox
9da36201f0b6090aa97d679cdd37baf744922909
[ "MIT" ]
3
2020-09-23T20:03:08.000Z
2021-03-24T21:29:03.000Z
pc-configure.py
ebeuerle/pcs-toolbox
9da36201f0b6090aa97d679cdd37baf744922909
[ "MIT" ]
12
2020-05-18T16:08:34.000Z
2021-05-19T17:21:58.000Z
from __future__ import print_function import pc_lib_general # --Execution Block-- # # --Parse command line arguments-- # parser = pc_lib_general.pc_arg_parser_defaults() args = parser.parse_args() # --End parse command line arguments-- # # --Main-- # print("Configuration file:") if args.config_file is None: prin...
40.081081
142
0.708699
797d954eff03a6a673457a3ddcb64be261e5fb84
3,217
py
Python
elaina/modules/debug.py
Vishal324140/ElainaRobot
d72092e9d2ddc9f94f21374cad57aea390612586
[ "MIT" ]
1
2022-01-31T08:44:33.000Z
2022-01-31T08:44:33.000Z
elaina/modules/debug.py
Vishal324140/ElainaRobot
d72092e9d2ddc9f94f21374cad57aea390612586
[ "MIT" ]
8
2022-02-10T01:02:50.000Z
2022-03-31T23:30:07.000Z
elaina/modules/debug.py
animeSubbingTeam/MitsuhaTaki
64ff3ba483656bc1246c863ebffbaddd76cb145f
[ "MIT" ]
1
2022-02-14T03:44:41.000Z
2022-02-14T03:44:41.000Z
# MIT License # Copyright (c) 2022 Zenitsu Prjkt™ # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
34.967391
102
0.687908
797d95b21d278eae5d9219982870b6e9e174326d
5,234
py
Python
libs/labelFile.py
cxy86121/labelimg_cxy
fa3316daa83a3b5e63ea119d16faa43b19489121
[ "MIT" ]
null
null
null
libs/labelFile.py
cxy86121/labelimg_cxy
fa3316daa83a3b5e63ea119d16faa43b19489121
[ "MIT" ]
null
null
null
libs/labelFile.py
cxy86121/labelimg_cxy
fa3316daa83a3b5e63ea119d16faa43b19489121
[ "MIT" ]
null
null
null
# Copyright (c) 2016 Tzutalin # Create by TzuTaLin <tzu.ta.lin@gmail.com> try: from PyQt5.QtGui import QImage except ImportError: from PyQt4.QtGui import QImage from base64 import b64encode, b64decode from libs.pascal_voc_io import PascalVocWriter from libs.yolo_io import YOLOWriter from libs.pascal_voc_io im...
35.605442
99
0.585594
797d9714083a5c3aaaf9023afdea6a67a2025b78
136
py
Python
Metrics/__init__.py
nimRobotics/EyeTrackingMetrics
94717702b00250cc4a9e1df4eec950b4133d0c15
[ "MIT" ]
6
2019-12-16T17:13:06.000Z
2021-09-14T04:44:54.000Z
Metrics/__init__.py
nimRobotics/EyeTrackingMetrics
94717702b00250cc4a9e1df4eec950b4133d0c15
[ "MIT" ]
null
null
null
Metrics/__init__.py
nimRobotics/EyeTrackingMetrics
94717702b00250cc4a9e1df4eec950b4133d0c15
[ "MIT" ]
1
2019-12-16T17:13:08.000Z
2019-12-16T17:13:08.000Z
from .convexhull import ConvexHull from .nni import NNI from .spatialdensity import SpatialDensity from .entropy import GazeEntropy
27.2
43
0.823529
797d981f29e39b182ed6ea4a4b40c67f566b0eec
5,786
py
Python
act/scio/tika_engine.py
martineian/act-scio2
2f103581cf7e340a1f3f7ba58038ac256c025425
[ "0BSD" ]
2
2021-03-11T11:37:14.000Z
2022-01-19T07:03:58.000Z
act/scio/tika_engine.py
martineian/act-scio2
2f103581cf7e340a1f3f7ba58038ac256c025425
[ "0BSD" ]
2
2020-06-24T10:03:24.000Z
2020-08-24T11:45:25.000Z
act/scio/tika_engine.py
martineian/act-scio2
2f103581cf7e340a1f3f7ba58038ac256c025425
[ "0BSD" ]
3
2020-06-17T10:52:14.000Z
2021-01-26T08:52:35.000Z
"""Tika/Scio integration. This module contains the scio tike server and service code""" from tika import parser from typing import Text, Optional, Any import argparse import asyncio import greenstalk import html import json import logging import os import time import tika import gzip import caep import act.scio.logset...
34.440476
112
0.596958
797d98d0f77792d63abb5353bde9104edd15cc0d
32,374
py
Python
electrum/plugins/ledger/ledger.py
asuka431/electrum
144b19660451bbbdc8314ac8fccd6e79fdf3a4b1
[ "MIT" ]
null
null
null
electrum/plugins/ledger/ledger.py
asuka431/electrum
144b19660451bbbdc8314ac8fccd6e79fdf3a4b1
[ "MIT" ]
null
null
null
electrum/plugins/ledger/ledger.py
asuka431/electrum
144b19660451bbbdc8314ac8fccd6e79fdf3a4b1
[ "MIT" ]
null
null
null
from struct import pack, unpack import hashlib import sys import traceback from typing import Optional, Tuple from electrum import ecc from electrum import bip32 from electrum.crypto import hash_160 from electrum.bitcoin import int_to_hex, var_int, is_segwit_script_type, is_b58_address from electrum.bip32 import BIP32...
44.106267
242
0.597455
797d98ecf9ce7c76b1e4c7a18c7832ef62370f42
1,301
py
Python
blog/migrations/0001_initial.py
3lna7/swpp-hw4-3lna7
e87ca0a653a2a8ca4f4384667414018c66f6dc80
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
3lna7/swpp-hw4-3lna7
e87ca0a653a2a8ca4f4384667414018c66f6dc80
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
3lna7/swpp-hw4-3lna7
e87ca0a653a2a8ca4f4384667414018c66f6dc80
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-01 20:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
36.138889
120
0.613374
797d9967e786211014bea4a8ffa3840a921e4aca
7,711
py
Python
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/resource_type_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/resource_type_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/resource_type_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ResourceTypeResponse: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The k...
27.837545
155
0.604591
797d9a0217f570d27b33527f42c461b37eb543cc
1,984
py
Python
setup.py
grihabor/pgmigrate
a6ca868e021944376624e835bd695517c27bd1e5
[ "PostgreSQL" ]
1
2019-11-18T10:24:01.000Z
2019-11-18T10:24:01.000Z
setup.py
marekfilip/pgmigrate
43445f1496e33ad14496c0c2036cc338fe0c8abe
[ "PostgreSQL" ]
1
2019-05-13T19:50:35.000Z
2019-05-13T19:50:35.000Z
setup.py
marekfilip/pgmigrate
43445f1496e33ad14496c0c2036cc338fe0c8abe
[ "PostgreSQL" ]
2
2019-01-24T15:52:49.000Z
2019-03-12T22:29:04.000Z
#!/usr/bin/env python """ setup.py for pgmigrate """ # encoding: utf-8 # # Copyright (c) 2016-2019 Yandex LLC <https://github.com/yandex> # Copyright (c) 2016-2019 Other contributors as noted in the AUTHORS file. # # Permission to use, copy, modify, and distribute this software and its # documentation for a...
33.066667
78
0.702117
797d9b0fb5fe17c8316b31503e7e129b60b0cd40
965
py
Python
backend/prosopography/migrations/0002_use_small_integer_fields.py
bwhicks/PlinyProject
378220925f27301700669f4e7b4c181806ac5ca9
[ "MIT" ]
null
null
null
backend/prosopography/migrations/0002_use_small_integer_fields.py
bwhicks/PlinyProject
378220925f27301700669f4e7b4c181806ac5ca9
[ "MIT" ]
17
2018-01-17T21:27:23.000Z
2021-12-09T01:48:45.000Z
backend/prosopography/migrations/0002_use_small_integer_fields.py
bwhicks/PlinyProject
378220925f27301700669f4e7b4c181806ac5ca9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-13 17:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('prosopography', '0001_initial'), ] operations = [ migrations.AlterField( ...
26.805556
66
0.57513
797d9d93e1db2c5465559393bf90a465c2e62d17
106
py
Python
test/test_hello.py
kohago/python-mining
d95fd8c2d01380743af15b7f88df23034aefc82d
[ "Apache-2.0" ]
null
null
null
test/test_hello.py
kohago/python-mining
d95fd8c2d01380743af15b7f88df23034aefc82d
[ "Apache-2.0" ]
null
null
null
test/test_hello.py
kohago/python-mining
d95fd8c2d01380743af15b7f88df23034aefc82d
[ "Apache-2.0" ]
null
null
null
def test_1(): a = 1 b = 2 assert a == b def test_2(): a = 2 b = 2 assert a == b
10.6
18
0.396226
797d9de542b77428b5f9ceab01305a0d41a4ea4d
19,156
py
Python
src/Methods/DataFrom2Persons/Univariate/Categorical/Linear/BooleanTurnsActivity.py
syncpy/SyncPy
70f990971a4b4215549559134812c7469c87c88f
[ "CECILL-B" ]
20
2015-11-27T10:08:57.000Z
2021-11-17T22:19:36.000Z
src/Methods/DataFrom2Persons/Univariate/Categorical/Linear/BooleanTurnsActivity.py
syncpy/SyncPy
70f990971a4b4215549559134812c7469c87c88f
[ "CECILL-B" ]
3
2015-11-13T13:08:04.000Z
2022-02-03T15:42:40.000Z
src/Methods/DataFrom2Persons/Univariate/Categorical/Linear/BooleanTurnsActivity.py
syncpy/SyncPy
70f990971a4b4215549559134812c7469c87c88f
[ "CECILL-B" ]
14
2015-12-17T09:25:43.000Z
2021-02-26T14:37:48.000Z
### This file is a part of the Syncpy library. ### Copyright 2015, ISIR / Universite Pierre et Marie Curie (UPMC) ### Main contributor(s): Giovanna Varni, Marie Avril, ### syncpy@isir.upmc.fr ### ### This software is a computer program whose for investigating ### synchrony in a fast and exhaustive way. ### ### This ...
39.660455
126
0.53033
797d9dea0ed8da0b5d8dd728a1ef1b06958d9b4f
5,682
py
Python
tools/gcov_digest.py
xcir/varnish-cache
f4dcf8f02a2fb059dacba4c7bedefccbe9897cd2
[ "BSD-2-Clause" ]
1
2020-07-10T07:00:06.000Z
2020-07-10T07:00:06.000Z
tools/gcov_digest.py
xcir/varnish-cache
f4dcf8f02a2fb059dacba4c7bedefccbe9897cd2
[ "BSD-2-Clause" ]
null
null
null
tools/gcov_digest.py
xcir/varnish-cache
f4dcf8f02a2fb059dacba4c7bedefccbe9897cd2
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2017 Varnish Software AS # All rights reserved. # # Author: Poul-Henning Kamp <phk@phk.freebsd.dk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of sourc...
28.128713
76
0.502992
797d9e59c479ce60d8536de6dbd5495a72ea0321
11,914
py
Python
smarts/sstudio/generators.py
ehtnamuh/Smarts-Fork
2cd7e85947e7feb7da46753f664ff5e8cc6ace6c
[ "MIT" ]
null
null
null
smarts/sstudio/generators.py
ehtnamuh/Smarts-Fork
2cd7e85947e7feb7da46753f664ff5e8cc6ace6c
[ "MIT" ]
null
null
null
smarts/sstudio/generators.py
ehtnamuh/Smarts-Fork
2cd7e85947e7feb7da46753f664ff5e8cc6ace6c
[ "MIT" ]
null
null
null
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
38.681818
91
0.596441
797d9e7b4cf9559b7a8201db0703e83de18bbfd9
2,125
py
Python
tests/utils/test_pretrain_dataloader.py
fariasfc/solo-learn
f53ff40edbc7e96e06db5238d8c3a44f7b8965c1
[ "MIT" ]
3
2021-08-23T12:47:50.000Z
2022-01-16T02:06:34.000Z
tests/utils/test_pretrain_dataloader.py
damilu1/solo-learn
b75ba6faf5269b0849120bfb89593f9bc23e09bc
[ "MIT" ]
null
null
null
tests/utils/test_pretrain_dataloader.py
damilu1/solo-learn
b75ba6faf5269b0849120bfb89593f9bc23e09bc
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image from solo.utils.pretrain_dataloader import ( prepare_dataloader, prepare_datasets, prepare_multicrop_transform, prepare_n_crop_transform, prepare_transform, ) from torch.utils.data import DataLoader from torchvision.datasets.cifar import CIFAR10 def test_tr...
27.24359
82
0.656941
797da06d7243d8d93c4bdb23b99a34d8dc3e7461
5,733
py
Python
geopandas/geodataframe.py
jwass/geopandas
3ebcae071ddc8faa44a1ecb541154b6399af14a8
[ "BSD-3-Clause" ]
null
null
null
geopandas/geodataframe.py
jwass/geopandas
3ebcae071ddc8faa44a1ecb541154b6399af14a8
[ "BSD-3-Clause" ]
null
null
null
geopandas/geodataframe.py
jwass/geopandas
3ebcae071ddc8faa44a1ecb541154b6399af14a8
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict, OrderedDict import json, os import fiona from pandas import DataFrame from shapely.geometry import mapping, shape from geopandas import GeoSeries from plotting import plot_dataframe import numpy as np class GeoDataFrame(DataFrame): """ A GeoDataFrame object is a pandas....
36.515924
80
0.568812
797da1bfc8238a08a4ec1b9a82e1964efba5e4bc
1,512
py
Python
hyperpose/Config/config_opps.py
lengyuner/hyperpose4fly
c9866bce1a0109e1b9c727ca550b5a380eb3ee17
[ "Apache-2.0" ]
null
null
null
hyperpose/Config/config_opps.py
lengyuner/hyperpose4fly
c9866bce1a0109e1b9c727ca550b5a380eb3ee17
[ "Apache-2.0" ]
null
null
null
hyperpose/Config/config_opps.py
lengyuner/hyperpose4fly
c9866bce1a0109e1b9c727ca550b5a380eb3ee17
[ "Apache-2.0" ]
null
null
null
import os from .define import MODEL,DATA,TRAIN,BACKBONE from easydict import EasyDict as edict #model configuration model = edict() # number of keypoints + 1 for background model.n_pos = 5 #19 #TODO(JZ) model.num_channels=128 # input size during training , 240 model.hin = 368 model.win = 432 # output size during tra...
27
64
0.773148
797da21cba7ced457d68b00a05fe3f399888483b
1,635
py
Python
utils.py
stereoboy/object_detection
002445d083da54e7b3c6e158e2d66d3c57a05f31
[ "MIT" ]
null
null
null
utils.py
stereoboy/object_detection
002445d083da54e7b3c6e158e2d66d3c57a05f31
[ "MIT" ]
null
null
null
utils.py
stereoboy/object_detection
002445d083da54e7b3c6e158e2d66d3c57a05f31
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from PIL import Image import os def maybe_download(directory, filename, url): print('Try to dwnloaded', url) if not tf.gfile.Exists(directory): tf.gfile.MakeDirs(directory) filepath = os.path.join(directory, filename) if not tf.gfile.Exists(filepath): filepath...
26.803279
87
0.697859
797da2dc8c2de7ea8c4ce25a41e8337e775a2282
585
py
Python
src/todosh_notion/__init__.py
lucassouzavieira/todo.sh-notion
2b95f814cf4125f3d35b5c1783afd0fa190b03da
[ "MIT" ]
5
2021-04-17T12:18:15.000Z
2021-10-30T07:04:23.000Z
src/todosh_notion/__init__.py
lucassouzavieira/todo.sh-notion
2b95f814cf4125f3d35b5c1783afd0fa190b03da
[ "MIT" ]
null
null
null
src/todosh_notion/__init__.py
lucassouzavieira/todo.sh-notion
2b95f814cf4125f3d35b5c1783afd0fa190b03da
[ "MIT" ]
1
2021-04-21T18:47:20.000Z
2021-04-21T18:47:20.000Z
import sys if sys.version_info[:2] >= (3, 8): # TODO: Import directly (no need for conditional) when `python_requires = >= 3.8` from importlib.metadata import PackageNotFoundError, version # pragma: no cover else: from importlib_metadata import PackageNotFoundError, version # pragma: no cover try: #...
34.411765
85
0.733333
797da48b30d45fa6eb82d52e343c122ac74681f7
1,757
py
Python
lab_app_v2.py
Tedawi/Raspberry
bd0bf27af1aed5634743790ebe6a99fc8a5550f5
[ "MIT" ]
118
2018-03-13T17:48:41.000Z
2022-02-08T18:00:58.000Z
lab_app_v2.py
Tedawi/Raspberry
bd0bf27af1aed5634743790ebe6a99fc8a5550f5
[ "MIT" ]
5
2018-06-28T16:05:40.000Z
2021-02-14T21:01:04.000Z
lab_app_v2.py
Tedawi/Raspberry
bd0bf27af1aed5634743790ebe6a99fc8a5550f5
[ "MIT" ]
114
2018-03-15T12:14:13.000Z
2022-02-12T20:06:05.000Z
''' FILE NAME lab_app.py Version 2 1. WHAT IT DOES Implements the first version of the project's Flask application. This version contains adds a page that displays sensor readings from the database. 2. REQUIRES * Any Raspberry Pi 3. ORIGINAL WORK Raspberry Full Stack 2018, Peter Dalmaris 4. HARDWARE * Any Raspberr...
22.818182
82
0.75811
797da4d66f734030c6f3b21ab179a1417a04830f
216
py
Python
testproject/wsgi.py
nim65s/ndh
4945bf1f0f59bd08bdd04dd2640b3e9759fa6774
[ "BSD-2-Clause" ]
null
null
null
testproject/wsgi.py
nim65s/ndh
4945bf1f0f59bd08bdd04dd2640b3e9759fa6774
[ "BSD-2-Clause" ]
25
2017-09-23T11:22:00.000Z
2022-03-14T19:48:22.000Z
testproject/wsgi.py
caracole-io/videgrenier
70e96d918c9bef9ddb05e2c372e3082e58d04bb8
[ "BSD-2-Clause" ]
null
null
null
"""WSGI config for testproject project.""" import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.settings") application = get_wsgi_application()
21.6
71
0.805556
797da599eeae775fdac2de8c0414e8467c699d72
446
py
Python
Practical Slips/Slip 08/Q2_A.py
PritKalariya/TY-BBA-CA-Lab-Book-Solutions
0e3281e6b7496ebd0c5a3af9ea3229af3fedc3b1
[ "MIT" ]
1
2022-03-13T17:28:15.000Z
2022-03-13T17:28:15.000Z
Practical Slips/Slip 08/Q2_A.py
PritKalariya/TY-BBA-CA-Sem-5-Practical-Slips-and-Lab-Book
0e3281e6b7496ebd0c5a3af9ea3229af3fedc3b1
[ "MIT" ]
1
2021-12-04T05:24:02.000Z
2021-12-07T13:35:53.000Z
Practical Slips/Slip 08/Q2_A.py
PritKalariya/TY-BBA-CA-Lab-Book-Solutions
0e3281e6b7496ebd0c5a3af9ea3229af3fedc3b1
[ "MIT" ]
1
2022-02-14T08:48:00.000Z
2022-02-14T08:48:00.000Z
# Write a python script to find the repeated items of a tuple def find_duplicates(ls): dup_items = [] for i in range(len(ls)): if ls.count(ls[i]) > 1: dup_items.append(ls[i]) return list(set(dup_items)) ls = [] n = int(input("Enter the number of elements in the tuple: ")) for i in ran...
26.235294
61
0.643498
797da5e28851dbd416560b2814adbfa6818c19f3
1,134
py
Python
construct_star/contrib/sites/migrations/0002_set_site_domain_and_name.py
mitbanip/constructstar
b030bca59280fe99870b29689616df46a94da0db
[ "MIT" ]
null
null
null
construct_star/contrib/sites/migrations/0002_set_site_domain_and_name.py
mitbanip/constructstar
b030bca59280fe99870b29689616df46a94da0db
[ "MIT" ]
null
null
null
construct_star/contrib/sites/migrations/0002_set_site_domain_and_name.py
mitbanip/constructstar
b030bca59280fe99870b29689616df46a94da0db
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.org/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.db import migration...
24.12766
130
0.641975
797da5eb8e71793da9deed31d185a83fdeb0ba15
14,726
py
Python
lib/galaxy/tool_util/deps/mulled/mulled_search.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
1
2020-03-11T15:17:32.000Z
2020-03-11T15:17:32.000Z
lib/galaxy/tool_util/deps/mulled/mulled_search.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
72
2019-06-06T18:52:41.000Z
2022-02-17T02:53:18.000Z
lib/galaxy/tool_util/deps/mulled/mulled_search.py
biomarble/galaxy
5767dbe975e1ce51fec70541d4b89c55609d45ee
[ "CC-BY-3.0" ]
1
2022-03-01T08:07:54.000Z
2022-03-01T08:07:54.000Z
#!/usr/bin/env python import argparse import json import logging import sys import tempfile import requests from .mulled_list import get_singularity_containers from .util import build_target, v2_image_name try: from conda.cli.python_api import run_command except ImportError: run_command = None # type: igno...
39.692722
158
0.617411
797da6bc2b805021ce85a96085652ffc7fab883a
466
py
Python
skbio/stats/_subsample/__init__.py
JWDebelius/scikit-bio
9df3edb46eb728f6efbd4f2db74529200ad40a77
[ "BSD-3-Clause" ]
null
null
null
skbio/stats/_subsample/__init__.py
JWDebelius/scikit-bio
9df3edb46eb728f6efbd4f2db74529200ad40a77
[ "BSD-3-Clause" ]
null
null
null
skbio/stats/_subsample/__init__.py
JWDebelius/scikit-bio
9df3edb46eb728f6efbd4f2db74529200ad40a77
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
33.285714
78
0.5
797da76cab89400db095cad58c7443ad0c006990
2,535
py
Python
src/drivers/ne_raptor_interface/launch/ne_raptor_interface.launch.py
rubis-lab/autoware_rubis
498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9
[ "Apache-2.0" ]
19
2021-05-28T06:14:21.000Z
2022-03-10T10:03:08.000Z
src/drivers/ne_raptor_interface/launch/ne_raptor_interface.launch.py
rubis-lab/autoware_rubis
498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9
[ "Apache-2.0" ]
1
2021-05-23T16:45:11.000Z
2021-08-03T16:59:40.000Z
src/drivers/ne_raptor_interface/launch/ne_raptor_interface.launch.py
rubis-lab/autoware_rubis
498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9
[ "Apache-2.0" ]
14
2021-05-29T14:59:17.000Z
2022-03-10T10:03:09.000Z
# Copyright 2021 the Autoware Foundation # # 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 ...
36.214286
99
0.639053
797dab4b34a3816398617adebdcb39bda61d146e
3,364
py
Python
indicators/tests/serializer_tests/iptt_indicator_serializer.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
null
null
null
indicators/tests/serializer_tests/iptt_indicator_serializer.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
5
2021-02-08T20:42:48.000Z
2022-03-12T00:19:38.000Z
indicators/tests/serializer_tests/iptt_indicator_serializer.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for the Program Page Indicator Serializer corresponding to js/pages/program_page/models/ProgramPageIndicator """ from factories.workflow_models import RFProgramFactory, SectorFactory, SiteProfileFactory from factories.indicators_models import RFIndicatorFactory, IndicatorTypeFacto...
37.377778
89
0.696195
797dacd80c868747eda69b5b79d1509572614046
34,376
py
Python
pybamm/expression_tree/symbol.py
tobykirk/PyBaMM
c16b7df76c597468ecac1c40e768d94005f79145
[ "BSD-3-Clause" ]
null
null
null
pybamm/expression_tree/symbol.py
tobykirk/PyBaMM
c16b7df76c597468ecac1c40e768d94005f79145
[ "BSD-3-Clause" ]
null
null
null
pybamm/expression_tree/symbol.py
tobykirk/PyBaMM
c16b7df76c597468ecac1c40e768d94005f79145
[ "BSD-3-Clause" ]
null
null
null
# # Base Symbol Class for the expression tree # import copy import numbers import anytree import numpy as np import sympy from anytree.exporter import DotExporter from scipy.sparse import csr_matrix, issparse import pybamm from pybamm.expression_tree.printing.print_name import prettify_print_name def domain_size(do...
34.934959
88
0.601001
797dadc344b585f2d569e1d2107412afe17f8017
1,945
py
Python
apis/models.py
MasterBDX/find-your-api
23e22093df36574cb81703f315da5bfdf1efc51e
[ "MIT" ]
2
2020-12-31T10:32:18.000Z
2021-01-01T03:15:30.000Z
apis/models.py
MasterBDX/find-your-api
23e22093df36574cb81703f315da5bfdf1efc51e
[ "MIT" ]
null
null
null
apis/models.py
MasterBDX/find-your-api
23e22093df36574cb81703f315da5bfdf1efc51e
[ "MIT" ]
null
null
null
from django.db import models from phonenumber_field.modelfields import PhoneNumberField GENDER = [('male','Male'),('female','Female')] class UserApiModel(models.Model): first_name = models.CharField(max_length=255) last_name = models.CharField(max_length=255) full_name = models.CharField(max_length=255,b...
32.966102
69
0.712082
797daf88961b02cd6e5e454d838f611dc4e77b0a
677
py
Python
web/main/models.py
bandirom/django-template
5b263d985ecd7343abe0244366fb553f74cb0a55
[ "MIT" ]
1
2022-03-26T20:01:55.000Z
2022-03-26T20:01:55.000Z
web/main/models.py
bandirom/django-template
5b263d985ecd7343abe0244366fb553f74cb0a55
[ "MIT" ]
4
2022-01-23T09:22:53.000Z
2022-03-26T13:53:36.000Z
web/main/models.py
bandirom/django-template
5b263d985ecd7343abe0244366fb553f74cb0a55
[ "MIT" ]
2
2022-03-17T19:12:41.000Z
2022-03-30T09:58:50.000Z
from typing import TypeVar from django.contrib.auth.models import AbstractUser from django.db import models from django.utils.translation import gettext_lazy as _ from .managers import UserManager UserType = TypeVar('UserType', bound='User') class User(AbstractUser): username = None email = models.EmailFi...
21.83871
62
0.686854
797daffe47b00832e9f0e2109e1bd723d2ff63bc
53,127
py
Python
nova/tests/unit/api/openstack/compute/test_server_actions.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_server_actions.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
1
2019-01-02T01:30:35.000Z
2019-01-02T01:38:02.000Z
nova/tests/unit/api/openstack/compute/test_server_actions.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # 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 requ...
38.949413
79
0.574981
797db083a33feb1d131eacb2b150d27732b409a0
2,300
py
Python
examples/mnist/train_test.py
joelgarde/flax
7d12d20f8272ce9c639711e92db89fdaf7f1a94a
[ "Apache-2.0" ]
null
null
null
examples/mnist/train_test.py
joelgarde/flax
7d12d20f8272ce9c639711e92db89fdaf7f1a94a
[ "Apache-2.0" ]
null
null
null
examples/mnist/train_test.py
joelgarde/flax
7d12d20f8272ce9c639711e92db89fdaf7f1a94a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Flax 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 required by applicable law or agreed to in wri...
31.506849
88
0.733913
797db087ce68088076cbb12e88dd76438b267ab4
14,517
py
Python
qa/rpc-tests/maxuploadtarget.py
MONIMAKER365/BitcoinUnlimited
8aea282c44ee23ca65cdd895c99b3f6347f46dfc
[ "MIT" ]
535
2015-09-04T15:10:08.000Z
2022-03-17T20:51:05.000Z
qa/rpc-tests/maxuploadtarget.py
MONIMAKER365/BitcoinUnlimited
8aea282c44ee23ca65cdd895c99b3f6347f46dfc
[ "MIT" ]
1,269
2016-01-31T20:21:24.000Z
2022-03-16T01:20:08.000Z
qa/rpc-tests/maxuploadtarget.py
MONIMAKER365/BitcoinUnlimited
8aea282c44ee23ca65cdd895c99b3f6347f46dfc
[ "MIT" ]
295
2015-10-19T16:12:29.000Z
2021-08-02T20:05:17.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import test_framework.loginit from test_framework.mininode import * from test_framework.test_framework imp...
44.259146
192
0.664393
797db239a8f066bc3cddfc9dc987059d3dd74bda
1,216
py
Python
website/static/pelican/example/publishconf.py
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
website/static/pelican/example/publishconf.py
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
website/static/pelican/example/publishconf.py
curoky/my-own-x
825273af2d73dff76562422ca87a077635ee870b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018-2022 curoky(cccuroky@gmail.com). # # This file is part of my-own-x. # See https://github.com/curoky/my-own-x for further info. # # 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 Licens...
30.4
77
0.752467
797db24645a7b17e2d7e4d2f42397a58d9bc5e6e
1,225
py
Python
_convert_config.py
andycasey/velociraptor
4c3f2cc0421f38fb5de7bb88f3c7bd4e9aa7d6d4
[ "MIT" ]
null
null
null
_convert_config.py
andycasey/velociraptor
4c3f2cc0421f38fb5de7bb88f3c7bd4e9aa7d6d4
[ "MIT" ]
null
null
null
_convert_config.py
andycasey/velociraptor
4c3f2cc0421f38fb5de7bb88f3c7bd4e9aa7d6d4
[ "MIT" ]
null
null
null
""" Convert config format from run_analysis -> run_analysis2.py """ import os import sys import pickle import yaml if __name__ == "__main__": output_path = sys.argv[1] model_paths = sys.argv[2:] config = dict() models = dict() for i, model_path in enumerate(model_paths): model_name = o...
26.06383
88
0.599184
797db295ea904140efe0da528606cd85b2497ebb
11,073
py
Python
packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
1
2020-04-06T20:57:36.000Z
2020-04-06T20:57:36.000Z
packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py
potpath/plotly.py
46cd47f441d8bda9b14b4ba66a33f02731faf8f0
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000'...
34.175926
82
0.564075
797db30c69c0be068a32eb19e9914a242020240c
2,576
py
Python
samples/cli/accelbyte_py_sdk_cli/platform/_check_user_subscription_subscribable_by_item_id.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
samples/cli/accelbyte_py_sdk_cli/platform/_check_user_subscription_subscribable_by_item_id.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
samples/cli/accelbyte_py_sdk_cli/platform/_check_user_subscription_subscribable_by_item_id.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # justice-platform-service (4.10.0) # pylint: disable=duplicate-co...
34.346667
149
0.75854
797db32f941fcb9fbd6cb4e146dc2d115a321196
420
py
Python
assistypes/dict.py
Masynchin/my-types-python
98d699a51e52629e32d5d2c9d44aa3f5438fd501
[ "Apache-2.0" ]
null
null
null
assistypes/dict.py
Masynchin/my-types-python
98d699a51e52629e32d5d2c9d44aa3f5438fd501
[ "Apache-2.0" ]
null
null
null
assistypes/dict.py
Masynchin/my-types-python
98d699a51e52629e32d5d2c9d44aa3f5438fd501
[ "Apache-2.0" ]
null
null
null
class AttributedDict(dict): def __getattr__(self, attr): if isinstance(value := self[attr], dict): return AttributedDict(value) return value def __setattr__(self, attr, value): super().__setitem__(attr, value) def __delattr__(self, attr): super().__delitem__(att...
28
71
0.621429
797db37f73da061443b2d0f2d4046b8154469871
629
py
Python
graphs.py
fujita/bgperf
1ae56d7a686126640b35c7537a6fce605020b527
[ "Apache-2.0" ]
12
2021-07-27T14:13:39.000Z
2022-02-08T17:17:21.000Z
graphs.py
fujita/bgperf
1ae56d7a686126640b35c7537a6fce605020b527
[ "Apache-2.0" ]
1
2021-09-01T15:40:52.000Z
2021-09-01T15:40:52.000Z
graphs.py
fujita/bgperf
1ae56d7a686126640b35c7537a6fce605020b527
[ "Apache-2.0" ]
6
2021-07-29T03:08:03.000Z
2021-12-28T08:38:38.000Z
# creates graphs from batch output from bgperf import create_batch_graphs from argparse import ArgumentParser from csv import reader if __name__ == '__main__': parser = ArgumentParser(description='BGP performance measuring tool') parser.add_argument('-f', '--filename') parser.add_argument('-n', '--n...
25.16
73
0.667727
797db4d99db1ad08ba9369d4a766d041ae010c66
831
py
Python
app_package/app_dal.py
srinivascheeti1/amazon_review_data_processing
47287839040bf44aa7d7c22c42c77270bb95344c
[ "CNRI-Python" ]
null
null
null
app_package/app_dal.py
srinivascheeti1/amazon_review_data_processing
47287839040bf44aa7d7c22c42c77270bb95344c
[ "CNRI-Python" ]
null
null
null
app_package/app_dal.py
srinivascheeti1/amazon_review_data_processing
47287839040bf44aa7d7c22c42c77270bb95344c
[ "CNRI-Python" ]
null
null
null
""" app_dal module is used as a data access layer. Author: Srinivas Rao Cheeti email: srinivascheeti1@gmail.com Date: Feb 2, 2019 """ import mysql.connector try: import logging except Exception as e: print(e) class AppDAL: def __init__(self, level): self.logs = logging.basicConfig(level=level) ...
21.868421
58
0.565584
797db52d8863ab8c96e102b2a66539adc818607f
2,067
py
Python
test_ariac/test_gripper_unthrottled.py
dgerod/ariac-2018_gear
812c23ff96c71baf7581ec412597de25333e4e02
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test_ariac/test_gripper_unthrottled.py
dgerod/ariac-2018_gear
812c23ff96c71baf7581ec412597de25333e4e02
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test_ariac/test_gripper_unthrottled.py
dgerod/ariac-2018_gear
812c23ff96c71baf7581ec412597de25333e4e02
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys import time from test_gripper import GripperTester from ariac_example import ariac_example import rospy import rostest class UnthrottledGripperTester(GripperTester): def test(self): self.comp_class = ariac_example.MyCompetitionClas...
32.809524
93
0.689889
797db567158e9a939781f00bde4b07737441dc59
3,924
py
Python
Shared Processors/DistributionPkgInfo.py
oliverweinm/dataJAR-recipes
7875d575c903c39ee0619c52cfa0fed77c617db7
[ "Apache-2.0" ]
84
2017-02-15T14:03:41.000Z
2022-03-29T19:59:00.000Z
Shared Processors/DistributionPkgInfo.py
oliverweinm/dataJAR-recipes
7875d575c903c39ee0619c52cfa0fed77c617db7
[ "Apache-2.0" ]
183
2017-06-26T15:00:15.000Z
2022-03-29T10:28:14.000Z
Shared Processors/DistributionPkgInfo.py
oliverweinm/dataJAR-recipes
7875d575c903c39ee0619c52cfa0fed77c617db7
[ "Apache-2.0" ]
81
2017-02-23T23:30:32.000Z
2022-03-23T18:29:03.000Z
#!/usr/bin/python # Copyright 2020 dataJAR # # 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 ...
34.421053
100
0.607288
797db6a3d76026219f3ed1959ccb085ac623d126
2,867
py
Python
userauth/migrations/0001_initial.py
ehayle/project
8b98aa098be4beb91d91ed70f23c3a29caa05754
[ "MIT" ]
4
2021-06-18T10:26:24.000Z
2021-11-06T03:50:04.000Z
userauth/migrations/0001_initial.py
ehayle/project
8b98aa098be4beb91d91ed70f23c3a29caa05754
[ "MIT" ]
10
2020-06-03T01:48:21.000Z
2021-09-22T19:02:14.000Z
userauth/migrations/0001_initial.py
ehayle/project
8b98aa098be4beb91d91ed70f23c3a29caa05754
[ "MIT" ]
2
2020-12-06T08:49:36.000Z
2021-02-28T23:19:20.000Z
# Generated by Django 3.0.6 on 2020-05-16 22:04 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permission...
63.711111
329
0.663062
797db7c6e3409175c6327d94d8dc79b97653aede
3,213
py
Python
sifter/grammar/lexer.py
tomduckering/sifter
cb2656ac47125e9e06c9bdda56193da41cc340a8
[ "BSD-2-Clause" ]
10
2016-11-25T08:38:28.000Z
2020-09-29T06:45:47.000Z
sifter/grammar/lexer.py
tomduckering/sifter
cb2656ac47125e9e06c9bdda56193da41cc340a8
[ "BSD-2-Clause" ]
3
2020-08-24T16:17:30.000Z
2020-10-09T08:26:14.000Z
sifter/grammar/lexer.py
python-sifter/sifter
cb2656ac47125e9e06c9bdda56193da41cc340a8
[ "BSD-2-Clause" ]
6
2015-11-06T00:46:18.000Z
2020-10-07T16:27:41.000Z
# Parser based on RFC 5228, especially the grammar as defined in section 8. All # references are to sections in RFC 5228 unless stated otherwise. import math import ply.lex __all__ = ('lexer', 'tokens',) def lexer(**kwargs): return ply.lex.lex(**kwargs) tokens = ( 'IDENTIFIER', 'NUMBER', 'TAG', 'HASH_COMM...
31.5
79
0.62216
797db8e5a190e284a56eae2ce22524ae6f24002f
19,481
py
Python
splash_ingest/scicat.py
als-computing/splash-ingest
726e0174d64ba41400509d6803637a1d889a838d
[ "BSD-3-Clause-LBNL" ]
2
2021-03-06T15:13:28.000Z
2021-04-17T12:34:03.000Z
splash_ingest/scicat.py
als-computing/splash-ingest
726e0174d64ba41400509d6803637a1d889a838d
[ "BSD-3-Clause-LBNL" ]
13
2020-12-10T22:37:19.000Z
2021-11-13T23:01:42.000Z
splash_ingest/scicat.py
als-computing/splash-ingest
726e0174d64ba41400509d6803637a1d889a838d
[ "BSD-3-Clause-LBNL" ]
3
2020-10-11T21:58:31.000Z
2021-05-26T22:16:21.000Z
from collections import OrderedDict import h5py import json from datetime import datetime import hashlib import urllib import base64 import logging from pathlib import Path import re from typing import List import numpy as np import requests # for HTTP requests from .docstream import MappedH5Generator from .model im...
41.894624
126
0.602536
797db903b48dee1d80d673c80c80b8958e95b234
10,392
py
Python
fuzzers/021-goe_mux/fuzzer.py
cztian/prjbureau
22d959ab2988570052e79a4ad96bc0bca3ad723f
[ "0BSD" ]
34
2019-12-12T07:52:47.000Z
2022-03-12T13:52:51.000Z
fuzzers/021-goe_mux/fuzzer.py
RobertBaruch/prjbureau
8631e0f661047747de7121e5ab3e6da5f2828c48
[ "0BSD" ]
9
2020-08-10T15:22:59.000Z
2021-06-13T19:33:08.000Z
fuzzers/021-goe_mux/fuzzer.py
RobertBaruch/prjbureau
8631e0f661047747de7121e5ab3e6da5f2828c48
[ "0BSD" ]
4
2020-08-10T15:13:45.000Z
2021-06-12T16:37:03.000Z
import subprocess from collections import defaultdict from util import database, toolchain, bitdiff, progress with database.transact() as db: for device_name, device in db.items(): progress(device_name) package, pinout = next(iter(device['pins'].items())) goe_names = [name for name in d...
43.481172
99
0.507987