hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
7ee0ad4229cbb8785cc665b7f1d02577367e5533
6,358
py
Python
venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py
6enno/FarmXero
881b1e6648e927631b276e66a4c5287e4de2cbc1
[ "MIT" ]
null
null
null
# coding: utf-8 """ Accounting API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel clas...
27.885965
124
0.596886
6,045
0.950173
0
0
4,114
0.646652
0
0
3,787
0.595253
7ee0d66cd69f9cc4f31be7268f2139f698f3ce65
1,568
py
Python
setup.py
idex-biometrics/fusesoc
58bbb864723112e9bfd7e02a17749800225815e9
[ "BSD-2-Clause" ]
829
2015-03-10T12:28:42.000Z
2022-03-28T02:44:12.000Z
setup.py
idex-biometrics/fusesoc
58bbb864723112e9bfd7e02a17749800225815e9
[ "BSD-2-Clause" ]
460
2015-01-26T18:03:19.000Z
2022-03-30T08:30:41.000Z
setup.py
idex-biometrics/fusesoc
58bbb864723112e9bfd7e02a17749800225815e9
[ "BSD-2-Clause" ]
177
2015-02-02T13:58:12.000Z
2022-03-30T20:56:21.000Z
# Copyright FuseSoC contributors # Licensed under the 2-Clause BSD License, see LICENSE for details. # SPDX-License-Identifier: BSD-2-Clause import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="fusesoc", packages=["fuse...
25.704918
72
0.595026
0
0
0
0
0
0
0
0
829
0.528699
7ee162a59b2d4c88fd31a1e5da83b93341c5641c
2,980
py
Python
planner/migrations/0020_auto_20171028_1709.py
zhajio1988/Vplanner
2b84bac7c8e36fde5eecc73682fde561613273d1
[ "Apache-2.0" ]
4
2019-08-26T01:20:35.000Z
2022-01-26T09:18:27.000Z
planner/migrations/0020_auto_20171028_1709.py
zhajio1988/Vplanner
2b84bac7c8e36fde5eecc73682fde561613273d1
[ "Apache-2.0" ]
null
null
null
planner/migrations/0020_auto_20171028_1709.py
zhajio1988/Vplanner
2b84bac7c8e36fde5eecc73682fde561613273d1
[ "Apache-2.0" ]
1
2020-07-27T16:14:01.000Z
2020-07-27T16:14:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-28 09:09 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('planner', '0019_auto_20171028...
59.6
171
0.667785
2,759
0.925839
0
0
0
0
0
0
649
0.217785
7ee1d07b4bc413cb7389c911457d3de03b101227
2,460
py
Python
check_mana.py
CheapskateProjects/MtgManaRecognition
9119a843f5c235ca09c695a46611bb46fea37573
[ "MIT" ]
7
2020-01-24T13:15:51.000Z
2021-11-18T00:59:14.000Z
check_mana.py
CheapskateProjects/MtgManaRecognition
9119a843f5c235ca09c695a46611bb46fea37573
[ "MIT" ]
null
null
null
check_mana.py
CheapskateProjects/MtgManaRecognition
9119a843f5c235ca09c695a46611bb46fea37573
[ "MIT" ]
3
2017-12-11T08:42:20.000Z
2021-05-23T22:16:37.000Z
""" This code will read file given as parameter and list what mana symbols it contains. created Apr 2017 by CheapskateProjects --------------------------- The MIT License (MIT) Copyright (c) 2017 CheapskateProjects Permission is hereby granted, free of charge, to any person obtaining a copy of this software and as...
46.415094
460
0.742683
0
0
0
0
0
0
0
0
1,546
0.628455
7ee1d369253b685eb3c0ced8fa15abb487773d16
2,922
py
Python
src/estimator.py
Dru94/scovid
637a56d95014d785f55c3253e424874520850257
[ "MIT" ]
null
null
null
src/estimator.py
Dru94/scovid
637a56d95014d785f55c3253e424874520850257
[ "MIT" ]
null
null
null
src/estimator.py
Dru94/scovid
637a56d95014d785f55c3253e424874520850257
[ "MIT" ]
null
null
null
import pprint #Dictionary to hold impact, severe impact and output data data=dict() impactDict=dict() severeImpactDict=dict() estimate=dict() keylist=["currentlyInfected","infectionsByRequestedTime","severeCasesByRequestedTime","hospitalBedsByRequestedTime", "casesForICUByRequestedTime","casesForVentilatorsByReque...
27.566038
116
0.826489
0
0
0
0
0
0
0
0
620
0.212183
7ee23d44668fd487a80e9214c2ad17038e0da11f
3,739
py
Python
src/tests/control/test_auth.py
abrock/pretix
cd9c048458afce1198276e5936bf583578855a4f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-23T07:44:54.000Z
2021-06-23T07:44:54.000Z
src/tests/control/test_auth.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/control/test_auth.py
awg24/pretix
b1d67a48601838bac0d4e498cbe8bdcd16013d60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from django.test import Client, TestCase from tests.base import BrowserTest from pretix.base.models import User class LoginFormBrowserTest(BrowserTest): def setUp(self): super().setUp() self.user = User.objects.create_user('dummy@dummy.dummy', 'dummy@dummy.dummy', 'dummy') def test_login(se...
34.62037
95
0.622626
3,620
0.968173
0
0
0
0
0
0
961
0.257021
7ee657d8672c3d1e01a4a553eebf1a0a57578480
1,871
py
Python
python/example_code/iam/create_policy.py
Ciul/aws-doc-sdk-examples
0ee496eb93b0404e214d387c1933ca4e231503cb
[ "Apache-2.0" ]
1
2019-01-09T01:32:02.000Z
2019-01-09T01:32:02.000Z
python/example_code/iam/create_policy.py
cloudcansee/aws-doc-sdk-examples
571fe9a546ab24ccac8e865190dce127f457f587
[ "Apache-2.0" ]
null
null
null
python/example_code/iam/create_policy.py
cloudcansee/aws-doc-sdk-examples
571fe9a546ab24ccac8e865190dce127f457f587
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license"...
30.177419
116
0.638696
0
0
0
0
0
0
0
0
1,360
0.726884
7ee6a44163dee19b7f4b3895d2366e18514d868b
1,451
py
Python
Part-2-Answers/2-Dictionaries/1-Word2SMS.py
Spigot-Dev/Grok-Intro_To_Programming_Python1-2
69c64019c0424f6cc8eb326b4456a510baab7ea7
[ "MIT" ]
2
2021-11-20T11:28:22.000Z
2022-02-07T21:56:46.000Z
Part-2-Answers/2-Dictionaries/1-Word2SMS.py
Spigot-Dev/Grok-Intro_To_Programming_Python1-2
69c64019c0424f6cc8eb326b4456a510baab7ea7
[ "MIT" ]
null
null
null
Part-2-Answers/2-Dictionaries/1-Word2SMS.py
Spigot-Dev/Grok-Intro_To_Programming_Python1-2
69c64019c0424f6cc8eb326b4456a510baab7ea7
[ "MIT" ]
4
2021-11-20T11:28:25.000Z
2022-03-12T04:10:54.000Z
# 11/03/21 # What does this code do? # This code introduces a new idea, Dictionaries. The codes purpose is to take an input, and convert it into the numbers you'd need to press # on an alphanumeric keypad, as shown in the picture. # How do Dictionaries work? # To use our dictionary, we first need to initial...
43.969697
148
0.594762
0
0
0
0
0
0
0
0
1,194
0.822881
7ee771d4ce34d997b16dc36b66c0cfae9cd23bd9
1,177
py
Python
typhon/core/type_system/constraints/member_constraint.py
strongrex2001/typhon
7a8ad7e0252768844009ab331fc8aa61350f23a9
[ "Apache-2.0" ]
4
2021-03-03T12:44:34.000Z
2021-07-03T10:15:43.000Z
typhon/core/type_system/constraints/member_constraint.py
eliphatfs/typhon
7a8ad7e0252768844009ab331fc8aa61350f23a9
[ "Apache-2.0" ]
null
null
null
typhon/core/type_system/constraints/member_constraint.py
eliphatfs/typhon
7a8ad7e0252768844009ab331fc8aa61350f23a9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 14 09:40:01 2021 @author: eliphat """ from ..type_var import TypeVar from ..type_repr import RecordType, BottomType from ..system import TypeSystem from .base_constraint import BaseConstraint from .equality_constraint import EqualityConstraint class MemberConstraint(Bas...
28.02381
74
0.607477
882
0.749363
0
0
0
0
0
0
117
0.099405
7ee7f3867098c176134098cbe45484ecb33e7f96
3,592
py
Python
conflowgen/posthoc_analyses/inbound_and_outbound_vehicle_capacity_analysis_report.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
conflowgen/posthoc_analyses/inbound_and_outbound_vehicle_capacity_analysis_report.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
conflowgen/posthoc_analyses/inbound_and_outbound_vehicle_capacity_analysis_report.py
1grasse/conflowgen
142330ab6427254109af3b86102a30a13144ba0c
[ "MIT" ]
null
null
null
from __future__ import annotations from conflowgen.posthoc_analyses.inbound_and_outbound_vehicle_capacity_analysis import \ InboundAndOutboundVehicleCapacityAnalysis from conflowgen.reporting import AbstractReportWithMatplotlib class InboundAndOutboundVehicleCapacityAnalysisReport(AbstractReportWithMatplotlib): ...
44.345679
119
0.69794
3,356
0.934298
0
0
0
0
0
0
1,426
0.396993
7ee8718c462fcdfabadd0e929c133270742ee1d3
15,799
py
Python
src/ehrudite/core/dnn/transformer.py
ClaudioBorges/ehrudite
8633995d3bf795fffeccabd7d20be522241f3bb5
[ "Apache-2.0" ]
null
null
null
src/ehrudite/core/dnn/transformer.py
ClaudioBorges/ehrudite
8633995d3bf795fffeccabd7d20be522241f3bb5
[ "Apache-2.0" ]
null
null
null
src/ehrudite/core/dnn/transformer.py
ClaudioBorges/ehrudite
8633995d3bf795fffeccabd7d20be522241f3bb5
[ "Apache-2.0" ]
1
2022-03-18T09:26:05.000Z
2022-03-18T09:26:05.000Z
"""Transformer from 'Attention is all you need' (Vaswani et al., 2017)""" # Reference: https://www.tensorflow.org/text/tutorials/transformer # Reference: https://keras.io/examples/nlp/text_classification_with_transformer/ import numpy as np import tensorflow as tf class Transformer(tf.keras.Model): def __init__(...
35.344519
91
0.648269
11,635
0.736439
0
0
0
0
0
0
5,606
0.354833
7eea074d109ec1681ca547e782a6c5293f0db45e
43,464
py
Python
backend/tests/baserow/contrib/database/field/test_formula_field_type.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/tests/baserow/contrib/database/field/test_formula_field_type.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/tests/baserow/contrib/database/field/test_formula_field_type.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
import inspect import pytest from django.db.models import TextField from django.urls import reverse from rest_framework.status import HTTP_200_OK, HTTP_204_NO_CONTENT from baserow.contrib.database.table.cache import ( generated_models_cache, ) from baserow.contrib.database.fields.dependencies.handler import Field...
35.108239
88
0.649802
0
0
0
0
41,773
0.961094
0
0
6,133
0.141105
7eec16b6d1d11372ab91abbcfdb3714c1f54cf45
2,647
py
Python
src/animation.py
ngruver/decon-hnn
6e6c7e9962568214e1708fb933b715a39328fc7b
[ "Apache-2.0" ]
6
2022-02-14T04:52:59.000Z
2022-03-08T05:11:34.000Z
src/animation.py
ngruver/decon-hnn
6e6c7e9962568214e1708fb933b715a39328fc7b
[ "Apache-2.0" ]
null
null
null
src/animation.py
ngruver/decon-hnn
6e6c7e9962568214e1708fb933b715a39328fc7b
[ "Apache-2.0" ]
null
null
null
from oil.utils.utils import export import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.animation as animation import numpy as np @export class Animation(object): def __init__(self, qt,body=None): """ [qt (T,n,d)""" self.qt = qt.data.numpy() T...
41.359375
111
0.548546
2,462
0.93011
0
0
2,471
0.93351
0
0
371
0.140159
7eedd09fb3c8d92730036810d13bd71098a0604a
1,791
py
Python
asyncpg_opentracing/tracing.py
condorcet/asyncpg_opentracing
7e8342c2ab9d360507695f802b9a74803f76675e
[ "MIT" ]
3
2021-02-07T02:55:46.000Z
2021-11-25T21:32:19.000Z
asyncpg_opentracing/tracing.py
condorcet/asyncpg_opentracing
7e8342c2ab9d360507695f802b9a74803f76675e
[ "MIT" ]
null
null
null
asyncpg_opentracing/tracing.py
condorcet/asyncpg_opentracing
7e8342c2ab9d360507695f802b9a74803f76675e
[ "MIT" ]
null
null
null
from functools import wraps from opentracing import global_tracer, tags, logs from contextlib import contextmanager def operation_name(query: str): # TODO: some statement should contain two words. For example CREATE TABLE. query = query.strip().split(' ')[0].strip(';').upper() return 'asyncpg ' + query ...
27.553846
78
0.627024
0
0
754
0.420994
1,124
0.627582
320
0.178671
113
0.063093
7eee18f21f85e2ef6c713447b04ed57350a47292
3,281
py
Python
pysnmp-with-texts/Juniper-V35-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/Juniper-V35-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/Juniper-V35-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Juniper-V35-CONF (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-V35-CONF # Produced by pysmi-0.3.4 at Wed May 1 14:04:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
105.83871
477
0.772021
0
0
0
0
0
0
0
0
1,653
0.50381
7eeeeddb273daae8d265bebeae3ae172280c5d3f
3,588
py
Python
src/sqlfluff/core/rules/functional/segment_predicates.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
src/sqlfluff/core/rules/functional/segment_predicates.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
src/sqlfluff/core/rules/functional/segment_predicates.py
r0fls/sqlfluff
3bc658e26758d1eb1ce35dade2e2cf064a4d6675
[ "MIT" ]
null
null
null
"""Defines commonly used segment predicates for rule writers. For consistency, all the predicates in this module are implemented as functions returning functions. This avoids rule writers having to remember the distinction between normal functions and functions returning functions. This is not necessarily a complete ...
26.382353
85
0.687291
0
0
0
0
0
0
0
0
1,330
0.37068
7eef35921fa0ede03616e146e1295177bb83c0f6
28,152
py
Python
acro/train_uncond_dcgan.py
udibr/dcgan_code
b80e8b97193ef57ea86ecb3be684b452655fe2ac
[ "MIT" ]
9
2015-12-18T09:55:35.000Z
2018-12-02T07:04:07.000Z
acro/train_uncond_dcgan.py
udibr/dcgan_code
b80e8b97193ef57ea86ecb3be684b452655fe2ac
[ "MIT" ]
null
null
null
acro/train_uncond_dcgan.py
udibr/dcgan_code
b80e8b97193ef57ea86ecb3be684b452655fe2ac
[ "MIT" ]
4
2016-01-18T08:16:38.000Z
2019-02-12T02:29:47.000Z
""" uncond_dcgan1 made with 64x64 images from https://s3.amazonaws.com/udipublic/acro.images.tgz for train.tar.gz """ import argparse parser = argparse.ArgumentParser(description='train uncoditional dcgan') parser.add_argument('--desc', default='uncond_dcgan', help='name to uniq...
39.318436
122
0.577472
0
0
0
0
0
0
0
0
8,896
0.315999
7ef212a3bbd72af3407c75992543ad244f5853aa
686
py
Python
tests/test_base_testclass.py
FrNecas/requre
110ad5c42b6bbb087a28bcaf7d7b7834825ec65a
[ "MIT" ]
4
2019-09-11T10:39:19.000Z
2020-01-26T14:46:04.000Z
tests/test_base_testclass.py
FrNecas/requre
110ad5c42b6bbb087a28bcaf7d7b7834825ec65a
[ "MIT" ]
134
2020-08-04T06:56:25.000Z
2022-03-28T19:59:10.000Z
tests/test_base_testclass.py
FrNecas/requre
110ad5c42b6bbb087a28bcaf7d7b7834825ec65a
[ "MIT" ]
8
2019-09-11T09:52:01.000Z
2020-05-15T07:49:20.000Z
# Copyright Contributors to the Packit project. # SPDX-License-Identifier: MIT import os import shutil from requre import RequreTestCase from requre.utils import get_datafile_filename class CheckBaseTestClass(RequreTestCase): def tearDown(self): super().tearDown() data_file_path = get_datafile_f...
29.826087
79
0.708455
497
0.72449
0
0
0
0
0
0
143
0.208455
7ef2a68b302b035e6c0797abb0c9b533ef0cc00f
1,098
py
Python
sabueso/tools/sabueso_UniProtKB_XMLDict/get_name.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
null
null
null
sabueso/tools/sabueso_UniProtKB_XMLDict/get_name.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
2
2022-01-31T21:22:17.000Z
2022-02-04T20:20:12.000Z
sabueso/tools/sabueso_UniProtKB_XMLDict/get_name.py
dprada/sabueso
14843cf3522b5b89db5b61c1541a7015f114dd53
[ "MIT" ]
1
2021-07-20T15:01:14.000Z
2021-07-20T15:01:14.000Z
from collections import OrderedDict from evidence import Evidence def get_name(item, entity='all'): from ._add_reference_to_evidence import _add_reference_to_evidence evidence = Evidence() fullName = item['uniprot']['entry']['protein']['recommendedName']['fullName'] if type(fullName)==str: ...
36.6
99
0.666667
0
0
0
0
0
0
0
0
223
0.203097
7ef2ed2970e3ddb3c9692d6c9d5d53f3c44e44e9
93
py
Python
amadeus/shopping/availability/__init__.py
minjikarin/amadeus-python
14a004912ee8c36ee4fd79651ea1b23afe6b2a6e
[ "MIT" ]
125
2018-04-09T07:27:24.000Z
2022-02-22T11:45:20.000Z
amadeus/shopping/availability/__init__.py
minjikarin/amadeus-python
14a004912ee8c36ee4fd79651ea1b23afe6b2a6e
[ "MIT" ]
58
2018-03-29T14:58:01.000Z
2022-03-17T10:18:07.000Z
amadeus/shopping/availability/__init__.py
minjikarin/amadeus-python
14a004912ee8c36ee4fd79651ea1b23afe6b2a6e
[ "MIT" ]
58
2018-04-06T10:56:20.000Z
2022-03-04T01:23:24.000Z
from ._flight_availabilities import FlightAvailabilities __all__ = ['FlightAvailabilities']
23.25
56
0.849462
0
0
0
0
0
0
0
0
22
0.236559
7ef39b3ab7e84f40561ab285091ba87a5ffe2c50
6,523
py
Python
examples/scripts/quickstart.py
dcslin/rafiki
b617ac2536ac13095c4930d6d3f1f9b3c231b5e7
[ "Apache-2.0" ]
35
2018-10-07T09:51:42.000Z
2021-09-08T14:13:38.000Z
examples/scripts/quickstart.py
dcslin/rafiki
b617ac2536ac13095c4930d6d3f1f9b3c231b5e7
[ "Apache-2.0" ]
119
2018-10-05T14:49:39.000Z
2022-03-11T23:49:51.000Z
examples/scripts/quickstart.py
dcslin/rafiki
b617ac2536ac13095c4930d6d3f1f9b3c231b5e7
[ "Apache-2.0" ]
32
2018-10-18T12:02:55.000Z
2020-03-01T10:27:06.000Z
# # 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...
43.198675
155
0.706883
0
0
0
0
0
0
0
0
2,569
0.393837
7ef3adf21ab396cb7c21eb61dae297a4ea72dd49
20,228
py
Python
facetool.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
29
2018-12-10T22:40:07.000Z
2022-03-30T02:56:28.000Z
facetool.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
2
2020-02-21T09:48:37.000Z
2021-03-06T22:33:45.000Z
facetool.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
7
2019-08-09T09:19:12.000Z
2022-03-30T02:56:27.000Z
#!/usr/bin/env python3 from dataknead import Knead from facetool import config, media, util from facetool.constants import * from facetool.path import Path from facetool.profiler import Profiler from facetool.errors import ArgumentError from facetool.util import message, force_mkdir, sample_remove, is_json_path from r...
33.939597
100
0.606041
0
0
0
0
0
0
0
0
5,689
0.281244
7ef3b3d381094bf85b4cc0de564bd90a29ffa484
26,538
py
Python
webapp/views.py
manas11/foodex
d78f13e49e6ee51083eb4e91d0a7237d7960c276
[ "MIT" ]
1
2022-02-04T08:47:40.000Z
2022-02-04T08:47:40.000Z
webapp/views.py
manas11/foodex
d78f13e49e6ee51083eb4e91d0a7237d7960c276
[ "MIT" ]
null
null
null
webapp/views.py
manas11/foodex
d78f13e49e6ee51083eb4e91d0a7237d7960c276
[ "MIT" ]
3
2020-07-14T18:41:50.000Z
2022-01-27T17:52:25.000Z
from django.contrib.auth import authenticate from django.contrib.auth.decorators import login_required from django.http import JsonResponse from django.shortcuts import render, redirect, get_object_or_404 from _datetime import datetime # from django.http import HttpResponse, HttpResponseNotAllowed from django.contrib...
32.601966
115
0.585915
0
0
0
0
6,968
0.262567
0
0
7,901
0.297724
7ef4e804662096ec1a9ee780599e15a0cae458b8
3,106
py
Python
src/view/services_read_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
src/view/services_read_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
src/view/services_read_page.py
nbilbo/services_manager
74e0471a1101305303a96d39963cc98fc0645a64
[ "MIT" ]
null
null
null
"""Frame to show all service\'s register\'s. """ import tkinter.ttk from src.view import constants from src.view.services_page import ServicesPage class ServicesReadPage(ServicesPage): def __init__(self, parent, controller, *args, **kwargs): super(ServicesReadPage, self).__init__(parent, *args, **kwargs...
28.236364
106
0.59369
2,950
0.949775
0
0
0
0
0
0
516
0.16613
7ef51c0080ffee9c24edcdbb55e7295f1c8931e0
6,649
py
Python
datamodules/dataset.py
ayhokuyan/CartooNet
61f0ed752a52a9667bc0dd4f8eff2ba708765594
[ "MIT" ]
2
2021-04-25T19:04:38.000Z
2021-04-26T01:13:15.000Z
datamodules/dataset.py
ofirkris/CartooNet
3bda4a4a57148fc1ee9edaccbae25e921132c2ce
[ "MIT" ]
2
2021-01-09T20:43:45.000Z
2021-10-12T16:23:19.000Z
datamodules/dataset.py
ofirkris/CartooNet
3bda4a4a57148fc1ee9edaccbae25e921132c2ce
[ "MIT" ]
3
2021-01-07T10:35:47.000Z
2021-12-12T03:45:58.000Z
from torchvision.datasets import VisionDataset from datamodules.dsfunction import imread from torch.utils.data import Dataset, RandomSampler, Sampler, DataLoader, TensorDataset, random_split, ConcatDataset import os import glob from typing import List, Sequence, Tuple from itertools import cycle, islice import torch fr...
31.661905
116
0.689277
6,285
0.945255
0
0
189
0.028425
0
0
1,394
0.209656
7efb31a8e8af90737b8da1f5791e1e718e4838b5
5,251
py
Python
anarky/interface.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
1
2015-05-12T13:05:04.000Z
2015-05-12T13:05:04.000Z
anarky/interface.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
null
null
null
anarky/interface.py
MulberryBeacon/anarky
54684e4422d36c6ea3c0bb3fab5af56002864690
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- """ Common user interface operations. Author: Eduardo Ferreira License: MIT (see LICENSE for details) """ # Module import # -------------------------------------------------------------------------------------------------- from os import walk from os.path import isdir, isfile, join import argp...
34.546053
102
0.607503
0
0
0
0
0
0
0
0
2,952
0.562179
7efc02867d62088c24fe38cb0e01aef98549a474
585
py
Python
source/intentionally_blank/ext/formatters/eof_newline/formatter.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
source/intentionally_blank/ext/formatters/eof_newline/formatter.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
source/intentionally_blank/ext/formatters/eof_newline/formatter.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
from intentionally_blank.formatter import Formatter class NewlineAtEofFormatter(Formatter): """Ensure the last line of the file has a newline terminator. """ def format(self, lines): """ Args: lines: An iterable series of strings, each with a newline terminator. ...
25.434783
81
0.635897
416
0.711111
0
0
0
0
0
0
295
0.504274
7efefef66bd1feb3647085e8c53cf1e989e233d5
5,049
py
Python
scripts/analyze.py
PuchatekwSzortach/voc_fcn
db881196208f280c47ccfa5743ff2f1e7d9bd009
[ "MIT" ]
5
2018-04-23T02:57:02.000Z
2019-06-17T01:26:34.000Z
scripts/analyze.py
PuchatekwSzortach/voc_fcn
db881196208f280c47ccfa5743ff2f1e7d9bd009
[ "MIT" ]
null
null
null
scripts/analyze.py
PuchatekwSzortach/voc_fcn
db881196208f280c47ccfa5743ff2f1e7d9bd009
[ "MIT" ]
null
null
null
""" Script for analyzing model's performance """ import argparse import sys import collections import yaml import tensorflow as tf import tqdm import numpy as np import net.data import net.ml import net.utilities def report_iou_results(categories_intersections_counts_map, categories_unions_counts_map): """ ...
37.4
110
0.754011
0
0
1,377
0.272727
0
0
0
0
1,673
0.331353
7eff1983d7fbe1e52b15da6db6b21e34c240b7dd
5,095
py
Python
12_solution.py
kng/AoC2020
236865234f4fbf780ec289c15f9d678202b047cf
[ "MIT" ]
null
null
null
12_solution.py
kng/AoC2020
236865234f4fbf780ec289c15f9d678202b047cf
[ "MIT" ]
null
null
null
12_solution.py
kng/AoC2020
236865234f4fbf780ec289c15f9d678202b047cf
[ "MIT" ]
null
null
null
# --- Day 12: Rain Risk --- # https://adventofcode.com/2020/day/12 import time simple = False verbose = 1 if simple: data = 'F10\nN3\nF7\nR90\nF11'.splitlines() else: file = open('12_input.txt', 'r') data = file.read().splitlines() class Ship(object): def __init__(self, d=0, x=0, y=0,...
35.137931
93
0.366045
3,981
0.781354
0
0
0
0
0
0
597
0.117174
7d0038100c8c0111fa664f6eb6cc9dd2beee4fca
335
py
Python
chatting/models.py
aliakbars/tbdc
ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55
[ "Apache-2.0" ]
null
null
null
chatting/models.py
aliakbars/tbdc
ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55
[ "Apache-2.0" ]
null
null
null
chatting/models.py
aliakbars/tbdc
ac8fe28b781cbc5e6e9cf7dc9579cc94c7e9ec55
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User # Create your models here. class Chat(models.Model): content = models.TextField() sender = models.ForeignKey(User) receiver = models.ForeignKey(User) date_created = models.DateTimeField(aut...
30.454545
58
0.776119
193
0.576119
0
0
0
0
0
0
26
0.077612
7d01524893d64dff4161903aeece165ee10064d8
4,118
py
Python
src/neo_loader/helpers/tflite_model_helper.py
minlu1021/neo-loader
dcee791380c95b6c7bd5ae580fb252eefa6ae2ab
[ "Apache-2.0" ]
null
null
null
src/neo_loader/helpers/tflite_model_helper.py
minlu1021/neo-loader
dcee791380c95b6c7bd5ae580fb252eefa6ae2ab
[ "Apache-2.0" ]
null
null
null
src/neo_loader/helpers/tflite_model_helper.py
minlu1021/neo-loader
dcee791380c95b6c7bd5ae580fb252eefa6ae2ab
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from .abstract_model_helper import ModelHelper from tflite.Tensor import Tensor from tflite.Model import Model from tflite.TensorType import TensorType from typing import List class TFLiteModelHelper(ModelHelper): TFLITE_TENSOR_TYPE_TO_DTYPE = {} TFLITE_TENSOR_TYPE_TO_DTYPE[...
41.59596
159
0.678728
3,904
0.948033
0
0
661
0.160515
0
0
328
0.07965
7d02e19d26499fd9832ccc2e030ef3666288dfd1
584
py
Python
wingstructure/aero/aero_moment.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
7
2019-01-02T16:47:31.000Z
2020-10-10T10:06:15.000Z
wingstructure/aero/aero_moment.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
9
2019-01-13T20:11:23.000Z
2019-10-10T21:38:58.000Z
wingstructure/aero/aero_moment.py
helo9/wingstructure
ff82eb0b87e3b5ececff39895f959bfef468e7c3
[ "MIT" ]
1
2018-12-27T14:20:36.000Z
2018-12-27T14:20:36.000Z
import numpy as np def mean_momentcoefficient(wing, airfoil_db): """calculate mean coefficient of moment for wing Parameters ---------- wing : Wing object describing wing airfoil_db : dict dictionary containing airfoil data """ try: c_m0s = [airfoil_db[sec.airf...
24.333333
82
0.630137
0
0
0
0
0
0
0
0
261
0.446918
7d037a52977d0f0954d115a4089354137b1a38db
22,333
py
Python
backend/vqa_benchmarking_backend/metrics/metrics.py
patilli/vqa_benchmarking
53a05d8956e71e99de6d97db5e7a7e400b6cc65f
[ "MIT" ]
1
2021-12-09T06:32:14.000Z
2021-12-09T06:32:14.000Z
backend/vqa_benchmarking_backend/metrics/metrics.py
patilli/vqa_benchmarking
53a05d8956e71e99de6d97db5e7a7e400b6cc65f
[ "MIT" ]
null
null
null
backend/vqa_benchmarking_backend/metrics/metrics.py
patilli/vqa_benchmarking
53a05d8956e71e99de6d97db5e7a7e400b6cc65f
[ "MIT" ]
null
null
null
from typing import List, Tuple import sqlite3 import os import random import json from vqa_benchmarking_backend.datasets.dataset import DatasetModelAdapter, DiagnosticDataset, DataSample from vqa_benchmarking_backend.metrics.bias import eval_bias, inputs_for_image_bias_featurespace, inputs_for_image_bias_wordspace, in...
53.685096
240
0.680697
0
0
0
0
9,809
0.439216
0
0
5,422
0.24278
7d046d7646f874b0a9f0b4e92ebdd10a5f1eb202
268
py
Python
hospitals/urls.py
gilga98/ahalya
1c50ae3ffaf48db5b1970567028117991451d62b
[ "MIT" ]
4
2020-07-18T18:09:32.000Z
2021-05-01T02:12:40.000Z
hospitals/urls.py
gilga98/ahalya
1c50ae3ffaf48db5b1970567028117991451d62b
[ "MIT" ]
5
2021-03-30T13:56:57.000Z
2021-09-22T19:27:22.000Z
hospitals/urls.py
gilga98/ahalya
1c50ae3ffaf48db5b1970567028117991451d62b
[ "MIT" ]
1
2020-11-15T05:08:21.000Z
2020-11-15T05:08:21.000Z
from django.urls import path from . import views app_name = "hospitals" urlpatterns = [ path("hospitalList", views.HospitalDetailedList.as_view(), name="hospital_list"), path("hospitalDetail", views.HospitalDetailedSingle.as_view(), name="hospital_read"), ]
26.8
89
0.75
0
0
0
0
0
0
0
0
71
0.264925
7d0477dd2b810ce50a53066c223439d0ca4dbaec
335
py
Python
miniteste7/divisoresmaior/divisoresmaior.py
Davvi-Duarte/prog1
b22e271d3a0226ebb2cabe211d4c8e243cc93f1c
[ "Apache-2.0" ]
null
null
null
miniteste7/divisoresmaior/divisoresmaior.py
Davvi-Duarte/prog1
b22e271d3a0226ebb2cabe211d4c8e243cc93f1c
[ "Apache-2.0" ]
null
null
null
miniteste7/divisoresmaior/divisoresmaior.py
Davvi-Duarte/prog1
b22e271d3a0226ebb2cabe211d4c8e243cc93f1c
[ "Apache-2.0" ]
null
null
null
def maior_numero(lista): a = lista[0] for i in range(len(lista)): if lista[i] > a: a = lista[i] return a def remove_divisores_do_maior(lista): maiornumero=maior_numero(lista) for i in range(len(lista)-1,-1,-1): if (maiornumero%lista[i])==0: lista.pop(i) re...
23.928571
39
0.570149
0
0
0
0
0
0
0
0
0
0
7d053dd93a0611a4a0e532ea4d23bee17151532c
1,613
py
Python
RBSP/Pos/_ReadSPDF.py
mattkjames7/RBSP
4827fc1fa3203463cdf994c1c979deec60fe1122
[ "MIT" ]
null
null
null
RBSP/Pos/_ReadSPDF.py
mattkjames7/RBSP
4827fc1fa3203463cdf994c1c979deec60fe1122
[ "MIT" ]
null
null
null
RBSP/Pos/_ReadSPDF.py
mattkjames7/RBSP
4827fc1fa3203463cdf994c1c979deec60fe1122
[ "MIT" ]
null
null
null
from .. import Globals import PyFileIO as pf import os import numpy as np def _ReadSPDF(sc='a'): ''' Reads the SPDF SSCWeb text files (scraped from their HTML output). Input: sc: Spacecraft 'a' or 'b' Returns: numpy.recarray ''' #set up dtype to load dtype = [('Year','int32'),('DOY','int32'),('ut','U...
31.019231
169
0.610663
0
0
0
0
0
0
0
0
869
0.538748
7d06085df3fe41964096c1793c9b3fba869163aa
273
py
Python
setup.py
klaasb/python-dmenuwrap
ffc592da00d1c53200e4b391a81c423afc06c592
[ "BSD-2-Clause" ]
1
2019-06-28T17:47:43.000Z
2019-06-28T17:47:43.000Z
setup.py
klaasb/python-dmenuwrap
ffc592da00d1c53200e4b391a81c423afc06c592
[ "BSD-2-Clause" ]
null
null
null
setup.py
klaasb/python-dmenuwrap
ffc592da00d1c53200e4b391a81c423afc06c592
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup setup( name='python-dmenuwrap', author='Klaas Boesche', author_email='klaas-dev@boesche.me', url='https://github.com/KaGeBe/python-dmenuwrap', version='0.1.0', license='BSD 2-clause', py_modules=['dmenuwrap'] )
22.75
53
0.67033
0
0
0
0
0
0
0
0
131
0.479853
7d0655be98836fde86e8a90e510ed3097683aff2
967
py
Python
crits/comments/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
738
2015-01-02T12:39:55.000Z
2022-03-23T11:05:51.000Z
crits/comments/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
605
2015-01-01T01:03:39.000Z
2021-11-17T18:51:07.000Z
crits/comments/urls.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
316
2015-01-07T12:35:01.000Z
2022-03-30T04:44:30.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^remove/(?P<obj_type>\S+)/(?P<obj_id>\S+)/$', views.remove_comment, name='crits-comments-views-remove_comment'), url(r'^(?P<method>\S+)/(?P<obj_type>\S+)/(?P<obj_id>\S+)/$', views.add_update_comment, name='crits-comments-views-add_upda...
64.466667
139
0.688728
0
0
0
0
0
0
0
0
576
0.595657
7d088e8ad48a298f700c49b458a6cd8398f17041
19,511
py
Python
FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
null
null
null
FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
6
2021-07-26T14:07:30.000Z
2022-01-09T01:06:40.000Z
FortressOfSolitude/_FortressOfSolitude/NeutrinoKey/models.py
BDD16/FortressOfSolitude
51070d3ffa78262d823ae8ccce4f8ae3c7ed83ac
[ "MIT" ]
null
null
null
""" DBA 1337_TECH, AUSTIN TEXAS © MAY 2020 Proof of Concept code, No liabilities or warranties expressed or implied. """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from datetime import datetime from .cryptoutils import CryptoTools from base64 import b64encode, b64dec...
39.576065
194
0.621906
15,459
0.792282
0
0
0
0
0
0
4,183
0.214381
7d08e0455217002dd24efe02680fa2c013e09769
9,946
py
Python
tests/test_bitshares.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
102
2018-04-08T23:05:00.000Z
2022-03-31T10:10:03.000Z
tests/test_bitshares.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
246
2018-04-03T12:35:49.000Z
2022-02-28T10:44:28.000Z
tests/test_bitshares.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
128
2018-04-14T01:39:12.000Z
2022-03-25T08:56:51.000Z
# -*- coding: utf-8 -*- import mock import string import unittest import random from pprint import pprint from bitshares import BitShares from bitshares.account import Account from bitsharesbase.operationids import getOperationNameForId from bitshares.amount import Amount from bitsharesbase.account import PrivateKey fr...
36.973978
88
0.584356
9,467
0.95184
0
0
0
0
0
0
2,555
0.256887
7d0bbe8da578c249333be408a98ef7bf3a18a601
2,068
py
Python
wms/config/wms.py
bhavesh95863/WMS
c45858a943a607e5d0b49f698e469f3362aae001
[ "MIT" ]
null
null
null
wms/config/wms.py
bhavesh95863/WMS
c45858a943a607e5d0b49f698e469f3362aae001
[ "MIT" ]
null
null
null
wms/config/wms.py
bhavesh95863/WMS
c45858a943a607e5d0b49f698e469f3362aae001
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("WMS"), "icon": "octicon octicon-briefcase", "items": [ { "type": "doctype", "name": "WMS Lead", ...
29.126761
55
0.287718
0
0
0
0
0
0
0
0
676
0.326886
7d0e753b01114266b3974061310dec6cde76f5b2
7,424
py
Python
medicalseg/utils/utils.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
medicalseg/utils/utils.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
medicalseg/utils/utils.py
onecatcn/MedicalSeg
ba490c5c4541ac5bad0aefad6453ce0a48241ec7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
37.685279
151
0.620824
0
0
250
0.033665
277
0.037301
0
0
2,341
0.315244
7d10929e0f7464895fe68437ba3cbfe2769eb71c
16,828
py
Python
src/specific_models/bot-iot/attack_identification/lstm.py
kaylani2/sbseg2020
055e403cdf5a3484d4d66e5dbe20a498af6669e0
[ "MIT" ]
7
2019-11-06T14:35:37.000Z
2022-03-06T03:55:06.000Z
src/specific_models/bot-iot/attack_identification/lstm.py
kaylani2/sbseg2020
055e403cdf5a3484d4d66e5dbe20a498af6669e0
[ "MIT" ]
10
2020-05-16T02:38:35.000Z
2021-04-11T23:55:35.000Z
src/specific_models/bot-iot/attack_identification/lstm.py
kaylani2/sbseg2020
055e403cdf5a3484d4d66e5dbe20a498af6669e0
[ "MIT" ]
2
2020-06-26T21:39:41.000Z
2020-09-15T03:38:32.000Z
# Author: Kaylani Bochie # github.com/kaylani2 # kaylani AT gta DOT ufrj DOT br ### K: Model: LSTM import sys import time import pandas as pd import os import math import numpy as np from numpy import mean, std from unit import remove_columns_with_one_value, remove_nan_columns, load_dataset from unit import display_ge...
42.175439
109
0.590504
0
0
0
0
0
0
0
0
7,542
0.448182
7d124f218a5ee0a4b8f0187b77fddb8e78f5822d
866
py
Python
ledis/datastructures.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
ledis/datastructures.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
ledis/datastructures.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
from enum import unique, Enum from typing import Union @unique class DataType(Enum): STR = "str" SET = "set" class BaseDataStructure: __slots__ = {"data", "type", "expire_at"} def __init__(self, data: Union[str, set]): self.data = data # This will raise an error if type is not supp...
21.121951
62
0.614319
791
0.913395
0
0
61
0.070439
0
0
168
0.193995
7d12d17fb491fc8c8fc02644cb8aec6502ee03f9
6,350
py
Python
pychpp/ht_matches_archive.py
PiGo86/pychpp
052c2ea96b170118fc51b9a72f00995cb7465290
[ "Apache-2.0" ]
1
2021-11-01T11:58:47.000Z
2021-11-01T11:58:47.000Z
pychpp/ht_matches_archive.py
PiGo86/pychpp
052c2ea96b170118fc51b9a72f00995cb7465290
[ "Apache-2.0" ]
null
null
null
pychpp/ht_matches_archive.py
PiGo86/pychpp
052c2ea96b170118fc51b9a72f00995cb7465290
[ "Apache-2.0" ]
1
2020-08-27T13:56:16.000Z
2020-08-27T13:56:16.000Z
import datetime from pychpp import ht_model from pychpp import ht_xml from pychpp import ht_team, ht_match, ht_datetime class HTMatchesArchive(ht_model.HTModel): """ Hattrick matches archive """ _SOURCE_FILE = "matchesarchive" _SOURCE_FILE_VERSION = "1.4" # URL PATH with several params avai...
40.189873
79
0.59685
6,223
0.98
0
0
629
0.099055
0
0
2,331
0.367087
7d13b825db8617c1324456436c859711871cf5e3
46,339
py
Python
langcodes/__init__.py
garyd203/langcodes
0cedf9ca257ebf7250de5d3a63ec33a7d198db58
[ "MIT" ]
null
null
null
langcodes/__init__.py
garyd203/langcodes
0cedf9ca257ebf7250de5d3a63ec33a7d198db58
[ "MIT" ]
null
null
null
langcodes/__init__.py
garyd203/langcodes
0cedf9ca257ebf7250de5d3a63ec33a7d198db58
[ "MIT" ]
null
null
null
""" langcodes knows what languages are. It knows the standardized codes that refer to them, such as `en` for English, `es` for Spanish and `hi` for Hindi. Often, it knows what these languages are called *in* a language, and that language doesn't have to be English. See README.md for the main documentation, or read it ...
37.673984
134
0.620665
35,452
0.761492
0
0
12,453
0.267484
0
0
31,836
0.683822
7d15587f60cf0a944a8221741a2723b9c690ebb1
2,892
py
Python
tests/integration/suites/sensitive/update.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
tests/integration/suites/sensitive/update.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
tests/integration/suites/sensitive/update.py
bularcasergiu/Anjay
a76399199dc9569d58aebc4bf18c494ca2127292
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2020 AVSystem <avsystem@avsystem.com> # # 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 ...
37.076923
84
0.687759
2,115
0.731328
0
0
0
0
0
0
898
0.310512
7d15e1ed8db34e13a2c5028eba86c509926087ab
829
py
Python
dataset/gnn_dataset.py
Yu-Yy/MathPoseGNN
9759955957b4cca192f5a98031245277c12750f3
[ "Apache-2.0" ]
1
2022-01-08T07:39:49.000Z
2022-01-08T07:39:49.000Z
dataset/gnn_dataset.py
Yu-Yy/MathPoseGNN
9759955957b4cca192f5a98031245277c12750f3
[ "Apache-2.0" ]
null
null
null
dataset/gnn_dataset.py
Yu-Yy/MathPoseGNN
9759955957b4cca192f5a98031245277c12750f3
[ "Apache-2.0" ]
null
null
null
import torch from torch.utils.data import Dataset import os import pickle class GNNdataset(Dataset): # train and test def __init__(self, data_dir): super().__init__() self.data_dir = data_dir self.file_list = os.listdir(self.data_dir) def __len__(self): return len(self....
27.633333
80
0.639324
734
0.885404
0
0
0
0
0
0
61
0.073583
7d168979294284d9641a5164cc03767fec0a51c9
701
py
Python
autonapt.py
rainforest-tokyo/AutoNaptPython
5c021ca18e7a8280b52fd168ff6c443321ff3e31
[ "MIT" ]
null
null
null
autonapt.py
rainforest-tokyo/AutoNaptPython
5c021ca18e7a8280b52fd168ff6c443321ff3e31
[ "MIT" ]
null
null
null
autonapt.py
rainforest-tokyo/AutoNaptPython
5c021ca18e7a8280b52fd168ff6c443321ff3e31
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys from types import MethodType sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/detail') from Utils import Utils try: from AutoNapt import AutoNapt except Exception as ex: Utils.print_exception(ex) def expects_type(self, name, ...
21.90625
77
0.684736
0
0
0
0
0
0
0
0
182
0.259629
7d175bf034fa65f7ae66fd6150ae4013621d9935
16,355
py
Python
tests/normalizer/test_number_normalizer.py
tkscode/pyNormalizeNumExp
ac7df9b49153d9b792f5c8087b17c0d8c4a615b2
[ "BSD-3-Clause" ]
2
2021-11-09T06:18:21.000Z
2021-12-04T10:58:26.000Z
tests/normalizer/test_number_normalizer.py
tkscode/pyNormalizeNumExp
ac7df9b49153d9b792f5c8087b17c0d8c4a615b2
[ "BSD-3-Clause" ]
null
null
null
tests/normalizer/test_number_normalizer.py
tkscode/pyNormalizeNumExp
ac7df9b49153d9b792f5c8087b17c0d8c4a615b2
[ "BSD-3-Clause" ]
1
2021-11-09T03:33:33.000Z
2021-11-09T03:33:33.000Z
import pytest from pynormalizenumexp.expression.base import NNumber, NotationType from pynormalizenumexp.utility.dict_loader import DictLoader from pynormalizenumexp.normalizer.number_normalizer import NumberNormalizer @pytest.fixture(scope="class") def number_normalizer(): return NumberNormalizer(DictLoader("ja...
50.478395
123
0.667869
17,290
0.981438
0
0
101
0.005733
0
0
2,276
0.129193
7d176782197a481d98435dbbce03b227e4fc2703
253
py
Python
kivy/tests/pyinstaller/simple_widget/project/widget.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
13,889
2015-01-01T06:43:41.000Z
2022-03-31T17:37:56.000Z
kivy/tests/pyinstaller/simple_widget/project/widget.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
4,570
2015-01-01T17:58:52.000Z
2022-03-31T18:42:16.000Z
kivy/tests/pyinstaller/simple_widget/project/widget.py
Galland/kivy
95a6bf279883d706f645e4629c16d5ee1038f0ec
[ "MIT" ]
3,786
2015-01-01T09:20:45.000Z
2022-03-30T21:15:05.000Z
from kivy.uix.widget import Widget class MyWidget(Widget): def __init__(self, **kwargs): super(MyWidget, self).__init__(**kwargs) def callback(*l): self.x = self.y self.fbind('y', callback) callback()
19.461538
48
0.58498
215
0.849802
0
0
0
0
0
0
3
0.011858
7d17c5d4335dc7c37aaf77acd240d8436fc7dcc4
69
py
Python
sample/core.py
trs319843/mypackage
cdcefaac5635805a577c26bea8e3437dc3f7e049
[ "MIT" ]
null
null
null
sample/core.py
trs319843/mypackage
cdcefaac5635805a577c26bea8e3437dc3f7e049
[ "MIT" ]
null
null
null
sample/core.py
trs319843/mypackage
cdcefaac5635805a577c26bea8e3437dc3f7e049
[ "MIT" ]
null
null
null
# sample\core.py def run_core(): print("In pycharm run_core")
9.857143
32
0.652174
0
0
0
0
0
0
0
0
37
0.536232
7d17d2a8d99333e35f8e555eee507303861ac334
18,537
py
Python
userbot/plugins/spam.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/spam.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/spam.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
import asyncio import base64 import os from telethon import functions, types from telethon.tl.functions.messages import ImportChatInviteRequest as Get from userbot import CMD_HELP from userbot.plugins import BOTLOG, BOTLOG_CHATID from userbot.utils import lightning_cmd, edit_or_reply, sudo_cmd @bot.on(lightning_cmd...
39.950431
141
0.496413
0
0
0
0
17,428
0.940174
16,774
0.904893
3,526
0.190214
7d187ae720e582888dbe9f2c84697c0a7a77dbce
352
py
Python
curso_em_video/mundo_1/exs_python/ExPy011.py
LuiZamberlan/Ex.-Python
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
[ "MIT" ]
1
2020-09-19T21:39:12.000Z
2020-09-19T21:39:12.000Z
curso_em_video/mundo_1/exs_python/ExPy011.py
LuiZamberlan/Ex.-Python
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
[ "MIT" ]
null
null
null
curso_em_video/mundo_1/exs_python/ExPy011.py
LuiZamberlan/Ex.-Python
f5b6e4782e0ce0e3fead82b126b52588e1bc21b0
[ "MIT" ]
null
null
null
l = float(input('Digite a largura da parede em metros: ')) al = float(input('Digite a altura da parede em metros: ')) #Um litro de tinta pinta 2m², largura * altura da parede obtemos a área dela em m² e dividimos por dois para obter a quantidade de tinta necessária. lt = (l * al) / 2 print(f'Com uma parede {l}x{al}, ...
44
148
0.704545
0
0
0
0
0
0
0
0
290
0.810056
7d18dd3203b7119834318c4470153b6b81e4c9b8
1,840
py
Python
generators/name.py
vickio/compgen
7bb9a473622e53df18501b577dca4a33fc83922c
[ "MIT" ]
2
2018-11-24T05:52:48.000Z
2018-11-29T20:46:18.000Z
generators/name.py
vickio/compgen
7bb9a473622e53df18501b577dca4a33fc83922c
[ "MIT" ]
null
null
null
generators/name.py
vickio/compgen
7bb9a473622e53df18501b577dca4a33fc83922c
[ "MIT" ]
2
2018-11-23T12:33:07.000Z
2018-11-27T02:50:06.000Z
from random import choice from string import Template from . import BaseGenerator class Name(BaseGenerator): def __init__(self, company): self.company = company self.data = self._load_json('name.json') self.templates = self.data.pop('templates') self.noun...
34.716981
80
0.584239
1,754
0.953261
0
0
0
0
0
0
251
0.136413
7d196d02b6dfdae637cba35d8a14ed891350c55a
1,046
py
Python
microcosm_flask/session.py
KensoDev/microcosm-flask
3618333f4a0f45e673a33986877157208c9eac5f
[ "Apache-2.0" ]
11
2017-01-30T21:53:20.000Z
2020-05-29T22:39:19.000Z
microcosm_flask/session.py
KensoDev/microcosm-flask
3618333f4a0f45e673a33986877157208c9eac5f
[ "Apache-2.0" ]
139
2016-03-09T19:09:59.000Z
2021-09-03T17:14:00.000Z
microcosm_flask/session.py
KensoDev/microcosm-flask
3618333f4a0f45e673a33986877157208c9eac5f
[ "Apache-2.0" ]
10
2016-12-19T22:39:42.000Z
2021-03-09T19:23:15.000Z
""" Support a user-defined per-request session. """ from flask import g def register_session_factory(graph, key, session_factory): """ Register a session creation function so that a new session (of user-defined type) will be saved to `flask.g` on every request (and closed on teardown). In other word...
30.764706
85
0.688337
0
0
0
0
379
0.362333
0
0
649
0.620459
7d198a067cf29bfd3860f24dbef0396a06853828
5,188
py
Python
pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
1
2021-09-09T04:41:28.000Z
2021-09-09T04:41:28.000Z
pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
null
null
null
pkg_ros_iot_bridge/scripts/temp_for_salim/get_sheet.py
1arshan/Eyantra_Virgi-bot
30ebe99fec6a0d4767fe94468b21bc00091bc527
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 import requests import json import heapq as hq #heap def check_order(order_id,order_info): for i in order_info: if i[1] == order_id: return True return False def check_if_dispatched(order_id): # URL = "https://spreadsheets.google.com/feeds/list/1ria...
39.907692
152
0.655551
0
0
0
0
0
0
0
0
2,414
0.465305
7d1a5fed53eac5b58167653a55f260086f23688f
1,065
py
Python
llvm-codegen/compiler-tests/test-llvm-4.py
PS-Group/compiler-theory-samples
c916af50eb42020024257ecd17f9be1580db7bf0
[ "MIT" ]
null
null
null
llvm-codegen/compiler-tests/test-llvm-4.py
PS-Group/compiler-theory-samples
c916af50eb42020024257ecd17f9be1580db7bf0
[ "MIT" ]
null
null
null
llvm-codegen/compiler-tests/test-llvm-4.py
PS-Group/compiler-theory-samples
c916af50eb42020024257ecd17f9be1580db7bf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os.path import subprocess import shutil def get_compiler_path(): compiler_path = os.path.abspath("../../debug-compiler-theory-samples/llvm_4") if not os.path.exists(compiler_path): raise ValueError('compiler llvm_4 not found') return compiler_path class Runner: d...
30.428571
81
0.668545
503
0.4723
0
0
0
0
0
0
253
0.237559
7d1ce69a7df2042cf3c0f10f391fedf67f671938
1,282
py
Python
cropwatch/apps/metrics/management/commands/uptime.py
objectsyndicate/Crop-Watch
c960bbcacc49199e35984dc521cc9e8663a6b972
[ "Apache-2.0" ]
13
2018-02-10T14:52:05.000Z
2021-08-31T21:21:58.000Z
cropwatch/apps/metrics/management/commands/uptime.py
objectsyndicate/Crop-Watch
c960bbcacc49199e35984dc521cc9e8663a6b972
[ "Apache-2.0" ]
1
2019-06-13T15:55:08.000Z
2020-07-16T17:35:09.000Z
cropwatch/apps/metrics/management/commands/uptime.py
objectsyndicate/Crop-Watch
c960bbcacc49199e35984dc521cc9e8663a6b972
[ "Apache-2.0" ]
2
2018-05-15T14:54:28.000Z
2019-05-19T14:59:18.000Z
from dateutil.relativedelta import relativedelta from django.core.management.base import BaseCommand from django.utils import timezone from cropwatch.apps.ioTank.models import ioTank, SensorReading from cropwatch.apps.metrics.tasks import * class Command(BaseCommand): help = 'Performs uptime validation every 5' ...
42.733333
116
0.625585
1,037
0.808892
0
0
0
0
0
0
132
0.102964
7d1d6b584d80ab19370f83c6e3bf191fa2bab75c
12,946
py
Python
src/ralph/discovery/tasks.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/tasks.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/discovery/tasks.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Asynchronous task support for discovery.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import datetime, timedelta from functools import partial impo...
33.365979
79
0.622509
128
0.009887
0
0
0
0
0
0
2,953
0.228101
7d1e3411660fc6ff987dff3de950e6a48810d1d8
7,125
py
Python
tests/tests_bibliotools/test_parse_and_group.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
5
2018-02-14T21:11:06.000Z
2020-02-23T14:53:11.000Z
tests/tests_bibliotools/test_parse_and_group.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
106
2018-02-09T00:31:05.000Z
2018-03-29T07:28:34.000Z
tests/tests_bibliotools/test_parse_and_group.py
wonjoonSeol/ScienceScape
8d8a3cb76193b6f85b7a2a6c7219e249237d64c8
[ "BSD-3-Clause" ]
6
2018-02-23T17:48:03.000Z
2020-05-14T13:39:36.000Z
from django.test import TestCase import sys import os lib_path = os.path.abspath(os.path.join(__file__, '..', '..', '..', 'bibliotools3', 'scripts')) sys.path.append(lib_path) from parse_and_group import is_year_within_span from parse_and_group import create_span_files from parse_and_group import separate_years from ...
60.897436
2,417
0.703439
6,760
0.948772
0
0
0
0
0
0
4,440
0.623158
7d1f3ddbc8caa64dc170bb034f2e11f6a498e3f3
968
py
Python
src/hw_conversion/HWPreprocessor.py
jmbarrios/hw-conversion
8addd24e726e7284ade3195df14f96ea51c332b7
[ "MIT" ]
null
null
null
src/hw_conversion/HWPreprocessor.py
jmbarrios/hw-conversion
8addd24e726e7284ade3195df14f96ea51c332b7
[ "MIT" ]
null
null
null
src/hw_conversion/HWPreprocessor.py
jmbarrios/hw-conversion
8addd24e726e7284ade3195df14f96ea51c332b7
[ "MIT" ]
null
null
null
''' Module containing a preprocessor that keeps cells if they match given expression. ''' # Author: Juan M. Barrios <j.m.barrios@gmail.com> import re from typing import Pattern from traitlets import Unicode from nbconvert.preprocessors import Preprocessor class HomeworkPreproccessor(Preprocessor): '''Keeps cell...
27.657143
77
0.67562
708
0.731405
0
0
0
0
0
0
378
0.390496
7d20f25ebe54b94a311e03fb9f7b27183d742e5a
2,455
py
Python
CloacaCodeTests/minheap.py
rockobonaparte/cloaca
789dc5a6ec1c52f6fe3d5e8aadc1a9c149aacf68
[ "MIT" ]
3
2020-01-11T19:25:18.000Z
2022-03-12T17:27:28.000Z
CloacaCodeTests/minheap.py
rockobonaparte/cloaca
789dc5a6ec1c52f6fe3d5e8aadc1a9c149aacf68
[ "MIT" ]
4
2020-02-10T16:50:43.000Z
2021-12-03T08:03:46.000Z
CloacaCodeTests/minheap.py
rockobonaparte/cloaca
789dc5a6ec1c52f6fe3d5e8aadc1a9c149aacf68
[ "MIT" ]
4
2020-02-10T16:40:46.000Z
2020-11-27T08:11:51.000Z
raise NotImplementedError("Getting an NPE trying to parse this code") class KeyValue: def __init__(self, key, value): self.key = key self.value = value def __repr__(self): return f"{self.key}->{self.value}" class MinHeap: def __init__(self, start_size): self.heap = [None]...
27.897727
84
0.518941
2,173
0.885132
0
0
0
0
0
0
78
0.031772
7d2138cb868753332f4b3ce35fd7b436d701ae81
15,359
py
Python
mecademic/Robot.py
nickarmenta/PythonForMecademic
d6277239bbb376a2388984a9fe12a4d4d88d653c
[ "MIT" ]
1
2021-03-22T13:40:42.000Z
2021-03-22T13:40:42.000Z
mecademic/Robot.py
nickarmenta/PythonForMecademic
d6277239bbb376a2388984a9fe12a4d4d88d653c
[ "MIT" ]
null
null
null
mecademic/Robot.py
nickarmenta/PythonForMecademic
d6277239bbb376a2388984a9fe12a4d4d88d653c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket import threading import logging logging.basicConfig(filename='meca.log', level=logging.DEBUG) PROGRAM_FILE = 'program_output.txt' # Dictionary of status indexes in robot status message statusDict = {'activated': 0, 'homed': 1, 'simulating': 2, '...
35.801865
102
0.604662
13,679
0.890618
0
0
0
0
0
0
3,888
0.253141
7d21bc0228817255f88c077601480d01e75f6337
1,750
py
Python
renku/core/utils/datetime8601.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
renku/core/utils/datetime8601.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
renku/core/utils/datetime8601.py
mohammad-sdsc/renku-python
3a7bf2339ab56a3bc00a689bb27a864bb5bf55da
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
31.25
77
0.660571
0
0
0
0
0
0
0
0
1,064
0.606268
7d24621d93eb905ea51ea7bf215e6bab3af4d108
2,493
py
Python
dn-real-in/eval.py
ngchc/deepBoosting
13b3515c16f0d9a0a92b990dfb5eef09ec1a7298
[ "MIT" ]
49
2019-04-01T02:03:05.000Z
2021-11-29T07:58:33.000Z
dn-real-in/eval.py
ngchc/deepBoosting
13b3515c16f0d9a0a92b990dfb5eef09ec1a7298
[ "MIT" ]
4
2019-04-04T06:53:19.000Z
2021-11-02T13:11:44.000Z
dn-real-in/eval.py
ngchc/deepBoosting
13b3515c16f0d9a0a92b990dfb5eef09ec1a7298
[ "MIT" ]
16
2019-04-01T02:03:11.000Z
2022-03-20T13:13:04.000Z
import os import numpy as np import tensorflow as tf from PIL import Image def modcrop(im, modulo): if len(im.shape) == 3: size = np.array(im.shape) size = size - (size % modulo) im = im[0 : size[0], 0 : size[1], :] elif len(im.shape) == 2: size = np.array(im.shape) size = size - (size % modulo) im = im...
27.7
108
0.636984
0
0
0
0
0
0
0
0
425
0.170477
7d2644ca332886ab77c32e7e0f6f69055493b94f
294
py
Python
c_registry.py
shemerofir/skaffold-auto-docs
20a05d79fd5df1e1ca8dc356c627dda06dd4720a
[ "MIT" ]
null
null
null
c_registry.py
shemerofir/skaffold-auto-docs
20a05d79fd5df1e1ca8dc356c627dda06dd4720a
[ "MIT" ]
null
null
null
c_registry.py
shemerofir/skaffold-auto-docs
20a05d79fd5df1e1ca8dc356c627dda06dd4720a
[ "MIT" ]
null
null
null
import sh from dotenv import load_dotenv import os load_dotenv() PASSWORD = os.environ.get("sudo_password") def c_registry(): with sh.contrib.sudo(password=PASSWORD, _with=True): sh.docker('run', '-d', '-p', '5000:5000', '--restart=always', '--name', 'registry', 'registry:2')
22.615385
105
0.670068
0
0
0
0
0
0
0
0
87
0.295918
7d270ae80a04b95ae0734653fb57ab760e18861b
191
py
Python
api/guids/urls.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
api/guids/urls.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
api/guids/urls.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
from django.conf.urls import url from api.guids import views app_name = 'osf' urlpatterns = [ url(r'^(?P<guids>\w+)/$', views.GuidDetail.as_view(), name=views.GuidDetail.view_name), ]
19.1
91
0.696335
0
0
0
0
0
0
0
0
25
0.13089
7d27c111549ca054eb1d4350e5f213c7b661a06c
500
py
Python
drinks/migrations/0002_drink_ingredients.py
jmhubbard/cocktail_api
47c2cca699f02dc14af04b989beeee9855a797f0
[ "Unlicense" ]
1
2020-11-25T04:57:34.000Z
2020-11-25T04:57:34.000Z
drinks/migrations/0002_drink_ingredients.py
jmhubbard/cocktail_api
47c2cca699f02dc14af04b989beeee9855a797f0
[ "Unlicense" ]
null
null
null
drinks/migrations/0002_drink_ingredients.py
jmhubbard/cocktail_api
47c2cca699f02dc14af04b989beeee9855a797f0
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-29 04:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('recipes', '0001_initial'), ('ingredients', '0001_initial'), ('drinks', '0001_initial'), ] operations = [ migrations.AddField...
23.809524
96
0.6
407
0.814
0
0
0
0
0
0
179
0.358
7d2960dbcf92acd1ac35985bb043ac91054c10d1
5,971
py
Python
trello_track/__init__.py
seanmacavaney/trello-track
b900cfbe9395cf2742e624b49dfcb9ed6da67552
[ "MIT" ]
1
2020-09-13T17:17:41.000Z
2020-09-13T17:17:41.000Z
trello_track/__init__.py
seanmacavaney/trello-track
b900cfbe9395cf2742e624b49dfcb9ed6da67552
[ "MIT" ]
null
null
null
trello_track/__init__.py
seanmacavaney/trello-track
b900cfbe9395cf2742e624b49dfcb9ed6da67552
[ "MIT" ]
null
null
null
import sys import json import os import platform import subprocess import contextlib import requests CHECKLIST_NAME = 'Commands' ICON_READY, ICON_IP, ICON_DONE, ICON_FAIL = '⚪', '⌛', '🔵', '🔴' _CREDS = None def CREDS(): global _CREDS if _CREDS is None: c = {} if os.path.exists(os.path.expan...
35.754491
122
0.533077
3,860
0.645377
127
0.021234
154
0.025748
0
0
1,382
0.231065
7d2a2fea07d41d19ee631745dc1ae58b9dcafc22
7,363
py
Python
src/ResourceManager.py
NEKERAFA/Soul-Tower
d37c0bf6bcbf253ec5b2c41f802adeeca31fb384
[ "MIT" ]
null
null
null
src/ResourceManager.py
NEKERAFA/Soul-Tower
d37c0bf6bcbf253ec5b2c41f802adeeca31fb384
[ "MIT" ]
null
null
null
src/ResourceManager.py
NEKERAFA/Soul-Tower
d37c0bf6bcbf253ec5b2c41f802adeeca31fb384
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pygame, sys, os, json from pygame.locals import * IMAGE_PATH = os.path.join('assets', 'images') SPRITE_SHEET_PATH = os.path.join('assets', 'sprites') STAGE_CONF_PATH = os.path.join('assets', 'stages') ROOM_CONF_PATH = os.path.join('assets', 'rooms') DIALOGUE_CONF_PATH = os.path.join('as...
33.621005
76
0.573408
6,688
0.90734
0
0
6,551
0.888753
0
0
1,607
0.218017
7d2c1800b1cf775906aaeca97219fcb2b7436072
1,307
py
Python
valuation/migrations/0001_initial.py
jiun0507/minestock
b333298575cae1c426cc4450e85e9e576458b74a
[ "Unlicense" ]
null
null
null
valuation/migrations/0001_initial.py
jiun0507/minestock
b333298575cae1c426cc4450e85e9e576458b74a
[ "Unlicense" ]
null
null
null
valuation/migrations/0001_initial.py
jiun0507/minestock
b333298575cae1c426cc4450e85e9e576458b74a
[ "Unlicense" ]
1
2021-10-15T20:10:39.000Z
2021-10-15T20:10:39.000Z
# Generated by Django 3.2 on 2021-04-28 12:31 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), ] opera...
36.305556
161
0.599847
1,150
0.879878
0
0
0
0
0
0
195
0.149197
7d2cd9bd2587b1eea5028879416dfa12cb5caa1c
6,268
py
Python
ravenframework/SupervisedLearning/ScikitLearn/Ensemble/StackingRegressor.py
khurrumsaleem/raven
3a158f9ae3851d3eca51b4bd91ea6494e5c0ed89
[ "Apache-2.0" ]
null
null
null
ravenframework/SupervisedLearning/ScikitLearn/Ensemble/StackingRegressor.py
khurrumsaleem/raven
3a158f9ae3851d3eca51b4bd91ea6494e5c0ed89
[ "Apache-2.0" ]
null
null
null
ravenframework/SupervisedLearning/ScikitLearn/Ensemble/StackingRegressor.py
khurrumsaleem/raven
3a158f9ae3851d3eca51b4bd91ea6494e5c0ed89
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, 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 or agreed t...
50.144
158
0.62508
4,860
0.775367
0
0
1,987
0.317007
0
0
3,732
0.595405
7d2d9540209fa5a85af406d4e806349eeca524ef
908
py
Python
fluent_contents/rendering/__init__.py
francofuji/django-fluent-contents
03da447ef0854b0e6a6f8ff39d9281d11efc8587
[ "Apache-2.0" ]
null
null
null
fluent_contents/rendering/__init__.py
francofuji/django-fluent-contents
03da447ef0854b0e6a6f8ff39d9281d11efc8587
[ "Apache-2.0" ]
null
null
null
fluent_contents/rendering/__init__.py
francofuji/django-fluent-contents
03da447ef0854b0e6a6f8ff39d9281d11efc8587
[ "Apache-2.0" ]
null
null
null
""" This module provides functions to render placeholder content manually. The functions are available outside the regular templatetags, so it can be called outside the templates as well. Contents is cached in memcache whenever possible, only the remaining items are queried. The templatetags also use these functions ...
30.266667
121
0.785242
0
0
0
0
0
0
0
0
592
0.651982
7d2eedcb594966e266531a38d18f3efe92684a79
1,615
py
Python
linear regression/simple_linear_regression.py
liangjisheng/Machine-Learning
55b6781d621e2de09c6e750ecc993178fb247c7b
[ "MIT" ]
null
null
null
linear regression/simple_linear_regression.py
liangjisheng/Machine-Learning
55b6781d621e2de09c6e750ecc993178fb247c7b
[ "MIT" ]
null
null
null
linear regression/simple_linear_regression.py
liangjisheng/Machine-Learning
55b6781d621e2de09c6e750ecc993178fb247c7b
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ @project = 0602-1 @file = simple_linear_regression @author = Liangjisheng @create_time = 2018/6/2 0002 下午 17:16 """ import matplotlib.pyplot as plt import numpy as np from sklearn import datasets, linear_model # 加载用于回归模型的数据集 # 这个数据集中一共有442个样本,特征向量维度为10 # 特征向量每个变量为实数,变化范围(-.2 ,.2) # 目标输出为实数,变...
24.469697
83
0.763467
0
0
0
0
0
0
0
0
1,255
0.566591
7d2ef278a9b7568669efc168569d30a00da19ccc
2,104
py
Python
app/gui/frames/templates/list_frame.py
Matexer/BSPR
a503a8795cb0f4cebe2eedd148aa00aea75b570e
[ "MIT" ]
null
null
null
app/gui/frames/templates/list_frame.py
Matexer/BSPR
a503a8795cb0f4cebe2eedd148aa00aea75b570e
[ "MIT" ]
null
null
null
app/gui/frames/templates/list_frame.py
Matexer/BSPR
a503a8795cb0f4cebe2eedd148aa00aea75b570e
[ "MIT" ]
null
null
null
import tkinter as tk from abc import ABCMeta, abstractmethod from ...frames.templates import FrameTemplate from ...elements import AddButton, EditButton, DeleteButton class ListFrameTemplate(FrameTemplate, metaclass=ABCMeta): def __init__(self, top, *args, **kw): super().__init__(top, *args, **kw) ...
32.875
66
0.623099
1,934
0.919202
0
0
1,685
0.800856
0
0
131
0.062262
7d31ec43828e5f8b1bea431b80a4901f6d2b3f3a
337
py
Python
EllipticCurves/Curve.py
mrajweir/Code
6b57cbed93ba556bef08e1e66735286ccf21820d
[ "MIT" ]
null
null
null
EllipticCurves/Curve.py
mrajweir/Code
6b57cbed93ba556bef08e1e66735286ccf21820d
[ "MIT" ]
2
2020-03-31T10:19:59.000Z
2021-02-08T14:28:38.000Z
EllipticCurves/Curve.py
mrajweir/Code
6b57cbed93ba556bef08e1e66735286ccf21820d
[ "MIT" ]
1
2020-04-05T10:20:21.000Z
2020-04-05T10:20:21.000Z
import matplotlib.pyplot as plt import numpy as np def main(): a = -1 b = 1 y, x = np.ogrid[-5:5:100j, -5:5:100j] plt.contour( x.ravel(), y.ravel(), pow(y, 2) - pow(x, 3) - x * a - b, [0] ) plt.plot(1, 1, 'ro') plt.grid() plt.show() if __name__ == '__ma...
16.85
42
0.465875
0
0
0
0
0
0
0
0
14
0.041543
7d321a3687498f5a8ed7caee0688af65987caed6
2,312
py
Python
importer/management/commands/rebuild_project_stats.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
null
null
null
importer/management/commands/rebuild_project_stats.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
null
null
null
importer/management/commands/rebuild_project_stats.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
null
null
null
"""Django command for rebuilding cohort statistics after import.""" import aldjemy from django.contrib.auth import get_user_model from django.core.exceptions import ObjectDoesNotExist from django.core.management.base import BaseCommand, CommandError from django.db import transaction from django.conf import settings f...
37.901639
96
0.698962
1,689
0.730536
0
0
839
0.362889
0
0
762
0.329585
7d33735c0c3bfee8be88bd6f1998151e93fe43b3
273
py
Python
answers/Utkarsh Srivastava/Day 12/Question 2.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/Utkarsh Srivastava/Day 12/Question 2.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/Utkarsh Srivastava/Day 12/Question 2.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
n = int(input()) c = [0]*n for i in range(n): l = int(input()) S = input() for j in range(l): if (S[j]=='0'): continue for k in range(j,l): if (S[k]=='1'): c[i] = c[i]+1 for i in range(n): print(c[i])
19.5
29
0.388278
0
0
0
0
0
0
0
0
6
0.021978
7d348b05d1517aca67ab59bdc69e706d090649ac
3,294
py
Python
tests/cropSeqTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
60
2019-09-09T16:44:14.000Z
2022-03-26T12:04:17.000Z
tests/cropSeqTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
16
2020-05-12T20:17:30.000Z
2022-03-15T16:01:41.000Z
tests/cropSeqTest.py
schnamo/CIAlign
6985d74bb9a59535bb01751fcb739dd5ca219607
[ "MIT" ]
3
2020-03-28T11:20:02.000Z
2022-01-22T07:16:58.000Z
#! /usr/bin/env python import unittest from unittest import mock from mock import patch from parameterized import parameterized, parameterized_class import sys import logging import numpy as np from Bio import AlignIO import os from os import path import CIAlign import CIAlign.cropSeq as cropSeq class CropSeqsTest...
45.75
193
0.60929
2,991
0.908015
0
0
2,933
0.890407
0
0
1,178
0.35762
7d34ac8a177d53d04be76e0daa53138a4a06a173
1,871
py
Python
cogdl/models/emb/rotate.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
1,072
2019-08-02T05:46:21.000Z
2022-03-31T07:51:53.000Z
cogdl/models/emb/rotate.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
96
2019-08-05T17:27:22.000Z
2022-03-03T08:36:57.000Z
cogdl/models/emb/rotate.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
299
2019-08-08T07:33:10.000Z
2022-03-31T09:30:07.000Z
import torch from torch import Tensor import torch.nn as nn import torch.nn.functional as F from .. import BaseModel, register_model from .knowledge_base import KGEModel @register_model("rotate") class RotatE(KGEModel): r""" Implementation of RotatE model from the paper `"RotatE: Knowledge Graph Embedding by...
35.980769
126
0.670764
1,671
0.893105
0
0
1,697
0.907002
0
0
377
0.201497
7d397f642d7aef0cc79a1f55aff842d15208de96
198
py
Python
reviewboard/site/evolutions/localsite_public.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/site/evolutions/localsite_public.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/site/evolutions/localsite_public.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django_evolution.mutations import AddField from django.db import models MUTATIONS = [AddField("LocalSite", "public", models.BooleanField, initial=False)]
49.5
81
0.833333
0
0
0
0
0
0
0
0
19
0.09596
7d3abeec63de15c18972f766ba7f61dbee88a419
996
py
Python
PrintDocment.py
Humein/Algorithm-Swift
771eef9b6156bf4a1b165a96b9154bbf60d6fdf2
[ "MIT" ]
null
null
null
PrintDocment.py
Humein/Algorithm-Swift
771eef9b6156bf4a1b165a96b9154bbf60d6fdf2
[ "MIT" ]
null
null
null
PrintDocment.py
Humein/Algorithm-Swift
771eef9b6156bf4a1b165a96b9154bbf60d6fdf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os print("方法分类",os.listdir("/Users/zhangxinxin/Code/Algorithm-Swift/方法分类")) print("二分查找",os.listdir("/Users/zhangxinxin/Code/Algorithm-Swift/方法分类/二分查找")) print("双指针",os.listdir("/Users/zhangxinxin/Code/Algorithm-Swift/方法分类/双指针")) print("贪心算法",os.listdir("/Users/zh...
49.8
87
0.737952
0
0
0
0
0
0
0
0
918
0.768844
7d3ea37ac9acf74a01f56012eb7dac104176c0aa
1,392
py
Python
mititools/mititools/serializers/frictionless.py
jimmymathews/MITI
0745b051a02fd1055ff80af560683fdbb18d5651
[ "MIT" ]
null
null
null
mititools/mititools/serializers/frictionless.py
jimmymathews/MITI
0745b051a02fd1055ff80af560683fdbb18d5651
[ "MIT" ]
null
null
null
mititools/mititools/serializers/frictionless.py
jimmymathews/MITI
0745b051a02fd1055ff80af560683fdbb18d5651
[ "MIT" ]
null
null
null
import os from os import mkdir from os.path import join from os.path import exists import json import importlib.resources import jinja2 from jinja2 import Environment from jinja2 import BaseLoader with importlib.resources.path('mititools', 'fd_schema.json.jinja') as file: jinja_environment = Environment(loader=Ba...
32.372093
75
0.75431
0
0
0
0
0
0
0
0
70
0.050287
7d400f7a4ed47d3dc5c52007ae1f8fcbedc5ec4c
2,216
py
Python
mvj/urls.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
mvj/urls.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
mvj/urls.py
tuomas777/mvj
e9a12e42c399b9fb77fd8fad85fc8f0f6d4ce405
[ "MIT" ]
null
null
null
import rest_framework.urls from django.conf import settings from django.contrib import admin from django.urls import include, path, re_path from rest_framework import routers from rest_framework_swagger.views import get_swagger_view from leasing.views import ktj_proxy from leasing.viewsets.basis_of_rent import BasisOf...
43.45098
106
0.813628
0
0
0
0
0
0
0
0
358
0.161552
7d4204253a754ba266b79ffa36682d9cb36d8ff0
1,860
py
Python
ines.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
ines.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
ines.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
import rebound import math from visual import * import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np k = 0.01720209895 how_long = 600 start_pos = vector(0, 0, 1.5) start_v = vector(0.7, 0.7, 0) sim = rebound.Simulation() #sun: sim.add(m = 1.) #asteroid: sim.add(m = 0, x = start...
30
204
0.67043
0
0
0
0
0
0
0
0
152
0.08172
7d42e175bdde08c8e8e91c34aecbf8486806dec0
26,362
py
Python
tests/common/utils/config_utils.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
20
2018-07-24T23:32:11.000Z
2021-11-08T10:28:45.000Z
tests/common/utils/config_utils.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
195
2018-07-25T19:59:44.000Z
2021-12-15T04:39:27.000Z
tests/common/utils/config_utils.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
7
2018-08-23T11:35:57.000Z
2020-06-29T08:25:25.000Z
# Copyright 2018 ARICENT HOLDINGS LUXEMBOURG SARL and Cable Television # Laboratories, 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 # #...
43.50165
119
0.681739
25,543
0.968933
0
0
0
0
0
0
5,188
0.196798
7d44b7e8f5a379cc7b50059795fc7b51e4005b04
361
py
Python
hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
hy-data-analysis-with-python-spring-2020/part03-e07_meeting_planes/src/meeting_planes.py
Melimet/DAP2020
0854fe4ce8ace6abf6dc0bbcf71984595ff6d42a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy as np def meeting_planes(a1, b1, c1, a2, b2, c2, a3, b3, c3): return [] def main(): a1=1 b1=4 c1=5 a2=3 b2=2 c2=1 a3=2 b3=4 c3=1 x, y, z = meeting_planes(a1, b1, c1, a2, b2, c2, a3, b3, c3) print(f"Planes meet at x={x}, y={y} and z={z}"...
15.041667
64
0.518006
0
0
0
0
0
0
0
0
68
0.188366
7d473618101c1bf818cfd31f50f7230e32057c47
566
py
Python
setup.py
iatlab/datas-utils
b8eef303de5a5d5a57182c0627b721dde0b6b300
[ "MIT" ]
null
null
null
setup.py
iatlab/datas-utils
b8eef303de5a5d5a57182c0627b721dde0b6b300
[ "MIT" ]
null
null
null
setup.py
iatlab/datas-utils
b8eef303de5a5d5a57182c0627b721dde0b6b300
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from setuptools import setup setup( name = "datas_utils", packages = ["datas_utils", "datas_utils.env", "datas_utils.log", "datas_utils.aws", ], version = "0.0.1", description = "Tools for Datas Project", author ...
28.3
74
0.55477
0
0
0
0
0
0
0
0
267
0.471731
7d47e3a2c72557ea55cdd53dea81dcefd1f28f34
181
py
Python
Lib/fontTools/ttLib/tables/T_S_I_B_.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
240
2021-01-11T14:49:24.000Z
2022-03-29T22:33:49.000Z
Lib/fontTools/ttLib/tables/T_S_I_B_.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
77
2021-01-12T20:23:30.000Z
2022-03-28T12:14:34.000Z
Lib/fontTools/ttLib/tables/T_S_I_B_.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
28
2021-01-17T05:44:11.000Z
2022-01-11T19:58:46.000Z
from __future__ import print_function, division, absolute_import from fontTools.misc.py23 import * from .T_S_I_V_ import table_T_S_I_V_ class table_T_S_I_B_(table_T_S_I_V_): pass
25.857143
64
0.845304
43
0.237569
0
0
0
0
0
0
0
0
7d4905910c88a739b35dc4edd1e33b3e65ae835a
1,012
py
Python
src/paths_to_inodes_paths.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
8
2022-03-05T19:41:37.000Z
2022-03-06T08:04:43.000Z
src/paths_to_inodes_paths.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
2
2022-01-25T18:57:17.000Z
2022-03-14T13:24:59.000Z
src/paths_to_inodes_paths.py
poponealex/suprenam
d57c99a2e43ad659b9ed70830402f46e7d31e02e
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List from src.user_errors import NoItemToRenameError from src.user_types import Inode, InodesPaths def paths_to_inodes_paths(paths: List[Path]) -> InodesPaths: """ Given a list of paths, return a mapping from inodes to paths. Args: paths: list of Path ...
28.111111
96
0.651186
0
0
0
0
0
0
0
0
430
0.424901
7d4b8c1cbb3320cfef8a2500aa0c61c3209c9888
9,655
py
Python
faro/utils.py
cgiraldo/FARO
aa599fe8eebb489fe032549ec52771574a6d04bd
[ "MIT" ]
null
null
null
faro/utils.py
cgiraldo/FARO
aa599fe8eebb489fe032549ec52771574a6d04bd
[ "MIT" ]
null
null
null
faro/utils.py
cgiraldo/FARO
aa599fe8eebb489fe032549ec52771574a6d04bd
[ "MIT" ]
null
null
null
import re import gensim.utils as gensim_utils def normalize_text_proximity(message): """ Clean text of dots between words Keyword arguments: message -- a plain sentence or paragraph """ sent = message.lower() sent = sent.replace("á", "a") sent = sent.replace("é", "e") sent = sen...
24.017413
70
0.46028
0
0
0
0
0
0
0
0
2,401
0.248525
7d4be85eed72cdda5ea7001420bb48d96b241f0b
21,722
py
Python
pysnmp/CHECKPOINT-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CHECKPOINT-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CHECKPOINT-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CHECKPOINT-TRAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CHECKPOINT-TRAP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:31:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
226.270833
2,269
0.768115
0
0
0
0
0
0
0
0
10,348
0.476383
7d4c5d1e663bf350e478bc71a505fc49721c08e6
452
py
Python
assistant/tests/internetcheck.py
SPARC-Auburn/Lab-Assistant
f86577f4ea53297f3c9febb84d967650d7196e61
[ "Apache-2.0" ]
9
2017-09-06T13:23:32.000Z
2020-07-19T17:05:23.000Z
assistant/tests/internetcheck.py
SPARC-Auburn/Lab-Assistant
f86577f4ea53297f3c9febb84d967650d7196e61
[ "Apache-2.0" ]
29
2017-09-06T21:50:08.000Z
2017-12-07T00:37:57.000Z
assistant/tests/internetcheck.py
SPARC-Auburn/Lab-Assistant
f86577f4ea53297f3c9febb84d967650d7196e61
[ "Apache-2.0" ]
6
2016-11-20T01:01:55.000Z
2019-10-16T16:29:33.000Z
import socket def is_connected(): REMOTE_SERVER = "www.google.com" try: # see if we can resolve the host name -- tells us if there is # a DNS listening host = socket.gethostbyname(REMOTE_SERVER) # connect to the host -- tells us if the host is actually # reachable ...
22.6
69
0.615044
0
0
0
0
0
0
0
0
162
0.358407
7d4d805a56faeaf0887f5c53b13a814262347351
185,256
py
Python
hrl_dynamic_mpc/src/dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
1
2017-07-13T14:58:35.000Z
2017-07-13T14:58:35.000Z
hrl_dynamic_mpc/src/dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
null
null
null
hrl_dynamic_mpc/src/dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
2
2017-03-08T14:44:22.000Z
2019-07-15T23:46:35.000Z
# # # Copyright (c) 2013, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
60.999671
1,258
0.568268
0
0
0
0
0
0
0
0
1,789
0.009657
7d4d986638e6a4a9e2c7f55747f9a7a304afe8fb
2,401
py
Python
back/color.py
PoCInnovation/AI4UX
78a60e35f755e2ab58d469748c363daa4a4222c9
[ "MIT" ]
null
null
null
back/color.py
PoCInnovation/AI4UX
78a60e35f755e2ab58d469748c363daa4a4222c9
[ "MIT" ]
null
null
null
back/color.py
PoCInnovation/AI4UX
78a60e35f755e2ab58d469748c363daa4a4222c9
[ "MIT" ]
null
null
null
import extcolors import PIL def new_image(image, x1, y1, x2, y2): area = (x1, y1, x2, y2) tmp = image.crop(area) return tmp def nbColor_daltonisme(image, total): protanopie = [] # Ne voit pas le rouge deutéranopie = [] # Ne voit pas le vert tritanopie = [] # Ne voit pas le bleu color_...
33.347222
106
0.63307
0
0
0
0
0
0
0
0
105
0.043677
7d4f4e96803718430d878ca088bcaed92b3079cc
3,822
py
Python
base_pool/mysql_pool/mysql_views.py
zhanzhangwei/kafka-study
6be4167319b855c9560e92932aae628f87a5e680
[ "Apache-2.0" ]
null
null
null
base_pool/mysql_pool/mysql_views.py
zhanzhangwei/kafka-study
6be4167319b855c9560e92932aae628f87a5e680
[ "Apache-2.0" ]
null
null
null
base_pool/mysql_pool/mysql_views.py
zhanzhangwei/kafka-study
6be4167319b855c9560e92932aae628f87a5e680
[ "Apache-2.0" ]
null
null
null
import json import pymysql import datetime from dbutils.pooled_db import PooledDB import pymysql from conf.common import * class MysqlClient(object): __pool = None def __init__(self): """ :param mincached:连接池中空闲连接的初始数量 :param maxcached:连接池中空闲连接的最大数量 :param maxshared:共享连接的最大数...
30.576
113
0.545526
3,992
0.961928
0
0
361
0.086988
0
0
1,379
0.332289
7d507f34d285e67fb744c8b50084ce59c5e7e8eb
2,065
py
Python
script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
script/sklearn_like_toolkit/warpper/wrapperGridSearchCV.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
from sklearn import model_selection from sklearn.externals.joblib import Parallel from tqdm import tqdm from script.sklearn_like_toolkit.warpper.base.MixIn import ClfWrapperMixIn, MetaBaseWrapperClfWithABC import multiprocessing CPU_COUNT = multiprocessing.cpu_count() # TODO using packtools.grid_search Grid...
42.142857
117
0.708475
1,568
0.759322
0
0
0
0
0
0
421
0.203874
7d51198f9982dd8e78ac7d042e281aeb60c728be
3,331
py
Python
cliente/templates/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
null
null
null
cliente/templates/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
1
2021-06-02T00:21:09.000Z
2021-06-02T00:21:09.000Z
cliente/templates/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
null
null
null
from django import forms from sistema.mail import send_mail_template from .models import Cliente from usuario.models import Usuario from carteira.models import Carteira from eth_account import Account class MostrarCarteira(forms.ModelForm): name = forms.CharField(widget=forms.TextInput(attrs={'readonly':'True'}))...
36.604396
122
0.724107
2,426
0.727654
0
0
695
0.208458
0
0
749
0.224655
ada38af6048efec02fc99b80ce0ab842cf2993cb
1,584
py
Python
weibospider/settings.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
2
2021-03-26T03:02:52.000Z
2021-04-01T11:08:46.000Z
weibospider/settings.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
weibospider/settings.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import random BOT_NAME = 'spider' SPIDER_MODULES = ['spiders'] NEWSPIDER_MODULE = 'spiders' ROBOTSTXT_OBEY = False cookies_file = os.path.join(os.path.split(os.path.realpath(__file__))[0], 'cookies.txt') with open(cookies_file, 'r', encoding='utf-8-sig', newline='') as f: cooki...
29.886792
160
0.704545
0
0
0
0
0
0
0
0
618
0.385287