hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
1716568b21a75c5ef33be813a52f86f03d0c0958
5,301
py
Python
wk/io/fsutils.py
Peiiii/wk
dcf948c1cb36c1eec9b2a554ea0296c6d3dbbdc4
[ "MIT" ]
null
null
null
wk/io/fsutils.py
Peiiii/wk
dcf948c1cb36c1eec9b2a554ea0296c6d3dbbdc4
[ "MIT" ]
null
null
null
wk/io/fsutils.py
Peiiii/wk
dcf948c1cb36c1eec9b2a554ea0296c6d3dbbdc4
[ "MIT" ]
null
null
null
import os,shutil,glob import inspect import time def is_empty_dir(path): assert os.path.exists(path) if not os.path.isdir(path): return False if len(os.listdir(path)): return False else: return True def _copy_dir(src,dst): assert os.path.exists(src) assert os.path.exist...
28.654054
87
0.577627
c05ad45b244322be9707b5a67bbaa775da1edd82
217
py
Python
setup.py
HARSHALKUMRE/mlops_main
edcf009c4e903dc57f2075857aa31775e6cce97b
[ "MIT" ]
null
null
null
setup.py
HARSHALKUMRE/mlops_main
edcf009c4e903dc57f2075857aa31775e6cce97b
[ "MIT" ]
null
null
null
setup.py
HARSHALKUMRE/mlops_main
edcf009c4e903dc57f2075857aa31775e6cce97b
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='its a project of wafer using mlops', author='hacktech', license='MIT', )
19.727273
53
0.663594
a94318f4f43201eb114e2e6d06e0c78e425d6cac
1,297
py
Python
instagram/images/migrations/0001_initial.py
LIMCHULWAN/instagram
7ab44decb20424a51f88424cad4d39eb8b2a5f4a
[ "MIT" ]
null
null
null
instagram/images/migrations/0001_initial.py
LIMCHULWAN/instagram
7ab44decb20424a51f88424cad4d39eb8b2a5f4a
[ "MIT" ]
12
2020-06-05T20:04:54.000Z
2022-02-26T11:17:43.000Z
instagram/images/migrations/0001_initial.py
LIMCHULWAN/instagram
7ab44decb20424a51f88424cad4d39eb8b2a5f4a
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-02-25 15:40 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField...
31.634146
114
0.525829
11ac56897d7188b78251010e9d7b0fe4922e2452
5,679
py
Python
tests/test_utils_reqser.py
jachang820/scrapy
eef1732374f21b03002dcb8fe48c60bc0bf774e1
[ "BSD-3-Clause" ]
2
2020-01-02T11:55:14.000Z
2020-04-01T09:38:46.000Z
tests/test_utils_reqser.py
vivek0079/scrapy
534de7395da3a53b5a2c89960db9ec5d8fdab60c
[ "BSD-3-Clause" ]
9
2019-07-05T21:20:18.000Z
2021-07-28T21:12:54.000Z
tests/test_utils_reqser.py
vivek0079/scrapy
534de7395da3a53b5a2c89960db9ec5d8fdab60c
[ "BSD-3-Clause" ]
2
2019-11-14T00:48:13.000Z
2021-04-22T10:40:12.000Z
# -*- coding: utf-8 -*- import unittest import sys import six from scrapy.http import Request, FormRequest from scrapy.spiders import Spider from scrapy.utils.reqser import request_to_dict, request_from_dict, _is_private_method, _mangle_private_name class RequestSerializationTest(unittest.TestCase): def setUp(...
36.403846
108
0.662793
0558ef46048bf09795476bb5f898658e00325309
1,064
py
Python
tests/infer/autoguide/test_mean_field_entropy.py
nipunbatra/pyro
d5b0545c4f992d435692080db6969314a2c32f05
[ "Apache-2.0" ]
4,959
2017-11-03T14:39:17.000Z
2019-02-04T16:14:30.000Z
tests/infer/autoguide/test_mean_field_entropy.py
nipunbatra/pyro
d5b0545c4f992d435692080db6969314a2c32f05
[ "Apache-2.0" ]
985
2017-11-03T14:27:56.000Z
2019-02-02T18:52:54.000Z
tests/infer/autoguide/test_mean_field_entropy.py
nipunbatra/pyro
d5b0545c4f992d435692080db6969314a2c32f05
[ "Apache-2.0" ]
564
2017-11-03T15:05:55.000Z
2019-01-31T14:02:29.000Z
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import pytest import scipy.special as sc import torch import pyro import pyro.distributions as dist from pyro.infer.autoguide.utils import mean_field_entropy from tests.common import assert_equal def mean_field_guide(batch_tenso...
27.282051
87
0.659774
b763576df52755a1531a92f0a3d4fe1bc1213d6a
4,296
py
Python
src/contacts/views/group.py
tehfink/django-contacts
b1c727f3edd550644423d84365602eea908d15a6
[ "BSD-3-Clause" ]
null
null
null
src/contacts/views/group.py
tehfink/django-contacts
b1c727f3edd550644423d84365602eea908d15a6
[ "BSD-3-Clause" ]
null
null
null
src/contacts/views/group.py
tehfink/django-contacts
b1c727f3edd550644423d84365602eea908d15a6
[ "BSD-3-Clause" ]
null
null
null
from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify from django.core.paginator import Paginator, InvalidPage, EmptyPage from django.http import Http404, HttpResponseForbidden, HttpResponseServerError, HttpResponseRedirect from django.shortcuts import render_to_response from d...
28.450331
101
0.662011
e7dbc9d96c405cf8062b33d0e532386767abe464
9,363
py
Python
tests/util/test_cli.py
sourabhyadav999/dffml
beda53caf483f4d010d97795f13527b4b573fa37
[ "MIT" ]
1
2020-02-07T07:33:15.000Z
2020-02-07T07:33:15.000Z
tests/util/test_cli.py
sourabhyadav999/dffml
beda53caf483f4d010d97795f13527b4b573fa37
[ "MIT" ]
null
null
null
tests/util/test_cli.py
sourabhyadav999/dffml
beda53caf483f4d010d97795f13527b4b573fa37
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (c) 2019 Intel Corporation import sys import json import asyncio import logging import unittest from unittest.mock import patch from dffml.repo import Repo from dffml.feature import Feature, Features from dffml.util.cli.arg import Arg, parse_unknown from dffml.util.cli.cmd i...
32.737762
79
0.560504
2351909e34d63dd9438b67f81d35063070a68653
840
py
Python
splunk_connect_for_snmp_poller/manager/variables.py
splunk/splunk-connect-for-snmp-poller
25e6029ee8dbe075b6c5fd5e1360115af7969b92
[ "Apache-2.0" ]
9
2021-03-18T23:25:27.000Z
2021-11-04T00:55:46.000Z
splunk_connect_for_snmp_poller/manager/variables.py
splunk/splunk-connect-for-snmp-poller
25e6029ee8dbe075b6c5fd5e1360115af7969b92
[ "Apache-2.0" ]
165
2021-03-12T17:55:38.000Z
2021-12-13T23:12:59.000Z
splunk_connect_for_snmp_poller/manager/variables.py
splunk/splunk-connect-for-snmp-poller
25e6029ee8dbe075b6c5fd5e1360115af7969b92
[ "Apache-2.0" ]
2
2021-08-31T06:23:46.000Z
2022-03-27T10:02:24.000Z
# Copyright 2021 Splunk 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, soft...
38.181818
74
0.788095
ac6f46b47dac26918fba25f804df1bdf72d73fac
2,222
py
Python
scs/jbc/index/PackageIndex.py
kestreltechnology/kt-semantic-code-search
3459e68b013bc0fd912072b052a1db6ef784f219
[ "MIT" ]
4
2019-09-30T10:06:34.000Z
2021-01-04T06:38:45.000Z
scs/jbc/index/PackageIndex.py
kestreltechnology/kt-semantic-code-search
3459e68b013bc0fd912072b052a1db6ef784f219
[ "MIT" ]
null
null
null
scs/jbc/index/PackageIndex.py
kestreltechnology/kt-semantic-code-search
3459e68b013bc0fd912072b052a1db6ef784f219
[ "MIT" ]
1
2021-09-16T02:25:30.000Z
2021-09-16T02:25:30.000Z
# ------------------------------------------------------------------------------ # Python API to access CodeHawk Java Analyzer analysis results # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2018 Kestrel Technology LL...
41.148148
81
0.660216
59a2a225ab5f84d36f3fd863679dbb384b20d16e
16,104
py
Python
dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/pandas/tests/tseries/test_holiday.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
18
2018-02-23T11:28:54.000Z
2021-09-23T08:19:54.000Z
dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/pandas/tests/tseries/test_holiday.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
2
2021-02-08T20:19:17.000Z
2021-04-30T20:32:52.000Z
dev/Gems/CloudGemMetric/v1/AWS/common-code/Lib/pandas/tests/tseries/test_holiday.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
import pytest from datetime import datetime import pandas.util.testing as tm from pandas import compat from pandas import DatetimeIndex from pandas.tseries.holiday import (USFederalHolidayCalendar, USMemorialDay, USThanksgivingDay, nearest_workday, ...
41.720207
79
0.518877
010d3768f48b452c99e0958c631420b6cc4a4c2e
13,617
py
Python
tests/services/components/test_external_pids_component.py
ppanero/invenio-rdm-records
5e47b915c3376fb5fd296519b13a314f01f61a3a
[ "MIT" ]
null
null
null
tests/services/components/test_external_pids_component.py
ppanero/invenio-rdm-records
5e47b915c3376fb5fd296519b13a314f01f61a3a
[ "MIT" ]
1
2020-10-28T16:32:43.000Z
2021-04-27T11:46:28.000Z
tests/services/components/test_external_pids_component.py
ppanero/invenio-rdm-records
5e47b915c3376fb5fd296519b13a314f01f61a3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Tests for the service ExternalPIDsComponent.""" from functools import partial import pytest from invenio_...
29.666667
78
0.690754
b6980be91994fb7768dbea3451b84d770d7def6e
3,415
py
Python
server/djangobackend/settings.py
semmaz/agfzb-CloudAppDevelopment_Capstone
c9424d945ee8c85e3b960900da79a6d854e4e95b
[ "Apache-2.0" ]
null
null
null
server/djangobackend/settings.py
semmaz/agfzb-CloudAppDevelopment_Capstone
c9424d945ee8c85e3b960900da79a6d854e4e95b
[ "Apache-2.0" ]
null
null
null
server/djangobackend/settings.py
semmaz/agfzb-CloudAppDevelopment_Capstone
c9424d945ee8c85e3b960900da79a6d854e4e95b
[ "Apache-2.0" ]
null
null
null
""" Django settings for djangobackend project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import ...
26.679688
105
0.701611
ad213f678e886dd4c5a54db2170e5e241e884112
2,012
py
Python
migrations/versions/20190629_16-22-57__add_github_summary_configuration_info.py
alysivji/github-adapter
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
55
2019-05-05T01:20:58.000Z
2022-01-10T18:03:05.000Z
migrations/versions/20190629_16-22-57__add_github_summary_configuration_info.py
alysivji/github-adapter
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
222
2019-05-03T16:31:26.000Z
2021-08-28T23:49:03.000Z
migrations/versions/20190629_16-22-57__add_github_summary_configuration_info.py
busy-beaver-dev/busy-beaver
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
19
2019-04-27T19:49:32.000Z
2020-06-30T19:52:09.000Z
"""add github summary configuration information table Revision ID: 655741e212e9 Revises: 9bd99c734716 Create Date: 2019-06-29 16:22:57.204498 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "655741e212e9" down_revision = "9bd99c734716" branch_labels = None depen...
33.533333
85
0.682406
30c8387473e9c0f7ebce48323f7e130b623c5f24
1,417
py
Python
setup.py
andreztz/pyskeleton
e49509b924b2961db6706fd3b3f7587b6d67c5f1
[ "MIT" ]
null
null
null
setup.py
andreztz/pyskeleton
e49509b924b2961db6706fd3b3f7587b6d67c5f1
[ "MIT" ]
null
null
null
setup.py
andreztz/pyskeleton
e49509b924b2961db6706fd3b3f7587b6d67c5f1
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import find_packages NAME = "" VERSION = "" DESCRIPTION = "" KEYWORDS = "" AUTHOR = "" AUTHOR_EMAIL = "" URL = "" LICENSE = "" CLASSIFIERS = [ "Development Status :: 1 - Planning", "Programming Language :: Python :: 3", ] COMMAND = "command" def readme(): with...
21.8
74
0.637968
c936de44fb438d0cbd3588d999d34cda005887a9
1,330
py
Python
scikit_weak/tests/feature_selection/test_geneticroughset.py
AndreaCampagner/skweak
7ad621bea1c21c0144e08710efd882a0f82085ef
[ "MIT" ]
1
2021-10-01T13:33:52.000Z
2021-10-01T13:33:52.000Z
scikit_weak/tests/feature_selection/test_geneticroughset.py
AndreaCampagner/skweak
7ad621bea1c21c0144e08710efd882a0f82085ef
[ "MIT" ]
null
null
null
scikit_weak/tests/feature_selection/test_geneticroughset.py
AndreaCampagner/skweak
7ad621bea1c21c0144e08710efd882a0f82085ef
[ "MIT" ]
null
null
null
import pytest import numpy as np from ...feature_selection import GeneticRoughSetSelector from ...data_representation import * from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier @pytest.fixture def dataset(): X, y = load_iris(return_X_y=True) clf = KNeighborsClassifier(n_...
34.102564
74
0.709023
3e33cb0f5cd8c2b2cebfeb3a6b333dba3a5907cd
220,363
py
Python
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
cado-security/content
81a6e2d0b9d5f63f83b0de72de4745f69ed7878c
[ "MIT" ]
1
2021-12-28T00:54:27.000Z
2021-12-28T00:54:27.000Z
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
cado-security/content
81a6e2d0b9d5f63f83b0de72de4745f69ed7878c
[ "MIT" ]
40
2022-03-21T10:53:01.000Z
2022-03-31T21:39:31.000Z
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
cado-security/content
81a6e2d0b9d5f63f83b0de72de4745f69ed7878c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import demistomock as demisto import copy import json import re import os import sys import requests from pytest import raises, mark import pytest import warnings from CommonServerPython import xml2json, json2xml, entryTypes, formats, tableToMarkdown, underscoreToCamelCase, \ flattenCell, d...
37.470328
1,067
0.576662
e84ad4f06eceed582b9f77975689ba0196aa6b4b
951
py
Python
SS_MTI/__init__.py
nienkebrinkman/SS_MTI
2632214f7df9caaa53d33432193ba0602470d21a
[ "BSD-3-Clause" ]
null
null
null
SS_MTI/__init__.py
nienkebrinkman/SS_MTI
2632214f7df9caaa53d33432193ba0602470d21a
[ "BSD-3-Clause" ]
null
null
null
SS_MTI/__init__.py
nienkebrinkman/SS_MTI
2632214f7df9caaa53d33432193ba0602470d21a
[ "BSD-3-Clause" ]
null
null
null
# from .GetData import GetData # from .Inversion import Inversion # from .PullData import PullData # from .PhaseTracer import PhaseTracer # from . import GreensFunctions # from . import Forward # from .PreProcess import PreProcess # Dit is de manier om de module zelf te skippen en alleen de class te pakken # from SS_M...
20.673913
76
0.688749
0cab6c32fa7ab337e6d631fa723e960cd59dfe41
12,135
py
Python
tests/core/util/test_streamable.py
Tad-Network/tad-blockchain
2e80d4197b05f167de67e80241176ffc6ac4ca69
[ "Apache-2.0" ]
13
2021-07-20T15:21:54.000Z
2022-02-09T04:32:56.000Z
tests/core/util/test_streamable.py
Tad-Network/tad-blockchain
2e80d4197b05f167de67e80241176ffc6ac4ca69
[ "Apache-2.0" ]
8
2021-07-21T17:22:59.000Z
2021-09-18T23:01:59.000Z
tests/core/util/test_streamable.py
Tad-Network/tad-blockchain
2e80d4197b05f167de67e80241176ffc6ac4ca69
[ "Apache-2.0" ]
1
2021-07-20T18:14:02.000Z
2021-07-20T18:14:02.000Z
import unittest from dataclasses import dataclass from typing import List, Optional, Tuple import io from clvm_tools import binutils from pytest import raises from tad.protocols.wallet_protocol import RespondRemovals from tad.types.blockchain_format.coin import Coin from tad.types.blockchain_format.program import Pro...
32.01847
117
0.606922
0071a19f3bbd73693f1e60e9e1a74f7d496bc54f
520
py
Python
output/models/nist_data/list_pkg/g_day/schema_instance/nistschema_sv_iv_list_g_day_min_length_5_xsd/nistschema_sv_iv_list_g_day_min_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/g_day/schema_instance/nistschema_sv_iv_list_g_day_min_length_5_xsd/nistschema_sv_iv_list_g_day_min_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/g_day/schema_instance/nistschema_sv_iv_list_g_day_min_length_5_xsd/nistschema_sv_iv_list_g_day_min_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List from xsdata.models.datatype import XmlPeriod __NAMESPACE__ = "NISTSchema-SV-IV-list-gDay-minLength-5-NS" @dataclass class NistschemaSvIvListGDayMinLength5: class Meta: name = "NISTSchema-SV-IV-list-gDay-minLength-5" namespace = "NIS...
24.761905
63
0.667308
584cb3d0b6b3d878bc3ab0fb693348473294ce20
1,072
py
Python
tests/dataset_tests/test_numpy_tuple_feature_indexer.py
delta2323/chainerchem
364dd2b26aec2d0b25d5e2b30a9510a9d44814af
[ "MIT" ]
null
null
null
tests/dataset_tests/test_numpy_tuple_feature_indexer.py
delta2323/chainerchem
364dd2b26aec2d0b25d5e2b30a9510a9d44814af
[ "MIT" ]
null
null
null
tests/dataset_tests/test_numpy_tuple_feature_indexer.py
delta2323/chainerchem
364dd2b26aec2d0b25d5e2b30a9510a9d44814af
[ "MIT" ]
null
null
null
import numpy import pytest from chainer_chemistry.dataset.indexers.numpy_tuple_dataset_feature_indexer import NumpyTupleDatasetFeatureIndexer # NOQA from chainer_chemistry.datasets.numpy_tuple_dataset import NumpyTupleDataset @pytest.fixture def data(): a = numpy.array([1, 2]) b = numpy.array([4, 5]) c...
27.487179
122
0.703358
ac9be441e593211a5abe186e8d8b1dfa25a57e61
656
py
Python
models/reid/data.py
honglongcai/MOTDT
20554aefa6f16d69813715f880f0b80b49e03984
[ "MIT" ]
2
2018-10-25T00:03:47.000Z
2018-12-11T01:57:03.000Z
models/reid/data.py
honglongcai/MOTDT
20554aefa6f16d69813715f880f0b80b49e03984
[ "MIT" ]
null
null
null
models/reid/data.py
honglongcai/MOTDT
20554aefa6f16d69813715f880f0b80b49e03984
[ "MIT" ]
null
null
null
import os import torch from torch.utils.data import Dataset from PIL import Image class Data(Dataset): """Dataset class, used when inputting images from a directory""" def __init__(self, data_dir, transform=None): photos = os.listdir(data_dir) self.data_dir = data_dir self.images = [ph...
28.521739
68
0.644817
61dc1769b90c66152a34c7de4111d3a75df45318
106,303
py
Python
jp.atcoder/abc044/abc044_b/17373711.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc044/abc044_b/17373711.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc044/abc044_b/17373711.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import itertools import math import string import sys from bisect import bisect_left as bi_l from bisect import bisect_right as bi_r from collections import Counter, defaultdict, deque from functools import lru_cache, reduce from heapq import heappop, heappush from operator import or_, xor sys.setrecursionl...
29.718479
1,217
0.367657
3251a590f9dfd38f91f48495493825b1ee762e97
4,937
py
Python
nova/api/ec2/apirequest.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
4
2015-04-13T14:52:41.000Z
2018-02-03T19:32:13.000Z
nova/api/ec2/apirequest.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/api/ec2/apirequest.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
3
2018-01-29T00:44:44.000Z
2020-07-24T01:19:20.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
34.524476
79
0.62305
ad75a71bddf976a80f7ddd708d0c89501549a91e
469
py
Python
pybgmm/prior/dirichlet.py
junlulocky/BGMM
9e3fb310a48733e66770059c8157d55e9d341529
[ "MIT" ]
59
2017-05-21T04:04:11.000Z
2020-11-25T00:29:17.000Z
pybgmm/prior/dirichlet.py
junlulocky/BGMM
9e3fb310a48733e66770059c8157d55e9d341529
[ "MIT" ]
null
null
null
pybgmm/prior/dirichlet.py
junlulocky/BGMM
9e3fb310a48733e66770059c8157d55e9d341529
[ "MIT" ]
21
2017-09-13T22:46:04.000Z
2019-05-05T20:07:52.000Z
""" Prior information for a Dirichlet distribution Author: Jun Lu Contact: jun.lu.locky@gmail.com Date: 2017 """ class Dirichlet(object): """A Symmetric Dichlet distribution prior.""" def __init__(self, alpha): """ :param alpha: Symmetric Dirichlet dist, i.e. Dirichlet(alpha, ..., alpha) ...
24.684211
81
0.646055
88dbc36156c64d49abe37f13a7dd2dce92e77130
255
py
Python
Spavanac/spav.py
rajitbanerjee/kattis
3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad
[ "CC0-1.0" ]
2
2021-04-13T12:56:30.000Z
2022-03-21T16:46:58.000Z
Spavanac/spav.py
rajitbanerjee/kattis
3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad
[ "CC0-1.0" ]
null
null
null
Spavanac/spav.py
rajitbanerjee/kattis
3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad
[ "CC0-1.0" ]
1
2021-11-14T14:06:46.000Z
2021-11-14T14:06:46.000Z
"""https://open.kattis.com/problems/spavanac""" H, M = list(map(int, input().split())) if H == 0: H = 24 # convert H and M to mins - 45 mins mins = H * 60 + M - 45 # convert them back to 24 hour notation H = mins // 60 M = mins % 60 print(H, M)
15.9375
47
0.584314
d7d55e6d7f624bf27a91caa045e1d942122831fa
1,141
py
Python
products/compute/helpers/python/provider_instance_template.py
edevil/magic-modules
201625075699974f8afd5047c200ee77c2bde6c5
[ "Apache-2.0" ]
null
null
null
products/compute/helpers/python/provider_instance_template.py
edevil/magic-modules
201625075699974f8afd5047c200ee77c2bde6c5
[ "Apache-2.0" ]
null
null
null
products/compute/helpers/python/provider_instance_template.py
edevil/magic-modules
201625075699974f8afd5047c200ee77c2bde6c5
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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 agreed to in writing, so...
40.75
101
0.728309
37b3861643a2fbf09c63f06296ab0050e4114cbb
7,250
py
Python
mypyc/irbuild/mapper.py
tgallant/mypy
97b3b90356893e2a9f6947ebe52b41cd54ab1cb7
[ "PSF-2.0" ]
1
2021-02-16T10:01:33.000Z
2021-02-16T10:01:33.000Z
mypyc/irbuild/mapper.py
tgallant/mypy
97b3b90356893e2a9f6947ebe52b41cd54ab1cb7
[ "PSF-2.0" ]
null
null
null
mypyc/irbuild/mapper.py
tgallant/mypy
97b3b90356893e2a9f6947ebe52b41cd54ab1cb7
[ "PSF-2.0" ]
null
null
null
"""Maintain a mapping from mypy concepts to IR/compiled concepts.""" from typing import Dict, Optional from mypy.nodes import FuncDef, TypeInfo, SymbolNode, ArgKind, ARG_STAR, ARG_STAR2 from mypy.types import ( Instance, Type, CallableType, LiteralType, TypedDictType, UnboundType, PartialType, UninhabitedType...
45.031056
95
0.631034
bf5c60efb9cbbf322cdb2dc5479da5c9b944db86
244
py
Python
exercises/ja/solution_03_14_02.py
matsurih/spacy-course
efe42531f8febd2562b11b14a79cf851073e1eec
[ "MIT" ]
null
null
null
exercises/ja/solution_03_14_02.py
matsurih/spacy-course
efe42531f8febd2562b11b14a79cf851073e1eec
[ "MIT" ]
null
null
null
exercises/ja/solution_03_14_02.py
matsurih/spacy-course
efe42531f8febd2562b11b14a79cf851073e1eec
[ "MIT" ]
1
2020-11-08T18:07:12.000Z
2020-11-08T18:07:12.000Z
import json import spacy nlp = spacy.load("ja_core_news_sm") with open("exercises/ja/tweets.json") as f: TEXTS = json.loads(f.read()) # テキストを処理し、固有表現を表示 docs = list(nlp.pipe(TEXTS)) entities = [doc.ents for doc in docs] print(*entities)
18.769231
43
0.713115
6386576825d016f2cfa7faf14294d5e1200d5bf4
1,074
py
Python
final_project/machinetranslation/translator.py
jeongahyi/xzceb-flask_eng_fr
cfb926c63ee8223f7820e3d6508f4a654d4690c4
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
jeongahyi/xzceb-flask_eng_fr
cfb926c63ee8223f7820e3d6508f4a654d4690c4
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
jeongahyi/xzceb-flask_eng_fr
cfb926c63ee8223f7820e3d6508f4a654d4690c4
[ "Apache-2.0" ]
null
null
null
""" translator module en-fr fr-en""" import json import os from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv load_dotenv() apikey = os.environ['apikey'] url = os.environ['url'] authenticator = IAMAuthenticator(apikey) language_tr...
28.263158
62
0.734637
936d4b809f02971667cabca9e3045baac0351593
3,304
py
Python
Autocoders/Python/src/fprime_ac/generators/DictStart.py
WaterBubbles/fprime
dfb1e72bfbe4f21c0014bf78d762fddb3b5c39a1
[ "Apache-2.0" ]
2
2021-02-23T06:56:03.000Z
2021-02-23T07:03:53.000Z
Autocoders/Python/src/fprime_ac/generators/DictStart.py
WaterBubbles/fprime
dfb1e72bfbe4f21c0014bf78d762fddb3b5c39a1
[ "Apache-2.0" ]
9
2021-02-21T07:27:44.000Z
2021-02-21T07:27:58.000Z
Autocoders/Python/src/fprime_ac/generators/DictStart.py
WaterBubbles/fprime
dfb1e72bfbe4f21c0014bf78d762fddb3b5c39a1
[ "Apache-2.0" ]
1
2021-02-23T17:10:44.000Z
2021-02-23T17:10:44.000Z
# =============================================================================== # NAME: DictStart # # DESCRIPTION: The DictStart class is the main entry point # for generation of end of file code. # # USAGE: Nominally the DictStart.__call__ is called by using the # instance name. The instan...
31.169811
104
0.605932
686cc145459498086de21d4d9d2f2e22e0179bac
13,646
py
Python
hikaru/generate.py
aantn/hikaru
47a1ddcba4dc9641f5914a424a61dd404b3fe7f2
[ "MIT" ]
1
2021-04-23T22:59:47.000Z
2021-04-23T22:59:47.000Z
hikaru/generate.py
aantn/hikaru
47a1ddcba4dc9641f5914a424a61dd404b3fe7f2
[ "MIT" ]
null
null
null
hikaru/generate.py
aantn/hikaru
47a1ddcba4dc9641f5914a424a61dd404b3fe7f2
[ "MIT" ]
null
null
null
# # Copyright (c) 2021 Incisive Technology Ltd # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
43.047319
90
0.685695
f29542fb20a153c169829b796029ce9857a10e37
633
py
Python
paddlex_restful/__init__.py
cheneyveron/PaddleX
86f73fc6a66b12c638f642524bfd1cf730e26c4b
[ "Apache-2.0" ]
8
2020-03-11T08:12:19.000Z
2020-03-18T08:33:56.000Z
paddlex_restful/__init__.py
cheneyveron/PaddleX
86f73fc6a66b12c638f642524bfd1cf730e26c4b
[ "Apache-2.0" ]
1
2020-03-15T13:05:43.000Z
2020-03-15T13:05:43.000Z
paddlex_restful/__init__.py
cheneyveron/PaddleX
86f73fc6a66b12c638f642524bfd1cf730e26c4b
[ "Apache-2.0" ]
2
2020-03-15T11:53:54.000Z
2020-03-24T07:27:09.000Z
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.5625
74
0.763033
10c803f3bf2b2d77d71c0031fa3dd5b0905d63df
2,682
py
Python
src/powerbidedicated/azext_powerbidedicated/vendored_sdks/powerbidedicated/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
src/powerbidedicated/azext_powerbidedicated/vendored_sdks/powerbidedicated/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
src/powerbidedicated/azext_powerbidedicated/vendored_sdks/powerbidedicated/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.441176
76
0.751305
fe366a7a280443f167286d921448290da9ea01b3
200
py
Python
problem/10000~19999/17224/17224.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/10000~19999/17224/17224.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/10000~19999/17224/17224.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
n,l,k=map(int,input().split()) oo=[] for i in range(n): x,y=map(int,input().split()) t=0 if l>=x: t=100 if l>=y: t+=40 if t>0: oo.append(t) oo.sort(reverse=True) print(sum(oo[:k]))
20
32
0.545
66f96713acd9d0783bddae9c24e7d0470ea1486b
458
py
Python
rpcv/api/schemas/cluster.py
chalupaul/rpcv
bb8bb8b8344dfede53a08ea64f462603e594a547
[ "MIT" ]
null
null
null
rpcv/api/schemas/cluster.py
chalupaul/rpcv
bb8bb8b8344dfede53a08ea64f462603e594a547
[ "MIT" ]
null
null
null
rpcv/api/schemas/cluster.py
chalupaul/rpcv
bb8bb8b8344dfede53a08ea64f462603e594a547
[ "MIT" ]
null
null
null
from enum import Enum from flask_rebar import RequestSchema from marshmallow import Schema, fields from marshmallow_enum import EnumField class ClusterStatus(Enum): CREATING = 1 ONLINE = 2 DEGRADED = 3 ERROR = 4 class CreateClusterSchema(RequestSchema): pass class ClusterSchema(Schema): u...
19.083333
44
0.731441
ad627f7ea966dc86e94ca1b39b51ced6ed7b29de
496
py
Python
plotly/validators/scattermapbox/stream/_maxpoints.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scattermapbox/stream/_maxpoints.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scattermapbox/stream/_maxpoints.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='maxpoints', parent_name='scattermapbox.stream', **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=pl...
23.619048
71
0.578629
e9f77b094168921a2a56db7664187ca8cb4ae6e5
18,426
py
Python
torch_geometric_signed_directed/utils/general/node_split.py
SherylHYX/pytorch_geometric_signed_directed
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
[ "MIT" ]
38
2022-02-09T06:27:14.000Z
2022-03-29T09:44:14.000Z
torch_geometric_signed_directed/utils/general/node_split.py
SherylHYX/pytorch_geometric_signed_directed
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
[ "MIT" ]
17
2022-02-09T23:13:35.000Z
2022-02-21T03:14:36.000Z
torch_geometric_signed_directed/utils/general/node_split.py
SherylHYX/pytorch_geometric_signed_directed
c2dbede0171424cdf7bae7c45c6c1e19a862bcfd
[ "MIT" ]
6
2022-02-09T04:49:17.000Z
2022-03-29T09:44:17.000Z
from typing import Optional, Union, List, Tuple import torch import numpy as np from torch_geometric.data import Data def node_class_split(data: Data, train_size: Union[int, float] = None, val_size: Union[int, float] = None, test_size: Union[int, float] = None, seed_size: Un...
59.824675
288
0.66976
0935756afeb3899346a737fd1ae577b33eebbefe
18,025
py
Python
qiskit_nature/converters/second_quantization/qubit_converter.py
renier/qiskit-nature
a06f378a219d650d96e16db96d763ea4aec9cfc2
[ "Apache-2.0" ]
null
null
null
qiskit_nature/converters/second_quantization/qubit_converter.py
renier/qiskit-nature
a06f378a219d650d96e16db96d763ea4aec9cfc2
[ "Apache-2.0" ]
1
2021-11-11T06:33:41.000Z
2021-11-11T06:33:41.000Z
qiskit_nature/converters/second_quantization/qubit_converter.py
renier/qiskit-nature
a06f378a219d650d96e16db96d763ea4aec9cfc2
[ "Apache-2.0" ]
1
2021-10-05T20:58:04.000Z
2021-10-05T20:58:04.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
45.175439
100
0.652483
d36e65e9b1e7b5f608ffe66fb2c50bb65a41ba43
4,016
py
Python
src/server/firestore_items.py
springmaple/yotimes_sql_bridge
0d1d17c63d867bb2c2ad286851343c1884fdddf8
[ "Apache-2.0" ]
null
null
null
src/server/firestore_items.py
springmaple/yotimes_sql_bridge
0d1d17c63d867bb2c2ad286851343c1884fdddf8
[ "Apache-2.0" ]
4
2020-06-02T14:29:17.000Z
2021-05-16T09:13:52.000Z
src/server/firestore_items.py
springmaple/yotimes_sql_bridge
0d1d17c63d867bb2c2ad286851343c1884fdddf8
[ "Apache-2.0" ]
null
null
null
import json import os from constants import TMP_DIR from firestore import get_firestore_instance class FirestoreItems: def __init__(self, company_code): self.company_code = company_code self.fs = get_firestore_instance() self.cache_items = CacheItems(self.company_code, self.fs)...
33.747899
92
0.598855
67db06f5af341116466e33114faf570fead8f21c
2,596
py
Python
model.py
seancondon99/content-based-music-recommender
371282a06f0323e068dee0540d6b98242602c14a
[ "MIT" ]
null
null
null
model.py
seancondon99/content-based-music-recommender
371282a06f0323e068dee0540d6b98242602c14a
[ "MIT" ]
null
null
null
model.py
seancondon99/content-based-music-recommender
371282a06f0323e068dee0540d6b98242602c14a
[ "MIT" ]
1
2021-09-03T20:36:58.000Z
2021-09-03T20:36:58.000Z
import torch import torch.nn as nn import torch.nn.functional as F class Audio_CNN(nn.Module): ''' The CNN model we will use to map song content to likeability score. More or less a PyTorch implementation of a similar architecture found here: https://benanne.github.io/2014/08/05/spotify-cnns.html ...
31.658537
113
0.622496
cba05bca3184e148d2ad13eac5ba912ab4f30477
2,504
py
Python
speechdb/utils.py
YuanGongND/Speech_Corpus_Frontend
b8335ddc051d0b383a9a6dfd6d0b2f39d1da8cf5
[ "MIT" ]
1
2018-05-09T15:36:43.000Z
2018-05-09T15:36:43.000Z
speechdb/utils.py
YuanGongND/Speech_DB_Engine
b8335ddc051d0b383a9a6dfd6d0b2f39d1da8cf5
[ "MIT" ]
null
null
null
speechdb/utils.py
YuanGongND/Speech_DB_Engine
b8335ddc051d0b383a9a6dfd6d0b2f39d1da8cf5
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import os import math import seaborn as sns import random import numpy as np import tensorflow as tf from keras.utils import np_utils from imblearn.under_sampling import NearMiss, AllKNN, RandomUnderSampler from imblearn.over_sampling import ADASYN, SMOTE, RandomOverSampler from sklearn....
35.267606
91
0.66254
886dbba6f0986d287f23f5f7c4cd2581ff20ddd0
9,030
py
Python
python/paddle/fluid/tests/unittests/dist_fleet_ctr.py
pyqt1/MyPaddle
72ef733ad58b958c519b9db9a44e8716a82401d9
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/dist_fleet_ctr.py
pyqt1/MyPaddle
72ef733ad58b958c519b9db9a44e8716a82401d9
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/dist_fleet_ctr.py
pyqt1/MyPaddle
72ef733ad58b958c519b9db9a44e8716a82401d9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
33.947368
99
0.58361
ce28efb279c6f97428bde66dce3b91f9d1209b19
410
py
Python
wp_gdal/__init__.py
gespinoza/waterpix
bd71704e30721759d4ea396b5cda86535863e98e
[ "Apache-2.0" ]
5
2017-11-16T10:01:22.000Z
2021-04-27T01:37:39.000Z
wp_gdal/__init__.py
gespinoza/waterpix
bd71704e30721759d4ea396b5cda86535863e98e
[ "Apache-2.0" ]
null
null
null
wp_gdal/__init__.py
gespinoza/waterpix
bd71704e30721759d4ea396b5cda86535863e98e
[ "Apache-2.0" ]
4
2017-05-17T12:16:00.000Z
2018-10-30T03:48:50.000Z
# -*- coding: utf-8 -*- """ Authors: Gonzalo E. Espinoza-Davalos IHE Delft 2017 Contact: g.espinoza@un-ihe.org Repository: https://github.com/gespinoza/waterpix Module: waterpix """ from .create_input_nc import create_input_nc from ..main import run from .output_nc_to_tiffs import output_nc_to_tiff...
22.777778
59
0.707317
1f447e7a83c4ffe42d6ab802304dd8b815bc9d67
3,810
py
Python
Examples/IPv4 Address/add_static_ip4_address/add_static_ip4_address_form.py
ryutamura/gateway-workflows
ed3f96a6643da9e57b0144a704276fc6a89e8a24
[ "Apache-2.0" ]
null
null
null
Examples/IPv4 Address/add_static_ip4_address/add_static_ip4_address_form.py
ryutamura/gateway-workflows
ed3f96a6643da9e57b0144a704276fc6a89e8a24
[ "Apache-2.0" ]
null
null
null
Examples/IPv4 Address/add_static_ip4_address/add_static_ip4_address_form.py
ryutamura/gateway-workflows
ed3f96a6643da9e57b0144a704276fc6a89e8a24
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 BlueCat Networks (USA) Inc. and its affiliates # # 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 applicabl...
32.844828
96
0.681365
b2bb35e39031765c64b870374bd7430799330c80
644
py
Python
setup.py
najeeb-kazmi/rainymotion
39f55f3ea28f712effeb971cb5e52df1125afcd7
[ "MIT" ]
126
2018-07-03T14:18:00.000Z
2022-03-07T12:59:10.000Z
setup.py
tang662019/rainymotion
39f55f3ea28f712effeb971cb5e52df1125afcd7
[ "MIT" ]
15
2018-08-18T04:52:31.000Z
2022-01-07T05:46:24.000Z
setup.py
tang662019/rainymotion
39f55f3ea28f712effeb971cb5e52df1125afcd7
[ "MIT" ]
44
2018-10-02T10:00:10.000Z
2022-03-30T17:37:16.000Z
from setuptools import setup import rainymotion setup( name="rainymotion", version="0.1", author="Georgy Ayzel", author_email="ayzel@uni-potsdam.de, ayzelgv@gmail.com", description=("Python library for radar-based precipitation nowcasting using optical flow techniques"), url="https//www.github....
33.894737
106
0.686335
6d85ea0cf891c77ed04347f017c3e259c7d284fd
1,386
py
Python
src/phoenics/RandomSampler/uniform.py
taotao720/experiment_planners
811e331d4a5cff39882ada32d5f068d858000276
[ "Apache-2.0" ]
5
2019-11-26T02:23:38.000Z
2020-07-20T15:17:46.000Z
src/phoenics/RandomSampler/uniform.py
taotao720/experiment_planners
811e331d4a5cff39882ada32d5f068d858000276
[ "Apache-2.0" ]
4
2021-11-11T13:28:08.000Z
2022-01-17T16:32:58.000Z
src/phoenics/RandomSampler/uniform.py
taotao720/experiment_planners
811e331d4a5cff39882ada32d5f068d858000276
[ "Apache-2.0" ]
2
2019-11-25T17:46:07.000Z
2020-06-28T23:20:32.000Z
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License...
32.232558
82
0.63925
c6bb8af2e8f2c00b9ff7761e361db7dcc3fe0612
207
py
Python
trackme/apps/authentication/schema/types/auth_types.py
j4l13n/trackMe
aab64060dfed7147a4604b80fe861f990d95a161
[ "MIT" ]
null
null
null
trackme/apps/authentication/schema/types/auth_types.py
j4l13n/trackMe
aab64060dfed7147a4604b80fe861f990d95a161
[ "MIT" ]
7
2020-08-10T08:20:20.000Z
2020-08-18T07:58:22.000Z
trackme/apps/authentication/schema/types/auth_types.py
j4l13n/trackMe
aab64060dfed7147a4604b80fe861f990d95a161
[ "MIT" ]
null
null
null
import graphene from graphene_django.types import DjangoObjectType from ...models import User class UserType(DjangoObjectType): class Meta: model = User exclude_fields = ['password']
17.25
50
0.719807
bebd0f950bba6d94e3ad860945917748d4e3d477
3,780
py
Python
neuronfinder.py
eds-uga/provectus-project4
6dc132b100c25708183a16ce6e1e76d4666fa302
[ "MIT" ]
null
null
null
neuronfinder.py
eds-uga/provectus-project4
6dc132b100c25708183a16ce6e1e76d4666fa302
[ "MIT" ]
null
null
null
neuronfinder.py
eds-uga/provectus-project4
6dc132b100c25708183a16ce6e1e76d4666fa302
[ "MIT" ]
null
null
null
import thunder as td from pyspark import SparkContext from registration import CrossCorr import json from extraction import NMF from scipy.ndimage.interpolation import shift from scipy.ndimage.filters import gaussian_filter from pyspark import SparkConf ################################################### # Code for cr...
50.4
125
0.47619
1e0f0db80c19a65cc3cec60188a3ae19e3edf5e9
10,751
py
Python
test/functional/rawtransactions.py
RIVXcoin/RIVXcoin-Core
08ef27d84b0ad2355fa7f16a11229d8d3a36eded
[ "MIT" ]
2
2019-02-09T03:03:11.000Z
2019-04-14T14:48:48.000Z
test/functional/rawtransactions.py
RIVXcoin/RIVXcoin-Core
08ef27d84b0ad2355fa7f16a11229d8d3a36eded
[ "MIT" ]
null
null
null
test/functional/rawtransactions.py
RIVXcoin/RIVXcoin-Core
08ef27d84b0ad2355fa7f16a11229d8d3a36eded
[ "MIT" ]
2
2019-04-01T21:50:13.000Z
2019-11-25T05:10:01.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the rawtranscation RPCs. Test the following RPCs: - createrawtransaction - signrawtransacti...
47.782222
147
0.65287
f407c8a29e204f7c7822d42af6c1c09f98809827
2,654
py
Python
src/OFS/Folder.py
hitotsunorb1/Zope
6beac6385e1a302903889561385013874ef94cb1
[ "ZPL-2.1" ]
null
null
null
src/OFS/Folder.py
hitotsunorb1/Zope
6beac6385e1a302903889561385013874ef94cb1
[ "ZPL-2.1" ]
null
null
null
src/OFS/Folder.py
hitotsunorb1/Zope
6beac6385e1a302903889561385013874ef94cb1
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
26.019608
78
0.652977
7bd5d1020c3c7db8cbb57786851f638b67f26aa2
6,278
py
Python
lib/python3.6/site-packages/django/core/management/commands/runserver.py
Ao99/try-django
645d965c25752e6d0ca1f400c5ee1b719f564802
[ "MIT" ]
null
null
null
lib/python3.6/site-packages/django/core/management/commands/runserver.py
Ao99/try-django
645d965c25752e6d0ca1f400c5ee1b719f564802
[ "MIT" ]
null
null
null
lib/python3.6/site-packages/django/core/management/commands/runserver.py
Ao99/try-django
645d965c25752e6d0ca1f400c5ee1b719f564802
[ "MIT" ]
null
null
null
import errno import os import re import socket import sys from datetime import datetime from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django.core.servers.basehttp import ( WSGIServer, get_internal_wsgi_application, run, ) from django.utils import autoreload...
38.753086
88
0.588723
8c19aada24aa9bb2bed5f9acde2c1ccbd84bc66f
786
py
Python
SRC/pyecalc-py2.py
thebakokid-does-code/CalculatorPy
68d1830b4e6d3f7c6cafe4e402d9c3604d3a7da9
[ "MIT" ]
null
null
null
SRC/pyecalc-py2.py
thebakokid-does-code/CalculatorPy
68d1830b4e6d3f7c6cafe4e402d9c3604d3a7da9
[ "MIT" ]
null
null
null
SRC/pyecalc-py2.py
thebakokid-does-code/CalculatorPy
68d1830b4e6d3f7c6cafe4e402d9c3604d3a7da9
[ "MIT" ]
null
null
null
from time import * print("|===============================================================|") print("| WELCOME TO LUCAS's PYie CALCULATOR! |") print("|===============================================================|") print(" ...
31.44
129
0.454198
ad16ecbee09e627d10c50a11d19b2e4e62e3775b
21,426
py
Python
modeler.py
prmelehan/Swifty-ML
32287d0752ba9933f04ef5cd5247b663c62a70ef
[ "MIT" ]
7
2018-10-24T16:16:00.000Z
2020-07-31T17:37:25.000Z
modeler.py
prmelehan/Swifty-ML
32287d0752ba9933f04ef5cd5247b663c62a70ef
[ "MIT" ]
1
2018-08-13T16:43:54.000Z
2018-08-13T16:43:54.000Z
modeler.py
prmelehan/Swifty-ML
32287d0752ba9933f04ef5cd5247b663c62a70ef
[ "MIT" ]
3
2019-08-27T12:10:34.000Z
2021-04-19T06:58:08.000Z
# credit https://github.com/DeepLearningSandbox/DeepLearningSandbox/blob/master/transfer_learning/fine-tune.py # importing our dependencies from keras import applications from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array from keras import optimizers from keras.models import Sequential, ...
42.511905
170
0.654392
b0271c78739b3cbd5af770c4fb5b90324b6cf3bb
3,264
py
Python
pyfilemail/__init__.py
apetrynet/filemail
ffb65b9354a41529f095d147a58da5f7cd223bb5
[ "MIT" ]
4
2016-07-28T08:27:15.000Z
2020-07-02T16:39:08.000Z
pyfilemail/__init__.py
shaobin2010/pyfilemail
ffb65b9354a41529f095d147a58da5f7cd223bb5
[ "MIT" ]
5
2016-05-15T22:26:28.000Z
2020-09-11T21:48:32.000Z
pyfilemail/__init__.py
apetrynet/filemail
ffb65b9354a41529f095d147a58da5f7cd223bb5
[ "MIT" ]
2
2021-08-02T09:58:17.000Z
2021-09-28T21:41:53.000Z
# -*- coding: utf-8 -*- __title__ = 'pyfilemail' __version__ = '0.5.1' __author__ = 'Daniel Flehner Heen' __license__ = 'MIT' __copyright__ = 'Copyright 2016 Daniel Flehner Heen' import os import logging import json from functools import wraps from netrc import netrc, NetrcParseError # Check for .netrc file try: ...
22.356164
79
0.68413
794105540e33b7369b987008ead7504c528a23d8
145
py
Python
Task1/chapter50.py
shkhaider2015/AI_Lab_Task
642a0d5e30515dac6972da194741b829cdc63f30
[ "Unlicense" ]
null
null
null
Task1/chapter50.py
shkhaider2015/AI_Lab_Task
642a0d5e30515dac6972da194741b829cdc63f30
[ "Unlicense" ]
null
null
null
Task1/chapter50.py
shkhaider2015/AI_Lab_Task
642a0d5e30515dac6972da194741b829cdc63f30
[ "Unlicense" ]
null
null
null
def fun(): def extra(): print("Hello ") def extra1(): print("Shakeel") fun1 = extra() fun2 = extra1() fun()
14.5
24
0.462069
f2fc723c87531278a02a9c61850dd3e46a153330
11,358
py
Python
reproductions/algorithms/atari/rainbow/rainbow_reproduction.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
75
2021-06-14T02:35:19.000Z
2022-03-23T04:30:24.000Z
reproductions/algorithms/atari/rainbow/rainbow_reproduction.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
2
2021-12-17T08:46:54.000Z
2022-03-15T02:04:53.000Z
reproductions/algorithms/atari/rainbow/rainbow_reproduction.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
3
2021-06-15T13:32:57.000Z
2022-03-25T16:53:14.000Z
# Copyright 2021 Sony Group 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 ...
42.223048
111
0.658567
80866b0215b4a09df5731720fe4b6b70fefebfd4
783
py
Python
var/spack/repos/builtin/packages/py-pysocks/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-pysocks/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-pysocks/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPysocks(PythonPackage): """A Python SOCKS client module.""" homepage = "https://git...
37.285714
95
0.748404
5bd36d27ce9c27ad5fbf28ff76d3d41685b6cbe7
923
py
Python
ciphers/testcipher.py
hadipourh/solvatore
ed96778295d07fb92d5587215458cb8a29150296
[ "MIT" ]
19
2018-07-18T11:57:42.000Z
2021-12-23T15:01:13.000Z
ciphers/testcipher.py
hadipourh/solvatore
ed96778295d07fb92d5587215458cb8a29150296
[ "MIT" ]
5
2018-07-24T11:02:44.000Z
2020-02-07T06:29:45.000Z
ciphers/testcipher.py
hadipourh/solvatore
ed96778295d07fb92d5587215458cb8a29150296
[ "MIT" ]
8
2018-08-23T06:48:25.000Z
2021-05-10T01:56:32.000Z
from cipher_description import CipherDescription def generate_test_version(wordsize): # State # 0 4 8 12 # 1 5 9 13 # 2 6 10 14 # 3 7 11 15 test = CipherDescription(16*wordsize) midori_sbox = [0xC, 0xA, 0xD, 0x3, 0xE, 0xB, 0xF, 0x7, 0x8, 0x9, 0x1, 0x5, 0x0, 0x2, 0...
23.075
68
0.510293
89789646a896cf080e58db5c54093735c5144b58
1,879
py
Python
setup.py
mwcraig/reducer
d22ea16c4c734a2cbe49caabad37d77417b9a1d2
[ "BSD-3-Clause" ]
23
2015-04-24T08:14:10.000Z
2020-10-07T23:19:20.000Z
setup.py
mwcraig/reducer
d22ea16c4c734a2cbe49caabad37d77417b9a1d2
[ "BSD-3-Clause" ]
91
2015-01-26T21:22:25.000Z
2018-03-26T02:39:18.000Z
setup.py
mwcraig/reducer
d22ea16c4c734a2cbe49caabad37d77417b9a1d2
[ "BSD-3-Clause" ]
11
2015-04-24T08:15:16.000Z
2021-05-26T20:23:57.000Z
from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand import sys import versioneer class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): ...
30.306452
73
0.616285
5ccf9a020a5b54c39e489f2d45ba1f1ea545ac57
1,453
py
Python
test/mobile/test_upgrader_codegen.py
stungkit/pytorch
0f05e398705bf15406bce79f7ee57d3935ad2abd
[ "Intel" ]
2
2020-03-13T06:57:49.000Z
2020-05-17T04:18:14.000Z
test/mobile/test_upgrader_codegen.py
stungkit/pytorch
0f05e398705bf15406bce79f7ee57d3935ad2abd
[ "Intel" ]
1
2022-01-10T18:39:28.000Z
2022-01-10T19:15:57.000Z
test/mobile/test_upgrader_codegen.py
stungkit/pytorch
0f05e398705bf15406bce79f7ee57d3935ad2abd
[ "Intel" ]
1
2022-03-26T14:42:50.000Z
2022-03-26T14:42:50.000Z
# Owner(s): ["oncall: mobile"] from torch.testing._internal.common_utils import TestCase, run_tests from torchgen.operator_versions.gen_mobile_upgraders import ( sort_upgrader, write_cpp, ) from pathlib import Path import tempfile import os from torch.jit.generate_bytecode import generate_upgraders_bytecode ...
41.514286
115
0.717825
719985034a697f834816231383fa089811442be5
62
py
Python
todo/filescanner.py
jiahwa/pycookbook
bc2e7b5a2ce664079bde2c0e6b69cf1270daf127
[ "MIT" ]
2
2021-04-27T16:27:32.000Z
2021-07-17T06:48:47.000Z
todo/filescanner.py
jiahwa/pycookbook
bc2e7b5a2ce664079bde2c0e6b69cf1270daf127
[ "MIT" ]
null
null
null
todo/filescanner.py
jiahwa/pycookbook
bc2e7b5a2ce664079bde2c0e6b69cf1270daf127
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Scan directory and files in a folder
20.666667
38
0.741935
bdec476673b89fac998bc88591dbfab170701813
2,421
py
Python
tokeneth/test/test_sanity_check.py
CandyShoppers/token-ethereum-service
cec891720d6e16c5be963774f4d4e0b295750733
[ "MIT" ]
null
null
null
tokeneth/test/test_sanity_check.py
CandyShoppers/token-ethereum-service
cec891720d6e16c5be963774f4d4e0b295750733
[ "MIT" ]
1
2021-04-21T12:31:20.000Z
2021-04-21T12:31:20.000Z
tokeneth/test/test_sanity_check.py
CandyShoppers/token-ethereum-service
cec891720d6e16c5be963774f4d4e0b295750733
[ "MIT" ]
null
null
null
import random from tornado.testing import gen_test from tokenservices.test.database import requires_database from tokenservices.test.redis import requires_redis from tokenservices.test.ethereum.parity import requires_parity from tokenservices.test.ethereum.faucet import FaucetMixin from datetime import datetime, timed...
44.833333
143
0.73069
660802c76a8877c955503ce64b6c009e5fcaa81e
1,006
py
Python
ARC091C/test_pasted_from_page.py
staguchi0703/prob_boot_camp_medium
d6f31b3e50230877efb2ebfef40f90ef6468bfc7
[ "MIT" ]
null
null
null
ARC091C/test_pasted_from_page.py
staguchi0703/prob_boot_camp_medium
d6f31b3e50230877efb2ebfef40f90ef6468bfc7
[ "MIT" ]
null
null
null
ARC091C/test_pasted_from_page.py
staguchi0703/prob_boot_camp_medium
d6f31b3e50230877efb2ebfef40f90ef6468bfc7
[ "MIT" ]
null
null
null
# from resolve import resolve #################################### #################################### # 以下にプラグインの内容をペーストする # import sys from io import StringIO import unittest class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdout...
27.189189
59
0.513917
3a726f06d99655348b513c407c091672252f7d69
3,679
py
Python
sentiment_analysis/src/sentiment.py
Sapphirine/Reddit-Behavioral-Mapping
e769b8d9623d08a47bb2624c630a1936ab569d6a
[ "Apache-2.0" ]
1
2016-06-10T17:35:06.000Z
2016-06-10T17:35:06.000Z
sentiment_analysis/src/sentiment.py
Sapphirine/Reddit-Behavioral-Mapping
e769b8d9623d08a47bb2624c630a1936ab569d6a
[ "Apache-2.0" ]
null
null
null
sentiment_analysis/src/sentiment.py
Sapphirine/Reddit-Behavioral-Mapping
e769b8d9623d08a47bb2624c630a1936ab569d6a
[ "Apache-2.0" ]
null
null
null
''' Can be used for a variety of things. Sentiment or meaning, as a form of opinion mining Pos or neg as sentiment analysis ''' import nltk import random try: import cPickle as pickle except: import pickle from nltk.classify import ClassifierI from scipy.stats import mode from nltk.tokenize import word_tokenize...
33.752294
155
0.731449
fc9c0ef2f25f13bde012622eefaa9f80bdb31c38
1,234
py
Python
gnome/assignee/assignee_comp.py
imlegend19/MDSN-DevRank
bb1b71f72d2fb97044a62e8e0152dadb88de6411
[ "MIT" ]
null
null
null
gnome/assignee/assignee_comp.py
imlegend19/MDSN-DevRank
bb1b71f72d2fb97044a62e8e0152dadb88de6411
[ "MIT" ]
null
null
null
gnome/assignee/assignee_comp.py
imlegend19/MDSN-DevRank
bb1b71f72d2fb97044a62e8e0152dadb88de6411
[ "MIT" ]
null
null
null
import pickle from local_settings_gnome import db with db: cur = db.cursor() with open("assignee_who.txt", 'rb') as fp: assignee_who = pickle.load(fp) cur.execute("SELECT DISTINCT assigned_to FROM test_bug_fixed_closed") assignees = [] for i in cur.fetchall(): assignees.append(i...
26.826087
91
0.640194
a9fa9411813fae9b5e0e19cf3ec1c9d63bd76583
421
py
Python
venv/Scripts/pip3.7-script.py
CarlosEduardoAS/KhanAcademy
0b5947fb8fb51bebdd410a617f7161ea8252a4e5
[ "MIT" ]
null
null
null
venv/Scripts/pip3.7-script.py
CarlosEduardoAS/KhanAcademy
0b5947fb8fb51bebdd410a617f7161ea8252a4e5
[ "MIT" ]
null
null
null
venv/Scripts/pip3.7-script.py
CarlosEduardoAS/KhanAcademy
0b5947fb8fb51bebdd410a617f7161ea8252a4e5
[ "MIT" ]
null
null
null
#!C:\Users\caear\PycharmProjects\KhanAcademy\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys...
32.384615
70
0.672209
f09ed96685708b1d9c11762dca82657c61410fcc
5,306
py
Python
web/addons/marketing_campaign/report/campaign_analysis.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/addons/marketing_campaign/report/campaign_analysis.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/addons/marketing_campaign/report/campaign_analysis.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
51.514563
102
0.544289
2e573b34e8ea1d7f6bc652d5b02a9052500b3cc4
69,595
py
Python
sdk/python/pulumi_azure_native/keyvault/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/keyvault/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/keyvault/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
41.499702
569
0.657662
06c913d25bae4cb39dde2b49b9687101f7b52a50
2,309
py
Python
tests/test_component.py
gvx/generate-html
b5f625af4992ecff3178cc43c69dc6eac6304cd1
[ "Apache-2.0", "MIT" ]
1
2021-11-06T20:47:11.000Z
2021-11-06T20:47:11.000Z
tests/test_component.py
gvx/generate-html
b5f625af4992ecff3178cc43c69dc6eac6304cd1
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_component.py
gvx/generate-html
b5f625af4992ecff3178cc43c69dc6eac6304cd1
[ "Apache-2.0", "MIT" ]
null
null
null
import pytest from typing import Iterator, Iterable from generate_html import component, contents, fragment, render_html, tag from generate_html.components import InvalidHTML @component def double_component() -> Iterator: yield contents(1) yield '@' yield contents(2) @fragment def use_double_component(...
20.990909
105
0.673452
43d93817420151d6272455f7b1e9fc08ddfb0aeb
2,002
py
Python
examples/pipeline.py
jgoldford/ASR
10897401faa5e4dcdf03cc18f8b1b826b5b4a066
[ "MIT" ]
null
null
null
examples/pipeline.py
jgoldford/ASR
10897401faa5e4dcdf03cc18f8b1b826b5b4a066
[ "MIT" ]
null
null
null
examples/pipeline.py
jgoldford/ASR
10897401faa5e4dcdf03cc18f8b1b826b5b4a066
[ "MIT" ]
null
null
null
# PIPELINE For the construction for ancesteral sequences based on the tutorial provided by Rubin Studer: # https://evosite3d.blogspot.com/2014/09/tutorial-on-ancestral-sequence.html # Dependence all on path and aliased () # mafft - multiple sequence alignment # phyml - large tree building using maximum likelihood # c...
31.777778
115
0.728771
791f323fa50a765c68c95c959196058344bbd274
3,947
py
Python
google-cloud-sdk/lib/surface/compute/instances/move.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/instances/move.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/instances/move.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2015 Google 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 applicable law or ag...
36.88785
115
0.71168
62e6f0bbce5d6244de25bedfbccac6434372bf33
2,878
py
Python
examples/mass_spring_3d.py
isdanni/taichi
07269c9690dc3c72ab9d63b0349dfa9ebb70166d
[ "MIT" ]
null
null
null
examples/mass_spring_3d.py
isdanni/taichi
07269c9690dc3c72ab9d63b0349dfa9ebb70166d
[ "MIT" ]
null
null
null
examples/mass_spring_3d.py
isdanni/taichi
07269c9690dc3c72ab9d63b0349dfa9ebb70166d
[ "MIT" ]
null
null
null
import taichi as ti try: import taichi_glsl as tl import taichi_three as t3 except ImportError: print('This example needs the extension library Taichi THREE to work.' 'Please run `pip install --user taichi_three` to install it.') import numpy as np import math ti.init(ti.gpu) ### Parameters N =...
23.209677
78
0.537526
d56a2d016db1e735fcb4457652a9bcda33b39680
17,673
py
Python
data.py
sahngmin/IMK_Keyboard
22375ed5798ec43c9734c8b9d4fe374b8db58f48
[ "MIT" ]
null
null
null
data.py
sahngmin/IMK_Keyboard
22375ed5798ec43c9734c8b9d4fe374b8db58f48
[ "MIT" ]
null
null
null
data.py
sahngmin/IMK_Keyboard
22375ed5798ec43c9734c8b9d4fe374b8db58f48
[ "MIT" ]
null
null
null
import torch from torch.utils.data import Dataset, DataLoader from torch.utils.data import IterableDataset import pandas as pd import numpy as np import random from random import randint from torch.nn.utils.rnn import pad_sequence import math np.random.seed(1) random.seed(1) chars = ['[PAD]', '[MASK]', 'a', 'b', 'c', ...
41.388759
169
0.565835
87aaff56155a33263ca0d411d601344054822533
4,219
py
Python
app.py
yuuto1228/jikukanDB
7a41decba71d49f461ecfad780edfd882237b64a
[ "MIT" ]
null
null
null
app.py
yuuto1228/jikukanDB
7a41decba71d49f461ecfad780edfd882237b64a
[ "MIT" ]
null
null
null
app.py
yuuto1228/jikukanDB
7a41decba71d49f461ecfad780edfd882237b64a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Flask, jsonify, abort, make_response,render_template,session,request,redirect import pandas as pd import numpy as np import random from geopy.distance import geodesic import pandas as pd import itertools import numpy as np from scipy.sparse import csr_matrix from scipy.spar...
34.867769
138
0.536857
819a357358a1bd33d778b3f28e5bb378ac69685a
6,461
py
Python
telerivet/phone.py
Telerivet/telerivet-python-client
c98eb1ce038ca93b6229d964fdb21e921b59f835
[ "MIT" ]
7
2015-06-16T08:36:10.000Z
2020-07-29T04:35:52.000Z
telerivet/phone.py
Telerivet/telerivet-python-client
c98eb1ce038ca93b6229d964fdb21e921b59f835
[ "MIT" ]
5
2017-05-26T08:56:48.000Z
2020-08-13T01:14:23.000Z
telerivet/phone.py
Telerivet/telerivet-python-client
c98eb1ce038ca93b6229d964fdb21e921b59f835
[ "MIT" ]
10
2015-09-01T17:02:41.000Z
2019-10-21T15:28:55.000Z
from .entity import Entity class Phone(Entity): """ Represents a phone or gateway that you use to send/receive messages via Telerivet. Basic Routes were formerly referred to as "Phones" within Telerivet. API methods, parameters, and properties related to Basic Routes continue to use the term "Pho...
35.306011
105
0.550379
9f862f330994322bc2400ac6e7aa4ea292974ef8
1,082
py
Python
day/007/hangman_arts.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
day/007/hangman_arts.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
day/007/hangman_arts.py
Wanzaz/100-days-of-code
a450a5c64f04cf1155fcc76e59a73f5b509fd8de
[ "MIT" ]
null
null
null
stages = [''' +---+ | | O | /|\ | / \ | | ========= ''', ''' +---+ | | O | /|\ | / | | ========= ''', ''' +---+ | | O | /|\ | | | ========= ''', ''' +---+ | | O | /| | | | =========''', ''' +---+ | | O | | | | | ========= ''', ''' ...
15.239437
131
0.067468
6a5585139dc3a88b94a67ebfd1e300f04a52b312
2,294
py
Python
uhelpers/table_helpers.py
Johannes-Sahlmann/uhelpers
58f8e25ef8644ab5b24a5be76fd58a338a400912
[ "BSD-3-Clause" ]
null
null
null
uhelpers/table_helpers.py
Johannes-Sahlmann/uhelpers
58f8e25ef8644ab5b24a5be76fd58a338a400912
[ "BSD-3-Clause" ]
2
2020-12-21T18:08:48.000Z
2021-01-26T01:24:39.000Z
uhelpers/table_helpers.py
Johannes-Sahlmann/uhelpers
58f8e25ef8644ab5b24a5be76fd58a338a400912
[ "BSD-3-Clause" ]
5
2019-10-02T14:16:15.000Z
2021-12-27T18:46:18.000Z
"""Helper functions that work on astropy tables Authors ------- Johannes Sahlmann Use --- """ import os import numpy as np import pylab as pl def print_column_statistics(t): """ print basic statistics of columns in astropy table """ for colnam in t.colnames: try: print('Mea...
32.771429
135
0.522232
118aa7ab5a2ff852b7a94792c99556fdb0f6d1da
1,185
py
Python
apps/feed_import/management/commands/fetch_starred_stories.py
BenoitZugmeyer/NewsBlur
8d63f2598fa83245d381933d552ca490d84df526
[ "MIT" ]
2
2017-08-14T03:40:11.000Z
2019-06-15T12:28:49.000Z
apps/feed_import/management/commands/fetch_starred_stories.py
BenoitZugmeyer/NewsBlur
8d63f2598fa83245d381933d552ca490d84df526
[ "MIT" ]
7
2021-02-08T20:32:31.000Z
2022-03-11T23:50:47.000Z
apps/feed_import/management/commands/fetch_starred_stories.py
BenoitZugmeyer/NewsBlur
8d63f2598fa83245d381933d552ca490d84df526
[ "MIT" ]
1
2020-03-06T07:40:41.000Z
2020-03-06T07:40:41.000Z
from django.core.management.base import BaseCommand from django.conf import settings from django.contrib.auth.models import User from apps.feed_import.models import GoogleReaderImporter from optparse import make_option from utils.management_functions import daemonize class Command(BaseCommand): option_list = Base...
39.5
77
0.667511
19ffd9fc05e415836512816b826803a4953c9052
3,505
py
Python
web_console_v2/api/test/fedlearner_webconsole/utils/k8s_client_test.py
Hsy-Intel/fedlearner
d5d0bb5549e115eaf0dec5a00a78dcb21ac0909d
[ "Apache-2.0" ]
772
2020-01-21T13:59:42.000Z
2022-03-30T08:20:16.000Z
web_console_v2/api/test/fedlearner_webconsole/utils/k8s_client_test.py
Hsy-Intel/fedlearner
d5d0bb5549e115eaf0dec5a00a78dcb21ac0909d
[ "Apache-2.0" ]
126
2020-03-03T07:54:39.000Z
2022-03-08T23:24:03.000Z
web_console_v2/api/test/fedlearner_webconsole/utils/k8s_client_test.py
Hsy-Intel/fedlearner
d5d0bb5549e115eaf0dec5a00a78dcb21ac0909d
[ "Apache-2.0" ]
198
2020-01-22T02:16:17.000Z
2022-03-31T01:13:05.000Z
# Copyright 2021 The FedLearner Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.944444
78
0.676177
5d0e4fbb272295bcf7e23ea4b007b797bbf4b02d
2,970
py
Python
misc/infer_utils.py
QuIIL/UnsupervisedTumorCharacterizationCGAN
9b50933dc2017b1fadad58a85423394e0c911eef
[ "MIT" ]
null
null
null
misc/infer_utils.py
QuIIL/UnsupervisedTumorCharacterizationCGAN
9b50933dc2017b1fadad58a85423394e0c911eef
[ "MIT" ]
null
null
null
misc/infer_utils.py
QuIIL/UnsupervisedTumorCharacterizationCGAN
9b50933dc2017b1fadad58a85423394e0c911eef
[ "MIT" ]
null
null
null
import os import glob import cv2 import numpy as np from misc import utils #### def get_patches_stat(img, win_size): if img.shape[0] % win_size[0] != 0: nr_row_patches = (int(img.shape[0] / win_size[0]) + 1) else: nr_row_patches = int(img.shape[0] / win_size[0]) if img.shape[1] % win_si...
39.078947
109
0.658923
7e1ed4f41a494a7c41d8ab0a66ac9cdd8b35030d
5,215
py
Python
GetDoseByIntervalVolume.py
az7jh2/My-Raystation-Scripts
3454378239320c2944fd96de8cb86be8824b5210
[ "MIT" ]
1
2021-05-29T22:48:49.000Z
2021-05-29T22:48:49.000Z
GetDoseByIntervalVolume.py
az7jh2/My-Raystation-Scripts
3454378239320c2944fd96de8cb86be8824b5210
[ "MIT" ]
null
null
null
GetDoseByIntervalVolume.py
az7jh2/My-Raystation-Scripts
3454378239320c2944fd96de8cb86be8824b5210
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #-------------------------------------------------------------------------------------------------------------# from connect import * from math import ceil from decimal import Decimal #十进制数学计算模块 import clr clr.AddReference('Microsoft.Office.Interop.Excel') from Microsoft.Office.Intero...
42.056452
192
0.579482
28b784d112cd1360241c17383284410d23f967f5
9,608
py
Python
Dados/SimpleLine/SimpleLine.py
On0n0k1/2020ASSEditor
fd61595696683b440eb8a030163020100e070ed5
[ "MIT" ]
null
null
null
Dados/SimpleLine/SimpleLine.py
On0n0k1/2020ASSEditor
fd61595696683b440eb8a030163020100e070ed5
[ "MIT" ]
null
null
null
Dados/SimpleLine/SimpleLine.py
On0n0k1/2020ASSEditor
fd61595696683b440eb8a030163020100e070ed5
[ "MIT" ]
null
null
null
""" Copyright 2020 Lucas Alessandro do Carmo Lemos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
36.532319
119
0.578997
97092db4ed9e1173fee9b02737a3d3be04e0329b
10,213
py
Python
hyputils/memex/models/group.py
tgbugs/hypush
e91fd7c64b8611384576ca4c0f9b436cb189bfd1
[ "MIT" ]
8
2018-01-07T18:44:47.000Z
2021-12-17T04:10:35.000Z
hyputils/memex/models/group.py
tgbugs/hypush
e91fd7c64b8611384576ca4c0f9b436cb189bfd1
[ "MIT" ]
4
2018-06-25T23:21:40.000Z
2019-02-14T00:13:41.000Z
hyputils/memex/models/group.py
tgbugs/hypush
e91fd7c64b8611384576ca4c0f9b436cb189bfd1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from collections import namedtuple import enum import re import sqlalchemy as sa import slugify from hyputils.memex.db import Base from hyputils.memex.db import mixins from hyputils.memex import pubid from hyputils.memex.util.group import split_groupid ...
33.159091
86
0.662587
984cb190280c7a6c3c639dbf3ff451e1dd39ccab
9,950
py
Python
src/exoplanet/light_curves/limb_dark.py
lgbouma/exoplanet
19356b165f521fed480305db166b8de8d5a849bf
[ "MIT" ]
null
null
null
src/exoplanet/light_curves/limb_dark.py
lgbouma/exoplanet
19356b165f521fed480305db166b8de8d5a849bf
[ "MIT" ]
1
2021-10-06T18:28:24.000Z
2021-10-06T18:28:24.000Z
src/exoplanet/light_curves/limb_dark.py
lgbouma/exoplanet
19356b165f521fed480305db166b8de8d5a849bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = ["LimbDarkLightCurve"] import aesara_theano_fallback.tensor as tt import numpy as np from aesara_theano_fallback import aesara as theano from exoplanet_core.pymc import ops from ..citations import add_citations_to_model from ..utils import as_tensor_variable, deprecation_warning d...
38.867188
79
0.570553
35e58f8cbdff428a96f5f886bee31a5c1f16c2d0
1,445
py
Python
circular-buffer.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
2
2015-06-01T18:33:38.000Z
2018-11-21T19:40:37.000Z
circular-buffer.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
102
2015-01-20T17:26:52.000Z
2017-12-28T17:32:51.000Z
circular-buffer.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
3
2020-03-02T06:54:18.000Z
2021-01-07T16:36:35.000Z
#!/usr/bin/python class Node(object): def __init__(self, value): self.value = value self.next = None def __repr__(self): return "Node[%s]" % self.value class CircularBuffer(object): def __init__(self, size): if size <= 0: raise AttributeError("Size must be posit...
30.744681
91
0.548097
61fdc5446998e37cea6c57f42803a38aefc93340
1,042
py
Python
src/chembl_webservices/tests/test_drug.py
BNext-IQT/chembl_webservices_py3
42ccb39f0121835ca7ee9ac8ddd04cb513998079
[ "Apache-2.0" ]
5
2020-10-23T11:56:59.000Z
2021-06-05T16:30:10.000Z
src/chembl_webservices/tests/test_drug.py
BNext-IQT/chembl_webservices_py3
42ccb39f0121835ca7ee9ac8ddd04cb513998079
[ "Apache-2.0" ]
9
2020-02-11T08:01:40.000Z
2021-06-10T19:41:03.000Z
src/chembl_webservices/tests/test_drug.py
BNext-IQT/chembl_webservices_py3
42ccb39f0121835ca7ee9ac8ddd04cb513998079
[ "Apache-2.0" ]
4
2020-02-11T10:45:22.000Z
2021-06-07T01:48:02.000Z
from chembl_webservices.tests import BaseWebServiceTestCase class DrugTestCase(BaseWebServiceTestCase): resource = 'drug' id_property = 'molecule_chembl_id' resource_expected_count = 13308 sorting_test_props = ['sc_patent', 'ob_patent'] mandatory_properties = [ 'applicants', 'availabil...
25.414634
77
0.618042
97582bc3811f2c2ae81bc28d88cded4ac688975f
13,696
py
Python
bioimageio/spec/shared/utils.py
esgomezm/spec-bioimage-io
2bc3f8177d5346ac94bf8a771ed619e076c6e935
[ "MIT" ]
null
null
null
bioimageio/spec/shared/utils.py
esgomezm/spec-bioimage-io
2bc3f8177d5346ac94bf8a771ed619e076c6e935
[ "MIT" ]
null
null
null
bioimageio/spec/shared/utils.py
esgomezm/spec-bioimage-io
2bc3f8177d5346ac94bf8a771ed619e076c6e935
[ "MIT" ]
null
null
null
import dataclasses import importlib.util import logging import os import pathlib import sys import typing import warnings from functools import singledispatch from types import ModuleType from urllib.request import url2pathname, urlretrieve import requests from marshmallow import ValidationError from . import base_no...
36.328912
116
0.705315
a9f5b13c34aa0c7c4cb7009afcdbc93a061298f2
550
py
Python
talentmap_api/bidding/migrations/0011_auto_20190410_1921.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
5
2018-08-09T18:51:12.000Z
2021-11-08T10:28:17.000Z
talentmap_api/bidding/migrations/0011_auto_20190410_1921.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
13
2019-01-11T18:19:33.000Z
2021-03-22T17:15:17.000Z
talentmap_api/bidding/migrations/0011_auto_20190410_1921.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
4
2018-06-13T14:49:27.000Z
2021-06-30T22:29:15.000Z
# Generated by Django 2.0.4 on 2019-04-10 19:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bidding', '0010_biddingstatus'), ] operations = [ migrations.AddField( model_name='bidcycle', name='_cycle_status', ...
22.916667
47
0.581818
0f31a5983654bb2f61179b20c782b082d9168dbb
6,087
py
Python
tests/test_request.py
domlysz/python-overpy
7f4ece2a8b2edee233dee671b1e1cc28b2150df0
[ "MIT" ]
3
2020-02-09T08:28:11.000Z
2021-02-10T19:28:11.000Z
tests/test_request.py
domlysz/python-overpy
7f4ece2a8b2edee233dee671b1e1cc28b2150df0
[ "MIT" ]
null
null
null
tests/test_request.py
domlysz/python-overpy
7f4ece2a8b2edee233dee671b1e1cc28b2150df0
[ "MIT" ]
null
null
null
import pytest import overpy from tests import BaseRequestHandler from tests import read_file, new_server_thread class HandleOverpassBadRequest(BaseRequestHandler): """ Simulate the response if the query string has syntax errors """ def handle(self): self.request.send(b"HTTP/1.0 400 Bad Reque...
30.283582
80
0.599474
9a9666f0fff172503baf38c5ae9698290feb8765
8,880
py
Python
starlite/openapi/schema.py
anze3db/starlite
965d97620774991bd302a3a227bd3ebe6236ae96
[ "MIT" ]
334
2022-01-07T12:14:54.000Z
2022-03-30T23:28:03.000Z
starlite/openapi/schema.py
anze3db/starlite
965d97620774991bd302a3a227bd3ebe6236ae96
[ "MIT" ]
70
2022-01-06T18:41:33.000Z
2022-03-23T20:21:33.000Z
starlite/openapi/schema.py
anze3db/starlite
965d97620774991bd302a3a227bd3ebe6236ae96
[ "MIT" ]
24
2022-01-06T22:02:01.000Z
2022-03-20T01:43:39.000Z
from dataclasses import is_dataclass from decimal import Decimal from enum import Enum, EnumMeta from typing import Any, List, Optional, Type, Union from openapi_schema_pydantic import Example, Schema from openapi_schema_pydantic.util import PydanticSchema from pydantic import ( BaseModel, ConstrainedBytes, ...
39.820628
120
0.718468
57ec8d78d5b25bba796d89f6174918ff148592a3
14,608
py
Python
discopy/quantum/tk.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
205
2019-12-29T09:45:09.000Z
2022-03-24T09:29:13.000Z
discopy/quantum/tk.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
61
2019-12-11T10:46:38.000Z
2022-03-28T17:10:52.000Z
discopy/quantum/tk.py
hwazni/discopy
812a4c77de4c766591bad74306720b518cdc54fc
[ "BSD-3-Clause" ]
46
2020-04-08T23:33:31.000Z
2022-03-18T21:58:35.000Z
# -*- coding: utf-8 -*- """ Implements the translation between discopy and pytket. """ from unittest.mock import Mock import pytket as tk from pytket.circuit import Bit, Qubit # pylint: disable=no-name-in-module from pytket.utils import probs_from_counts from discopy import messages from discopy.quantum.circuit im...
41.977011
79
0.573179
54089ac3777d719ff1cceb0176f5cf5ff612e66a
339
py
Python
class1/exercise10.py
bspitzmacher/pynet_course
f42df80ecbddbb6a10a0a8cb1a8ff43365032a10
[ "Apache-2.0" ]
null
null
null
class1/exercise10.py
bspitzmacher/pynet_course
f42df80ecbddbb6a10a0a8cb1a8ff43365032a10
[ "Apache-2.0" ]
null
null
null
class1/exercise10.py
bspitzmacher/pynet_course
f42df80ecbddbb6a10a0a8cb1a8ff43365032a10
[ "Apache-2.0" ]
null
null
null
# Class 1 Exercise 10 from ciscoconfparse import CiscoConfParse cisco_cfg = CiscoConfParse("cisco_ipsec.txt") no_aes = cisco_cfg.find_objects_w_child(parentspec=r"^crypto map CRYPTO", childspec=r"transform-set [^AES]") for child in no_aes: print child.text crypto1 = no_aes[0] for child in crypto1.children: ...
21.1875
108
0.766962
e80485770a185902f5a0ab6c1382a359e2fa33ec
741
py
Python
setup.py
nishowsan/python-electron
68ce06f02868eb31a50cfc6da0c99ebfa5d082e0
[ "MIT" ]
17
2017-09-04T08:21:20.000Z
2021-01-08T02:29:03.000Z
setup.py
nishowsan/python-electron
68ce06f02868eb31a50cfc6da0c99ebfa5d082e0
[ "MIT" ]
1
2021-01-13T00:36:59.000Z
2021-01-13T00:36:59.000Z
setup.py
nishowsan/python-electron
68ce06f02868eb31a50cfc6da0c99ebfa5d082e0
[ "MIT" ]
5
2017-09-04T08:22:12.000Z
2021-03-25T18:05:19.000Z
from setuptools import setup l_d = ''' Electron is a technology developed by https://www.github.com/ . Which you can use to render html5 and javascript as a desktop app . But it uses node js . I have used PyQt5 for the shell and it is written with pure python so enjoy . For documentation visit http://github.co...
37.05
90
0.670715
66261c84a1ce46fc131ef571d80d4852b9189ce6
197
py
Python
threepy/geometry/PolygonGeometry.py
district10/three.py
e46a41267d210b8daecc2a0cc81350493132c8da
[ "MIT" ]
2
2019-04-09T15:57:17.000Z
2019-04-10T04:15:53.000Z
threepy/geometry/PolygonGeometry.py
district10/three.py
e46a41267d210b8daecc2a0cc81350493132c8da
[ "MIT" ]
null
null
null
threepy/geometry/PolygonGeometry.py
district10/three.py
e46a41267d210b8daecc2a0cc81350493132c8da
[ "MIT" ]
null
null
null
from threepy.geometry import CircleGeometry class PolygonGeometry(CircleGeometry): def __init__(self, radius=1, numberSides=6): super().__init__(radius=radius, segments=numberSides)
24.625
61
0.766497
12b08c80684f1b74cb2a1b6d733802b56bda6de8
5,361
py
Python
syne_tune/optimizer/schedulers/searchers/utils/warmstarting.py
awslabs/syne-tune
1dd8e157477b86db01047a9a7821780ea04389bc
[ "ECL-2.0", "Apache-2.0" ]
97
2021-11-18T17:14:30.000Z
2022-03-29T00:33:12.000Z
syne_tune/optimizer/schedulers/searchers/utils/warmstarting.py
awslabs/syne-tune
1dd8e157477b86db01047a9a7821780ea04389bc
[ "ECL-2.0", "Apache-2.0" ]
54
2021-11-18T17:14:12.000Z
2022-03-22T08:11:48.000Z
syne_tune/optimizer/schedulers/searchers/utils/warmstarting.py
awslabs/syne-tune
1dd8e157477b86db01047a9a7821780ea04389bc
[ "ECL-2.0", "Apache-2.0" ]
9
2021-11-29T11:47:32.000Z
2022-02-24T15:28:11.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
40.923664
92
0.725424
4dd2be5ecc2ead6a4803bcb3d8b20e484e8a794a
7,888
py
Python
mystic/data/igloo.py
RykerCohen/mystic
5f60e43642e21f13068cc9a755712f240038fa48
[ "MIT" ]
2
2020-11-06T02:27:57.000Z
2020-11-06T08:22:06.000Z
mystic/data/igloo.py
RykerCohen/mystic
5f60e43642e21f13068cc9a755712f240038fa48
[ "MIT" ]
16
2020-11-06T05:13:39.000Z
2020-11-08T03:23:29.000Z
mystic/data/igloo.py
RykerCohen/mystic
5f60e43642e21f13068cc9a755712f240038fa48
[ "MIT" ]
3
2020-11-06T17:13:29.000Z
2020-11-25T16:17:30.000Z
from functools import cached_property from mystic.data import AbstractDataCollection, db class Flooring(db.Model): __tablename__ = 'flooring' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50)) cost = db.Column(db.Integer, nullable=False, server_default=db.text("0")) pat...
39.638191
117
0.701826
3a35aea58513bd7b2297cf1e8c00482b142ee016
2,059
py
Python
env/lib/python3.8/site-packages/plotly/validators/scattergeo/_hoverlabel.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/validators/scattergeo/_hoverlabel.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/validators/scattergeo/_hoverlabel.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="hoverlabel", parent_name="scattergeo", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_na...
39.596154
85
0.548324
0b915fa74ee3b84d3216620e895f462697a61863
625
py
Python
mp_template/app/__init__.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
12
2021-09-03T08:00:47.000Z
2021-11-21T03:45:21.000Z
mp_template/app/__init__.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
8
2021-06-17T03:16:09.000Z
2021-10-06T03:41:57.000Z
mp_template/app/__init__.py
ang-jason/fip_powerx_mini_projects-foxtrot
37e3671969b516369e2d1c7cab5890b75c489f56
[ "MIT" ]
36
2021-07-02T06:06:42.000Z
2022-01-25T08:31:34.000Z
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager from flask_bootstrap import Bootstrap from app.middleware import PrefixMiddleware application = Flask(__name__) application.config.from_object(Config) db = S...
28.409091
71
0.8304
1d27d314590456d362903ee355f00538dfce29cf
789
py
Python
stubs/mongodb_model_template.py
pythononwheels/opentoni_web
fc3ce62486cd4c0b2c62d89c587d829eed9e4785
[ "MIT" ]
null
null
null
stubs/mongodb_model_template.py
pythononwheels/opentoni_web
fc3ce62486cd4c0b2c62d89c587d829eed9e4785
[ "MIT" ]
null
null
null
stubs/mongodb_model_template.py
pythononwheels/opentoni_web
fc3ce62486cd4c0b2c62d89c587d829eed9e4785
[ "MIT" ]
null
null
null
# # MongoDB Model: {{model_class_name}} # from {{appname}}.models.mongodb.mongomodel import MongoModel class {{model_class_name}}(MongoModel): # # Use the cerberus schema style # which offer you immediate validation with cerberus # http://docs.python-cerberus.org/en/stable/validation-rules.html ...
27.206897
81
0.572877
3105109c72e4866aeb7c429bf984002e775c8183
1,643
py
Python
cloudify_rest/__init__.py
btcfy/cloudify-utilities-plugin
e68fe065b4fa06bc7797e22e9788b852f69a25f4
[ "Apache-2.0" ]
null
null
null
cloudify_rest/__init__.py
btcfy/cloudify-utilities-plugin
e68fe065b4fa06bc7797e22e9788b852f69a25f4
[ "Apache-2.0" ]
null
null
null
cloudify_rest/__init__.py
btcfy/cloudify-utilities-plugin
e68fe065b4fa06bc7797e22e9788b852f69a25f4
[ "Apache-2.0" ]
null
null
null
######## # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
32.86
79
0.692635