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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cea36ec679e178237a093bbac8b36da547e73bca | 46 | py | Python | cloudbackup/tests/__init__.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 4 | 2015-02-10T14:28:12.000Z | 2016-12-26T22:52:07.000Z | cloudbackup/tests/__init__.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 17 | 2015-01-22T21:58:36.000Z | 2018-01-25T19:47:43.000Z | cloudbackup/tests/__init__.py | nloadholtes/python-cloudbackup-sdk | 1866e23aaaac41c35be4cb6ab964fcd0ba9a8fe6 | [
"Apache-2.0"
] | 9 | 2015-01-26T19:25:45.000Z | 2018-11-01T20:14:12.000Z | """
Rackspace Cloud Backup API
Test Suite
"""
| 9.2 | 26 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 45 | 0.978261 |
cea3c68b56eb3e56f0d54948bd1517206a13b963 | 5,647 | py | Python | gym_locm/toolbox/predictor.py | dfpetrin/gym-locm | af843f2508dd6c5ce96740390ef67b89c77c34ad | [
"MIT"
] | 12 | 2019-11-16T23:11:08.000Z | 2022-03-24T03:31:59.000Z | gym_locm/toolbox/predictor.py | dfpetrin/gym-locm | af843f2508dd6c5ce96740390ef67b89c77c34ad | [
"MIT"
] | 6 | 2021-01-21T15:33:40.000Z | 2022-03-18T18:06:25.000Z | gym_locm/toolbox/predictor.py | dfpetrin/gym-locm | af843f2508dd6c5ce96740390ef67b89c77c34ad | [
"MIT"
] | 2 | 2019-07-18T20:34:42.000Z | 2022-03-01T19:56:46.000Z | import argparse
import json
import os
import pathlib
import numpy as np
import pexpect
from scipy.special import softmax
base_path = str(pathlib.Path(__file__).parent.absolute())
def get_arg_parser():
p = argparse.ArgumentParser(
description="This is a predictor for trained RL drafts.",
formatte... | 27.412621 | 80 | 0.607756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,350 | 0.239065 |
cea540d8d7c6742e25322196c14ce8e5fffdddeb | 57,014 | py | Python | src/ralph_assets/migrations/0012_auto__add_transitionshistory__add_attachment__add_coaoemos__add_action.py | xliiv/ralph_assets | 73e5e46db380c9a8dafb9ca1bd5abe47d5733385 | [
"Apache-2.0"
] | null | null | null | src/ralph_assets/migrations/0012_auto__add_transitionshistory__add_attachment__add_coaoemos__add_action.py | xliiv/ralph_assets | 73e5e46db380c9a8dafb9ca1bd5abe47d5733385 | [
"Apache-2.0"
] | null | null | null | src/ralph_assets/migrations/0012_auto__add_transitionshistory__add_attachment__add_coaoemos__add_action.py | xliiv/ralph_assets | 73e5e46db380c9a8dafb9ca1bd5abe47d5733385 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing unique constraint on 'Licence', fields ['sn']
db.delete_unique('ralph_assets_licence', ['sn'])
... | 74.236979 | 224 | 0.60522 | 56,881 | 0.997667 | 0 | 0 | 0 | 0 | 0 | 0 | 36,358 | 0.637703 |
cea61c55844715882bbb20ff9d1e7b4ef98a8044 | 3,981 | py | Python | ansible/modules/network/nxos/nxos_pim.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2022-01-25T22:52:58.000Z | 2022-01-25T22:52:58.000Z | ansible/modules/network/nxos/nxos_pim.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | ansible/modules/network/nxos/nxos_pim.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible 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 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | 28.035211 | 86 | 0.672444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,619 | 0.406682 |
cea86a1503f29caac9cdfd11f755050fd0f5e54c | 3,506 | py | Python | server/openapi_server/controllers/variable_controller.py | mintproject/MINT-ModelCatalogIngestionAPI | 026d3495483a3e48ea3c1364d0dda09beeea69e4 | [
"Apache-2.0"
] | 2 | 2019-05-30T21:33:43.000Z | 2019-09-27T21:04:38.000Z | server/openapi_server/controllers/variable_controller.py | mintproject/model-catalog-api | 2ad7016691891497bba37afe8ceb0fea8fe769e5 | [
"Apache-2.0"
] | 82 | 2019-10-08T16:35:34.000Z | 2022-03-15T18:25:27.000Z | server/openapi_server/controllers/variable_controller.py | mintproject/model-catalog-api | 2ad7016691891497bba37afe8ceb0fea8fe769e5 | [
"Apache-2.0"
] | null | null | null | import connexion
import six
from openapi_server import query_manager
from openapi_server.utils.vars import VARIABLE_TYPE_NAME, VARIABLE_TYPE_URI
from openapi_server.models.variable import Variable # noqa: E501
from openapi_server import util
def variables_get(username=None, label=None, page=None, per_page=None): # ... | 28.504065 | 114 | 0.683685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,799 | 0.51312 |
ceab7daa2ddbacd632939bc43e04875d9fe01ee3 | 3,482 | py | Python | lhorizon/_request_formatters.py | arfon/lhorizon | de2fa9c8121b27da87a4e0613a7dd5ec0647d9fb | [
"BSD-3-Clause"
] | null | null | null | lhorizon/_request_formatters.py | arfon/lhorizon | de2fa9c8121b27da87a4e0613a7dd5ec0647d9fb | [
"BSD-3-Clause"
] | null | null | null | lhorizon/_request_formatters.py | arfon/lhorizon | de2fa9c8121b27da87a4e0613a7dd5ec0647d9fb | [
"BSD-3-Clause"
] | null | null | null | """
formatters to translate various parameters and options into URL parameters
that can be parsed by JPL Horizons' CGI. These are mostly intended to be used
by LHorizon methods and should probably not be called directly.
"""
from collections.abc import Mapping, Sequence
from typing import Union
import numpy as np
imp... | 31.654545 | 77 | 0.600804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,142 | 0.327972 |
ceac15e5add44827ffdab3055b716cb3256a3e2a | 1,327 | py | Python | src/aws_lambda_typing/events/kinesis_stream.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | 29 | 2021-01-07T13:35:16.000Z | 2022-03-25T07:20:54.000Z | src/aws_lambda_typing/events/kinesis_stream.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | 13 | 2021-02-28T00:31:00.000Z | 2022-03-29T15:24:01.000Z | src/aws_lambda_typing/events/kinesis_stream.py | chuckwondo/aws-lambda-typing | 8417ab67f2492be1508fe38b2c34bc106619a56d | [
"MIT"
] | 5 | 2021-02-27T13:50:42.000Z | 2022-01-13T15:05:44.000Z | #!/usr/bin/env python
import sys
if sys.version_info >= (3, 8):
from typing import List, TypedDict
else:
from typing import List
from typing_extensions import TypedDict
class KinesisStreamKinesis(TypedDict):
"""
KinesisStreamKinesis
Attributes:
----------
kinesisSchemaVersion: str
... | 16.382716 | 66 | 0.666164 | 1,134 | 0.854559 | 0 | 0 | 0 | 0 | 0 | 0 | 675 | 0.508666 |
ceac7c7a86d7f596354c9e7181c0d362a2bc878a | 1,478 | py | Python | tests/test_mangling.py | ecoinvent/brightway2-parameters | 0b42466bf33655087e231364a7d677c6c114a046 | [
"BSD-3-Clause"
] | null | null | null | tests/test_mangling.py | ecoinvent/brightway2-parameters | 0b42466bf33655087e231364a7d677c6c114a046 | [
"BSD-3-Clause"
] | 1 | 2019-12-26T15:18:49.000Z | 2019-12-26T15:18:49.000Z | tests/test_mangling.py | ecoinvent/brightway2-parameters | 0b42466bf33655087e231364a7d677c6c114a046 | [
"BSD-3-Clause"
] | 1 | 2021-07-05T12:14:49.000Z | 2021-07-05T12:14:49.000Z | from bw2parameters import *
def test_mangle_formula():
given = "log(foo * bar) + 7 / baz"
prefix = "pre"
assert mangle_formula(given, prefix, ['bar']) == '(log((pre__foo * bar)) + (7 / pre__baz))'
def test_prefix_parameter_dict():
given = {
'a': {'formula': 'a + b / c', 'foo': True},
... | 35.190476 | 95 | 0.525034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 531 | 0.359269 |
cead398064b594593f3430fbc788b9476bf86da6 | 150 | py | Python | venv/Lib/site-packages/clyent/errors.py | GiovanniConserva/TestDeploy | 7a8242df6fe996b1029497d2d87295d1531b6139 | [
"BSD-3-Clause"
] | null | null | null | venv/Lib/site-packages/clyent/errors.py | GiovanniConserva/TestDeploy | 7a8242df6fe996b1029497d2d87295d1531b6139 | [
"BSD-3-Clause"
] | null | null | null | venv/Lib/site-packages/clyent/errors.py | GiovanniConserva/TestDeploy | 7a8242df6fe996b1029497d2d87295d1531b6139 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, print_function, unicode_literals
class ShowHelp(Exception):
pass
class ClyentError(Exception):
pass
| 18.75 | 72 | 0.8 | 73 | 0.486667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ceadbfc8ec08afd61feb6385ed4d339e585d1115 | 538 | py | Python | exercises/de/test_01_07.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 2,085 | 2019-04-17T13:10:40.000Z | 2022-03-30T21:51:46.000Z | exercises/de/test_01_07.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 79 | 2019-04-18T14:42:55.000Z | 2022-03-07T08:15:43.000Z | exercises/de/test_01_07.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 361 | 2019-04-17T13:34:32.000Z | 2022-03-28T04:42:45.000Z | def test():
assert "spacy.load" in __solution__, "Rufst du spacy.load auf?"
assert nlp.meta["lang"] == "de", "Lädst du das korrekte Modell?"
assert nlp.meta["name"] == "core_news_sm", "Lädst du das korrekte Modell?"
assert "nlp(text)" in __solution__, "Verarbeitest du den Text korrekt?"
assert "prin... | 44.833333 | 79 | 0.669145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 340 | 0.628466 |
ceaeab5eb737a59c0b5e6c14b392452d4ffec67b | 2,482 | py | Python | abm-predator-prey.py | RachidStat/PyCX | a1a597e61d03b25cf138dd11ab136db8202e1243 | [
"BSD-2-Clause-FreeBSD"
] | 176 | 2019-12-18T11:44:28.000Z | 2022-03-27T09:09:33.000Z | abm-predator-prey.py | RachidStat/PyCX | a1a597e61d03b25cf138dd11ab136db8202e1243 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-03-29T00:51:25.000Z | 2020-07-19T11:08:32.000Z | abm-predator-prey.py | RachidStat/PyCX | a1a597e61d03b25cf138dd11ab136db8202e1243 | [
"BSD-2-Clause-FreeBSD"
] | 56 | 2019-12-18T19:04:12.000Z | 2022-03-22T09:35:33.000Z | import pycxsimulator
from pylab import *
import copy as cp
nr = 500. # carrying capacity of rabbits
r_init = 100 # initial rabbit population
mr = 0.03 # magnitude of movement of rabbits
dr = 1.0 # death rate of rabbits when it faces foxes
rr = 0.1 # reproduction rate of rabbits
f_init = 30 # initial fox population
... | 26.978261 | 74 | 0.553183 | 21 | 0.008461 | 0 | 0 | 0 | 0 | 0 | 0 | 526 | 0.211926 |
ceaf4faaf34ba6494575ecceb758062b6bcf8486 | 4,832 | py | Python | models/base_ae.py | christopher-beckham/amr | 1bd67b9b4fb2fcf07cc8faba3c863f5ad5d4c4c0 | [
"BSD-3-Clause"
] | 35 | 2019-08-27T08:59:53.000Z | 2021-09-19T15:55:34.000Z | models/base_ae.py | christopher-beckham/amr | 1bd67b9b4fb2fcf07cc8faba3c863f5ad5d4c4c0 | [
"BSD-3-Clause"
] | 4 | 2020-01-14T05:09:31.000Z | 2020-05-25T20:39:55.000Z | models/base_ae.py | christopher-beckham/amr | 1bd67b9b4fb2fcf07cc8faba3c863f5ad5d4c4c0 | [
"BSD-3-Clause"
] | 3 | 2019-12-24T01:29:49.000Z | 2020-12-06T01:56:19.000Z | import torch
import numpy as np
from collections import OrderedDict
from torch import optim
from itertools import chain
from .base import Base
from torch import nn
class BaseAE(Base):
def __init__(self,
generator,
lamb=1.0,
beta=1.0,
recon_loss='l... | 31.174194 | 97 | 0.528353 | 4,666 | 0.965646 | 0 | 0 | 0 | 0 | 0 | 0 | 1,109 | 0.229512 |
ceafef1d012a2252b4736fc5912d1fe98bb743cd | 10,608 | py | Python | psdet/models/point_detector/utils.py | Jiaolong/gcn-parking-slot | f8c3b445b186e3a7fd13af1f17fa5ba0336027c7 | [
"MIT"
] | 56 | 2021-03-24T08:24:27.000Z | 2022-03-26T13:56:36.000Z | psdet/models/point_detector/utils.py | Jiaolong/gcn-parking-slot | f8c3b445b186e3a7fd13af1f17fa5ba0336027c7 | [
"MIT"
] | 7 | 2021-04-05T03:55:05.000Z | 2022-03-08T03:12:20.000Z | psdet/models/point_detector/utils.py | Jiaolong/gcn-parking-slot | f8c3b445b186e3a7fd13af1f17fa5ba0336027c7 | [
"MIT"
] | 17 | 2021-04-04T02:42:09.000Z | 2022-03-31T01:48:06.000Z | """Universal network struture unit definition."""
import torch
import math
from torch import nn
import torchvision
from torch.utils import model_zoo
from torchvision.models.resnet import BasicBlock, model_urls, Bottleneck
def define_squeeze_unit(basic_channel_size):
"""Define a 1x1 squeeze convolution with norm an... | 36.961672 | 113 | 0.607089 | 6,308 | 0.594646 | 0 | 0 | 0 | 0 | 0 | 0 | 1,031 | 0.097191 |
ceb07de7a23c054666d87af2b849db00c172593e | 819 | py | Python | Config/Texts/NFSW/NFSW.py | amiralirj/DarkHelper | 386eea58eb6b9766d6f900a83f87eeac0b8f09c2 | [
"MIT"
] | 34 | 2021-08-05T12:41:18.000Z | 2021-11-30T22:23:20.000Z | Config/Texts/NFSW/NFSW.py | amiralirj/DarkHelper | 386eea58eb6b9766d6f900a83f87eeac0b8f09c2 | [
"MIT"
] | 2 | 2021-08-29T10:32:02.000Z | 2021-08-31T12:10:29.000Z | Config/Texts/NFSW/NFSW.py | amiralirj/DarkHelper | 386eea58eb6b9766d6f900a83f87eeac0b8f09c2 | [
"MIT"
] | 5 | 2021-08-07T07:41:44.000Z | 2021-08-20T13:52:36.000Z | NFSW_Texts = [
'سکس'
,'گایید'
,' کص'
,'جنده'
,'کیر'
,'jnde'
,'jende'
,'kos'
,'pussy'
,'kir'
,'lashi'
,'لاشی'
,'jakesh'
,'جاکش'
,'مادر خراب'
,'madar kharab'
,'mde kharab'
,'khar kose'
,'fuck'
,'bitch'
,'haroomzade'
,'حرومی'
,'حرامزاده'
,'حرومزاده'
,'جندس'
,'کصه '
]
NFSW_Names=[
'خاله'
,'ج... | 14.625 | 45 | 0.577534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 731 | 0.783494 |
ceb45da6d8703038dcca50551f842da1aba2b40e | 14,784 | py | Python | ml_collections/config_dict/tests/frozen_config_dict_test.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 311 | 2020-08-25T14:44:55.000Z | 2022-03-30T17:19:45.000Z | ml_collections/config_dict/tests/frozen_config_dict_test.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 9 | 2020-11-14T04:00:23.000Z | 2022-02-18T21:03:33.000Z | ml_collections/config_dict/tests/frozen_config_dict_test.py | wyddmw/ViT-pytorch-1 | 81dd3c43880d0f641ec8e15d8226035a358e78fc | [
"Apache-2.0"
] | 19 | 2020-08-25T21:52:30.000Z | 2022-03-13T22:25:20.000Z | # Copyright 2021 The ML Collections Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 37.810742 | 80 | 0.718277 | 13,301 | 0.899689 | 0 | 0 | 0 | 0 | 0 | 0 | 4,191 | 0.283482 |
ceb543c431720b3b36051ad70d948b85d8942aeb | 3,829 | py | Python | driver.py | kavj/npmd | 742fcb271e695b24bb062cdc66d455c0f397116d | [
"Apache-2.0"
] | null | null | null | driver.py | kavj/npmd | 742fcb271e695b24bb062cdc66d455c0f397116d | [
"Apache-2.0"
] | null | null | null | driver.py | kavj/npmd | 742fcb271e695b24bb062cdc66d455c0f397116d | [
"Apache-2.0"
] | null | null | null | import numbers
import os
import sys
import typing
import numpy as np
from dataclasses import dataclass
from pathlib import Path
import ir
import type_interface as ti
import type_resolution as tr
from ASTTransform import build_module_ir_and_symbols
from ccodegen import codegen
from canonicalize import NormalizePath... | 31.130081 | 81 | 0.655524 | 1,393 | 0.363803 | 0 | 0 | 0 | 0 | 0 | 0 | 466 | 0.121703 |
ceb62f0313de2d8b1490179cab386a903cdaa203 | 20,552 | py | Python | ipt/ipt_hough_circles_detector.py | tpmp-inra/ipapi | b0f6be8960a20dbf95ef9df96efdd22bd6e031c5 | [
"MIT"
] | 1 | 2020-06-30T06:53:36.000Z | 2020-06-30T06:53:36.000Z | ipt/ipt_hough_circles_detector.py | tpmp-inra/ipapi | b0f6be8960a20dbf95ef9df96efdd22bd6e031c5 | [
"MIT"
] | null | null | null | ipt/ipt_hough_circles_detector.py | tpmp-inra/ipapi | b0f6be8960a20dbf95ef9df96efdd22bd6e031c5 | [
"MIT"
] | null | null | null | import os
import pickle
import logging
logger = logging.getLogger(__name__)
import cv2
import numpy as np
from skimage.transform import hough_circle, hough_circle_peaks
import ipso_phen.ipapi.base.ip_common as ipc
from ipso_phen.ipapi.base.ipt_abstract import IptBase
from ipso_phen.ipapi.ipt.ipt_edge_d... | 39.371648 | 116 | 0.476109 | 20,017 | 0.973968 | 0 | 0 | 846 | 0.041164 | 0 | 0 | 4,934 | 0.240074 |
ceb677a0c09c58bfcd7c3dccc2e5b38736bebbf5 | 1,278 | py | Python | python_sample/cloud_API_endpoint/my_driving/edge_endpoint/db.py | alexcourouble/automotive-iot-samples | ead3549e052968b7f2c0a30c3787f34e15e373fd | [
"Apache-2.0"
] | 11 | 2019-09-02T12:38:05.000Z | 2021-01-03T17:52:32.000Z | python_sample/cloud_API_endpoint/my_driving/edge_endpoint/db.py | alexcourouble/automotive-iot-samples | ead3549e052968b7f2c0a30c3787f34e15e373fd | [
"Apache-2.0"
] | 34 | 2019-12-29T21:31:35.000Z | 2021-10-06T03:08:21.000Z | python_sample/cloud_API_endpoint/my_driving/edge_endpoint/db.py | alexcourouble/automotive-iot-samples | ead3549e052968b7f2c0a30c3787f34e15e373fd | [
"Apache-2.0"
] | 7 | 2019-04-28T22:14:26.000Z | 2021-02-17T16:58:34.000Z | import sqlite3
from flask import current_app, g
def get_db():
"""
Connect to the application's configured database. The connection
is unique for each request and will be reused if this is called
again.
"""
if 'db' not in g:
g.db = sqlite3.connect(
'../data/cloud_db.db',
... | 26.081633 | 141 | 0.628326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 707 | 0.553208 |
ceb6903422d5b1eae99326a4376ddaace1e94411 | 8,467 | py | Python | tests/core/test_app.py | ShepardZhao/rancher | a747ac408ca34fb0bf465276f07557ec43bf9c89 | [
"Apache-2.0"
] | 1 | 2019-06-16T01:16:56.000Z | 2019-06-16T01:16:56.000Z | tests/core/test_app.py | ShepardZhao/rancher | a747ac408ca34fb0bf465276f07557ec43bf9c89 | [
"Apache-2.0"
] | 1 | 2019-05-14T04:08:43.000Z | 2019-05-14T04:08:43.000Z | tests/core/test_app.py | ShepardZhao/rancher | a747ac408ca34fb0bf465276f07557ec43bf9c89 | [
"Apache-2.0"
] | null | null | null | from .common import random_str
from .test_catalog import wait_for_template_to_be_created
import time
def test_app_mysql(admin_pc, admin_mc):
client = admin_pc.client
name = random_str()
ns = admin_pc.cluster.client.create_namespace(name=random_str(),
proj... | 36.49569 | 77 | 0.591709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,110 | 0.249203 |
ceb7ed5b699f0ffa10c4137af6c73aac0a124844 | 1,455 | py | Python | iotPub.py | norikokt/serverless-language-translation | 51c0fdbf3b8c0c15d5e2208ad9cff147adc59efb | [
"Apache-2.0"
] | null | null | null | iotPub.py | norikokt/serverless-language-translation | 51c0fdbf3b8c0c15d5e2208ad9cff147adc59efb | [
"Apache-2.0"
] | null | null | null | iotPub.py | norikokt/serverless-language-translation | 51c0fdbf3b8c0c15d5e2208ad9cff147adc59efb | [
"Apache-2.0"
] | 1 | 2020-07-30T09:25:53.000Z | 2020-07-30T09:25:53.000Z | # Copyright 2018 IBM Corp. 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 applicable law or a... | 39.324324 | 76 | 0.651546 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 893 | 0.613746 |
ceb89dab258e22f4133b8db37425e38785178a38 | 6,177 | py | Python | awsshell/autocomplete.py | bdharang/AWS_SHELL | 4e84552f367f4da647e10be05795b870c112e3bb | [
"Apache-2.0"
] | null | null | null | awsshell/autocomplete.py | bdharang/AWS_SHELL | 4e84552f367f4da647e10be05795b870c112e3bb | [
"Apache-2.0"
] | null | null | null | awsshell/autocomplete.py | bdharang/AWS_SHELL | 4e84552f367f4da647e10be05795b870c112e3bb | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from awsshell.fuzzy import fuzzy_search
from awsshell.substring import substring_search
class AWSCLIModelCompleter(object):
"""Autocompletion based on the JSON models for AWS services.
This class consumes indexed data based on the JSON models from
AWS service (which ... | 41.736486 | 79 | 0.610329 | 6,048 | 0.979116 | 0 | 0 | 159 | 0.025741 | 0 | 0 | 2,140 | 0.346446 |
ceba8a2b9daea8892048e636439497932e869b2b | 3,809 | py | Python | IM920.py | Momijinn/IM920MHz_Module | 1f70a0021a82ba7bf3bf0fd461b01d921be27ea7 | [
"MIT"
] | 1 | 2021-06-06T03:54:18.000Z | 2021-06-06T03:54:18.000Z | IM920.py | Momijinn/IM920MHz_Module | 1f70a0021a82ba7bf3bf0fd461b01d921be27ea7 | [
"MIT"
] | null | null | null | IM920.py | Momijinn/IM920MHz_Module | 1f70a0021a82ba7bf3bf0fd461b01d921be27ea7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
パッケージpyserialをインストールすること
pytho2.x系で動作(python3.*系も動作検証済み)
Creater:Kaname Takano
'''
import serial
import binascii
import signal
import sys
import platform
from serial.tools import list_ports
#platformの切り替え
if platform.system() == 'Windows': #windows用
ports = list_p... | 20.368984 | 78 | 0.608034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,481 | 0.34482 |
cebb72569f74c340b49b55e56cd5cfb94ded36d4 | 229 | py | Python | test/webdnn_test/graph_test/operators_test/sigmoid_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | 1 | 2021-04-09T15:55:35.000Z | 2021-04-09T15:55:35.000Z | test/webdnn_test/graph_test/operators_test/sigmoid_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | test/webdnn_test/graph_test/operators_test/sigmoid_test.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | from test.webdnn_test.graph_test.operators_test.util import template_test_unary_operator
from webdnn.graph.operators.sigmoid import Sigmoid
def template():
template_test_unary_operator(Sigmoid)
def test():
template()
| 20.818182 | 88 | 0.812227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
cebbaac4650f5e836f24ada37e7051b81fcb685c | 262 | py | Python | hw_asr/metric/__init__.py | kostyayatsok/asr_project_template | ee5fb8006fa4e4f5d4a2e5c6e9f6352c22ad5bbb | [
"MIT"
] | null | null | null | hw_asr/metric/__init__.py | kostyayatsok/asr_project_template | ee5fb8006fa4e4f5d4a2e5c6e9f6352c22ad5bbb | [
"MIT"
] | null | null | null | hw_asr/metric/__init__.py | kostyayatsok/asr_project_template | ee5fb8006fa4e4f5d4a2e5c6e9f6352c22ad5bbb | [
"MIT"
] | null | null | null | from hw_asr.metric.cer_metric import ArgmaxCERMetric, BeamsearchCERMetric
from hw_asr.metric.wer_metric import ArgmaxWERMetric, BeamsearchWERMetric
__all__ = [
"ArgmaxWERMetric",
"ArgmaxCERMetric",
"BeamsearchCERMetric",
"BeamsearchWERMetric"
]
| 26.2 | 73 | 0.790076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 76 | 0.290076 |
cebbe59000886920359408b216f69573eb72a0fb | 6,746 | py | Python | src/main_window.py | serenafr/My2048 | ea96f8c8d9651ad86308f02f35474a51dc3be531 | [
"MIT"
] | null | null | null | src/main_window.py | serenafr/My2048 | ea96f8c8d9651ad86308f02f35474a51dc3be531 | [
"MIT"
] | 1 | 2015-04-25T00:36:44.000Z | 2015-04-25T00:36:44.000Z | src/main_window.py | serenafr/My2048 | ea96f8c8d9651ad86308f02f35474a51dc3be531 | [
"MIT"
] | null | null | null | import wx
import wx.lib.stattext as ST
import board
import score_board
from os.path import expanduser
SCORE_FILE_PATH = expanduser('~/.config/my2048/scores.conf')
class My2048_wx(wx.Frame):
def __init__(self, parent, id, title, size, board_object, score_board_object):
super(My2048_wx, self).__init__(parent, title... | 36.464865 | 119 | 0.725912 | 6,357 | 0.942336 | 0 | 0 | 0 | 0 | 0 | 0 | 1,051 | 0.155796 |
cebc0e5ca2b65cfcf3eb7b5e9ccc9a733e94b3e5 | 19,153 | py | Python | tests/base/test_maps.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | 1 | 2022-02-18T16:31:27.000Z | 2022-02-18T16:31:27.000Z | tests/base/test_maps.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | null | null | null | tests/base/test_maps.py | ElliotCheung/simpeg | ce5bde154179ca63798a62a12787a7ec3535472c | [
"MIT"
] | null | null | null | import numpy as np
import unittest
import discretize
from SimPEG import maps, models, utils
from discretize.utils import mesh_builder_xyz, refine_tree_xyz
import inspect
TOL = 1e-14
np.random.seed(121)
REMOVED_IGNORE = [
"FullMap",
"CircleMap",
"Map2Dto3D",
"Vertical1DMap",
"ActiveCells",
]
MAP... | 32.573129 | 88 | 0.532293 | 17,632 | 0.920587 | 0 | 0 | 0 | 0 | 0 | 0 | 1,698 | 0.088655 |
cebc19ad6f58417864244da0cd384e9b8241025b | 11,569 | py | Python | src/panda_env.py | irom-lab/PAC-Imitation | 1b9c203b02551895613b6710da33e1bebe4a0f11 | [
"MIT"
] | 12 | 2020-08-11T03:26:36.000Z | 2022-02-10T01:14:08.000Z | grasp/src/panda_env.py | irom-lab/Task_Relevant_OOD_Detection | c49d04f88a3e155bec9abb5ac5529dff8ea2c449 | [
"MIT"
] | null | null | null | grasp/src/panda_env.py | irom-lab/Task_Relevant_OOD_Detection | c49d04f88a3e155bec9abb5ac5529dff8ea2c449 | [
"MIT"
] | 1 | 2021-03-08T10:46:06.000Z | 2021-03-08T10:46:06.000Z | import pybullet_data
import pybullet as p
import time
import numpy as np
from src.utils_geom import *
from src.utils_depth import *
from src.panda import Panda
def full_jacob_pb(jac_t, jac_r):
return np.vstack((jac_t[0], jac_t[1], jac_t[2], jac_r[0], jac_r[1], jac_r[2]))
class pandaEnv():
def __init__(self,
... | 31.183288 | 227 | 0.684675 | 11,288 | 0.975711 | 0 | 0 | 0 | 0 | 0 | 0 | 1,403 | 0.121272 |
cebc72a58b425fb7f7cd7143c3625b862489e1f9 | 178 | py | Python | desafios/desafio 021.py | juaoantonio/curso_video_python | 7520223d8647929530a1cd96f7c7d8c8f264ba1e | [
"MIT"
] | null | null | null | desafios/desafio 021.py | juaoantonio/curso_video_python | 7520223d8647929530a1cd96f7c7d8c8f264ba1e | [
"MIT"
] | null | null | null | desafios/desafio 021.py | juaoantonio/curso_video_python | 7520223d8647929530a1cd96f7c7d8c8f264ba1e | [
"MIT"
] | null | null | null | import pygame
pygame.mixer.init()
pygame.init()
pygame.mixer.music.load('/home/jaab/Música/bach_1.wav')
pygame.mixer.music.play()
input()
pygame.event.wait()
pygame.mixer.stop()
| 19.777778 | 55 | 0.758427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 31 | 0.173184 |
cebdd561ae5cf73cc61b02a50a7e42a495c58927 | 67 | py | Python | deem/pytorch/layers/__init__.py | xxaxtt/TwoTowers | 206c6b38a2f72486906d391c5176e4508036aac0 | [
"Apache-2.0"
] | 14 | 2021-09-22T02:24:16.000Z | 2021-12-11T11:59:02.000Z | deem/pytorch/layers/__init__.py | xxaxtt/TwoTowers | 206c6b38a2f72486906d391c5176e4508036aac0 | [
"Apache-2.0"
] | 2 | 2021-10-16T04:39:21.000Z | 2021-12-01T08:04:46.000Z | deem/pytorch/layers/__init__.py | xxaxtt/TwoTowers | 206c6b38a2f72486906d391c5176e4508036aac0 | [
"Apache-2.0"
] | 5 | 2021-10-09T11:47:53.000Z | 2021-11-25T04:41:24.000Z | from .embedding import *
from .sequence import *
from .mlp import * | 22.333333 | 24 | 0.746269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
cebf0a2899cd29ab2ab60478658090adf649c895 | 1,765 | py | Python | common.py | braindatalab/scrutinizing-xai | fb24fed7ae3adc10e3c35d7f477a5db322b48f4f | [
"MIT"
] | null | null | null | common.py | braindatalab/scrutinizing-xai | fb24fed7ae3adc10e3c35d7f477a5db322b48f4f | [
"MIT"
] | null | null | null | common.py | braindatalab/scrutinizing-xai | fb24fed7ae3adc10e3c35d7f477a5db322b48f4f | [
"MIT"
] | null | null | null | import json
import os
import pickle
from dataclasses import dataclass, field
from os.path import join
from typing import Dict, Any, ClassVar
@dataclass
class ScoresAttributes:
global_based: str
sample_based: str
explanations: str
method_names: str
data_weights: str
model_weights: str
model... | 25.955882 | 62 | 0.628329 | 922 | 0.52238 | 0 | 0 | 933 | 0.528612 | 0 | 0 | 323 | 0.183003 |
cebff2caa1f50e0a7946513e1fed0db5898382ad | 1,623 | py | Python | src/spn/tests/prometheus_tests/test.py | AmurG/SPFlow | ab28dd4af9ed722ace69c6b290cf0a279bbda39e | [
"Apache-2.0"
] | null | null | null | src/spn/tests/prometheus_tests/test.py | AmurG/SPFlow | ab28dd4af9ed722ace69c6b290cf0a279bbda39e | [
"Apache-2.0"
] | null | null | null | src/spn/tests/prometheus_tests/test.py | AmurG/SPFlow | ab28dd4af9ed722ace69c6b290cf0a279bbda39e | [
"Apache-2.0"
] | null | null | null | import spn
#from spn.structure.leaves.mvgauss.MVG import *
from spn.io.Text import *
import sys
from spn.structure.leaves.parametric.Parametric import *
from spn.structure.leaves.parametric.MLE import *
from spn.algorithms.MPE import mpe
from spn.structure.prometheus.disc import *
from scipy.stats import multivariate_n... | 24.969231 | 74 | 0.701787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 159 | 0.097967 |
cec12b95a353d8bc6ee20816f32cfee16d9c8d60 | 5,592 | py | Python | tests/test_converters.py | stabacco/graphene-pydantic | 41d62e1879b1f6ebd75319c39b0a872ec6594cc5 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-04-22T06:13:16.000Z | 2021-04-22T06:13:16.000Z | tests/test_converters.py | stabacco/graphene-pydantic | 41d62e1879b1f6ebd75319c39b0a872ec6594cc5 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-11-10T18:40:44.000Z | 2020-11-10T18:40:44.000Z | tests/test_converters.py | stabacco/graphene-pydantic | 41d62e1879b1f6ebd75319c39b0a872ec6594cc5 | [
"Apache-2.0",
"MIT"
] | null | null | null | import datetime
import decimal
import enum
import typing as T
import uuid
import graphene
import graphene.types
import pydantic
import pytest
from pydantic import BaseModel, create_model
import graphene_pydantic.converters as converters
from graphene_pydantic.converters import ConversionError, convert_pydantic_field
... | 31.954286 | 87 | 0.696531 | 558 | 0.099785 | 0 | 0 | 818 | 0.14628 | 0 | 0 | 582 | 0.104077 |
cec1de2a6639546d17fb7dd7eb09653aa22c391e | 3,158 | py | Python | src/freesound.py | lRomul/argus-birdsong | 2290bd78f462cedc2ae143ec0b5e6e0782cd2b19 | [
"MIT"
] | null | null | null | src/freesound.py | lRomul/argus-birdsong | 2290bd78f462cedc2ae143ec0b5e6e0782cd2b19 | [
"MIT"
] | null | null | null | src/freesound.py | lRomul/argus-birdsong | 2290bd78f462cedc2ae143ec0b5e6e0782cd2b19 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from pathlib import Path
import multiprocessing as mp
from functools import partial
from src.audio import read_as_melspectrogram
from src.utils import get_params_hash
from src import config
NOISE_SOUNDS = [
'Buzz',
'Car_passing_by',
'Crackle',
'Cricket',
'Hi... | 30.07619 | 82 | 0.674478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 491 | 0.155478 |
cec2cea789e2b7e248e443d7b1eaf90f326de9fc | 5,338 | py | Python | especifico/json_schema.py | athenianco/especifico | af8b97868390ba23a2c5e3e8506bd5215ee0084a | [
"Apache-2.0"
] | null | null | null | especifico/json_schema.py | athenianco/especifico | af8b97868390ba23a2c5e3e8506bd5215ee0084a | [
"Apache-2.0"
] | null | null | null | especifico/json_schema.py | athenianco/especifico | af8b97868390ba23a2c5e3e8506bd5215ee0084a | [
"Apache-2.0"
] | null | null | null | """
Module containing all code related to json schema validation.
"""
from collections.abc import Mapping
import contextlib
from copy import deepcopy
import io
import os
import typing as t
import urllib.parse
import urllib.request
from jsonschema import Draft4Validator, RefResolver
from jsonschema.exceptions import R... | 31.216374 | 95 | 0.641813 | 1,309 | 0.245223 | 1,554 | 0.29112 | 252 | 0.047209 | 0 | 0 | 978 | 0.183215 |
cec4f4492d6d64177d0b32e7ad2dbf7ec31fcdf8 | 779 | py | Python | mindhome_alpha/erpnext/accounts/doctype/fiscal_year/test_fiscal_year.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/accounts/doctype/fiscal_year/test_fiscal_year.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/accounts/doctype/fiscal_year/test_fiscal_year.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, unittest
from erpnext.accounts.doctype.fiscal_year.fiscal_year import FiscalYearIncorrectDate
test_records = frappe.get_test_records('... | 28.851852 | 84 | 0.752246 | 417 | 0.535302 | 0 | 0 | 0 | 0 | 0 | 0 | 329 | 0.422336 |
cec53997d0c2400355b2407286a2ab638e1feab8 | 1,008 | py | Python | types/integers.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | 11 | 2020-03-31T21:27:19.000Z | 2022-01-11T09:50:13.000Z | types/integers.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | null | null | null | types/integers.py | anthony-walker/me499 | 1ec5761a822956b4e18f83b3e0cda93715b74b3e | [
"BSD-3-Clause"
] | 5 | 2020-05-13T05:47:23.000Z | 2021-09-27T18:43:25.000Z | #!/usr/bin/env python3
if __name__ == '__main__':
# Python can represent integers. Here are a couple of ways to create an integer variable. Notice the truncation,
# rather than rounding, in the assignment of d.
a = 5
b = int()
c = int(4)
d = int(3.84)
print(a, b, c, d)
# Integers ha... | 27.243243 | 118 | 0.590278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 611 | 0.606151 |
cec69b53aae0a98c800aee68729ab0b6f22dfd50 | 1,976 | py | Python | cli/asciiart.py | Christophe1997/pyramid | d135c86329b6527d54535d95c0db8b5d2da6cc8c | [
"Apache-2.0"
] | null | null | null | cli/asciiart.py | Christophe1997/pyramid | d135c86329b6527d54535d95c0db8b5d2da6cc8c | [
"Apache-2.0"
] | null | null | null | cli/asciiart.py | Christophe1997/pyramid | d135c86329b6527d54535d95c0db8b5d2da6cc8c | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
"""Convert picture to asciiArt, requrie python3.6 or higher.
Dependence:
- fire
- PIL
- numpy
Usage:
- chmod +x asciiart.py
- asciiart.py ${path_to_image} [Height] [Width]
Also, you can remove the filetype ".py" and put it to $HOME/bin/ then enjoy it:)
One example:
*&&&&&&&&&... | 29.058824 | 87 | 0.34666 | 755 | 0.382085 | 0 | 0 | 0 | 0 | 0 | 0 | 1,153 | 0.583502 |
cec6fd770eab40205480d0c6c46d89a072e6b4a6 | 2,057 | py | Python | tests/conftest.py | MohamedRaslan/screenpy | 94be7caa444ae7ac8a4ac403cd93ad92108237fe | [
"MIT"
] | null | null | null | tests/conftest.py | MohamedRaslan/screenpy | 94be7caa444ae7ac8a4ac403cd93ad92108237fe | [
"MIT"
] | null | null | null | tests/conftest.py | MohamedRaslan/screenpy | 94be7caa444ae7ac8a4ac403cd93ad92108237fe | [
"MIT"
] | null | null | null | from typing import Callable, Generator, Any
from unittest import mock
import pytest
from screenpy import AnActor, pacing, settings
from screenpy.abilities import AuthenticateWith2FA, BrowseTheWeb, MakeAPIRequests
from screenpy.narration.narrator import Narrator
@pytest.fixture(scope="function")
def Tester() -> AnAc... | 31.646154 | 81 | 0.684978 | 0 | 0 | 331 | 0.160914 | 1,113 | 0.541079 | 0 | 0 | 293 | 0.14244 |
cec7fff35f1ea56bf0187cca1f5248b7d68f0fa3 | 14,729 | py | Python | main.py | ceciliazhang12/resource-reservation-system | d680582a41d39b1558b85d1e42f9006eb07caef8 | [
"Apache-2.0"
] | null | null | null | main.py | ceciliazhang12/resource-reservation-system | d680582a41d39b1558b85d1e42f9006eb07caef8 | [
"Apache-2.0"
] | null | null | null | main.py | ceciliazhang12/resource-reservation-system | d680582a41d39b1558b85d1e42f9006eb07caef8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2016 Google 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... | 39.808108 | 136 | 0.63263 | 11,512 | 0.781587 | 0 | 0 | 0 | 0 | 0 | 0 | 3,710 | 0.251884 |
cec871b2942200cdc40d51b006698874939d3556 | 144 | py | Python | sutta_publisher/src/sutta_publisher/edition_parsers/__init__.py | suttacentral/publications | 878befcfeb7af7f2f511697f2769cd00441aec57 | [
"CC0-1.0"
] | 1 | 2022-02-16T09:02:58.000Z | 2022-02-16T09:02:58.000Z | sutta_publisher/src/sutta_publisher/edition_parsers/__init__.py | suttacentral/publications | 878befcfeb7af7f2f511697f2769cd00441aec57 | [
"CC0-1.0"
] | 43 | 2022-02-07T11:37:29.000Z | 2022-03-30T08:54:55.000Z | sutta_publisher/src/sutta_publisher/edition_parsers/__init__.py | suttacentral/publications | 878befcfeb7af7f2f511697f2769cd00441aec57 | [
"CC0-1.0"
] | null | null | null | from .epub import EpubEdition
from .html import HtmlEdition
from .pdf import PdfEdition
__all__ = ["EpubEdition", "HtmlEdition", "PdfEdition"]
| 24 | 54 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 0.263889 |
cec99a1754c7933823e18fdb2d3c3f20789ec5bf | 5,052 | py | Python | tools/c7n_azure/tests_azure/tests_resources/test_event_hub.py | chris-angeli-rft/cloud-custodian | 5ff331b114a591dbaf6d672e30ceefb7ae64a5dd | [
"Apache-2.0"
] | 8 | 2021-05-18T02:22:03.000Z | 2021-09-11T02:49:04.000Z | tools/c7n_azure/tests_azure/tests_resources/test_event_hub.py | chris-angeli-rft/cloud-custodian | 5ff331b114a591dbaf6d672e30ceefb7ae64a5dd | [
"Apache-2.0"
] | 1 | 2021-04-26T04:38:35.000Z | 2021-04-26T04:38:35.000Z | tools/c7n_azure/tests_azure/tests_resources/test_event_hub.py | chris-angeli-rft/cloud-custodian | 5ff331b114a591dbaf6d672e30ceefb7ae64a5dd | [
"Apache-2.0"
] | 1 | 2020-12-28T23:21:30.000Z | 2020-12-28T23:21:30.000Z | # Copyright 2019 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 35.328671 | 74 | 0.500792 | 4,403 | 0.871536 | 0 | 0 | 4,055 | 0.802652 | 0 | 0 | 2,047 | 0.405186 |
cecb5247af165b57afea53ae66b0856d10c40b07 | 2,662 | py | Python | pythonfiles/testing.py | amrut-prabhu/loan-default-prediction | 2e0a91529a71c69e93d7b30decefc59f2627406f | [
"MIT"
] | 2 | 2020-05-06T15:11:56.000Z | 2020-05-24T13:51:55.000Z | pythonfiles/testing.py | amrut-prabhu/loan-default-prediction | 2e0a91529a71c69e93d7b30decefc59f2627406f | [
"MIT"
] | null | null | null | pythonfiles/testing.py | amrut-prabhu/loan-default-prediction | 2e0a91529a71c69e93d7b30decefc59f2627406f | [
"MIT"
] | 2 | 2018-09-23T07:09:51.000Z | 2021-12-16T17:58:14.000Z | import numpy as np
import pandas as pd
from sklearn.externals import joblib
#from sklearn.ensemble import RandomForestRegressor
#from sklearn.multioutput import MultiOutputRegressor
#from sklearn.multioutput import MultiOutputRegressor
from sklearn.model_selection import train_test_split
df = pd.read_csv('https://dr... | 39.731343 | 215 | 0.743426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,595 | 0.599174 |
cecbe395ca91f3242d3c1d6e5ad79275b3277dc8 | 6,806 | py | Python | kerasjr/Model.py | OliverMathias/kerasjr | 9fc039cf2fee4d29529707d4644c775121e5d1d7 | [
"MIT"
] | null | null | null | kerasjr/Model.py | OliverMathias/kerasjr | 9fc039cf2fee4d29529707d4644c775121e5d1d7 | [
"MIT"
] | null | null | null | kerasjr/Model.py | OliverMathias/kerasjr | 9fc039cf2fee4d29529707d4644c775121e5d1d7 | [
"MIT"
] | null | null | null | # Python 3
import numpy as np
np.seterr(divide='ignore', invalid='ignore')
class Model:
def __init__(self, x, y, number_of_hidden_layers=2, number_of_hidden_nodes=30, quiet=False):
self.x = x
self.y = y
self.number_of_hidden_layers = number_of_hidden_layers
self.number_of_hidden_nodes = numb... | 39.34104 | 168 | 0.620923 | 6,724 | 0.987952 | 0 | 0 | 0 | 0 | 0 | 0 | 882 | 0.129592 |
cece03575811241c5528967937341963df9938c9 | 5,287 | py | Python | generate_revision_sheet.py | geritwagner/revision-sheet-generator | 2cfa2f0e10d980ec979fa8d4bd63106d3a089a98 | [
"MIT"
] | 1 | 2020-05-07T00:18:06.000Z | 2020-05-07T00:18:06.000Z | generate_revision_sheet.py | geritwagner/revision-sheet-generator | 2cfa2f0e10d980ec979fa8d4bd63106d3a089a98 | [
"MIT"
] | null | null | null | generate_revision_sheet.py | geritwagner/revision-sheet-generator | 2cfa2f0e10d980ec979fa8d4bd63106d3a089a98 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import argparse
import docx
from docx.shared import Cm
import pylatex
from pytablewriter import MarkdownTableWriter
def set_column_width(column, width):
column.width = width
for cell in column.cells:
cell.width = width
def generate_word_revisio... | 32.042424 | 141 | 0.614715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 782 | 0.147854 |
cecfd2f0eca2d1cff1112ddaf3c1ef7b67c5d1dc | 7,550 | py | Python | trainer_backup.py | dbseorms16/drnxgaze | c7b84189c263456c648829bc399a5edb2ec17bb8 | [
"MIT"
] | 1 | 2021-07-06T02:01:54.000Z | 2021-07-06T02:01:54.000Z | trainer_backup.py | dbseorms16/drnxgaze | c7b84189c263456c648829bc399a5edb2ec17bb8 | [
"MIT"
] | null | null | null | trainer_backup.py | dbseorms16/drnxgaze | c7b84189c263456c648829bc399a5edb2ec17bb8 | [
"MIT"
] | null | null | null | import torch
import numpy as np
import utility
from decimal import Decimal
from tqdm import tqdm
from option import args
from torchvision import transforms
from PIL import Image
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import copy
class Trainer():
def __init__(self, opt, loader... | 34.474886 | 84 | 0.488477 | 7,272 | 0.963179 | 0 | 0 | 0 | 0 | 0 | 0 | 1,007 | 0.133377 |
ced2a7bfdf7758ecb38fddf1d9823beee1d21d80 | 1,356 | py | Python | pymongo_test_query.py | rbola/python-mongodb | e0a466a5ddc3e105ff2161521313000a3b828d76 | [
"CNRI-Python"
] | 1 | 2021-07-05T04:10:21.000Z | 2021-07-05T04:10:21.000Z | pymongo_test_query.py | rbola/python-mongodb | e0a466a5ddc3e105ff2161521313000a3b828d76 | [
"CNRI-Python"
] | 2 | 2021-06-14T08:39:16.000Z | 2021-06-14T08:45:12.000Z | pymongo_test_query.py | rbola/python-mongodb | e0a466a5ddc3e105ff2161521313000a3b828d76 | [
"CNRI-Python"
] | 3 | 2021-07-02T20:32:21.000Z | 2021-07-14T17:41:19.000Z | # Get the database using the method we defined in pymongo_test_insert file
from pymongo_test_insert import get_database
dbname = get_database()
# Create a new collection
collection_name = dbname["user_1_items"]
item_details = collection_name.find()
for item in item_details:
# This will give readable output... | 35.684211 | 86 | 0.605457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 875 | 0.64528 |
ced423f7265dba138645d51d245eba93b188c792 | 3,358 | py | Python | django_backend/backend/ajax.py | team23/django_backend | 02a2ef70584f80b9abd17b4e1a94576df5461b37 | [
"BSD-3-Clause"
] | 3 | 2015-09-10T07:10:49.000Z | 2021-03-16T07:17:58.000Z | django_backend/backend/ajax.py | team23/django_backend | 02a2ef70584f80b9abd17b4e1a94576df5461b37 | [
"BSD-3-Clause"
] | 10 | 2015-09-09T13:40:24.000Z | 2021-02-27T09:12:23.000Z | django_backend/backend/ajax.py | team23/django_backend | 02a2ef70584f80b9abd17b4e1a94576df5461b37 | [
"BSD-3-Clause"
] | 5 | 2016-06-12T08:20:38.000Z | 2021-02-27T09:02:30.000Z | import json
from django.core.serializers.json import DjangoJSONEncoder
from django.http import HttpResponse
from django.template import Context
from django.template import RequestContext
from django.template.loader import render_to_string, select_template
from django.utils.encoding import force_unicode
from ..compat i... | 34.979167 | 79 | 0.6757 | 2,971 | 0.884753 | 0 | 0 | 0 | 0 | 0 | 0 | 696 | 0.207266 |
ced494334d10930a6ca41715a278fb9e1655660e | 1,801 | py | Python | flight/oled_ssd1306.py | MxToolbox/BalloonLaunch | a31e02ddc11b54d2ab3691e8206dc24af726f585 | [
"MIT"
] | 1 | 2020-04-13T20:18:45.000Z | 2020-04-13T20:18:45.000Z | flight/oled_ssd1306.py | MxToolbox/BalloonLaunch | a31e02ddc11b54d2ab3691e8206dc24af726f585 | [
"MIT"
] | null | null | null | flight/oled_ssd1306.py | MxToolbox/BalloonLaunch | a31e02ddc11b54d2ab3691e8206dc24af726f585 | [
"MIT"
] | null | null | null | """
This demo will fill the screen with white, draw a black box on top
and then print Hello World! in the center of the display
This example is for use on (Linux) computers that are using CPython with
Adafruit Blinka to support CircuitPython libraries. CircuitPython does
not support PIL/pillow (python imaging library)... | 27.707692 | 88 | 0.68462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 999 | 0.554692 |
ced5d7b593a38747bfdd7d0801c855ff58b4b2ad | 1,150 | py | Python | setup.py | billbrod/spatial-frequency-model | c962a50ba1041ab352e3426df026a74e21540c2e | [
"MIT"
] | null | null | null | setup.py | billbrod/spatial-frequency-model | c962a50ba1041ab352e3426df026a74e21540c2e | [
"MIT"
] | null | null | null | setup.py | billbrod/spatial-frequency-model | c962a50ba1041ab352e3426df026a74e21540c2e | [
"MIT"
] | null | null | null | #! /usr/bin/env python
from setuptools import setup, Extension
import importlib
import os
# copied from kymatio's setup.py: https://github.com/kymatio/kymatio/blob/master/setup.py
sfm_version_spec = importlib.util.spec_from_file_location('sfm_version', 'sfm/version.py')
sfm_version_module = importlib.util.module_from... | 32.857143 | 90 | 0.630435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 493 | 0.428696 |
ced62c2a72c4a4e557f2a0fa0eaf322653f67299 | 1,490 | py | Python | tests/core/test_operation/test_inventory.py | pypipet/pypipet | 8c489e4a7992281fbb68b12e2627decf24f2facb | [
"MIT"
] | null | null | null | tests/core/test_operation/test_inventory.py | pypipet/pypipet | 8c489e4a7992281fbb68b12e2627decf24f2facb | [
"MIT"
] | null | null | null | tests/core/test_operation/test_inventory.py | pypipet/pypipet | 8c489e4a7992281fbb68b12e2627decf24f2facb | [
"MIT"
] | 1 | 2021-12-10T22:36:34.000Z | 2021-12-10T22:36:34.000Z | # from pipet.core.sql.query_interface import *
from pypipet.core.operations.inventory import *
import pytest
from pprint import pprint
_supplie_id = 1
def test_update_invs(session, obj_classes, shop_conn):
invs = [ {'sku':'s22456', 'supplier_id':_supplie_id, 'qty':20}]
update_inventory_bulk(obj_classes, sess... | 40.27027 | 93 | 0.693289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 416 | 0.279195 |
ced6d0de53f60c3136d5f4268abc101197257419 | 2,982 | py | Python | reliabpy/models/cost.py | FelipeGiro/ReliabiliPy | 42624a65504a959f66a64ae2ad2ccfb5af5ae9b0 | [
"MIT"
] | null | null | null | reliabpy/models/cost.py | FelipeGiro/ReliabiliPy | 42624a65504a959f66a64ae2ad2ccfb5af5ae9b0 | [
"MIT"
] | 2 | 2021-08-13T15:31:33.000Z | 2021-08-13T15:31:34.000Z | reliabpy/models/cost.py | FelipeGiro/reliabpy | 42624a65504a959f66a64ae2ad2ccfb5af5ae9b0 | [
"MIT"
] | null | null | null | # Costs
# 2019 - Luque, Straub - Risk-based optimal inspection strategies for
# structural systems using dynamic Bayesian networks
# Table 4, case 1
import numpy as np
class InspectionMaintenance:
"""
Inspection and Maintenance
==========================
Cost calculation for inspection and main... | 36.365854 | 167 | 0.563045 | 2,810 | 0.942321 | 0 | 0 | 0 | 0 | 0 | 0 | 1,082 | 0.362844 |
ced99530196a9edbf9316f733aa9a4cd0cc8c3bd | 1,515 | py | Python | Code/Examples/Example_22.py | R6500/SLab | d8e4eac7d59dcdb2941ad4b267b59533bd038cab | [
"MIT"
] | 2 | 2018-02-23T18:23:35.000Z | 2018-04-10T11:30:31.000Z | Code/Examples/Example_22.py | R6500/SLab | d8e4eac7d59dcdb2941ad4b267b59533bd038cab | [
"MIT"
] | null | null | null | Code/Examples/Example_22.py | R6500/SLab | d8e4eac7d59dcdb2941ad4b267b59533bd038cab | [
"MIT"
] | null | null | null | '''
SLab Example
Example_22.py
Create several waveforms
Connect DAC 1 to ADC 1
'''
# Locate slab in the parent folder
import sys
sys.path.append('..')
sys.path.append('.')
import slab
# Set prefix to locate calibrations
slab.setFilePrefix("../")
# Open serial communication
slab.connect()
# Se... | 19.675325 | 59 | 0.678548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 703 | 0.464026 |
cedab3619291fe6be599d6dbcc26bf805226e6ae | 1,693 | py | Python | src/python_module_setup.py | Deyht/CIANNA | 84c2cd94e91af1114aaed1251e36e1a2669e4c82 | [
"Apache-2.0"
] | 5 | 2020-12-03T14:52:41.000Z | 2022-01-09T14:12:12.000Z | src/python_module_setup.py | Deyht/CIANNA | 84c2cd94e91af1114aaed1251e36e1a2669e4c82 | [
"Apache-2.0"
] | null | null | null | src/python_module_setup.py | Deyht/CIANNA | 84c2cd94e91af1114aaed1251e36e1a2669e4c82 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup, Extension
import os
#os.environ['USE_CUDA'] = '1'
#os.environ['USE_BLAS'] = '1'
#os.environ['USE_OPENMP'] = '1'
cuda_obj = []
cuda_extra = []
cuda_include = []
cuda_macro = [(None, None)]
blas_obj = []
blas_extra = []
blas_include = []
blas_macro = [(None, None)]
open_mp_extra = [... | 36.021277 | 226 | 0.686946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 868 | 0.512699 |
cedb99a67763a6bd3a431eeb9d02931f0c220063 | 4,324 | py | Python | potsim/filters.py | nicktimko/pots-sim | 7620c41fab4e7cecf1c0bb99df3fddfdfe208d61 | [
"MIT"
] | null | null | null | potsim/filters.py | nicktimko/pots-sim | 7620c41fab4e7cecf1c0bb99df3fddfdfe208d61 | [
"MIT"
] | null | null | null | potsim/filters.py | nicktimko/pots-sim | 7620c41fab4e7cecf1c0bb99df3fddfdfe208d61 | [
"MIT"
] | 1 | 2020-02-02T14:16:17.000Z | 2020-02-02T14:16:17.000Z | from __future__ import absolute_import, division, print_function
import json
import os.path as op
import six
import numpy as np
import scipy.signal as sig
import scipy.io.wavfile as sciwav
MAXINT16 = 2**15 - 1
FS = 44100
COEFF_DIR = op.join(op.dirname(op.abspath(__file__)), 'coeffs')
def normalize(data, maxamp=1):
... | 28.077922 | 79 | 0.594357 | 2,725 | 0.630204 | 0 | 0 | 0 | 0 | 0 | 0 | 812 | 0.187789 |
cedc48d01729e8a20c5b2b1eaaa514c17e38fd56 | 5,952 | py | Python | scripts/bootstrap_optimize.py | adrn/thrift-shop | 8dcd8d7e242ded1263edb4b1fb7c05f04c05b47c | [
"MIT"
] | null | null | null | scripts/bootstrap_optimize.py | adrn/thrift-shop | 8dcd8d7e242ded1263edb4b1fb7c05f04c05b47c | [
"MIT"
] | 11 | 2020-09-29T19:18:19.000Z | 2020-11-21T21:26:09.000Z | scripts/bootstrap_optimize.py | adrn/thrift-shop | 8dcd8d7e242ded1263edb4b1fb7c05f04c05b47c | [
"MIT"
] | 1 | 2021-09-07T22:36:06.000Z | 2021-09-07T22:36:06.000Z | # Standard library
import atexit
import os
os.environ["OMP_NUM_THREADS"] = "1"
import sys
import traceback
# Third-party
from astropy.utils import iers
iers.conf.auto_download = False
import astropy.table as at
import numpy as np
# This project
from totoro.config import cache_path
from totoro.data import datasets, el... | 31.162304 | 79 | 0.586022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,606 | 0.269825 |
cedc87d4e440dc6b8050ce800298170c9981e927 | 3,209 | py | Python | Solutions/346.py | ruppysuppy/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 70 | 2021-03-18T05:22:40.000Z | 2022-03-30T05:36:50.000Z | Solutions/346.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | null | null | null | Solutions/346.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 30 | 2021-03-18T05:22:43.000Z | 2022-03-17T10:25:18.000Z | """
Problem:
You are given a huge list of airline ticket prices between different cities around the
world on a given day. These are all direct flights. Each element in the list has the
format (source_city, destination, price).
Consider a user who is willing to take up to k connections from their origin city A to
thei... | 31.15534 | 87 | 0.631973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,273 | 0.396697 |
cedc891e437dc6a7d998e688a8eceada192b23b2 | 2,518 | py | Python | training/pytorch_ddp_nvidia.py | gclouduniverse/dlenv-templates | 27e662c6a5bcea1d828252aa2632bc545d38d082 | [
"MIT"
] | null | null | null | training/pytorch_ddp_nvidia.py | gclouduniverse/dlenv-templates | 27e662c6a5bcea1d828252aa2632bc545d38d082 | [
"MIT"
] | null | null | null | training/pytorch_ddp_nvidia.py | gclouduniverse/dlenv-templates | 27e662c6a5bcea1d828252aa2632bc545d38d082 | [
"MIT"
] | null | null | null | """PyTorch Distributed Data Parallel example from NVIDIA."""
# https://github.com/NVIDIA/DeepLearningExamples
import argparse
import utils
import virtual_machine
def main():
parser = argparse.ArgumentParser(description='Optional app description')
parser.add_argument('--vm-name', dest='vm_name', type=str, require... | 26.505263 | 102 | 0.685068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,360 | 0.540111 |
cedd3f2eb0e40b696aec07eb8b2518152978c2ab | 19,880 | py | Python | Back/ecoreleve_server/modules/stations/station_resource.py | NaturalSolutions/ecoReleve-Data | 535a6165984544902563eca7cb10d07f1686c963 | [
"MIT"
] | 15 | 2015-02-15T18:02:54.000Z | 2021-10-31T00:08:41.000Z | Back/ecoreleve_server/modules/stations/station_resource.py | NaturalSolutions/ecoReleve-Data | 535a6165984544902563eca7cb10d07f1686c963 | [
"MIT"
] | 505 | 2015-03-24T15:16:55.000Z | 2022-03-21T22:17:11.000Z | Back/ecoreleve_server/modules/stations/station_resource.py | NaturalSolutions/ecoReleve-Data | 535a6165984544902563eca7cb10d07f1686c963 | [
"MIT"
] | 31 | 2015-04-09T10:48:31.000Z | 2020-12-08T16:32:30.000Z | import json
import itertools
from datetime import datetime, timedelta
import pandas as pd
from sqlalchemy import select, and_, join
from sqlalchemy.exc import IntegrityError
import copy
from ecoreleve_server.core import RootCore
from ecoreleve_server.core.base_resource import DynamicObjectResource, DynamicObjectColle... | 36.883117 | 105 | 0.523793 | 19,014 | 0.956391 | 0 | 0 | 0 | 0 | 0 | 0 | 3,179 | 0.159901 |
cedd6b663a220db3d928b8923e83432fb4962366 | 6,002 | py | Python | t_core/Mutex/HIgnoreRuleNAC0.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | t_core/Mutex/HIgnoreRuleNAC0.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | t_core/Mutex/HIgnoreRuleNAC0.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z |
from core.himesis import Himesis, HimesisPreConditionPatternNAC
import cPickle as pickle
from uuid import UUID
class HIgnoreRuleNAC0(HimesisPreConditionPatternNAC):
def __init__(self, LHS):
"""
Creates the himesis graph representing the AToM3 model HIgnoreRuleNAC0.
"""
... | 45.12782 | 118 | 0.50933 | 5,870 | 0.978007 | 0 | 0 | 0 | 0 | 0 | 0 | 4,244 | 0.707098 |
0c66ce32672f9f98c60320cbf4c3eb540dfab0e0 | 918 | py | Python | codes/dataloader.py | UltronMHTM/pytorch_learning | 840d71cc499a2e87ba2774880f46c1befd5a1658 | [
"Apache-2.0"
] | null | null | null | codes/dataloader.py | UltronMHTM/pytorch_learning | 840d71cc499a2e87ba2774880f46c1befd5a1658 | [
"Apache-2.0"
] | null | null | null | codes/dataloader.py | UltronMHTM/pytorch_learning | 840d71cc499a2e87ba2774880f46c1befd5a1658 | [
"Apache-2.0"
] | null | null | null | from torch.utils.data import Dataset
from skimage import io
import os
import torch
class MnistData(Dataset):
def __init__(self, root_dir):
self.root_dir = root_dir
img_list = []
label_list = os.listdir(self.root_dir)
for label in label_list:
file_names = os.li... | 32.785714 | 72 | 0.602397 | 829 | 0.90305 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0.009804 |
0c68a10dfccbb91dce925152bacac5157188cf26 | 20,478 | py | Python | qunetsim/objects/storage/quantum_storage.py | pritamsinha2304/QuNetSim | 65a7486d532816724b5c98cfdcc0910404bfe0e2 | [
"MIT"
] | 61 | 2020-02-15T00:59:20.000Z | 2022-03-08T10:29:23.000Z | qunetsim/objects/storage/quantum_storage.py | pritamsinha2304/QuNetSim | 65a7486d532816724b5c98cfdcc0910404bfe0e2 | [
"MIT"
] | 50 | 2020-01-28T12:18:50.000Z | 2021-12-16T21:38:19.000Z | qunetsim/objects/storage/quantum_storage.py | pritamsinha2304/QuNetSim | 65a7486d532816724b5c98cfdcc0910404bfe0e2 | [
"MIT"
] | 27 | 2020-01-21T12:59:28.000Z | 2022-02-21T14:23:00.000Z | from qunetsim.backends.rw_lock import RWLock
from qunetsim.objects.logger import Logger
import queue
class QuantumStorage(object):
"""
An object which stores qubits.
"""
STORAGE_LIMIT_ALL = 1
STORAGE_LIMIT_PER_HOST = 2
STORAGE_LIMIT_INDIVIDUALLY_PER_HOST = 3
def __init__(self):
#... | 37.505495 | 102 | 0.592587 | 20,374 | 0.994921 | 0 | 0 | 1,227 | 0.059918 | 0 | 0 | 6,557 | 0.320197 |
0c6a40a4bea2c4e73231cb976a84217ada08384c | 2,098 | py | Python | tests/test_utils.py | Guillerbr/python-pagseguro | 279eacf251e99a2f15d665f8193fcad0be6ea0bf | [
"MIT"
] | 115 | 2015-02-19T22:17:44.000Z | 2019-07-24T17:31:30.000Z | tests/test_utils.py | rubens8848/python-pagseguro | 08a8aa7f934b16d00948ead17a0e470a88f2479f | [
"MIT"
] | 49 | 2015-03-04T00:53:31.000Z | 2019-07-13T16:41:22.000Z | tests/test_utils.py | rubens8848/python-pagseguro | 08a8aa7f934b16d00948ead17a0e470a88f2479f | [
"MIT"
] | 53 | 2015-01-12T22:13:33.000Z | 2019-07-20T01:52:48.000Z | # -*- coding: utf-8 -*-
import datetime
from pagseguro.utils import (is_valid_cpf, is_valid_cnpj, is_valid_email,
parse_date)
from pagseguro.exceptions import PagSeguroValidationError
import pytest
from dateutil.tz import tzutc
def test_is_valid_email():
valid = '[email protected]'
... | 26.897436 | 78 | 0.674452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 397 | 0.187 |
0c6b6942a6015b98ac3474b28a14d6d14c8b2df9 | 121 | py | Python | G53IDS/run.py | jayBana/InventoryMan | 0826f9c98062fb6600f77a721311cbf27719e528 | [
"Apache-2.0"
] | null | null | null | G53IDS/run.py | jayBana/InventoryMan | 0826f9c98062fb6600f77a721311cbf27719e528 | [
"Apache-2.0"
] | null | null | null | G53IDS/run.py | jayBana/InventoryMan | 0826f9c98062fb6600f77a721311cbf27719e528 | [
"Apache-2.0"
] | null | null | null | from server.controller.app import app as webapp
# import Flask app so that it can be launched with gunicorn
app = webapp
| 30.25 | 59 | 0.793388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 59 | 0.487603 |
0c6c60baa3e34ba265cfea8fd4ef73ba5f9cccb2 | 383 | py | Python | tests/perf/test-prop-write.py | wenq1/duktape | 5ed3eee19b291f3b3de0b212cc62c0aba0ab4ecb | [
"MIT"
] | 4,268 | 2015-01-01T17:33:40.000Z | 2022-03-31T17:53:31.000Z | tests/perf/test-prop-write.py | KiraanRK/esp32-duktape | 1b7fbcb8bd6bfc346d92df30ec099df7f13b03aa | [
"MIT"
] | 1,667 | 2015-01-01T22:43:03.000Z | 2022-02-23T22:27:19.000Z | tests/perf/test-prop-write.py | KiraanRK/esp32-duktape | 1b7fbcb8bd6bfc346d92df30ec099df7f13b03aa | [
"MIT"
] | 565 | 2015-01-08T14:15:28.000Z | 2022-03-31T16:29:31.000Z | def test():
obj = { 'xxx1': 1, 'xxx2': 2, 'xxx3': 4, 'xxx4': 4, 'foo': 123 }
i = 0
while i < 1e7:
obj['foo'] = 234
obj['foo'] = 234
obj['foo'] = 234
obj['foo'] = 234
obj['foo'] = 234
obj['foo'] = 234
obj['foo'] = 234
obj['foo'] = 234
ob... | 21.277778 | 68 | 0.373368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 79 | 0.206266 |
0c6c952788acdca410a606d2447a82cf6396e05a | 3,563 | py | Python | clickhouse_driver/numpy/result.py | fasttrack-solutions/clickhouse-driver | 676dfb09f74b8b55bfecaedbe70ddc971e1badd7 | [
"MIT"
] | 823 | 2017-05-16T15:30:15.000Z | 2022-03-31T08:39:04.000Z | clickhouse_driver/numpy/result.py | fasttrack-solutions/clickhouse-driver | 676dfb09f74b8b55bfecaedbe70ddc971e1badd7 | [
"MIT"
] | 277 | 2017-07-11T11:35:34.000Z | 2022-03-08T06:52:09.000Z | clickhouse_driver/numpy/result.py | fasttrack-solutions/clickhouse-driver | 676dfb09f74b8b55bfecaedbe70ddc971e1badd7 | [
"MIT"
] | 175 | 2017-10-11T08:41:12.000Z | 2022-03-22T03:59:35.000Z | from itertools import chain
import numpy as np
import pandas as pd
from pandas.api.types import union_categoricals
from ..progress import Progress
from ..result import QueryResult
class NumpyQueryResult(QueryResult):
"""
Stores query result from multiple blocks as numpy arrays.
"""
def store(self, ... | 28.733871 | 78 | 0.596969 | 3,372 | 0.946393 | 0 | 0 | 0 | 0 | 0 | 0 | 543 | 0.1524 |
0c6dab3b29d248c78a200aec1e3449a5aeb04604 | 33,383 | py | Python | sandbox/riskModelsResultsEval.py | danbirks/PredictCode | b4d7010d13706c771ba57437e9c7589e5c94329b | [
"Artistic-2.0"
] | null | null | null | sandbox/riskModelsResultsEval.py | danbirks/PredictCode | b4d7010d13706c771ba57437e9c7589e5c94329b | [
"Artistic-2.0"
] | null | null | null | sandbox/riskModelsResultsEval.py | danbirks/PredictCode | b4d7010d13706c771ba57437e9c7589e5c94329b | [
"Artistic-2.0"
] | 2 | 2020-01-28T23:02:54.000Z | 2020-02-03T16:04:38.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed May 15 10:22:47 2019
@author: lawdfo
Purpose:
Read in the csv results file generated by (e.g.) riskModelsParamSweep.py
and report back some useful statistics.
"""
# Some fairly standard modules
import os, csv, lzma
import numpy as np
import matplotlib.pyplot as ... | 33.550754 | 130 | 0.623371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15,565 | 0.466255 |
0c6e32f7e7283b6370a0de49f39a51f43f1b82bb | 1,280 | py | Python | HIV model/others.py | omisolaidowu/HIV-story-telling | 290fbb9549ff0177fb2224553575aa24813fdc6a | [
"Apache-2.0"
] | null | null | null | HIV model/others.py | omisolaidowu/HIV-story-telling | 290fbb9549ff0177fb2224553575aa24813fdc6a | [
"Apache-2.0"
] | null | null | null | HIV model/others.py | omisolaidowu/HIV-story-telling | 290fbb9549ff0177fb2224553575aa24813fdc6a | [
"Apache-2.0"
] | null | null | null | '''
-*- coding: utf-8 -*-
Created on Fri Jan 17 12:34:15 2020
@author: Paul
'''
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
df=pd.read_excel(r'C:\Users\Paul\Desktop\Python projects\HIV_3.xlsx')
print(df)
... | 29.767442 | 158 | 0.683594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 652 | 0.509375 |
0c71acdaf0692c5c50594e6de8fdef846a2f49a3 | 2,425 | py | Python | iproxy/ip_select.py | tempoker/third | e220c79c8646a68e96a996e0fda1346b5f7de2e3 | [
"MIT"
] | null | null | null | iproxy/ip_select.py | tempoker/third | e220c79c8646a68e96a996e0fda1346b5f7de2e3 | [
"MIT"
] | null | null | null | iproxy/ip_select.py | tempoker/third | e220c79c8646a68e96a996e0fda1346b5f7de2e3 | [
"MIT"
] | null | null | null | #-*- conding:utf-8 -*-
#2018-02-02 11:04:54
import time,random,requests
from lxml import etree
from fake_useragent import UserAgent
import urllib.request as ur
from pymongo import MongoClient
from multiprocessing.dummy import Pool as ThreadPool
client = MongoClient('localhost',27017)
db = client['test']
ip_list = db[... | 33.680556 | 81 | 0.547629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 481 | 0.194187 |
0c726da14e32932a0096adc8ac65fa50f4a28ab1 | 5,359 | py | Python | utils/node_data_snapshot.py | nigelbowden/wlanpi-chat-bot | cedab0e83d6e33d47f66c1a3be202564f95ac408 | [
"MIT"
] | null | null | null | utils/node_data_snapshot.py | nigelbowden/wlanpi-chat-bot | cedab0e83d6e33d47f66c1a3be202564f95ac408 | [
"MIT"
] | null | null | null | utils/node_data_snapshot.py | nigelbowden/wlanpi-chat-bot | cedab0e83d6e33d47f66c1a3be202564f95ac408 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Read & write snapshot of node status data dumped to local file system.
This data is used to detect things like sytem changes that may need to be reported.
"""
import json
import time
import logging
import os
import socket
import psutil
import netifaces as ni
logging.ba... | 28.505319 | 101 | 0.560552 | 4,920 | 0.918082 | 0 | 0 | 0 | 0 | 0 | 0 | 1,751 | 0.32674 |
0c729770e81b2c493f1f39b13a63dd8b4098a0c6 | 104 | py | Python | micropsi_core/world/island/__init__.py | brucepro/micropsi2 | 84c304d5339f25d112da5565fb2cd98c31524f94 | [
"Apache-2.0"
] | 119 | 2015-01-23T11:24:58.000Z | 2022-03-13T08:00:50.000Z | micropsi_core/world/island/__init__.py | Chediak/micropsi2 | 74a2642d20da9da1d64acc5e4c11aeabee192a27 | [
"MIT"
] | 9 | 2015-02-18T20:44:58.000Z | 2021-09-17T14:38:05.000Z | micropsi_core/world/island/__init__.py | Chediak/micropsi2 | 74a2642d20da9da1d64acc5e4c11aeabee192a27 | [
"MIT"
] | 34 | 2015-04-01T20:48:49.000Z | 2022-03-13T08:02:00.000Z | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
"""
"""
__author__ = 'joscha'
__date__ = '03.08.12'
| 9.454545 | 23 | 0.548077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 72 | 0.692308 |
0c72ac90b8c93f18a7c53036beae18e66ed1f754 | 273 | py | Python | settings/DataLogger_HS2_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | settings/DataLogger_HS2_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | settings/DataLogger_HS2_settings.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | counter_name = 'I0_PIN'
Size = wx.Size(1007, 726)
logfile = '/net/helix/data/anfinrud_1502/Logfiles/I0_PIN-2.log'
average_count = 1
max_value = 11
min_value = 0
start_fraction = 0.401
reject_outliers = False
outlier_cutoff = 2.5
show_statistics = True
time_window = 172800
| 22.75 | 63 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 61 | 0.223443 |
0c755c497d1f3421add1deb1d2e25dd35e398b8e | 1,976 | py | Python | register_printer/generators/uvm_generator/print_uvm.py | zhangyiant/RegisterPrinter | 9d26032eeb486c7abc04d11794d07df2fd1dfe4e | [
"MIT"
] | null | null | null | register_printer/generators/uvm_generator/print_uvm.py | zhangyiant/RegisterPrinter | 9d26032eeb486c7abc04d11794d07df2fd1dfe4e | [
"MIT"
] | 4 | 2021-01-25T07:05:41.000Z | 2021-01-25T12:07:37.000Z | register_printer/generators/uvm_generator/print_uvm.py | zhangyiant/RegisterPrinter | 9d26032eeb486c7abc04d11794d07df2fd1dfe4e | [
"MIT"
] | null | null | null | import re
import os
import os.path
import logging
from register_printer.template_loader import get_template
LOGGER = logging.getLogger(__name__)
def print_uvm_block(block, out_path):
uvm_block_name = block.block_type.lower() + "_reg_model"
file_name = os.path.join(
out_path,
uvm_block_name +... | 20.163265 | 73 | 0.624494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 234 | 0.118421 |
0c76b0962d8629ce997e757dfe7bab0062971c5a | 5,466 | py | Python | django/blog/statistics.py | nekrassov01/docker-django-blog | 0d3d8815e1f82dd356e9aa81e2b5d1d082cb961b | [
"MIT"
] | null | null | null | django/blog/statistics.py | nekrassov01/docker-django-blog | 0d3d8815e1f82dd356e9aa81e2b5d1d082cb961b | [
"MIT"
] | null | null | null | django/blog/statistics.py | nekrassov01/docker-django-blog | 0d3d8815e1f82dd356e9aa81e2b5d1d082cb961b | [
"MIT"
] | null | null | null | """
開発初期段階では、サイトレポートをVIEWに直書きしていた
パフォーマンス改善のため、バッチ処理に変更
このVIEWは今は使われていないが、一応残しておく
"""
from django.conf import settings
from django.db.models import Q, Count
from django.utils import html
from .models import Post, Category, Tag
from datetime import datetime
from janome.tokenizer import Tokenizer
from janome... | 38.492958 | 171 | 0.664654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,444 | 0.373016 |
0c7833d91939bf6585a47068c0db482d70b2ffe6 | 131 | py | Python | config/__init__.py | IMBINGO95/FairMOT | c496e911a89870a9b6988d93f80e680d01ee8afc | [
"MIT"
] | null | null | null | config/__init__.py | IMBINGO95/FairMOT | c496e911a89870a9b6988d93f80e680d01ee8afc | [
"MIT"
] | null | null | null | config/__init__.py | IMBINGO95/FairMOT | c496e911a89870a9b6988d93f80e680d01ee8afc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021/1/27 22:33
# @Author : BINGO
# @School: 浙江大学
# @Campany: 竺星
# @FileName: __init__.py.py
| 18.714286 | 28 | 0.572519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 137 | 0.958042 |
0c7993194c4b04f1fd68f17d7709a5f26721129f | 8,502 | py | Python | xnmt/expression_seqs.py | esalesky/xnmt-devel | 90598d7cc8d22a7167acf88e29df81e130fc64fc | [
"Apache-2.0"
] | 4 | 2020-07-20T08:53:32.000Z | 2020-11-25T21:21:23.000Z | xnmt/expression_seqs.py | esalesky/xnmt-devel | 90598d7cc8d22a7167acf88e29df81e130fc64fc | [
"Apache-2.0"
] | null | null | null | xnmt/expression_seqs.py | esalesky/xnmt-devel | 90598d7cc8d22a7167acf88e29df81e130fc64fc | [
"Apache-2.0"
] | 1 | 2020-09-04T07:19:10.000Z | 2020-09-04T07:19:10.000Z | from typing import Optional, Sequence
import dynet as dy
import numpy as np
from xnmt import batchers
class ExpressionSequence(object):
"""A class to represent a sequence of expressions.
Internal representation is either a list of expressions or a single tensor or both.
If necessary, both forms of representat... | 35.573222 | 166 | 0.699718 | 8,390 | 0.986827 | 0 | 0 | 0 | 0 | 0 | 0 | 2,639 | 0.310398 |
0c7a5201b457dc27f7c1cc8f8c9c04dfe54b1dc5 | 12,423 | py | Python | test/unit/test_localdb.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | test/unit/test_localdb.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | test/unit/test_localdb.py | muchu1983/104_cameo | 8c7f78de198a5bd8d870589402e3b7e8b59f520a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (C) 2015, MuChu Hsu
Contributed by Muchu Hsu ([email protected])
This file is part of BSD license
<https://opensource.org/licenses/BSD-3-Clause>
"""
import unittest
import logging
from cameo.localdb import LocalDbForCurrencyApi
from cameo.localdb import LocalDbForTECHORANGE
from... | 62.115 | 149 | 0.738871 | 12,164 | 0.942142 | 0 | 0 | 0 | 0 | 0 | 0 | 11,272 | 0.873054 |
0c7a5957fe9864225fb891e5477469385f447a91 | 3,456 | py | Python | complex_venv/lib/python3.7/site-packages/test/test_graph_list_of_file_inputs.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 1 | 2021-10-06T00:21:10.000Z | 2021-10-06T00:21:10.000Z | complex_venv/lib/python3.7/site-packages/test/test_graph_list_of_file_inputs.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 14 | 2021-01-15T21:51:38.000Z | 2021-11-10T10:08:22.000Z | complex_venv/lib/python3.7/site-packages/test/test_graph_list_of_file_inputs.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 1 | 2021-01-18T10:32:56.000Z | 2021-01-18T10:32:56.000Z | import unittest
from shexer.shaper import Shaper
from test.const import G1, BASE_FILES, G1_NT, default_namespaces, BASE_FILES_GENERAL
from test.t_utils import file_vs_str_tunned_comparison
import os.path as pth
from shexer.consts import NT, TURTLE
_BASE_DIR = BASE_FILES + "graph_list_of_files_input" + pth.sep
... | 54.857143 | 120 | 0.550926 | 3,132 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 511 | 0.147859 |
0c7a6a41c0a3a1f235803d1783bd66e37bc01cb9 | 217 | py | Python | geoscilabs/gpr/Wiggle.py | jcapriot/geosci-labs | 044a73432b9cb1187924f7761942ab329259d875 | [
"MIT"
] | 2 | 2019-01-15T03:02:28.000Z | 2019-03-20T03:41:12.000Z | geoscilabs/gpr/Wiggle.py | jcapriot/geosci-labs | 044a73432b9cb1187924f7761942ab329259d875 | [
"MIT"
] | 1 | 2018-12-30T20:09:25.000Z | 2018-12-30T20:09:25.000Z | geoscilabs/gpr/Wiggle.py | jcapriot/geosci-labs | 044a73432b9cb1187924f7761942ab329259d875 | [
"MIT"
] | null | null | null | import numpy as np
def PrimaryWave(x, velocity, tinterp):
return tinterp + 1.0 / velocity * x
def ReflectedWave(x, velocity, tinterp):
time = np.sqrt(x ** 2 / velocity ** 2 + tinterp ** 2)
return time
| 19.727273 | 57 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0c7aac81098c986f5d8ddb73b8e89765a14cd635 | 6,487 | py | Python | tests/test_mxnet.py | haoxintong/byteps | 495f1372af5f6fd4832393d5e52d4b02b42a7a03 | [
"Apache-2.0"
] | 1 | 2019-07-01T10:08:00.000Z | 2019-07-01T10:08:00.000Z | tests/test_mxnet.py | haoxintong/byteps | 495f1372af5f6fd4832393d5e52d4b02b42a7a03 | [
"Apache-2.0"
] | null | null | null | tests/test_mxnet.py | haoxintong/byteps | 495f1372af5f6fd4832393d5e52d4b02b42a7a03 | [
"Apache-2.0"
] | 1 | 2021-02-02T02:58:37.000Z | 2021-02-02T02:58:37.000Z | # Copyright 2018 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... | 39.554878 | 80 | 0.564668 | 5,297 | 0.816556 | 0 | 0 | 0 | 0 | 0 | 0 | 1,791 | 0.276091 |
0c7b118e6f6819cf4d1ad8f8d9c8320221d64d32 | 889 | py | Python | frux_app_server/migrations/versions/299e2bc265af_favorites.py | camidvorkin/frux-app-server | 21098234a7867908250022e3e1c0580417d1ca35 | [
"Apache-2.0",
"MIT"
] | 3 | 2021-08-03T21:52:01.000Z | 2021-09-14T19:39:10.000Z | frux_app_server/migrations/versions/299e2bc265af_favorites.py | camidvorkin/frux-app-server | 21098234a7867908250022e3e1c0580417d1ca35 | [
"Apache-2.0",
"MIT"
] | null | null | null | frux_app_server/migrations/versions/299e2bc265af_favorites.py | camidvorkin/frux-app-server | 21098234a7867908250022e3e1c0580417d1ca35 | [
"Apache-2.0",
"MIT"
] | null | null | null | """Favorites
Revision ID: 299e2bc265af
Revises: 24f1df018932
Create Date: 2021-06-25 17:24:27.020289
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '299e2bc265af'
down_revision = '24f1df018932'
branch_labels = None
depends_on = None
def upgrade():
# ### ... | 25.4 | 65 | 0.68054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 462 | 0.519685 |
0c7d87c2d7143decedcd6ade00a74af0379219d4 | 902 | py | Python | src/lib/libpasteurize/fixes/fix_newstyle.py | thonkify/thonkify | 2cb4493d796746cb46c8519a100ef3ef128a761a | [
"MIT"
] | 17 | 2017-08-04T15:41:05.000Z | 2020-10-16T18:02:41.000Z | src/lib/libpasteurize/fixes/fix_newstyle.py | thonkify/thonkify | 2cb4493d796746cb46c8519a100ef3ef128a761a | [
"MIT"
] | 3 | 2017-08-04T23:37:37.000Z | 2017-08-04T23:38:34.000Z | src/lib/libpasteurize/fixes/fix_newstyle.py | thonkify/thonkify | 2cb4493d796746cb46c8519a100ef3ef128a761a | [
"MIT"
] | 3 | 2017-12-07T16:30:59.000Z | 2019-06-16T02:48:28.000Z | u"""
Fixer for "class Foo: ..." -> "class Foo(object): ..."
"""
from lib2to3 import fixer_base
from lib2to3.fixer_util import LParen, RParen, Name
from libfuturize.fixer_util import touch_import_top
def insert_object(node, idx):
node.insert_child(idx, RParen())
node.insert_child(idx, Name(u"object"))
no... | 26.529412 | 65 | 0.599778 | 548 | 0.607539 | 0 | 0 | 0 | 0 | 0 | 0 | 202 | 0.223947 |
0c7de1d97913a4091e354725bc2562a43f7d9e56 | 14,825 | py | Python | pinochle/Game.py | Atrus619/DeckOfCards | bf0668ea26041e7faab2b88a03d42ba6887d054a | [
"MIT"
] | 1 | 2019-06-27T12:14:38.000Z | 2019-06-27T12:14:38.000Z | pinochle/Game.py | Atrus619/DeckOfCards | bf0668ea26041e7faab2b88a03d42ba6887d054a | [
"MIT"
] | 18 | 2019-07-14T17:40:22.000Z | 2019-11-11T01:54:07.000Z | pinochle/Game.py | Atrus619/DeckOfCards | bf0668ea26041e7faab2b88a03d42ba6887d054a | [
"MIT"
] | null | null | null | from pinochle.State import State
from classes.Deck import Deck
from classes.Hand import Hand
from pinochle.MeldUtil import MeldUtil
from pinochle.Meld import Meld
from pinochle.Trick import Trick
from pinochle.MeldTuple import MeldTuple
from util.Constants import Constants as cs
from util.util import print_divider
from... | 44.924242 | 165 | 0.616256 | 14,120 | 0.952445 | 0 | 0 | 0 | 0 | 0 | 0 | 2,994 | 0.201956 |
0c806a0eaf687b2d10c9f68f4752a320058970ab | 737 | py | Python | .eggs/py2app-0.14-py3.6.egg/py2app/recipes/matplotlib.py | stfbnc/mtsa_py | 0dd14f0e51e3251f10b3da781867fbc7173608eb | [
"MIT"
] | 17 | 2018-08-28T04:40:07.000Z | 2021-12-15T06:19:31.000Z | .eggs/py2app-0.14-py3.6.egg/py2app/recipes/matplotlib.py | stfbnc/mtsa_py | 0dd14f0e51e3251f10b3da781867fbc7173608eb | [
"MIT"
] | 4 | 2019-05-17T09:35:30.000Z | 2022-03-13T03:50:20.000Z | .eggs/py2app-0.14-py3.6.egg/py2app/recipes/matplotlib.py | stfbnc/mtsa_py | 0dd14f0e51e3251f10b3da781867fbc7173608eb | [
"MIT"
] | 3 | 2019-01-15T07:13:53.000Z | 2020-03-29T00:48:39.000Z | import os
def check(cmd, mf):
m = mf.findNode('matplotlib')
if m is None or m.filename is None:
return None
if cmd.matplotlib_backends:
backends = {}
for backend in cmd.matplotlib_backends:
if backend == '-':
pass
elif backend == '*':
... | 24.566667 | 74 | 0.530529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 143 | 0.19403 |
0c82f844757360c3545bf98aad68a6f84622e3da | 711 | py | Python | app/core/migrations/0009_auto_20210214_2113.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/core/migrations/0009_auto_20210214_2113.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | app/core/migrations/0009_auto_20210214_2113.py | Valentin-Golyonko/FlaskTestRPi | b9796a9acb2bb1c122301a3ef192f43c857eb27b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-14 18:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20210214_2039'),
]
operations = [
migrations.AlterField(
model_name='device',
name='ip_address',
... | 29.625 | 138 | 0.613221 | 618 | 0.869198 | 0 | 0 | 0 | 0 | 0 | 0 | 187 | 0.26301 |
0c83ca38634452225fc5796f360c1d45205cc40e | 1,552 | py | Python | grabber.py | serj12342/pstreehunter | 255b2da9a7110ca37f776baa3071ecbb10fec2f5 | [
"MIT"
] | 1 | 2022-01-03T13:30:01.000Z | 2022-01-03T13:30:01.000Z | grabber.py | serj12342/pstreehunter | 255b2da9a7110ca37f776baa3071ecbb10fec2f5 | [
"MIT"
] | null | null | null | grabber.py | serj12342/pstreehunter | 255b2da9a7110ca37f776baa3071ecbb10fec2f5 | [
"MIT"
] | null | null | null | import requests
import re
pattern_hashes = "^[a-f0-9]{64}$"
pattern_url = "https?:\/\/.*"
pattern_ip = "(?:(?:\d|[01]?\d\d|2[0-4]\d|25[0-5])\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d|\d)(?:\/\d{1,2})?"
pattern_domain = "^[a-zA-Z0-9][a-zA-Z0-9-_]{0,61}[a-zA-Z0-9]{0,1}\.([a-zA-Z]{1,6}|[a-zA-Z0-9-]{1,30}\.[a-zA-Z]{2,3})$"
head... | 32.333333 | 118 | 0.607603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 429 | 0.276418 |
0c844a07b81367c6e40feb94bf39e5508b8f654c | 1,134 | py | Python | prac2_2.py | JulianAZW/bookish-lamp | 24f354d8fa16841f256a2ad40668126604131cef | [
"MIT"
] | 1 | 2022-03-26T01:07:57.000Z | 2022-03-26T01:07:57.000Z | prac2_2.py | JulianAZW/bookish-lamp | 24f354d8fa16841f256a2ad40668126604131cef | [
"MIT"
] | null | null | null | prac2_2.py | JulianAZW/bookish-lamp | 24f354d8fa16841f256a2ad40668126604131cef | [
"MIT"
] | 1 | 2022-03-27T02:32:39.000Z | 2022-03-27T02:32:39.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 17 19:08:54 2022
@author: julian
"""
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
def heatmap(df):
correlation_matrix = df.corr().round(2)
print(correlation_matrix)
sns_h = sns.heatmap(data=correlation_matrix, annot=True)
s... | 26.372093 | 77 | 0.613757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 357 | 0.314815 |
0c854c215d158012c99078b8d02a0bf8423f9708 | 20,048 | py | Python | bookworm/ocr/ocr_dialogs.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 36 | 2020-11-15T03:21:39.000Z | 2022-03-05T01:11:26.000Z | bookworm/ocr/ocr_dialogs.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 90 | 2020-10-06T14:46:07.000Z | 2022-03-31T03:03:34.000Z | bookworm/ocr/ocr_dialogs.py | xingkong0113/bookworm | 7214067f48e7a951198806a1f9170e3fd8fc0cce | [
"MIT"
] | 20 | 2020-09-30T17:40:44.000Z | 2022-03-17T19:59:53.000Z | # coding: utf-8
import wx
import wx.lib.sized_controls as sc
from dataclasses import dataclass
from functools import partial
from wx.adv import CommandLinkButton
from bookworm import app
from bookworm import config
from bookworm import typehints as t
from bookworm.i18n import LocaleInfo
from bookworm.concurrency impor... | 39.232877 | 105 | 0.610934 | 18,718 | 0.933659 | 0 | 0 | 187 | 0.009328 | 0 | 0 | 3,639 | 0.181514 |
0c85c0c3fc3e88d3d1512b447e6a7c16569279b2 | 1,376 | py | Python | nginx_rtmp_wizard/models.py | Gerhut/nginx-rtmp-wizard | c821c3bb262503ee26408b8b3bf4a252b49a29d6 | [
"Unlicense"
] | null | null | null | nginx_rtmp_wizard/models.py | Gerhut/nginx-rtmp-wizard | c821c3bb262503ee26408b8b3bf4a252b49a29d6 | [
"Unlicense"
] | 1 | 2021-06-10T20:32:59.000Z | 2021-06-10T20:32:59.000Z | nginx_rtmp_wizard/models.py | Gerhut/nginx-rtmp-wizard | c821c3bb262503ee26408b8b3bf4a252b49a29d6 | [
"Unlicense"
] | null | null | null | from django.conf import settings
from django.core import validators
from django.db import models
DEFAULT_RTMP_PORT = 1935
class Server(models.Model):
listen = models.PositiveIntegerField(
default=DEFAULT_RTMP_PORT,
unique=True,
validators=[
validators.MinValueValidator(1024),
... | 27.52 | 77 | 0.634448 | 1,244 | 0.90407 | 0 | 0 | 0 | 0 | 0 | 0 | 100 | 0.072674 |
0c873f69a18440e8e7c7b2463204d9290fbcbf4a | 6,513 | py | Python | fsmonitor/polling.py | ljmccarthy/fsmonitor | 4d84d9817dce7b274cb4586b5c2091dea96982f9 | [
"MIT"
] | 26 | 2018-03-24T06:38:19.000Z | 2022-02-18T10:22:51.000Z | fsmonitor/polling.py | ljmccarthy/fsmonitor | 4d84d9817dce7b274cb4586b5c2091dea96982f9 | [
"MIT"
] | 5 | 2018-06-19T21:35:00.000Z | 2018-06-26T21:11:38.000Z | fsmonitor/polling.py | ljmccarthy/fsmonitor | 4d84d9817dce7b274cb4586b5c2091dea96982f9 | [
"MIT"
] | 9 | 2018-06-19T21:35:53.000Z | 2022-03-26T17:01:11.000Z | # Copyright (c) 2012 Luke McCarthy <[email protected]>
#
# This is free software released under the MIT license.
# See COPYING file for details, or visit:
# http://www.opensource.org/licenses/mit-license.php
#
# The file is part of FSMonitor, a file-system monitoring library.
# https://github.com/shaurz/fsmonitor
imp... | 29.876147 | 81 | 0.60172 | 4,923 | 0.755873 | 0 | 0 | 359 | 0.055121 | 0 | 0 | 385 | 0.059113 |
0c88e62584b3021b90b1b02ca77fbe06e08b2b02 | 2,302 | py | Python | cogs/commands.py | ibx34/logger | 2b99d579c5313434ef82fe500bd45aef94627696 | [
"Apache-2.0"
] | null | null | null | cogs/commands.py | ibx34/logger | 2b99d579c5313434ef82fe500bd45aef94627696 | [
"Apache-2.0"
] | 1 | 2021-01-21T13:06:17.000Z | 2021-01-21T14:15:35.000Z | cogs/commands.py | ibx34/logger | 2b99d579c5313434ef82fe500bd45aef94627696 | [
"Apache-2.0"
] | null | null | null | import math
import random
import string
from datetime import datetime, timedelta
from textwrap import dedent
import config
import discord
from discord.ext import commands
import asyncio
class etc(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name="clear")
async def _m... | 35.415385 | 172 | 0.577324 | 2,072 | 0.898915 | 0 | 0 | 1,971 | 0.855098 | 1,825 | 0.791757 | 534 | 0.23167 |
0c8967029f04eaa76a7e75ae4334c986e1287fc3 | 1,887 | py | Python | dataset_generator/learning/imitation/tensorflow/_layers.py | rjean/duckie-segmentation | 5e720e1a96ef61c4560823030549ac1d5d16e2a4 | [
"Apache-2.0"
] | 1 | 2021-02-03T02:23:34.000Z | 2021-02-03T02:23:34.000Z | dataset_generator/learning/imitation/tensorflow/_layers.py | rjean/mobile-segmentation | 5e720e1a96ef61c4560823030549ac1d5d16e2a4 | [
"Apache-2.0"
] | null | null | null | dataset_generator/learning/imitation/tensorflow/_layers.py | rjean/mobile-segmentation | 5e720e1a96ef61c4560823030549ac1d5d16e2a4 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
L2_LAMBDA = 1e-04
def _residual_block(x, size, dropout=False, dropout_prob=0.5, seed=None):
residual = tf.layers.batch_normalization(x) # TODO: check if the defaults in Tf are the same as in Keras
residual = tf.nn.relu(residual)
residual = tf.layers.conv2d(
residual,
... | 29.484375 | 109 | 0.650768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 84 | 0.044515 |
0c8a7a498a0f1b713f01a2cb053d95a45b749576 | 3,071 | py | Python | test_API/demo4.py | UppASD/aiida-uppasd | f3f26d523280cb7484ad24c826ad275a6d329c01 | [
"MIT"
] | 2 | 2020-12-03T13:29:33.000Z | 2022-01-03T11:36:24.000Z | test_API/demo4.py | UppASD/aiida-uppasd | f3f26d523280cb7484ad24c826ad275a6d329c01 | [
"MIT"
] | null | null | null | test_API/demo4.py | UppASD/aiida-uppasd | f3f26d523280cb7484ad24c826ad275a6d329c01 | [
"MIT"
] | 2 | 2021-04-22T07:19:21.000Z | 2022-03-16T21:49:29.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 23 15:15:05 2021
@author: qichen
"""
from aiida.plugins import DataFactory, CalculationFactory
from aiida.engine import run
from aiida.orm import Code, SinglefileData, Int, Float, Str, Bool, List, Dict, ArrayData, XyData, SinglefileData, FolderData,... | 32.670213 | 136 | 0.643113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,019 | 0.331814 |
0c8aee4b13af709adea28d410ab48e9fcca43ac4 | 83 | py | Python | pyqt_horizontal_selection_square_graphics_view/__init__.py | berty-2007/pyqt-horizontal-selection-square-graphics-view | 29d3d6f63a2d464b0c4b1d64c451439de6f1eded | [
"MIT"
] | 1 | 2021-12-23T14:44:07.000Z | 2021-12-23T14:44:07.000Z | pyqt_horizontal_selection_square_graphics_view/__init__.py | berty-2007/pyqt-horizontal-selection-square-graphics-view | 29d3d6f63a2d464b0c4b1d64c451439de6f1eded | [
"MIT"
] | null | null | null | pyqt_horizontal_selection_square_graphics_view/__init__.py | berty-2007/pyqt-horizontal-selection-square-graphics-view | 29d3d6f63a2d464b0c4b1d64c451439de6f1eded | [
"MIT"
] | null | null | null | from .horizontalSelectionSquareGraphicsView import *
from .selectionSquare import * | 41.5 | 52 | 0.86747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0c8b19dac043c6f1fd044d080e97281c266335ea | 557 | py | Python | src/tests/t_kadm5_hook.py | tizenorg/platform.upstream.krb5 | a98efd0c8f97aba9d71c2130c048f1adc242772e | [
"MIT"
] | 372 | 2016-10-28T10:50:35.000Z | 2022-03-18T19:54:37.000Z | src/tests/t_kadm5_hook.py | tizenorg/platform.upstream.krb5 | a98efd0c8f97aba9d71c2130c048f1adc242772e | [
"MIT"
] | 317 | 2016-11-02T17:41:48.000Z | 2021-11-08T20:28:19.000Z | src/tests/t_kadm5_hook.py | tizenorg/platform.upstream.krb5 | a98efd0c8f97aba9d71c2130c048f1adc242772e | [
"MIT"
] | 107 | 2016-11-03T19:25:16.000Z | 2022-03-20T21:15:22.000Z | #!/usr/bin/python
from k5test import *
plugin = os.path.join(buildtop, "plugins", "kadm5_hook", "test",
"kadm5_hook_test.so")
hook_krb5_conf = {
'all' : {
"plugins" : {
"kadm5_hook" : {
"module" : "test:" + plugin
}
}
}
}
realm = K... | 24.217391 | 79 | 0.59246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 200 | 0.359066 |
0c8d8ebe08a6b4445a731df985a3abbe390f7b84 | 11,465 | py | Python | src/visaplan/plone/tools/setup/_get_object.py | visaplan/plone.tools | 080da21af710334033540cd2e7e0c63358d234d2 | [
"Apache-2.0"
] | 1 | 2021-01-04T01:30:50.000Z | 2021-01-04T01:30:50.000Z | src/visaplan/plone/tools/setup/_get_object.py | visaplan/plone.tools | 080da21af710334033540cd2e7e0c63358d234d2 | [
"Apache-2.0"
] | null | null | null | src/visaplan/plone/tools/setup/_get_object.py | visaplan/plone.tools | 080da21af710334033540cd2e7e0c63358d234d2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*- äöü vim: sw=4 sts=4 et tw=79
"""
Tools für Produkt-Setup (Migrationsschritte, "upgrade steps"): _tree
"""
# Python compatibility:
from __future__ import absolute_import
# Standard library:
from posixpath import normpath
# Zope:
from Products.CMFCore.utils import getToolByName
# Plone:
from p... | 35.495356 | 84 | 0.527955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,823 | 0.333333 |
0c90583bb1e8038246e08d81681f08ae3de8075d | 3,738 | py | Python | tests/test_remove.py | sanjaymsh/Fiona | 7be39538f7317efec3e60b8dc722af7e8fea6d52 | [
"BSD-3-Clause"
] | 1 | 2020-03-06T21:13:54.000Z | 2020-03-06T21:13:54.000Z | tests/test_remove.py | sanjaymsh/Fiona | 7be39538f7317efec3e60b8dc722af7e8fea6d52 | [
"BSD-3-Clause"
] | null | null | null | tests/test_remove.py | sanjaymsh/Fiona | 7be39538f7317efec3e60b8dc722af7e8fea6d52 | [
"BSD-3-Clause"
] | 1 | 2021-04-12T05:38:58.000Z | 2021-04-12T05:38:58.000Z | import logging
import sys
import os
import itertools
from .conftest import requires_gpkg
import pytest
import fiona
from fiona.errors import DatasetDeleteError
def create_sample_data(filename, driver, **extra_meta):
meta = {
'driver': driver,
'schema': {
'geometry': 'Point',
... | 31.677966 | 81 | 0.677368 | 0 | 0 | 0 | 0 | 1,763 | 0.471643 | 0 | 0 | 1,109 | 0.296683 |
0c90a406e4f9fdbea0679ef7fa814f9200555402 | 15,023 | py | Python | taylor_based_methods.py | PabloAMC/TFermion | ed313a7d9cae0c4ca232732bed046f56bc8594a2 | [
"Apache-2.0"
] | 4 | 2021-12-02T09:13:16.000Z | 2022-01-25T10:43:50.000Z | taylor_based_methods.py | PabloAMC/TFermion | ed313a7d9cae0c4ca232732bed046f56bc8594a2 | [
"Apache-2.0"
] | 3 | 2021-12-21T14:22:57.000Z | 2022-02-05T18:35:16.000Z | taylor_based_methods.py | PabloAMC/TFermion | ed313a7d9cae0c4ca232732bed046f56bc8594a2 | [
"Apache-2.0"
] | null | null | null | import math
import sympy
import numpy as np
from scipy.special import binom
import scipy
class Taylor_based_methods:
def __init__(self, tools):
self.tools = tools
# Taylorization (babbush2016exponential)
# Let us know calcula the cost of performing Phase Estimation.
# 1. We have already me... | 55.847584 | 387 | 0.628969 | 14,934 | 0.99401 | 0 | 0 | 0 | 0 | 0 | 0 | 5,727 | 0.38119 |
0c914b89127421ea137b1e5268f255c0188586da | 775 | py | Python | contoh_2.py | sumarouno/4x4-Matrix-Keypad-Library-for-CHIP | 42794c3460818714fccc1c5a967e151504ef2ade | [
"MIT"
] | null | null | null | contoh_2.py | sumarouno/4x4-Matrix-Keypad-Library-for-CHIP | 42794c3460818714fccc1c5a967e151504ef2ade | [
"MIT"
] | null | null | null | contoh_2.py | sumarouno/4x4-Matrix-Keypad-Library-for-CHIP | 42794c3460818714fccc1c5a967e151504ef2ade | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from time import sleep
from sys import exit
import keypad_4x4_lib_sumar
kp =keypad_4x4_lib_sumar.keypad()
# Setup variables
attempt = "0000"
passcode = "1912"
counter = 0
# Loop while waiting for a keypress
while True:
# Loop to get a pressed digit
digit = None
while digit == None:
digit = ... | 18.452381 | 43 | 0.658065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 291 | 0.375484 |
0c914d8fbc8a5b30dab1155628e15079383dc757 | 1,342 | py | Python | apps/images/migrations/0001_initial.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 48 | 2018-04-13T13:00:10.000Z | 2020-03-17T23:35:23.000Z | apps/images/migrations/0001_initial.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 77 | 2018-03-25T13:17:12.000Z | 2020-08-11T08:24:49.000Z | apps/images/migrations/0001_initial.py | coogger/coogger | 9e5e3ca172d8a14272948284a6822000b119119c | [
"MIT"
] | 35 | 2018-03-30T21:43:21.000Z | 2020-08-11T05:51:46.000Z | # Generated by Django 3.0.3 on 2020-02-28 13:21
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Image",
fields=[
(
... | 26.84 | 76 | 0.354694 | 1,220 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 125 | 0.093145 |
0c91e1acb55c07461c81aa43572f944b6b04b240 | 4,007 | py | Python | models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_facerec-resnet64_112_96_11G_1.3/code/get_aligned_face/api/detect_api.py | guochunhe/Vitis-AI | e86b6efae11f8703ee647e4a99004dc980b84989 | [
"Apache-2.0"
] | 1 | 2020-12-18T14:49:19.000Z | 2020-12-18T14:49:19.000Z | models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_facerec-resnet64_112_96_11G_1.3/code/get_aligned_face/api/detect_api.py | guochunhe/Vitis-AI | e86b6efae11f8703ee647e4a99004dc980b84989 | [
"Apache-2.0"
] | null | null | null | models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_facerec-resnet64_112_96_11G_1.3/code/get_aligned_face/api/detect_api.py | guochunhe/Vitis-AI | e86b6efae11f8703ee647e4a99004dc980b84989 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Xilinx 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 writing, ... | 32.577236 | 108 | 0.639631 | 2,517 | 0.628151 | 0 | 0 | 0 | 0 | 0 | 0 | 769 | 0.191914 |