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
4a147698daeee0172bfdb9915bb99f41c11597b4
8,517
py
Python
src/users/schema.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/users/schema.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/users/schema.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
from django.db.models.aggregates import Sum import graphene import graphql_jwt from django.conf import settings from django.contrib.auth.forms import PasswordChangeForm from django.db.models import Q from graphene_django import DjangoObjectType from graphene_django.forms.mutation import DjangoFormMutation from graphql ...
32.632184
83
0.669132
4a147753ad2b57bdd5934c49f0b442ebee602c9b
310
py
Python
mayan/apps/common/serializers.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/common/serializers.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/common/serializers.py
bonitobonita24/Mayan-EDMS
7845fe0e1e83c81f5d227a16116397a3d3883b85
[ "Apache-2.0" ]
114
2015-01-08T20:21:05.000Z
2018-12-10T19:07:53.000Z
from django.contrib.contenttypes.models import ContentType from mayan.apps.rest_api import serializers class ContentTypeSerializer(serializers.ModelSerializer): class Meta: fields = ('app_label', 'id', 'model') model = ContentType read_only_fields = ('app_label', 'id', 'model')
28.181818
58
0.712903
4a14785d354ff7368551db04b9fd6651886ed842
940
bzl
Python
contest/experimental_defs.bzl
nya3jp/rules_contest
e74a9892785912b11bbd975068641e558aa4a623
[ "MIT" ]
6
2020-09-03T13:10:49.000Z
2021-03-10T01:13:49.000Z
contest/experimental_defs.bzl
nya3jp/rules_contest
e74a9892785912b11bbd975068641e558aa4a623
[ "MIT" ]
11
2020-05-22T09:43:29.000Z
2021-03-24T10:55:49.000Z
contest/experimental_defs.bzl
nya3jp/rules_contest
e74a9892785912b11bbd975068641e558aa4a623
[ "MIT" ]
null
null
null
def domjudge_package(name, dataset, domjudge_metadata = None, icpc_metadata = None, statements = [], **kwargs): out = name + ".zip" args = [ "'$(execpath @rules_contest//contest/impls:domjudge_package)'", "--output='$@'", "--dataset='$(execpath " + dataset + ")'", ] srcs = [datas...
36.153846
111
0.578723
4a14787b572170995962a229392f890a31a6f5ce
1,504
py
Python
tests/sequence_labelling/tools/checkpoints_test.py
elifesciences/sciencebeam-trainer-delft
0f7da96cdf32acf1538a5fded192255158883ba0
[ "MIT" ]
5
2019-10-19T13:00:34.000Z
2022-01-16T17:31:42.000Z
tests/sequence_labelling/tools/checkpoints_test.py
elifesciences/sciencebeam-trainer-delft
0f7da96cdf32acf1538a5fded192255158883ba0
[ "MIT" ]
162
2019-08-22T10:28:46.000Z
2022-03-28T17:33:16.000Z
tests/sequence_labelling/tools/checkpoints_test.py
elifesciences/sciencebeam-trainer-delft
0f7da96cdf32acf1538a5fded192255158883ba0
[ "MIT" ]
null
null
null
import json from pathlib import Path from sciencebeam_trainer_delft.sequence_labelling.tools.checkpoints import ( main ) def _create_checkpoint(path: Path, meta: dict): path.mkdir(exist_ok=True) path.joinpath('meta.json').write_text(json.dumps(meta)) return path class TestMain: def test_should_...
26.385965
76
0.510638
4a14791014dd8b1fcef62ca55c0f029f846ed985
367,984
py
Python
saleor/graphql/product/tests/test_product.py
haoyang09/saleor
33f17288459012aab28d517c899fac439a07b729
[ "CC-BY-4.0" ]
1
2021-08-20T02:19:08.000Z
2021-08-20T02:19:08.000Z
saleor/graphql/product/tests/test_product.py
haoyang09/saleor
33f17288459012aab28d517c899fac439a07b729
[ "CC-BY-4.0" ]
172
2021-05-03T04:34:37.000Z
2022-03-28T04:41:53.000Z
saleor/graphql/product/tests/test_product.py
twocucao/saleor
308413ed9c19e7938e690fe3cf339b526fd34df2
[ "CC-BY-4.0" ]
1
2022-03-24T08:37:58.000Z
2022-03-24T08:37:58.000Z
import json import os from datetime import datetime, timedelta from decimal import Decimal from unittest import mock from unittest.mock import ANY, Mock, patch import graphene import pytest import pytz from django.core.exceptions import ValidationError from django.db.models import Sum from django.utils import timezone...
32.087897
88
0.644341
4a147a19184ad9bff3c8326f38718e7ba30d350c
6,653
py
Python
Scripts/Miscellaneous/Research_paper_latex_parser/get_details.py
ShivangiPatel102/Python_and_the_Web
6d3b55aef20feeda3cfff941d7bbdc26cbcc70d2
[ "MIT" ]
437
2020-09-24T13:57:39.000Z
2022-03-30T12:45:56.000Z
Scripts/Miscellaneous/Research_paper_latex_parser/get_details.py
ShivangiPatel102/Python_and_the_Web
6d3b55aef20feeda3cfff941d7bbdc26cbcc70d2
[ "MIT" ]
355
2020-09-24T13:53:16.000Z
2022-03-27T04:20:40.000Z
Scripts/Miscellaneous/Research_paper_latex_parser/get_details.py
ShivangiPatel102/Python_and_the_Web
6d3b55aef20feeda3cfff941d7bbdc26cbcc70d2
[ "MIT" ]
315
2020-09-24T18:41:19.000Z
2022-03-07T05:53:01.000Z
from os.path import isfile, join import re import json from os import listdir import argparse import os from tqdm import tqdm class essential_data: """ Extract essential data from the tex document. Essential data includes - title, author, abstract, introduction, conclusions, results, acknowledgments. ...
35.388298
139
0.589809
4a147b0f34248151691bd0310d1ec05c6b7a942c
2,011
py
Python
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_7481_glm_startvals.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_7481_glm_startvals.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_7481_glm_startvals.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator as glm import math # test startval to set GLM coefficients def set_glm_startvals(): # read in the dataset and construct training set (and validation set) d = h2o.impo...
38.673077
112
0.662357
4a147b94ef9132a2a8f1e94132548ce4e533dede
942
py
Python
setup.py
recoded-co/django-notification
29a98f688cd76d690228397d572fc7931f377c80
[ "MIT" ]
1
2015-08-03T12:01:26.000Z
2015-08-03T12:01:26.000Z
setup.py
recoded-co/django-notification
29a98f688cd76d690228397d572fc7931f377c80
[ "MIT" ]
null
null
null
setup.py
recoded-co/django-notification
29a98f688cd76d690228397d572fc7931f377c80
[ "MIT" ]
2
2016-03-13T01:24:23.000Z
2020-01-08T09:08:00.000Z
from setuptools import setup, find_packages setup( name="django-notification", version=__import__("notification").__version__, description="User notification management for the Django web framework", long_description=open("docs/usage.rst").read(), author="James Tauber", author_email="jtauber@j...
31.4
76
0.646497
4a147ce4cccae546bbc4575def74e6a6406c1c17
287
py
Python
test/telegram_bot.py
CaesiumY/movie-crawling-to-notify
d3167ed25db77e9aec3386b04a9ceaf0b46449b9
[ "MIT" ]
2
2019-09-29T11:58:57.000Z
2019-10-14T13:48:28.000Z
test/telegram_bot.py
CaesiumY/movie-crawling-to-notify
d3167ed25db77e9aec3386b04a9ceaf0b46449b9
[ "MIT" ]
2
2019-09-29T11:42:02.000Z
2021-06-02T00:27:38.000Z
test/telegram_bot.py
CaesiumY/movie-crawling-to-notify
d3167ed25db77e9aec3386b04a9ceaf0b46449b9
[ "MIT" ]
null
null
null
import telegram import json with open('token.json') as f: token_json = json.loads(f.read()) print(token_json["user_id"]) bot = telegram.Bot(token=token_json["token"]) for i in bot.getUpdates(): print(i.message) bot.sendMessage(chat_id=token_json["user_id"], text="테스트 메세지")
19.133333
62
0.710801
4a147d11a520e873591eb9916de7ea51eea627dc
105
py
Python
openslides/saml/exceptions.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
3
2021-02-11T20:45:58.000Z
2022-02-09T21:59:42.000Z
openslides/saml/exceptions.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
2
2021-11-02T15:48:16.000Z
2022-03-02T08:38:19.000Z
openslides/saml/exceptions.py
swilde/OpenSlides
23ae32a75892005632784652d108836d1ba09da9
[ "MIT" ]
3
2021-01-18T11:44:05.000Z
2022-01-19T16:00:23.000Z
from openslides.utils.exceptions import OpenSlidesError class SamlException(OpenSlidesError): pass
17.5
55
0.828571
4a147dbc421038407af47e0f38700e1c3fff7106
336
py
Python
blog_mocks/tests/test_function_pytest.py
ghjan/blog-projects
aa6925724e457bec276d98cf7b55b5cdaf2ab5f4
[ "MIT" ]
66
2017-11-18T06:41:39.000Z
2021-09-02T15:47:08.000Z
blog_mocks/tests/test_function_pytest.py
ghjan/blog-projects
aa6925724e457bec276d98cf7b55b5cdaf2ab5f4
[ "MIT" ]
2
2018-05-28T14:06:05.000Z
2020-03-21T14:05:07.000Z
blog_mocks/tests/test_function_pytest.py
ghjan/blog-projects
aa6925724e457bec276d98cf7b55b5cdaf2ab5f4
[ "MIT" ]
35
2017-11-05T23:48:15.000Z
2021-09-15T12:15:39.000Z
from function import square, main def test_function(monkeypatch): monkeypatch.setattr("test_function_pytest.square", lambda x: 1) assert square(5) == 1 def test_main_function(monkeypatch): monkeypatch.setattr('function.square', lambda x: 1) monkeypatch.setattr('function.cube', lambda x: 0) asser...
25.846154
67
0.723214
4a147e21ca5d1e35bb15b30d8a78e7445094da31
19,630
py
Python
ironic/tests/unit/dhcp/test_neutron.py
armohamm/ironic
21093ca886ed736a7a25bf5e71e05d41e132fd2f
[ "Apache-2.0" ]
2
2019-06-17T21:37:53.000Z
2020-07-11T03:58:39.000Z
ironic/tests/unit/dhcp/test_neutron.py
armohamm/ironic
21093ca886ed736a7a25bf5e71e05d41e132fd2f
[ "Apache-2.0" ]
5
2018-03-28T07:52:38.000Z
2020-05-15T09:35:46.000Z
ironic/tests/unit/dhcp/test_neutron.py
armohamm/ironic
21093ca886ed736a7a25bf5e71e05d41e132fd2f
[ "Apache-2.0" ]
6
2019-06-13T12:49:33.000Z
2021-04-17T16:33:19.000Z
# # Copyright 2014 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 req...
47.074341
79
0.590728
4a147e4c585afee5be812ee3f0eff97d35618dfe
7,930
py
Python
sdk/python/pulumi_azure_nextgen/cdn/v20200331/custom_domain.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/cdn/v20200331/custom_domain.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/cdn/v20200331/custom_domain.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
46.104651
761
0.662169
4a147e8d834499baa17912824fd12e7ded89187b
48,970
py
Python
lib/network.py
SirSevenG/electrum-komodo
a38d01baf216aad9429ac8f3707a12818c30a4a2
[ "MIT" ]
4
2019-06-21T10:22:07.000Z
2020-01-03T16:02:48.000Z
lib/network.py
SirSevenG/electrum-komodo
a38d01baf216aad9429ac8f3707a12818c30a4a2
[ "MIT" ]
28
2019-07-24T12:37:44.000Z
2020-10-12T11:21:28.000Z
lib/network.py
SirSevenG/electrum-komodo
a38d01baf216aad9429ac8f3707a12818c30a4a2
[ "MIT" ]
9
2019-09-13T08:04:44.000Z
2020-09-17T01:19:23.000Z
# Electrum - Lightweight Bitcoin Client # Copyright (c) 2011-2016 Thomas Voegtlin # # 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 rig...
40.639004
138
0.589483
4a147ea590c84a2f6744dcd5ce30d49eae009770
4,099
py
Python
run_inference2.py
xdr940/cc
a98fe9b6c33c332a4c399f968032a90989c55672
[ "MIT" ]
null
null
null
run_inference2.py
xdr940/cc
a98fe9b6c33c332a4c399f968032a90989c55672
[ "MIT" ]
1
2019-08-16T07:09:22.000Z
2019-09-04T04:59:51.000Z
run_inference2.py
xdr940/cc
a98fe9b6c33c332a4c399f968032a90989c55672
[ "MIT" ]
1
2020-01-13T04:51:22.000Z
2020-01-13T04:51:22.000Z
import torch from scipy.misc import imread, imsave, imresize import matplotlib.pyplot as plt import numpy as np from path import Path import argparse from tqdm import tqdm from models import DispResNet6 from utils import tensor2array parser = argparse.ArgumentParser(description='Inference script for DispNet learned ...
39.413462
147
0.655038
4a147f653cdef05e2844bfeee5e3dadf8e21f95d
8,312
py
Python
examples/microjson/mutants/CRP_Num_mutant_1486201315.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
90
2015-04-07T10:26:53.000Z
2022-03-07T15:14:57.000Z
examples/microjson/mutants/CRP_Num_mutant_1486201315.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
14
2015-10-13T16:25:59.000Z
2021-01-21T18:31:03.000Z
examples/microjson/mutants/CRP_Num_mutant_1486201315.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
32
2015-04-07T10:41:29.000Z
2022-02-26T05:17:28.000Z
import math import StringIO import types __pychecker__ = 'no-returnvalues' WS = set([' ', '\t', '\r', '\n', '\x08', '\x0c']) DIGITS = set([str(i) for i in range(0, 10)]) NUMSTART = DIGITS.union(['.', '-', '+']) NUMCHARS = NUMSTART.union(['e', 'E']) ESC_MAP = {'n': '\n', 't': '\t', 'r': '\r', 'b': '\x08', 'f': '\x0c'} R...
27.892617
178
0.526347
4a14804bf28530d98c3ac1af5cb19040d02eacb1
13,481
py
Python
SpatialRelationCNN/model/weight_decay_optimizers.py
ICRA-2018/generalize_spatial_relations
6a87e987848426da757e0add595e3ec035956f01
[ "Apache-2.0" ]
17
2018-04-19T14:38:19.000Z
2021-12-27T10:33:20.000Z
SpatialRelationCNN/model/weight_decay_optimizers.py
ICRA-2018/generalize_spatial_relations
6a87e987848426da757e0add595e3ec035956f01
[ "Apache-2.0" ]
null
null
null
SpatialRelationCNN/model/weight_decay_optimizers.py
ICRA-2018/generalize_spatial_relations
6a87e987848426da757e0add595e3ec035956f01
[ "Apache-2.0" ]
7
2018-06-03T15:00:10.000Z
2020-05-17T07:06:29.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
45.390572
80
0.744158
4a14817d75ffa275c9efdb4609cffe3542e7e01a
845
py
Python
integration_tests/verify_marketupdate.py
PeregrineTradersDevTeam/md-data-reader-euronext
ecef156b50defb24e64cc3bbabf6b26071ed05d7
[ "MIT" ]
3
2020-01-08T09:44:52.000Z
2022-03-02T02:16:24.000Z
integration_tests/verify_marketupdate.py
PeregrineTradersDevTeam/md-data-reader-euronext
ecef156b50defb24e64cc3bbabf6b26071ed05d7
[ "MIT" ]
null
null
null
integration_tests/verify_marketupdate.py
PeregrineTradersDevTeam/md-data-reader-euronext
ecef156b50defb24e64cc3bbabf6b26071ed05d7
[ "MIT" ]
1
2020-05-09T06:31:38.000Z
2020-05-09T06:31:38.000Z
from test_util import build_parquet_data, verify_datasets import sys official_application = sys.argv[1] official_files_location = sys.argv[2] cmdline_params = ["-p", "MarketUpdate-for-test", "-o", "1001", official_files_location + "/20190104/084500/224.0.67.193_21193.pcap.gz"] print("Building Mar...
30.178571
116
0.726627
4a1481c26e3db15603cd41568b827d824b5eeaa8
4,644
py
Python
mscreen/autodocktools_prepare_py3k/mglutil/util/recentFiles.py
e-mayo/mscreen
a50f0b2f7104007c730baa51b4ec65c891008c47
[ "MIT" ]
9
2021-03-06T04:24:28.000Z
2022-01-03T09:53:07.000Z
mglutil/util/recentFiles.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
3
2021-03-07T05:37:16.000Z
2021-09-19T15:06:54.000Z
mglutil/util/recentFiles.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
4
2019-08-28T23:11:39.000Z
2021-11-27T08:43:36.000Z
"""Impements Recent Files menues""" # $Header: /opt/cvs/python/packages/share1.5/mglutil/util/recentFiles.py,v 1.16 2010/10/05 17:25:40 sargis Exp $ # # $Id: recentFiles.py,v 1.16 2010/10/05 17:25:40 sargis Exp $ import os, pickle from mglutil.util.packageFilePath import getResourceFolderWithVersion import tkinter cla...
45.087379
112
0.580319
4a1482e6f824f3d8e3d71ed2216846161e475ba1
11,500
py
Python
p-jonczyk/process_control.py
p-jonczyk/q-seleniumbase
f7c86df9c04ed4dd9e0c2e37708a40cf5ac08831
[ "MIT" ]
null
null
null
p-jonczyk/process_control.py
p-jonczyk/q-seleniumbase
f7c86df9c04ed4dd9e0c2e37708a40cf5ac08831
[ "MIT" ]
null
null
null
p-jonczyk/process_control.py
p-jonczyk/q-seleniumbase
f7c86df9c04ed4dd9e0c2e37708a40cf5ac08831
[ "MIT" ]
null
null
null
'''This test suite contains 9 passing tests. ''' import pytest from seleniumbase import BaseCase from basic_methods import BasicMethods as bm import config import constants as const import time class TestProcessContol(BaseCase): def set_process_control_starting_point(self, single_control=False, multip...
47.916667
150
0.701217
4a148443a69236617744aec763239d0055451099
10,559
py
Python
linear_algebra/matrix.py
Vincentiuzs/linear_algebra
4e2ec58a0fca01122bc7c845b12202e154b7bcdd
[ "MIT" ]
null
null
null
linear_algebra/matrix.py
Vincentiuzs/linear_algebra
4e2ec58a0fca01122bc7c845b12202e154b7bcdd
[ "MIT" ]
null
null
null
linear_algebra/matrix.py
Vincentiuzs/linear_algebra
4e2ec58a0fca01122bc7c845b12202e154b7bcdd
[ "MIT" ]
null
null
null
from collections import Counter class Matrix: """A (p \u00D7 q) matrix.""" def __init__(self, array): # Check if the array is a valid matrix and # raise errors/exceptions if invalid self._isValid(array) self.matrix = array # size of the matrix: p x q self.p,...
32.192073
118
0.509044
4a1485110bb37756ff6f472f2c719255774609a7
669
py
Python
techlibs/ice40/brams_init.py
kallisti5/yosys
0b9bb852c66ec2a6e9b4b510b3e2e32b8c6a6b16
[ "ISC" ]
1,718
2018-01-06T15:16:30.000Z
2022-03-30T17:44:22.000Z
techlibs/ice40/brams_init.py
kallisti5/yosys
0b9bb852c66ec2a6e9b4b510b3e2e32b8c6a6b16
[ "ISC" ]
1,669
2018-01-06T22:57:24.000Z
2022-03-31T06:51:49.000Z
techlibs/ice40/brams_init.py
kallisti5/yosys
0b9bb852c66ec2a6e9b4b510b3e2e32b8c6a6b16
[ "ISC" ]
569
2018-01-19T01:51:14.000Z
2022-03-31T23:03:09.000Z
#!/usr/bin/env python3 def write_init_vh(filename, initbits): with open(filename, "w") as f: for i in range(16): print("localparam [255:0] INIT_%X = {" % i, file=f) for k in range(32): print(" %s%s" % (", ".join(["INIT[%4d]" % initbits[i*256 + 255 - k*8 - l] for l i...
44.6
144
0.569507
4a148562a7fb5bddc0570ac147c49fd034558af2
4,843
py
Python
wireshark-2.0.13/tools/dftestlib/integer.py
mahrukhfida/mi
7187765aa225e71983969ef5285771ac77c8309a
[ "Apache-2.0" ]
null
null
null
wireshark-2.0.13/tools/dftestlib/integer.py
mahrukhfida/mi
7187765aa225e71983969ef5285771ac77c8309a
[ "Apache-2.0" ]
null
null
null
wireshark-2.0.13/tools/dftestlib/integer.py
mahrukhfida/mi
7187765aa225e71983969ef5285771ac77c8309a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # Thi...
29.351515
79
0.640099
4a14859346ef76ac19a52d81f3b3ec08a46bc032
1,403
py
Python
pcat2py/class/21ba0f12-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/21ba0f12-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/21ba0f12-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # 21ba0f12-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
36.921053
154
0.602994
4a1485f7be7bd93d0d754df6a082d1122c3063bc
19,105
py
Python
acrv_modified_clones/image_pipeline/camera_calibration/nodes/cameracalibrator.py
myalfred03/team_acrv_2017
9d3a28b4069262291fd28990676b69e90b06ac3a
[ "BSD-3-Clause" ]
25
2017-11-24T19:04:51.000Z
2020-08-27T06:25:49.000Z
acrv_modified_clones/image_pipeline/camera_calibration/nodes/cameracalibrator.py
myalfred03/team_acrv_2017
9d3a28b4069262291fd28990676b69e90b06ac3a
[ "BSD-3-Clause" ]
3
2018-10-03T06:44:06.000Z
2018-11-07T14:53:58.000Z
acrv_modified_clones/image_pipeline/camera_calibration/nodes/cameracalibrator.py
myalfred03/team_acrv_2017
9d3a28b4069262291fd28990676b69e90b06ac3a
[ "BSD-3-Clause" ]
16
2017-12-24T14:19:08.000Z
2021-07-14T13:34:51.000Z
#!/usr/bin/python # # Software License Agreement (BSD License) # # Copyright (c) 2009, Willow Garage, Inc. # 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 m...
40.82265
120
0.599948
4a148677ac93716db5f97f879b5ba4d836cf06fc
1,029
py
Python
src/pyrin/database/migration/alembic/handlers/stamp.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/database/migration/alembic/handlers/stamp.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/database/migration/alembic/handlers/stamp.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ alembic handlers stamp module. """ from pyrin.database.migration.alembic.enumerations import AlembicCLIHandlersEnum from pyrin.database.migration.alembic.interface import AlembicCLIHandlerBase from pyrin.database.migration.alembic.decorators import alembic_cli_handler from pyrin.database.mi...
27.810811
82
0.691934
4a14868037d7354f128b26e63200ae65de25c9c5
934
py
Python
examples/make_al_like_dislike_folders.py
Vikash-Kothary/tindetheus
6505c4cccf4edc9eec3e3e2b8ff833f25c3f19f0
[ "MIT" ]
86
2018-03-13T04:43:53.000Z
2022-02-16T07:03:23.000Z
examples/make_al_like_dislike_folders.py
own2pwn/tindetheus
065eab368ae2ab0a29a467a33c13e0133044a344
[ "MIT" ]
50
2018-03-14T22:28:47.000Z
2021-09-03T17:22:56.000Z
examples/make_al_like_dislike_folders.py
own2pwn/tindetheus
065eab368ae2ab0a29a467a33c13e0133044a344
[ "MIT" ]
27
2018-01-30T07:13:44.000Z
2021-12-10T18:40:48.000Z
import shutil import os import numpy as np # This script is what tindetheus like_folder does def al_copy_images(image_list, userID, didILike, database_str='al/'): # move images from temp folder to database if didILike == 'Like': fname = 'like/' else: fname = 'dislike/' count = 0 ...
23.35
69
0.66167
4a1486df1d893446ca5ee910fd2070d74dfa3b43
211
py
Python
test/simple_source/stmts/10_if_break_finally.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
1
2021-03-24T11:54:03.000Z
2021-03-24T11:54:03.000Z
test/simple_source/stmts/10_if_break_finally.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
null
null
null
test/simple_source/stmts/10_if_break_finally.py
gauravssnl/python-uncompyle6
136f42a610c0701e0770c1c278efd1107b1c6ed1
[ "MIT" ]
null
null
null
# Tests # while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK POP_BLOCK COME_FROM # tryfinallystmt ::= SETUP_FINALLY suite_stmts_opt POP_BLOCK try: while 1: if __file__: break finally: pass
19.181818
65
0.687204
4a1487903a2ceec92d9a5c7b1397d50e94eef0c6
211
py
Python
server/app/__init__.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
7
2017-04-12T10:58:42.000Z
2021-10-03T18:07:29.000Z
server/app/__init__.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
null
null
null
server/app/__init__.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
5
2017-07-06T12:28:10.000Z
2020-01-07T19:45:25.000Z
# creating the app package from flask import Flask from flask_cors import CORS, cross_origin app = Flask(__name__) CORS(app) # imported at the bottom as the views.py needs the object app from app import views
21.1
61
0.78673
4a14886234d7fb18a876e55e74d910c4760f26d4
8,944
py
Python
where/estimation/estimators/cpwl.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
16
2018-08-31T10:31:11.000Z
2022-03-15T16:07:24.000Z
where/estimation/estimators/cpwl.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
5
2018-07-13T14:04:24.000Z
2021-06-17T02:14:44.000Z
where/estimation/estimators/cpwl.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
15
2018-06-07T05:45:24.000Z
2022-03-15T16:07:27.000Z
"""Continuous PieceWise Linear estimator Description: ------------ """ # External library imports import numpy as np import scipy.sparse # Midgard imports from midgard.dev import plugins from midgard.math.unit import Unit # Where imports from where import apriori from where.estimation.estimators._kalman import Kal...
43.843137
117
0.614155
4a1488fa9c36c681e14ed807b0df8cde371d62fa
293
py
Python
jaraco/windows/__init__.py
jaraco/jaraco.windows
e858172b4d5ee91233a8cc5319de99f17848f090
[ "MIT" ]
21
2016-01-31T00:58:59.000Z
2021-05-06T22:30:56.000Z
jaraco/windows/__init__.py
jaraco/jaraco.windows
e858172b4d5ee91233a8cc5319de99f17848f090
[ "MIT" ]
14
2016-07-21T12:02:08.000Z
2021-08-06T03:07:54.000Z
jaraco/windows/__init__.py
jaraco/jaraco.windows
e858172b4d5ee91233a8cc5319de99f17848f090
[ "MIT" ]
5
2016-06-14T04:57:04.000Z
2021-05-06T22:30:57.000Z
#!/usr/bin/env python # $Id$ """ jaraco.windows A lightweight wrapper to provide a pythonic API to the Windows Platform. This package attempts to provide interfaces similar or compatible with Mark Hammond's pywin32 library, but avoids the use of extension modules by utilizing ctypes. """
20.928571
72
0.774744
4a148a7bd1b4751a65f4e6dbe88632417b90f963
802
gyp
Python
binding.gyp
hxfdarling/Clipboard
439ace0787246dfb747b6c8aefba62c95ed87629
[ "MIT" ]
1
2018-06-08T23:39:07.000Z
2018-06-08T23:39:07.000Z
binding.gyp
hxfdarling/clipboard
439ace0787246dfb747b6c8aefba62c95ed87629
[ "MIT" ]
null
null
null
binding.gyp
hxfdarling/clipboard
439ace0787246dfb747b6c8aefba62c95ed87629
[ "MIT" ]
null
null
null
{ "targets": [{ "target_name": "binding", "sources": [ "src/main.cc" ], "conditions": [ ['OS=="mac"', { "sources":[ "src/clip_osx.h", "src/clip_osx.mm" ], 'defines': [ '__MACOSX_CORE__', '__MAC__' ], 'link_settings': { ...
16.367347
41
0.374065
4a148a9d1f3713cc1ecf4f78622f6541e8b63dac
1,481
py
Python
setup.py
d0m1987/ping_pong_paradox
e6e37a6e123a817b8a59a9c53c3a84eaca73d28f
[ "MIT" ]
null
null
null
setup.py
d0m1987/ping_pong_paradox
e6e37a6e123a817b8a59a9c53c3a84eaca73d28f
[ "MIT" ]
null
null
null
setup.py
d0m1987/ping_pong_paradox
e6e37a6e123a817b8a59a9c53c3a84eaca73d28f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['Click==8.0.4', 'pygame==2.1.2'] test_requirements = ['pytes...
29.62
81
0.643484
4a148b103fbb08e4c1bbac073bff65e46892aed0
1,163
py
Python
data/sampler.py
zhaofang0627/HPBTT
98cec9ff4ef95a01393718b024e9645e77fb70ee
[ "MIT" ]
35
2020-11-11T11:43:57.000Z
2021-10-15T05:00:29.000Z
data/sampler.py
zhaofang0627/HPBTT
98cec9ff4ef95a01393718b024e9645e77fb70ee
[ "MIT" ]
4
2020-12-05T14:33:42.000Z
2021-07-21T21:24:29.000Z
data/sampler.py
zhaofang0627/HPBTT
98cec9ff4ef95a01393718b024e9645e77fb70ee
[ "MIT" ]
6
2020-11-12T07:01:03.000Z
2022-03-27T19:25:05.000Z
from __future__ import absolute_import from collections import defaultdict import numpy as np import torch from torch.utils.data.sampler import ( Sampler, SequentialSampler, RandomSampler, SubsetRandomSampler, WeightedRandomSampler) class RandomIdentitySampler(Sampler): def __init__(self, data_source, nu...
32.305556
79
0.642304
4a148ba2ddd8437920661cac9409a0cf1384ce4b
1,213
py
Python
version.py
abdullahcheema63/zulip
12474a3deb5f898009fccba3d43299ca1660015b
[ "Apache-2.0" ]
null
null
null
version.py
abdullahcheema63/zulip
12474a3deb5f898009fccba3d43299ca1660015b
[ "Apache-2.0" ]
null
null
null
version.py
abdullahcheema63/zulip
12474a3deb5f898009fccba3d43299ca1660015b
[ "Apache-2.0" ]
null
null
null
import os ZULIP_VERSION = "2.2.dev+git" # Add information on number of commits and commit hash to version, if available zulip_git_version_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'zulip-git-version') if os.path.exists(zulip_git_version_file): with open(zulip_git_version_file) as f: v...
39.129032
102
0.755153
4a148ba43651d62f2d0593642c738e4024e3b059
3,581
py
Python
EXAMPLES/12d_flex_mani/run_apo_flex_mani_ekdmd.py
Jimmy-INL/SKDMD
9f84cd2b7af6fdc6eb7740a12370a9bf30fb5bbb
[ "MIT" ]
1
2020-11-27T17:10:24.000Z
2020-11-27T17:10:24.000Z
EXAMPLES/12d_flex_mani/run_apo_flex_mani_ekdmd.py
Jimmy-INL/SKDMD
9f84cd2b7af6fdc6eb7740a12370a9bf30fb5bbb
[ "MIT" ]
null
null
null
EXAMPLES/12d_flex_mani/run_apo_flex_mani_ekdmd.py
Jimmy-INL/SKDMD
9f84cd2b7af6fdc6eb7740a12370a9bf30fb5bbb
[ "MIT" ]
null
null
null
import numpy as np import sys sys.dont_write_bytecode = True sys.path.append('../../EVAL_SRC') from main_apo import ClassModelEDMD from main_apo import ClassApoEval # Options selected_modes_flag = True truncation_threshold = 1e-3 def main(case, noise_level, model_list, num_cut_of_plt, normalize_phi_tilde, max_ite...
41.639535
131
0.597319
4a148bd3d2b740a30f5b42d6d72b7958b3617c60
42
py
Python
pyble/const/characteristic/blood_pressure_feature.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
14
2015-03-30T23:11:36.000Z
2020-04-07T00:57:12.000Z
pyble/const/characteristic/blood_pressure_feature.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
3
2016-05-17T06:11:07.000Z
2017-05-15T16:43:09.000Z
pyble/const/characteristic/blood_pressure_feature.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
11
2016-03-11T08:53:03.000Z
2019-03-11T21:32:13.000Z
NAME="Blood Pressure Feature" UUID=0x2A49
14
29
0.809524
4a148be8db936cde6cf8503da547834e7849752e
29,506
py
Python
tlslite/handshakesettings.py
rajdroid/tlslite-ng
80d5c2feab434058882a4b46b7cb41f3d718a4a4
[ "Unlicense" ]
9
2020-10-16T15:24:58.000Z
2021-11-16T23:56:18.000Z
tlslite/handshakesettings.py
rajdroid/tlslite-ng
80d5c2feab434058882a4b46b7cb41f3d718a4a4
[ "Unlicense" ]
null
null
null
tlslite/handshakesettings.py
rajdroid/tlslite-ng
80d5c2feab434058882a4b46b7cb41f3d718a4a4
[ "Unlicense" ]
4
2020-10-22T09:32:07.000Z
2021-02-18T05:54:17.000Z
# Authors: # Trevor Perrin # Dave Baggett (Arcode Corporation) - cleanup handling of constants # Yngve Pettersen (ported by Paul Sokolovsky) - TLS 1.2 # # See the LICENSE file for legal information regarding use of this file. """Class for setting handshake parameters.""" from .constants import CertificateType f...
41.094708
83
0.650681
4a148cb0e5199b0472abc4bbe903832a446ceb4c
823
py
Python
monitor/main.py
polytechnique-ease/blockcompass
1aa8cb52b43e6e860a141df276dc92a69b2e1315
[ "MIT" ]
null
null
null
monitor/main.py
polytechnique-ease/blockcompass
1aa8cb52b43e6e860a141df276dc92a69b2e1315
[ "MIT" ]
null
null
null
monitor/main.py
polytechnique-ease/blockcompass
1aa8cb52b43e6e860a141df276dc92a69b2e1315
[ "MIT" ]
1
2022-03-21T05:09:00.000Z
2022-03-21T05:09:00.000Z
from dockerMonitoring import DockerMonitoring from mongoDB import MongoDB from settings import Settings import time def main(): settings = Settings("../configuration/blockchain.yaml") settings.import_setting(10) database = MongoDB(settings.connection_string) docker_monitor = DockerMonitoring(database, ...
31.653846
81
0.688943
4a148cfb94c811bddfa90f351e43a1dceb4d08ac
369
py
Python
onnx_tf/handlers/backend/softsign.py
malisit/onnx-tensorflow
3eb41dc923f350ca533f1024f602a842dd55de45
[ "Apache-2.0" ]
1,110
2017-11-13T19:34:24.000Z
2022-03-29T09:14:56.000Z
onnx_tf/handlers/backend/softsign.py
malisit/onnx-tensorflow
3eb41dc923f350ca533f1024f602a842dd55de45
[ "Apache-2.0" ]
768
2017-11-17T00:06:27.000Z
2022-03-31T20:20:09.000Z
onnx_tf/handlers/backend/softsign.py
malisit/onnx-tensorflow
3eb41dc923f350ca533f1024f602a842dd55de45
[ "Apache-2.0" ]
281
2017-11-16T19:56:17.000Z
2022-03-28T06:25:33.000Z
import tensorflow as tf from onnx_tf.handlers.backend_handler import BackendHandler from onnx_tf.handlers.handler import onnx_op from onnx_tf.handlers.handler import tf_func @onnx_op("Softsign") @tf_func(tf.nn.softsign) class Softsign(BackendHandler): @classmethod def version_1(cls, node, **kwargs): return ...
24.6
59
0.796748
4a148d052e73866fc4dac9ca6905efd1b7b61058
28,738
py
Python
python_modules/dagster/dagster/check/__init__.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/check/__init__.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/check/__init__.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
import inspect import sys from typing import Any, Callable, Dict, Generator, List, Optional, Set, Tuple, Union from future.utils import raise_with_traceback Type = Union[type, Tuple[type, ...]] Numeric = Union[int, float] class CheckError(Exception): pass class ParameterCheckError(CheckError): pass clas...
32.656818
100
0.63637
4a148d2ad40bb10c8688d21dbeeb44494c9db3d4
6,045
py
Python
generator.py
Chen-Yifan/DEM_building_segmentation
1e9a41e87ec0ab1777a65146c5b31d88938480b7
[ "MIT" ]
null
null
null
generator.py
Chen-Yifan/DEM_building_segmentation
1e9a41e87ec0ab1777a65146c5b31d88938480b7
[ "MIT" ]
null
null
null
generator.py
Chen-Yifan/DEM_building_segmentation
1e9a41e87ec0ab1777a65146c5b31d88938480b7
[ "MIT" ]
null
null
null
from keras.preprocessing.image import ImageDataGenerator import numpy as np import cv2 #from scipy.misc import imresize import os import random # def trainvalGenerator(train_frame_path, train_mask_path, val_frame_path, val_mask_path, BATCH_SIZE): # train_datagen = ImageDataGenerator( # rescale=1./300, ...
38.503185
102
0.640199
4a148d9bac903fafda0ce1ac2dfa6b8b3be3a9b4
1,592
py
Python
CUT_MoNCE/models/sinkhorn.py
fnzhan/MoNCE
c534307800664660d32813395c9577276ef196ee
[ "MIT" ]
4
2021-11-13T17:48:04.000Z
2022-03-23T06:41:06.000Z
CUT_MoNCE/models/sinkhorn.py
fnzhan/MoNCE
c534307800664660d32813395c9577276ef196ee
[ "MIT" ]
null
null
null
CUT_MoNCE/models/sinkhorn.py
fnzhan/MoNCE
c534307800664660d32813395c9577276ef196ee
[ "MIT" ]
2
2022-03-20T04:55:28.000Z
2022-03-20T13:44:55.000Z
# -*- coding: utf-8 -*- from packaging import version import torch def sinkhorn(dot, max_iter=100): """ dot: n x in_size x out_size mask: n x in_size output: n x in_size x out_size """ n, in_size, out_size = dot.shape K = dot # K: n x in_size x out_size u = K.new_ones((n, in_size))...
27.929825
105
0.593593
4a148eb152a97d9cd997207086bfd133fe7ede98
12,152
py
Python
thermostat_nw/columns.py
hshaban/epathermostat_nw
6fec9402484e1ef7e4e59e2c679d9a8efee99ad6
[ "MIT" ]
null
null
null
thermostat_nw/columns.py
hshaban/epathermostat_nw
6fec9402484e1ef7e4e59e2c679d9a8efee99ad6
[ "MIT" ]
null
null
null
thermostat_nw/columns.py
hshaban/epathermostat_nw
6fec9402484e1ef7e4e59e2c679d9a8efee99ad6
[ "MIT" ]
null
null
null
RHU_COLUMNS = [ "rhu1_00F_to_05F", "rhu1_05F_to_10F", "rhu1_10F_to_15F", "rhu1_15F_to_20F", "rhu1_20F_to_25F", "rhu1_25F_to_30F", "rhu1_30F_to_35F", "rhu1_35F_to_40F", "rhu1_40F_to_45F", "rhu1_45F_to_50F", "rhu1_50F_to_55F", "rhu1_55F_to_60F", "rhu1_30F_to_45F", "...
34.819484
72
0.758476
4a148ecefdf30bed99e90b8773c92bb221d2a96e
1,825
py
Python
venv/Lib/site-packages/cryptography/hazmat/primitives/cmac.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
7
2022-03-10T07:03:14.000Z
2022-03-24T09:42:46.000Z
venv/Lib/site-packages/cryptography/hazmat/primitives/cmac.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
66
2020-12-14T21:01:55.000Z
2022-03-30T22:09:34.000Z
venv/Lib/site-packages/cryptography/hazmat/primitives/cmac.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
1
2022-03-10T07:15:54.000Z
2022-03-10T07:15:54.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import typing from cryptography import utils from cryptography.exceptions import ( AlreadyFinalized, ) from cryptography.hazmat.primi...
29.918033
79
0.639452
4a148f93a76ef9276011cf3e165a4a22de16d62a
2,340
py
Python
bedrock/engine.py
openmednlp/bedrock
fdacbad92d59f27650eab1753fa694f90863b43e
[ "MIT" ]
2
2019-04-28T23:14:31.000Z
2019-05-19T08:00:28.000Z
bedrock/engine.py
openmednlp/bedrock
fdacbad92d59f27650eab1753fa694f90863b43e
[ "MIT" ]
5
2019-02-11T14:50:59.000Z
2021-09-29T17:28:23.000Z
bedrock/engine.py
openmednlp/bedrock
fdacbad92d59f27650eab1753fa694f90863b43e
[ "MIT" ]
1
2020-04-18T08:48:32.000Z
2020-04-18T08:48:32.000Z
from bedrock.doc.doc import Doc from bedrock.doc.relation import Relation from typing import List from bedrock.tagger.tagger import Tagger from bedrock.annotator.annotator import Annotator class ProcessingEngine: def __init__(self, tagger: Tagger = None, annotators: List[Annotator] = None, post_...
44.150943
99
0.613675
4a148fb0222f48f6856007e9054317bcfd5df581
986
py
Python
pyravendb/tests/jvm_migrated_tests/test_what_changed.py
poissoncorp/ravendb-python-client
5003127e6aa6897ab957d73f494b9cbcf9362bf9
[ "MIT" ]
null
null
null
pyravendb/tests/jvm_migrated_tests/test_what_changed.py
poissoncorp/ravendb-python-client
5003127e6aa6897ab957d73f494b9cbcf9362bf9
[ "MIT" ]
null
null
null
pyravendb/tests/jvm_migrated_tests/test_what_changed.py
poissoncorp/ravendb-python-client
5003127e6aa6897ab957d73f494b9cbcf9362bf9
[ "MIT" ]
null
null
null
from pyravendb.tests.test_base import TestBase, User class TestWhatChanged(TestBase): def setUp(self): super(TestWhatChanged, self).setUp() def test_has_changes(self): with self.store.open_session() as session: user1 = User("user1", None) user2 = User("user2", 1) ...
30.8125
69
0.628803
4a1491c5bed72ce32dbc7e41aaa11c775c1cf54a
52
py
Python
tests/components/trafikverket_ferry/__init__.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/trafikverket_ferry/__init__.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/trafikverket_ferry/__init__.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the Trafikverket Ferry integration."""
26
51
0.75
4a1492362aa501682e511ab7dff399491748bd22
471
py
Python
py_scr/direct_1_test.py
maanjum95/VHDL_System_Design_Lab
4b452d37c4f6eba9fd31e2cf80bd4202fc5f4940
[ "MIT" ]
1
2021-11-19T19:58:32.000Z
2021-11-19T19:58:32.000Z
py_scr/direct_1_test.py
maanjum95/VHDL_System_Design_Lab
4b452d37c4f6eba9fd31e2cf80bd4202fc5f4940
[ "MIT" ]
null
null
null
py_scr/direct_1_test.py
maanjum95/VHDL_System_Design_Lab
4b452d37c4f6eba9fd31e2cf80bd4202fc5f4940
[ "MIT" ]
1
2021-11-26T23:41:12.000Z
2021-11-26T23:41:12.000Z
def low_high(a, b): if a == 0: a = 2**16 if b == 0: b = 2**16 ab = a * b mod_to = 2**16 + 1 print("Actual result", ab, "to", ab % mod_to) ab_mod = ab % 2**16 ab_div = ab // 2**16 result = ab_mod - ab_div if ab_mod < ab_div: result += 2**16 + 1 print("Result", result, "{0:16b}".format(res...
15.193548
56
0.549894
4a1492ca70f206690e8a5025d5c7c1943fa5c446
30,907
py
Python
methodologist/methodologist.py
atkindel/methodologist
f79c9c6bedf27643db41b8de8081c464c893411e
[ "MIT" ]
null
null
null
methodologist/methodologist.py
atkindel/methodologist
f79c9c6bedf27643db41b8de8081c464c893411e
[ "MIT" ]
null
null
null
methodologist/methodologist.py
atkindel/methodologist
f79c9c6bedf27643db41b8de8081c464c893411e
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # # methodologist.py # Functions for static lexical analysis over economists' code. # Uses Pygments, which miraculously has lexers for everything (except SPSS)! # # Author: Alex Kindel # Last edited: 11 March 2018 import sys from collections import defaultdict, Counter from rpy2 import robjec...
67.043384
7,111
0.629469
4a1494b160ab316493ffe8add452445f9570ff25
1,304
py
Python
037. Sudoku Solver.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
6
2017-10-30T05:35:46.000Z
2020-12-15T06:51:52.000Z
037. Sudoku Solver.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
1
2017-10-30T04:11:31.000Z
2017-10-30T05:46:24.000Z
037. Sudoku Solver.py
youhusky/Facebook_Prepare
4045bcb652537711b3680b2aa17204ae73c6bde8
[ "MIT" ]
2
2020-09-03T07:14:02.000Z
2021-05-21T19:19:57.000Z
# class Solution: # @param board, a 9x9 2D array # Solve the Sudoku by modifying the input board in-place. # Do not return any value. def solveSudoku(self, board): def isValid(board, x, y): for i in xrange(9): if i != x and board[i][y] == board[x][y]: ...
37.257143
73
0.365798
4a1494eef4053a1522d82d07a4591a38a2b1717b
1,962
py
Python
Bio/EUtils/setup.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
3
2017-10-23T21:53:57.000Z
2019-09-23T05:14:12.000Z
Bio/EUtils/setup.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
null
null
null
Bio/EUtils/setup.py
eoc21/biopython
c0f8db8f55a506837c320459957a0ce99b0618b6
[ "PostgreSQL" ]
1
2019-08-19T22:05:14.000Z
2019-08-19T22:05:14.000Z
#!/usr/bin/env python import sys from distutils.core import setup try: import EUtils except ImportError: import __init__ as EUtils def _dict(**kwargs): return kwargs d = _dict( name = "EUtils", version = EUtils.__version__, description = "Client interface to NCBI's EUtils/Entrez server", ...
31.142857
72
0.672273
4a14961344ff0b1d20e4e902cb86d959ce11b505
13,601
py
Python
tests/integration/standard/test_prepared_statements.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
tests/integration/standard/test_prepared_statements.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
tests/integration/standard/test_prepared_statements.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2015 DataStax, 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 in writi...
35.054124
130
0.598265
4a1496708b88ab78882594ac265fccde1e9e6caa
8,322
py
Python
api/app.py
kallyas/employees-attendance-management-system
6e81a67ff840d8dc7d897a1692104754b8ecb36a
[ "MIT" ]
null
null
null
api/app.py
kallyas/employees-attendance-management-system
6e81a67ff840d8dc7d897a1692104754b8ecb36a
[ "MIT" ]
null
null
null
api/app.py
kallyas/employees-attendance-management-system
6e81a67ff840d8dc7d897a1692104754b8ecb36a
[ "MIT" ]
null
null
null
# * ---------- IMPORTS --------- * from flask import Flask, request, jsonify from flask_cors import CORS, cross_origin import os import psycopg2 import cv2 import numpy as np import re # Get the relativ path to this file (we will use it later) FILE_PATH = os.path.dirname(os.path.realpath(__file__)) # * ---------- Cr...
35.716738
213
0.58099
4a1496c1d253abdb9dd2c6647d2b981d6bdd2b9d
1,803
py
Python
src/reliapy/distributions/continuous/_rdist.py
reliapy/reliapy
3efd48af5cc3bedbcbc5de64fb43e6c5625e3f6d
[ "BSD-3-Clause" ]
null
null
null
src/reliapy/distributions/continuous/_rdist.py
reliapy/reliapy
3efd48af5cc3bedbcbc5de64fb43e6c5625e3f6d
[ "BSD-3-Clause" ]
null
null
null
src/reliapy/distributions/continuous/_rdist.py
reliapy/reliapy
3efd48af5cc3bedbcbc5de64fb43e6c5625e3f6d
[ "BSD-3-Clause" ]
null
null
null
from reliapy.distributions.continuous import _Continuous from scipy.stats import rdist as prob class RDist(_Continuous): def __init__(self, c=None, loc=None, scale=None, random_state=None): self.c = c self.loc = loc self.scale = scale self.stats = prob.stats(c=self.c, loc=self.loc...
22.5375
109
0.490849
4a14976f308f2656cb761c7597cbb94846a05fd4
2,294
py
Python
extract_data/extract_ventures.py
Neraud/FFXIV_RetainerInventoryHelper
398d3ebe37a3debf4b6e1a7b83dfe660404b10a1
[ "MIT" ]
6
2019-09-07T11:53:21.000Z
2021-07-25T21:26:49.000Z
extract_data/extract_ventures.py
Neraud/FFXIV_RetainerInventoryHelper
398d3ebe37a3debf4b6e1a7b83dfe660404b10a1
[ "MIT" ]
1
2021-12-18T14:41:08.000Z
2021-12-18T16:39:26.000Z
extract_data/extract_ventures.py
Neraud/FFXIV_RetainerInventoryHelper
398d3ebe37a3debf4b6e1a7b83dfe660404b10a1
[ "MIT" ]
1
2021-08-12T09:45:18.000Z
2021-08-12T09:45:18.000Z
#!/usr/bin/env python3 import urllib.request, json import codecs quantity = {} ventures = {} req = urllib.request.Request("https://xivapi.com/RetainerTaskNormal?columns=ID,ItemTargetID,Quantity2&max_items=1000", headers={'User-Agent': 'Mozilla/5.0'}) with urllib.request.urlopen(req) as url: response = json.loads...
47.791667
181
0.621186
4a149a586dca57f2b779ac76856b80f472345603
2,305
py
Python
curent/stream/redis.py
bdemirtas/stream
862ee2f8877eead7294fe16968ee486508bd19ce
[ "BSD-3-Clause" ]
null
null
null
curent/stream/redis.py
bdemirtas/stream
862ee2f8877eead7294fe16968ee486508bd19ce
[ "BSD-3-Clause" ]
null
null
null
curent/stream/redis.py
bdemirtas/stream
862ee2f8877eead7294fe16968ee486508bd19ce
[ "BSD-3-Clause" ]
1
2019-12-19T21:35:11.000Z
2019-12-19T21:35:11.000Z
"""Redis stream. Uses Redis Python client. """ import logging import attr import redis from curent.stream import ( Stream, StreamError, StreamMessage, StreamPublisher, StreamSubscriber, ) from redis.exceptions import ( ConnectionError, TimeoutError, ) from curent.stream.helper import ...
27.117647
86
0.625163
4a149a7424f0e599e54413e3576d3dddc796c4f9
4,869
py
Python
tensorflow_datasets/image_classification/oxford_iiit_pet.py
stwind/datasets
118d3d2472a3bf2703d1374e25c2223dc7942c13
[ "Apache-2.0" ]
1
2020-10-11T19:15:49.000Z
2020-10-11T19:15:49.000Z
tensorflow_datasets/image_classification/oxford_iiit_pet.py
cbaront/datasets
b097e0985eaaadc6b0c1f4dfa3b3cf88d116c607
[ "Apache-2.0" ]
1
2021-02-23T20:16:05.000Z
2021-02-23T20:16:05.000Z
tensorflow_datasets/image_classification/oxford_iiit_pet.py
cbaront/datasets
b097e0985eaaadc6b0c1f4dfa3b3cf88d116c607
[ "Apache-2.0" ]
1
2022-03-14T16:17:53.000Z
2022-03-14T16:17:53.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
36.335821
86
0.650852
4a149b042357afef8a8b8ca52096718f27b19a3c
627
py
Python
speechbrain/__init__.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
3,913
2021-03-14T13:54:52.000Z
2022-03-30T05:09:55.000Z
speechbrain/__init__.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
667
2021-03-14T20:11:17.000Z
2022-03-31T04:07:17.000Z
speechbrain/__init__.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
785
2021-03-14T13:20:57.000Z
2022-03-31T03:26:03.000Z
""" Comprehensive speech processing toolkit """ import os from .core import Stage, Brain, create_experiment_directory, parse_arguments from . import alignment # noqa from . import dataio # noqa from . import decoders # noqa from . import lobes # noqa from . import lm # noqa from . import nnet # noqa from . import...
24.115385
76
0.703349
4a149d4d5e4802211e5452ac84d5c4df1639ddd0
1,465
py
Python
app/core/models.py
starscream2290/reciper-app-api
9655456ff1dadb34f44dcdb88d8727ec5bd5f90f
[ "MIT" ]
null
null
null
app/core/models.py
starscream2290/reciper-app-api
9655456ff1dadb34f44dcdb88d8727ec5bd5f90f
[ "MIT" ]
null
null
null
app/core/models.py
starscream2290/reciper-app-api
9655456ff1dadb34f44dcdb88d8727ec5bd5f90f
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager from django.contrib.auth.models import PermissionsMixin from django.conf import settings class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): "creates and saves...
29.3
74
0.702389
4a149e52cdf05f628d957a9298bf525c37ed6a38
4,669
py
Python
test_autofit/graphical/test_unification.py
caoxiaoyue/PyAutoFit
819cd2acc8d4069497a161c3bb6048128e44d828
[ "MIT" ]
39
2019-01-24T10:45:23.000Z
2022-03-18T09:37:59.000Z
test_autofit/graphical/test_unification.py
caoxiaoyue/PyAutoFit
819cd2acc8d4069497a161c3bb6048128e44d828
[ "MIT" ]
260
2018-11-27T12:56:33.000Z
2022-03-31T16:08:59.000Z
test_autofit/graphical/test_unification.py
caoxiaoyue/PyAutoFit
819cd2acc8d4069497a161c3bb6048128e44d828
[ "MIT" ]
13
2018-11-30T16:49:05.000Z
2022-01-21T17:39:29.000Z
from random import random import dill import numpy as np import pytest import autofit as af from autofit import graphical as g from autofit.messages.normal import UniformNormalMessage from autofit.messages.transform import log_10_transform @pytest.fixture( name="prior" ) def make_prior(): return af.Gaussian...
19.135246
68
0.578711
4a14a0c88e83ba0dc01f9699a57511c30ff0594a
2,793
py
Python
packages/web_stack/setup.py
lesperry/Metagenomics
a1d8b7d96b32ab83cebe513e889b6ef82f7c1dd6
[ "CC-BY-3.0" ]
null
null
null
packages/web_stack/setup.py
lesperry/Metagenomics
a1d8b7d96b32ab83cebe513e889b6ef82f7c1dd6
[ "CC-BY-3.0" ]
2
2020-08-19T18:14:59.000Z
2020-08-20T01:19:12.000Z
packages/web_stack/setup.py
lesperry/Metagenomics
a1d8b7d96b32ab83cebe513e889b6ef82f7c1dd6
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import ast import os import re try: from setuptools import setup except ImportError: from distutils.core import setup SOURCE_DIR = "galaxy" _version_re = re.compile(r'__version__\s+=\s+(.*)') project_short_name = os.path.basename(os.path.dirname(os.path.realpath...
28.212121
83
0.655926
4a14a0da716e0930fd303660f9777485f97cce54
1,017
py
Python
Easy/118.PascalsTriangle.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Easy/118.PascalsTriangle.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Easy/118.PascalsTriangle.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it. Example: Input: 5 Output: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ...
26.763158
92
0.548673
4a14a15562d2be8892280ab5a44793708ee54f38
15,497
py
Python
tensorflow/python/debug/wrappers/dumping_wrapper_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/debug/wrappers/dumping_wrapper_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/debug/wrappers/dumping_wrapper_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.735897
80
0.703491
4a14a2a2489dcd237627f0197f30244e4ab3c12e
3,102
py
Python
tests/test_nbqa_diff.py
tcbegley/nbQA
75bbb8aade6f482a14d12b1db967005c5f7a70e4
[ "MIT" ]
null
null
null
tests/test_nbqa_diff.py
tcbegley/nbQA
75bbb8aade6f482a14d12b1db967005c5f7a70e4
[ "MIT" ]
null
null
null
tests/test_nbqa_diff.py
tcbegley/nbQA
75bbb8aade6f482a14d12b1db967005c5f7a70e4
[ "MIT" ]
null
null
null
"""Check --nbqa-diff flag.""" import os import re from pathlib import Path from textwrap import dedent from typing import TYPE_CHECKING import pytest from nbqa.__main__ import main if TYPE_CHECKING: from _pytest.capture import CaptureFixture SPARKLES = "\N{sparkles}" SHORTCAKE = "\N{shortcake}" COLLISION = "\...
28.722222
87
0.60187
4a14a2ff2d814d02e082581cdd718f5e1da8044f
3,470
py
Python
horovod/spark/keras/optimizer.py
hcyang99/horovod
825cc197468548da47dcd38872d5b4ba6e6a125b
[ "Apache-2.0" ]
1
2020-05-07T08:26:36.000Z
2020-05-07T08:26:36.000Z
horovod/spark/keras/optimizer.py
kyocen/horovod
e9b1e228ff92eb7f65d9aea2d36f23b327df28bd
[ "Apache-2.0" ]
null
null
null
horovod/spark/keras/optimizer.py
kyocen/horovod
e9b1e228ff92eb7f65d9aea2d36f23b327df28bd
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Uber Technologies, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.773196
135
0.678963
4a14a30042a081350670d31d559217bc57eddda4
148
py
Python
Algoritimos/ex4.9.py
mathspin/Algoritimos-py
3a814dd924d9ee4c15ee4734170ed82f70e95479
[ "MIT" ]
null
null
null
Algoritimos/ex4.9.py
mathspin/Algoritimos-py
3a814dd924d9ee4c15ee4734170ed82f70e95479
[ "MIT" ]
null
null
null
Algoritimos/ex4.9.py
mathspin/Algoritimos-py
3a814dd924d9ee4c15ee4734170ed82f70e95479
[ "MIT" ]
null
null
null
i = 0 maior=0 soma = 0 while i < 15: n = int(input("digite o codigo: ")) if n > maior: maior = n soma += n i += 1 print(maior) print(soma/i)
11.384615
36
0.567568
4a14a300a28723168ef92286f457b5a334b1dc70
934
py
Python
pipeline/models/pca.py
DPBayes/dp-representation-transfer
0c8389cc36659a7606bceac2531eaef7663ac49c
[ "MIT" ]
1
2021-12-09T03:45:18.000Z
2021-12-09T03:45:18.000Z
pipeline/models/pca.py
DPBayes/dp-representation-transfer
0c8389cc36659a7606bceac2531eaef7663ac49c
[ "MIT" ]
1
2019-10-03T19:32:29.000Z
2019-10-04T14:09:28.000Z
pipeline/models/pca.py
DPBayes/dp-representation-transfer
0c8389cc36659a7606bceac2531eaef7663ac49c
[ "MIT" ]
1
2019-10-15T07:16:42.000Z
2019-10-15T07:16:42.000Z
# PCA import numpy as np from sklearn.decomposition import PCA as sk_PCA import pickle class PCA: def init(self, input_dim, output_dim): self.pca = sk_PCA(n_components=output_dim) return self def learn(self, x, validation_split=0.0, # unused validation_data=None, # unused ...
23.35
47
0.639186
4a14a3a696e59564fefc1a7b2dc4f133fc3e7f68
667
py
Python
online_shop/manage.py
SwagatoMondal/Online-Shopping
7ca6755692caa57dd6ece2183b066438f4fcafab
[ "Apache-2.0" ]
2
2021-03-24T10:55:54.000Z
2021-04-05T12:36:56.000Z
online_shop/manage.py
SwagatoMondal/Online-Shopping
7ca6755692caa57dd6ece2183b066438f4fcafab
[ "Apache-2.0" ]
null
null
null
online_shop/manage.py
SwagatoMondal/Online-Shopping
7ca6755692caa57dd6ece2183b066438f4fcafab
[ "Apache-2.0" ]
1
2022-02-23T15:18:17.000Z
2022-02-23T15:18:17.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'online_shop.settings') try: from django.core.management import execute_from_command_line except ...
29
75
0.68066
4a14a4425902475bbee570f4d3493e5caf515032
3,146
py
Python
saleor/endevel_settings.py
EndevelCZ/saleor
009af798b4e9d2348de703bdcbe8d4f1a2a60e4f
[ "BSD-3-Clause" ]
null
null
null
saleor/endevel_settings.py
EndevelCZ/saleor
009af798b4e9d2348de703bdcbe8d4f1a2a60e4f
[ "BSD-3-Clause" ]
null
null
null
saleor/endevel_settings.py
EndevelCZ/saleor
009af798b4e9d2348de703bdcbe8d4f1a2a60e4f
[ "BSD-3-Clause" ]
null
null
null
import os from decouple import AutoConfig import raven config = AutoConfig(os.environ.get('DJANGO_CONFIG_ENV_DIR')) PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = config('PROJECT_SECRET_KEY', default='') ALLOWED_HOSTS = config('ALLOWED_HOSTS', default='', cast=lambda v: [s.st...
31.46
101
0.581373
4a14a46d904669512978dad6d555da244921dad2
5,121
py
Python
slack_bolt/request/internals.py
shaydewael/bolt-python
42fa6a916850251e7fe90d681902d9d111b0a397
[ "MIT" ]
null
null
null
slack_bolt/request/internals.py
shaydewael/bolt-python
42fa6a916850251e7fe90d681902d9d111b0a397
[ "MIT" ]
null
null
null
slack_bolt/request/internals.py
shaydewael/bolt-python
42fa6a916850251e7fe90d681902d9d111b0a397
[ "MIT" ]
null
null
null
import json from typing import Optional, Dict, Union, List, Any from urllib.parse import parse_qsl, parse_qs from slack_bolt.context import BoltContext def parse_query( query: Optional[Union[str, Dict[str, str], Dict[str, List[str]]]] ) -> Dict[str, List[str]]: if query is None: return {} elif is...
33.253247
89
0.603593
4a14a475cb3e7bb30558b0e7f10bbf0d344fbe54
80
py
Python
torchsweeper/__init__.py
crnbaker/torchsweeper
1c0b696e9cf880d6ac799afb6174d60fbd148b6a
[ "MIT" ]
null
null
null
torchsweeper/__init__.py
crnbaker/torchsweeper
1c0b696e9cf880d6ac799afb6174d60fbd148b6a
[ "MIT" ]
null
null
null
torchsweeper/__init__.py
crnbaker/torchsweeper
1c0b696e9cf880d6ac799afb6174d60fbd148b6a
[ "MIT" ]
null
null
null
from .decorators import Timer, ParameterSweeper __all__ = ['Timer', 'Sweeper']
20
47
0.75
4a14a4d88b5310e169e5b3e071f020427f8c3395
12,597
py
Python
test/functional/talan_dgp_block_size_sync.py
talanproject/talan
83bd4549703efc1cdb68511f3432520cf07b5d52
[ "MIT" ]
null
null
null
test/functional/talan_dgp_block_size_sync.py
talanproject/talan
83bd4549703efc1cdb68511f3432520cf07b5d52
[ "MIT" ]
null
null
null
test/functional/talan_dgp_block_size_sync.py
talanproject/talan
83bd4549703efc1cdb68511f3432520cf07b5d52
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.script import * from test_framework.mininode import * from test_framework.talan import * from test_framework.address import * from test_framework.blocktools import * import io ""...
83.98
1,358
0.830118
4a14a67557217e7a0414a2bc012c367ec9b51193
4,194
py
Python
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/peer_express_route_circuit_connection_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/peer_express_route_circuit_connection_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/peer_express_route_circuit_connection_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
48.767442
266
0.695517
4a14a7a4de1be0a8b054c9413f8fce6ae18c4045
2,527
py
Python
message.py
parkr/steve
48df9b17a46b933616dc97833d68ae514a9343ad
[ "MIT" ]
5
2015-11-08T17:46:17.000Z
2021-01-09T15:49:47.000Z
message.py
parkr/steve
48df9b17a46b933616dc97833d68ae514a9343ad
[ "MIT" ]
2
2015-06-16T00:19:21.000Z
2015-06-16T00:19:32.000Z
message.py
parkr/steve
48df9b17a46b933616dc97833d68ae514a9343ad
[ "MIT" ]
2
2016-07-16T15:13:04.000Z
2018-03-05T22:08:24.000Z
import engine import re from sqlalchemy.sql import select from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import MetaData, Table from sqlalchemy import Column, Integer, String, Text Base = declarative_base() class Message(Base): __tablename__ = 'messages' DASHES = '-' id = Col...
29.383721
82
0.616541
4a14a7c9dcf07898e101b5bc8484e50c276e4964
4,265
py
Python
rasa/nlu/extractors/entity_synonyms.py
RielKIM/rasa
a3e329efd16032c900900181dcf57b01884e1a97
[ "Apache-2.0" ]
null
null
null
rasa/nlu/extractors/entity_synonyms.py
RielKIM/rasa
a3e329efd16032c900900181dcf57b01884e1a97
[ "Apache-2.0" ]
null
null
null
rasa/nlu/extractors/entity_synonyms.py
RielKIM/rasa
a3e329efd16032c900900181dcf57b01884e1a97
[ "Apache-2.0" ]
1
2020-03-12T16:09:06.000Z
2020-03-12T16:09:06.000Z
import os import warnings from typing import Any, Dict, Optional, Text from rasa.constants import DOCS_URL_TRAINING_DATA_NLU from rasa.nlu.constants import ENTITIES_ATTRIBUTE from rasa.nlu.config import RasaNLUModelConfig from rasa.nlu.extractors import EntityExtractor from rasa.nlu.model import Metadata from rasa.nlu...
37.412281
88
0.615006
4a14a83d1aa258e6f779fae29d7e18f440f2592d
3,234
py
Python
middleware/legato/templates/legato_gfx_pda_7000b/Support_BSP_PIC32MZ_DA_Curiosity.py
automaate/gfx3.8
55bf94302f00c8d513c84d910185cef2ca6b5be2
[ "0BSD" ]
null
null
null
middleware/legato/templates/legato_gfx_pda_7000b/Support_BSP_PIC32MZ_DA_Curiosity.py
automaate/gfx3.8
55bf94302f00c8d513c84d910185cef2ca6b5be2
[ "0BSD" ]
null
null
null
middleware/legato/templates/legato_gfx_pda_7000b/Support_BSP_PIC32MZ_DA_Curiosity.py
automaate/gfx3.8
55bf94302f00c8d513c84d910185cef2ca6b5be2
[ "0BSD" ]
null
null
null
# coding: utf-8 ############################################################################## # Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries. # # Subject to your compliance with these terms, you may use Microchip software # and any derivatives exclusively with Microchip products. It is your ...
56.736842
147
0.650588
4a14a8572eb3731935589594a7f31a7eea794576
9,238
py
Python
python/libs/quickjson.py
rmrector/script.artwork.dump
02141823e9d920de7e377ae606a1fe680cad4417
[ "MIT" ]
7
2021-01-23T06:05:33.000Z
2021-12-06T11:25:21.000Z
python/libs/quickjson.py
rmrector/script.artwork.dump
02141823e9d920de7e377ae606a1fe680cad4417
[ "MIT" ]
10
2020-12-20T08:20:35.000Z
2022-03-18T22:22:41.000Z
python/libs/quickjson.py
rmrector/script.artwork.dump
02141823e9d920de7e377ae606a1fe680cad4417
[ "MIT" ]
null
null
null
import json from itertools import chain from libs import mediatypes, pykodi from libs.pykodi import log # [0] method part, [1] list: properties, [2] dict: extra params typemap = {mediatypes.MOVIE: ('Movie', ['art', 'imdbnumber', 'file', 'premiered', 'uniqueid', 'setid'], None), mediatypes.MOVIESET: ('MovieSet', [...
42.571429
129
0.704481
4a14a915bdb33f1ac6e8fc1839b32bc81fa8de05
28,656
py
Python
tensorflow/python/data/kernel_tests/iterator_ops_test.py
zhangyujing/tensorflow
c7a04561fb8972fb64907acc5f10f3c6d4cef9f2
[ "Apache-2.0" ]
13
2018-07-23T18:53:35.000Z
2021-11-18T19:56:45.000Z
tensorflow/python/data/kernel_tests/iterator_ops_test.py
zhangyujing/tensorflow
c7a04561fb8972fb64907acc5f10f3c6d4cef9f2
[ "Apache-2.0" ]
1
2018-02-23T03:17:44.000Z
2018-02-23T03:17:44.000Z
tensorflow/python/data/kernel_tests/iterator_ops_test.py
zhangyujing/tensorflow
c7a04561fb8972fb64907acc5f10f3c6d4cef9f2
[ "Apache-2.0" ]
13
2018-09-07T13:28:38.000Z
2020-07-17T15:06:24.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.634855
80
0.668307
4a14aa751d80d05387010bd9a68da53ef3528722
42
py
Python
cat/__init__.py
csengor/toraman_webapp
35c10531ce83e2fc744dd8df0e01624e109aaec8
[ "MIT" ]
2
2020-02-01T08:21:09.000Z
2020-10-08T17:36:35.000Z
cat/__init__.py
toramanPRO/toraman_webapp
35c10531ce83e2fc744dd8df0e01624e109aaec8
[ "MIT" ]
1
2019-12-15T07:39:24.000Z
2019-12-15T07:39:24.000Z
cat/__init__.py
toramanPRO/toraman_webapp
35c10531ce83e2fc744dd8df0e01624e109aaec8
[ "MIT" ]
null
null
null
default_app_config = 'cat.apps.CatConfig'
21
41
0.809524
4a14aabb18185c6e9db3109a71503f4bb9ddab00
266
py
Python
tests/artificial/transf_None/trend_PolyTrend/cycle_12/ar_/test_artificial_1024_None_PolyTrend_12__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_None/trend_PolyTrend/cycle_12/ar_/test_artificial_1024_None_PolyTrend_12__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_None/trend_PolyTrend/cycle_12/ar_/test_artificial_1024_None_PolyTrend_12__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 12, transform = "None", sigma = 0.0, exog_count = 20, ar_order = 0);
38
161
0.729323
4a14ab71231651cb45ad32d8e548d7f58af34598
4,080
py
Python
tensorboard/plugins/memoryutil/summary.py
venky-intel/tensorboard
2c375b892e883240deadf3358414c283e52210be
[ "Apache-2.0" ]
null
null
null
tensorboard/plugins/memoryutil/summary.py
venky-intel/tensorboard
2c375b892e883240deadf3358414c283e52210be
[ "Apache-2.0" ]
null
null
null
tensorboard/plugins/memoryutil/summary.py
venky-intel/tensorboard
2c375b892e883240deadf3358414c283e52210be
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.130841
80
0.701716
4a14ac56c16bcbd33c99a25e8d0322743313dc9a
157,251
py
Python
hail/python/hail/matrixtable.py
jkgoodrich/hail
95ce1d792b553a5e97b390d349237a7ed86fbf98
[ "MIT" ]
null
null
null
hail/python/hail/matrixtable.py
jkgoodrich/hail
95ce1d792b553a5e97b390d349237a7ed86fbf98
[ "MIT" ]
null
null
null
hail/python/hail/matrixtable.py
jkgoodrich/hail
95ce1d792b553a5e97b390d349237a7ed86fbf98
[ "MIT" ]
null
null
null
import itertools from typing import Optional, Dict, Tuple, Any, List from collections import Counter import hail as hl from hail.expr.expressions import Expression, StructExpression, \ expr_struct, expr_any, expr_bool, analyze, Indices, \ construct_reference, construct_expr, extract_refs_by_indices, \ Expre...
37.449631
141
0.567475
4a14adcbec00ab8342339ffef4c773e7ec06cf78
8,279
py
Python
nanopq/pq.py
de9uch1/nanopq
4c1d724494a71f9736b15928a8c03b0ba13ffd19
[ "MIT" ]
217
2018-07-25T23:33:56.000Z
2022-03-19T13:44:07.000Z
nanopq/pq.py
de9uch1/nanopq
4c1d724494a71f9736b15928a8c03b0ba13ffd19
[ "MIT" ]
11
2019-01-23T10:56:18.000Z
2022-03-31T14:58:40.000Z
nanopq/pq.py
de9uch1/nanopq
4c1d724494a71f9736b15928a8c03b0ba13ffd19
[ "MIT" ]
35
2018-07-30T12:53:12.000Z
2022-02-08T04:11:38.000Z
import numpy as np from scipy.cluster.vq import kmeans2, vq class PQ(object): """Pure python implementation of Product Quantization (PQ) [Jegou11]_. For the indexing phase of database vectors, a `D`-dim input vector is divided into `M` `D`/`M`-dim sub-vectors. Each sub-vector is quantized into a smal...
36.632743
101
0.584612
4a14adfd695311d72533b62fe81cc3fa4e161a02
475
py
Python
custodian/vasp/tests/conftest.py
jmmshn/custodian
9f42fbd0fe449cb5a167de946fa0bfdd7fa60ed6
[ "MIT" ]
null
null
null
custodian/vasp/tests/conftest.py
jmmshn/custodian
9f42fbd0fe449cb5a167de946fa0bfdd7fa60ed6
[ "MIT" ]
null
null
null
custodian/vasp/tests/conftest.py
jmmshn/custodian
9f42fbd0fe449cb5a167de946fa0bfdd7fa60ed6
[ "MIT" ]
null
null
null
""" This module mocks functions needed for pytest. """ import multiprocessing import pytest def mock_cpu_count(*args, **kwargs): """ Instead of running multiprocessing.cpu_count(), we return a fixed value during tests """ return 64 @pytest.fixture(autouse=True) def patch_get_potential_energy(mo...
20.652174
69
0.722105
4a14b0214f1c6be30ff6772c3be4ad578a2a2771
3,546
py
Python
tests/test_branflake.py
curt/branflake
a266bdb5c3641478363cc153045a64a7d9f7aed6
[ "MIT" ]
null
null
null
tests/test_branflake.py
curt/branflake
a266bdb5c3641478363cc153045a64a7d9f7aed6
[ "MIT" ]
null
null
null
tests/test_branflake.py
curt/branflake
a266bdb5c3641478363cc153045a64a7d9f7aed6
[ "MIT" ]
null
null
null
""" test_branflake.py """ from time import sleep, struct_time from uuid import UUID import pytest from branflake import Branflake # easier to read than a pile of zeros ONE_MILLION = 1000000 # define low, one, and high bytearrays LOW_BYTEARRAY = b'\x00\x00\x00\x00\x00\x00\x00\x00' ONE_BYTEARRAY = b'\x00\x00\x00\x00\x0...
37.326316
87
0.73181
4a14b222546a139b4d9f436480a31598c0029511
2,280
py
Python
src/multiple_trees/phylo_tree.py
npakudin/embrionic_tree
fe4c6379cf9b63ec116678549bd284abff638655
[ "MIT" ]
null
null
null
src/multiple_trees/phylo_tree.py
npakudin/embrionic_tree
fe4c6379cf9b63ec116678549bd284abff638655
[ "MIT" ]
5
2020-08-01T03:01:38.000Z
2022-03-12T00:45:17.000Z
src/multiple_trees/phylo_tree.py
npakudin/embrionic_tree
fe4c6379cf9b63ec116678549bd284abff638655
[ "MIT" ]
null
null
null
import networkx as nx def cut(distance_matrix, names): G = nx.Graph() for row_index, row in enumerate(distance_matrix): for col_index, item in enumerate(row): if (col_index < row_index): # G.add_edge(names[row_index], names[col_index], weight=item) G.add_edg...
36.774194
110
0.607895
4a14b2ef832d23747b215586208d233ebf37068e
7,250
py
Python
gff_to_bed_maker/gff_to_bed_maker.py
tyrmi/PGU
bd04b62599e13124426f0830fe53e4324aca8439
[ "BSD-3-Clause" ]
3
2017-07-17T07:45:37.000Z
2019-04-12T21:03:20.000Z
gff_to_bed_maker/gff_to_bed_maker.py
tyrmi/PGU
bd04b62599e13124426f0830fe53e4324aca8439
[ "BSD-3-Clause" ]
null
null
null
gff_to_bed_maker/gff_to_bed_maker.py
tyrmi/PGU
bd04b62599e13124426f0830fe53e4324aca8439
[ "BSD-3-Clause" ]
null
null
null
''' Copyright © 2017 Jaakko Tyrmi. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
45.886076
99
0.584966
4a14b300828b066424646d5c743326c46ee829f4
1,431
py
Python
classifier_util.py
alexrudnick/nlp-doodles
ae29e87177b40cbdc330f5dc177fe43fd71a1519
[ "CC0-1.0" ]
3
2020-10-06T04:36:37.000Z
2020-10-20T12:29:27.000Z
classifier_util.py
alexrudnick/nlp-doodles
ae29e87177b40cbdc330f5dc177fe43fd71a1519
[ "CC0-1.0" ]
null
null
null
classifier_util.py
alexrudnick/nlp-doodles
ae29e87177b40cbdc330f5dc177fe43fd71a1519
[ "CC0-1.0" ]
1
2020-10-20T04:32:05.000Z
2020-10-20T04:32:05.000Z
"""Little utility functions used in several classifier sketches. """ import sklearn.datasets import numpy as np def split_training_test(document_pairs): """ Given a list of things, split them into training and test. Returns a pair of lists: training, test. Simplest split: every 10th thing is in the t...
26.018182
64
0.542278
4a14b3dfde321fcd7ebdef70037863e598d6b8b0
18,118
py
Python
tests/test_environment.py
startupgrind/python-percy-client
8c6ce83c74b9dbe51beadac5923f5d9f1d999f58
[ "MIT" ]
null
null
null
tests/test_environment.py
startupgrind/python-percy-client
8c6ce83c74b9dbe51beadac5923f5d9f1d999f58
[ "MIT" ]
2
2019-07-24T20:43:35.000Z
2019-07-24T23:03:29.000Z
tests/test_environment.py
startupgrind/python-percy-client
8c6ce83c74b9dbe51beadac5923f5d9f1d999f58
[ "MIT" ]
null
null
null
import os import percy import pytest import sys class BaseTestPercyEnvironment(object): def setup_method(self, method): self.original_env = {} self.original_env['TRAVIS_BUILD_ID'] = os.getenv('TRAVIS_BUILD_ID', None) self.original_env['TRAVIS_BUILD_NUMBER'] = os.getenv('TRAVIS_BUILD_NUMBER'...
37.745833
103
0.652004
4a14b492b4400287fd617e21b06586a79c44874b
1,991
py
Python
drillbit/sdk_tests/iphone/build_project.py
ludolphus/titanium_mobile
cdc9f49deea8a9d7dd7382115f98144a16b7a5b3
[ "Apache-2.0" ]
2
2015-05-30T20:28:13.000Z
2021-01-08T17:02:41.000Z
drillbit/sdk_tests/iphone/build_project.py
arnaudsj/titanium_mobile
4ed83dd6b355947a88f52efbf4ac82d86a2eeffd
[ "Apache-2.0" ]
6
2015-04-27T22:12:58.000Z
2020-05-23T01:14:06.000Z
drillbit/sdk_tests/iphone/build_project.py
arnaudsj/titanium_mobile
4ed83dd6b355947a88f52efbf4ac82d86a2eeffd
[ "Apache-2.0" ]
1
2019-03-15T04:55:17.000Z
2019-03-15T04:55:17.000Z
#!/usr/bin/env python import os, sys, mobilesdk class BuildProject(mobilesdk.MobileSDKTest): def testLogIndexSearch(self): supportDir = os.path.join(self.mobileDir, "support") iphoneSupportDir = os.path.join(supportDir, "iphone") sys.path.insert(0, supportDir) sys.path.insert(0, iphoneSupportDir) import ti...
39.82
106
0.787042
4a14b59db7668ff4153ea630f39b505c02f77b8e
1,842
py
Python
setup.py
Luke050/instabot
148efeda4919e1ab727c5378bdf7a502e7187353
[ "Apache-2.0" ]
null
null
null
setup.py
Luke050/instabot
148efeda4919e1ab727c5378bdf7a502e7187353
[ "Apache-2.0" ]
null
null
null
setup.py
Luke050/instabot
148efeda4919e1ab727c5378bdf7a502e7187353
[ "Apache-2.0" ]
null
null
null
from os import path from codecs import open from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='instabot', version='...
32.315789
78
0.624321
4a14b95cbf864ea2ea478b8f6a541a4ad16f49dc
3,243
py
Python
AnalysisData.py
StuPeter/AutoHome_spider
ec2359bed96a70b908afc95d7098cca2174f0f47
[ "MIT" ]
53
2019-05-13T08:44:49.000Z
2022-01-11T16:09:45.000Z
AnalysisData.py
qqccmm/AutoHome_spider
ec2359bed96a70b908afc95d7098cca2174f0f47
[ "MIT" ]
2
2020-08-24T04:54:23.000Z
2020-11-13T06:46:45.000Z
AnalysisData.py
qqccmm/AutoHome_spider
ec2359bed96a70b908afc95d7098cca2174f0f47
[ "MIT" ]
21
2019-05-13T08:43:48.000Z
2022-02-10T06:25:03.000Z
#!/usr/bin/env python # _*_ coding:utf-8 _*_ # # @Version : 1.0 # @Time : 2019/7/8 # @Author : 圈圈烃 # @File : AnalysisData # @Description:汽车之家数据分析 # # from pyecharts import options as opts from pyecharts.charts import Map from pyecharts.charts import Bar import csv provinceList = [ '北京', '广东', '山东', ...
35.25
388
0.483811
4a14b9b656c01de3a93b7fba0575c791fc39a515
4,608
py
Python
cli.py
Gilbert189/Nihonium
f2f9b0064bf624a2b6e462e9c819ddd8679dab59
[ "MIT" ]
null
null
null
cli.py
Gilbert189/Nihonium
f2f9b0064bf624a2b6e462e9c819ddd8679dab59
[ "MIT" ]
null
null
null
cli.py
Gilbert189/Nihonium
f2f9b0064bf624a2b6e462e9c819ddd8679dab59
[ "MIT" ]
null
null
null
""" A (not human-friendly) CLI for Flerovium. Does double duty as a bridge to Java. """ import sys, json, commands, versions, re, datetime, getopt # Initialize variables version = versions.Version(2, 0, 0) # Specifies this CLI version. with open("config.json", "r") as f: config = json.loads(f.read()) ...
36.283465
169
0.621094
4a14bc5dcf3a01d18050a1728d18ac1553ed8804
8,830
py
Python
homeassistant/components/group/light.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/group/light.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/group/light.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""This platform allows several lights to be grouped into one light.""" from __future__ import annotations from collections import Counter import itertools import logging from typing import Any, Set, cast import voluptuous as vol from homeassistant.components import light from homeassistant.components.light import (...
33.320755
88
0.667271
4a14bc75baf9a25843b73b7dbf07d924203c8ed4
6,125
py
Python
finorch/sessions/cit/client.py
ADACS-Australia/SS2021B-DBrown
67b93b316e6f9ab09e3bd5105edbbc71108e0723
[ "MIT" ]
null
null
null
finorch/sessions/cit/client.py
ADACS-Australia/SS2021B-DBrown
67b93b316e6f9ab09e3bd5105edbbc71108e0723
[ "MIT" ]
null
null
null
finorch/sessions/cit/client.py
ADACS-Australia/SS2021B-DBrown
67b93b316e6f9ab09e3bd5105edbbc71108e0723
[ "MIT" ]
null
null
null
import logging import os import sys import uuid import warnings from pathlib import Path from finorch.sessions.abstract_client import AbstractClient from finorch.transport.exceptions import TransportStartJobException from finorch.utils.cd import cd from finorch.utils.job_status import JobStatus SUBMIT_SCRIPT = """#!/...
37.121212
118
0.580408
4a14bc77e117aa87e638d0c757d0b4edfc19b7f8
1,476
py
Python
oneVSmulti_demo.py
NTUMitoLab/Mitochondrial-Network-Model
9804e0a80ee83ece6d88c9592f9c8bab0c4b9894
[ "MIT" ]
null
null
null
oneVSmulti_demo.py
NTUMitoLab/Mitochondrial-Network-Model
9804e0a80ee83ece6d88c9592f9c8bab0c4b9894
[ "MIT" ]
1
2022-03-06T07:08:17.000Z
2022-03-10T09:16:43.000Z
oneVSmulti_demo.py
NTUMitoLab/Mitochondrial-Network-Model
9804e0a80ee83ece6d88c9592f9c8bab0c4b9894
[ "MIT" ]
null
null
null
import networkmodel import myGA import KLDivergence import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set() import multiprocessing import time from sklearn.neighbors import KernelDensity from sklearn.model_selection import GridSearchCV from sklearn.model_selection import Le...
26.836364
72
0.686992
4a14be4fecae578fde861b4a71c2c7555517d364
636
py
Python
setup.py
bdraco/tesla_powerwall
dbf4493796c13e08fef2e8ddda547ad9ef1e2469
[ "Apache-2.0" ]
null
null
null
setup.py
bdraco/tesla_powerwall
dbf4493796c13e08fef2e8ddda547ad9ef1e2469
[ "Apache-2.0" ]
null
null
null
setup.py
bdraco/tesla_powerwall
dbf4493796c13e08fef2e8ddda547ad9ef1e2469
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="tesla_powerwall", author="Jrester", author_email="jrester379@gmail.com", version='0.3.14', description="API for Tesla Powerwall", long_description=long_description, ...
28.909091
61
0.671384
4a14be7441110d461eb3993fb4d378c7ac3691ad
2,380
py
Python
Modell/eingabeAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/eingabeAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/eingabeAuswerten.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
import sounddevice as sd from PIL import Image import time import numpy as np import tensorflow.keras.models class schlange: def __init__(self,max_groesse): self.__max_groesse = max_groesse self.__voll = False self.__liste = [] def anhaengen(self,ding): self.__liste.append(ding) ...
34
108
0.686975
4a14beeaaf5a646a113208941da52dbcb9cdfe9a
3,357
py
Python
cell_classifier/mlp/train_classifier.py
abhinav-kumar-thakur/table-understanding
5448e02dec87ea3974bfc118ebeace86e8918285
[ "MIT" ]
null
null
null
cell_classifier/mlp/train_classifier.py
abhinav-kumar-thakur/table-understanding
5448e02dec87ea3974bfc118ebeace86e8918285
[ "MIT" ]
null
null
null
cell_classifier/mlp/train_classifier.py
abhinav-kumar-thakur/table-understanding
5448e02dec87ea3974bfc118ebeace86e8918285
[ "MIT" ]
null
null
null
from joblib import dump, load from sklearn.ensemble import RandomForestClassifier import pickle import numpy as np from type.cell.semantic_cell_type import SemanticCellType from type.cell.cell_type_pmf import CellTypePMF from sklearn.metrics import f1_score from imblearn.ensemble import BalancedRandomForestClassifier f...
33.237624
113
0.577599