hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e81e3ebd0119f01d920d0a6f7cbcfe29773bea3b
30,232
py
Python
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_php.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
9
2018-10-15T04:57:37.000Z
2021-12-07T07:39:35.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_php.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
13
2018-10-19T11:52:44.000Z
2021-09-08T00:39:30.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_php.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
3
2018-10-25T11:08:04.000Z
2021-02-23T08:28:31.000Z
############################################################################### # Name: php.py # # Purpose: Define PHP syntax for highlighting and other features # # Author: Cody Precord <cprecord@editra.org> # ...
67.331849
80
0.717849
e81e8108154fb3e82d982904d6d814e1831f75cb
4,050
py
Python
FEBDAQMULTx2/data_analysis/7_preamp_gain_analysis_and_charge_injection/injection_and_pedestal_peak_adc.py
kaikai581/t2k-mppc-daq
6b4f7bf04d885e952d9fd653df8f9ca1dd31089e
[ "MIT" ]
null
null
null
FEBDAQMULTx2/data_analysis/7_preamp_gain_analysis_and_charge_injection/injection_and_pedestal_peak_adc.py
kaikai581/t2k-mppc-daq
6b4f7bf04d885e952d9fd653df8f9ca1dd31089e
[ "MIT" ]
null
null
null
FEBDAQMULTx2/data_analysis/7_preamp_gain_analysis_and_charge_injection/injection_and_pedestal_peak_adc.py
kaikai581/t2k-mppc-daq
6b4f7bf04d885e952d9fd653df8f9ca1dd31089e
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' This script is the OOP version that finds the peak ADC position for a single channel. The file names follow the convention such as: "ch0.root" for charge injected to channel 0. "ch0_ped.root" for pedestal ADC measurement for channel 0. ''' import argparse import os from typing import Ordered...
34.615385
133
0.624198
e81e8afe688b6ccc2ccb2d19d637a248c19c8ddf
1,453
py
Python
ando/tests/test_Rules.py
JuliaSprenger/AnDO
06440141f18a7156173a628dae801825132f8463
[ "MIT" ]
null
null
null
ando/tests/test_Rules.py
JuliaSprenger/AnDO
06440141f18a7156173a628dae801825132f8463
[ "MIT" ]
null
null
null
ando/tests/test_Rules.py
JuliaSprenger/AnDO
06440141f18a7156173a628dae801825132f8463
[ "MIT" ]
null
null
null
# File: test_Rules.py # Project: tests # File Created: Tuesday, 30th June 2020 10:50:05 am # Author: garcia.j (Jeremy.garcia@univ-amu.fr) # ----- # Last Modified: Thursday, 2nd July 2020 1:35:37 pm # Modified By: garcia.j (Jeremy.garcia@univ-amu.fr) # ----- # Copyright - 2020 MIT, Institue de neurosciences de la Timone...
26.907407
62
0.666896
e81e9e1c6d4aa53200ce6443d25470d6ef66699d
6,385
py
Python
asposewordscloud/models/requests/delete_footnote_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/delete_footnote_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/delete_footnote_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="delete_footnote_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy...
46.605839
255
0.651214
e81ea649d2ac204f8ecdaa41a124047f4688b7e5
45,956
py
Python
HRI/TFVT_HRI/interaction/common/data.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
146
2020-12-08T11:51:38.000Z
2022-03-23T12:58:43.000Z
HRI/TFVT_HRI/interaction/common/data.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
10
2020-12-23T03:00:31.000Z
2022-03-23T09:55:30.000Z
HRI/TFVT_HRI/interaction/common/data.py
WorldEditors/PaddleRobotics
d02efd74662c6f78dfb964e8beb93f1914dcb2f3
[ "Apache-2.0" ]
43
2020-12-21T09:40:39.000Z
2022-03-31T06:41:32.000Z
import os import cv2 import json import time import queue import pickle import warnings import numpy as np import multiprocessing as mp from paddle import fluid from config import XiaoduHiConfig from perception.scene.eval import SceneSensor from perception.common.video import clip_video_to_frames, \ get_video_extr...
38.650967
81
0.553377
e81eac0d2d1eebdc7465c0bf176c985eb1bc1ba2
2,165
py
Python
agents/bert_agent/utils/convert_to_predict.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
17
2020-09-09T02:32:14.000Z
2021-10-01T09:46:40.000Z
agents/bert_agent/utils/convert_to_predict.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
2
2020-12-02T09:10:03.000Z
2020-12-02T20:31:05.000Z
agents/bert_agent/utils/convert_to_predict.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
3
2020-10-10T09:14:43.000Z
2022-01-18T02:36:31.000Z
import argparse import logging import collections import os logging.basicConfig(format='%(asctime)s: %(levelname)s: %(message)s', datefmt='%m/%d/%Y %H:%M:%S', level=logging.INFO) logger = logging.getLogger() def convert_to_predict(args): # make sys_predict_out_dir if not e...
34.365079
102
0.592148
e81eb954b1d4b3338c784f9837e63dc1cc73bdff
6,405
py
Python
mediapipe/calculators/core/split_vector_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/calculators/core/split_vector_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/calculators/core/split_vector_calculator_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/core/split_vector_calculator.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.p...
43.277027
581
0.79032
e81ee00678e7011b855313d25523d3448e53ed3e
37,622
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/toolresults/v1beta3/toolresults_v1beta3_client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/toolresults/v1beta3/toolresults_v1beta3_client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/toolresults/v1beta3/toolresults_v1beta3_client.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
"""Generated client library for toolresults version v1beta3.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.toolresults.v1beta3 import toolresults_v1beta3_messages as messages class ToolresultsV1beta3(base_api.BaseApiC...
47.683143
413
0.731513
e81eebbae628c145af569bb22330e8d5981ea9ad
2,605
py
Python
atom3d/datasets/ppi/neighbors_sharded.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
atom3d/datasets/ppi/neighbors_sharded.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
atom3d/datasets/ppi/neighbors_sharded.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
"""Generate protein interfaces labels for sharded dataset.""" import warnings import click import pandas as pd import parallel as par import atom3d.datasets.ppi.neighbors as nb import atom3d.shard.shard as sh import atom3d.util.log as log warnings.filterwarnings('ignore', category=pd.io.pytables.PerformanceWarning) ...
37.753623
78
0.684069
e81eecfd280dc5d13b30c7965bb161c91a9d7895
1,535
py
Python
neuropype/ressources/path.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
neuropype/ressources/path.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
neuropype/ressources/path.py
ablot/Pinceau
ae8f3dd088349f8976a5ddf91d83c60ca1ef39e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os def toPath(path): """Translate a path to the absolute path, replacing ~""" path = os.path.normpath(path) if path.startswith('~'): home = os.path.expanduser('~') path = os.path.join(home, path.lstrip('~/')) else: path = os.path.join(os.getcwd(),...
29.519231
80
0.566775
e81ef4d60c055478a361cdf5958cdede52c42f3d
2,822
py
Python
tests/common/test_run/ascend/roipool_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/roipool_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/roipool_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., 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...
44.09375
98
0.651311
e81f00fa828eef61aa70ab60cafa2e5be4719332
9,784
py
Python
src/pytornado/_model.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
16
2019-08-13T18:49:14.000Z
2022-01-11T15:41:12.000Z
src/pytornado/_model.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
24
2019-09-11T14:48:01.000Z
2022-03-18T08:17:52.000Z
src/pytornado/_model.py
airinnova/pytornado
6127f45af60ab05f15b441bc134089a7e7a59669
[ "Linux-OpenIB" ]
5
2019-09-20T18:45:45.000Z
2020-12-08T01:44:43.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # Copyright 2019-2020 Airinnova AB and the PyTornado authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Y...
24.098522
100
0.5602
e81f3947eb54a2c028b7404cc16235cfc4093462
7,911
py
Python
araucaria/xas/xasutils.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
8
2021-07-11T22:54:21.000Z
2022-02-16T20:22:25.000Z
araucaria/xas/xasutils.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
null
null
null
araucaria/xas/xasutils.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ The :mod:`~araucaria.xas.xasutils` module offers the following XAFS utility functions : .. list-table:: :widths: auto :header-rows: 1 * - Function - Description * - :func:`etok` - Converts photo-electron energy to wavenumber. * - :func:`ktoe` ...
31.392857
101
0.609784
e81f4c0cefb388170c999c19c8f8300abda5ec24
4,446
py
Python
lpips_tf.py
ubc-vision/derf
f8f1704fc01ddb42fa2c4853f8bb7607611982b4
[ "Apache-2.0" ]
20
2021-06-24T07:33:06.000Z
2022-03-16T11:18:15.000Z
lpips_tf.py
ubc-vision/derf
f8f1704fc01ddb42fa2c4853f8bb7607611982b4
[ "Apache-2.0" ]
null
null
null
lpips_tf.py
ubc-vision/derf
f8f1704fc01ddb42fa2c4853f8bb7607611982b4
[ "Apache-2.0" ]
2
2021-06-27T05:28:31.000Z
2021-07-06T01:31:15.000Z
import os import sys import numpy as np import tensorflow.compat.v1 as tf from six.moves import urllib import configargparse import imageio # safer to use CPU os.environ['CUDA_VISIBLE_DEVICES'] = '-1' tf.disable_eager_execution() _URL = 'http://rail.eecs.berkeley.edu/models/lpips' def _download(url, output_dir): ...
38
106
0.633378
e81f5f06a5fbcf34a2940d23c9b80fa163821da6
33,452
py
Python
modules/handler.py
jisaacks/GitGutter
1badb94bd1827f4b3f96fd90c26bf1b348783ff9
[ "MIT" ]
1,866
2015-01-02T19:39:39.000Z
2022-03-22T21:22:54.000Z
modules/handler.py
jisaacks/GitGutter
1badb94bd1827f4b3f96fd90c26bf1b348783ff9
[ "MIT" ]
354
2015-01-01T01:00:52.000Z
2022-02-12T22:21:52.000Z
modules/handler.py
jisaacks/GitGutter
1badb94bd1827f4b3f96fd90c26bf1b348783ff9
[ "MIT" ]
188
2015-01-11T05:52:46.000Z
2021-06-22T19:53:34.000Z
import codecs import functools import os import re import subprocess import sublime from . import path from . import utils from .promise import Promise from .promise import PromiseError from .tasks import execute_async from .temp import TempFile from .utils import WIN32 from .view import GitGutterViewCache _HAVE_MIN...
39.079439
104
0.569921
e81f661739ba87c6fd73ebd3011447219c328406
3,858
py
Python
wtfml/metrics/classification.py
Mo5mami/wtfml
afddec88d9c3a94e30ab2897525daf3f5cf8b774
[ "MIT" ]
283
2020-04-28T09:38:42.000Z
2022-02-15T12:31:14.000Z
wtfml/metrics/classification.py
Mo5mami/wtfml
afddec88d9c3a94e30ab2897525daf3f5cf8b774
[ "MIT" ]
6
2020-05-11T07:17:41.000Z
2022-03-09T14:00:10.000Z
wtfml/metrics/classification.py
Mo5mami/wtfml
afddec88d9c3a94e30ab2897525daf3f5cf8b774
[ "MIT" ]
67
2020-04-28T10:46:15.000Z
2022-03-11T05:53:46.000Z
""" Classification metrics __author__: Abhishek Thakur """ import numba import numpy as np from sklearn import metrics as skmetrics class ClassificationMetrics: def __init__(self): """ init class for classification metrics """ self.metrics = { "accuracy": self._accuracy...
31.622951
109
0.595127
e81f7851fa47bddda0cf73ce9dd2aab2e750cdeb
500
py
Python
cv-lab3/read_video.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
1
2021-08-31T18:57:26.000Z
2021-08-31T18:57:26.000Z
cv-lab3/read_video.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
1
2021-08-25T09:44:15.000Z
2021-08-25T09:44:15.000Z
cv-lab3/read_video.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
null
null
null
import numpy as np import cv2 # create a VideoCapture object cap = cv2.VideoCapture('kntu-computer.avi') # sometimes this is needed: #if not cap.isOpened(): # cap.open(); while True: # Capture frame-by-frame ret, I = cap.read() if ret == False: # end of video (perhaps) break # ...
15.151515
50
0.598
e81f80edc0553ef77f45350d4ed0fb8705758eba
1,656
py
Python
chaospy/distributions/collection/bradford.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
1
2020-04-29T20:53:25.000Z
2020-04-29T20:53:25.000Z
chaospy/distributions/collection/bradford.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
chaospy/distributions/collection/bradford.py
agonzs11/Polinomio-del-caos
5a415ece07e6535488174bac69a6c0fcc2ca272d
[ "MIT" ]
null
null
null
"""Bradford distribution.""" import numpy from ..baseclass import Dist from ..operators.addition import Add class bradford(Dist): """Standard Bradford distribution.""" def __init__(self, c=1): Dist.__init__(self, c=c) def _pdf(self, x, c): return c / (c*x + 1.0) / numpy.log(1.0+c) ...
27.147541
75
0.548913
e81fb6981dc0bb83a9cbce9e405341cf1969effd
4,397
py
Python
backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py
lilinji/pipelines
0324b2cac859c7575a420b6782995782a35ec280
[ "Apache-2.0" ]
null
null
null
backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py
lilinji/pipelines
0324b2cac859c7575a420b6782995782a35ec280
[ "Apache-2.0" ]
null
null
null
backend/api/python_http_client/kfp_server_api/models/api_get_template_response.py
lilinji/pipelines
0324b2cac859c7575a420b6782995782a35ec280
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.862319
163
0.627928
e81fdee99c9571a1b55cc96f07c11a421910c6a2
167
py
Python
contact/apps.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
1
2017-03-13T08:49:49.000Z
2017-03-13T08:49:49.000Z
contact/apps.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
null
null
null
contact/apps.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.apps import AppConfig class AllinkContactConfig(AppConfig): name = 'allink_apps.contact' verbose_name = "Allink Contact"
20.875
37
0.712575
e81ff6f64338158da5159b53f13b9a8d38779775
1,653
py
Python
alipay/aop/api/response/AnttechBlockchainDefinInsuranceReportQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AnttechBlockchainDefinInsuranceReportQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AnttechBlockchainDefinInsuranceReportQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.ReportInfo import ReportInfo class AnttechBlockchainDefinInsuranceReportQueryResponse(AlipayResponse): def __init__(self): super(AnttechBlockchainDefinIn...
31.188679
123
0.662432
e820034c9bc28ac2bb68269d00bf7368b75074c4
6,082
py
Python
backend/api/team.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
13
2021-09-27T14:53:15.000Z
2022-02-15T05:48:01.000Z
backend/api/team.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
45
2021-10-13T08:47:28.000Z
2022-02-15T09:16:51.000Z
backend/api/team.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Depends from ..utils import engine, get_session from sqlmodel import Session, select, or_ from ..models.team import Team from ..models.user import AppUser from sqlalchemy.exc import NoResultFound from datetime import datetime router = APIRouter(prefix="/api/teams", tags=["team"]) @rout...
27.645455
85
0.639263
e82015433aeceb46b6873f8d6713677d97aa4246
45,163
py
Python
ssda_nlp/full_volume.py
slavesocieties/ssda-nlp
8764d2f928ca0fe4e5737fbea4dcd518b8b804f6
[ "MIT" ]
null
null
null
ssda_nlp/full_volume.py
slavesocieties/ssda-nlp
8764d2f928ca0fe4e5737fbea4dcd518b8b804f6
[ "MIT" ]
21
2021-02-23T22:31:04.000Z
2022-01-27T22:51:18.000Z
ssda_nlp/full_volume.py
slavesocieties/ssda-nlp
8764d2f928ca0fe4e5737fbea4dcd518b8b804f6
[ "MIT" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 72-full-volume-processor.ipynb (unless otherwise specified). __all__ = ['check_unassigned', 'check_lengths', 'validate_entry', 'process_volume', 'flatten_volume_json'] # Cell #dependencies #nlp packages import spacy from spacy.util import minibatch, compounding #manipulat...
47.842161
324
0.515178
e82050682ecf94e1030927f016d12b33a74eecce
2,067
py
Python
modules/passgen.py
3cor/spw
c8b23ee2bc56c1390c13c1f70ae8bc769d961801
[ "MIT" ]
null
null
null
modules/passgen.py
3cor/spw
c8b23ee2bc56c1390c13c1f70ae8bc769d961801
[ "MIT" ]
null
null
null
modules/passgen.py
3cor/spw
c8b23ee2bc56c1390c13c1f70ae8bc769d961801
[ "MIT" ]
null
null
null
import secrets import string def simple(n): """Generate a simple password from alphanumeric characters""" alphabet = string.ascii_letters + string.digits password = ''.join(secrets.choice(alphabet) for i in range(n)) return password def secure(n, digit, with_symbol: bool, symbols = r'{}()[].,:;+-*/&|...
33.885246
101
0.643445
e820588f7c83dafcd08e723566bef625af631bf1
137,160
py
Python
modules/s3db/deploy.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/s3db/deploy.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/s3db/deploy.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Deployments Model Copyright: 2011-2022 (c) Sahana Software Foundation 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...
40.199297
219
0.413554
e82085859577e4740d20a1bfc53ea006ee0ecae7
3,459
py
Python
pni_customization/pni_customization/report/reel_stock/reel_stock.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/report/reel_stock/reel_stock.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/report/reel_stock/reel_stock.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Jigar Tarpara and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ def execute(filters=None): columns, data = [], [] data = get_data(filters) columns = get_columns() return columns, data def...
27.023438
116
0.555941
e820f90109156ac533e91e7e4bbc4918da081503
3,622
py
Python
userbot/plugins/remove.bg.py
sethgld/userbotseth
2994aa84be57aed8ab036ed6f59342d9ca2f3cb2
[ "MIT" ]
null
null
null
userbot/plugins/remove.bg.py
sethgld/userbotseth
2994aa84be57aed8ab036ed6f59342d9ca2f3cb2
[ "MIT" ]
null
null
null
userbot/plugins/remove.bg.py
sethgld/userbotseth
2994aa84be57aed8ab036ed6f59342d9ca2f3cb2
[ "MIT" ]
null
null
null
# (c) Shrimadhav U K # # This file is part of @UniBorg # # @UniBorg is free software; you cannot redistribute it and/or modify # it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # @UniBorg is ...
31.77193
113
0.639702
e820fa4255c1566d2cc6a4638eab46ea0058eac8
697
py
Python
ibis/tests/all/test_array.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2021-06-15T07:28:59.000Z
2021-06-15T07:28:59.000Z
ibis/tests/all/test_array.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-10-02T23:51:48.000Z
2020-10-03T00:54:29.000Z
ibis/tests/all/test_array.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-10-12T16:08:19.000Z
2020-10-12T16:08:19.000Z
import pytest import ibis from ibis.tests.backends import BigQuery @pytest.mark.xfail_unsupported @pytest.mark.skip_missing_feature( ['supports_arrays', 'supports_arrays_outside_of_select'] ) # Issues #2370 @pytest.mark.xfail_backends([BigQuery]) def test_array_concat(backend, con): left = ibis.literal([1, 2...
24.892857
60
0.71736
e82110d01e9719cb52154fb49f463312066831fd
3,659
py
Python
behaviroal_targeting.py
breadada/mieSys
4f89c870473b6f0c28bce7a23ed9df393fae2907
[ "Apache-2.0" ]
51
2016-07-07T03:11:29.000Z
2021-04-21T12:44:05.000Z
behaviroal_targeting.py
breadada/mieSys
4f89c870473b6f0c28bce7a23ed9df393fae2907
[ "Apache-2.0" ]
1
2016-11-21T04:00:35.000Z
2019-06-03T15:23:26.000Z
behaviroal_targeting.py
breadada/mieSys
4f89c870473b6f0c28bce7a23ed9df393fae2907
[ "Apache-2.0" ]
27
2016-07-15T05:11:33.000Z
2021-01-08T08:23:03.000Z
# ---------------------------------------------------| # Project Name : mieSys. | # Description : A minimal display advertising system.| # Author : 曾宪超(面包包包包包包) | # time : 2016-07-04 | # ------------------------------------------------...
34.196262
80
0.514621
e8212130182b08af21bbb4730969baec0df32178
1,785
py
Python
Tools/scons/scons-local/SCons/Tool/packaging/targz.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/packaging/targz.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Tools/scons/scons-local/SCons/Tool/packaging/targz.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""SCons.Tool.Packaging.targz The targz packager. """ # # Copyright (c) 2001 - 2017 The SCons Foundation # # 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, in...
39.666667
83
0.736695
e82159baf3ec3c5abccf7a68db43ab04c199259f
328
py
Python
office365/teams/participantCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/teams/participantCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/teams/participantCollection.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_object_collection import ClientObjectCollection from office365.teams.participant import Participant class ParticipantCollection(ClientObjectCollection): def __init__(self, context, resource_path=None): super(ParticipantCollection, self).__init__(context, Participant, resourc...
36.444444
88
0.835366
e8218b4fc6d62c906b017970797898fda33a9a4b
9,543
py
Python
source/LambdaLayers/sechub_findings.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
1
2022-03-16T08:23:33.000Z
2022-03-16T08:23:33.000Z
source/LambdaLayers/sechub_findings.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
null
null
null
source/LambdaLayers/sechub_findings.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
1
2021-11-15T21:45:48.000Z
2021-11-15T21:45:48.000Z
#!/usr/bin/python ############################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License Version 2.0 (the "License"). Y...
34.701818
121
0.580006
e82199b14c5c715d8ae5a4b9797d45ccd2ddd63b
3,981
py
Python
pipeline.py
JasperHG90/sleepsimR-collect
ea01015d7c71255c3b23814304b0d95e2b828ba2
[ "MIT" ]
null
null
null
pipeline.py
JasperHG90/sleepsimR-collect
ea01015d7c71255c3b23814304b0d95e2b828ba2
[ "MIT" ]
null
null
null
pipeline.py
JasperHG90/sleepsimR-collect
ea01015d7c71255c3b23814304b0d95e2b828ba2
[ "MIT" ]
null
null
null
# # Script used to download and preprocess sleepdata # # Written by: Jasper Ginn # import argparse from utils import * import os import logging import daiquiri # Set up logging daiquiri.setup(level=logging.INFO) logger = daiquiri.getLogger(__name__) if __name__ == "__main__": # Get arguments parser = argpar...
42.351064
357
0.612911
e821a8b62f2b9ef5062a7e541902c5b77849ae34
2,109
py
Python
tests/common/test_run/ascend/relu_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/relu_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/relu_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., 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...
44.87234
122
0.692271
e821b5888933acee8bbb5b7b52c0262b2075296e
825
py
Python
alipay/aop/api/domain/MorphoIdentity.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MorphoIdentity.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MorphoIdentity.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MorphoIdentity(object): def __init__(self): self._biz_id = None @property def biz_id(self): return self._biz_id @biz_id.setter def biz_id(self, value): s...
20.121951
63
0.561212
e821d1083d73830386a39e6fee43c71f1ce5ea73
10,789
py
Python
tests/test.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
tests/test.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
tests/test.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
from __future__ import print_function import sys, os, imp, time, gc, importlib from sys import exit from datetime import datetime from warnings import warn import numpy as np import scipy as sp # from scipy.io import loadmat, savemat # AVOID WRITING .pyc OR .pyo FILES sys.dont_write_bytecode # SET NUMPY'S LINEWIDTH P...
41.179389
108
0.743072
e821d27e76d7080bb32c158cc182fac8529d0e04
1,236
py
Python
var/spack/repos/builtin/packages/py-rtree/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/py-rtree/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-rtree/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyRtree(PythonPackage): """Python interface to the RTREE.4 Library.""" homepage = "htt...
38.625
95
0.677184
e821ff01fcc7fa11e3af3f99ab5aa669643ee62c
11,905
py
Python
cumulusci/core/config/ScratchOrgConfig.py
hamedizadpanah-ibm/CumulusCI
eb93723e2da1ca66a7639b3197e6fab02d1bd24a
[ "BSD-3-Clause" ]
null
null
null
cumulusci/core/config/ScratchOrgConfig.py
hamedizadpanah-ibm/CumulusCI
eb93723e2da1ca66a7639b3197e6fab02d1bd24a
[ "BSD-3-Clause" ]
null
null
null
cumulusci/core/config/ScratchOrgConfig.py
hamedizadpanah-ibm/CumulusCI
eb93723e2da1ca66a7639b3197e6fab02d1bd24a
[ "BSD-3-Clause" ]
null
null
null
import datetime import json import os import re import sarge from cumulusci.utils import get_git_config from cumulusci.core.sfdx import sfdx from cumulusci.core.config import FAILED_TO_CREATE_SCRATCH_ORG from cumulusci.core.config import OrgConfig from cumulusci.core.exceptions import ScratchOrgException from cumulus...
35.221893
129
0.594624
e822062ec000500b97819367769e2196a7e9bfc1
2,060
py
Python
splinter/driver/webdriver/firefox.py
davidemoro/splinter
6a735ba69732a7578df0e2c3e228488aa88063da
[ "BSD-3-Clause" ]
2
2021-01-24T20:07:03.000Z
2021-12-09T06:23:28.000Z
splinter/driver/webdriver/firefox.py
davidemoro/splinter
6a735ba69732a7578df0e2c3e228488aa88063da
[ "BSD-3-Clause" ]
null
null
null
splinter/driver/webdriver/firefox.py
davidemoro/splinter
6a735ba69732a7578df0e2c3e228488aa88063da
[ "BSD-3-Clause" ]
1
2021-02-25T09:18:03.000Z
2021-02-25T09:18:03.000Z
# -*- coding: utf-8 -*- # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from selenium.webdriver import DesiredCapabilities, Firefox from selenium.webdriver.firefox.firefox_profile import FirefoxProfile from s...
35.517241
75
0.690777
e8220addfc231b503a1a2023224daf25672f3f5a
3,049
py
Python
src/python/pants/core_tasks/deferred_sources_mapper.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
src/python/pants/core_tasks/deferred_sources_mapper.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
src/python/pants/core_tasks/deferred_sources_mapper.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import logging from...
41.202703
98
0.737619
e82210fc1abf0c69be303308be757d1ff81ea69e
3,638
py
Python
src/pageobjects/FravegaHomePage.py
Jorge644/python-fravega-test
bbfa170fd38bb1ea8c18baccf456ec0f7ca17bc4
[ "bzip2-1.0.6" ]
null
null
null
src/pageobjects/FravegaHomePage.py
Jorge644/python-fravega-test
bbfa170fd38bb1ea8c18baccf456ec0f7ca17bc4
[ "bzip2-1.0.6" ]
null
null
null
src/pageobjects/FravegaHomePage.py
Jorge644/python-fravega-test
bbfa170fd38bb1ea8c18baccf456ec0f7ca17bc4
[ "bzip2-1.0.6" ]
null
null
null
from src.pageobjects.BasePage import Base from src.values import strings, locators from src.helpers.file import Save_file from src.helpers.some_functions import verify_title_over_items import re class FravegaPage(Base): BRAND_TO_FOUND ="" NUMBERS_OF_ITEM_FOUND=0 def __init__(self): sup...
34.980769
130
0.618747
e822263892c7662b1fca36791555a4b6692489cb
314
py
Python
extra_apps/django_thrift/file.py
Raoul1996/robot_view_be
b50c261b4a62779b7536670463cf39599c91bc4d
[ "MIT" ]
1
2018-07-04T18:29:43.000Z
2018-07-04T18:29:43.000Z
extra_apps/django_thrift/file.py
Raoul1996/robot_view_be
b50c261b4a62779b7536670463cf39599c91bc4d
[ "MIT" ]
8
2018-07-22T03:41:24.000Z
2022-03-11T23:21:22.000Z
extra_apps/django_thrift/file.py
Raoul1996/robot_view_be
b50c261b4a62779b7536670463cf39599c91bc4d
[ "MIT" ]
null
null
null
import os from django.conf import settings import thriftpy if not os.getenv("DJANGO_SETTINGS_MODULE", None): raise ValueError("'DJANGO_SETTINGS_MODULE' environment variable must exist!") thrift_module = thriftpy.load( settings.THRIFT["FILE"], module_name=settings.THRIFT["FILE"].replace('.', '_') )
24.153846
81
0.745223
e8226616e0b3f8e0c561db1b84ccb543bee652e4
1,473
py
Python
tests/test_6_BandStatistics.py
naturalis/trait-geo-diverse-angiosperms
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
13
2019-11-06T05:43:01.000Z
2022-03-16T11:47:26.000Z
tests/test_6_BandStatistics.py
naturalis/sdmdl
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
249
2019-08-21T10:14:25.000Z
2022-03-24T02:30:58.000Z
tests/test_6_BandStatistics.py
naturalis/sdmdl
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
8
2019-08-21T11:07:30.000Z
2021-10-20T02:19:18.000Z
from sdmdl.sdmdl.config import Config from sdmdl.sdmdl.occurrences import Occurrences from sdmdl.sdmdl.gis import GIS from sdmdl.sdmdl.data_prep.band_statistics import BandStatistics import os import unittest import pandas as pd class BandStatisticsTestCase(unittest.TestCase): def setUp(self): self.root ...
37.769231
96
0.693143
e8227a479ea28ed4c41ef827fe5142f842271a22
10,820
py
Python
gpustat_web/app.py
Linyxus/gpustat-web
e2f2b678aeba8ee54b7dcf2fee0b63e8a2106a77
[ "MIT" ]
234
2018-12-12T23:34:05.000Z
2022-03-31T23:30:38.000Z
gpustat_web/app.py
Linyxus/gpustat-web
e2f2b678aeba8ee54b7dcf2fee0b63e8a2106a77
[ "MIT" ]
20
2019-02-12T19:01:59.000Z
2022-03-28T18:21:20.000Z
gpustat_web/app.py
Linyxus/gpustat-web
e2f2b678aeba8ee54b7dcf2fee0b63e8a2106a77
[ "MIT" ]
25
2019-02-19T11:19:18.000Z
2022-01-29T04:32:34.000Z
""" gpustat.web MIT License Copyright (c) 2018-2020 Jongwook Choi (@wookayin) """ from typing import List, Tuple, Optional import os import sys import traceback import urllib import ssl import asyncio import asyncssh import aiohttp from datetime import datetime from collections import OrderedDict, Counter from t...
36.928328
123
0.592699
e822a1c5aa17b1332fdcb8fea0b40a84c1dc0524
173
py
Python
scielomanager/editorialmanager/templatetags/show_field.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/editorialmanager/templatetags/show_field.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/editorialmanager/templatetags/show_field.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
# coding: utf-8 from django import template register = template.Library() @register.inclusion_tag('inctag/field.html') def show_field(field): return {'field': field}
17.3
44
0.734104
e822aca25b9f989e8090127814b7b9ed29aa1c49
190
py
Python
huiujson.py
w3-3w/trash-py
513fa19ef1344bb17f9ae749cdde79a4846ca339
[ "MIT" ]
null
null
null
huiujson.py
w3-3w/trash-py
513fa19ef1344bb17f9ae749cdde79a4846ca339
[ "MIT" ]
null
null
null
huiujson.py
w3-3w/trash-py
513fa19ef1344bb17f9ae749cdde79a4846ca339
[ "MIT" ]
null
null
null
import json s = '[{"requesttype":"userinfo","user":"1","info":"hello!!"}]' jsonfile = json.JSONDecoder().decode(s) print(jsonfile[0]["requesttype"]) print(type(s)) print(type(jsonfile[0]))
23.75
62
0.668421
e822b39fceee30878f9217b2550a5c8f4a583e3c
4,172
py
Python
laph3x.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
2
2015-05-25T10:47:30.000Z
2017-12-12T18:15:00.000Z
laph3x.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
laph3x.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
def Resolve(root, path): words = [e for e in path.split('/') if e] context = [ 1 ] envs = [] say 'RESOLVE', path, words z = None sofar = '/' for w in words + [None]: say 'RESOLVE WORD', w, context # Return for terminals. if w is None and z is not None: say path, z return z i...
25.284848
86
0.542186
e82307da61c1bb264f56f044f8df78ead7d214d9
2,080
py
Python
conpaas-services/src/conpaas/services/xtreemfs/agent/client.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
1
2015-09-20T18:20:01.000Z
2015-09-20T18:20:01.000Z
conpaas-services/src/conpaas/services/xtreemfs/agent/client.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
1
2020-07-27T11:56:18.000Z
2020-07-27T11:56:18.000Z
conpaas-services/src/conpaas/services/xtreemfs/agent/client.py
bopopescu/conpaas
e0a2955ae3e7da7525d799bed411e9f76ecf0919
[ "BSD-3-Clause" ]
3
2018-09-14T16:54:14.000Z
2020-07-26T03:14:56.000Z
# -*- coding: utf-8 -*- """ :copyright: (C) 2010-2013 by Contrail Consortium. """ from conpaas.core import https import httplib, json class AgentException(Exception): pass def _check(response): code, body = response if code != httplib.OK: raise Exception('Received http response code %d' % (code)) data =...
27.368421
83
0.681731
e823423dbc97cac6d7270d624937cbb2d7195969
153
py
Python
tests/exit_exc.py
gwiederhecker/MPh
d5eb7b6e9e00fe3fcd00acf53278a89243ae512a
[ "MIT" ]
1
2021-12-23T09:15:56.000Z
2021-12-23T09:15:56.000Z
tests/exit_exc.py
gwiederhecker/MPh
d5eb7b6e9e00fe3fcd00acf53278a89243ae512a
[ "MIT" ]
null
null
null
tests/exit_exc.py
gwiederhecker/MPh
d5eb7b6e9e00fe3fcd00acf53278a89243ae512a
[ "MIT" ]
null
null
null
"""Raises an exception right after starting a client.""" __license__ = 'MIT' import parent import mph client = mph.start() raise RuntimeError
17
58
0.705882
e8236ad12c0548ac69245cf327165bf409fd89a8
50,445
py
Python
userbot/plugins/lagggg.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/lagggg.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/lagggg.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
# Creator------> @hacker11000 #Userbot-------> Black Lightning Userbot # Don't kang without permission otherwise put credits.... # if u kang without credit so u r world's biggest noob!. # Copyright BL 2021 from telethon.tl.types import ChannelParticipantsAdmins # Creator------> @hacker11000 #Userbot-...
41.246934
4,102
0.626643
e82386b1d46e4ca1c3d2752743672b9248f6cd99
8,347
py
Python
sebastian/lilypond/interp.py
aisipos/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
47
2015-01-07T16:25:27.000Z
2022-03-07T07:21:27.000Z
sebastian/lilypond/interp.py
EQ4/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
1
2015-02-02T20:25:15.000Z
2015-02-02T20:25:15.000Z
sebastian/lilypond/interp.py
EQ4/sebastian
4e460c3aeab332b45c74fe78e65e76ec87d5cfa8
[ "MIT" ]
10
2015-02-02T19:48:57.000Z
2021-03-19T17:45:17.000Z
from sebastian import logger from sebastian.core import OSequence, Point, OFFSET_64, MIDI_PITCH, DURATION_64 import re MIDI_NOTE_VALUES = { "c": 0, "d": 2, "e": 4, "f": 5, "g": 7, "a": 9, "b": 11, } token_pattern = re.compile( r"""^\s* # INITIAL...
35.368644
128
0.535761
e823a11c51b77c98bd7e991fadd94e3290cfb45a
890
py
Python
sdk/python/pulumi_checkly/__init__.py
stack72/pulumi-checkly
eb653a50da3b06a6f63baf9453bd78db4cfee3cf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_checkly/__init__.py
stack72/pulumi-checkly
eb653a50da3b06a6f63baf9453bd78db4cfee3cf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_checkly/__init__.py
stack72/pulumi-checkly
eb653a50da3b06a6f63baf9453bd78db4cfee3cf
[ "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! *** from . import _utilities import typing # Export this package's modules as members: from .check import * from .provider import * from ._...
20.227273
87
0.67191
e823ad364b5b3826c035275c4383e54a2397010e
2,821
py
Python
src/victim_model_wrapper.py
ForeverZyh/certified_lstms
b715d86ee71536b1e268b64db9173db1838f9edc
[ "MIT" ]
2
2021-11-20T06:33:39.000Z
2022-03-20T02:00:36.000Z
src/victim_model_wrapper.py
ForeverZyh/certified_lstms
b715d86ee71536b1e268b64db9173db1838f9edc
[ "MIT" ]
null
null
null
src/victim_model_wrapper.py
ForeverZyh/certified_lstms
b715d86ee71536b1e268b64db9173db1838f9edc
[ "MIT" ]
1
2022-01-31T01:26:41.000Z
2022-01-31T01:26:41.000Z
import torch import numpy as np from text_classification import TextClassificationDataset as text import data_util class ModelWrapper: def __init__(self, model, vocab, device): self.model = model self.vocab = vocab self.device = device def get_embed(self, x, ret_len=None): ""...
38.121622
118
0.615385
e823b2265a2d99f209f5ecfb9c3db0af489036a2
6,754
py
Python
utils/utils.py
LendelTheGreat/weak-segmentation
0ff6015f1af741cfb50ef8fb6f55cea822f68f7a
[ "MIT" ]
1
2020-11-04T03:00:44.000Z
2020-11-04T03:00:44.000Z
utils/utils.py
LendelTheGreat/weak-segmentation
0ff6015f1af741cfb50ef8fb6f55cea822f68f7a
[ "MIT" ]
null
null
null
utils/utils.py
LendelTheGreat/weak-segmentation
0ff6015f1af741cfb50ef8fb6f55cea822f68f7a
[ "MIT" ]
null
null
null
import numpy as np import torch n_classes = 5 class_colors = np.array([[1., 1., 1.], [0., 0., 1.], [0., 1., 1.], [0., 1., 0.], [1., 1., 0.]]) def segmap_classes_to_class_vec(segmap_classes, class_presence_threshold=1)...
35.925532
135
0.668493
e823d688a087c48ab2273737788a13276c4fccb7
629
py
Python
website/weather/forms.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
null
null
null
website/weather/forms.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
2
2020-02-11T23:23:09.000Z
2020-06-05T17:24:59.000Z
website/weather/forms.py
T-Santos/django-weather-app
79ee6ad67b861aaf27396965a1d45012deadca3b
[ "MIT" ]
null
null
null
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from .models import WeatherSignup class SubscribeWeather(forms.ModelForm): def __init__(self,*args,**kwargs): super(SubscribeWeather,self).__init__(*args,**kwargs) self.fields['location'].empty_label = '...
27.347826
79
0.756757
e8240e2504473af474413173765fd51aaf179c40
1,844
py
Python
powerdns/__init__.py
nzlosh/python-powerdns
8caa8e283dca8609e91dcc67785366bb412d527f
[ "MIT" ]
17
2019-10-14T12:00:47.000Z
2022-03-10T22:28:59.000Z
powerdns/__init__.py
nzlosh/python-powerdns
8caa8e283dca8609e91dcc67785366bb412d527f
[ "MIT" ]
13
2019-10-25T12:43:17.000Z
2022-03-09T15:40:24.000Z
powerdns/__init__.py
nzlosh/python-powerdns
8caa8e283dca8609e91dcc67785366bb412d527f
[ "MIT" ]
15
2019-10-25T12:34:41.000Z
2022-03-13T03:56:22.000Z
# -*- coding: utf-8 -*- # # PowerDNS web api python client and interface (python-powerdns) # # Copyright (C) 2018 Denis Pompilio (jawa) <denis.pompilio@gmail.com> # # This file is part of python-powerdns # # This program is free software; you can redistribute it and/or # modify it under the terms of the MIT Licens...
30.229508
73
0.725054
e8241b561486749f077d05f9c06d401f99b5fcd7
807
py
Python
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.4375
114
0.64684
e82421c7c4d4acbd82c1f84bb3212077379f511a
15,072
py
Python
Backends/patches/montepythonlike/3.3.0/bao_correlations/findiff_py23/diff.py
sebhoof/gambit_1.5
f9a3f788e3331067c555ae1a030420e903c6fdcd
[ "Unlicense" ]
2
2020-09-08T20:05:27.000Z
2021-04-26T07:57:56.000Z
Backends/patches/montepythonlike/3.3.0/bao_correlations/findiff_py23/diff.py
sebhoof/gambit_1.5
f9a3f788e3331067c555ae1a030420e903c6fdcd
[ "Unlicense" ]
9
2020-10-19T09:56:17.000Z
2021-05-28T06:12:03.000Z
Backends/patches/montepythonlike/3.3.0/bao_correlations/findiff_py23/diff.py
sebhoof/gambit_1.5
f9a3f788e3331067c555ae1a030420e903c6fdcd
[ "Unlicense" ]
5
2020-09-08T02:23:34.000Z
2021-03-23T08:48:04.000Z
import operator import scipy.sparse as sparse from .coefs import coefficients, coefficients_non_uni from .stencils import Stencil from .utils import * from .grids import Grid DEFAULT_ACC = 2 class Operator(object): pass class BinaryOperator(Operator): def __init__(self, left, right): self.left = ...
29.727811
130
0.578357
e8243c30a40b9a8774a93f3be29187c02d439b69
7,147
py
Python
acme/tf/losses/r2d2.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
2,650
2020-06-01T16:31:25.000Z
2022-03-31T07:32:41.000Z
acme/tf/losses/r2d2.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
199
2020-06-02T01:09:09.000Z
2022-03-31T17:11:20.000Z
acme/tf/losses/r2d2.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
344
2020-06-01T16:45:21.000Z
2022-03-30T11:15:09.000Z
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
39.486188
85
0.693858
e824744c774b6304c361b0e8f64ff08d677f687a
27,442
py
Python
utils.py
haideraltahan/CLAR
3b5a7828744333f8915de4e64d87a544c8ce91fd
[ "MIT" ]
4
2021-11-25T18:58:43.000Z
2022-01-27T14:42:38.000Z
utils.py
haideraltahan/CLAR
3b5a7828744333f8915de4e64d87a544c8ce91fd
[ "MIT" ]
null
null
null
utils.py
haideraltahan/CLAR
3b5a7828744333f8915de4e64d87a544c8ce91fd
[ "MIT" ]
3
2021-04-14T02:09:38.000Z
2021-12-14T06:01:20.000Z
import fnmatch import json import math import os import os.path as osp import pickle import random import re from collections import OrderedDict import librosa import lmdb import numpy as np import pytorch_lightning as pl import torch from librosa import effects from pytorch_lightning.metrics.functional import accurac...
36.589333
118
0.591283
e82479e6812bb8b49a220390b1a75b2427e9dd00
127
py
Python
terrascript/resource/paultyng/git.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/paultyng/git.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/paultyng/git.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/paultyng/git.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:17:00 UTC) __all__ = []
25.4
73
0.755906
e8249b6a8a2a4a1f824d1803d95319f1aa1fe6d5
1,919
py
Python
mysql/setup.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
mysql/setup.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
mysql/setup.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from codecs import open from os import path from setuptools import setup HERE = path.abspath(path.dirname(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, "datadog_checks", "mysql", "_...
29.984375
75
0.674831
e824bcf4a83afa68b37d2bbd10c197fee9db2d82
755
py
Python
k0emu/debugger/testprogs/fixtures/test_psw.py
mnaberez/k0emu
1ba4ea0c4ca0dbab3a7b9f4169a81dcdaecc71d5
[ "BSD-3-Clause" ]
6
2020-02-14T19:05:45.000Z
2021-06-27T02:22:27.000Z
k0emu/debugger/testprogs/fixtures/test_psw.py
mnaberez/k0emu
1ba4ea0c4ca0dbab3a7b9f4169a81dcdaecc71d5
[ "BSD-3-Clause" ]
null
null
null
k0emu/debugger/testprogs/fixtures/test_psw.py
mnaberez/k0emu
1ba4ea0c4ca0dbab3a7b9f4169a81dcdaecc71d5
[ "BSD-3-Clause" ]
null
null
null
import sys from k0emu.debug import make_debugger_from_argv def test(debug, outfile): for psw in range(0x80): code = [ 0x11, 0x1e, psw, # mov psw,#<psw> 0xf0, 0x1e, # mov a,psw 0x9e, 0x00, 0xfe, # mov 0xfe00,a 0xf0, 0x1e, # mov a,0xff1e ...
26.964286
48
0.519205
e824cdc8cd4436a42e13883b50b43c63f2f6bf5e
863
py
Python
test/backend_test_util.py
mghatak/stone
bade48e44c88481a2386a6b00e7b49f6908d06e2
[ "MIT" ]
1
2020-04-26T11:39:43.000Z
2020-04-26T11:39:43.000Z
test/backend_test_util.py
mghatak/stone
bade48e44c88481a2386a6b00e7b49f6908d06e2
[ "MIT" ]
2
2021-04-16T20:39:33.000Z
2021-08-04T03:11:54.000Z
test/backend_test_util.py
mghatak/stone
bade48e44c88481a2386a6b00e7b49f6908d06e2
[ "MIT" ]
1
2020-11-04T06:01:11.000Z
2020-11-04T06:01:11.000Z
MYPY = False if MYPY: import typing # noqa: F401 # pylint: disable=import-error,unused-import,useless-suppression try: # Works for Py 3.3+ from unittest.mock import Mock except ImportError: # See https://github.com/python/mypy/issues/1153#issuecomment-253842414 from mock import Mock # type: ignor...
29.758621
96
0.704519
e824d49afc88a70de110f70b232bc369d970d641
1,558
py
Python
oslib1.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
oslib1.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
oslib1.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
"""Memory, puzzle game of number pairs. Author: Abhishek Kumar """ from random import * from turtle import * from freegames import path car = path('car.gif') tiles = list(range(32)) * 2 state = {'mark': None} hide = [True] * 64 def square(x, y): "Draw white square with black outline at (x, y)." up() got...
19.721519
66
0.550706
e824e86bbc106cd789af7a8c5d748014a8e7a360
33,936
py
Python
m2-modified/ims/common/agentless-system-crawler/tests/unit/test_emitter.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/tests/unit/test_emitter.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/tests/unit/test_emitter.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
import cStringIO import gzip import unittest import time import os import json import mock import requests.exceptions import plugins_manager from base_crawler import BaseFrame from capturing import Capturing from emitters_manager import EmittersManager from plugins.emitters.file_emitter import FileEmitter from plugin...
43.731959
105
0.609323
e824f2fd17b7e26c5446b428a6e7e16713dc068d
8,603
py
Python
synapse/tests/test_lib_iq.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_lib_iq.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tests/test_lib_iq.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ synapse - test_lib_iq.py.py Created on 10/21/17. Test for synapse.lib.iq classes """ import synapse.glob as s_glob import synapse.lib.iq as s_iq from synapse.tests.common import * logger = logging.getLogger(__name__) class IqTest(SynTest): def test_iq_syntest_helpers(self): ...
30.185965
98
0.534
e825512549f05de337106c994f9928983eca04ce
2,331
py
Python
tests/integration/models/test_redditors.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
tests/integration/models/test_redditors.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
tests/integration/models/test_redditors.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
"""Test asyncpraw.models.redditors.""" from asynctest import mock from asyncpraw.models import Redditor, Subreddit from .. import IntegrationTest class TestRedditors(IntegrationTest): async def test_new(self): with self.use_cassette(): profiles = await self.async_list(self.reddit.redditors.n...
38.85
85
0.636637
e825561bc8c928aa689d0c525802aec1948d34ee
516
py
Python
config.py
theundisclosedlife/lstm-siamese-text-similarity
364f28770e1a26fa7e8ba1969e0b37b14ccf37a4
[ "MIT" ]
null
null
null
config.py
theundisclosedlife/lstm-siamese-text-similarity
364f28770e1a26fa7e8ba1969e0b37b14ccf37a4
[ "MIT" ]
null
null
null
config.py
theundisclosedlife/lstm-siamese-text-similarity
364f28770e1a26fa7e8ba1969e0b37b14ccf37a4
[ "MIT" ]
null
null
null
EMBEDDING_DIM = 100 MAX_SEQUENCE_LENGTH = 10 VALIDATION_SPLIT = 0.1 RATE_DROP_LSTM = 0.17 RATE_DROP_DENSE = 0.25 NUMBER_LSTM = 50 NUMBER_DENSE_UNITS = 50 ACTIVATION_FUNCTION = 'relu' siamese_config = { 'EMBEDDING_DIM': EMBEDDING_DIM, 'MAX_SEQUENCE_LENGTH' : MAX_SEQUENCE_LENGTH, 'VALIDATION_SPLIT': VALIDATION_S...
20.64
45
0.794574
e82562ca40b556abbe9fcd80c5330e04890c9d70
884
py
Python
tasks/docs.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
13
2016-03-09T05:50:53.000Z
2022-01-01T09:20:45.000Z
tasks/docs.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
8
2016-03-24T21:56:58.000Z
2016-03-25T05:28:43.000Z
tasks/docs.py
bharadwajyarlagadda/docMaker
6bb3cdadfb121aaff96704509cedff2710a62b6d
[ "MIT" ]
9
2016-10-11T03:56:53.000Z
2020-05-13T03:05:13.000Z
import os from invoke import run, task from .utils import cd BUILD_DIR = 'docs/_build' HTML_DIR = os.path.join(BUILD_DIR, 'html') @task def build(): """Build Documentation""" run('rm -rf {0}'.format(BUILD_DIR)) run('cd docs && make doctest && make html') @task def serve(port=8000): print('Serving ...
21.560976
70
0.602941
e825b7a35d6f85c1af62346d488cde02d15e9399
13,779
py
Python
dga_train_lr.py
asafnadler/DeepDGA
94009a8a32685b86827a4794c3372d7724a2b052
[ "MIT" ]
21
2019-03-06T14:29:28.000Z
2021-10-13T03:18:52.000Z
dga_train_lr.py
asafnadler/DeepDGA
94009a8a32685b86827a4794c3372d7724a2b052
[ "MIT" ]
null
null
null
dga_train_lr.py
asafnadler/DeepDGA
94009a8a32685b86827a4794c3372d7724a2b052
[ "MIT" ]
16
2018-12-12T13:17:23.000Z
2021-08-24T09:12:42.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import numpy as np import tensorflow as tf import dga_model from dga_reader import load_data, DataReader flags = tf.flags # data flags.DEFINE_string('data_dir', 'dga_data', 'data ...
51.800752
203
0.537847
e825c9987a8a68e94322e9da94e909d41c911889
15,895
py
Python
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext_512crop/train2.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext_512crop/train2.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext_512crop/train2.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="2" import numpy as np import pandas as pd import matplotlib.pyplot as plt import skimage.io from skimage.transform import resize from imgaug import augmenters as iaa from tqdm import tqdm import PIL from PIL import Image...
35.400891
123
0.646556
e826060b0cdd6955f80a7667fc46e398e8cdb4da
453
py
Python
Python-Study/Study/Day2/file_op.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
Python-Study/Study/Day2/file_op.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
Python-Study/Study/Day2/file_op.py
Qiaozhi94/Python-Projects
aefc6cf49c1f4f2cc9beba8dbe80cfa826ba75c4
[ "MIT" ]
null
null
null
#song = open("文件").read() #f = open("文件","r+") #r+ 读写 f = open("文件", "w+") #w+ 写读 #data = f.read() #print(data) #f.write("uyfhfakdhshaj\nncgfkgkaglv\n") #f.write("asdjkhfbaskb") #data = f.read() #print(data) #f.close() #for line in f.readlines(): #print(line.strip()) #for i in range(5): #print(f.rea...
13.323529
40
0.580574
e8260d1e1a47f723ba4dec9efd92d00a960d347c
3,635
py
Python
whoiscache/web.py
ecix/pytinyirrdbcache
eca57af48ecddfbd3cf55af6fdd1a3dfa6d65670
[ "BSD-3-Clause" ]
1
2017-02-24T08:37:51.000Z
2017-02-24T08:37:51.000Z
whoiscache/web.py
ecix/pytinyirrdbcache
eca57af48ecddfbd3cf55af6fdd1a3dfa6d65670
[ "BSD-3-Clause" ]
null
null
null
whoiscache/web.py
ecix/pytinyirrdbcache
eca57af48ecddfbd3cf55af6fdd1a3dfa6d65670
[ "BSD-3-Clause" ]
1
2019-09-19T11:34:56.000Z
2019-09-19T11:34:56.000Z
import flask import jinja2 import json import logging from whoiscache.service import WhoisCacheApp from whoiscache import settings, cache as C app = WhoisCacheApp("WhoisCache") index_tpl = jinja2.Template(""" <h1>Whois Cache ({{version}})</h1> <p>Loaded caches: <b>{{ caches|join(', ') }}, ALL</b> (combined logical O...
31.608696
81
0.617882
e826415cf22634477f4b3f3edd1769d4d2ab18c0
529
py
Python
Neural Network/Sentdex/layer.py
AwsafAlam/Pattern_Recognition
cf52b833c6e66fe4920bc8a76b78246fbca83842
[ "MIT" ]
null
null
null
Neural Network/Sentdex/layer.py
AwsafAlam/Pattern_Recognition
cf52b833c6e66fe4920bc8a76b78246fbca83842
[ "MIT" ]
null
null
null
Neural Network/Sentdex/layer.py
AwsafAlam/Pattern_Recognition
cf52b833c6e66fe4920bc8a76b78246fbca83842
[ "MIT" ]
null
null
null
import numpy as np inputs = [1,2,3, 2.5] weights = [[0.2,0.8,-0.5, 1.0], [0.5, -0.91, 0.26, -0.5], [-0.26, -0.27,0.17, 0.87]] bias = [2.0, 3.0, 0.5] # output_layer = [] # for i in range(len(weights)): # l = np.dot(inputs, weights[i]) + bias[i] # output_layer.append(l) output_layer = np...
26.45
94
0.603025
e82654bcec98254a0e987c0d1bec00eb18d27ad6
4,611
py
Python
tests/test_integration.py
KCL-BMEIS/spectrumdevice
f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551
[ "MIT" ]
4
2022-01-10T08:35:23.000Z
2022-01-19T12:06:05.000Z
tests/test_integration.py
KCL-BMEIS/spectrumdevice
f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551
[ "MIT" ]
8
2022-01-05T14:07:10.000Z
2022-03-17T20:03:27.000Z
tests/test_integration.py
KCL-BMEIS/spectrumdevice
f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551
[ "MIT" ]
null
null
null
import datetime from typing import List from unittest import TestCase import pytest from numpy import array, concatenate from example_scripts.connect_to_star_hub import star_hub_example from example_scripts.continuous_multi_fifo_mode import continuous_multi_fifo_example from example_scripts.finite_multi_fifo_mode imp...
41.540541
115
0.733897
e826569c90861d6508dfe25b1c0304f924ed44dd
2,881
py
Python
hive/indexer/feed_cache.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
78
2017-03-09T15:33:08.000Z
2022-03-30T06:01:19.000Z
hive/indexer/feed_cache.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
193
2017-04-25T19:39:20.000Z
2021-06-29T01:53:53.000Z
hive/indexer/feed_cache.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
68
2017-05-07T17:31:08.000Z
2021-08-23T01:17:00.000Z
"""Maintains feed cache (blogs + reblogs)""" import logging import time from hive.db.adapter import Db from hive.db.db_state import DbState log = logging.getLogger(__name__) DB = Db.instance() class FeedCache: """Maintains `hive_feed_cache`, which merges posts and reports. The feed cache allows for efficie...
38.932432
82
0.625824
e8265a2d5a810fa82a9a9daa2d0d3ce0e6f25ef5
903
py
Python
models/final_experiment_scripts/eICU/mortality/transformer.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
29
2020-11-23T16:27:41.000Z
2022-03-25T16:05:24.000Z
models/final_experiment_scripts/eICU/mortality/transformer.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
2
2020-11-28T04:11:12.000Z
2021-08-23T12:42:08.000Z
models/final_experiment_scripts/eICU/mortality/transformer.py
ducnx/TPC-LoS-prediction
49713f5bd7e77c2adb1ff950c885d087a398a1ad
[ "MIT" ]
9
2021-02-23T07:12:58.000Z
2022-01-13T15:11:59.000Z
from eICU_preprocessing.split_train_test import create_folder from models.run_transformer import BaselineTransformer from models.initialise_arguments import initialise_transformer_arguments from models.final_experiment_scripts.best_hyperparameters import best_transformer if __name__=='__main__': c = initialise_t...
43
104
0.651163
e82671f464211dac088ab4b2d00308f62029e8cd
1,015
py
Python
krvjezivot/contrib/sites/migrations/0003_set_site_domain_and_name.py
jkvakaric/krv-je-zivot
a875dcde468e1e5508713e592f974cb147223b52
[ "MIT" ]
null
null
null
krvjezivot/contrib/sites/migrations/0003_set_site_domain_and_name.py
jkvakaric/krv-je-zivot
a875dcde468e1e5508713e592f974cb147223b52
[ "MIT" ]
null
null
null
krvjezivot/contrib/sites/migrations/0003_set_site_domain_and_name.py
jkvakaric/krv-je-zivot
a875dcde468e1e5508713e592f974cb147223b52
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
29
129
0.684729
e8268a937c960ad4b971bd1521b7364356d8f76b
15
py
Python
btd6_memory_info/generated/AOT/aot.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/AOT/aot.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/AOT/aot.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class AOT: pass
15
15
0.8
e82691a6ce81f5aedd11f7f6a801e5345f10886e
25,645
py
Python
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/kube_app.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/kube_app.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/kube_app.py
starlingx-staging/stx-config
ccbf0392d1941e7cad6673f6351bd905a5a5d419
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2018-2019 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import os import pecan from pecan import rest import shutil import tempfile import wsme from wsme import types as wtypes import wsmeext.pecan as wsme_pecan from contextlib import contextmanager from oslo_log import log from...
40.706349
95
0.585221
e8269cdd42d4821c823601e8548b82d8dd9bdd5e
1,088
py
Python
forte/processors/ir/__init__.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
2
2021-01-01T12:07:27.000Z
2021-09-10T03:57:18.000Z
forte/processors/ir/__init__.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
forte/processors/ir/__init__.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Forte 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 applicable ...
45.333333
77
0.797794
e826e95329761c6e37e9f73e375609085be4633c
3,561
py
Python
automation/_scrape_info.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
automation/_scrape_info.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
automation/_scrape_info.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
3
2021-09-22T11:06:58.000Z
2022-01-25T09:29:24.000Z
#! env/bin/python """ Main script to: 1. Scrape challenge info from urls 2. Parse challenge info 3. Save challenge info to csv 4. Make files for challenge info """ ########## # Imports ########## import os from pathlib import Path import aux_funcs import constants from domains import problem_domains from logger.s...
27.604651
96
0.573434
e82716237c13d578f5c87ce68330653505383cb9
4,783
py
Python
tests/features/environment.py
antoniotrkdz/pgcli
908a8ddacf330b593540fc2c8a56ceed0f07f128
[ "BSD-3-Clause" ]
null
null
null
tests/features/environment.py
antoniotrkdz/pgcli
908a8ddacf330b593540fc2c8a56ceed0f07f128
[ "BSD-3-Clause" ]
null
null
null
tests/features/environment.py
antoniotrkdz/pgcli
908a8ddacf330b593540fc2c8a56ceed0f07f128
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import print_function import os import sys import db_utils as dbutils import fixture_utils as fixutils import pexpect import tempfile import shutil from steps.wrappers import run_cli, wait_prompt def before_all(context): """ Set...
30.858065
80
0.580807
e8272f6e5adc59c04b6e108d5e5249412e096fea
636
py
Python
helpers.py
karimbounekhla/find-similarities
6dc05d36eb107963077b525e518b3b8e628c8260
[ "MIT" ]
1
2022-01-08T16:31:59.000Z
2022-01-08T16:31:59.000Z
helpers.py
karimbounekhla/find-similarities
6dc05d36eb107963077b525e518b3b8e628c8260
[ "MIT" ]
null
null
null
helpers.py
karimbounekhla/find-similarities
6dc05d36eb107963077b525e518b3b8e628c8260
[ "MIT" ]
1
2021-04-01T19:38:19.000Z
2021-04-01T19:38:19.000Z
def lines(a, b): """Return lines in both a and b""" alist = set(a.split("\n")) blist = set(b.split("\n")) return list(alist & blist) from nltk.tokenize import sent_tokenize def sentences(a, b): """Return sentences in both a and b""" alist = set(sent_tokenize(a)) blist = set(sent_tokenize...
21.931034
55
0.577044
e8275e99fb810c8d92e69d58ff2320041189e9c8
994
py
Python
test/test_vehicle_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
test/test_vehicle_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
test/test_vehicle_api.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest i...
21.148936
97
0.694165
e82775a0c41c6a1ca90ad12fc600781f5f278601
1,466
py
Python
coldwallet/coldwallet/sql/protobuf.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
coldwallet/coldwallet/sql/protobuf.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
coldwallet/coldwallet/sql/protobuf.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING, Generic, Optional, Type, TypeVar, Union import sqlalchemy.types as types from google.protobuf.message import Message from sqlalchemy.engine.interfaces import Dialect TMessage = TypeVar("TMessage", bound=Message) if TYPE_CHECKING: ProtobufEngine = types.TypeDecorator[TMessage] ...
35.756098
98
0.707367
e82779b21ceb91db0f4de7cfdd925b99d38e4b57
3,457
py
Python
doc/scripts/build_par_rst.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
doc/scripts/build_par_rst.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
doc/scripts/build_par_rst.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Dynamically build the rst documentation of the pypeit parameters. """ import os import time import textwrap from IPython import embed import numpy from pkg_resources import resource_filename from pypeit.par import pypeitpar from pypeit.par.parset import ParSet from pypeit.spectrographs.util import load_spectrog...
32.92381
98
0.567833
e827996ab96332e6c04ac7d7b47969ec1b81f4c2
60
py
Python
we_search/util.py
shawxiaozhang/we_web
c9736c09fda1aa9b5d7796ba0315637697baa7e0
[ "MIT" ]
null
null
null
we_search/util.py
shawxiaozhang/we_web
c9736c09fda1aa9b5d7796ba0315637697baa7e0
[ "MIT" ]
null
null
null
we_search/util.py
shawxiaozhang/we_web
c9736c09fda1aa9b5d7796ba0315637697baa7e0
[ "MIT" ]
null
null
null
DIR_RAW = 'raw/' DIR_RESULT = 'result/' DIR_LOCAL = 'local/'
20
22
0.666667
e827a0a957167de7ea34a1579d0886e1ddd515fe
6,415
py
Python
py/axonchisel/metrics/foundation/query/qdata.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
10
2016-08-26T18:57:28.000Z
2021-09-19T19:21:16.000Z
py/axonchisel/metrics/foundation/query/qdata.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
1
2015-01-08T19:54:54.000Z
2015-01-09T01:24:17.000Z
py/axonchisel/metrics/foundation/query/qdata.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
3
2015-01-08T23:32:58.000Z
2016-09-23T02:38:26.000Z
""" Ax_Metrics - Query component for data specification ------------------------------------------------------------------------------ Author: Dan Kamins <dos at axonchisel dot net> Copyright (c) 2014 Dan Kamins, AxonChisel.net """ # ---------------------------------------------------------------------------- from...
27.41453
78
0.555885
e827a1ace336d9e9362328d6be5f85dac7cd21b1
5,586
py
Python
src/ggrc/models/import_export.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
src/ggrc/models/import_export.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/models/import_export.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ ImportExport model.""" import json from datetime import datetime, timedelta from logging import getLogger from sqlalchemy.dialects import mysql from ggrc import db from ggrc.models.mixins.base import ...
31.92
79
0.652703
e827c47c06b2764c7f2dc5999c19bfd8c960249a
2,818
py
Python
utility.py
joelalgee/image_classifier
dc5811d386d3e5885c0c629f87adb2cf6e15f572
[ "Unlicense" ]
null
null
null
utility.py
joelalgee/image_classifier
dc5811d386d3e5885c0c629f87adb2cf6e15f572
[ "Unlicense" ]
null
null
null
utility.py
joelalgee/image_classifier
dc5811d386d3e5885c0c629f87adb2cf6e15f572
[ "Unlicense" ]
null
null
null
# python 3.8.5 # Imports here import torch # 1.7.0 from torchvision import datasets, transforms from PIL import Image # 7.2.0 import numpy as np # 1.19.1 def load_data(data_dir): ''' Loads image data ...
38.081081
109
0.594393
e827d2501f1591ad6819e5eb8a0b2a51fe6b95c3
8,645
py
Python
tests/test_futures.py
arquolo/loky
02e1431bf767ccea0cacb325e2fc8d394603be72
[ "BSD-3-Clause" ]
null
null
null
tests/test_futures.py
arquolo/loky
02e1431bf767ccea0cacb325e2fc8d394603be72
[ "BSD-3-Clause" ]
null
null
null
tests/test_futures.py
arquolo/loky
02e1431bf767ccea0cacb325e2fc8d394603be72
[ "BSD-3-Clause" ]
null
null
null
import time import pytest import threading from concurrent import futures from concurrent.futures._base import (PENDING, RUNNING, CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED) from loky._base import Future from .utils import captured_stderr def create_future(state=PENDING, excep...
33.378378
78
0.629381
e82803bde0c4dcc8bdfab5c8486899354dde6845
4,634
py
Python
tests/selenium/tokens_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
null
null
null
tests/selenium/tokens_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
155
2020-05-29T17:21:13.000Z
2022-03-28T19:55:52.000Z
tests/selenium/tokens_test.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
3
2021-04-26T18:02:58.000Z
2022-02-03T01:29:13.000Z
"""Selenium tests for ``/auth/tokens``.""" from __future__ import annotations from typing import TYPE_CHECKING from urllib.parse import urljoin import httpx import pytest from gafaelfawr.constants import COOKIE_NAME from gafaelfawr.models.state import State from gafaelfawr.models.token import Token, TokenType from ...
35.374046
75
0.70997
e82823e655ec28b731bb24308495197956453a99
10,436
py
Python
handlers/BaseHandlers.py
tunelko/RootTheBox
e9cb98b7837a39f6ed4f98435c5f2a7b5731d5e2
[ "Apache-2.0" ]
1
2015-05-01T14:45:30.000Z
2015-05-01T14:45:30.000Z
handlers/BaseHandlers.py
tunelko/RootTheBox
e9cb98b7837a39f6ed4f98435c5f2a7b5731d5e2
[ "Apache-2.0" ]
null
null
null
handlers/BaseHandlers.py
tunelko/RootTheBox
e9cb98b7837a39f6ed4f98435c5f2a7b5731d5e2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on Mar 15, 2012 @author: moloch Copyright 2012 Root the Box 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/LIC...
33.664516
98
0.598218
e82827b7a521d1294d9147b6a15d16b0e30a70b0
103
py
Python
src/rfc2136_bridge/__init__.py
schlarpc/rfc2136_bridge
bd18c52169008da52ea427722b1783ad488c175c
[ "MIT" ]
1
2021-11-05T17:38:17.000Z
2021-11-05T17:38:17.000Z
src/rfc2136_bridge/__init__.py
schlarpc/rfc2136_bridge
bd18c52169008da52ea427722b1783ad488c175c
[ "MIT" ]
null
null
null
src/rfc2136_bridge/__init__.py
schlarpc/rfc2136_bridge
bd18c52169008da52ea427722b1783ad488c175c
[ "MIT" ]
null
null
null
""" RFC 2136 to Route 53 bridge server for solving ACME DNS-01 challenges. """ __version__ = "1.0.0"
14.714286
70
0.68932
e828311b9d9316d85cc1650fee056341fc7e6006
31,069
py
Python
commands/commands/xp.py
PWBaboons/Ithir
3a65ab1e866b10ffd568f6b15a66576e1853f47d
[ "MIT" ]
null
null
null
commands/commands/xp.py
PWBaboons/Ithir
3a65ab1e866b10ffd568f6b15a66576e1853f47d
[ "MIT" ]
null
null
null
commands/commands/xp.py
PWBaboons/Ithir
3a65ab1e866b10ffd568f6b15a66576e1853f47d
[ "MIT" ]
1
2018-09-12T02:06:04.000Z
2018-09-12T02:06:04.000Z
""" XP and Skill stuff! Most utilities for xp/costs and skill checks are all handled in the gamesrc.objects.stats_and_skills file, which we'll use liberally here. In general, all the commands players and builders will use to see their skills, use or adjust xp, and so on will be here, as well as related commands...
43.151389
116
0.54247
e828376d4ee8fc5918dd313ba627ebfe95cb2605
14,151
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.368263
221
0.675641
e8283e23765af3dc2b31dcce80152f96cea62fe5
6,893
py
Python
stockscore/data.py
jackmoody11/stockscore
629d1685418d72b6ad9e7a3c0399d53774ab7aed
[ "MIT" ]
54
2018-10-10T01:47:32.000Z
2022-03-18T16:41:26.000Z
stockscore/data.py
jackmoody11/stockscore
629d1685418d72b6ad9e7a3c0399d53774ab7aed
[ "MIT" ]
53
2018-08-14T23:29:48.000Z
2021-03-31T19:55:46.000Z
stockscore/data.py
jackmoody11/stockScores
629d1685418d72b6ad9e7a3c0399d53774ab7aed
[ "MIT" ]
16
2018-10-12T21:05:23.000Z
2022-01-21T09:08:44.000Z
# Modules import grequests import pandas as pd import numpy as np from iexfinance.stocks import Stock from multiprocessing import Pool iex_url_base = "https://api.iextrading.com/1.0/" def return_top(scores, metric, x=None): """ Args: scores(pandas.DataFrame): pandas.DataFrame with scores metric(s...
27.031373
86
0.527056
e828484aec4b2166a698059ce5ecc618a436b1a6
11,589
py
Python
res/models/multitask_resnet_new.py
GregoryEHunter/generalization_to_OOD_category_viewpoint_combinations
52aacbb3420639cae64ce65085c17b245e5ef865
[ "MIT" ]
10
2022-02-21T17:15:18.000Z
2022-03-19T16:06:40.000Z
res/models/multitask_resnet_new.py
GregoryEHunter/generalization_to_OOD_category_viewpoint_combinations
52aacbb3420639cae64ce65085c17b245e5ef865
[ "MIT" ]
null
null
null
res/models/multitask_resnet_new.py
GregoryEHunter/generalization_to_OOD_category_viewpoint_combinations
52aacbb3420639cae64ce65085c17b245e5ef865
[ "MIT" ]
1
2021-12-29T16:23:46.000Z
2021-12-29T16:23:46.000Z
import torch import torch.nn as nn import sys def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=dilation, groups=groups, bias=False, dilation=dilation) def c...
36.443396
106
0.588317