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
acfdae6d28062786239d941a733a2e4bf3fe0e36
3,101
py
Python
src/tests/t_renew.py
Bhanuprakash-ch/kerberos
bb3c878d5034210c656a97562065612611c5a6d2
[ "Apache-2.0" ]
2
2018-01-09T18:23:08.000Z
2018-07-24T23:14:15.000Z
src/tests/t_renew.py
Bhanuprakash-ch/kerberos
bb3c878d5034210c656a97562065612611c5a6d2
[ "Apache-2.0" ]
null
null
null
src/tests/t_renew.py
Bhanuprakash-ch/kerberos
bb3c878d5034210c656a97562065612611c5a6d2
[ "Apache-2.0" ]
3
2017-03-21T18:34:02.000Z
2020-01-22T19:11:53.000Z
#!/usr/bin/python from k5test import * conf = {'realms': {'$realm': {'max_life': '20h', 'max_renewable_life': '20h'}}} realm = K5Realm(create_host=False, get_creds=False, kdc_conf=conf) def test(testname, life, rlife, expect_renewable, env=None): global realm flags = ['-l', life] if rlife is not None: ...
41.346667
79
0.716221
acfdaf805993832142d78251f2fc2ce01b6da5df
1,677
py
Python
algorithms/ror13_add_sub1.py
everybody-lies/hashdb
5539a3b3db48a9c36ec2d1c460b0057c5e13ce3f
[ "Apache-2.0" ]
95
2021-09-17T02:55:07.000Z
2022-03-29T10:54:40.000Z
algorithms/ror13_add_sub1.py
everybody-lies/hashdb
5539a3b3db48a9c36ec2d1c460b0057c5e13ce3f
[ "Apache-2.0" ]
7
2021-10-13T20:18:21.000Z
2022-03-09T23:33:42.000Z
algorithms/ror13_add_sub1.py
everybody-lies/hashdb
5539a3b3db48a9c36ec2d1c460b0057c5e13ce3f
[ "Apache-2.0" ]
11
2021-09-25T00:07:41.000Z
2022-03-22T17:26:37.000Z
#!/usr/bin/env python ######################################################################## # Copyright 2012 Mandiant # Copyright 2014 FireEye # # Mandiant licenses this file to you under the Apache License, Version # 2.0 (the "License"); you may not use this file except in compliance with the # License. You may obt...
31.055556
87
0.628503
acfdafa7fb16ec5f5fe30f62b2a44efc8d7a8605
265
py
Python
ELAB03/03-03.py
tawanchaiii/01204111_63
edf1174f287f5174d93729d9b5c940c74d3b6553
[ "WTFPL" ]
null
null
null
ELAB03/03-03.py
tawanchaiii/01204111_63
edf1174f287f5174d93729d9b5c940c74d3b6553
[ "WTFPL" ]
null
null
null
ELAB03/03-03.py
tawanchaiii/01204111_63
edf1174f287f5174d93729d9b5c940c74d3b6553
[ "WTFPL" ]
null
null
null
prime = list() for i in range(0,10000000): prime.append(True) for i in range(2,1000): for j in range(2,1000): prime[i*j] = False n = int(input("N: ")) while True: if(prime[n]and prime[n+2] ): print(f"({n}, {n+2})") break n=n+1
16.5625
31
0.535849
acfdb0cf2b3947bda82b7f5ee751eb3022dc939d
22,544
py
Python
pgmpy/models/DynamicBayesianNetwork.py
NunoEdgarGFlowHub/pgmpy
ac0ecc8f5bdd14999c386c6b00a3ce77407b83ce
[ "MIT" ]
1
2016-08-27T18:30:57.000Z
2016-08-27T18:30:57.000Z
pgmpy/models/DynamicBayesianNetwork.py
NunoEdgarGFlowHub/pgmpy
ac0ecc8f5bdd14999c386c6b00a3ce77407b83ce
[ "MIT" ]
null
null
null
pgmpy/models/DynamicBayesianNetwork.py
NunoEdgarGFlowHub/pgmpy
ac0ecc8f5bdd14999c386c6b00a3ce77407b83ce
[ "MIT" ]
1
2016-08-27T18:31:00.000Z
2016-08-27T18:31:00.000Z
from itertools import combinations from collections import defaultdict import numpy as np import networkx as nx from pgmpy.factors import TabularCPD from pgmpy.base import DirectedGraph, UndirectedGraph class DynamicBayesianNetwork(DirectedGraph): def __init__(self, ebunch=None): """ Base class ...
41.365138
117
0.490596
acfdb1416a982403235c499bafe29755d8a82462
1,246
py
Python
Content/Middleware/Oracle Weblogic/WorkloadManager/src/weblogic/utils.py
saikirangurijal/cloudcentersuite
5fd1907fdd1c32a8a575e2671b6a9ed9f68f2875
[ "Apache-2.0" ]
8
2018-12-19T00:37:59.000Z
2020-07-16T15:05:40.000Z
Content/Middleware/Oracle Weblogic/WorkloadManager/src/weblogic/utils.py
saikirangurijal/cloudcentersuite
5fd1907fdd1c32a8a575e2671b6a9ed9f68f2875
[ "Apache-2.0" ]
2
2019-03-26T17:53:20.000Z
2019-11-26T15:26:00.000Z
Content/Middleware/Oracle Weblogic/WorkloadManager/src/weblogic/utils.py
saikirangurijal/cloudcentersuite
5fd1907fdd1c32a8a575e2671b6a9ed9f68f2875
[ "Apache-2.0" ]
9
2019-01-09T06:55:48.000Z
2019-11-27T17:55:03.000Z
import sys import os from os.path import exists # Get File Path def get_script_path(): return os.path.dirname(os.path.realpath(sys.argv[0])) # Parse Properties File def parse_file(path): _dict = {} if exists(path): try: fo = open(path, 'r+') lines = fo.readlines() ...
25.428571
86
0.517657
acfdb14ffb6b454a1b81998d2394c692295aab8c
16,531
py
Python
pysnmp-with-texts/IPX-RIP-PRIVATE-MIB.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/IPX-RIP-PRIVATE-MIB.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/IPX-RIP-PRIVATE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module IPX-RIP-PRIVATE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPX-RIP-PRIVATE-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:57:00 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
141.290598
1,742
0.788156
acfdb167142d4b60b476801c5c824005c83c40c9
7,093
py
Python
classifier.py
guybartal/Binha
ca08d4d19f83b03dd2ba005a80967631c76cbb29
[ "MIT" ]
null
null
null
classifier.py
guybartal/Binha
ca08d4d19f83b03dd2ba005a80967631c76cbb29
[ "MIT" ]
null
null
null
classifier.py
guybartal/Binha
ca08d4d19f83b03dd2ba005a80967631c76cbb29
[ "MIT" ]
null
null
null
# ------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # ------------------------------------------------------------- """ Skeleton code showing how to load and run the TensorFlow SavedModel export package from Lobe. """ import argparse fr...
41.479532
136
0.610743
acfdb18bfe00e2a5f8635bee4d3f21064a4edb59
7,801
py
Python
.history/src/data/data_20191028100503.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
.history/src/data/data_20191028100503.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
.history/src/data/data_20191028100503.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from typing import Union from pathlib import Path from nameparser import HumanName class ExtractData: """Extract Titanic data from the Kaggle's train.csv file. """ def __init__(self, filename: Union[str, Path], age_bins=None, drop_columns=None): """Extract T...
32.777311
116
0.590822
acfdb30e2376af410b7c02630f9effff66200fbd
7,380
py
Python
mmdet/core/anchor/anchor_target.py
LiGangszu/PedestrianDetection-HGPD
3874e331c8afe4cc20fc49de7ebdbe77db277c98
[ "Apache-2.0" ]
9
2021-04-02T12:21:38.000Z
2021-08-19T07:55:19.000Z
mmdet/core/anchor/anchor_target.py
LiGangszu/PedestrianDetection-HGPD
3874e331c8afe4cc20fc49de7ebdbe77db277c98
[ "Apache-2.0" ]
1
2021-05-02T18:34:06.000Z
2021-05-12T04:04:57.000Z
mmdet/core/anchor/anchor_target.py
LiGangszu/PedestrianDetection-HGPD
3874e331c8afe4cc20fc49de7ebdbe77db277c98
[ "Apache-2.0" ]
2
2021-04-28T09:27:45.000Z
2021-06-07T12:02:01.000Z
import torch from ..bbox import PseudoSampler, assign_and_sample, bbox2delta, build_assigner from ..utils import multi_apply import pdb def anchor_target(anchor_list, valid_flag_list, gt_bboxes_list, img_metas, target_means, ta...
38.842105
79
0.616802
acfdb4510a793803e1496df55b890ddca807bd7a
9,848
py
Python
sdk/python/pulumi_azure/databasemigration/project.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/databasemigration/project.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/databasemigration/project.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "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 warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
51.831579
223
0.67171
acfdb46da4f5f788ad6a1a8749bd7ea3878b09d0
1,085
py
Python
pyburstlib/wallet_api/utils.py
beatsbears/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
7
2018-03-24T17:26:27.000Z
2020-06-09T10:38:44.000Z
pyburstlib/wallet_api/utils.py
MrPilotMan/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
2
2019-09-09T17:06:43.000Z
2021-06-01T21:20:08.000Z
pyburstlib/wallet_api/utils.py
MrPilotMan/pyburstlib
27722f7f3bb0bc5739110f6c99435d13fa54a1e0
[ "MIT" ]
4
2018-04-10T12:50:55.000Z
2022-03-14T20:30:01.000Z
''' pyburstlib :author: drownedcoast :date: 4-26-2018 ''' from json import loads from pyburstlib.wallet_api.base import BaseApi from pyburstlib.wallet_api.models.utils import * from pyburstlib.constants import BASE_WALLET_PATH class UtilsApi(BaseApi): def rs_convert(self, account_id=None): ''' Co...
31
72
0.584332
acfdb54b25040463e71a95ddffabb3fa61d75efb
158
py
Python
src/keyboard/views.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
4
2018-08-21T05:33:40.000Z
2019-05-06T09:03:06.000Z
src/keyboard/views.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
1
2020-08-09T10:33:58.000Z
2020-08-09T10:33:58.000Z
src/keyboard/views.py
myth/overflow
269f950b6584b327832deb9f9309c2eea527612b
[ "MIT" ]
1
2019-05-06T13:33:06.000Z
2019-05-06T13:33:06.000Z
""" Keyboard views """ from django.views.generic.base import TemplateView class KeyboardIndexView(TemplateView): template_name = 'keyboard/index.html'
15.8
50
0.765823
acfdb5555d92d85b2ccec052f6f0ba7fae7ec838
9,320
py
Python
diofant/integrals/rationaltools.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
diofant/integrals/rationaltools.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
diofant/integrals/rationaltools.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
"""This module implements tools for integrating rational functions.""" from ..core import Dummy, I, Integer, Lambda, Symbol, symbols, sympify from ..domains import ZZ from ..functions import atan, log from ..polys import Poly, RootSum, cancel, resultant, roots from ..simplify import collect from ..solvers import solve...
25.326087
95
0.492167
acfdb5d85535e8be75c8c63268254c423e869ac8
124
py
Python
setup.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
4
2020-06-13T04:51:27.000Z
2021-01-06T15:00:51.000Z
setup.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
10
2021-09-20T15:42:47.000Z
2021-09-23T12:49:51.000Z
setup.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
8
2020-08-28T10:56:02.000Z
2022-02-11T17:06:03.000Z
#!/usr/bin/env python3 # SPDX-License-Identifier: Apache-2.0 # -*- coding: utf-8 -*- from setuptools import setup setup()
15.5
37
0.685484
acfdb5d88d7820ee6112e95eef13369efcbd638b
59,504
py
Python
pybandit/optproblems/continuous.py
chunjenpeng/pyBandit
df14bf0cc263d8fa0ad0a539e94327ac35e33d1c
[ "MIT" ]
1
2018-07-12T08:30:44.000Z
2018-07-12T08:30:44.000Z
pybandit/optproblems/continuous.py
PENGChunJen/pyBandit
df14bf0cc263d8fa0ad0a539e94327ac35e33d1c
[ "MIT" ]
null
null
null
pybandit/optproblems/continuous.py
PENGChunJen/pyBandit
df14bf0cc263d8fa0ad0a539e94327ac35e33d1c
[ "MIT" ]
null
null
null
""" This module contains miscellaneous test problems with continuous/real-valued search space. The problems are mostly from the early days of research on optimization. """ import math import random import itertools from optproblems.base import TestProblem, BoundConstraintsChecker from optproblems.base import Individu...
31.871452
108
0.596212
acfdb60ab0b9bc3d005ce834d055c35ee8134f10
6,267
py
Python
tests/test_masked_dice_loss.py
dyollb/MONAI
9084c452c48095c82c71d4391b3684006e5a3c56
[ "Apache-2.0" ]
2,971
2019-10-16T23:53:16.000Z
2022-03-31T20:58:24.000Z
tests/test_masked_dice_loss.py
dyollb/MONAI
9084c452c48095c82c71d4391b3684006e5a3c56
[ "Apache-2.0" ]
2,851
2020-01-10T16:23:44.000Z
2022-03-31T22:14:53.000Z
tests/test_masked_dice_loss.py
dyollb/MONAI
9084c452c48095c82c71d4391b3684006e5a3c56
[ "Apache-2.0" ]
614
2020-01-14T19:18:01.000Z
2022-03-31T14:06:14.000Z
# Copyright 2020 - 2021 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in wri...
41.78
118
0.505345
acfdb706ff8cf0b5d0922009950ed7e76e33acb1
811
py
Python
ex065.py
isabellahenriques/Python_Estudos
a6e8b829d01a7c9fa34223e096f6389c81f2085c
[ "MIT" ]
null
null
null
ex065.py
isabellahenriques/Python_Estudos
a6e8b829d01a7c9fa34223e096f6389c81f2085c
[ "MIT" ]
null
null
null
ex065.py
isabellahenriques/Python_Estudos
a6e8b829d01a7c9fa34223e096f6389c81f2085c
[ "MIT" ]
null
null
null
'''Crie um programa que leia vários números inteiros pelo teclado. No final da execução, mostre a média entre todos os valores e qual foi o maior e o menor valores lidos. O programa deve perguntar ao usuário se ele quer ou não continuar a digitar valores.''' resp = "S" soma = quant = media = maior = menor = 0 while res...
36.863636
87
0.636252
acfdb70e5a5b6f2e0381705fbba3b362f49ee0b3
31,497
py
Python
swift/container/sync.py
JMD110/swift
58ddca8fa5ccb99447f7dcc0745cc619449a5513
[ "Apache-2.0" ]
1
2022-03-07T06:11:06.000Z
2022-03-07T06:11:06.000Z
swift/container/sync.py
JMD110/swift
58ddca8fa5ccb99447f7dcc0745cc619449a5513
[ "Apache-2.0" ]
null
null
null
swift/container/sync.py
JMD110/swift
58ddca8fa5ccb99447f7dcc0745cc619449a5513
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
46.455752
79
0.546623
acfdb97758e08f0566c58cfb1794553570ef0a54
3,624
py
Python
python/test/lib/util_test.py
andreatulimiero/scion
80446907061356863c03db7ec8b9b3b41944c01e
[ "Apache-2.0" ]
1
2021-05-27T12:40:48.000Z
2021-05-27T12:40:48.000Z
python/test/lib/util_test.py
andreatulimiero/scion
80446907061356863c03db7ec8b9b3b41944c01e
[ "Apache-2.0" ]
1
2019-06-26T06:38:40.000Z
2019-06-26T06:38:40.000Z
python/test/lib/util_test.py
andreatulimiero/scion
80446907061356863c03db7ec8b9b3b41944c01e
[ "Apache-2.0" ]
1
2020-07-06T02:50:04.000Z
2020-07-06T02:50:04.000Z
# Copyright 2015 ETH Zurich # # 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, sof...
32.357143
79
0.675497
acfdb97dd009179b73a4e960e2fef7f44691c52d
2,726
py
Python
CUB-experiments/utils.py
ashleylqx/AIB
77e418cac52f0ca5f2a7c54927468a7bd75a8fc9
[ "MIT" ]
5
2021-05-23T13:05:45.000Z
2022-02-13T21:40:59.000Z
CUB-experiments/utils.py
ashleylqx/AIB
77e418cac52f0ca5f2a7c54927468a7bd75a8fc9
[ "MIT" ]
null
null
null
CUB-experiments/utils.py
ashleylqx/AIB
77e418cac52f0ca5f2a7c54927468a7bd75a8fc9
[ "MIT" ]
3
2021-08-11T03:23:31.000Z
2021-11-17T01:48:52.000Z
import torch from torch import nn from torch.autograd import Variable import cv2 import numpy as np from config import * def str2bool(v): """ codes from : https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse """ if v.lower() in ('yes', 'true', 't', 'y', '1'): ret...
32.070588
128
0.66361
acfdb9a748b2454779e4007a096bb260a412477c
3,292
py
Python
mysite/mysite/settings.py
tailongnguyen/cryptopokemon
801e977d50cf2d18dfb592f6ece91ee6f7eec83e
[ "MIT" ]
4
2018-04-20T08:17:16.000Z
2019-01-02T04:54:36.000Z
mysite/mysite/settings.py
tailongnguyen/ethereum-auction-blockchain
801e977d50cf2d18dfb592f6ece91ee6f7eec83e
[ "MIT" ]
null
null
null
mysite/mysite/settings.py
tailongnguyen/ethereum-auction-blockchain
801e977d50cf2d18dfb592f6ece91ee6f7eec83e
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.3. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os # ...
26.336
91
0.69593
acfdb9bc2b1fc3469e6aa6bacca40d92bae5f15e
1,809
py
Python
tests/quick/se/01.hello-2T-smt/test.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
tests/quick/se/01.hello-2T-smt/test.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
tests/quick/se/01.hello-2T-smt/test.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
# Copyright (c) 2006 The Regents of The University of Michigan # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list ...
53.205882
75
0.772803
acfdba0f37d364daafb1a6ac1fcac3894390409e
305
py
Python
parameter.py
cihan53/CRNN-Keras
7a7c099ab530f009f1bdbf6a844f24750ef2c7ab
[ "MIT" ]
null
null
null
parameter.py
cihan53/CRNN-Keras
7a7c099ab530f009f1bdbf6a844f24750ef2c7ab
[ "MIT" ]
null
null
null
parameter.py
cihan53/CRNN-Keras
7a7c099ab530f009f1bdbf6a844f24750ef2c7ab
[ "MIT" ]
null
null
null
CHAR_VECTOR = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 " letters = [letter for letter in CHAR_VECTOR] num_classes = len(letters) + 1 # img_w, img_h = 128, 64 img_w, img_h = 320, 320 # Network parameters batch_size = 30 val_batch_size = 16 downsample_factor = 4 max_text_len = 8
20.333333
79
0.777049
acfdbaea720a47a8546224ba089f4a6f9843712d
798
py
Python
tests/accounts/test_admin.py
pennlabs/platform-dev
062fa8b23f78f51b8ec5201507ca35dbc5a1f567
[ "MIT" ]
1
2020-02-20T09:06:43.000Z
2020-02-20T09:06:43.000Z
tests/accounts/test_admin.py
pennlabs/platform-dev
062fa8b23f78f51b8ec5201507ca35dbc5a1f567
[ "MIT" ]
11
2020-03-08T22:20:21.000Z
2021-09-22T18:39:57.000Z
tests/accounts/test_admin.py
pennlabs/platform-dev
062fa8b23f78f51b8ec5201507ca35dbc5a1f567
[ "MIT" ]
null
null
null
from django.contrib.admin.sites import AdminSite from django.test import TestCase from accounts.admin import StudentAdmin from accounts.models import Student, User class StudentAdminTestCase(TestCase): def setUp(self): self.user = User.objects.create( pennid=1, username="user", first_name="Fi...
33.25
80
0.715539
acfdbb6511ee133d0a582d458e133dd49c74a54f
4,161
py
Python
src/ansiblelint/config.py
JensHeinrich/ansible-lint
532918d5b0d285ba0c47eb4f14be940b5d465d5a
[ "MIT" ]
null
null
null
src/ansiblelint/config.py
JensHeinrich/ansible-lint
532918d5b0d285ba0c47eb4f14be940b5d465d5a
[ "MIT" ]
null
null
null
src/ansiblelint/config.py
JensHeinrich/ansible-lint
532918d5b0d285ba0c47eb4f14be940b5d465d5a
[ "MIT" ]
null
null
null
"""Store configuration options as a singleton.""" import os import re import subprocess import sys from argparse import Namespace from functools import lru_cache from typing import Dict, List, Optional, Tuple from packaging.version import Version from ansiblelint.constants import ANSIBLE_MISSING_RC DEFAULT_KINDS = [...
32.507813
77
0.628455
acfdbc634d297fb5b32a92bc4c637a70004787ea
15,948
py
Python
peeringdb_server/signals.py
tbaschak/peeringdb
20d89d53d8e1d807383fa84d74601e37ba4dc9d4
[ "BSD-2-Clause" ]
null
null
null
peeringdb_server/signals.py
tbaschak/peeringdb
20d89d53d8e1d807383fa84d74601e37ba4dc9d4
[ "BSD-2-Clause" ]
null
null
null
peeringdb_server/signals.py
tbaschak/peeringdb
20d89d53d8e1d807383fa84d74601e37ba4dc9d4
[ "BSD-2-Clause" ]
null
null
null
import django.urls from django.db.models.signals import post_save, pre_delete, pre_save from django.contrib.contenttypes.models import ContentType from django_namespace_perms.models import Group, GroupPermission from django_namespace_perms.constants import PERM_CRUD, PERM_READ from django.template import loader from dj...
34.820961
151
0.547091
acfdbcad0559d0fbe5f9354b117acf2da879ad80
9,048
py
Python
pylxd/deprecated/image.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
null
null
null
pylxd/deprecated/image.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
1
2018-04-21T16:31:29.000Z
2018-04-21T16:31:29.000Z
pylxd/deprecated/image.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
1
2021-08-16T15:00:35.000Z
2021-08-16T15:00:35.000Z
# Copyright (c) 2015 Canonical Ltd # # 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 ...
36.930612
79
0.492374
acfdbd0312f9465259c1dc8c90cde08657a080a4
1,124
py
Python
lib/revitronui/charts.py
revitron/revitron-ui
167af8a2e843b83963b2bcd8cd1d009efffb83ce
[ "MIT" ]
6
2020-05-17T09:14:28.000Z
2022-02-18T04:01:45.000Z
lib/revitronui/charts.py
revitron/revitron-ui
167af8a2e843b83963b2bcd8cd1d009efffb83ce
[ "MIT" ]
3
2020-10-09T23:24:12.000Z
2020-11-16T12:30:17.000Z
lib/revitronui/charts.py
revitron/revitron-ui
167af8a2e843b83963b2bcd8cd1d009efffb83ce
[ "MIT" ]
4
2020-10-08T16:30:03.000Z
2021-12-17T10:29:37.000Z
from pyrevit import script class LineChart: def __init__(self, data, labels, title=None): import revitronui self.output = script.get_output() self.chart = self.make() self.chart.data.labels = labels dataset = self.chart.data.new_dataset(title) dataset.data = data if self.hasBackground: palette = re...
18.733333
46
0.69306
acfdbe5fc41809c08c87adaec96c9f952ccce275
916
py
Python
Lista2/ex2.py
brunocozendey/Pythonplayground
41257c5010274f7964b3f72a2d00513ddf8ad3c1
[ "MIT" ]
null
null
null
Lista2/ex2.py
brunocozendey/Pythonplayground
41257c5010274f7964b3f72a2d00513ddf8ad3c1
[ "MIT" ]
null
null
null
Lista2/ex2.py
brunocozendey/Pythonplayground
41257c5010274f7964b3f72a2d00513ddf8ad3c1
[ "MIT" ]
null
null
null
# -*- coding: cp1252 -*- ''' O programa lê uma string (com várias palavras) e verifique se ela é um palíndromo. Um palíndromo é uma cadeia que pode ser lida de trás para frente ou frente para trás e possui exatamente o mesmo valor. Exemplo: SUBI NO ONIBUS Criado por: Bruno Cozendey Criado em: 17/05/2018 ''' def ler(...
24.756757
91
0.631004
acfdbf796603aed4f0000b6cfb5d5c3885362694
7,260
py
Python
SynthText_Chinese/gen.py
shijieS/Scene-Text-Understanding
247df9a664f2c6c2c2e34fc14eddbb175142c53f
[ "OML" ]
380
2017-10-19T01:36:27.000Z
2022-03-14T07:32:17.000Z
SynthText_Chinese/gen.py
Wanjpeng/Scene-Text-Understanding
247df9a664f2c6c2c2e34fc14eddbb175142c53f
[ "OML" ]
null
null
null
SynthText_Chinese/gen.py
Wanjpeng/Scene-Text-Understanding
247df9a664f2c6c2c2e34fc14eddbb175142c53f
[ "OML" ]
118
2017-11-23T02:37:53.000Z
2021-05-10T05:12:16.000Z
# -*- coding: utf-8 -*- # Author: Ankush Gupta # Date: 2015 """ Entry-point for generating synthetic text images, as described in: @InProceedings{Gupta16, author = "Gupta, A. and Vedaldi, A. and Zisserman, A.", title = "Synthetic Data for Text Localisation in Natural Images", booktitle ...
32.410714
117
0.623278
acfdbf7a49ae6861b6d5a893fb3c5286d04c25cc
5,387
py
Python
zerver/lib/storage.py
measo3/2018-2-OSS-L5
15af7b91489b6cab794c5bd5af5948b3cc059f85
[ "Apache-2.0" ]
3
2018-12-04T01:44:43.000Z
2019-05-13T06:16:21.000Z
zerver/lib/storage.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
58
2018-11-27T15:18:54.000Z
2018-12-09T13:43:07.000Z
zerver/lib/storage.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
# Useful reading is https://zulip.readthedocs.io/en/latest/subsystems/front-end-build-process.html import os import shutil from typing import Any, Dict, List, Optional, Tuple from django.conf import settings from django.contrib.staticfiles.storage import ManifestStaticFilesStorage from pipeline.storage import Pipelin...
41.438462
135
0.62558
acfdc0b455ac3dc5f0df27c91724f7cbd9f7f7af
4,568
py
Python
mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/jarfile.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/jarfile.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/jarfile.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
31.944056
80
0.714974
acfdc0b81705fab3cf8bbbcb0f8973ac12aac435
236
py
Python
invenio_app_ils/internal_locations/loaders/jsonschemas/__init__.py
NRodriguezcuellar/invenio-app-ils
144a25a6c56330b214c6fd0b832220fa71f2e68a
[ "MIT" ]
41
2018-09-04T13:00:46.000Z
2022-03-24T20:45:56.000Z
invenio_app_ils/internal_locations/loaders/jsonschemas/__init__.py
NRodriguezcuellar/invenio-app-ils
144a25a6c56330b214c6fd0b832220fa71f2e68a
[ "MIT" ]
720
2017-03-10T08:02:41.000Z
2022-01-14T15:36:37.000Z
invenio_app_ils/internal_locations/loaders/jsonschemas/__init__.py
NRodriguezcuellar/invenio-app-ils
144a25a6c56330b214c6fd0b832220fa71f2e68a
[ "MIT" ]
54
2017-03-09T16:05:29.000Z
2022-03-17T08:34:51.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS eitems JSON loader."""
26.222222
76
0.690678
acfdc0d7ee563b69f16d7aee54951bda28288608
8,060
py
Python
coderedcms/settings.py
fakegit/coderedcms
10dd10635bba9c2dcecede4b8e557b5a6ffd8b23
[ "BSD-3-Clause" ]
526
2018-07-31T20:14:17.000Z
2022-03-23T08:08:29.000Z
coderedcms/settings.py
fakegit/coderedcms
10dd10635bba9c2dcecede4b8e557b5a6ffd8b23
[ "BSD-3-Clause" ]
325
2018-08-01T13:53:55.000Z
2022-03-31T15:08:28.000Z
coderedcms/settings.py
fakegit/coderedcms
10dd10635bba9c2dcecede4b8e557b5a6ffd8b23
[ "BSD-3-Clause" ]
153
2018-08-02T07:42:40.000Z
2022-03-24T23:54:59.000Z
import os from django.conf import settings from functools import lru_cache PROJECT_DIR = settings.PROJECT_DIR if getattr(settings, 'PROJECT_DIR') else os.path.dirname( os.path.dirname(os.path.abspath(__file__)) ) BASE_DIR = settings.BASE_DIR if getattr(settings, 'BASE_DIR') else os.path.dirname(PROJECT_DIR) DEFA...
40.913706
146
0.594169
acfdc0d88dd8536aef9dd8eb79765ae65aab0b5a
2,525
py
Python
utils/anchor.py
mshmoon/siamrpn-lightweight
f6527e34c9eaaeb45817b12babd78ee73b1c7525
[ "MIT" ]
1
2020-11-20T09:34:45.000Z
2020-11-20T09:34:45.000Z
utils/anchor.py
mshmoon/siamrpn-lightweight
f6527e34c9eaaeb45817b12babd78ee73b1c7525
[ "MIT" ]
null
null
null
utils/anchor.py
mshmoon/siamrpn-lightweight
f6527e34c9eaaeb45817b12babd78ee73b1c7525
[ "MIT" ]
null
null
null
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import math import numpy as np from utils.bbox import corner2center, center2corner class Anchors: """ This cl...
29.360465
74
0.547327
acfdc107cc7e0ff85668033c21e9c90c857e0849
70,942
py
Python
pytorch_lightning/core/lightning.py
lxww302/pytorch-lightning
4018237c309b7d9d6978da73132003615341e04a
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/core/lightning.py
lxww302/pytorch-lightning
4018237c309b7d9d6978da73132003615341e04a
[ "Apache-2.0" ]
1
2020-11-09T21:07:07.000Z
2020-11-09T21:07:07.000Z
pytorch_lightning/core/lightning.py
zippeurfou/pytorch-lightning
4018237c309b7d9d6978da73132003615341e04a
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
38.744948
119
0.578289
acfdc263394d91adfc12ad45b583ea0b56c93451
2,530
py
Python
lib/sedna/common/utils.py
lidongen/sedna
fe54975c435e7c5a211f7d5960489d1d7f5a19ff
[ "Apache-2.0" ]
1
2021-06-19T10:19:28.000Z
2021-06-19T10:19:28.000Z
lib/sedna/common/utils.py
TymonXie/sedna
ee71aedec864146dd245af740a8496c3d57ef758
[ "Apache-2.0" ]
null
null
null
lib/sedna/common/utils.py
TymonXie/sedna
ee71aedec864146dd245af740a8496c3d57ef758
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The KubeEdge Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
32.435897
78
0.640711
acfdc428154a34ef537c3b24a5a9fac6639ba791
408
py
Python
packages/migrations/0003_auto_20210416_1007.py
dandeduck/package-tracking-web
f7cb3dffd6f7f6b7ced5b1106a049c79c192dfa5
[ "MIT" ]
1
2021-02-11T22:16:51.000Z
2021-02-11T22:16:51.000Z
packages/migrations/0003_auto_20210416_1007.py
dandeduck/package-tracking-web
f7cb3dffd6f7f6b7ced5b1106a049c79c192dfa5
[ "MIT" ]
54
2021-02-11T18:52:11.000Z
2021-06-13T13:45:01.000Z
packages/migrations/0003_auto_20210416_1007.py
dandeduck/package-tracking-web
f7cb3dffd6f7f6b7ced5b1106a049c79c192dfa5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2021-04-16 10:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('packages', '0002_auto_20210321_0949'), ] operations = [ migrations.AlterField( model_name='address', name='street_n...
21.473684
62
0.620098
acfdc44d2168dcc389d35cb26ec15afdfaf9f370
10,050
py
Python
ensemble/control/tactical/gapcordinator.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
ensemble/control/tactical/gapcordinator.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
ensemble/control/tactical/gapcordinator.py
licit-lab/ensemble
7a78ef0d69610d4fcfc5e008f931ade15e35acbf
[ "Linux-OpenIB" ]
null
null
null
""" **Platoon Gap Coordinator** This module details the implementation of the ``Front Gap`` and ``Rear Gap`` Coordinators existing in each one of the vehicles created when running a platoon. The coordinators have access to a centralized information center called ``Data Query`` to retrieve information in the ve...
36.948529
305
0.553433
acfdc587e4eddd2a0926bb0d96aeecb97613a28b
2,538
py
Python
mypy_boto3_builder/cli_parser.py
pyto86pri/mypy_boto3_builder
e8132dc4632430e0abd4cd330af51a8b1c82028f
[ "MIT" ]
null
null
null
mypy_boto3_builder/cli_parser.py
pyto86pri/mypy_boto3_builder
e8132dc4632430e0abd4cd330af51a8b1c82028f
[ "MIT" ]
null
null
null
mypy_boto3_builder/cli_parser.py
pyto86pri/mypy_boto3_builder
e8132dc4632430e0abd4cd330af51a8b1c82028f
[ "MIT" ]
null
null
null
""" CLI parser. """ import argparse from pathlib import Path from typing import Sequence import pkg_resources from mypy_boto3_builder.service_name import ServiceName, ServiceNameCatalog def get_absolute_path(path: str) -> Path: """ Get absolute path from a string. Arguments: path -- String cont...
25.897959
97
0.638298
acfdc5c507065fb72c0ddd5e8ac1ad81c3dee4d2
3,573
py
Python
get_pet_labels.py
embeaver/Dog-breed-classifier
954c6394d135e54c91c204669bb23da9383185cf
[ "MIT" ]
null
null
null
get_pet_labels.py
embeaver/Dog-breed-classifier
954c6394d135e54c91c204669bb23da9383185cf
[ "MIT" ]
null
null
null
get_pet_labels.py
embeaver/Dog-breed-classifier
954c6394d135e54c91c204669bb23da9383185cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/get_pet_labels.py # # PROGRAMMER: Erika Beaver # DATE CREATED: 3/11/19 # REVISED DATE: 3/31/19 # PURPOSE: Create the fu...
47.64
105
0.642317
acfdc6b34873698aecc844a26aa9a88950865231
2,668
py
Python
chastewebservice.py
ModellingWebLab/fc-runner
24daeaf10ad8afc77c2d17606b7076317be94b0e
[ "BSD-3-Clause" ]
null
null
null
chastewebservice.py
ModellingWebLab/fc-runner
24daeaf10ad8afc77c2d17606b7076317be94b0e
[ "BSD-3-Clause" ]
6
2019-05-24T11:23:38.000Z
2020-10-06T09:45:41.000Z
chastewebservice.py
ModellingWebLab/fc-runner
24daeaf10ad8afc77c2d17606b7076317be94b0e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import cgi import cgitb import os import sys import fcws temporaryDir = fcws.config['temp_dir'] debugPrefix = fcws.config['debug_log_file_prefix'] cgitb.enable(format='text', context=1, logdir=os.path.join(temporaryDir, debugPrefix + 'cgitb')) def SendError(msg): print("Content-Type: te...
35.573333
96
0.654798
acfdc78df7242d3584becdd2c05b1cc4d5e49461
6,087
py
Python
hw2/test/test.py
idoleat/P-Language-Compiler-CourseProject
57db735b349a0a3a30d78b927953e2d44b7c7d53
[ "MIT" ]
7
2020-09-10T16:54:49.000Z
2022-03-15T12:39:23.000Z
hw2/test/test.py
idoleat/simple-P-compiler
57db735b349a0a3a30d78b927953e2d44b7c7d53
[ "MIT" ]
null
null
null
hw2/test/test.py
idoleat/simple-P-compiler
57db735b349a0a3a30d78b927953e2d44b7c7d53
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import subprocess import os import sys import json from argparse import ArgumentParser class Grader: basic_case_dir = "./basic_cases" basic_cases = { 1 : "decl", 2 : "expr1", 3 : "expr2", 4 : "expr3", 5: "function1", 6: "function2", 7...
34.005587
129
0.555282
acfdc78e6e550872e9731dc2b66887569da15f1e
5,008
py
Python
examples/stats.py
eduardomelgar/Adafruit_Python_SSD1306
a435263e26e4a69533347ed4579c60aeac611ef9
[ "MIT" ]
null
null
null
examples/stats.py
eduardomelgar/Adafruit_Python_SSD1306
a435263e26e4a69533347ed4579c60aeac611ef9
[ "MIT" ]
null
null
null
examples/stats.py
eduardomelgar/Adafruit_Python_SSD1306
a435263e26e4a69533347ed4579c60aeac611ef9
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Adafruit Industries # Author: Tony DiCola & James DeVito # # 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 # ...
37.373134
157
0.717851
acfdc89cc3773cd0b0f371ae4927c4f88b54ba01
1,979
py
Python
source/tools/coco_tools.py
allenai/learning_from_interaction
a266bc16d682832aa854348fa557a30d86b84674
[ "Apache-2.0" ]
11
2020-10-27T00:05:55.000Z
2021-08-25T08:42:34.000Z
source/tools/coco_tools.py
allenai/learning_from_interaction
a266bc16d682832aa854348fa557a30d86b84674
[ "Apache-2.0" ]
1
2021-06-02T01:59:03.000Z
2021-06-02T01:59:03.000Z
source/tools/coco_tools.py
allenai/learning_from_interaction
a266bc16d682832aa854348fa557a30d86b84674
[ "Apache-2.0" ]
null
null
null
import os import json from datetime import datetime from pycocotools.mask import area, toBbox from tools.logger import LOGGER def save_coco_dataset(dataset_file, output_folder, classes=("light", "medium", "heavy"), force=False): def get_dicts(jsonfile): with open(jsonfile, "r") as f: res = j...
32.442623
102
0.557858
acfdc92023a5be10d1a32ab474b946b9900dd605
5,288
py
Python
WatchDogs_Visualisation/oldApps/tweet-map/venv2/lib/python3.7/site-packages/dash_html_components/Font.py
tnreddy09/WatchDogs_StockMarketAnalysis
0c72430da633785fcb14e40d8b007c86081d515d
[ "Apache-2.0" ]
4
2020-02-05T11:26:47.000Z
2021-05-26T07:48:46.000Z
WatchDogs_Visualisation/oldApps/tweet-map/venv2/lib/python3.7/site-packages/dash_html_components/Font.py
prashanth-thipparthi/WatchDogs_StockMarketAnalysis
0c72430da633785fcb14e40d8b007c86081d515d
[ "Apache-2.0" ]
null
null
null
WatchDogs_Visualisation/oldApps/tweet-map/venv2/lib/python3.7/site-packages/dash_html_components/Font.py
prashanth-thipparthi/WatchDogs_StockMarketAnalysis
0c72430da633785fcb14e40d8b007c86081d515d
[ "Apache-2.0" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Font(Component): """A Font component. Keyword arguments: - children (a list of or a singular dash component, string or number; optional): The children of this component - id (string; optional): Th...
63.710843
551
0.662821
acfdca5bf9bbc5cf022a98dd19c8aefa7bcb3551
9,982
py
Python
scripts/convert_bio_model_to_long.py
wonjininfo/lf_tmp
438e987bbaae20456cfef46969ed97526c5d5369
[ "Apache-2.0" ]
null
null
null
scripts/convert_bio_model_to_long.py
wonjininfo/lf_tmp
438e987bbaae20456cfef46969ed97526c5d5369
[ "Apache-2.0" ]
null
null
null
scripts/convert_bio_model_to_long.py
wonjininfo/lf_tmp
438e987bbaae20456cfef46969ed97526c5d5369
[ "Apache-2.0" ]
null
null
null
import logging import os import math from dataclasses import dataclass, field # from transformers import RobertaForMaskedLM, RobertaTokenizerFast from transformers import BertForMaskedLM, BertTokenizerFast # BertTokenizerFast from transformers import AutoTokenizer, AutoModel from transformers import RobertaForMaskedLM,...
45.788991
215
0.734322
acfdcaf8422d4a199344bb8b8261b06d8962826f
184
py
Python
adaptmesh/mark.py
arturs-berzins/adaptmesh
8ce257d85b5943d2bca578ca67490e6b85ea8bec
[ "MIT" ]
11
2020-09-01T23:14:52.000Z
2022-03-01T00:35:14.000Z
adaptmesh/mark.py
arturs-berzins/adaptmesh
8ce257d85b5943d2bca578ca67490e6b85ea8bec
[ "MIT" ]
6
2021-01-16T20:21:51.000Z
2022-02-04T14:29:20.000Z
adaptmesh/mark.py
arturs-berzins/adaptmesh
8ce257d85b5943d2bca578ca67490e6b85ea8bec
[ "MIT" ]
2
2021-01-20T03:16:13.000Z
2022-02-04T09:30:01.000Z
"""Marking the elements to refine.""" from skfem import adaptive_theta as atheta def adaptive_theta(m, estimators, theta=0.5, **params): return atheta(estimators, theta=theta)
20.444444
55
0.73913
acfdcb46126a7dc8447f4eda5c872c7dbfe59bf7
11,275
py
Python
bridges/bridges.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
bridges/bridges.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
bridges/bridges.py
acbart/bridges-python
5a18d2eb68df7cdff996120c0461b238ca599481
[ "MIT" ]
null
null
null
from bridges.connector import * from bridges import ColorGrid import os import json ## # @brief The bridges class is the main class that provides interfaces to datasets, # maintains user and assignment information, and connects to the bridges server. # # The bridges class is responsible for initializing t...
37.583333
133
0.61286
acfdcd7f5f1246f449b868855b01070e71e231ac
2,854
py
Python
pinnwand/http.py
erlliam/pinnwand
a1d36f3a4aec85311d75e4648ba1dee23ce89f62
[ "MIT" ]
null
null
null
pinnwand/http.py
erlliam/pinnwand
a1d36f3a4aec85311d75e4648ba1dee23ce89f62
[ "MIT" ]
null
null
null
pinnwand/http.py
erlliam/pinnwand
a1d36f3a4aec85311d75e4648ba1dee23ce89f62
[ "MIT" ]
null
null
null
import logging import secrets import zipfile from typing import Any, List import tornado.web from pinnwand import path, configuration, handler log = logging.getLogger(__name__) def make_application() -> tornado.web.Application: pages: List[Any] = [ (r"/", handler.website.Create), (r"/\+(.*)", ...
30.361702
73
0.519622
acfdcf48a194a30cf93b3b451a5d5258ed0f42e0
7,188
py
Python
software/mesa/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py
dhanna11/OpenGPU
ab2f01253bba311e082dfae695b9e70138de75d4
[ "Apache-2.0" ]
7
2019-09-04T03:44:26.000Z
2022-01-06T02:54:24.000Z
software/mesa/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py
dhanna11/OpenGPU
ab2f01253bba311e082dfae695b9e70138de75d4
[ "Apache-2.0" ]
null
null
null
software/mesa/src/mesa/drivers/dri/common/xmlpool/gen_xmlpool.py
dhanna11/OpenGPU
ab2f01253bba311e082dfae695b9e70138de75d4
[ "Apache-2.0" ]
3
2021-06-11T23:53:38.000Z
2021-08-31T03:18:34.000Z
#!/usr/bin/python # # Usage: # gen_xmlpool.py /path/to/t_option.h localedir lang lang lang ... # # For each given language, this script expects to find a .mo file at # `{localedir}/{language}/LC_MESSAGES/options.mo`. # import sys import gettext import re # Path to t_options.h template_header_path = sys.argv[1] ...
35.063415
127
0.497496
acfdd17d85ef6586eb09eca4e20919c90c662639
4,937
py
Python
tests/test_tool.py
petli/brioche
b7cbdfae400facb59188a4954c8c4b1b4d14def9
[ "MIT" ]
null
null
null
tests/test_tool.py
petli/brioche
b7cbdfae400facb59188a4954c8c4b1b4d14def9
[ "MIT" ]
null
null
null
tests/test_tool.py
petli/brioche
b7cbdfae400facb59188a4954c8c4b1b4d14def9
[ "MIT" ]
null
null
null
# Copyright 2020 Peter Liljenberg <peter.liljenberg@gmail.com> # Open source under the MIT license (see LICENSE) # pylint: disable=missing-function-docstring missing-module-docstring import-error import pytest import pandas as pd from brioche.tool import main SEPS = pytest.mark.parametrize('sep', [',', ';']) @SEPS...
30.475309
83
0.572412
acfdd1fb3032f05418f05f6f4afc12d68e387730
460
py
Python
examples/basic.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
1,075
2015-01-01T17:46:25.000Z
2022-03-31T17:55:18.000Z
examples/basic.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
397
2015-01-04T08:39:03.000Z
2022-03-22T01:59:18.000Z
examples/basic.py
rtkefreure/redis-py-cluster
f0627c91ce23e8784dbc996078428c9bdbacb20b
[ "MIT" ]
373
2015-01-13T08:44:40.000Z
2022-03-29T02:18:20.000Z
from rediscluster import RedisCluster startup_nodes = [{"host": "127.0.0.1", "port": "7000"}] # Note: decode_responses must be set to True when used with python3 rc = RedisCluster(startup_nodes=startup_nodes, decode_responses=True) rc.set("foo", "bar") print(rc.get("foo")) # Alternate simple mode of pointing to one ...
25.555556
69
0.704348
acfdd260571d554da07e8da3abf65c3ec4489991
585
py
Python
node/blockchain/tests/factories/block_message/genesis.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
18
2021-11-30T04:02:13.000Z
2022-03-24T12:33:57.000Z
node/blockchain/tests/factories/block_message/genesis.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
1
2022-02-04T17:07:38.000Z
2022-02-04T17:07:38.000Z
node/blockchain/tests/factories/block_message/genesis.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
5
2022-01-31T05:28:13.000Z
2022-03-08T17:25:31.000Z
from node.blockchain.inner_models import GenesisBlockMessage, GenesisSignedChangeRequest def make_genesis_block_message( genesis_signed_change_request_message, primary_validator_private_key, primary_validator_node ) -> GenesisBlockMessage: request = GenesisSignedChangeRequest.create_from_signed_change_request...
41.785714
96
0.839316
acfdd284a16eaef29c2f82c3526985d6c182263d
15,838
py
Python
moldynplot/PDistFigureManager.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
8
2016-07-20T16:26:18.000Z
2020-05-22T21:58:27.000Z
moldynplot/PDistFigureManager.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
2
2016-07-23T17:17:16.000Z
2018-02-07T03:34:27.000Z
moldynplot/PDistFigureManager.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
4
2016-07-20T16:26:29.000Z
2022-03-27T18:28:50.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # moldynplot.PDistFigureManager.py # # Copyright (C) 2015-2017 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. See the LICENSE file for details. """ Generates probability distribution figures...
31.931452
79
0.493307
acfdd327c3b518cc786f6d5a07faca68ed892a25
4,959
py
Python
asv_bench/benchmarks/io/json.py
henriqueribeiro/pandas
996f361f8e6986ea1c65ccb164a4c585e1f4a027
[ "BSD-3-Clause" ]
2
2019-01-09T07:43:12.000Z
2020-05-30T05:49:11.000Z
asv_bench/benchmarks/io/json.py
henriqueribeiro/pandas
996f361f8e6986ea1c65ccb164a4c585e1f4a027
[ "BSD-3-Clause" ]
3
2018-09-24T22:09:28.000Z
2018-10-01T21:10:00.000Z
asv_bench/benchmarks/io/json.py
henriqueribeiro/pandas
996f361f8e6986ea1c65ccb164a4c585e1f4a027
[ "BSD-3-Clause" ]
2
2019-03-08T19:59:05.000Z
2020-09-27T03:18:37.000Z
import numpy as np import pandas.util.testing as tm from pandas import DataFrame, date_range, timedelta_range, concat, read_json from ..pandas_vb_common import setup, BaseIO # noqa class ReadJSON(BaseIO): goal_time = 0.2 fname = "__test__.json" params = (['split', 'index', 'records'], ['int', 'datetime...
38.742188
79
0.548296
acfdd442e787313c226d40b16542b4d15fa17fc8
2,107
py
Python
zhusuan/distributions/possion.py
thuwzy/ZhuSuan-PyTorch
471e4d401a6edce07312b01b2b76fa2c56b15c0f
[ "MIT" ]
12
2021-08-11T10:28:21.000Z
2022-03-12T14:20:02.000Z
zhusuan/distributions/possion.py
thuwzy/ZhuSuan-PyTorch
471e4d401a6edce07312b01b2b76fa2c56b15c0f
[ "MIT" ]
null
null
null
zhusuan/distributions/possion.py
thuwzy/ZhuSuan-PyTorch
471e4d401a6edce07312b01b2b76fa2c56b15c0f
[ "MIT" ]
2
2021-08-17T12:05:15.000Z
2022-01-12T09:47:49.000Z
import torch from zhusuan.distributions import Distribution class Possion(Distribution): """ The class of univariate Possion distribution See :class:`~zhusuan.distributions.base.Distribution` for details. :param rate: A 'float' Var. Rate parameter of the Possion distribution. """ def __init__(...
38.309091
155
0.563835
acfdd577d2b484e79f8a017fff259f7160ae51d0
8,506
py
Python
tests/test_cache_control.py
obendidi/httpx-cache
897dd8da5bb377ed7f61b367716976bdc0d581b1
[ "BSD-3-Clause" ]
16
2021-12-13T01:27:44.000Z
2022-02-28T02:58:46.000Z
tests/test_cache_control.py
obendidi/httpx-cache
897dd8da5bb377ed7f61b367716976bdc0d581b1
[ "BSD-3-Clause" ]
23
2022-01-03T15:57:39.000Z
2022-03-28T22:25:08.000Z
tests/test_cache_control.py
obendidi/httpx-cache
897dd8da5bb377ed7f61b367716976bdc0d581b1
[ "BSD-3-Clause" ]
2
2022-01-21T17:57:19.000Z
2022-01-21T18:18:47.000Z
from datetime import datetime, timedelta, timezone from email.utils import format_datetime import httpx import pytest import httpx_cache from httpx_cache.cache_control import _PERMANENT_REDIRECT_STATUSES, CacheControl def test_is_request_cacheable(httpx_request): controller = httpx_cache.CacheControl() asse...
32.841699
88
0.695862
acfdd57f45b01b6333a56207a0eee4bee2921546
2,537
py
Python
simplejson/tests/test_dump.py
koodaa-team/simplejson
e6133d7e333d3ab24d32903b1ae38bd3b6875d55
[ "MIT" ]
null
null
null
simplejson/tests/test_dump.py
koodaa-team/simplejson
e6133d7e333d3ab24d32903b1ae38bd3b6875d55
[ "MIT" ]
null
null
null
simplejson/tests/test_dump.py
koodaa-team/simplejson
e6133d7e333d3ab24d32903b1ae38bd3b6875d55
[ "MIT" ]
null
null
null
from unittest import TestCase from io import StringIO import simplejson as json class TestDump(TestCase): def test_dump(self): sio = StringIO() json.dump({}, sio) self.assertEqual(sio.getvalue(), '{}') def test_dumps(self): self.assertEqual(json.dumps({}), '{}') def test_...
37.308824
85
0.53646
acfdd59a973118e4ad652ae789cd28091a097417
3,946
py
Python
Code/MACDonGDXJ.py
BambooFlower/MACD-Strategy
896226f46dc42bcb7153e34518f8e01164ec644e
[ "MIT" ]
2
2020-01-31T09:52:34.000Z
2020-12-06T12:24:07.000Z
Code/MACDonGDXJ.py
BambooFlower/MACD-Strategy
896226f46dc42bcb7153e34518f8e01164ec644e
[ "MIT" ]
null
null
null
Code/MACDonGDXJ.py
BambooFlower/MACD-Strategy
896226f46dc42bcb7153e34518f8e01164ec644e
[ "MIT" ]
null
null
null
from quantopian.pipeline.data.builtin import USEquityPricing import statsmodels.api as sm import quantopian.pipeline.data import numpy as np import pandas as pd import talib import scipy def initialize(context): set_benchmark(symbol('GDXJ')) context.GDXJ = symbol('GDXJ') context.allocation =...
39.46
132
0.655854
acfdd5c1fc31a8ed7d7a6b46076700e07e089487
2,558
py
Python
examples/ttgo_scroll.py
manahter/st7789_mpy
6a27c17e574fe34c450672f3181ac001f2b40ea1
[ "MIT" ]
1
2020-12-19T12:30:11.000Z
2020-12-19T12:30:11.000Z
examples/ttgo_scroll.py
manahter/st7789_mpy
6a27c17e574fe34c450672f3181ac001f2b40ea1
[ "MIT" ]
null
null
null
examples/ttgo_scroll.py
manahter/st7789_mpy
6a27c17e574fe34c450672f3181ac001f2b40ea1
[ "MIT" ]
1
2020-12-19T12:28:30.000Z
2020-12-19T12:28:30.000Z
""" ttgo_scroll.py Smoothly scroll all characters of a font up the LILYGO® TTGO T-Display screen. Fonts heights must be even multiples of the screen height (i.e. 8 or 16 pixels high). https://youtu.be/GQa-RzHLBak """ import utime import random from machine import Pin, SPI import st7789 # choose a fon...
23.46789
82
0.550821
acfdd7e383cce189a692b4ee30fdc243aef55f50
1,039
py
Python
neural_networks/not_perceptron.py
parphane/udacity-self_driving_cars
069762a5320a109ebe4f7c23997631a2998a0076
[ "MIT" ]
null
null
null
neural_networks/not_perceptron.py
parphane/udacity-self_driving_cars
069762a5320a109ebe4f7c23997631a2998a0076
[ "MIT" ]
null
null
null
neural_networks/not_perceptron.py
parphane/udacity-self_driving_cars
069762a5320a109ebe4f7c23997631a2998a0076
[ "MIT" ]
null
null
null
import pandas as pd # TODO: Set weight1, weight2, and bias weight1 = 0 weight2 = -1 bias = 0 # DON'T CHANGE ANYTHING BELOW # Inputs and outputs test_inputs = [(0, 0), (0, 1), (1, 0), (1, 1)] correct_outputs = [True, False, True, False] outputs = [] # Generate and check output for test_input, correct_output in zip(t...
35.827586
133
0.699711
acfdd81f33edbb425fa645fbce05b51283b0c66d
800
py
Python
day02/main.py
kentquirk/aoc2020
9223bd7ac9d1b1c26a65b809206105177e2bda22
[ "Unlicense" ]
null
null
null
day02/main.py
kentquirk/aoc2020
9223bd7ac9d1b1c26a65b809206105177e2bda22
[ "Unlicense" ]
null
null
null
day02/main.py
kentquirk/aoc2020
9223bd7ac9d1b1c26a65b809206105177e2bda22
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python3 import re import itertools def validateA(d): n = d["password"].count(d["ch"]) return n >= int(d["ix1"]) and n <= int(d["ix2"]) def validateB(d): ix1 = int(d["ix1"]) - 1 ix2 = int(d["ix2"]) - 1 at1 = ix1 < len(d["password"]) and d["password"][ix1 : ix1 + 1] == d["ch"] ...
27.586207
78
0.53625
acfdd83330f479f6ac5fdde4386e74c7b3116e12
3,444
py
Python
qualifier/qualifier.py
Tobi-De/cj8-qualifier
7454ff5e8f1d1365cd232219677299935653c8c2
[ "MIT" ]
null
null
null
qualifier/qualifier.py
Tobi-De/cj8-qualifier
7454ff5e8f1d1365cd232219677299935653c8c2
[ "MIT" ]
null
null
null
qualifier/qualifier.py
Tobi-De/cj8-qualifier
7454ff5e8f1d1365cd232219677299935653c8c2
[ "MIT" ]
null
null
null
from typing import Any, List, Optional SPACE_AROUND = 2 def space_content(value: Any, max_space_to_fill: int, centered: bool): if centered: return str(value).center(max_space_to_fill + SPACE_AROUND) else: return f" {str(value).ljust(max_space_to_fill)}" + " " def build_content(row: List[Any...
35.505155
108
0.639954
acfdd86070c4a71e8f5b20b172587c71f8e5ce37
904
py
Python
digsby/src/tests/testgui/uberdemos/UberProgressBarDemo.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/tests/testgui/uberdemos/UberProgressBarDemo.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/tests/testgui/uberdemos/UberProgressBarDemo.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
import wx from gui.uberwidgets.UberProgressBar import UberProgressBar from gui import skin as skincore class F(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, wx.NewId(), "Progress Bar sampler",(0,0),(600,250)) self.Bind(wx.EVT_SLIDER, self.on_slide) self.content = wx.BoxSiz...
27.393939
96
0.639381
acfdd906a42cf7a8e42d1f120c339a30de881969
21,896
py
Python
pyNastran/bdf/cards/base_card.py
Gypaets/pyNastran
33372e4b4b2a2b9cd93824235eaf884772e67269
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/cards/base_card.py
Gypaets/pyNastran
33372e4b4b2a2b9cd93824235eaf884772e67269
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/cards/base_card.py
Gypaets/pyNastran
33372e4b4b2a2b9cd93824235eaf884772e67269
[ "BSD-3-Clause" ]
null
null
null
""" defines: - BaseCard() - Element() - Property() - Material() - word, num = break_word_by_trailing_integer(pname_fid) - word, num = break_word_by_trailing_parentheses_integer_ab(pname_fid) """ from __future__ import annotations from abc import abstractmethod, abstractproperty, abstractclassmethod from typing im...
31.505036
103
0.567684
acfdd9164174236132befbbd93e7ad5207f2e3e8
568
py
Python
src/entities/__init__.py
michaeltcoelho/python-ebi
45f83328faad4345e937b8518ee1dd771fdde1a8
[ "MIT" ]
3
2018-04-03T17:07:18.000Z
2022-02-13T06:28:53.000Z
src/entities/__init__.py
michaeltcoelho/python-ebi
45f83328faad4345e937b8518ee1dd771fdde1a8
[ "MIT" ]
null
null
null
src/entities/__init__.py
michaeltcoelho/python-ebi
45f83328faad4345e937b8518ee1dd771fdde1a8
[ "MIT" ]
null
null
null
import abc class UnitOfWork(abc.ABC): @abc.abstractmethod def commit(self): pass @abc.abstractmethod def rollback(self): pass @property @abc.abstractmethod def repositories(self): pass class Repository(abc.ABC): def __init__(self, session): self.se...
16.228571
55
0.647887
acfdd9952397a98feebf674e7962439fbf029b34
342
py
Python
ote/ote/modules/trainers/__init__.py
dqawami/openvino_training_extensions
dddda1dfd651eaae2d59cecda84275b1b03bd0ad
[ "Apache-2.0" ]
256
2020-09-09T03:27:57.000Z
2022-03-30T10:06:06.000Z
ote/ote/modules/trainers/__init__.py
dqawami/openvino_training_extensions
dddda1dfd651eaae2d59cecda84275b1b03bd0ad
[ "Apache-2.0" ]
604
2020-09-08T12:29:49.000Z
2022-03-31T21:51:08.000Z
ote/ote/modules/trainers/__init__.py
dqawami/openvino_training_extensions
dddda1dfd651eaae2d59cecda84275b1b03bd0ad
[ "Apache-2.0" ]
160
2020-09-09T14:06:07.000Z
2022-03-30T14:50:48.000Z
from .base import BaseTrainer from .instance_segmentation import InstanceSegmentationTrainer from .mmaction import MMActionTrainer from .mmdetection import MMDetectionTrainer from .reid import ReidTrainer __all__ = [ 'BaseTrainer', 'MMActionTrainer', 'MMDetectionTrainer', 'InstanceSegmentationTrainer',...
24.428571
62
0.78655
acfdd9a4b97f88264c249c8239f3f61ca180b507
274
py
Python
texaslan/users/apps.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
2
2018-02-06T06:24:03.000Z
2018-03-20T03:32:13.000Z
texaslan/users/apps.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
32
2017-02-21T20:01:43.000Z
2020-02-08T21:52:16.000Z
texaslan/users/apps.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
6
2017-03-21T21:16:40.000Z
2020-02-08T20:46:20.000Z
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'texaslan.users' verbose_name = "Users" def ready(self): """Override this to put in: Users system checks Users signal registration """ pass
19.571429
37
0.594891
acfddbccfd1c02ef6e7ba605df7d6d49b28ae8ea
832
py
Python
ScikitLearn/NN.py
AutuanLiu/Machine-Learning-on-docker
00eb7211a3a40a9da02114923647dfd6ac24f138
[ "Apache-2.0" ]
11
2018-03-18T11:06:59.000Z
2020-02-23T03:24:43.000Z
ScikitLearn/NN.py
AutuanLiu/Machine-Learning-on-docker
00eb7211a3a40a9da02114923647dfd6ac24f138
[ "Apache-2.0" ]
null
null
null
ScikitLearn/NN.py
AutuanLiu/Machine-Learning-on-docker
00eb7211a3a40a9da02114923647dfd6ac24f138
[ "Apache-2.0" ]
4
2018-03-28T13:04:26.000Z
2019-05-29T05:49:52.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ------------------------------------------------- File Name:NN Description : 最近邻 Email : autuanliu@163.com Date:2017/12/22 """ import matplotlib.pyplot as plt import numpy as np from sklearn.neighbors import NearestNeighbors, KDTree # 无监督 # 找到两组数据集中最近邻点的...
23.771429
68
0.644231
acfddc5adf1f7fc37a1299e0a17435846f69ce37
5,071
py
Python
django_backend/wallet/views.py
emilioivan12/Bank-Online-Django-React
f25cabbebd47baa55cc1ebb135c49b766aa3303a
[ "MIT" ]
1
2021-04-20T04:21:10.000Z
2021-04-20T04:21:10.000Z
django_backend/wallet/views.py
emilioivan12/Bank-Online-Django-React
f25cabbebd47baa55cc1ebb135c49b766aa3303a
[ "MIT" ]
null
null
null
django_backend/wallet/views.py
emilioivan12/Bank-Online-Django-React
f25cabbebd47baa55cc1ebb135c49b766aa3303a
[ "MIT" ]
null
null
null
from rest_framework import generics from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from .models import Wallet, Currency, Transaction from .serializers import WalletSerializer, CurrencySerializer, TransactionSerializer from django.http import JsonR...
44.095652
148
0.714849
acfddc60a2bb47c9ebd1baaa95846782b2431bf4
75,949
py
Python
great_expectations/dataset/sqlalchemy_dataset.py
jstammers/great_expectations
e4270cfd38c101e7b811e1ea60aa73f8e934fd48
[ "Apache-2.0" ]
null
null
null
great_expectations/dataset/sqlalchemy_dataset.py
jstammers/great_expectations
e4270cfd38c101e7b811e1ea60aa73f8e934fd48
[ "Apache-2.0" ]
null
null
null
great_expectations/dataset/sqlalchemy_dataset.py
jstammers/great_expectations
e4270cfd38c101e7b811e1ea60aa73f8e934fd48
[ "Apache-2.0" ]
null
null
null
import inspect import logging import traceback import uuid import warnings from datetime import datetime from functools import wraps from typing import Dict, Iterable, List import numpy as np import pandas as pd from dateutil.parser import parse from great_expectations.data_asset import DataAsset from great_expectati...
37.654437
159
0.574767
acfddc67b8ea5550cfcef6875682da2f0ef63d49
960
py
Python
models/braintumor/brainapp.py
kushal-h/Medical-AI
de100f6ce3b783086d57dfb0ceab3fa28544df53
[ "MIT" ]
11
2020-11-08T11:06:16.000Z
2022-03-14T18:09:55.000Z
models/braintumor/brainapp.py
kushal-h/Medical-AI
de100f6ce3b783086d57dfb0ceab3fa28544df53
[ "MIT" ]
null
null
null
models/braintumor/brainapp.py
kushal-h/Medical-AI
de100f6ce3b783086d57dfb0ceab3fa28544df53
[ "MIT" ]
14
2020-10-26T18:10:16.000Z
2021-08-05T17:06:22.000Z
import os from flask import Flask, request, render_template,url_for,Blueprint from flask_cors import CORS, cross_origin import shutil import models.braintumor.src.predict as predict import base64 import numpy as np from io import BytesIO #brainapp = Flask(__name__) brainapp=Blueprint("brainapp",__name__,template_folde...
29.090909
90
0.696875
acfddc98c31b35fbb20c80c7222db175b8611747
628
py
Python
advancedbot/components/__init__.py
sdallaboratory/advanced-telegram-bot
7bf107b448cdd0e5d7f1cf85726b06c677ed922d
[ "MIT" ]
3
2020-08-28T12:35:55.000Z
2020-10-29T12:26:49.000Z
advancedbot/components/__init__.py
sdallaboratory/advanced-telegram-bot
7bf107b448cdd0e5d7f1cf85726b06c677ed922d
[ "MIT" ]
null
null
null
advancedbot/components/__init__.py
sdallaboratory/advanced-telegram-bot
7bf107b448cdd0e5d7f1cf85726b06c677ed922d
[ "MIT" ]
2
2021-11-13T15:03:35.000Z
2022-01-10T13:54:53.000Z
from .role_managing.roleauth import RoleAuth from .state_managing.statemanager import StateManager from .user_meta.usermetastorage import UserMetaStorage from .locales.localemanager import LocaleManager from .logs.botlogger import BotLogger from .storage_managing.storage import Storage from .storage_managing.localjsons...
34.888889
63
0.866242
acfddcd92b769330ea84762b5768210f93ee19d3
13,378
py
Python
docs/conf.py
kmatt/toyplot
d6784ab176c93aebf9b12831ced8f435bdcfeab1
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
kmatt/toyplot
d6784ab176c93aebf9b12831ced8f435bdcfeab1
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
kmatt/toyplot
d6784ab176c93aebf9b12831ced8f435bdcfeab1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014, Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain # rights in this software. # -*- coding: utf-8 -*- # # toyplot documentation build configuration file, created by # sphinx-quickstart on Fri Apr 18 18:22:53 2014. # # This ...
31.551887
186
0.70459
acfddd02a20f5a928aa653dc83a6751041dbf037
25,375
py
Python
intersight/model/workflow_error_response_handler.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/workflow_error_response_handler.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/workflow_error_response_handler.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
67.12963
6,023
0.66668
acfdddf906d230121acbf361d085c5d10d244cd9
2,766
py
Python
data-preprocessor/BJUT_100/preprocessor.py
hkbonychen/3D-Morphable-Model-training
fa86d7e62f3dfaf20f312d22fa5013d9328f56f8
[ "BSD-3-Clause" ]
3
2021-10-03T19:49:04.000Z
2022-02-11T10:48:05.000Z
data-preprocessor/BJUT_100/preprocessor.py
hkbonychen/3D-Morphable-Model-training
fa86d7e62f3dfaf20f312d22fa5013d9328f56f8
[ "BSD-3-Clause" ]
null
null
null
data-preprocessor/BJUT_100/preprocessor.py
hkbonychen/3D-Morphable-Model-training
fa86d7e62f3dfaf20f312d22fa5013d9328f56f8
[ "BSD-3-Clause" ]
1
2021-12-21T01:13:24.000Z
2021-12-21T01:13:24.000Z
import csv import sys import os import subprocess import numpy as np from pathlib import Path def walklevel(some_dir, level=0): some_dir = some_dir.rstrip(os.path.sep) assert os.path.isdir(some_dir) num_sep = some_dir.count(os.path.sep) for root, dirs, files in os.walk(some_dir): yield root, di...
37.378378
117
0.691612
acfde0147f717f3f29f809dda562af712ce0dfed
243
py
Python
notifications/urls.py
jeffsimp88/twitterclone
696aa05da4feae15d7a0c2296a8d74be4ee32286
[ "MIT" ]
null
null
null
notifications/urls.py
jeffsimp88/twitterclone
696aa05da4feae15d7a0c2296a8d74be4ee32286
[ "MIT" ]
null
null
null
notifications/urls.py
jeffsimp88/twitterclone
696aa05da4feae15d7a0c2296a8d74be4ee32286
[ "MIT" ]
null
null
null
from django.urls import path from notifications import views urlpatterns = [ path("notifications/", views.notifications_view, name="notifications"), path("notifications/old/", views.old_notification_view, name="old notifications"), ]
30.375
86
0.765432
acfde0af0b894a86b7290f45b786502178567283
273
py
Python
tests/artificial/transf_Integration/trend_ConstantTrend/cycle_30/ar_/test_artificial_1024_Integration_ConstantTrend_30__100.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Integration/trend_ConstantTrend/cycle_30/ar_/test_artificial_1024_Integration_ConstantTrend_30__100.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Integration/trend_ConstantTrend/cycle_30/ar_/test_artificial_1024_Integration_ConstantTrend_30__100.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 30, transform = "Integration", sigma = 0.0, exog_count = 100, ar_order = 0);
39
173
0.739927
acfde165ec504124a9c5c7d52ae7e87b011e9c16
7,748
py
Python
packages/syft/src/syft/core/tensor/autograd/tensor.py
eelcovdw/PySyft
7eff8e9ad3fffe792ac85b9f38391b7ec0e51391
[ "Apache-1.1" ]
1
2019-02-10T13:22:14.000Z
2019-02-10T13:22:14.000Z
packages/syft/src/syft/core/tensor/autograd/tensor.py
dylan-fan/PySyft
c10b0e70a4a7f06eb9e01e6b98f0ff8856d7d62c
[ "Apache-1.1" ]
null
null
null
packages/syft/src/syft/core/tensor/autograd/tensor.py
dylan-fan/PySyft
c10b0e70a4a7f06eb9e01e6b98f0ff8856d7d62c
[ "Apache-1.1" ]
1
2021-07-12T09:15:44.000Z
2021-07-12T09:15:44.000Z
# future from __future__ import annotations # stdlib from typing import Any from typing import Dict as TypeDict from typing import List from typing import Optional from typing import Tuple from typing import Type from typing import Union import uuid # third party import numpy as np # relative from .. import autograd...
33.253219
102
0.630356
acfde1a681e6156a8e6835d21209dde939aeaa94
174
py
Python
tempCodeRunnerFile.py
jasDestiny/Reddit_EngDict_Bot
a2c81ddf87ab9023647d740112edec3ba47cdd8a
[ "MIT" ]
1
2021-05-28T17:31:05.000Z
2021-05-28T17:31:05.000Z
tempCodeRunnerFile.py
jasDestiny/Reddit_EngDict_Bot
a2c81ddf87ab9023647d740112edec3ba47cdd8a
[ "MIT" ]
null
null
null
tempCodeRunnerFile.py
jasDestiny/Reddit_EngDict_Bot
a2c81ddf87ab9023647d740112edec3ba47cdd8a
[ "MIT" ]
null
null
null
if comment!="": # print("reply sent") # submission.reply("[A Real user's application that autogenerates synonyms of some words] \n\n"+comment)
58
120
0.597701
acfde2ed648321118a2bfe045b19a2a852f2d03e
554
py
Python
manage.py
couldandblow/Intelligent-QA-in-medicine
a067a7fe85c7ec034c627082e2ea28f11ee06797
[ "MIT" ]
null
null
null
manage.py
couldandblow/Intelligent-QA-in-medicine
a067a7fe85c7ec034c627082e2ea28f11ee06797
[ "MIT" ]
null
null
null
manage.py
couldandblow/Intelligent-QA-in-medicine
a067a7fe85c7ec034c627082e2ea28f11ee06797
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "KGQA_Based_On_medicine.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't impo...
34.625
86
0.694946
acfde30aead8d293d45d795d536f193bae0c89c9
21,917
py
Python
google/cloud/aiplatform/utils/__init__.py
morgandu/python-aiplatform
96ce7387ac58e0ec7cb6a7f6d6a6e422eae5da96
[ "Apache-2.0" ]
1
2021-09-07T23:11:11.000Z
2021-09-07T23:11:11.000Z
google/cloud/aiplatform/utils/__init__.py
morgandu/python-aiplatform
96ce7387ac58e0ec7cb6a7f6d6a6e422eae5da96
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/utils/__init__.py
morgandu/python-aiplatform
96ce7387ac58e0ec7cb6a7f6d6a6e422eae5da96
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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 o...
34.514961
112
0.696491
acfde3123065225740dbe1eceeb0c518a06b8555
13,407
py
Python
pychron/pipeline/plot/plotter/references_series.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/pipeline/plot/plotter/references_series.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/pipeline/plot/plotter/references_series.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2015 Jake Ross # # 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...
33.68593
88
0.533154
acfde3abd51479d957eaa9d75211fadeea8d7784
2,135
py
Python
src/optimctrltf/torch/obj.py
alucantonio/nabla
d24d8611178ae54c952a253612c0e3ae7ca25a21
[ "MIT" ]
null
null
null
src/optimctrltf/torch/obj.py
alucantonio/nabla
d24d8611178ae54c952a253612c0e3ae7ca25a21
[ "MIT" ]
null
null
null
src/optimctrltf/torch/obj.py
alucantonio/nabla
d24d8611178ae54c952a253612c0e3ae7ca25a21
[ "MIT" ]
null
null
null
import torch import numpy as np class PyTorchObjective(object): """PyTorch objective function, wrapped to be called by scipy.optimize.""" def __init__(self, objfunc, x0): # Objective function: callable with arguments x, params; must return a single scalar or tensor with one element self.f = o...
32.846154
119
0.601874
acfde3fa4edc67f26e7f41cce9c2b25fba87f4aa
4,114
py
Python
test/test_shell_script.py
shah-newaz/vaxrank
65832878f28ce44ccaaf47be3e0c6d38a1743988
[ "Apache-2.0" ]
null
null
null
test/test_shell_script.py
shah-newaz/vaxrank
65832878f28ce44ccaaf47be3e0c6d38a1743988
[ "Apache-2.0" ]
null
null
null
test/test_shell_script.py
shah-newaz/vaxrank
65832878f28ce44ccaaf47be3e0c6d38a1743988
[ "Apache-2.0" ]
null
null
null
from os.path import getsize from mock import patch from nose.plugins.attrib import attr from tempfile import NamedTemporaryFile import pandas as pd from xlrd import open_workbook from vaxrank.cli import main as run_shell_script from .testing_helpers import data_path cli_args_for_b16_seqdata = [ "--vcf", data_pa...
32.140625
88
0.654351
acfde407712bbffb4844301748be7abe6897ea92
16,785
py
Python
astropy/modeling/tests/test_core.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
4
2021-03-25T15:49:56.000Z
2021-12-15T09:10:04.000Z
astropy/modeling/tests/test_core.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
astropy/modeling/tests/test_core.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # pylint: disable=invalid-name import os import sys import subprocess import pytest import numpy as np from inspect import signature from numpy.testing import assert_allclose import astropy from astropy.modeling.core import Model, custom_model from astro...
31.025878
109
0.601966
acfde44cc5bc119f04426ab7364a49efd6811caa
3,237
py
Python
profiles_project/settings.py
AngusData/profiles-rest-api
41eda7366824c5be4b99f0186902fc38c090cd7c
[ "MIT" ]
null
null
null
profiles_project/settings.py
AngusData/profiles-rest-api
41eda7366824c5be4b99f0186902fc38c090cd7c
[ "MIT" ]
null
null
null
profiles_project/settings.py
AngusData/profiles-rest-api
41eda7366824c5be4b99f0186902fc38c090cd7c
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.488189
91
0.700649
acfde48d7edfcf775a0170688977782e1d61b5da
460
py
Python
env/Lib/site-packages/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="tickvalssrc", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_n...
27.058824
70
0.632609
acfde4dbad16b80f8f955eb5733f70c211b77e52
3,010
py
Python
examples/pybullet/examples/userData.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
9,136
2015-01-02T00:41:45.000Z
2022-03-31T15:30:02.000Z
examples/pybullet/examples/userData.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,424
2015-01-05T08:55:58.000Z
2022-03-30T19:34:55.000Z
examples/pybullet/examples/userData.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,921
2015-01-02T10:19:30.000Z
2022-03-31T02:48:42.000Z
import pybullet as pb import time from pybullet_utils import bullet_client server = bullet_client.BulletClient(connection_mode=pb.SHARED_MEMORY_SERVER) print("Connecting to bullet server") CONNECTION_METHOD = pb.SHARED_MEMORY client = bullet_client.BulletClient(connection_mode=CONNECTION_METHOD) PLANE_PATH = "plane....
28.396226
94
0.781063
acfde72122b2d6224a834cb20ab88b5b97809ef6
3,905
py
Python
2.0/main.py
Felipe2102/Assistente-Escolar-setup-model
6181232b52f412581461ee1089fb068b85d7d28e
[ "Apache-2.0" ]
null
null
null
2.0/main.py
Felipe2102/Assistente-Escolar-setup-model
6181232b52f412581461ee1089fb068b85d7d28e
[ "Apache-2.0" ]
null
null
null
2.0/main.py
Felipe2102/Assistente-Escolar-setup-model
6181232b52f412581461ee1089fb068b85d7d28e
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import PySimpleGUI as sg import os Dia = datetime.now().weekday() def setup(): #Define o tema sg.theme('DarkGrey13') #Cria as pastas os.mkdir('./Data') os.mkdir('./Data/Lessons') #Cria os arquivos ASEG = open('Data/Lessons/Aulas_seg.txt','w') ATER = open('Data/Lessons/Aulas_ter....
30.271318
98
0.702433
acfde886521b26470efdf1680611c904f6027b07
20,470
py
Python
vspk/v4_0/nuredundantport.py
mohaimenhasan/vspk-python
4c7b297427048340b250cc3c74d9214dc0d4bde1
[ "BSD-3-Clause" ]
null
null
null
vspk/v4_0/nuredundantport.py
mohaimenhasan/vspk-python
4c7b297427048340b250cc3c74d9214dc0d4bde1
[ "BSD-3-Clause" ]
null
null
null
vspk/v4_0/nuredundantport.py
mohaimenhasan/vspk-python
4c7b297427048340b250cc3c74d9214dc0d4bde1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyrigh...
30.416048
241
0.599365
acfde9036c39d84bc896f058fbfe7b992e26113b
6,443
py
Python
experiments/vss/export-latex.py
ibalajiarun/libpolycrypto
89a69ed90ee4e9287222cc5781ff11562286f454
[ "MIT" ]
25
2020-01-29T19:33:48.000Z
2022-03-28T16:45:51.000Z
experiments/vss/export-latex.py
ibalajiarun/libpolycrypto
89a69ed90ee4e9287222cc5781ff11562286f454
[ "MIT" ]
2
2020-03-18T12:33:27.000Z
2020-03-18T18:30:55.000Z
experiments/vss/export-latex.py
ibalajiarun/libpolycrypto
89a69ed90ee4e9287222cc5781ff11562286f454
[ "MIT" ]
8
2020-07-09T01:35:42.000Z
2021-07-20T04:54:47.000Z
#!/usr/bin/env python2.7 import matplotlib matplotlib.use('Agg') # otherwise script does not work when invoked over SSH import matplotlib.pyplot as plt from matplotlib.ticker import FuncFormatter from matplotlib.dates import MonthLocator, DateFormatter, DayLocator, epoch2num, num2date import itertools import pandas i...
36.40113
164
0.652646
acfde92d5518e7beb962b7cee980f0c01ffeee3b
2,080
py
Python
mps_database/models/threshold_fault.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
null
null
null
mps_database/models/threshold_fault.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
1
2017-07-07T21:31:59.000Z
2017-07-07T21:31:59.000Z
mps_database/models/threshold_fault.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
4
2017-07-07T20:10:54.000Z
2020-12-13T00:03:37.000Z
from sqlalchemy import Column, Integer, Float, String, Boolean, ForeignKey from sqlalchemy.orm import relationship, backref from mps_database.models import Base class ThresholdFault(Base): """ ThresholdFault class (threshold_faults table) Describe an analog fault, which is generated by an AnalogDevice. The An...
45.217391
103
0.751923
acfde9453ce0c9c058b5aee09f9c5b14eefe5196
2,234
py
Python
geekup/models/participant.py
hasgeek/geekup
4e9b83f63203ae15d11a3e2e679e8a86ae02e545
[ "CC-BY-3.0" ]
1
2020-06-26T17:10:37.000Z
2020-06-26T17:10:37.000Z
geekup/models/participant.py
hasgeek/geekup
4e9b83f63203ae15d11a3e2e679e8a86ae02e545
[ "CC-BY-3.0" ]
5
2017-05-04T06:24:17.000Z
2019-05-08T00:16:46.000Z
geekup/models/participant.py
hasgeek/geekup
4e9b83f63203ae15d11a3e2e679e8a86ae02e545
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- from geekup.models import db, BaseMixin from datetime import datetime class Participant(BaseMixin, db.Model): """ Participant data, as submitted from the registration form. """ __tablename__ = 'participant' #: User's full name fullname = db.Column(db.Unicode(80), nulla...
39.192982
77
0.682632
acfdebb27e82073412a74171aa132600d05a2dd6
862
py
Python
Taller_Estructuras_de _Control_Selectivas/Ejercicio_16.py
Mariajosedibo19/Talleres_de_Algoritmos
db8f1eecc345be1877d9d7a62a3fa8cf3af2df7d
[ "MIT" ]
null
null
null
Taller_Estructuras_de _Control_Selectivas/Ejercicio_16.py
Mariajosedibo19/Talleres_de_Algoritmos
db8f1eecc345be1877d9d7a62a3fa8cf3af2df7d
[ "MIT" ]
null
null
null
Taller_Estructuras_de _Control_Selectivas/Ejercicio_16.py
Mariajosedibo19/Talleres_de_Algoritmos
db8f1eecc345be1877d9d7a62a3fa8cf3af2df7d
[ "MIT" ]
null
null
null
""" Datos de entrada valor para A en la formula cuadratica = a= float valor para B en la formula cuadratica = b = float valor para C en la formula cuadratica = c = float Datos de salida Resultado de la ecuacion = A X**2 +BX + C =0 """ # Entradas a=float(input("valor para A en la formula cuadratica ")) b=float(in...
22.684211
82
0.687935
acfdebe951a5af3b6dd3848c882863048fc9e0c6
1,076
py
Python
dependencies/scons-config/build/lib.linux-x86_64-2.7/sconsconfig/packages/sqlite3.py
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
17
2018-11-25T19:29:34.000Z
2021-09-20T04:46:22.000Z
dependencies/scons-config/build/lib.linux-x86_64-2.7/sconsconfig/packages/sqlite3.py
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
1
2020-11-12T15:15:58.000Z
2020-12-29T15:29:24.000Z
dependencies/scons-config/build/lib.linux-x86_64-2.7/sconsconfig/packages/sqlite3.py
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
4
2018-10-17T12:18:10.000Z
2021-05-28T13:24:20.000Z
import sys, os from Package import Package ## ## ## class sqlite3(Package): def __init__(self, **kwargs): defaults = { 'download_url': 'http://github.com/furious-luke/sqlite3-ext/tarball/master', } defaults.update(kwargs) super(sqlite3, self).__init__(**defaults) ...
22.893617
92
0.549257
acfdee6a35e1886193846182859f207bee72621f
401
py
Python
src/draggle_blog/wsgi.py
dipto0321/draggle_blog
c19f96aa1d4d2fb8b4b901e33c38e92602ef1fcb
[ "MIT" ]
null
null
null
src/draggle_blog/wsgi.py
dipto0321/draggle_blog
c19f96aa1d4d2fb8b4b901e33c38e92602ef1fcb
[ "MIT" ]
27
2019-11-12T17:04:02.000Z
2020-06-08T23:31:19.000Z
src/draggle_blog/wsgi.py
dipto0321/draggle_blog
c19f96aa1d4d2fb8b4b901e33c38e92602ef1fcb
[ "MIT" ]
null
null
null
""" WSGI config for draggle_blog project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
acfdf0b15fd7d353b2668624f2976019bb1c5593
802
py
Python
opentech/apply/funds/templatetags/submission_tags.py
JakabGy/hypha
32634080ba1cb369f07f27f6616041e4eca8dbf2
[ "BSD-3-Clause" ]
null
null
null
opentech/apply/funds/templatetags/submission_tags.py
JakabGy/hypha
32634080ba1cb369f07f27f6616041e4eca8dbf2
[ "BSD-3-Clause" ]
null
null
null
opentech/apply/funds/templatetags/submission_tags.py
JakabGy/hypha
32634080ba1cb369f07f27f6616041e4eca8dbf2
[ "BSD-3-Clause" ]
null
null
null
import re from django import template from django.utils.safestring import mark_safe from opentech.apply.funds.models import ApplicationSubmission register = template.Library() @register.filter def submission_links(value): # Match tags in the format #123 that is not preceeded and/or followed by a word character...
32.08
161
0.665835
acfdf147d28c7124b641a7334212c00dec2b4ece
10,409
py
Python
tests/conftest.py
Alenush/datasets
8342de4864ce255e802c0d15b14921029002befa
[ "Apache-2.0" ]
1
2021-11-21T18:37:28.000Z
2021-11-21T18:37:28.000Z
tests/conftest.py
Ishan-Kumar2/datasets
ba831e4bcd175ae3d52afbf7d12c4f625bf541b0
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
Ishan-Kumar2/datasets
ba831e4bcd175ae3d52afbf7d12c4f625bf541b0
[ "Apache-2.0" ]
null
null
null
import csv import json import lzma import os import textwrap import pyarrow as pa import pyarrow.parquet as pq import pytest from datasets import config from datasets.arrow_dataset import Dataset from datasets.features import ClassLabel, Features, Sequence, Value from .s3_fixtures import * # noqa: load s3 fixtures ...
29.238764
117
0.619176