hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796a5c28d9f0e7497a45f9907dec27efc2f6641b
467
py
Python
data_utils/task_def.py
cliang1453/super-structured-lottery-tickets
caad8b6618831cfde9ba764bfe27ab7564dfda60
[ "MIT" ]
10
2021-06-09T06:32:25.000Z
2022-03-25T14:23:10.000Z
data_utils/task_def.py
cliang1453/super-structured-lottery-tickets
caad8b6618831cfde9ba764bfe27ab7564dfda60
[ "MIT" ]
1
2021-12-10T06:31:38.000Z
2021-12-11T06:12:42.000Z
data_utils/task_def.py
cliang1453/super-structured-lottery-tickets
caad8b6618831cfde9ba764bfe27ab7564dfda60
[ "MIT" ]
1
2021-07-28T20:10:58.000Z
2021-07-28T20:10:58.000Z
# Copyright (c) Microsoft. All rights reserved. from enum import IntEnum class TaskType(IntEnum): Classification = 1 Regression = 2 Ranking = 3 Span = 4 SeqenceLabeling = 5 MaskLM = 6 class DataFormat(IntEnum): PremiseOnly = 1 PremiseAndOneHypothesis = 2 PremiseAndMultiHypothesis =...
17.961538
47
0.635974
796a5c8b27602c51f69dd27cb54c5eff61bb2d61
8,736
py
Python
correct_batch_effects_wdn/transform.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
correct_batch_effects_wdn/transform.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
correct_batch_effects_wdn/transform.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
36.860759
80
0.735234
796a5d4d5ee0e3b206e61974496e5d7648337d2a
10,191
py
Python
python/src/vmaf/__init__.py
aachenmax/vmaf
e65143f36ac9324a1242614bdd6256861d4f46f6
[ "BSD-2-Clause-Patent" ]
1
2020-05-05T11:05:04.000Z
2020-05-05T11:05:04.000Z
python/src/vmaf/__init__.py
aachenmax/vmaf
e65143f36ac9324a1242614bdd6256861d4f46f6
[ "BSD-2-Clause-Patent" ]
null
null
null
python/src/vmaf/__init__.py
aachenmax/vmaf
e65143f36ac9324a1242614bdd6256861d4f46f6
[ "BSD-2-Clause-Patent" ]
null
null
null
import os import subprocess __copyright__ = "Copyright 2016-2020, Netflix, Inc." __license__ = "BSD+Patent" try: from matplotlib import pyplot as plt except BaseException: # TODO: importing matplotlib fails on OSX with system python, check what can be done there... # Error reported is: # RuntimeEr...
37.884758
161
0.622412
796a5da3a13abdb32eda8555d56da626998c5275
4,271
py
Python
tests/exchange/test_bcolz.py
izokay/catalyst
db312be6543cd00f7f4f3ff6dc9072d29f6e7d97
[ "Apache-2.0" ]
1
2018-11-26T16:43:26.000Z
2018-11-26T16:43:26.000Z
tests/exchange/test_bcolz.py
izokay/catalyst
db312be6543cd00f7f4f3ff6dc9072d29f6e7d97
[ "Apache-2.0" ]
null
null
null
tests/exchange/test_bcolz.py
izokay/catalyst
db312be6543cd00f7f4f3ff6dc9072d29f6e7d97
[ "Apache-2.0" ]
null
null
null
import random import shutil import tempfile import pandas as pd from nose.tools import assert_equals from catalyst.exchange.exchange_bcolz import BcolzExchangeBarWriter, \ BcolzExchangeBarReader from catalyst.exchange.exchange_bundle import ExchangeBundle from catalyst.exchange.utils.bundle_utils import get_df_fr...
28.473333
75
0.611332
796a5def2915b892454afd0f8026293d015d8154
2,480
py
Python
pdbfile/pdb/dbimoduleinfo.py
alexmgr/pdbfile
c7c906183bc3005232e6661386590b6985f98a14
[ "MIT" ]
5
2016-10-14T01:59:23.000Z
2019-12-28T03:49:24.000Z
pdbfile/pdb/dbimoduleinfo.py
mountainstorm/pdbfile
445502d2abc4faec77c3917d2c83cc70b0247af4
[ "MIT" ]
null
null
null
pdbfile/pdb/dbimoduleinfo.py
mountainstorm/pdbfile
445502d2abc4faec77c3917d2c83cc70b0247af4
[ "MIT" ]
2
2018-10-08T21:51:19.000Z
2020-10-28T11:49:01.000Z
#!/usr/bin/python # coding: utf-8 # Copyright (c) 2016 Mountainstorm # # 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,...
43.508772
80
0.646774
796a5e7b436213426bda446eec63fdf7d9ca8d3a
892
py
Python
models/set_to_graph_mlp.py
maamdaad/Set2GraphPaper
883a87f41192e926b45916542cb3c7e24e0be20b
[ "Apache-2.0" ]
16
2020-10-07T12:12:41.000Z
2022-02-18T07:51:51.000Z
models/set_to_graph_mlp.py
maamdaad/Set2GraphPaper
883a87f41192e926b45916542cb3c7e24e0be20b
[ "Apache-2.0" ]
1
2021-08-05T10:47:11.000Z
2021-08-07T10:54:44.000Z
models/set_to_graph_mlp.py
maamdaad/Set2GraphPaper
883a87f41192e926b45916542cb3c7e24e0be20b
[ "Apache-2.0" ]
5
2020-12-30T23:59:38.000Z
2022-01-09T17:57:18.000Z
import torch import torch.nn as nn class SetToGraphMLP(torch.nn.Module): def __init__(self, params, in_features=2, max_nodes=80): super().__init__() self.max_nodes = max_nodes last = in_features * max_nodes layers = [] for p in params: layers.append(nn.Linear(la...
30.758621
82
0.560538
796a608ec54713dd45f2afc2b047e1c45c93aec0
1,651
py
Python
bugdemo/models.py
paddymul/adminsortable2bug
7c653e997e0ef23538dd4d1b3d4c35e775053f83
[ "MIT" ]
null
null
null
bugdemo/models.py
paddymul/adminsortable2bug
7c653e997e0ef23538dd4d1b3d4c35e775053f83
[ "MIT" ]
null
null
null
bugdemo/models.py
paddymul/adminsortable2bug
7c653e997e0ef23538dd4d1b3d4c35e775053f83
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import random from django.db import models # Create your models here. class SideB(models.Model): name = models.CharField(max_length=2000) def __str__(self): return "SideB(%s)" % (self.name) class SideA(models.Model): name = models.CharField(max_length=200...
27.065574
83
0.569958
796a60d0eb8f9b2dfd17eaf31d47cc308d35ac4b
1,176
py
Python
airflow/contrib/operators/docker_swarm_operator.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
airflow/contrib/operators/docker_swarm_operator.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
airflow/contrib/operators/docker_swarm_operator.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.2
95
0.77466
796a61d9ef927f09cef489865cdcf5b6cb71f1fe
13,888
py
Python
backend/api/python_http_client/kfp_server_api/configuration.py
meowcakes/pipelines
7f58d64484e4d57471aa3f2cbc3eeb55bfc84cc4
[ "Apache-2.0" ]
3
2020-10-16T14:30:24.000Z
2021-11-12T13:28:40.000Z
backend/api/python_http_client/kfp_server_api/configuration.py
meowcakes/pipelines
7f58d64484e4d57471aa3f2cbc3eeb55bfc84cc4
[ "Apache-2.0" ]
1
2021-09-03T05:25:56.000Z
2021-09-03T05:25:56.000Z
backend/api/python_http_client/kfp_server_api/configuration.py
radcheb/pipelines
2f3a686e545b671d3d1ce96bbcc07b18cb905a87
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.22488
124
0.608727
796a63dc76176416a5c27cadeae6aeb8480652cc
2,335
py
Python
src/ggrc_gdrive_integration/models/object_event.py
sbilly/ggrc-core
59a6825c6a8e15e42ebdb9e08d079cefd1800120
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_gdrive_integration/models/object_event.py
sbilly/ggrc-core
59a6825c6a8e15e42ebdb9e08d079cefd1800120
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_gdrive_integration/models/object_event.py
sbilly/ggrc-core
59a6825c6a8e15e42ebdb9e08d079cefd1800120
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2016 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> from ggrc import db from sqlalchemy.ext.associationproxy import association_proxy from sqlalchemy.ext.declarative import declared_attr from ggrc.models.mixins import deferred, Base from ggrc.models.reflectio...
28.82716
78
0.694647
796a63f93a0fd85078d97801a9b1dba6947cc9f0
17,349
py
Python
pysnmp-with-texts/HP-ICF-LINKTEST.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/HP-ICF-LINKTEST.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/HP-ICF-LINKTEST.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HP-ICF-LINKTEST (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-LINKTEST # Produced by pysmi-0.3.4 at Wed May 1 13:34:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
175.242424
1,808
0.78604
796a66107eb00de5693083b09bf7cfdf2490dde4
7,677
py
Python
catalyst/finance/risk/period.py
Amonsoft/catalyst
d9762e8646d46fa1dcda29151388ebcd0734337f
[ "Apache-2.0" ]
1
2017-01-03T02:42:29.000Z
2017-01-03T02:42:29.000Z
catalyst/finance/risk/period.py
Amonsoft/catalyst
d9762e8646d46fa1dcda29151388ebcd0734337f
[ "Apache-2.0" ]
1
2021-03-20T05:45:32.000Z
2021-03-20T05:45:32.000Z
zipline/finance/risk/period.py
varunrai/zipline
28060bf11fc34966438c24c688caf335bf15f1d7
[ "Apache-2.0" ]
1
2019-03-21T15:24:38.000Z
2019-03-21T15:24:38.000Z
# # Copyright 2013 Quantopian, 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 wr...
35.054795
79
0.623421
796a68069c5a15d95fa3f9d7b88f4e9b11e331a2
2,540
py
Python
pytranspose/transpose.py
kktk-KO/pytranspose
43a5d62171510d613044a4fd0ea612f77dba6877
[ "CC0-1.0" ]
null
null
null
pytranspose/transpose.py
kktk-KO/pytranspose
43a5d62171510d613044a4fd0ea612f77dba6877
[ "CC0-1.0" ]
null
null
null
pytranspose/transpose.py
kktk-KO/pytranspose
43a5d62171510d613044a4fd0ea612f77dba6877
[ "CC0-1.0" ]
null
null
null
def transpose (root, dimensions) : """transpose root and root's children are dict or list. root's children with the same level should have the same type. dimensions are list of index. If object can be accessed as [a[0]][a[1]][a[2]]... , same value in returned object can be acceesd a...
26.185567
81
0.527559
796a68a3f18bac07e2dc6cb0068dc2277d8b7a9b
2,322
py
Python
packages/pyre/shells/Command.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
3
2019-08-02T21:02:47.000Z
2021-09-08T13:59:43.000Z
packages/pyre/shells/Command.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/shells/Command.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2019 all rights reserved # # externals import itertools # access to the framework import pyre # my protocol from .Action import Action # class declaration class Command(pyre.component, implements=Action): """ A component that implement...
23.22
76
0.586563
796a692c56ffb3cbd1347270ed31b3abcbef1739
5,882
py
Python
tensorflow/python/data/experimental/kernel_tests/directed_interleave_dataset_test.py
fraudies/tensorflow
a42423e302b71893bbd24aa896869941013c07fb
[ "Apache-2.0" ]
52
2018-11-12T06:39:35.000Z
2022-03-08T05:31:27.000Z
tensorflow/python/data/experimental/kernel_tests/directed_interleave_dataset_test.py
fraudies/tensorflow
a42423e302b71893bbd24aa896869941013c07fb
[ "Apache-2.0" ]
2
2018-12-04T08:35:40.000Z
2020-10-22T16:17:39.000Z
tensorflow/python/data/experimental/kernel_tests/directed_interleave_dataset_test.py
fraudies/tensorflow
a42423e302b71893bbd24aa896869941013c07fb
[ "Apache-2.0" ]
17
2019-03-11T01:17:16.000Z
2022-02-21T00:44:47.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.47651
80
0.700272
796a69a7d02e8864476a4208875f0659323ddd46
13,755
py
Python
code/assets/transfers/config_prototype_data_check_no_image_trans.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
789
2018-03-21T05:28:38.000Z
2022-03-29T19:32:47.000Z
code/assets/transfers/config_prototype_data_check_no_image_trans.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
46
2018-05-03T07:11:10.000Z
2022-03-11T23:26:03.000Z
code/assets/transfers/config_prototype_data_check_no_image_trans.py
santomon/taskonomy
4b22087a2686172b21b61589831061e7a386fe36
[ "MIT" ]
152
2018-03-24T10:20:44.000Z
2022-02-09T02:38:10.000Z
from __future__ import absolute_import, division, print_function import functools import numpy as np import os import sys import tensorflow as tf sys.path.insert( 1, os.path.realpath( '../../models' ) ) sys.path.insert( 1, os.path.realpath( '../../lib' ) ) import data.load_ops as load_ops from data.load_ops import...
41.182635
179
0.628935
796a6a79b622a63a5d6da5dd93fa9c358442390e
81,619
py
Python
boto/dynamodb2/layer1.py
smartdec/boto
8ee4b1f45be3c9e0ece49079b00cd09bf0930b1e
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
boto/dynamodb2/layer1.py
premanandchandrasekar/boto
a00851636307f971b03e72e1ce812cd3242816f3
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
boto/dynamodb2/layer1.py
premanandchandrasekar/boto
a00851636307f971b03e72e1ce812cd3242816f3
[ "MIT" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights ...
52.691414
104
0.644029
796a6b706f82203764256b6be15c9875967fee06
9,331
py
Python
nova/api/openstack/compute/admin_actions.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/admin_actions.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/admin_actions.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2011 OpenStack Foundation' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy of the License at' nl|'...
13.406609
124
0.62137
796a6b82cbfee130908c2319074d15d2830587c6
1,200
py
Python
labs/knn/fscore.py
pavponn/machine-learning
95ab573556a72fb5d16761cb8136d2896ae55263
[ "MIT" ]
null
null
null
labs/knn/fscore.py
pavponn/machine-learning
95ab573556a72fb5d16761cb8136d2896ae55263
[ "MIT" ]
null
null
null
labs/knn/fscore.py
pavponn/machine-learning
95ab573556a72fb5d16761cb8136d2896ae55263
[ "MIT" ]
null
null
null
from typing import List def total_sum(cm): return sum(sum(cm, [])) def row_cols_sums(cm): row_sums = [0] * len(cm) col_sums = [0] * len(cm) for i in range(len(cm)): for j in range(len(cm)): row_sums[i] += cm[i][j] col_sums[j] += cm[i][j] return row_sums, col_sums ...
26.666667
61
0.6
796a6c77e59a9b93c99ddf5c67898b1bee4fc267
759
py
Python
BinanceSimpleScripts/TickerWebsocket.py
phbrgnomo/CryptoTradingTools
dfe4ef94470e8bc5d44f93461ec4317a04306ae9
[ "CC0-1.0" ]
null
null
null
BinanceSimpleScripts/TickerWebsocket.py
phbrgnomo/CryptoTradingTools
dfe4ef94470e8bc5d44f93461ec4317a04306ae9
[ "CC0-1.0" ]
1
2021-03-23T21:01:39.000Z
2021-03-23T21:01:39.000Z
BinanceSimpleScripts/TickerWebsocket.py
phbrgnomo/CryptoTradingTools
dfe4ef94470e8bc5d44f93461ec4317a04306ae9
[ "CC0-1.0" ]
1
2022-03-31T07:04:55.000Z
2022-03-31T07:04:55.000Z
from simplefunctions.load_keys import load_websocket_keys # set variables asset='ETHUSDT' asset_price = {'error':False} def pair_trade_history(msg): # define how to proccess incoming WebSocket messages if msg['e'] != 'error': print(f'{asset} timestamp:', msg['E'], '\n' f'{asset} last pr...
29.192308
73
0.611331
796a6cde347a0e9dbb34365e518f367dbd8a0fa5
7,132
py
Python
invenio_accounts/admin.py
Glignos/invenio-accounts
1ab96fa5e0b1f45e0b1d3025586b47536b988e20
[ "MIT" ]
4
2015-08-19T12:51:56.000Z
2019-06-11T20:24:30.000Z
invenio_accounts/admin.py
Glignos/invenio-accounts
1ab96fa5e0b1f45e0b1d3025586b47536b988e20
[ "MIT" ]
242
2015-08-19T09:31:00.000Z
2022-03-25T08:02:02.000Z
invenio_accounts/admin.py
Glignos/invenio-accounts
1ab96fa5e0b1f45e0b1d3025586b47536b988e20
[ "MIT" ]
62
2015-07-31T09:44:12.000Z
2022-02-16T07:49:05.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Admin views for invenio-accounts.""" from flask import current_app, flash from fl...
29.716667
79
0.621845
796a6e0177a76e080f5c12d76c1131f074f8c9fd
2,091
py
Python
tests/test_automove.py
UTexas-PSAAP/Parla.py
3d92a156be41983e32576940ef6baffd78d4eb84
[ "BSD-3-Clause" ]
null
null
null
tests/test_automove.py
UTexas-PSAAP/Parla.py
3d92a156be41983e32576940ef6baffd78d4eb84
[ "BSD-3-Clause" ]
null
null
null
tests/test_automove.py
UTexas-PSAAP/Parla.py
3d92a156be41983e32576940ef6baffd78d4eb84
[ "BSD-3-Clause" ]
null
null
null
import scipy as sp from parla import Parla, parray from parla.cuda import gpu from parla.cpu import cpu from parla.tasks import TaskSpace, spawn import numpy as np def main(): @spawn(placement=cpu) async def test_blocked_cholesky(): n = 2 np.random.seed(10) # Construct input data ...
28.256757
93
0.412243
796a6e481c383bfc606d29d4d71c731008ce0d81
29
py
Python
meddia/plugins/meddia-storage-fs/meddiaStorageFS.py
mmarquezs/meddia
3dffb92abb208ab83ffe536b0b4da6e0052df373
[ "MIT" ]
null
null
null
meddia/plugins/meddia-storage-fs/meddiaStorageFS.py
mmarquezs/meddia
3dffb92abb208ab83ffe536b0b4da6e0052df373
[ "MIT" ]
null
null
null
meddia/plugins/meddia-storage-fs/meddiaStorageFS.py
mmarquezs/meddia
3dffb92abb208ab83ffe536b0b4da6e0052df373
[ "MIT" ]
null
null
null
from . import * import iapi
7.25
15
0.689655
796a6fcd716c704dc744df62102fbc678c5290e8
2,271
py
Python
api/lambda_functions/LambdaApiSwagger/lambda_function.py
praktikos/praktikos-template-python
324c7640ee05469fba87a7ec64d6ac61675b259e
[ "MIT" ]
null
null
null
api/lambda_functions/LambdaApiSwagger/lambda_function.py
praktikos/praktikos-template-python
324c7640ee05469fba87a7ec64d6ac61675b259e
[ "MIT" ]
null
null
null
api/lambda_functions/LambdaApiSwagger/lambda_function.py
praktikos/praktikos-template-python
324c7640ee05469fba87a7ec64d6ac61675b259e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* from os import getcwd import boto3 from api.rdb.utils.lambda_logger import lambda_logger from api.rdb.utils.service_framework import handle_request logger = lambda_logger(__name__, getcwd()) # ,--------. # |/swagger| # |--------| # |------...
33.895522
83
0.523558
796a6fda53a83b129955628860f4a7543825aa06
504
py
Python
timepiece/admin.py
icekernel/django-timepiece
883cfcd50da3d1b411a43f3b6116342b49117ace
[ "MIT" ]
null
null
null
timepiece/admin.py
icekernel/django-timepiece
883cfcd50da3d1b411a43f3b6116342b49117ace
[ "MIT" ]
null
null
null
timepiece/admin.py
icekernel/django-timepiece
883cfcd50da3d1b411a43f3b6116342b49117ace
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType class PermissionAdmin(admin.ModelAdmin): list_display = ['__unicode__', 'codename'] list_filter = ['content_type__app_label'] class ContentTypeAdmin(admin.ModelAdmin)...
28
58
0.779762
796a70ae4f7619145a4ab3e4ef6d86dd8456202b
2,373
py
Python
Chinese-OCR/keras/minist.py
xiaoshicae/Others
a5df75f1da527f94c1c79870a8f5ac7c9a7353c2
[ "Apache-1.1" ]
null
null
null
Chinese-OCR/keras/minist.py
xiaoshicae/Others
a5df75f1da527f94c1c79870a8f5ac7c9a7353c2
[ "Apache-1.1" ]
null
null
null
Chinese-OCR/keras/minist.py
xiaoshicae/Others
a5df75f1da527f94c1c79870a8f5ac7c9a7353c2
[ "Apache-1.1" ]
null
null
null
'''Trains a simple convnet on the MNIST dataset. Gets to 99.25% test accuracy after 12 epochs (there is still a lot of margin for parameter tuning). 16 seconds per epoch on a GRID K520 GPU. ''' from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from k...
37.666667
70
0.7126
796a70f169394de3c06ee0bbf981de59b7700d6e
714
py
Python
server/poller.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
1
2021-08-31T16:12:09.000Z
2021-08-31T16:12:09.000Z
server/poller.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
server/poller.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
import os import sys import time import subprocess XML_PATH = "/tmp/ifc43-xml" try: os.makedirs(XML_PATH) except: pass while True: a = subprocess.check_output(["git", "rev-parse", "HEAD"]) b = subprocess.check_output(["git", "pull"]) c = subprocess.check_output(["git", "rev-parse", "HEAD"]) ...
24.62069
106
0.588235
796a70f7d08e8eec4a4cda0aa4212e6bb31e2110
2,972
py
Python
src/kernels.py
mcindoe/regimedetection
e07355aba56d8394f2e28d1ee886dd2c1dbf0a86
[ "Apache-2.0" ]
14
2021-07-07T09:49:26.000Z
2022-02-21T03:36:53.000Z
src/kernels.py
mcindoe/regimedetection
e07355aba56d8394f2e28d1ee886dd2c1dbf0a86
[ "Apache-2.0" ]
2
2021-07-05T13:09:10.000Z
2021-10-05T07:40:55.000Z
src/kernels.py
mcindoe/regimedetection
e07355aba56d8394f2e28d1ee886dd2c1dbf0a86
[ "Apache-2.0" ]
5
2021-09-03T10:39:19.000Z
2022-03-14T10:45:25.000Z
from math import exp from typing import Callable from typing import Union import numpy as np from regimedetection.src.metrics import euclidean_distance from regimedetection.src.metrics import squared_euclidean_distance def make_rbf_kernel(sigma: float) -> Callable[[np.ndarray, np.ndarray], np.ndarray]: """ ...
31.284211
88
0.689771
796a71f23e10a3daf576d00978983b4fa0ef2fe7
2,660
py
Python
examples/tour_examples/hopscotch_google_tour.py
hyahiaoui/SeleniumBase
8c7fc30cadf289731767953f22eeab3c92271760
[ "MIT" ]
null
null
null
examples/tour_examples/hopscotch_google_tour.py
hyahiaoui/SeleniumBase
8c7fc30cadf289731767953f22eeab3c92271760
[ "MIT" ]
null
null
null
examples/tour_examples/hopscotch_google_tour.py
hyahiaoui/SeleniumBase
8c7fc30cadf289731767953f22eeab3c92271760
[ "MIT" ]
null
null
null
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_google_tour(self): self.open("https://google.com/ncr") self.wait_for_element('input[title="Search"]') self.create_hopscotch_tour() # OR self.create_tour(theme="hopscotch") self.add_tour_step("Welcome to Googl...
45.862069
109
0.64812
796a7269764f05e78eb29792a03a5396840ea5c1
227
py
Python
algorithms/0005-ReverseInt/reverse_int.py
ivamluz/Algorithms-and-Data-Structures
cffacd758adf134dabc63cdc107c8b485b00b1c1
[ "Apache-2.0" ]
1
2018-11-06T22:43:07.000Z
2018-11-06T22:43:07.000Z
algorithms/0005-ReverseInt/reverse_int.py
ivamluz/Algorithms-and-Data-Structures
cffacd758adf134dabc63cdc107c8b485b00b1c1
[ "Apache-2.0" ]
null
null
null
algorithms/0005-ReverseInt/reverse_int.py
ivamluz/Algorithms-and-Data-Structures
cffacd758adf134dabc63cdc107c8b485b00b1c1
[ "Apache-2.0" ]
null
null
null
def reverse_int(num): if num is None: return None sign = lambda x: (1, -1) [x < 0] abs_num = abs(num) reversed_num_str = str(abs_num)[::-1] reversed_num = int(reversed_num_str) * sign(num) return reversed_num
20.636364
50
0.656388
796a72f9dcd0113856c9aa120171d07664c32894
1,133
py
Python
worker/notification/task/update_push_result.py
pjongy/jraze
8c7c0abebcb973f87c8fc36b9c7bf7fa76f445f3
[ "MIT" ]
5
2020-07-31T02:18:29.000Z
2021-11-22T02:25:07.000Z
worker/notification/task/update_push_result.py
pjongy/jraze
8c7c0abebcb973f87c8fc36b9c7bf7fa76f445f3
[ "MIT" ]
13
2020-08-03T07:36:19.000Z
2020-11-26T12:02:57.000Z
worker/notification/task/update_push_result.py
pjongy/jraze
8c7c0abebcb973f87c8fc36b9c7bf7fa76f445f3
[ "MIT" ]
1
2020-08-19T07:48:30.000Z
2020-08-19T07:48:30.000Z
import deserialize from common.logger.logger import get_logger from common.structure.job.messaging import DevicePlatform from common.structure.job.notification import NotificationSentResultMessageArgs from worker.notification.external.jraze.jraze import JrazeApi from worker.notification.task import AbstractTask logge...
37.766667
79
0.732568
796a741e6ca40ceeed9565d2eb9f3f5328f0c811
15,032
py
Python
managed/devops/opscli/ybops/cloud/aws/method.py
root-ali/yugabyte-db
5c40f439326cc4b4fd5d965c34009405c68a9a27
[ "Apache-2.0", "CC0-1.0" ]
1
2020-12-07T05:35:47.000Z
2020-12-07T05:35:47.000Z
managed/devops/opscli/ybops/cloud/aws/method.py
root-ali/yugabyte-db
5c40f439326cc4b4fd5d965c34009405c68a9a27
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
managed/devops/opscli/ybops/cloud/aws/method.py
root-ali/yugabyte-db
5c40f439326cc4b4fd5d965c34009405c68a9a27
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2019 YugaByte, Inc. and Contributors # # Licensed under the Polyform Free Trial License 1.0.0 (the "License"); you # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # https://github.com/YugaByte/yugabyte-db/blob/master/licenses...
39.872679
100
0.672632
796a74276afbb74d8eb17cf83b5a289d6d3065c3
677
py
Python
Exercise_2_BTE_4.py
YaraBlack/Python-Workout-Exercises
aee52dc53b2e1a5691cfecaba40539c3c492b7b3
[ "Unlicense" ]
1
2020-08-28T23:13:25.000Z
2020-08-28T23:13:25.000Z
Exercise_2_BTE_4.py
YaraBlack/Python-Workout-Exercises
aee52dc53b2e1a5691cfecaba40539c3c492b7b3
[ "Unlicense" ]
null
null
null
Exercise_2_BTE_4.py
YaraBlack/Python-Workout-Exercises
aee52dc53b2e1a5691cfecaba40539c3c492b7b3
[ "Unlicense" ]
null
null
null
#Summing numbers ''' Summ all numbers that is inputed in the function ''' #Beyond the exercise 4 (BTE_4) ''' Write a function that takes a list of Python objects. Sum the objects that either are integers or can be turned into integers, ignoring the others. ''' def mysum(*args): sum = 0 check = (int, float, bo...
33.85
180
0.618907
796a755bb07721673dc8c4377015937248f8d540
2,200
py
Python
sphinx/__init__.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
3
2019-06-11T09:42:08.000Z
2020-03-10T15:57:09.000Z
sphinx/__init__.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
12
2019-01-09T15:43:57.000Z
2020-01-21T10:46:30.000Z
sphinx/__init__.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
10
2019-02-04T11:49:35.000Z
2020-03-21T13:32:20.000Z
""" Sphinx ~~~~~~ The Sphinx documentation toolchain. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ # Keep this file executable as-is in Python 3! # (Otherwise getting the version out of it from setup.py is impossible.) import os imp...
34.375
76
0.675
796a758f88ad938bb967feb4d22610d1fb913fe1
41
py
Python
Examples/e12.py
SatomiRen/OPI_3
7a5160fa784afaab46b2575e5596ed36a4618d35
[ "MIT" ]
null
null
null
Examples/e12.py
SatomiRen/OPI_3
7a5160fa784afaab46b2575e5596ed36a4618d35
[ "MIT" ]
null
null
null
Examples/e12.py
SatomiRen/OPI_3
7a5160fa784afaab46b2575e5596ed36a4618d35
[ "MIT" ]
null
null
null
import os path = os.getcwd() print(path)
10.25
18
0.707317
796a760aa15467201bdbab04ee6a913d684869cf
3,522
py
Python
sdk/python/pulumi_azure/advisor/get_recommendations.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/advisor/get_recommendations.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/advisor/get_recommendations.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class GetRec...
40.482759
224
0.716638
796a76fa9f6ea2aa0d99cf38778e43892d97a869
8,808
py
Python
venv/Lib/site-packages/setuptools/ssl_support.py
jodieritchie/MLHPortfolio
66d23165c1c3277a6b7320af1cfc353a07385e7a
[ "MIT" ]
1
2020-01-29T13:35:30.000Z
2020-01-29T13:35:30.000Z
venv/Lib/site-packages/setuptools/ssl_support.py
jodieritchie/MLHPortfolio
66d23165c1c3277a6b7320af1cfc353a07385e7a
[ "MIT" ]
3
2020-06-17T16:01:27.000Z
2022-01-13T02:52:53.000Z
venv/Lib/site-packages/setuptools/ssl_support.py
jodieritchie/MLHPortfolio
66d23165c1c3277a6b7320af1cfc353a07385e7a
[ "MIT" ]
null
null
null
import os import socket import atexit import re import functools from setuptools.extern.six.moves import urllib, http_client, map, filter from pkg_resources import ResolutionError, ExtractionError try: import ssl except ImportError: ssl = None __all__ = [ 'VerifyingHTTPSHandler', 'find_c...
33.112782
80
0.589124
796a77799406ffbbb341077b3d063a3a4193c447
15,021
py
Python
pong_no_walls.py
GaryKam/pong-no-walls
69852bb7e5ab74f2aac2cda280e8584e168f70ea
[ "MIT" ]
null
null
null
pong_no_walls.py
GaryKam/pong-no-walls
69852bb7e5ab74f2aac2cda280e8584e168f70ea
[ "MIT" ]
null
null
null
pong_no_walls.py
GaryKam/pong-no-walls
69852bb7e5ab74f2aac2cda280e8584e168f70ea
[ "MIT" ]
null
null
null
import sys import pygame import random from pygame.locals import * from pygame.math import Vector2 # Constant variables. WINDOW_WIDTH = 600 WINDOW_HEIGHT = 400 DARK_GRAY = Color('#2C2F33') GRAY = Color('#99AAB5') BALL_SIZE = 15 PADDLE_LENGTH = 70 PADDLE_WIDTH = 10 PADDLE_SPEED = 5 MARGIN = 5 # Distance from walls to ...
39.015584
115
0.589308
796a77e8a09b4d66a47d4b73311c860efda46ee5
260
py
Python
languages/tr/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
24
2021-04-02T20:54:45.000Z
2021-11-22T05:37:34.000Z
languages/tr/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
2
2021-04-04T03:45:38.000Z
2021-04-19T12:59:37.000Z
languages/tr/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
10
2021-04-02T20:57:38.000Z
2021-11-17T07:35:59.000Z
from typing import Any from wav2vec_toolkit.text_preprocessing.normalizers import NormalizerOperation class Normalizer(NormalizerOperation): _whitelist = r"[0-9a-zçğüöşı\-]+" _dictionary = {} _do_lowercase = True _text_key_name = "sentence"
23.636364
78
0.757692
796a785ba3a4b8332cc9000e0c06bca7eee77429
685
py
Python
app/core/migrations/0003_ingrediant.py
mmansuri8701/recipe-app-api
ac587d203fd09dadc06f83e5419f034bcdbc93c7
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingrediant.py
mmansuri8701/recipe-app-api
ac587d203fd09dadc06f83e5419f034bcdbc93c7
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingrediant.py
mmansuri8701/recipe-app-api
ac587d203fd09dadc06f83e5419f034bcdbc93c7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2019-12-23 12:33 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( n...
28.541667
118
0.617518
796a789337cc8da7248fb4afafb4e6cd88d75e51
452
py
Python
setup.py
beakerman29/GetTempCreds
5c6d14a78a598cdcc9627945ca3c933288f5a229
[ "MIT" ]
null
null
null
setup.py
beakerman29/GetTempCreds
5c6d14a78a598cdcc9627945ca3c933288f5a229
[ "MIT" ]
null
null
null
setup.py
beakerman29/GetTempCreds
5c6d14a78a598cdcc9627945ca3c933288f5a229
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name='GoOktaBoto', version='0.0.7', packages=setuptools.find_packages(), url='https://github.com/beakerman29/GetTempCreds', license='MIT', author='Matthew Ramsey', author_email='matthew.ramsey@live.com', description='a package to make using the GO okt...
26.588235
102
0.679204
796a78c40e9bd132dcffd5d17b14ee1376aad5a9
1,482
py
Python
GL_synthesis_tool.py
Engineering-Course/Tacotron-2
022c103b940b4f50b6775fa6eed52717be21f8f9
[ "MIT" ]
null
null
null
GL_synthesis_tool.py
Engineering-Course/Tacotron-2
022c103b940b4f50b6775fa6eed52717be21f8f9
[ "MIT" ]
null
null
null
GL_synthesis_tool.py
Engineering-Course/Tacotron-2
022c103b940b4f50b6775fa6eed52717be21f8f9
[ "MIT" ]
null
null
null
import numpy as np from datasets.audio import * import os from hparams import hparams # n_sample = 0 #Change n_steps here # mel_folder = 'logs-Tacotron/mel-spectrograms' #Or change file path # mel_file = 'mel-prediction-step-{}.npy'.format(n_sample) #Or file name (for other generated mels) out_dir = 'wav_out' os.make...
38
153
0.708502
796a78e99b14569029e8bedc4cbfc7d5622c6387
4,837
py
Python
scripts/tlsdb.py
sqs/tlslite
820dfc11e160fbf1b38faaf59bdae7de77ae3077
[ "OpenSSL" ]
1
2015-07-08T12:44:31.000Z
2015-07-08T12:44:31.000Z
scripts/tlsdb.py
d-mo/tlslite-0.38-DH_ANON
98e1e481ab1218dec4f588f864075b54206ebfae
[ "OpenSSL" ]
2
2015-02-10T10:10:35.000Z
2015-12-26T08:20:13.000Z
scripts/tlsdb.py
d-mo/tlslite-0.38-DH_ANON
98e1e481ab1218dec4f588f864075b54206ebfae
[ "OpenSSL" ]
null
null
null
#!/usr/bin/env python import sys import os import socket import thread import math try: import cryptoIDlib cryptoIDlibLoaded = True except: cryptoIDlibLoaded = False if __name__ != "__main__": raise "This must be run as a command, not used as a module!" from tlslite.api import * if len(sys.argv) ...
24.805128
85
0.507546
796a79154ef0252faac31a2391b70225927af6b5
1,248
py
Python
cap_fake.py
mhfrantz/alertfeed
6886d09bcd80e26bb06af39f1397ccbd03dd4a8c
[ "Apache-2.0" ]
1
2018-07-31T00:06:24.000Z
2018-07-31T00:06:24.000Z
cap_fake.py
mhfrantz/alertfeed
6886d09bcd80e26bb06af39f1397ccbd03dd4a8c
[ "Apache-2.0" ]
null
null
null
cap_fake.py
mhfrantz/alertfeed
6886d09bcd80e26bb06af39f1397ccbd03dd4a8c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.4 # # Copyright 2009 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...
32.842105
78
0.728365
796a79bad7c00ccb7fd067ed8918d3205891bdc5
4,431
py
Python
test/test_u2f_v2.py
o-/python-u2flib-host
27dc866368f96f071c9edb3ba90bd628f14ad21c
[ "BSD-2-Clause" ]
43
2015-01-12T18:27:25.000Z
2021-11-16T21:11:56.000Z
test/test_u2f_v2.py
o-/python-u2flib-host
27dc866368f96f071c9edb3ba90bd628f14ad21c
[ "BSD-2-Clause" ]
35
2015-04-07T18:01:43.000Z
2019-12-05T12:25:30.000Z
test/test_u2f_v2.py
o-/python-u2flib-host
27dc866368f96f071c9edb3ba90bd628f14ad21c
[ "BSD-2-Clause" ]
26
2015-02-25T15:31:04.000Z
2021-11-16T21:11:40.000Z
# Copyright (c) 2016 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
36.619835
79
0.695554
796a7a46d41efe71b492b9f15f97967e75322b65
14,310
py
Python
adafruit_pyportal/__init__.py
makermelissa/Adafruit_Blinka_PyPortal
983e111b2b04d1b7664f00e526e4ac565b2b2248
[ "Unlicense", "MIT-0", "MIT" ]
1
2021-07-10T08:28:55.000Z
2021-07-10T08:28:55.000Z
adafruit_pyportal/__init__.py
makermelissa/Adafruit_Blinka_PyPortal
983e111b2b04d1b7664f00e526e4ac565b2b2248
[ "Unlicense", "MIT-0", "MIT" ]
12
2020-06-29T16:44:38.000Z
2021-06-22T01:32:17.000Z
adafruit_pyportal/__init__.py
makermelissa/Adafruit_Blinka_PyPortal
983e111b2b04d1b7664f00e526e4ac565b2b2248
[ "Unlicense", "MIT-0", "MIT" ]
3
2020-06-26T16:00:47.000Z
2020-12-07T13:51:51.000Z
# SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams, written for Adafruit Industries # # SPDX-License-Identifier: Unlicense """ `adafruit_pyportal` ================================================================================ A port of the PyPortal library intended to run on Blinka in CPython. * Author(s): Mel...
39.421488
124
0.593082
796a7bf28965da360d864d1d835bc84d490271d2
2,568
py
Python
colour/examples/plotting/examples_blindness.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
2
2020-06-20T03:44:41.000Z
2020-06-20T14:08:41.000Z
colour/examples/plotting/examples_blindness.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
null
null
null
colour/examples/plotting/examples_blindness.py
OmarWagih1/colour
bdc880a2783ff523dafb19f1233212dd03a639bd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Showcases corresponding colour blindness plotting examples. """ import numpy as np import os import colour from colour.plotting import (colour_style, plot_cvd_simulation_Machado2009, plot_image) from colour.utilities.verbose import message_box RESOURCES_DIRECT...
30.571429
77
0.672118
796a7c12709cb064200746f145a27e3046196612
624
py
Python
app.py
PraderioM/QRMessageGenerator
08414156442c597e701cbc66cf27698aeca2f2b1
[ "MIT" ]
null
null
null
app.py
PraderioM/QRMessageGenerator
08414156442c597e701cbc66cf27698aeca2f2b1
[ "MIT" ]
null
null
null
app.py
PraderioM/QRMessageGenerator
08414156442c597e701cbc66cf27698aeca2f2b1
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template, make_response, request app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/main.js') def main_js(): return render_template('main.js') @app.route('/davidshimjs-qrcodejs/qrcode.js') def qr_code_js(): r...
19.5
64
0.705128
796a7d81f20a6a37faaaf4cf73cc02982775cd6d
1,000
py
Python
NLP scripts for Indo_European/preprocess/2_preprocess.py
NikolaiS1900/sort.py
ed1b21c41212f66e57187abb5ae111734559e376
[ "MIT" ]
null
null
null
NLP scripts for Indo_European/preprocess/2_preprocess.py
NikolaiS1900/sort.py
ed1b21c41212f66e57187abb5ae111734559e376
[ "MIT" ]
null
null
null
NLP scripts for Indo_European/preprocess/2_preprocess.py
NikolaiS1900/sort.py
ed1b21c41212f66e57187abb5ae111734559e376
[ "MIT" ]
null
null
null
import glob, os, re from path_finder import path_finder CWD = os.getcwd() PATH = path_finder() for filename in glob.glob(PATH+'/Target_text/*.txt'): with open(filename, 'r', encoding='UTF-8') as f: READ_TEXT = f.read() for filename in glob.glob(CWD+'/Result_character_list/*.txt'): with open(filename, 'r', encodi...
22.727273
88
0.692
796a7f7cdb8f50780d4627a6a32a5c3e90849c27
1,542
py
Python
p8.py
sidrocks123/project-euler
f3aac642d85398095229d6e37143cbd723984254
[ "MIT" ]
null
null
null
p8.py
sidrocks123/project-euler
f3aac642d85398095229d6e37143cbd723984254
[ "MIT" ]
null
null
null
p8.py
sidrocks123/project-euler
f3aac642d85398095229d6e37143cbd723984254
[ "MIT" ]
null
null
null
import math as m def num2array(n): return [int(i) for i in str(n)] def greatestProductThirteen(n): ans = num2array(n) size = len(ans) prod = 1 count = 0 while(count != (size - 14)): temp = ans[count] * ans[count+1] * ans[count+2] * ans[count+3] * ans[count+4] * ans[count+5] * ans[count...
81.157895
1,032
0.851492
796a802aa1f9169153e876617685c5a81bf04b09
169
py
Python
010-b-print.py
catherinedevlin/just-enough-python
3e272d37cbe68eed3e90fb472cfb4caf0a571881
[ "MIT" ]
5
2019-07-25T13:54:44.000Z
2021-02-05T12:16:53.000Z
010-b-print.py
catherinedevlin/just-enough-python
3e272d37cbe68eed3e90fb472cfb4caf0a571881
[ "MIT" ]
null
null
null
010-b-print.py
catherinedevlin/just-enough-python
3e272d37cbe68eed3e90fb472cfb4caf0a571881
[ "MIT" ]
null
null
null
# Give yourself a nice cheer - # print out Go Whateveryournameis! print( ) # Did you get an error? # Remember that you need to wrap something around text...
21.125
57
0.680473
796a808e02699413c634d708930be0070a6c23d1
86,779
py
Python
RecoLuminosity/LumiDB/python/lumiQueryAPI.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
RecoLuminosity/LumiDB/python/lumiQueryAPI.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
RecoLuminosity/LumiDB/python/lumiQueryAPI.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import os import coral,datetime from RecoLuminosity.LumiDB import nameDealer,lumiTime,CommonUtil,lumiCorrections import array import argparse import six from RecoLuminosity.LumiDB import nameDealer, selectionParser, hltTrgSeedMapper, \ connectstrParser, cacheconfigParser, tablePrinter, csvReporter, csvSelectionP...
46.134503
630
0.648406
796a81635ff001cb8181b5f39e8938414b07724c
6,425
py
Python
bentoctl/cli/__init__.py
yubozhao/bentoctl
e2a831508e5625cde1001813a5edf0b3a7d16456
[ "Apache-2.0" ]
1
2022-02-10T16:41:59.000Z
2022-02-10T16:41:59.000Z
bentoctl/cli/__init__.py
liangkai1001/bentoctl
a30f9d61cccec182fe366efd61d847fcfcce3bf4
[ "Apache-2.0" ]
null
null
null
bentoctl/cli/__init__.py
liangkai1001/bentoctl
a30f9d61cccec182fe366efd61d847fcfcce3bf4
[ "Apache-2.0" ]
null
null
null
import sys from pathlib import Path import click import cloup import yaml from cloup import Section from bentoctl import __version__ from bentoctl.cli.interactive import deployment_config_builder from bentoctl.cli.operator_management import get_operator_management_subcommands from bentoctl.cli.utils import BentoctlCo...
29.472477
87
0.684047
796a81e04ad0ec8b596fe1c8c1f0c56c54e78531
2,490
py
Python
unit1/lecture1/exercises/exercise2_kanpsack.py
syenpark/Intro2CTandDS
a5a4b0c23e401a1c49db72cbb5797675c83d7fc5
[ "MIT" ]
null
null
null
unit1/lecture1/exercises/exercise2_kanpsack.py
syenpark/Intro2CTandDS
a5a4b0c23e401a1c49db72cbb5797675c83d7fc5
[ "MIT" ]
null
null
null
unit1/lecture1/exercises/exercise2_kanpsack.py
syenpark/Intro2CTandDS
a5a4b0c23e401a1c49db72cbb5797675c83d7fc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor @auther: syenpark Python Version: 3.6 """ class Item(object): def __init__(self, name, value, weight): self.name = name self.value = value self.weight = weight def get_value(self): return self.value def get_weight(self): ...
24.9
84
0.617671
796a828909735466962c4b7a171b88a9ed169f74
5,242
py
Python
demo.py
warcraft12321/Hyperfoods
b995cd7afe10fcbd338158c80f53ce637bfffc0c
[ "MIT" ]
51
2020-01-26T23:32:57.000Z
2022-03-20T14:49:57.000Z
demo.py
warcraft12321/Hyperfoods
b995cd7afe10fcbd338158c80f53ce637bfffc0c
[ "MIT" ]
2
2020-12-19T20:00:28.000Z
2021-03-03T20:22:45.000Z
demo.py
warcraft12321/Hyperfoods
b995cd7afe10fcbd338158c80f53ce637bfffc0c
[ "MIT" ]
33
2020-02-18T16:15:48.000Z
2022-03-24T15:12:05.000Z
#!/usr/bin/env python # coding: utf-8 # ## Inverse Cooking: Recipe Generation from Food Images import torch import os from src.args import get_parser import pickle from src.model import get_model from torchvision import transforms from src.utils.output_utils import prepare_output from PIL import Image import time imp...
28.335135
110
0.694201
796a82fed92d38b7bb834b106b856186dd85aff1
1,552
py
Python
tests/test_client.py
miguelgrinberg/api-pycon2014
9a1e036d0851b93545b1d0bd0309d61cc01f3d89
[ "MIT" ]
88
2015-01-01T14:08:51.000Z
2020-11-02T04:45:15.000Z
tests/test_client.py
miguelgrinberg/api-pycon2014
9a1e036d0851b93545b1d0bd0309d61cc01f3d89
[ "MIT" ]
1
2019-01-13T19:46:52.000Z
2019-01-13T19:46:52.000Z
tests/test_client.py
miguelgrinberg/api-pycon2014
9a1e036d0851b93545b1d0bd0309d61cc01f3d89
[ "MIT" ]
30
2015-03-11T23:04:24.000Z
2021-11-09T18:44:32.000Z
from base64 import b64encode from werkzeug.exceptions import HTTPException import json class TestClient(): def __init__(self, app, username, password): self.app = app self.auth = 'Basic ' + b64encode((username + ':' + password) .encode('utf-8')).decode('utf...
35.272727
74
0.561211
796a83613ffc3f1dccfd6097a3b667d41ae0560d
3,715
py
Python
src/pipelines/hospitalizations/gb_authority.py
dpshelio/covid-19-open-data
45d71b52ddf022f874b10b1ebab02ce4ff5561b4
[ "Apache-2.0" ]
null
null
null
src/pipelines/hospitalizations/gb_authority.py
dpshelio/covid-19-open-data
45d71b52ddf022f874b10b1ebab02ce4ff5561b4
[ "Apache-2.0" ]
null
null
null
src/pipelines/hospitalizations/gb_authority.py
dpshelio/covid-19-open-data
45d71b52ddf022f874b10b1ebab02ce4ff5561b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.421569
99
0.647914
796a8424a341f36e2b818af219ce6461e78cff4e
1,084
py
Python
rlberry/envs/bullet3/pybullet_envs/__init__.py
riccardodv/rlberry
8bb03772cda1e13c57de0e1da7bc7356a3014cfb
[ "MIT" ]
null
null
null
rlberry/envs/bullet3/pybullet_envs/__init__.py
riccardodv/rlberry
8bb03772cda1e13c57de0e1da7bc7356a3014cfb
[ "MIT" ]
2
2021-11-17T02:18:58.000Z
2022-02-01T14:51:48.000Z
rlberry/envs/bullet3/pybullet_envs/__init__.py
riccardodv/rlberry
8bb03772cda1e13c57de0e1da7bc7356a3014cfb
[ "MIT" ]
null
null
null
import gym from gym.envs.registration import registry, make, spec def register(id, *args, **kvargs): if id in registry.env_specs: return else: return gym.envs.registration.register(id, *args, **kvargs) # ------------bullet------------- register( id="PendulumBulletEnv-v0", entry_poin...
26.439024
104
0.74262
796a845b52ecca991b2e86a0f83417257cd60db3
400
py
Python
src/pyfx/view/theme/theme_config.py
cielong/pyfx
8c7ad55854a4f8cc59efa9f770b07f64522187e6
[ "MIT" ]
9
2020-10-09T05:45:32.000Z
2022-03-01T01:38:27.000Z
src/pyfx/view/theme/theme_config.py
cielong/pyfx
8c7ad55854a4f8cc59efa9f770b07f64522187e6
[ "MIT" ]
19
2020-12-22T00:08:50.000Z
2022-03-12T00:16:06.000Z
src/pyfx/view/theme/theme_config.py
cielong/pyfx
8c7ad55854a4f8cc59efa9f770b07f64522187e6
[ "MIT" ]
1
2020-11-26T14:39:10.000Z
2020-11-26T14:39:10.000Z
from dataclasses import dataclass, field from .theme_config_parser import create_palette from .theme import Theme @dataclass(frozen=True) class ThemeConfiguration: theme: str = "basic" color_scheme: Theme = field(init=False) def __post_init__(self): # replace theme name with actual palette sche...
25
76
0.7475
796a850dd8a39e780d7335b0dac89761a2e6189d
2,754
py
Python
evaluate_recon_cd.py
kampta/multiview-shapes
a79eb4b492be8c2c279e2c69b13d5a19dff1621b
[ "MIT" ]
null
null
null
evaluate_recon_cd.py
kampta/multiview-shapes
a79eb4b492be8c2c279e2c69b13d5a19dff1621b
[ "MIT" ]
null
null
null
evaluate_recon_cd.py
kampta/multiview-shapes
a79eb4b492be8c2c279e2c69b13d5a19dff1621b
[ "MIT" ]
null
null
null
import numpy as np from scipy.spatial import cKDTree as KDTree import math import argparse # ref: https://github.com/facebookresearch/DeepSDF/blob/master/deep_sdf/metrics/chamfer.py # takes one pair of reconstructed and gt point cloud and return the cd def compute_cd(gt_points, gen_points): # one direction ...
35.766234
122
0.707335
796a8620b89985e21c6fa095f26c9a81bfc6f1c7
4,458
py
Python
webauthn2/providers/webcookie.py
informatics-isi-edu/webauthn
8117aa2b2d81ca528ff964f5b4fed6ea601e704f
[ "Apache-2.0" ]
2
2018-05-08T19:31:44.000Z
2022-01-15T19:07:52.000Z
webauthn2/providers/webcookie.py
informatics-isi-edu/webauthn
8117aa2b2d81ca528ff964f5b4fed6ea601e704f
[ "Apache-2.0" ]
65
2015-12-18T21:32:17.000Z
2022-02-03T03:23:36.000Z
webauthn2/providers/webcookie.py
informatics-isi-edu/webauthn
8117aa2b2d81ca528ff964f5b4fed6ea601e704f
[ "Apache-2.0" ]
1
2015-05-14T21:03:27.000Z
2015-05-14T21:03:27.000Z
# # Copyright 2010-2017 University of Southern California # # 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...
30.121622
91
0.590175
796a86727b60d9af1af769d5ec938419e7826bcb
1,683
py
Python
SimplePyGA/Environment.py
UglySoftware/SimplePyGA
2cc0ef5709800059b323de2be6ea8bf77fb94384
[ "MIT" ]
1
2019-09-03T17:52:12.000Z
2019-09-03T17:52:12.000Z
SimplePyGA/Environment.py
UglySoftware/SimplePyGA
2cc0ef5709800059b323de2be6ea8bf77fb94384
[ "MIT" ]
null
null
null
SimplePyGA/Environment.py
UglySoftware/SimplePyGA
2cc0ef5709800059b323de2be6ea8bf77fb94384
[ "MIT" ]
1
2019-09-03T17:52:13.000Z
2019-09-03T17:52:13.000Z
#----------------------------------------------------------------------- # # Environment.py # # Settings that define the environment for a Genetic Algorithm (GA) # experiment to run in the SimplePyGA framework # # Copyright and Distribution # # Part of SimplePyGA: Simple Genetic Algorithms in Python # Copyright...
29.017241
109
0.720143
796a86ae50bc63fef84c3416748915e429d8d468
5,838
py
Python
datasets/Greek_National_Exams/generate_preferences.py
ntzia/stable-marriage
80116a3a2aaa45689b404c9e684ea57c99bc5902
[ "MIT" ]
1
2020-09-26T08:34:29.000Z
2020-09-26T08:34:29.000Z
datasets/Greek_National_Exams/generate_preferences.py
ntzia/stable-marriage
80116a3a2aaa45689b404c9e684ea57c99bc5902
[ "MIT" ]
null
null
null
datasets/Greek_National_Exams/generate_preferences.py
ntzia/stable-marriage
80116a3a2aaa45689b404c9e684ea57c99bc5902
[ "MIT" ]
1
2020-09-01T20:38:35.000Z
2020-09-01T20:38:35.000Z
#!/usr/bin/env python import sys import os import numpy as np from random import randint from random import shuffle import operator import math if len(sys.argv) != 7: print "Usage: " + sys.argv[0] + " percentUsed studentOutFile schoolOutFile schoolClusters (-succinct | -complete) (-diverse | -skewed)" sys.exit(1) ...
29.938462
184
0.700582
796a86d565ad6fc291861482232077d0fb38f3d5
429
py
Python
packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linecolor.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linecolor.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linecolor.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="linecolor", parent_name="layout.ternary.aaxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, par...
30.642857
83
0.659674
796a8766e52dcb19a710b63299307c8524c4daa7
8,259
py
Python
flare/mgp/splines_methods.py
aaronchen0316/flare
47a2a89af635dfec6b41a873625ac2411da14ebb
[ "MIT" ]
144
2019-04-03T21:23:31.000Z
2022-03-27T09:09:24.000Z
flare/mgp/splines_methods.py
aaronchen0316/flare
47a2a89af635dfec6b41a873625ac2411da14ebb
[ "MIT" ]
217
2019-09-04T16:01:15.000Z
2022-03-31T20:36:10.000Z
flare/mgp/splines_methods.py
aaronchen0316/flare
47a2a89af635dfec6b41a873625ac2411da14ebb
[ "MIT" ]
46
2019-04-26T03:19:29.000Z
2022-03-22T08:14:58.000Z
"""Cubic spline functions used for interpolation. """ import numpy as np import numpy from flare.mgp.cubic_splines_numba import * class PCASplines: """ Build splines for PCA decomposition, mainly used for the mapping of the variance :param l_bounds: lower bound for the interpolation. \ E.g. 1-d ...
32.515748
97
0.606853
796a87881d2d49e55686161ac3c97c421f54b1ff
2,250
py
Python
transaction_manager.py
samirma/BasicDefiToolkit
9f39c710cd7c5cd0f0fb648443e0247f76812521
[ "MIT" ]
null
null
null
transaction_manager.py
samirma/BasicDefiToolkit
9f39c710cd7c5cd0f0fb648443e0247f76812521
[ "MIT" ]
null
null
null
transaction_manager.py
samirma/BasicDefiToolkit
9f39c710cd7c5cd0f0fb648443e0247f76812521
[ "MIT" ]
null
null
null
from web3 import Web3 from web3.contract import ContractFunction class style(): BLACK = '\033[30m' RED = '\033[31m' GREEN = '\033[32m' YELLOW = '\033[33m' BLUE = '\033[34m' MAGENTA = '\033[35m' CYAN = '\033[36m' WHITE = '\033[37m' UNDERLINE = '\033[4m' RESET = '\033[0m' class T...
33.58209
100
0.638667
796a8840490f3bb1e8690a887b45ffc2fd4a969b
408
py
Python
client.py
u1i/jogu
997149b5996dc6d816488808f31cc40245bf7f2c
[ "MIT" ]
null
null
null
client.py
u1i/jogu
997149b5996dc6d816488808f31cc40245bf7f2c
[ "MIT" ]
null
null
null
client.py
u1i/jogu
997149b5996dc6d816488808f31cc40245bf7f2c
[ "MIT" ]
null
null
null
import requests, shutil url = "http://localhost:8080/api/pdf" payload = "<h1>Hello this is a test</h1>\n<img src=\"http://www2.sotong.io/static/tintin.jpg\">\n<a href=\"https://github.com/u1i/jogu\">generated by jogu</a>" data = requests.request("POST", url, data=payload, stream=True) with open('out.pdf', mode='w')...
31.384615
159
0.683824
796a8847c4447f6928cced60144193558118e14f
1,591
py
Python
setup.py
standage/contra
f919922ab699ec9cbae241fc58f011c2db3b5827
[ "MIT" ]
null
null
null
setup.py
standage/contra
f919922ab699ec9cbae241fc58f011c2db3b5827
[ "MIT" ]
7
2016-09-22T21:45:15.000Z
2018-06-07T21:55:58.000Z
setup.py
standage/contra
f919922ab699ec9cbae241fc58f011c2db3b5827
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # ----------------------------------------------------------------------------- # Copyright (c) 2016 Daniel Standage <daniel.standage@gmail.com> # # This file is part of contra (http://github.com/standage/contra) and is # licensed under the MIT license: see LICENSE.txt. # ---------------------...
32.469388
79
0.585795
796a886a4a1794292b0b2038046e54a5a3ef1778
22,063
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 may ...
38.437282
123
0.722205
796a89abeee3280f0dc7a829dfef6c981ac1dbef
4,262
py
Python
pymms/data/edi.py
eom1002/pymms
f394e6ce1bd4172fe0ed4598a60ff70000ef2072
[ "MIT" ]
1
2020-09-22T00:57:58.000Z
2020-09-22T00:57:58.000Z
pymms/data/edi.py
eom1002/pymms
f394e6ce1bd4172fe0ed4598a60ff70000ef2072
[ "MIT" ]
5
2019-09-17T05:02:41.000Z
2021-06-12T10:39:50.000Z
pymms/data/edi.py
eom1002/pymms
f394e6ce1bd4172fe0ed4598a60ff70000ef2072
[ "MIT" ]
17
2018-04-19T20:27:34.000Z
2021-04-05T18:37:31.000Z
import xarray as xr from pymms.data import util from pymms.sdc import mrmms_sdc_api as api def rename(data, sc, mode, level, optdesc): ''' Rename standard variables names to something more memorable. Parameters ---------- data : `xarray.Dataset` Data to be renamed sc : str ...
34.096
76
0.562647
796a8abd57bde667efccaf006740b07167512bc2
2,910
py
Python
pydora/mpg123.py
NextGenTechBar/twandora
f626717a5580f82250bbe66d4ebc357e0882382c
[ "MIT" ]
null
null
null
pydora/mpg123.py
NextGenTechBar/twandora
f626717a5580f82250bbe66d4ebc357e0882382c
[ "MIT" ]
null
null
null
pydora/mpg123.py
NextGenTechBar/twandora
f626717a5580f82250bbe66d4ebc357e0882382c
[ "MIT" ]
null
null
null
import select from .utils import iterate_forever, SilentPopen class Player(object): """Remote control for an mpg123 process Starts and owns a handle to an mpg123 process then feeds commands to it to play pandora audio """ def __init__(self, callbacks, control_channel): self._control_cha...
28.811881
79
0.559794
796a8ba66b805a56846c0edb4a632fe5efedbcb2
1,154
py
Python
simulator/initializer.py
anushkrishnav/QVR
09867a701e6f158b3f4624bb3cda4d34b55dc040
[ "MIT" ]
2
2021-02-08T17:15:17.000Z
2021-11-09T05:40:50.000Z
simulator/initializer.py
anushkrishnav/QVR
09867a701e6f158b3f4624bb3cda4d34b55dc040
[ "MIT" ]
null
null
null
simulator/initializer.py
anushkrishnav/QVR
09867a701e6f158b3f4624bb3cda4d34b55dc040
[ "MIT" ]
2
2021-02-08T17:01:16.000Z
2021-02-08T17:15:20.000Z
import numpy as np from math import radians, cos, sin, asin, sqrt class Initializer: def __init__(self, n): self.n = n def generate_instance(self, xc, yc): n = self.n instance = np.zeros([n, n]) for ii in range(0, n): for jj in range(ii + 1, n): ...
25.644444
75
0.52253
796a8bb44bb8d528778bc17268106fe52d11c080
13,307
py
Python
NCC-NN-training.py
kyrs/NCC-experiments
71112f0e4118ba206d22635675fe8c1ebaed5ccb
[ "MIT" ]
13
2019-05-08T20:56:24.000Z
2021-12-23T19:14:13.000Z
NCC-NN-training.py
kyrs/NCC-experiments
71112f0e4118ba206d22635675fe8c1ebaed5ccb
[ "MIT" ]
6
2019-08-14T07:07:46.000Z
2021-06-01T13:48:33.000Z
NCC-NN-training.py
kyrs/NCC-experiments
71112f0e4118ba206d22635675fe8c1ebaed5ccb
[ "MIT" ]
1
2021-06-08T04:56:39.000Z
2021-06-08T04:56:39.000Z
""" __Author__ : Kumar Shubham __desc__ : file for training an NCC model based on the data which has been genereated """ import tensorflow as tf import json import os from collections import Counter import random import numpy as np import pickle class NCCTrain(object): def __init__(self,fileName,trai...
36.759669
239
0.672729
796a8bdebd0aac955e29b98b05663766655c7d70
30,288
py
Python
sentence_transformers/SentenceTransformer.py
adbelniak/sentence-transformers
69bedda3b9ee6c889059222bd39427f7d074b0f7
[ "Apache-2.0" ]
2
2021-03-29T07:34:50.000Z
2021-04-28T12:35:56.000Z
sentence_transformers/SentenceTransformer.py
vladimir-rigvava/sentence-transformers
a36e6f126cf0e333e1b00eb7cfcef2863f8919ad
[ "Apache-2.0" ]
null
null
null
sentence_transformers/SentenceTransformer.py
vladimir-rigvava/sentence-transformers
a36e6f126cf0e333e1b00eb7cfcef2863f8919ad
[ "Apache-2.0" ]
1
2021-04-20T14:20:09.000Z
2021-04-20T14:20:09.000Z
import json import logging import os import shutil from collections import OrderedDict from typing import List, Dict, Tuple, Iterable, Type, Union, Callable from zipfile import ZipFile import requests import numpy as np from numpy import ndarray import transformers import torch from torch import nn, Tensor, device from...
44.475771
279
0.620873
796a8cdfcc8ad54537a3aa767ff8ec0057156993
729
py
Python
social_network/posts/models.py
mupastir/social_network
ff75f63210aea719bc39bedf6b9571bba09f4174
[ "MIT" ]
1
2021-05-17T07:18:01.000Z
2021-05-17T07:18:01.000Z
social_network/posts/models.py
mupastir/social_network
ff75f63210aea719bc39bedf6b9571bba09f4174
[ "MIT" ]
null
null
null
social_network/posts/models.py
mupastir/social_network
ff75f63210aea719bc39bedf6b9571bba09f4174
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ class Post(models.Model): title = models.CharField(max_length=144, blank=False) content = models.TextField(max_length=4096) author = models.ForeignKey('users.User', on_delete=models.CASCADE) class Meta: uniqu...
29.16
70
0.677641
796a8e341b98868cd09014f776a506980fa7e5a0
1,274
py
Python
practice/coursera/p04_dynamic_prog2/p04_1_max_gold_knapsack.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
null
null
null
practice/coursera/p04_dynamic_prog2/p04_1_max_gold_knapsack.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
null
null
null
practice/coursera/p04_dynamic_prog2/p04_1_max_gold_knapsack.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
1
2020-08-06T16:50:07.000Z
2020-08-06T16:50:07.000Z
# Uses python3 import sys def knapsack_wo_rep(capacity, weights, values): '''Discrete knapsack without repetition. Example: >>> knapsack_wo_rep(10, [6, 3, 4, 2], [30, 14, 16, 9]): 46 ''' # T[i][u] = opt value of knapasack with capacity u and first i items T = [[0] * (capacity + 1...
21.59322
72
0.522763
796a8e51cd19ee952dcf65ddc510a714d36102ae
7,718
py
Python
Restcomm_Python_SDk/Test/CallTest/CallTests.py
jackdown/restcomm-sdk-python
ed7e5ec9e6ffe8c7228b089b1479da975a9ca7e4
[ "MIT" ]
2
2019-05-28T15:02:50.000Z
2019-08-23T15:58:10.000Z
Restcomm_Python_SDk/Test/CallTest/CallTests.py
jackdown/restcomm-sdk-python
ed7e5ec9e6ffe8c7228b089b1479da975a9ca7e4
[ "MIT" ]
12
2017-06-08T10:35:48.000Z
2017-10-09T08:04:21.000Z
Restcomm_Python_SDk/Test/CallTest/CallTests.py
jackdown/restcomm-sdk-python
ed7e5ec9e6ffe8c7228b089b1479da975a9ca7e4
[ "MIT" ]
4
2017-06-01T05:00:47.000Z
2021-02-10T11:38:03.000Z
''' * TeleStax, Open Source Cloud Communications * Copyright 2011-2016, Telestax Inc and individual contributors * by the @authors tag. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; ei...
34.302222
96
0.579036
796a8eb5635466139c7409b6458890909d9c77a4
4,586
py
Python
setup.py
matusnovak/homelab
b65686de504c963162821583b56366dbd5915fd2
[ "Unlicense" ]
12
2020-08-06T22:34:49.000Z
2022-03-11T09:51:47.000Z
setup.py
matusnovak/homelab
b65686de504c963162821583b56366dbd5915fd2
[ "Unlicense" ]
4
2020-04-20T18:17:14.000Z
2020-09-11T22:18:39.000Z
setup.py
matusnovak/homelab
b65686de504c963162821583b56366dbd5915fd2
[ "Unlicense" ]
2
2020-03-28T21:39:41.000Z
2021-12-17T00:21:52.000Z
#!/usr/bin/env python3 from string import Template from typing import List import bcrypt import glob import os import sys import re import shutil ROOT_DIR = os.path.dirname(os.path.realpath(__file__)) SALT = bcrypt.gensalt() #UID = os.getuid() UID = 1000 def load_env(path: str) -> dict: env = {} with open(...
25.909605
85
0.616223
796a9062e92b8948226de42620ede8c8cb3b0907
1,634
py
Python
kaggle_vote.py
deqiang179/Paddle-News-Text-Classification
069c9617e7666d3db0a4998f3e1f571f14f406b3
[ "MIT" ]
3
2021-10-08T16:10:23.000Z
2022-01-24T16:16:53.000Z
kaggle_vote.py
deqiang179/Paddle-News-Text-Classification
069c9617e7666d3db0a4998f3e1f571f14f406b3
[ "MIT" ]
null
null
null
kaggle_vote.py
deqiang179/Paddle-News-Text-Classification
069c9617e7666d3db0a4998f3e1f571f14f406b3
[ "MIT" ]
2
2021-11-03T12:53:05.000Z
2022-01-24T16:16:56.000Z
from collections import defaultdict, Counter from glob import glob import sys import re glob_files = sys.argv[1] # 要进行融合的文件 loc_outfile = sys.argv[2] # 输出结果文件 weights_strategy = "uniform" if len(sys.argv) == 4: weights_strategy = sys.argv[3] # 获取权重参数 def kaggle_bag(glob_files, loc_outfile, method="average", w...
38
78
0.624847
796a90ad91859f2fb27ba7f6a37ea51cb41725e7
624
py
Python
chrome/browser/test_presubmit.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/browser/test_presubmit.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
chrome/browser/test_presubmit.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unit test runner for Web Development Style Guide checks.""" from web_dev_style import css_checker_test, \ ...
28.363636
72
0.679487
796a90df794353b272bfd35a7fa3679b9ec9b635
13,569
py
Python
server/embedding_as_service/text/xlnet/models/function_builder.py
prasys/embedding-as-service
b1691cbf1ea1df39c109ace18562c8dc332750ec
[ "MIT" ]
173
2019-07-26T12:48:12.000Z
2022-03-03T16:01:18.000Z
server/embedding_as_service/text/xlnet/models/function_builder.py
prasys/embedding-as-service
b1691cbf1ea1df39c109ace18562c8dc332750ec
[ "MIT" ]
35
2019-05-31T13:02:48.000Z
2022-02-28T10:54:14.000Z
server/embedding_as_service/text/xlnet/models/function_builder.py
prasys/embedding-as-service
b1691cbf1ea1df39c109ace18562c8dc332750ec
[ "MIT" ]
25
2019-07-26T07:15:58.000Z
2021-11-20T20:27:59.000Z
"""doc.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf from embedding_as_service.text.xlnet.models import modeling import xlnet def construct_scalar_host_call( monitor_dict, model_dir, prefix="", reduce...
34.526718
79
0.685386
796a914354cceb1d61ab1fbc12edf1066a983b3d
1,464
py
Python
Projects/Online Workouts/w3resource/Basic - Part-II/program-27.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
1
2019-09-23T15:51:45.000Z
2019-09-23T15:51:45.000Z
Projects/Online Workouts/w3resource/Basic - Part-II/program-27.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
5
2021-02-08T20:47:19.000Z
2022-03-12T00:35:44.000Z
Projects/Online Workouts/w3resource/Basic - Part-II/program-27.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ########################################################################### # # # Program purpose: Determines if a list of integer is an Arithmetic # # or Geometric progression. ...
36.6
75
0.407104
796a916dd352600697b15a3898de27ec2b216992
2,787
py
Python
tests/perf/test_perf_huge_write.py
yaal-coop/sheraf
774e3781bc6ff2e16c6cc39f268d475b5e64fcea
[ "MIT" ]
null
null
null
tests/perf/test_perf_huge_write.py
yaal-coop/sheraf
774e3781bc6ff2e16c6cc39f268d475b5e64fcea
[ "MIT" ]
null
null
null
tests/perf/test_perf_huge_write.py
yaal-coop/sheraf
774e3781bc6ff2e16c6cc39f268d475b5e64fcea
[ "MIT" ]
null
null
null
import datetime import random import persistent import sheraf.types import tests import transaction OBJECTS_NUMBERS = 100_000 class ZODBPersistent(persistent.Persistent): number = "" class Y_ZODBModel(tests.UUIDAutoModel): number = sheraf.SimpleAttribute() class Y_ZODBInlineModel(sheraf.InlineModel): ...
32.788235
84
0.558306
796a93bd5856223b06554c1c03a4fe0a944f5c3b
2,113
py
Python
Code/PasswordFromString/StringChecklist.py
dealom/Package-Project
1feb1c2fc6f12e812a0f732debd2bfdb76588954
[ "MIT" ]
null
null
null
Code/PasswordFromString/StringChecklist.py
dealom/Package-Project
1feb1c2fc6f12e812a0f732debd2bfdb76588954
[ "MIT" ]
null
null
null
Code/PasswordFromString/StringChecklist.py
dealom/Package-Project
1feb1c2fc6f12e812a0f732debd2bfdb76588954
[ "MIT" ]
null
null
null
class Pword: # I want to use certain variables between functions so I'm using a class only for that. def __init__(self,pw): self.pw = pw def checklist(self): self.huge = False # at least 8 chars self.both = False # both upper and lower self.nums = False # both letters and number...
38.418182
196
0.524846
796a9410bce27f8c56fba16cfa143c0fbf769b30
2,979
py
Python
DigitalBiomarkers-Preprocessing/Signal-Alignment/downsample/downsample_with_shapedtw.py
jessilyn/DBDP-1
49308994853d36fa8b24066222851133f6bbf4c7
[ "Apache-2.0" ]
20
2020-01-27T16:32:25.000Z
2021-05-27T15:06:29.000Z
DigitalBiomarkers-Preprocessing/Signal-Alignment/downsample/downsample_with_shapedtw.py
chopeter27/DBDP
99357dac197ceeb8c240ead804dd2c8bd3e3fc93
[ "Apache-2.0" ]
11
2020-01-27T16:22:09.000Z
2020-07-29T20:11:22.000Z
DigitalBiomarkers-Preprocessing/Signal-Alignment/downsample/downsample_with_shapedtw.py
chopeter27/DBDP
99357dac197ceeb8c240ead804dd2c8bd3e3fc93
[ "Apache-2.0" ]
16
2019-04-05T15:01:46.000Z
2021-07-07T05:42:27.000Z
import pandas as pd import math import linecache import numpy as np from scipy import stats from parameter_cal import cf from dtw import dtw import os from scipy.misc import * from sdtw.config import sub_len, nBlocks from sdtw.utils import cal_descriptor, samplingSequences, norm from parameter_cal.utils import get_fact...
40.808219
109
0.727425
796a946ffd424e4e58f5437f0b77204e2806faef
127
py
Python
polls/urls.py
sirdnt/django-practice
2e690bea389d0a0d6794b8e6036b0c5538ba6c68
[ "MIT" ]
1
2020-09-29T09:42:23.000Z
2020-09-29T09:42:23.000Z
polls/urls.py
sirdnt/django-practice
2e690bea389d0a0d6794b8e6036b0c5538ba6c68
[ "MIT" ]
null
null
null
polls/urls.py
sirdnt/django-practice
2e690bea389d0a0d6794b8e6036b0c5538ba6c68
[ "MIT" ]
null
null
null
"""Polls urls""" from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), ]
14.111111
40
0.645669
796a95580312feadcb43e591b514d9da57ef1e5a
2,692
py
Python
lab6/Q6_1_4.py
kommunium/dip-lab
2c8e08a994fb34b87da55da48a7b72b7c13d9c81
[ "MIT" ]
null
null
null
lab6/Q6_1_4.py
kommunium/dip-lab
2c8e08a994fb34b87da55da48a7b72b7c13d9c81
[ "MIT" ]
null
null
null
lab6/Q6_1_4.py
kommunium/dip-lab
2c8e08a994fb34b87da55da48a7b72b7c13d9c81
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image from matplotlib import pyplot as plt # %% Q6_1_4 alpha-trimmed mean filter Q6_1_4 = np.asarray(Image.open("Q6_1_4.tiff")) plt.show() def alpha_filter(img_raw, n: int = 3, d=0.1): m = (n - 1) // 2 trimmed = max(int(d * n ** 2), 1) row, col = img_raw.shape img_...
30.590909
73
0.687593
796a96678bcb2ef124b0e3265b4fff628915672d
51,226
py
Python
rotkehlchen/api/rest.py
hjorthjort/rotki
e45501385e7a5936e85fe795dd4528aff6d67946
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/api/rest.py
hjorthjort/rotki
e45501385e7a5936e85fe795dd4528aff6d67946
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/api/rest.py
hjorthjort/rotki
e45501385e7a5936e85fe795dd4528aff6d67946
[ "BSD-3-Clause" ]
null
null
null
import json import logging import traceback from functools import wraps from http import HTTPStatus from pathlib import Path from typing import Any, Callable, Dict, List, Optional, Union, cast import gevent from flask import Response, make_response from gevent.event import Event from gevent.lock import Semaphore from ...
39.283742
99
0.631398
796a96a584c0c382818bc53c6cd92baeb6f58e63
5,713
py
Python
tensorflow/tensorboard/backend/server.py
returncode13/tensorflow
c5f94b10bbb30e525fa3ca313e7ccb173040c90a
[ "Apache-2.0" ]
6
2017-04-25T01:30:41.000Z
2019-12-11T15:08:46.000Z
tensorflow/tensorboard/backend/server.py
alainrk/tensorflow
314d9cd9b607460f8bfea80fc828b1521ca18443
[ "Apache-2.0" ]
null
null
null
tensorflow/tensorboard/backend/server.py
alainrk/tensorflow
314d9cd9b607460f8bfea80fc828b1521ca18443
[ "Apache-2.0" ]
8
2017-04-17T23:39:12.000Z
2019-05-11T14:06:31.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.624242
80
0.716086
796a97688612830059a143e06c08f86eed3ac0dd
4,370
py
Python
contrib/seeds/generate-seeds.py
afco2021/afco_sourcecode
886fe458a4a7c7f4ac999a8bad64422ad1fd8736
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
afco2021/afco_sourcecode
886fe458a4a7c7f4ac999a8bad64422ad1fd8736
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
afco2021/afco_sourcecode
886fe458a4a7c7f4ac999a8bad64422ad1fd8736
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.438849
99
0.582609
796a97960dbd8ac2c474387b36eeaa8665c98561
2,741
py
Python
desktop/libs/dashboard/src/dashboard/urls.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
3
2018-01-29T14:16:02.000Z
2019-02-05T21:33:05.000Z
desktop/libs/dashboard/src/dashboard/urls.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
1
2019-05-06T15:32:21.000Z
2019-05-06T15:32:21.000Z
desktop/libs/dashboard/src/dashboard/urls.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
2
2019-12-05T17:24:36.000Z
2021-11-22T21:21:32.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
51.716981
109
0.755199
796a981d00ba71271fceaabb48601e8db5e27090
133
py
Python
pages/themes/beginners/SQLalchemy/examples/slides/sqlite_demo.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/SQLalchemy/examples/slides/sqlite_demo.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/SQLalchemy/examples/slides/sqlite_demo.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine engine = create_engine('sqlite:///:memory:') engine.execute("select 'Hello, World!'").scalar()
26.6
49
0.744361
796a982970953147124bbdbf207ece52ef178b6c
8,047
py
Python
openmdao.lib/src/openmdao/lib/optproblems/sellar.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
openmdao.lib/src/openmdao/lib/optproblems/sellar.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
openmdao.lib/src/openmdao/lib/optproblems/sellar.py
swryan/OpenMDAO-Framework
f50d60e1a8cadac7fe03d26ffad5fb660b2a15ec
[ "Apache-2.0" ]
null
null
null
""" Two discipline components. From Sellar's analytic problem. Sellar, R. S., Batill, S. M., and Renaud, J. E., "Response Surface Based, Concurrent Subspace Optimization for Multidisciplinary System Design," Proceedings References 79 of the 34th AIAA Aerospace Sciences Meeting and Exhibit, Reno, NV, Januar...
34.536481
97
0.564807
796a9a215e0cdd97eeba3386573d0bc317671ebf
591
py
Python
Doing Some Math/convert from decimal larger bases.py
dibyanshushekhardey/Data-structures-and-Algorithms-
27a456375897108a3f407fa6082c227cbb393777
[ "MIT" ]
null
null
null
Doing Some Math/convert from decimal larger bases.py
dibyanshushekhardey/Data-structures-and-Algorithms-
27a456375897108a3f407fa6082c227cbb393777
[ "MIT" ]
null
null
null
Doing Some Math/convert from decimal larger bases.py
dibyanshushekhardey/Data-structures-and-Algorithms-
27a456375897108a3f407fa6082c227cbb393777
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 10 23:23:47 2020 @author: Hp """ def convert_from_decimal_larger_bases(number, base): strings = "0123456789ABCDEFGHIJ" result = "" while number > 0: digit = number%base result = strings[digit] + result number = number//base ...
29.55
68
0.64467
796a9a721331c8b65cd70792463652ef41ce9033
2,526
py
Python
aiida/manage/database/integrity/__init__.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/manage/database/integrity/__init__.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/manage/database/integrity/__init__.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
47.660377
116
0.618765
796a9a81439324e07f2b28c224f2537020883ac4
3,524
py
Python
src/bkl/version.py
johnwbyrd/brakefile
774cdc7c394c3e9b191ff84a2ce33c4628fe126a
[ "MIT" ]
null
null
null
src/bkl/version.py
johnwbyrd/brakefile
774cdc7c394c3e9b191ff84a2ce33c4628fe126a
[ "MIT" ]
null
null
null
src/bkl/version.py
johnwbyrd/brakefile
774cdc7c394c3e9b191ff84a2ce33c4628fe126a
[ "MIT" ]
null
null
null
# # This file is part of Bakefile (http://bakefile.org) # # Copyright (C) 2012-2018 Vaclav Slavik # # 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...
40.976744
95
0.627412
796a9afb2c38247d355763eb92229a74d9457c8a
5,780
py
Python
fastavro/six.py
matpuk/fastavro
27a6459269a1e58cd67e28eaac00df3f89c4620c
[ "MIT" ]
null
null
null
fastavro/six.py
matpuk/fastavro
27a6459269a1e58cd67e28eaac00df3f89c4620c
[ "MIT" ]
null
null
null
fastavro/six.py
matpuk/fastavro
27a6459269a1e58cd67e28eaac00df3f89c4620c
[ "MIT" ]
null
null
null
# cython: auto_cpdef=True '''Compatiblity for Python versions. Some of this code is "lifted" from CherryPy. ''' from __future__ import absolute_import import sys from struct import unpack import json _encoding = 'UTF-8' if sys.version_info >= (3, 0): from io import BytesIO as MemoryIO from io import String...
28.756219
78
0.604498
796a9d5b7be2ea82a6452d033c95dc4ea8261b14
1,658
py
Python
docs/example.py
CagtayFabry/sphinx-autosummary-accessors
36c8d963a2c91a1473be717dcfb381fcf903f7ed
[ "MIT" ]
6
2020-07-02T17:37:19.000Z
2021-07-20T07:30:18.000Z
docs/example.py
CagtayFabry/sphinx-autosummary-accessors
36c8d963a2c91a1473be717dcfb381fcf903f7ed
[ "MIT" ]
13
2020-08-07T16:22:41.000Z
2022-02-14T15:09:02.000Z
docs/example.py
keewis/sphinx-autosummary-accessors
758d8131604e5c4c3b26b9a38a09684fd77f9f24
[ "MIT", "BSD-3-Clause" ]
3
2020-08-05T16:39:47.000Z
2021-11-24T12:04:39.000Z
class CachedAccessor: def __init__(self, name, accessor): self._name = name self._accessor = accessor def __get__(self, obj, cls): if obj is None: return self._accessor accessor_obj = self._accessor(obj) setattr(obj, self._name, accessor_obj) return...
18.840909
62
0.568154
796a9d87104a8593517ba139acd62d65d92b29e7
480
py
Python
poem/Poem/api/urls.py
vrdel/poem-react
e96c82bf097afca8c1ed51544a791233cd700b94
[ "Apache-2.0" ]
null
null
null
poem/Poem/api/urls.py
vrdel/poem-react
e96c82bf097afca8c1ed51544a791233cd700b94
[ "Apache-2.0" ]
139
2020-04-06T09:22:16.000Z
2021-08-02T06:39:22.000Z
poem/Poem/api/urls.py
vrdel/poem-react
e96c82bf097afca8c1ed51544a791233cd700b94
[ "Apache-2.0" ]
3
2019-07-10T09:37:38.000Z
2020-04-02T10:48:38.000Z
from django.urls import path from django.conf.urls import include from . import views app_name = 'poem' urlpatterns = [ path('metrics/', views.ListMetrics.as_view()), path('metrics/<str:tag>/', views.ListMetrics.as_view()), path('repos/', views.ListRepos.as_view()), path('repos/<str:profile>/', views...
30
78
0.685417
796a9e15c06cdfaac7977f90cd52400c4e3e4cea
745
py
Python
tools/leetcode.043.Multiply Strings/leetcode.043.Multiply Strings.submission9.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.043.Multiply Strings/leetcode.043.Multiply Strings.submission9.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.043.Multiply Strings/leetcode.043.Multiply Strings.submission9.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution: # @param num1, a string # @param num2, a string # @return a string def multiply(self, num1, num2): res = [0] * (len(num1) + len(num2)) for i in range(len(num1)): basePos = i for j in range(len(num2)): curPos = basePos+j ...
745
745
0.414765