hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
083457c7a4579aa2504fd77f4701907df4ed2bd1
5,916
py
Python
vectorhub/encoders/image/tfhub/bit.py
NanaAkwasiAbayieBoateng/vectorhub
265933521cf0a3113a47182a30b0037bf163584b
[ "Apache-2.0" ]
1
2020-11-04T16:02:39.000Z
2020-11-04T16:02:39.000Z
vectorhub/encoders/image/tfhub/bit.py
NanaAkwasiAbayieBoateng/vectorhub
265933521cf0a3113a47182a30b0037bf163584b
[ "Apache-2.0" ]
null
null
null
vectorhub/encoders/image/tfhub/bit.py
NanaAkwasiAbayieBoateng/vectorhub
265933521cf0a3113a47182a30b0037bf163584b
[ "Apache-2.0" ]
null
null
null
from ..base import BaseImage2Vec from ....base import catch_vector_errors from ....doc_utils import ModelDefinition from ....import_utils import * if is_all_dependency_installed('encoders-image-tfhub'): import tensorflow as tf import tensorflow_hub as hub import traceback from datetime import date BITModel...
56.884615
146
0.710446
90c67426873f2fd4bf086a716f15f2bd6fe0ff68
77,761
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/dhcpv6pdclientrange_1ea0dbdae0b8444cbd2c3f69d865dc4a.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/dhcpv6pdclientrange_e0352bf9938da3adc4efb13d397664f1.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/dhcpv6pdclientrange_0990e65c10ad0d9786aa12afebdb6f71.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
122.265723
23,008
0.794537
90f124cf53c55e50fa914f864c444f571f3e5d88
2,847
py
Python
sktime/transformations/series/adapt.py
abdulelahsm/sktime
ce056a56246ec26f2bfdaef2d5a58a949ed3bd52
[ "BSD-3-Clause" ]
1
2020-06-02T22:24:44.000Z
2020-06-02T22:24:44.000Z
sktime/transformations/series/adapt.py
abhishek-parashar/sktime
1dfce6b41c2acdb576acfc04b09d11bf115c92d1
[ "BSD-3-Clause" ]
1
2021-02-02T12:14:08.000Z
2021-02-02T12:14:08.000Z
sktime/transformations/series/adapt.py
abhishek-parashar/sktime
1dfce6b41c2acdb576acfc04b09d11bf115c92d1
[ "BSD-3-Clause" ]
3
2020-10-18T04:54:30.000Z
2021-02-15T18:04:18.000Z
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) __author__ = ["Markus Löning"] __all__ = ["TabularToSeriesAdaptor"] import pandas as pd from sklearn.base import clone from sklearn.utils.metaestimators import if_delegate_has_method from sktime....
26.119266
82
0.622761
8d0adbec21d19b55dcd91fd8d3cead9ba1d52364
3,079
py
Python
tvm_test/partition/client/resnet/resnet152/partition_graph_and_save.py
junarwohn/tvm
96c2e06cd063a695b3b485f2bdf8875df55fff1a
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tvm_test/partition/client/resnet/resnet152/partition_graph_and_save.py
junarwohn/tvm
96c2e06cd063a695b3b485f2bdf8875df55fff1a
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tvm_test/partition/client/resnet/resnet152/partition_graph_and_save.py
junarwohn/tvm
96c2e06cd063a695b3b485f2bdf8875df55fff1a
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
import time from tensorflow import keras from tensorflow.keras.applications.resnet50 import preprocess_input import numpy as np from PIL import Image import tvm import tvm.relay as relay from tvm import rpc from tvm.contrib import utils from tvm.contrib.download import download_testdata from tvm.contrib import graph_ex...
35.390805
154
0.725885
5480176f2c321eea2b3545c7f60cbfced439cd2c
637
py
Python
Python/Python15/test.py
sapieninja/AdventOfCode
8190c11e3eb2e4292a0cf66a6ef9261dee880f2e
[ "MIT" ]
null
null
null
Python/Python15/test.py
sapieninja/AdventOfCode
8190c11e3eb2e4292a0cf66a6ef9261dee880f2e
[ "MIT" ]
1
2021-03-30T12:31:38.000Z
2021-03-30T12:31:38.000Z
Python/Python15/test.py
sapieninja/AdventOfCode
8190c11e3eb2e4292a0cf66a6ef9261dee880f2e
[ "MIT" ]
null
null
null
import aoc_utils lines = aoc_utils.readlines() for x in lines: print(x) aim = 'a' soldict = {} for x in lines: solution = '' i = 0 while True: if x[i] == '-': break solution += x[i] i+=1 soldict[x.split()[-1]] = solution solution = soldict[aim] print(solution) pri...
21.233333
58
0.535322
6aef2aafe0cb4bc13f1ca8114d85b32a7f7f2aa9
7,515
py
Python
sdk/python/pulumi_azure_nextgen/apimanagement/v20180101/api_issue_attachment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/apimanagement/v20180101/api_issue_attachment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/apimanagement/v20180101/api_issue_attachment.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
48.173077
701
0.65642
ee4e39f6ca6c13c4a4977645be6218115c5528c9
5,335
py
Python
Guia_1_python/EVALUACION3/B_Certificados.py
villagoservices/INACAP
4a624b69f13f59049c539a59bad952f5d9338884
[ "Unlicense" ]
null
null
null
Guia_1_python/EVALUACION3/B_Certificados.py
villagoservices/INACAP
4a624b69f13f59049c539a59bad952f5d9338884
[ "Unlicense" ]
null
null
null
Guia_1_python/EVALUACION3/B_Certificados.py
villagoservices/INACAP
4a624b69f13f59049c539a59bad952f5d9338884
[ "Unlicense" ]
null
null
null
''' Nombre: Daniel Alejandro Villalon Gonzalez BD: • Precio del certificado : Debe estar entre $0 y $50.000 • Tipo de tramite : 1-Presencial, 2-Online. • Especificación del certificado: 1-Nacimiento, 2-Defuncion, 3-Matrimonio. ''' bd = [ [], #Precio del certificado digitarPrecios() [], #Ti...
31.017442
87
0.559138
bbc72579038e904b69bb839c64967e25e037c097
1,136
py
Python
tests/test_find_pairs.py
ffreemt/tinybee-aligner
5a38b0634df12a197e50ba21efb017d58e4cd02d
[ "MIT" ]
null
null
null
tests/test_find_pairs.py
ffreemt/tinybee-aligner
5a38b0634df12a197e50ba21efb017d58e4cd02d
[ "MIT" ]
null
null
null
tests/test_find_pairs.py
ffreemt/tinybee-aligner
5a38b0634df12a197e50ba21efb017d58e4cd02d
[ "MIT" ]
null
null
null
"""Test find_pairs.""" import joblib from tinybee.find_pairs import find_pairs from tinybee.cos_matrix2 import cos_matrix2 def t_est_find_pairs_via_lowess(): """Test find_pairs.""" shen600 = joblib.load("data/shen600.lzma") shzh500 = joblib.load("data/shzh600.lzma")[:500] cmat = cos_matrix2(shen600,...
28.4
122
0.634683
9e3e664efd275dd71153d7bec11cab29a2b702f3
583
py
Python
intro/matplotlib/examples/plot_ugly.py
timhoffm/scipy-lecture-notes
30da3a288efa5897d24fbd122c50dc938bcd5ca8
[ "CC-BY-4.0" ]
1
2019-09-04T12:58:20.000Z
2019-09-04T12:58:20.000Z
intro/matplotlib/examples/plot_ugly.py
timhoffm/scipy-lecture-notes
30da3a288efa5897d24fbd122c50dc938bcd5ca8
[ "CC-BY-4.0" ]
null
null
null
intro/matplotlib/examples/plot_ugly.py
timhoffm/scipy-lecture-notes
30da3a288efa5897d24fbd122c50dc938bcd5ca8
[ "CC-BY-4.0" ]
null
null
null
""" A example of plotting not quite right ====================================== An "ugly" example of plotting. """ import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt matplotlib.rc('grid', color='black', linestyle='-', linewidth=1) fig = plt.figure(figsize=(5,4),dpi=72) axes ...
21.592593
64
0.614065
11aadedb9d80873b6f4e0f1f92806fcb4eb19268
4,358
py
Python
tests/anomaly/forecast_based/test_lstm.py
ankitakashyap05/Merlion
7dc95fbf64002e22bfce89625bdb76b7a3cbfbfc
[ "BSD-3-Clause" ]
1
2021-09-24T11:03:42.000Z
2021-09-24T11:03:42.000Z
tests/anomaly/forecast_based/test_lstm.py
ankitakashyap05/Merlion
7dc95fbf64002e22bfce89625bdb76b7a3cbfbfc
[ "BSD-3-Clause" ]
1
2022-01-31T10:38:38.000Z
2022-01-31T10:38:38.000Z
tests/anomaly/forecast_based/test_lstm.py
ankitakashyap05/Merlion
7dc95fbf64002e22bfce89625bdb76b7a3cbfbfc
[ "BSD-3-Clause" ]
1
2021-12-01T16:20:23.000Z
2021-12-01T16:20:23.000Z
# # Copyright (c) 2021 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # import datetime import logging import math from os.path import abspath, dirname, join import sys imp...
41.113208
119
0.665672
82a732f455742e8bb1028844e613032513154f78
1,079
py
Python
code/pid_control.py
dlmed/LC3-SeBRA
a9f9a4375a060579b9a0982227897f18e9bb76c3
[ "MIT" ]
null
null
null
code/pid_control.py
dlmed/LC3-SeBRA
a9f9a4375a060579b9a0982227897f18e9bb76c3
[ "MIT" ]
null
null
null
code/pid_control.py
dlmed/LC3-SeBRA
a9f9a4375a060579b9a0982227897f18e9bb76c3
[ "MIT" ]
null
null
null
class PID(): def __init__(self): self.ref = 1.9 self.kp = 7 self.ki = 0.0 self.kd = 0.2 self.delta_t = 0.05 # 50 ms self.e_acum = 0.0 self.measu_prev1 = 0.0 self.measu_prev2 = 0.0 self.measu_prev3 = 0.0 self.sat_e_acum = 60.0 # 60 degre...
30.828571
79
0.559778
0fd2c28be6e974db737795c606688c2d1a30f46e
3,490
py
Python
cross_compile.py
Fletcher-Climate-Group/npmemory
ba4a4d36d9691569b09c127e9e508b92ab3e0689
[ "MIT" ]
null
null
null
cross_compile.py
Fletcher-Climate-Group/npmemory
ba4a4d36d9691569b09c127e9e508b92ab3e0689
[ "MIT" ]
null
null
null
cross_compile.py
Fletcher-Climate-Group/npmemory
ba4a4d36d9691569b09c127e9e508b92ab3e0689
[ "MIT" ]
null
null
null
""" Copyright © 2020 Daniel Hogg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl...
27.480315
101
0.681375
28a8bab7a35f49030de8209bdc6fc8e1df5d74c1
19,680
py
Python
app.py
patilsuhas-git/documentclassifierprerequisiteanalyzer
e083c5901ffac9caf218bd6d94af7bac0e9e1c62
[ "MIT" ]
null
null
null
app.py
patilsuhas-git/documentclassifierprerequisiteanalyzer
e083c5901ffac9caf218bd6d94af7bac0e9e1c62
[ "MIT" ]
null
null
null
app.py
patilsuhas-git/documentclassifierprerequisiteanalyzer
e083c5901ffac9caf218bd6d94af7bac0e9e1c62
[ "MIT" ]
null
null
null
#Author: Arun Balchandran #Contributor: Suhas Patil from waitress import serve from flask import Flask, request, redirect, url_for, render_template, flash, session, send_file from werkzeug.utils import secure_filename from werkzeug import generate_password_hash, check_password_hash from werkzeug.utils import secure_fil...
51.25
171
0.60249
6775ad7960add58d259fb0338190fbef08985fa2
5,784
py
Python
models/train.py
Polly42Rose/SiriusIntentPredictionSlotFilling
32cae480623ee75f4788f983e8e1ef443afe985d
[ "Apache-2.0" ]
6
2020-07-12T23:58:26.000Z
2022-02-28T06:56:08.000Z
models/train.py
Polly42Rose/SiriusIntentPredictionSlotFilling
32cae480623ee75f4788f983e8e1ef443afe985d
[ "Apache-2.0" ]
1
2020-05-02T15:37:10.000Z
2020-05-02T15:37:10.000Z
models/train.py
Polly42Rose/SiriusIntentPredictionSlotFilling
32cae480623ee75f4788f983e8e1ef443afe985d
[ "Apache-2.0" ]
4
2019-11-20T02:38:13.000Z
2021-03-17T12:47:04.000Z
import pandas as pd import numpy as np from tqdm import tqdm from models.dataset import ATIS, preprocess_atis, padding_map from models.bilstm_model import BiLSTMmodel from quality_metrics.quality_metrics import intent_accuracy, slot_f1, sentence_accuracy import torch import torch.nn as nn from torch.nn.utils.rnn impo...
40.732394
112
0.651452
163fcbf4e4487e38edc68296ceaac86b1bdf6177
592
py
Python
rw_visual.py
siddarta-weis/data-visualization
a4ad4f1eb94db769eae1bff44acc3ca02c10b782
[ "BSD-2-Clause" ]
null
null
null
rw_visual.py
siddarta-weis/data-visualization
a4ad4f1eb94db769eae1bff44acc3ca02c10b782
[ "BSD-2-Clause" ]
null
null
null
rw_visual.py
siddarta-weis/data-visualization
a4ad4f1eb94db769eae1bff44acc3ca02c10b782
[ "BSD-2-Clause" ]
null
null
null
import matplotlib.pyplot as plt from random_walk import RandomWalk #keep making new walks, as long as the program is active while True: rw = RandomWalk(5000) rw.fill_walk() point_numbers = list(range(rw.num_points)) plt.figure(dpi=96, figsize=(10,6)) plt.scatter(rw.x_values, rw.y_values, c=...
28.190476
101
0.66723
e1c00db5351878392d12db34b346a0f98f027790
2,219
py
Python
train.py
arkuhn/recurrent-food
919a81f46bf0501eb1f75e34bdd4addbecede2d8
[ "MIT" ]
1
2016-08-24T16:44:41.000Z
2016-08-24T16:44:41.000Z
train.py
arkuhn/recurrent-food
919a81f46bf0501eb1f75e34bdd4addbecede2d8
[ "MIT" ]
null
null
null
train.py
arkuhn/recurrent-food
919a81f46bf0501eb1f75e34bdd4addbecede2d8
[ "MIT" ]
null
null
null
from dataset import * import tensorflow as tf #Learning rate learning_rate = 0.001 #Total iterations we train training_iterations = 20000 #How much is getting trained per iteration batch_size = 100 #How often do we print to terminal display_step = 100 #N number of most common words in dictionary, n_classes vocabu...
24.384615
100
0.661109
e6c577d6070b097e35f7ec227d9219e5a529e710
2,169
py
Python
Donwload_python/Script cursoemvideo/Aulas/aula19.py
SricardoSdSouza/Scripte_Python
1bd3a162cc4822c2dee5bef65af07c6abbf5df5b
[ "MIT" ]
null
null
null
Donwload_python/Script cursoemvideo/Aulas/aula19.py
SricardoSdSouza/Scripte_Python
1bd3a162cc4822c2dee5bef65af07c6abbf5df5b
[ "MIT" ]
null
null
null
Donwload_python/Script cursoemvideo/Aulas/aula19.py
SricardoSdSouza/Scripte_Python
1bd3a162cc4822c2dee5bef65af07c6abbf5df5b
[ "MIT" ]
1
2021-06-15T13:23:34.000Z
2021-06-15T13:23:34.000Z
'''filme = {'nome':'Star Wars','ano':1977,'autor':'Gerge Lucas'} print(filme) for k,v in filme.items(): print(f'O {k} é {v} ') print('-=-'*30) pessoas = {'nome':'Gustavo','Sexo':'M','Idade':22} print(pessoas) print(pessoas['nome']) print(pessoas ['Sexo']) print(pessoas ['Idade']) print('-=-'*30) print(f'O {pessoas[...
27.1125
64
0.608114
f21b6d07141ec8f36edb7a736920ad0e79c9fd23
1,182
py
Python
test_telnet.py
smlandreth/pynet_week2
dfab8e7cec058a0891ea3c30b4243d488a3810f1
[ "Apache-2.0" ]
null
null
null
test_telnet.py
smlandreth/pynet_week2
dfab8e7cec058a0891ea3c30b4243d488a3810f1
[ "Apache-2.0" ]
null
null
null
test_telnet.py
smlandreth/pynet_week2
dfab8e7cec058a0891ea3c30b4243d488a3810f1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import telnetlib import time import socket import sys TELNET_PORT = 23 TELNET_TIMEOUT = 6 def send_command(remote_conn, cmd): cmd = cmd.rstrip() remote_conn.write(cmd + '\n') time.sleep(1) return remote_conn.read_very_eager() def login(remote_conn, username, password): o...
20.736842
69
0.688663
72813709ecae1dba5a672d9ff7017be8deb49245
43,169
py
Python
holoviews/tests/core/testdynamic.py
fedario/holoviews
1cf01c36f746cff17f48c700c1f67b1b6254be85
[ "BSD-3-Clause" ]
null
null
null
holoviews/tests/core/testdynamic.py
fedario/holoviews
1cf01c36f746cff17f48c700c1f67b1b6254be85
[ "BSD-3-Clause" ]
null
null
null
holoviews/tests/core/testdynamic.py
fedario/holoviews
1cf01c36f746cff17f48c700c1f67b1b6254be85
[ "BSD-3-Clause" ]
null
null
null
import uuid import time from collections import deque import param import numpy as np from holoviews import Dimension, NdLayout, GridSpace, Layout, NdOverlay from holoviews.core.spaces import DynamicMap, HoloMap, Callable from holoviews.core.options import Store from holoviews.element import Image, Scatter, Curve, Tex...
41.191794
109
0.614492
b0a3b2660df3259860fffb8a89b6ce407546663b
4,244
py
Python
microproxy/test/context/test_http.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
20
2016-04-17T08:43:26.000Z
2021-05-31T04:01:27.000Z
microproxy/test/context/test_http.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
237
2016-04-17T07:07:08.000Z
2017-01-26T09:15:52.000Z
microproxy/test/context/test_http.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
5
2016-04-16T14:22:45.000Z
2019-11-27T04:41:55.000Z
import unittest from microproxy.context import HttpRequest, HttpResponse, HttpHeaders class TestHttp(unittest.TestCase): def test_req_serialize(self): http_message = HttpRequest(version="1.1", method="GET", path="/hello", ...
36.586207
88
0.542413
e8b57f8c3bd5deeabb784018917bb2b559f8cdde
14,170
py
Python
cfgov/core/tests/test_middleware.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
156
2015-01-16T15:16:46.000Z
2020-08-04T04:48:01.000Z
cfgov/core/tests/test_middleware.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
3,604
2015-01-05T22:09:12.000Z
2020-08-14T17:09:19.000Z
cfgov/core/tests/test_middleware.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
102
2015-01-28T14:51:18.000Z
2020-08-10T00:00:39.000Z
# -*- coding: utf-8 -*- from unittest import mock from django.http import HttpResponse from django.test import ( RequestFactory, SimpleTestCase, TestCase, override_settings, ) from django.utils import translation from bs4 import BeautifulSoup from core.middleware import ( DeactivateTranslationsMi...
34.645477
79
0.624277
259f795cfb071187436f0f8710667de4f184c397
7,604
py
Python
python/models/vae_incept.py
miccio-dk/itsadive_hybrid_structural_model
d58a0a90d67d19eb0fafacdfa5b32053c19756f0
[ "MIT" ]
7
2021-02-14T20:30:22.000Z
2022-03-08T11:15:38.000Z
python/models/vae_incept.py
miccio-dk/itsadive_hybrid_structural_model
d58a0a90d67d19eb0fafacdfa5b32053c19756f0
[ "MIT" ]
null
null
null
python/models/vae_incept.py
miccio-dk/itsadive_hybrid_structural_model
d58a0a90d67d19eb0fafacdfa5b32053c19756f0
[ "MIT" ]
3
2021-02-14T20:38:04.000Z
2022-02-28T23:20:02.000Z
import torch import torch.nn as nn import torch.nn.functional as F # Inception-vae - https://github.com/koshian2/inception-vae ## Encoder def create_encoder_single_conv(in_chs, out_chs, kernel): assert kernel % 2 == 1 return nn.Sequential( nn.Conv2d(in_chs, out_chs, kernel_size=kernel, padding=(kernel ...
39.195876
117
0.645581
ab33973fead257d5d2ca801ad009a9e95e76eb14
706
py
Python
app/main/forms.py
fiona-niwiduhaye/personal-blog
c804d81f45a21c37c9bf82308fc47674b1798bf6
[ "Unlicense" ]
null
null
null
app/main/forms.py
fiona-niwiduhaye/personal-blog
c804d81f45a21c37c9bf82308fc47674b1798bf6
[ "Unlicense" ]
null
null
null
app/main/forms.py
fiona-niwiduhaye/personal-blog
c804d81f45a21c37c9bf82308fc47674b1798bf6
[ "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,TextAreaField,SubmitField,SelectField from wtforms.validators import Required,Email from ..models import User class UpdateProfile(FlaskForm): bio = TextAreaField('Tell us about you.',validators =[Required()]) email = StringField('Email',validator...
35.3
70
0.730878
f69abe9277344e040b8e6b0be99be1af7209639e
75,315
py
Python
electrumx/lib/coins.py
glemercier/electrum-smart-server
1c18858a4976f6643235a20b67367bacc3787781
[ "MIT" ]
3
2018-01-05T16:05:21.000Z
2018-04-06T14:44:39.000Z
electrumx/lib/coins.py
SmartCash/electrumx
f07d28dedc0773d8020ea5f396ecf9480d3b48d2
[ "MIT" ]
null
null
null
electrumx/lib/coins.py
SmartCash/electrumx
f07d28dedc0773d8020ea5f396ecf9480d3b48d2
[ "MIT" ]
6
2018-10-12T12:55:18.000Z
2020-12-21T22:40:55.000Z
# Copyright (c) 2016-2017, Neil Booth # Copyright (c) 2017, the ElectrumX authors # # All rights reserved. # # The MIT License (MIT) # # 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 ...
31.473046
79
0.648861
384760e286d54fd0f8235254b4c983d57a4b9f7e
563
py
Python
home/models.py
Divyansh9125/Advisor-Network
2beae4c8b72ae4041327f7d5155313b6a15ae812
[ "MIT" ]
null
null
null
home/models.py
Divyansh9125/Advisor-Network
2beae4c8b72ae4041327f7d5155313b6a15ae812
[ "MIT" ]
5
2021-03-30T13:34:38.000Z
2021-09-22T19:12:30.000Z
home/models.py
Divyansh9125/Advisor-Network
2beae4c8b72ae4041327f7d5155313b6a15ae812
[ "MIT" ]
null
null
null
from django.db import models from user.models import UserProfile class Advisor(models.Model): """ This model class stores the advisor data: 1. Advisor's name 2. Advisor's Photo URL """ name = models.CharField(max_length=250) url = models.CharField(max_length=250) def __str__(self): ...
29.631579
67
0.721137
cd5316b5716f6d3e55d5a4e60fbca00f7da9b769
1,634
py
Python
tests/test_models.py
roganov/local-data-api
2c58206f0221c913521778c627ed2bdbff11d274
[ "MIT" ]
102
2019-06-15T19:32:20.000Z
2022-03-25T18:39:07.000Z
tests/test_models.py
roganov/local-data-api
2c58206f0221c913521778c627ed2bdbff11d274
[ "MIT" ]
176
2019-06-16T05:57:29.000Z
2022-03-28T01:26:16.000Z
tests/test_models.py
healthpraxone/local-data-api
7f81daee9e80958c082d8d4ebbe767dbfecb2544
[ "MIT" ]
20
2019-10-30T09:02:20.000Z
2022-01-14T09:07:26.000Z
import datetime from base64 import b64encode from datetime import datetime import pytest from local_data_api.models import Field, SqlParameter def test_valid_field() -> None: assert SqlParameter(name='abc', value=Field(stringValue='abc')).valid_value == 'abc' assert SqlParameter(name='abc', value=Field(blob...
32.039216
88
0.619339
bdb5da350bf3162f4fb109526000753106f4f3a6
4,636
py
Python
keras_frcnn/pascal_voc_parser.py
touchylk/part_classification
25d25377addf6b459240748b61b7458233814b68
[ "Apache-2.0" ]
null
null
null
keras_frcnn/pascal_voc_parser.py
touchylk/part_classification
25d25377addf6b459240748b61b7458233814b68
[ "Apache-2.0" ]
null
null
null
keras_frcnn/pascal_voc_parser.py
touchylk/part_classification
25d25377addf6b459240748b61b7458233814b68
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import cv2 import xml.etree.ElementTree as ET import config import numpy as np cfg = config.Config() def get_data(input_path,part_class_map): all_imgs = [] classes_count = {} #class_mapping = {} bird_classes_count ={} #bird_class_mapping = {} visualise = False data_path = '...
31.324324
125
0.666523
45c861e2c3df9f14f9886091012d6cca69944454
4,812
py
Python
python/paddle/fluid/tests/unittests/test_elementwise_min_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
9
2017-12-04T02:58:01.000Z
2020-12-03T14:46:30.000Z
python/paddle/fluid/tests/unittests/test_elementwise_min_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
7
2017-12-05T20:29:08.000Z
2018-10-15T08:57:40.000Z
python/paddle/fluid/tests/unittests/test_elementwise_min_op.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
6
2018-03-19T22:38:46.000Z
2019-11-01T22:28:27.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.180451
78
0.586243
823ae27664b8474d46708847122f81c5318fc7ad
223
py
Python
api/src/department.py
obedabit/chatbot
dee2f75ed7a9bfb659e5f46f91b840c3c558f3c7
[ "MIT" ]
1
2022-03-07T16:10:02.000Z
2022-03-07T16:10:02.000Z
api/src/department.py
obedabit/chatbot
dee2f75ed7a9bfb659e5f46f91b840c3c558f3c7
[ "MIT" ]
null
null
null
api/src/department.py
obedabit/chatbot
dee2f75ed7a9bfb659e5f46f91b840c3c558f3c7
[ "MIT" ]
null
null
null
class Department: def __init__(self, id: int, name: str) -> None: self.id = id self.name = name def toDict(self): return { "id": self.id, "name": self.name }
20.272727
51
0.470852
fcffe14f96a46379037716dceb2719eec1e3b03c
582
py
Python
ipywidgets/_version.py
jpn--/ipywidgets
06fa6ee7d645009ad84062e12709825478bc0957
[ "BSD-3-Clause" ]
1
2021-04-04T02:48:29.000Z
2021-04-04T02:48:29.000Z
ipywidgets/_version.py
jpn--/ipywidgets
06fa6ee7d645009ad84062e12709825478bc0957
[ "BSD-3-Clause" ]
15
2021-03-05T14:30:06.000Z
2021-06-14T12:52:10.000Z
ipywidgets/_version.py
jpn--/ipywidgets
06fa6ee7d645009ad84062e12709825478bc0957
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. __version__ = '8.0.0a4' __protocol_version__ = '2.0.0' # These are *protocol* versions for each package, *not* npm versions. To check, look at each package's src/version.ts file for the protocol version the package i...
38.8
171
0.780069
ce94a84b66e95b4cd5061ecd527426e4f12b6afd
2,545
py
Python
examples/quickimages/app/models.py
ezeev/Flask-AppBuilder
d95f0ed934272629ee44ad3241646fa7ba09cdf8
[ "BSD-3-Clause" ]
71
2016-11-02T06:45:42.000Z
2021-11-15T12:33:48.000Z
examples/quickimages/app/models.py
ezeev/Flask-AppBuilder
d95f0ed934272629ee44ad3241646fa7ba09cdf8
[ "BSD-3-Clause" ]
3
2021-06-08T23:39:54.000Z
2022-03-12T00:50:13.000Z
examples/quickimages/app/models.py
ezeev/Flask-AppBuilder
d95f0ed934272629ee44ad3241646fa7ba09cdf8
[ "BSD-3-Clause" ]
23
2016-11-02T06:45:44.000Z
2022-02-08T14:55:13.000Z
import datetime from flask import Markup, url_for from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey, Date, Text from sqlalchemy.orm import relationship from app import db from flask_appbuilder.models.mixins import AuditMixin, BaseMixin, FileColumn, ImageColumn from flask_appbuilder.filemanager...
41.721311
104
0.629077
7d5c799f57b4e72a6c5fa5ff9589f59d1efbe260
7,047
py
Python
ctparse/partial_parse.py
bharathi-srini/ctparse
f3b7ef1045fbbc566dc838c66d4a47de160cb38f
[ "MIT" ]
null
null
null
ctparse/partial_parse.py
bharathi-srini/ctparse
f3b7ef1045fbbc566dc838c66d4a47de160cb38f
[ "MIT" ]
null
null
null
ctparse/partial_parse.py
bharathi-srini/ctparse
f3b7ef1045fbbc566dc838c66d4a47de160cb38f
[ "MIT" ]
null
null
null
import logging from datetime import datetime from typing import Callable, Optional, Sequence, Tuple, TypeVar, Union from .rule import rules as global_rules, ProductionRule from .timers import timeit from .types import Artifact, RegexMatch logger = logging.getLogger(__name__) T = TypeVar('T') class PartialParse: ...
39.15
95
0.612033
577c590deb1534591cbbb15f7dcc734340f0b6d6
51,693
py
Python
pysnmp/RAID-Adapter-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/RAID-Adapter-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/RAID-Adapter-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 RAID-Adapter-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RAID-Adapter-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:43:10 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
142.798343
6,801
0.743466
d5da653fb7c1bd67cda4b34761bf454c3452e4c5
225
py
Python
answer/urls.py
ZendaInnocent/codingpride
1df53c81eabb91097368d943a1d64db7cfa8d45d
[ "MIT" ]
1
2021-01-24T18:22:55.000Z
2021-01-24T18:22:55.000Z
answer/urls.py
ZendaInnocent/codingpride
1df53c81eabb91097368d943a1d64db7cfa8d45d
[ "MIT" ]
16
2021-01-24T18:58:46.000Z
2021-05-01T11:02:46.000Z
answer/urls.py
ZendaInnocent/codingpride
1df53c81eabb91097368d943a1d64db7cfa8d45d
[ "MIT" ]
8
2021-01-19T18:56:56.000Z
2021-02-01T11:36:33.000Z
from django.urls import path from .views import * app_name = 'answer' urlpatterns = [ path('answer-question/<slug:slug>', answer, name='answer'), path('edit-answer/<slug:slug>', edit_answer, name='edit_answer'), ]
20.454545
69
0.684444
9d5ba90487cc59d93b4079dd1f912d9e99ac6edf
3,001
py
Python
solo/main.py
Saket-Komawar/Forex
a470cb59cc0e9d4ed71713975cd8d2f778540100
[ "Apache-2.0" ]
null
null
null
solo/main.py
Saket-Komawar/Forex
a470cb59cc0e9d4ed71713975cd8d2f778540100
[ "Apache-2.0" ]
2
2020-06-05T17:30:33.000Z
2021-06-10T18:53:59.000Z
solo/main.py
Saket-Komawar/Forex
a470cb59cc0e9d4ed71713975cd8d2f778540100
[ "Apache-2.0" ]
2
2017-02-01T09:24:27.000Z
2017-02-05T17:09:02.000Z
import bing_search import scrapper import nlp import test_ml class Logic: def __init__(self): pass def process(self, company_name, isIEC, path): search_engine = bing_search.BingSearch() a = search_engine.get_urls(company_name) url_list = a text_list = [] my_sc...
28.046729
64
0.47884
10d57d8616cf358ae1ed4994ee8164b0f582376b
32,044
py
Python
pandas/tests/indexes/test_numeric.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-08-06T14:07:02.000Z
2021-08-06T14:07:02.000Z
pandas/tests/indexes/test_numeric.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/test_numeric.py
garyteofanus/pandas
cc51219fad8add8f442b847ccdabd3f9e9077cb6
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4
2020-02-07T05:05:32.000Z
2020-05-11T06:06:17.000Z
from datetime import datetime, timedelta import re import numpy as np import pytest from pandas._libs.tslibs import Timestamp import pandas as pd from pandas import Float64Index, Index, Int64Index, Series, UInt64Index import pandas._testing as tm from pandas.api.types import pandas_dtype from pandas.tests.indexes.co...
35.251925
88
0.589752
8883e39e93695efd61f4cf9c561e4881b743b75d
2,102
py
Python
locations/spiders/schlotzskys.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
null
null
null
locations/spiders/schlotzskys.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
null
null
null
locations/spiders/schlotzskys.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy import json from locations.items import GeojsonPointItem class SchlotzskysSpider(scrapy.Spider): name = 'schlotzskys' item_attributes = { 'brand': "Schlotzsky's" } allowed_domains = ['schlotzskys.com'] start_urls = ['https://www.schlotzskys.com/restaurants/'] ...
35.627119
113
0.595623
303aea533163720c626b39e6c0bbce695a86963f
16,358
py
Python
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
import unittest import numpy as np from mtrack.graphs import G1 from mtrack.evaluation.matching_graph import MatchingGraph from mtrack.evaluation.voxel_skeleton import VoxelSkeleton from comatch import match_components import json test_data_dir = "./data" class ParallelLinesSetUp(unittest.TestCase): def setUp(se...
38.399061
183
0.578127
f01ca40a88c4a0c8760d8c0edb105cd10124316d
323
py
Python
reapy/core/window/window.py
AmrShaloudi/reapy
f38fa447b8ab1f018171e0cffb8c7f47bcdd1b88
[ "MIT" ]
71
2019-02-23T02:24:45.000Z
2022-03-23T22:28:08.000Z
reapy/core/window/window.py
AmrShaloudi/reapy
f38fa447b8ab1f018171e0cffb8c7f47bcdd1b88
[ "MIT" ]
107
2019-02-25T16:48:34.000Z
2022-03-28T01:59:04.000Z
reapy/core/window/window.py
AmrShaloudi/reapy
f38fa447b8ab1f018171e0cffb8c7f47bcdd1b88
[ "MIT" ]
26
2019-04-08T09:45:02.000Z
2022-03-27T14:55:24.000Z
import reapy from reapy.core import ReapyObject import reapy.reascript_api as RPR class Window(ReapyObject): def __init__(self, id): self.id = id @property def _args(self): return (self.id,) def refresh(self): """Refresh window.""" RPR.DockWindowRefreshForHWND(self.i...
17.944444
45
0.647059
55d7e5af1bbd7b03ab0704b25169867b275eb154
938
py
Python
kubernetes/test/test_v1_event_source.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_event_source.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_event_source.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
1
2020-05-09T07:16:55.000Z
2020-05-09T07:16:55.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
20.844444
105
0.701493
76e333d63280becb0216b4937c2add100fa5abf5
2,839
py
Python
udf/buildbib.py
metazool/pegamatites-xDD
0d8aba77904c6dd0e2fc227cba84dcb9ecf728a4
[ "CC-BY-4.0" ]
null
null
null
udf/buildbib.py
metazool/pegamatites-xDD
0d8aba77904c6dd0e2fc227cba84dcb9ecf728a4
[ "CC-BY-4.0" ]
null
null
null
udf/buildbib.py
metazool/pegamatites-xDD
0d8aba77904c6dd0e2fc227cba84dcb9ecf728a4
[ "CC-BY-4.0" ]
null
null
null
#============================================================================== #BUILD A BASIC BIBLIOGRAPHY #============================================================================== import json,psycopg2, yaml from yaml import Loader # Connect to Postgres with open('./credentials', 'r') as credential_yaml: c...
27.833333
79
0.530116
12ddc05b1f2ae8272daa43f760318d0d7c58eb86
8,139
py
Python
notebooks/go_and_get_it.py
LAR-USP/hsrb_robocup_dspl_docker
6ff86bbafa36d5ee905a4e39d350df1d343b0762
[ "BSD-3-Clause-Clear" ]
null
null
null
notebooks/go_and_get_it.py
LAR-USP/hsrb_robocup_dspl_docker
6ff86bbafa36d5ee905a4e39d350df1d343b0762
[ "BSD-3-Clause-Clear" ]
null
null
null
notebooks/go_and_get_it.py
LAR-USP/hsrb_robocup_dspl_docker
6ff86bbafa36d5ee905a4e39d350df1d343b0762
[ "BSD-3-Clause-Clear" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import rospy import tf2_ros from utils import * import msg_listener import numpy as np import requests import base64 import ast import threading from geometry_msgs.msg import Pose import tf2_geometry_msgs # **Do not use geometry_msgs. Use t...
32.951417
105
0.608674
1c2d5c01ca1dab4d07f601f9c346d1cf713a4ed6
4,689
py
Python
yt_dlp/extractor/keezmovies.py
YuanHsing/yt-dlp
38d86f4d45cf2b764f79141c602356fbb426a4b6
[ "Unlicense" ]
1
2021-12-13T14:12:47.000Z
2021-12-13T14:12:47.000Z
yt_dlp/extractor/keezmovies.py
YuanHsing/yt-dlp
38d86f4d45cf2b764f79141c602356fbb426a4b6
[ "Unlicense" ]
null
null
null
yt_dlp/extractor/keezmovies.py
YuanHsing/yt-dlp
38d86f4d45cf2b764f79141c602356fbb426a4b6
[ "Unlicense" ]
null
null
null
import re from .common import InfoExtractor from ..aes import aes_decrypt_text from ..compat import compat_urllib_parse_unquote from ..utils import ( determine_ext, ExtractorError, format_field, int_or_none, str_to_int, strip_or_none, url_or_none, ) class KeezMoviesIE(InfoExtractor): ...
35.255639
121
0.538494
61d8531e54c424a41c139d1436607fa245ee6f8b
454
py
Python
safe_grid_agents/common/agents/__init__.py
jvmancuso/safe-grid-agents
40f8101d23ca7dfe5c93d0c6be2a43101f56ce1c
[ "Apache-2.0" ]
21
2018-07-31T21:12:37.000Z
2019-03-31T05:55:56.000Z
safe_grid_agents/common/agents/__init__.py
jvmncs/safe-grid-agents
40f8101d23ca7dfe5c93d0c6be2a43101f56ce1c
[ "Apache-2.0" ]
21
2018-09-28T21:21:18.000Z
2019-06-02T22:00:35.000Z
safe_grid_agents/common/agents/__init__.py
jvmncs/safe-grid-agents
40f8101d23ca7dfe5c93d0c6be2a43101f56ce1c
[ "Apache-2.0" ]
4
2018-09-24T05:05:29.000Z
2019-06-26T00:27:35.000Z
"""Top-level agents import.""" from safe_grid_agents.common.agents.dummy import RandomAgent, SingleActionAgent from safe_grid_agents.common.agents.value import TabularQAgent, DeepQAgent from safe_grid_agents.common.agents.policy_mlp import PPOMLPAgent from safe_grid_agents.common.agents.policy_cnn import PPOCNNAgent _...
30.266667
79
0.781938
5257461505301d2cf991887886eeb481f38d46ae
4,130
py
Python
pwtools/symmetry.py
elcorto/pwtools
cee068d1c7984d85e94ace243f86de350d3a1dba
[ "BSD-3-Clause" ]
41
2016-06-25T13:17:57.000Z
2022-02-24T16:08:47.000Z
pwtools/symmetry.py
elcorto/pwtools
cee068d1c7984d85e94ace243f86de350d3a1dba
[ "BSD-3-Clause" ]
4
2019-02-27T09:14:17.000Z
2021-10-30T21:12:53.000Z
pwtools/symmetry.py
elcorto/pwtools
cee068d1c7984d85e94ace243f86de350d3a1dba
[ "BSD-3-Clause" ]
9
2017-06-01T12:57:57.000Z
2022-02-20T01:52:03.000Z
import numpy as np import spglib from pwtools import atomic_data from pwtools.crys import Structure def is_same_struct(st1, st2): """Test if two :class:`~pwtools.crys.Structure` instances are the same. Use ``numpy.allclose`` for float-type properties. """ # maybe add early stopping (return if the fi...
30.820896
79
0.643341
a7572e88c0ab97c1191c5555a9fb7a737bc1601c
6,478
py
Python
harstorage/lib/Math.py
SylvainTI/harstorage
51a43e0a9580304a63b21525d05d3008a2271633
[ "Apache-2.0" ]
1
2020-09-09T10:36:30.000Z
2020-09-09T10:36:30.000Z
harstorage/lib/Math.py
SylvainTI/harstorage
51a43e0a9580304a63b21525d05d3008a2271633
[ "Apache-2.0" ]
null
null
null
harstorage/lib/Math.py
SylvainTI/harstorage
51a43e0a9580304a63b21525d05d3008a2271633
[ "Apache-2.0" ]
null
null
null
import math class Aggregator(): """ Test results aggregation """ def __init__(self): self.METRICS = ( "full_load_time", "requests", "total_size", "ps_scores", "onload_event", "start_render_time", "time_to_first_byte", "total_dns_time", ...
29.715596
88
0.524236
f05c254a026274c9946a5f7bc85408dfeea37719
3,700
py
Python
Python_OCR_JE/venv/Lib/site-packages/numpy/f2py/tests/test_crackfortran.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/f2py/tests/test_crackfortran.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/f2py/tests/test_crackfortran.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
import numpy as np from numpy.testing import assert_array_equal from . import util from numpy.f2py import crackfortran import tempfile import textwrap class TestNoSpace(util.F2PyTest): # issue gh-15035: add handling for endsubroutine, endfunction with no space # between "end" and the block name ...
31.355932
80
0.51973
62f882e5bfb686f20fd70bbb1e657ed830218724
1,934
py
Python
Leetcode/Intermediate/Math/50_Pow_x_n.py
ZR-Huang/AlgorithmPractices
226cecde136531341ce23cdf88529345be1912fc
[ "BSD-3-Clause" ]
1
2019-11-26T11:52:25.000Z
2019-11-26T11:52:25.000Z
Leetcode/Intermediate/Math/50_Pow_x_n.py
ZR-Huang/AlgorithmPractices
226cecde136531341ce23cdf88529345be1912fc
[ "BSD-3-Clause" ]
null
null
null
Leetcode/Intermediate/Math/50_Pow_x_n.py
ZR-Huang/AlgorithmPractices
226cecde136531341ce23cdf88529345be1912fc
[ "BSD-3-Clause" ]
null
null
null
''' Implement pow(x, n), which calculates x raised to the power n(x^n). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: Input: 2.10000, 3 Output: 9.26100 Example 3: Input: 2.00000, -2 Output: 0.25000 Explanation: 2^(-2) = 1/(2^2) = 1/4 = 0.25 Note: - -100.0 < x < 100.0 - n is a 32-bit signed integer, wi...
23.876543
70
0.468459
0742681a14352e8e762a2cba584e487b2d90d7c0
5,996
py
Python
gdal/swig/python/scripts/gdal_fillnodata.py
dtusk/gdal1
30dcdc1eccbca2331674f6421f1c5013807da609
[ "MIT" ]
3
2017-01-12T10:18:56.000Z
2020-03-21T16:42:55.000Z
gdal/swig/python/scripts/gdal_fillnodata.py
ShinNoNoir/gdal-1.11.5-vs2015
5d544e176a4c11f9bcd12a0fe66f97fd157824e6
[ "MIT" ]
null
null
null
gdal/swig/python/scripts/gdal_fillnodata.py
ShinNoNoir/gdal-1.11.5-vs2015
5d544e176a4c11f9bcd12a0fe66f97fd157824e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python #****************************************************************************** # $Id$ # # Project: GDAL Python Interface # Purpose: Application for filling nodata areas in a raster by interpolation # Author: Frank Warmerdam, warmerdam@pobox.com # #***************************************...
29.106796
91
0.522015
0f15929230aa69a32f20fbbbfdb4fe382b93640b
276
py
Python
tests/artificial/transf_RelativeDifference/trend_LinearTrend/cycle_12/ar_/test_artificial_128_RelativeDifference_LinearTrend_12__20.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_RelativeDifference/trend_LinearTrend/cycle_12/ar_/test_artificial_128_RelativeDifference_LinearTrend_12__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_RelativeDifference/trend_LinearTrend/cycle_12/ar_/test_artificial_128_RelativeDifference_LinearTrend_12__20.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 = 128 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 12, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 0);
39.428571
176
0.742754
e8aee99ce5f61808ad046258749828022f197151
4,475
py
Python
DRP/interleaver_to_matrix.py
DougMHu/DASANN-simulations
811488b46a343b52582268221830ea0f74c1e97d
[ "MIT" ]
null
null
null
DRP/interleaver_to_matrix.py
DougMHu/DASANN-simulations
811488b46a343b52582268221830ea0f74c1e97d
[ "MIT" ]
null
null
null
DRP/interleaver_to_matrix.py
DougMHu/DASANN-simulations
811488b46a343b52582268221830ea0f74c1e97d
[ "MIT" ]
null
null
null
################################################### # translate DRP interleaver to an adjacency matrix ################################################### # import numpy library import numpy as np # helper functions def gcd(a, b): """Return greatest common divisor using Euclid's Algorithm.""" while b: ...
27.121212
78
0.568939
682c4de2f38ed311f05e45e3bd113707d6af7ef0
6,713
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/statistics/view/layer23trafficflowfilter/enumerationfilter/enumerationfilter.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
uhd_restpy/testplatform/sessions/ixnetwork/statistics/view/layer23trafficflowfilter/enumerationfilter/enumerationfilter.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
uhd_restpy/testplatform/sessions/ixnetwork/statistics/view/layer23trafficflowfilter/enumerationfilter/enumerationfilter.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
42.220126
184
0.687174
32f5fb3973afa80ec4ac404afe833ae646c4a4cc
5,933
py
Python
src/robot/reporting/resultwriter.py
guykisel/robotframework
495befccb8eec20a7c38d22bf0abcc8eda72582e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/reporting/resultwriter.py
guykisel/robotframework
495befccb8eec20a7c38d22bf0abcc8eda72582e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/reporting/resultwriter.py
guykisel/robotframework
495befccb8eec20a7c38d22bf0abcc8eda72582e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
41.78169
80
0.628687
7dbf1e68d447262fa10ef85bd9db793fa70d35ca
496
py
Python
client made in python/project/executable.py
kamesguen21/NetworkSAdmin
f7544a218f1ccc30c9ba6e6b298fba55f7fef6bb
[ "MIT" ]
2
2020-07-20T09:42:54.000Z
2020-07-20T09:43:23.000Z
client made in python/project/executable.py
kamesguen21/NetworkSAdmin
f7544a218f1ccc30c9ba6e6b298fba55f7fef6bb
[ "MIT" ]
null
null
null
client made in python/project/executable.py
kamesguen21/NetworkSAdmin
f7544a218f1ccc30c9ba6e6b298fba55f7fef6bb
[ "MIT" ]
null
null
null
from cx_Freeze import setup, Executable # On appelle la fonction setup setup( name = "votre_programme", version = "1", description = "Votre programme", options = { 'build_exe': { 'packages': ['encodings', 'asyncio','win32timezone', 'win32serviceutil','win32service','mult...
31
81
0.616935
955d1c2646df108f2710757525b0583f5c517b6e
853
py
Python
services/datalad/datalad_service/middleware/auth.py
robertoostenveld/openneuro
81a350d6e8467f77c712d796484cb78020f5ab65
[ "MIT" ]
2
2018-05-22T17:06:55.000Z
2019-02-19T00:43:26.000Z
services/datalad/datalad_service/middleware/auth.py
robertoostenveld/openneuro
81a350d6e8467f77c712d796484cb78020f5ab65
[ "MIT" ]
113
2018-03-05T22:30:34.000Z
2020-06-24T14:26:49.000Z
services/datalad/datalad_service/middleware/auth.py
robertoostenveld/openneuro
81a350d6e8467f77c712d796484cb78020f5ab65
[ "MIT" ]
4
2018-07-27T04:03:28.000Z
2019-09-04T14:50:17.000Z
import jwt import os from datalad_service.common.raven import set_user_context class AuthenticateMiddleware(object): def process_request(self, req, resp): """Process the request before routing it. Args: req: Request object that will eventually be routed to an on_* res...
30.464286
73
0.568581
d47d0d64e17575e3e2bc82c0fec02c7cb4d34ed2
643
py
Python
py/py_0501_eight_divisors.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0501_eight_divisors.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0501_eight_divisors.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 501: Eight Divisors # https://projecteuler.net/problem=501 # # The eight divisors of 24 are 1, 2, 3, 4, 6, 8, 12 and 24. The ten numbers # not exceeding 100 having exactly eight divisors are 24, 30, 40, 42, 54, 56, # 66, 70, 78 and 88. Let f(n) be the count of numbers not excee...
26.791667
78
0.662519
2ab93b35edaba3dffcdbffccfcdf2ab6a46673da
716
py
Python
djaludir/core/views.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
null
null
null
djaludir/core/views.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
2
2020-06-05T19:30:19.000Z
2021-06-10T20:54:38.000Z
djaludir/core/views.py
carthagecollege/django-djaludir
126735000efb69d7184aec9591a96667070f1870
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.urlresolvers import reverse_lazy from django.shortcuts import render from django.contrib.auth.decorators import login_required @login_required def home(request): username = None if request.session.get('username'): username = request.session['username'] ...
28.64
79
0.673184
e40b25b415cb3372fbfb72375f96adbce76af5fc
417
py
Python
states.py
rvalien/GladOs
9cb762f313273222a1c4fd30c27ed8c6573e6d44
[ "MIT" ]
1
2020-05-03T09:41:53.000Z
2020-05-03T09:41:53.000Z
states.py
rvalien/GladOs
9cb762f313273222a1c4fd30c27ed8c6573e6d44
[ "MIT" ]
1
2022-02-01T14:41:36.000Z
2022-02-01T14:41:36.000Z
states.py
rvalien/GladOs
9cb762f313273222a1c4fd30c27ed8c6573e6d44
[ "MIT" ]
2
2020-02-04T01:26:48.000Z
2020-05-03T09:41:55.000Z
from aiogram.dispatcher.filters.state import State, StatesGroup class HomeForm(StatesGroup): """Форма для передачи показаний приборов учёта.""" t = State() t1 = State() t2 = State() cold = State() hot = State() date = State() previous_t = State() previous_t1 = State() previous_...
21.947368
63
0.630695
0357c942f0baaefc5e099052cca4ca9be73f7e85
76
py
Python
price_picker/common/util.py
M0r13n/price_picker
aaa4e79496753bc3b61afbde6324868ee5c46aa5
[ "MIT" ]
3
2019-08-03T16:52:36.000Z
2020-04-13T10:06:38.000Z
price_picker/common/util.py
M0r13n/price_picker
aaa4e79496753bc3b61afbde6324868ee5c46aa5
[ "MIT" ]
null
null
null
price_picker/common/util.py
M0r13n/price_picker
aaa4e79496753bc3b61afbde6324868ee5c46aa5
[ "MIT" ]
1
2021-01-02T11:31:25.000Z
2021-01-02T11:31:25.000Z
import datetime as dt def now(): return dt.datetime.now().timestamp()
12.666667
40
0.684211
ed2cafd0c29b83ec78133bf7d49e0d3df7606d16
66
py
Python
autotgame/__init__.py
vmgustavo/autotgame
7fa90fa74e493727ee8a6e3d61f0357084929c43
[ "MIT" ]
null
null
null
autotgame/__init__.py
vmgustavo/autotgame
7fa90fa74e493727ee8a6e3d61f0357084929c43
[ "MIT" ]
null
null
null
autotgame/__init__.py
vmgustavo/autotgame
7fa90fa74e493727ee8a6e3d61f0357084929c43
[ "MIT" ]
null
null
null
from .BasicAPI import BasicAPI from .MathBattle import MathBattle
22
34
0.848485
21054c0e2d6cb751ca41019863421c6241ff86fd
781
py
Python
pipeline/compare.py
maryxavier2002/AutomatedML
e7ce245674010fafdcd65ba3148229027193958b
[ "MIT" ]
1
2019-04-10T16:50:58.000Z
2019-04-10T16:50:58.000Z
pipeline/compare.py
maryxavier2002/AutomatedML
e7ce245674010fafdcd65ba3148229027193958b
[ "MIT" ]
null
null
null
pipeline/compare.py
maryxavier2002/AutomatedML
e7ce245674010fafdcd65ba3148229027193958b
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. import argparse import os print("In compare.py") print("As a data scientist, this is where I use my compare code.") parser = argparse.ArgumentParser("compare") parser.add_argument("--compare_data1", type=str, help="compare_data1 data") ...
33.956522
82
0.74904
77252d471198894223a8dbb032bdcad0e157bdb0
4,956
py
Python
sdk/python/broker/base.py
bitribe/Bitribe-OpenApi
87f376d5f74e8800465928eb307301d1021f8d6f
[ "Apache-2.0" ]
1
2020-06-02T02:43:30.000Z
2020-06-02T02:43:30.000Z
sdk/python/broker/base.py
bitribe/Bitribe-OpenApi
87f376d5f74e8800465928eb307301d1021f8d6f
[ "Apache-2.0" ]
null
null
null
sdk/python/broker/base.py
bitribe/Bitribe-OpenApi
87f376d5f74e8800465928eb307301d1021f8d6f
[ "Apache-2.0" ]
1
2019-12-15T14:43:54.000Z
2019-12-15T14:43:54.000Z
import hashlib import hmac import re import time import urllib import requests import six from broker.exceptions import BrokerApiException, BrokerRequestException from broker import user_agent class Request(object): API_VERSION = 'v1' QUOTE_API_VERSION = 'v1' def __init__(self, api_key='', secret='', ...
30.592593
111
0.606336
ffc8b9ec63d6f5719db560c62688dd30059a6115
4,446
py
Python
adhmodel/simulation/operation_parameters.py
erdc/AdhModel
2c5d49dd4cca484a6c46ded6e1f6dec25db4722c
[ "BSD-3-Clause" ]
3
2019-06-26T13:41:46.000Z
2019-10-16T02:11:29.000Z
adhmodel/simulation/operation_parameters.py
erdc/AdhModel
2c5d49dd4cca484a6c46ded6e1f6dec25db4722c
[ "BSD-3-Clause" ]
5
2019-06-26T14:29:03.000Z
2019-07-15T19:25:59.000Z
adhmodel/simulation/operation_parameters.py
erdc/AdhModel
2c5d49dd4cca484a6c46ded6e1f6dec25db4722c
[ "BSD-3-Clause" ]
2
2019-07-26T14:31:14.000Z
2019-09-03T18:06:39.000Z
# -*- coding: utf-8 -*- import param import panel as pn class OperationParameters(param.Parameterized): physics = param.ObjectSelector( default='SW2', objects=['SW2', 'SW3'], doc='OP SW2 or OP SW3: Simulation physics. REQUIRED.', precedence=1, ) incremental_memory = param.I...
32.691176
81
0.637202
72f4a5f87843bad57f5dc7c2d72af3c15aa48af3
566
py
Python
SrvClient/test/udp_sender.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
SrvClient/test/udp_sender.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
11
2021-02-08T20:45:23.000Z
2022-03-12T01:00:11.000Z
iperf/test/udp_sender.py
philip-shen/note_python
db0ad84af25464a22ac52e348960107c81e74a56
[ "MIT" ]
null
null
null
# https://gist.github.com/Lothiraldan/3951784 import socket ANY = "0.0.0.0" SENDERPORT = 32000 MCAST_ADDR = "237.252.249.227" MCAST_PORT = 1600 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) sock.bind((ANY, 0)) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 255) sock.set...
29.789474
95
0.765018
ddd8c0c0a21898988e20abe63514a94b32f0c24e
221
py
Python
human-feedback-api/setup.py
yangalexandery/rl-teacher
d7b01223df548bf7bd27d4ddec9f6e9c9dd0def4
[ "MIT" ]
463
2017-08-03T16:08:05.000Z
2022-03-06T23:12:40.000Z
human-feedback-api/setup.py
amarsbars/ROB537_Project
c32d7c2a1fb6eee48160a569bccc802e130728dd
[ "MIT" ]
22
2017-08-03T16:59:24.000Z
2020-12-21T01:08:26.000Z
human-feedback-api/setup.py
amarsbars/ROB537_Project
c32d7c2a1fb6eee48160a569bccc802e130728dd
[ "MIT" ]
86
2017-08-03T16:17:06.000Z
2022-03-08T12:11:00.000Z
from setuptools import setup setup(name='human_feedback_api', version='0.0.1', install_requires=[ 'Django', 'dj_database_url', 'gunicorn', 'whitenoise', 'ipython', ] )
17
32
0.561086
3bfa581db21b08809e9b88b04480dc1a9fe77b99
1,707
py
Python
src/UpdateChangelogGetter.py
ComradeNapCali/UniversalStudios
a35fd0565fb9fb708675892192ace2159b5569f5
[ "BSD-3-Clause" ]
null
null
null
src/UpdateChangelogGetter.py
ComradeNapCali/UniversalStudios
a35fd0565fb9fb708675892192ace2159b5569f5
[ "BSD-3-Clause" ]
null
null
null
src/UpdateChangelogGetter.py
ComradeNapCali/UniversalStudios
a35fd0565fb9fb708675892192ace2159b5569f5
[ "BSD-3-Clause" ]
null
null
null
from bs4 import BeautifulSoup import requests import asyncio class UpdateChangelogGetter: def __init__(self): self.TOONIVERSAL_URL = "https://tooniversal.com" self.TOONIVERSAL_UPDATE_URL = self.TOONIVERSAL_URL + "/releases" self.known_updates = [] def generate_update_announcement(self,...
42.675
139
0.659051
7f30ddf4961767322f80b61c1dc888fcf54a44ec
365
py
Python
cachegrab/utils/utils.py
xkortex/CacheGrab
a4ee30fa3a4c75c236771070c60aa94ec419de87
[ "MIT" ]
null
null
null
cachegrab/utils/utils.py
xkortex/CacheGrab
a4ee30fa3a4c75c236771070c60aa94ec419de87
[ "MIT" ]
null
null
null
cachegrab/utils/utils.py
xkortex/CacheGrab
a4ee30fa3a4c75c236771070c60aa94ec419de87
[ "MIT" ]
null
null
null
import os import errno def make_path(path): """ Make a path, ignoring already-exists error. Python 2/3 compliant. Catch any errors generated, and skip it if it's EEXIST. :param path: Path to create :return: """ try: os.makedirs(path) except OSError as exception: if excep...
24.333333
69
0.630137
6dc8fdc6c7e61e4fbc194beb5578e4c5963a7e4f
380
py
Python
PICMI_Python/setup.py
ax3l/picmi
534985343568aff29dd78ef1f4b11670dce94a98
[ "BSD-3-Clause-LBNL" ]
null
null
null
PICMI_Python/setup.py
ax3l/picmi
534985343568aff29dd78ef1f4b11670dce94a98
[ "BSD-3-Clause-LBNL" ]
null
null
null
PICMI_Python/setup.py
ax3l/picmi
534985343568aff29dd78ef1f4b11670dce94a98
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python # To use: # python setup.py install from setuptools import setup setup(name = 'picmistandard', version = '0.0.13', description = 'Python base classes for PICMI standard', platforms = 'any', packages = ['picmistandard'], package_dir = {'picmistandard': '.'}, ...
25.333333
61
0.615789
cc6860c0ee93d32a366aa22c55f535529ff75ad8
940
py
Python
m3_graphs.py
GeorgiStavrev/tensorflow-examples
b0d83b7f6eae6bf13ce52497b73080f177666028
[ "MIT" ]
null
null
null
m3_graphs.py
GeorgiStavrev/tensorflow-examples
b0d83b7f6eae6bf13ce52497b73080f177666028
[ "MIT" ]
null
null
null
m3_graphs.py
GeorgiStavrev/tensorflow-examples
b0d83b7f6eae6bf13ce52497b73080f177666028
[ "MIT" ]
null
null
null
import tensorflow as tf g1 = tf.Graph() with g1.as_default(): with tf.Session() as sess: # y = Ax + b A = tf.constant([5,7], tf.int32, name='A') x = tf.placeholder(tf.int32, name='x') b = tf.constant([3,4], tf.int32, name='b') y = A * x + b print(sess.run(y, feed...
21.860465
50
0.53617
fe964c250de9a5c02c6b8c7adbf507d38a446979
75,073
py
Python
Lib/site-packages/matplotlib/cbook/__init__.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/matplotlib/cbook/__init__.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/matplotlib/cbook/__init__.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
""" A collection of utility functions and classes. Originally, many (but not all) were from the Python Cookbook -- hence the name cbook. This module is safe to import from anywhere within Matplotlib; it imports Matplotlib only at runtime. """ import collections import collections.abc import contextlib import functoo...
32.825973
79
0.590692
91254dd69dd16c2a713e3151ef7340d184c0cb9b
42,451
py
Python
src/sentry/event_manager.py
apragacz/sf-sentry
2fdd6c1195c29a1d401d1cd538c22ea68556699a
[ "BSD-3-Clause" ]
null
null
null
src/sentry/event_manager.py
apragacz/sf-sentry
2fdd6c1195c29a1d401d1cd538c22ea68556699a
[ "BSD-3-Clause" ]
1
2018-08-22T16:49:48.000Z
2018-08-22T16:49:48.000Z
src/sentry/event_manager.py
apragacz/sf-sentry
2fdd6c1195c29a1d401d1cd538c22ea68556699a
[ "BSD-3-Clause" ]
1
2018-07-02T09:46:44.000Z
2018-07-02T09:46:44.000Z
""" sentry.event_manager ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import logging import math import six from datetime import datetime, timedelta from collect...
35.853885
130
0.570281
9618ac047715afdc2f6f0b0b2e23d2865c6b65cc
7,718
py
Python
utee/misc.py
Emilycscs/pytorch-playground
c62c47052ef31c1c112154bd41c790c63c3169d1
[ "MIT" ]
14
2019-10-29T11:00:39.000Z
2022-03-15T09:07:19.000Z
utee/misc.py
MuZiGuYue/pytorch-playground
c62c47052ef31c1c112154bd41c790c63c3169d1
[ "MIT" ]
2
2020-03-31T02:50:12.000Z
2021-09-27T12:40:37.000Z
utee/misc.py
MuZiGuYue/pytorch-playground
c62c47052ef31c1c112154bd41c790c63c3169d1
[ "MIT" ]
6
2018-11-26T10:08:44.000Z
2020-02-21T05:02:15.000Z
import cv2 import os import shutil import pickle as pkl import time import numpy as np import hashlib from IPython import embed class Logger(object): def __init__(self): self._logger = None def init(self, logdir, name='log'): if self._logger is None: import logging if ...
33.850877
114
0.602099
b8fa0531788baeac4f86fd7bc3eb88d863ebca39
2,307
py
Python
app/core/tests/test_models.py
maulana4de/recipe-app-api
ebdada6313f17201f779298bd7618139127ba144
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
maulana4de/recipe-app-api
ebdada6313f17201f779298bd7618139127ba144
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
maulana4de/recipe-app-api
ebdada6313f17201f779298bd7618139127ba144
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='test@gmail.com', password='12345678'): """Create a sample user""" return get_user_model().objects.create_user(email, password) class ModelTests(TestCase): def test_create_use...
29.961039
73
0.63329
e45f0a9183bfa1e2fa92a39ffa184d424d3399ca
322
py
Python
tests/integration/python_await/multiple_outputs/__main__.py
sticha/pulumi
76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b
[ "Apache-2.0" ]
12,004
2018-06-17T23:56:29.000Z
2022-03-31T18:00:09.000Z
tests/integration/python_await/multiple_outputs/__main__.py
sticha/pulumi
76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b
[ "Apache-2.0" ]
6,263
2018-06-17T23:27:24.000Z
2022-03-31T19:20:35.000Z
tests/integration/python_await/multiple_outputs/__main__.py
sticha/pulumi
76ee1b8ccfee815eb315d9e0e0ddfaaf505c472b
[ "Apache-2.0" ]
706
2018-06-17T23:56:50.000Z
2022-03-31T11:20:23.000Z
import asyncio import pulumi output = pulumi.Output.from_input(asyncio.sleep(3, "magic string")) output.apply(print) exported = pulumi.Output.from_input(asyncio.sleep(2, "foo")) pulumi.export("exported", exported) exported.apply(print) another = pulumi.Output.from_input(asyncio.sleep(5, "bar")) another.apply(print) ...
21.466667
67
0.767081
7ee21361c8a431354dd39ddf1a48736d593b2ddc
3,371
py
Python
ucscsdk/mometa/fabric/FabricSanPinTarget.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
null
null
null
ucscsdk/mometa/fabric/FabricSanPinTarget.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
null
null
null
ucscsdk/mometa/fabric/FabricSanPinTarget.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for FabricSanPinTarget ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class FabricSanPinTargetConsts(): FABRIC_ID_A = "A" FABRIC_ID_B = "B" FABRIC_ID_...
51.861538
249
0.653219
a5b5ea819c829c7a6ef815d8893b6dcee9c8edc7
38,327
py
Python
other/plot_inf_time_14_inf.py
stephanballer/deepedgebench
1f905f88874f063607dd9f5fa97177a701a317f9
[ "MIT" ]
1
2021-12-28T09:04:05.000Z
2021-12-28T09:04:05.000Z
other/plot_inf_time_14_inf.py
stephanballer/deepedgebench
1f905f88874f063607dd9f5fa97177a701a317f9
[ "MIT" ]
null
null
null
other/plot_inf_time_14_inf.py
stephanballer/deepedgebench
1f905f88874f063607dd9f5fa97177a701a317f9
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import sys import colorsys import matplotlib.colors as mc import matplotlib as mpl mpl.rcParams['hatch.linewidth'] = 0.06 # previous pdf hatch linewidth mpl.rcParams['hatch.linewidth'] = 0.4 # previous svg hatch linewidth pow_ts_tinker_tf_mn2 = {'test_duration': 129...
159.033195
513
0.749863
b6ca53d2dabc587fcf343d70ea7ed6af2b34cc10
6,307
py
Python
mnist.py
Laserbear/tensorflow
55a4f47ac3c487fbb0a68087f969339fbf164992
[ "Apache-2.0" ]
null
null
null
mnist.py
Laserbear/tensorflow
55a4f47ac3c487fbb0a68087f969339fbf164992
[ "Apache-2.0" ]
null
null
null
mnist.py
Laserbear/tensorflow
55a4f47ac3c487fbb0a68087f969339fbf164992
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
43.798611
80
0.682892
61e28299916c2edc71ef1fc0ea4d9aa835469794
298
py
Python
src/kgmk/dsa/number_theory/euler_totient/with_prime_numbers/jit.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/number_theory/euler_totient/with_prime_numbers/jit.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/number_theory/euler_totient/with_prime_numbers/jit.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import numpy as np import numba as nb @nb.njit def euler_totient( n: int, prime_numbers: np.array, ) -> int: c = n for p in prime_numbers: if p * p > n: break if n % p: continue c = c // p * (p - 1) while not n % p: n //= p if n > 1: c = c // n * (n - 1) return c
15.684211
28
0.520134
240398a04070b7007fa8e0a13ae1f949a20a8c95
1,258
py
Python
tests/test_structured_values.py
abeyerpath/Snowfakery
98d04862f2e7638486cf38eb9e9fdb12b38e391e
[ "BSD-3-Clause" ]
81
2020-03-23T21:43:16.000Z
2022-03-21T06:24:19.000Z
tests/test_structured_values.py
abeyerpath/Snowfakery
98d04862f2e7638486cf38eb9e9fdb12b38e391e
[ "BSD-3-Clause" ]
348
2020-04-08T13:33:15.000Z
2022-03-27T04:02:56.000Z
tests/test_structured_values.py
abeyerpath/Snowfakery
98d04862f2e7638486cf38eb9e9fdb12b38e391e
[ "BSD-3-Clause" ]
20
2020-04-15T20:04:30.000Z
2022-03-16T16:52:04.000Z
from io import StringIO from unittest import mock from snowfakery.data_generator import generate structured_values_with_templates = """ #1 - object: A #2 fields: #4 A: 5 #5 B: #5 ...
30.682927
72
0.502385
dc2d1e29719d0464591d6d9207926674b8f55e6e
7,651
py
Python
pkgs/applications/version-management/gitlab/update.py
felschr/nixpkgs
7513ff94c17248e08e3bcaeab916e15547fa2243
[ "MIT" ]
2
2020-04-03T10:50:47.000Z
2021-05-18T13:18:50.000Z
pkgs/applications/version-management/gitlab/update.py
felschr/nixpkgs
7513ff94c17248e08e3bcaeab916e15547fa2243
[ "MIT" ]
3
2020-03-06T14:52:13.000Z
2022-02-26T06:47:41.000Z
pkgs/applications/version-management/gitlab/update.py
felschr/nixpkgs
7513ff94c17248e08e3bcaeab916e15547fa2243
[ "MIT" ]
3
2020-11-04T05:30:50.000Z
2020-11-06T04:49:21.000Z
#!/usr/bin/env nix-shell #! nix-shell -i python3 -p bundix common-updater-scripts nix nix-prefetch-git python3 python3Packages.requests python3Packages.lxml python3Packages.click python3Packages.click-log vgo2nix yarn2nix import click import click_log import os import re import logging import subprocess import json im...
32.012552
196
0.647497
2d01f01130a2bc8d2bf2bc3c836ee21f1401a1d4
3,706
py
Python
test/wallet.py
stakecom/HCAP
47a1762652e8d0aad11544da7d48da6eb5c164db
[ "MIT" ]
null
null
null
test/wallet.py
stakecom/HCAP
47a1762652e8d0aad11544da7d48da6eb5c164db
[ "MIT" ]
null
null
null
test/wallet.py
stakecom/HCAP
47a1762652e8d0aad11544da7d48da6eb5c164db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Exercise the wallet. Ported from wallet.sh. # Does the following: # a) creates 3 nodes, with an emp...
39.425532
98
0.659471
6cc0c21fa13ad227862a16e5a73a1b2bde674914
956
py
Python
run.py
rowaishanna/CS-Build-Week-1
d33b79ac9a7c50b437a1e324e047ec5eec518b44
[ "MIT" ]
null
null
null
run.py
rowaishanna/CS-Build-Week-1
d33b79ac9a7c50b437a1e324e047ec5eec518b44
[ "MIT" ]
null
null
null
run.py
rowaishanna/CS-Build-Week-1
d33b79ac9a7c50b437a1e324e047ec5eec518b44
[ "MIT" ]
null
null
null
from sklearn.datasets import load_iris from dec_tree import DecisionTreeClassifier from sklearn import tree # load the iris dataset dataset = load_iris() # set X and y variables X, y = dataset.data, dataset.target print('---------------------------------------------') print(f'APPROPRIATE X, y DATATYPES: {type(X)}') p...
31.866667
62
0.5659
6b7cd83b33bf211cd4fc61fb57396151eda7d31d
1,972
py
Python
tiny_algos/multiset.py
azriel1rf/cp_lib_python
75646c2407057811dbc7a31b2cc288ef779ab93f
[ "MIT" ]
null
null
null
tiny_algos/multiset.py
azriel1rf/cp_lib_python
75646c2407057811dbc7a31b2cc288ef779ab93f
[ "MIT" ]
null
null
null
tiny_algos/multiset.py
azriel1rf/cp_lib_python
75646c2407057811dbc7a31b2cc288ef779ab93f
[ "MIT" ]
null
null
null
from itertools import chain from collections import defaultdict PINF = 9223372036854775807 # 2 ** 63 - 1 NINF = -PINF MIN_DEFAULT = PINF MAX_DEFAULT = NINF class MultiSet: def __init__(self, iterable=None): self._dict = defaultdict(int) self._len = 0 self._min = MIN_DEFAULT self....
27.388889
77
0.566937
88b495b07207639cb92a1ed793b5bc7dfa5e4af2
4,155
py
Python
ops-401d1: Challenge 33/malwareAnalysis.py
marioepugh/Ops-301d1-
0d3ad027fa48ed4e5c9c0314873f64d509b21f95
[ "MIT" ]
1
2020-10-22T05:21:00.000Z
2020-10-22T05:21:00.000Z
ops-401d1: Challenge 33/malwareAnalysis.py
marioepugh/Ops-301d1-
0d3ad027fa48ed4e5c9c0314873f64d509b21f95
[ "MIT" ]
null
null
null
ops-401d1: Challenge 33/malwareAnalysis.py
marioepugh/Ops-301d1-
0d3ad027fa48ed4e5c9c0314873f64d509b21f95
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Script: 401 Op Challenge Day 33 # Author: Mario Pugh # Date of latest revision: 11/18/20 # Purpose: Signature-based Malware Detection Part (3 of 3) # Import libraries import hashlib,datetime, os import getpass from time import sleep from d...
31.007463
107
0.524428
ad85b60447d003d311a45dc3799421df30bda725
1,131
py
Python
airflow/sensors/http_sensor.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/sensors/http_sensor.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/sensors/http_sensor.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...
37.7
83
0.765694
caa15dc8140f7cd44e22f081889b4c85b8e02176
4,232
py
Python
examples/Mechanics/GeometricPrimitives/four_cubes_2Box_2ConvexShapes.py
bremond/siconos
8deea56ff6779379f4f69e0376d24a81562a42d4
[ "Apache-2.0" ]
null
null
null
examples/Mechanics/GeometricPrimitives/four_cubes_2Box_2ConvexShapes.py
bremond/siconos
8deea56ff6779379f4f69e0376d24a81562a42d4
[ "Apache-2.0" ]
null
null
null
examples/Mechanics/GeometricPrimitives/four_cubes_2Box_2ConvexShapes.py
bremond/siconos
8deea56ff6779379f4f69e0376d24a81562a42d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Example of two cubes, one with a convex shape, one with a primitive # shape. # from siconos.mechanics.collision.tools import Contactor from siconos.io.mechanics_io import Hdf5 import siconos.numerics as Numerics edge_length = 0.1 plane_length = 2.0 velocity_init=0.0 angular_velocity_ini...
37.122807
118
0.670369
b94579d89a9a44add268ce64bd87808ac2a0a631
546
py
Python
manage.py
gregschmit/django-rest-scaffold
f40e986359c3a43846b0e72d603a9e1c855f5597
[ "MIT" ]
2
2019-09-27T00:08:30.000Z
2020-01-11T02:07:46.000Z
manage.py
gregschmit/django-rest-scaffold
f40e986359c3a43846b0e72d603a9e1c855f5597
[ "MIT" ]
null
null
null
manage.py
gregschmit/django-rest-scaffold
f40e986359c3a43846b0e72d603a9e1c855f5597
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rest_scaffold.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Djang...
32.117647
77
0.688645
6b227ced710bd234e75cb2e9d973950adab5322f
15,410
py
Python
manticore/utils/emulate.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
manticore/utils/emulate.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
manticore/utils/emulate.py
dmgress/manticore
61a5f934363980705ea1eea9717600eff005791b
[ "Apache-2.0" ]
null
null
null
import logging import time from capstone import * ###################################################################### # Abstract classes for capstone/unicorn based cpus # no emulator by default from unicorn import * from unicorn.arm_const import * from unicorn.x86_const import * from ..core.smtlib import Operator...
38.525
124
0.601882
4e9aa69b0bd7d135b5e29ba378bfa92708d38fdb
2,250
py
Python
api/src/main.py
blopezpi/mid-project-bdmlpt1021
fd2979e944a96b8b6dd6419c61d902f0a33df66d
[ "MIT" ]
4
2022-01-11T07:10:43.000Z
2022-03-28T13:44:50.000Z
api/src/main.py
aacecandev/mid-project-bdmlpt1021
2ae60a20e8c2c7276c73250935b800599fed0d18
[ "MIT" ]
60
2021-12-27T18:25:43.000Z
2022-03-28T05:17:04.000Z
api/src/main.py
aacecandev/mid-project-bdmlpt1021
2ae60a20e8c2c7276c73250935b800599fed0d18
[ "MIT" ]
2
2022-01-14T10:10:47.000Z
2022-01-18T06:08:37.000Z
from functools import lru_cache import config from fastapi import FastAPI from internals import internal_operations from routers import common, confirmed_cases, deaths, recoveries from sentry import set_sentry from sentry_sdk.integrations.asgi import SentryAsgiMiddleware @lru_cache() def get_settings(): return c...
23.195876
103
0.654667
21413d00e296fa6665cb5cefb40cf72df5950c2a
976
py
Python
examples/healthcare/mimic_tensor_matrix.py
mrbeann/MultiBench
7da0a493b8e2cd857a5c22c0be04748ab7487494
[ "MIT" ]
null
null
null
examples/healthcare/mimic_tensor_matrix.py
mrbeann/MultiBench
7da0a493b8e2cd857a5c22c0be04748ab7487494
[ "MIT" ]
null
null
null
examples/healthcare/mimic_tensor_matrix.py
mrbeann/MultiBench
7da0a493b8e2cd857a5c22c0be04748ab7487494
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.getcwd()) from training_structures.Simple_Late_Fusion import train, test from fusions.common_fusions import MultiplicativeInteractions2Modal from datasets.mimic.get_data import get_dataloader from unimodals.common_models import MLP, GRU from torch import nn import torch filename...
34.857143
87
0.776639
aa2ed59835dbcfe2b8f72388c66f1e208655e2ea
10,503
py
Python
datasets/epa_historical_air_quality/pipelines/hap_hourly_summary/hap_hourly_summary_dag.py
chellebodnar-google/public-datasets-pipelines
872a02fb06a7f536d06f20ef8dcf525575b1aea6
[ "Apache-2.0" ]
null
null
null
datasets/epa_historical_air_quality/pipelines/hap_hourly_summary/hap_hourly_summary_dag.py
chellebodnar-google/public-datasets-pipelines
872a02fb06a7f536d06f20ef8dcf525575b1aea6
[ "Apache-2.0" ]
null
null
null
datasets/epa_historical_air_quality/pipelines/hap_hourly_summary/hap_hourly_summary_dag.py
chellebodnar-google/public-datasets-pipelines
872a02fb06a7f536d06f20ef8dcf525575b1aea6
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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, ...
47.098655
615
0.552318
cf110dde8b1dc145626dcf576179cf640195963b
20,729
py
Python
tensorflow_federated/python/learning/framework/optimizer_utils_test.py
mhalawad/federated
d683db15d87eb545e3df6530a698ba1c785ebe79
[ "Apache-2.0" ]
1
2020-08-27T14:16:06.000Z
2020-08-27T14:16:06.000Z
tensorflow_federated/python/learning/framework/optimizer_utils_test.py
mhalawad/federated
d683db15d87eb545e3df6530a698ba1c785ebe79
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/framework/optimizer_utils_test.py
mhalawad/federated
d683db15d87eb545e3df6530a698ba1c785ebe79
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, The TensorFlow Federated 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 o...
42.828512
90
0.72483
436ea6c3fc067a0a36fb0a8706a1d6bc1aa3e580
2,534
py
Python
tests/test_console.py
prasetiyohadi/hypermodern-pypras
9e0d2fbe4f2bf912b6a121f53c9b7ca9c61a1b46
[ "MIT" ]
null
null
null
tests/test_console.py
prasetiyohadi/hypermodern-pypras
9e0d2fbe4f2bf912b6a121f53c9b7ca9c61a1b46
[ "MIT" ]
19
2020-07-07T07:54:35.000Z
2021-08-02T22:24:17.000Z
tests/test_console.py
prasetiyohadi/hypermodern-pypras
9e0d2fbe4f2bf912b6a121f53c9b7ca9c61a1b46
[ "MIT" ]
null
null
null
"""Test cases for the console module.""" from unittest.mock import Mock from click.testing import CliRunner import pytest from pytest_mock import MockFixture import requests from hypermodern_pypras import console @pytest.fixture def runner() -> CliRunner: """Fixture for invoking command-line interfaces.""" ...
31.675
88
0.74191
c32ba3fd5eb8c3a72d454da2645ab59266bae340
1,657
py
Python
ruck/__init__.py
SimonRosen173/ruck
6eaee4a8e729e2b8b1c76b41da5f39e93c16b8be
[ "MIT" ]
20
2021-09-28T12:29:47.000Z
2022-02-21T21:57:24.000Z
ruck/__init__.py
SimonRosen173/ruck
6eaee4a8e729e2b8b1c76b41da5f39e93c16b8be
[ "MIT" ]
3
2021-10-16T02:56:40.000Z
2021-10-20T02:39:57.000Z
ruck/__init__.py
SimonRosen173/ruck
6eaee4a8e729e2b8b1c76b41da5f39e93c16b8be
[ "MIT" ]
null
null
null
# ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ # MIT License # # Copyright (c) 2021 Nathan Juraj Michlo # # 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 Softwar...
40.414634
80
0.706095
4ab4d89d9a748a719e3e47da4fa9e8b75bfa9385
61,856
py
Python
Lib/test/test_optparse.py
yht/python-2.6
adafa70c0ebe675e09d81ba17f38b463603f85f3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_optparse.py
yht/python-2.6
adafa70c0ebe675e09d81ba17f38b463603f85f3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_optparse.py
yht/python-2.6
adafa70c0ebe675e09d81ba17f38b463603f85f3
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/python # # Test suite for Optik. Supplied by Johannes Gijsbers # (taradino@softhome.net) -- translated from the original Optik # test suite to this PyUnit-based version. # # $Id$ # import sys import os import re import copy import types import unittest from StringIO import StringIO from test import test_...
38.112138
85
0.542615
94fc2d5fb93372c36fbe8316dec51098692c2a44
3,741
py
Python
var/spack/repos/builtin/packages/hpl/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/hpl/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/hpl/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import os import platform class Hpl(MakefilePackage): """HPL is a software package that solves a...
38.56701
77
0.52927
cac71120467f8705564daf92856c7dfeb95e6c6a
23
py
Python
detools/version.py
advmach/detools
2b7b98bb8e5eb1232d15cb1731fe72f8954a2d09
[ "BSD-2-Clause" ]
null
null
null
detools/version.py
advmach/detools
2b7b98bb8e5eb1232d15cb1731fe72f8954a2d09
[ "BSD-2-Clause" ]
1
2022-03-08T12:26:37.000Z
2022-03-08T12:26:37.000Z
detools/version.py
advmach/detools
2b7b98bb8e5eb1232d15cb1731fe72f8954a2d09
[ "BSD-2-Clause" ]
null
null
null
__version__ = '0.34.0'
11.5
22
0.652174
b39685b08f608247bd873b5bea666d728a96fac8
4,112
py
Python
code/refinement_net/scripts/eval/Datasets/EvalDAVIS.py
MTonyM/PReMVOS
3d01f0c6156628083a4c8441b4b57622c500e04e
[ "MIT" ]
154
2019-07-25T02:27:39.000Z
2022-02-18T19:40:43.000Z
code/refinement_net/scripts/eval/Datasets/EvalDAVIS.py
MTonyM/PReMVOS
3d01f0c6156628083a4c8441b4b57622c500e04e
[ "MIT" ]
18
2018-11-21T04:48:03.000Z
2020-09-14T09:30:56.000Z
code/refinement_net/scripts/eval/Datasets/EvalDAVIS.py
MTonyM/PReMVOS
3d01f0c6156628083a4c8441b4b57622c500e04e
[ "MIT" ]
32
2018-10-25T11:58:57.000Z
2021-12-27T06:13:45.000Z
import tensorflow as tf from refinement_net.datasets import DataKeys from refinement_net.datasets.DAVIS.DAVIS import DAVISDataset from refinement_net.datasets.PascalVOC.PascalVOC_context_clicks import PascalVOCContextClicksDataset from refinement_net.datasets.util.Normalization import unnormalize from refinement_net.d...
54.105263
113
0.702578
e632a272100c2bf2ec44022c79770b34f54df287
10,470
py
Python
experiments/pointclouds/shapenetpart_seg.py
seanywang0408/RASF
2437ace3f19812d1fe852651358b3cbb9325efb7
[ "Apache-2.0" ]
14
2022-03-16T13:00:38.000Z
2022-03-28T11:53:34.000Z
experiments/pointclouds/shapenetpart_seg.py
seanywang0408/RASF
2437ace3f19812d1fe852651358b3cbb9325efb7
[ "Apache-2.0" ]
null
null
null
experiments/pointclouds/shapenetpart_seg.py
seanywang0408/RASF
2437ace3f19812d1fe852651358b3cbb9325efb7
[ "Apache-2.0" ]
null
null
null
import os import time from tqdm import tqdm import numpy as np import torch from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter import _init_path from config import cfg from RASF import RASF from datasets.shapenetpart import ShapenetPartDataset, to_categorical from utils.training...
39.213483
390
0.613849
4d66fc2ae2962f872aaa8c526b78585f17ba8722
13,121
py
Python
vyper/types/types.py
shawnsun1024/eth.py
b7e2dd127af4e3c72ecc65223860e54a9af2610c
[ "MIT" ]
null
null
null
vyper/types/types.py
shawnsun1024/eth.py
b7e2dd127af4e3c72ecc65223860e54a9af2610c
[ "MIT" ]
null
null
null
vyper/types/types.py
shawnsun1024/eth.py
b7e2dd127af4e3c72ecc65223860e54a9af2610c
[ "MIT" ]
null
null
null
import ast import copy from vyper.exceptions import InvalidTypeException from vyper.utils import ( base_types, ceil32, is_varname_valid, valid_units, ) # Pretty-print a unit (e.g. wei/seconds**2) def print_unit(unit): if unit is None: return '*' if not isinstance(unit, dict): ...
37.81268
136
0.627544