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
5811e10b88b507765a7c6837ee0d3abe51b1f6a5
3,625
py
Python
tensorflow_estimator/python/estimator/tpu/util.py
cyc/estimator
742a07296c8f584150bb02f97be7207130ded5fd
[ "Apache-2.0" ]
3
2020-10-12T15:47:01.000Z
2022-01-14T19:51:26.000Z
tensorflow_estimator/python/estimator/tpu/util.py
cyc/estimator
742a07296c8f584150bb02f97be7207130ded5fd
[ "Apache-2.0" ]
9
2020-09-25T22:32:02.000Z
2022-02-09T23:45:10.000Z
tensorflow_estimator/python/estimator/tpu/util.py
cyc/estimator
742a07296c8f584150bb02f97be7207130ded5fd
[ "Apache-2.0" ]
2
2020-08-03T13:02:06.000Z
2020-11-04T03:15:44.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.616162
80
0.689655
38c33bf989a7de80370bd5d1b299754bfbdfed02
992
py
Python
src/line_segmentation.py
MartinEthier/SimpleHTR
071febbbea419aa822ea4a767d2cbf733ece7724
[ "MIT" ]
null
null
null
src/line_segmentation.py
MartinEthier/SimpleHTR
071febbbea419aa822ea4a767d2cbf733ece7724
[ "MIT" ]
null
null
null
src/line_segmentation.py
MartinEthier/SimpleHTR
071febbbea419aa822ea4a767d2cbf733ece7724
[ "MIT" ]
null
null
null
import numpy as np import cv2 from matplotlib import pyplot as plt from Line import Line def segment_lines(bw_img): # Calculates bounding boxes for all lines of text inside of image # Invert binary so text is 1s bw_inv = cv2.bitwise_not(bw_img) # dilate to glue individual lines together ...
29.176471
102
0.637097
a16c730d1246874375235150cbdee03a90c24f6b
1,446
py
Python
tests/test_config.py
z-tasker/comp-syn
03333f84ebfea51b4cf55f7ab42ec0eb3f9a2fbb
[ "MIT" ]
20
2020-04-18T12:49:33.000Z
2022-01-27T13:36:35.000Z
tests/test_config.py
z-tasker/comp-syn
03333f84ebfea51b4cf55f7ab42ec0eb3f9a2fbb
[ "MIT" ]
7
2020-04-27T01:53:58.000Z
2021-12-16T03:27:07.000Z
tests/test_config.py
z-tasker/comp-syn
03333f84ebfea51b4cf55f7ab42ec0eb3f9a2fbb
[ "MIT" ]
14
2020-04-18T12:49:35.000Z
2022-01-27T13:36:41.000Z
import os import pytest from pathlib import Path from compsyn.config import CompsynConfig from compsyn.trial import get_trial_from_env @pytest.mark.unit def test_CompsynConfig() -> None: # capture original environment COMPSYN_ variables so we can put things back after messin' about original_values = { ...
26.290909
99
0.679115
56ac92e5cfda45e6a08469a052f980d19291ec83
506
py
Python
3.3.9/scrapy_plus/http/response.py
feel-easy/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
1
2019-02-28T10:16:00.000Z
2019-02-28T10:16:00.000Z
3.3.9/scrapy_plus/http/response.py
wasalen/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
null
null
null
3.3.9/scrapy_plus/http/response.py
wasalen/myspider
dcc65032015d7dbd8bea78f846fd3cac7638c332
[ "Apache-2.0" ]
null
null
null
# THE WINTER IS COMING! the old driver will be driving who was a man of the world! # -*- coding: utf-8 -*- python 3.6.7, create time is 18-11-30 下午4:03 GMT+8 from lxml import etree class Response(): def __init__(self, url=None, headers=None, status_code=None, body=None): self.url = url self.hea...
26.631579
82
0.648221
f95ea65e2ea95af5d61a28664ae6454ebc82552d
5,337
py
Python
dnanexus/peaks_report.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
108
2015-06-30T19:38:12.000Z
2022-03-09T06:50:59.000Z
dnanexus/peaks_report.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
7
2017-06-28T06:43:41.000Z
2021-09-07T05:33:04.000Z
dnanexus/peaks_report.py
strattan/test-merge2
2bc5a7c94fb06cff163ab3674dbb319e45976d17
[ "MIT" ]
59
2015-08-29T10:26:24.000Z
2021-06-25T02:27:20.000Z
#!/usr/bin/env python import os, sys, logging, urlparse, requests, csv, StringIO, re, copy import common logger = logging.getLogger(__name__) EPILOG = '''Notes: Examples: %(prog)s ''' def get_args(): import argparse parser = argparse.ArgumentParser( description=__doc__, epilog=EPILOG, ...
38.956204
130
0.634251
9e70c643a7c29708773d95a412ee0d3df68dfe94
4,133
py
Python
Shortest_Path/env.py
Chang-Chia-Chi/Maze-Generator-and-Shortest-Path-Finding-Project
fb70447a89e44f66991da35807ba998914df185d
[ "MIT" ]
4
2020-09-25T02:07:17.000Z
2022-01-10T04:59:31.000Z
Shortest_Path/env.py
Chang-Chia-Chi/Maze-Generator-and-Shortest-Path-Finding-Project
fb70447a89e44f66991da35807ba998914df185d
[ "MIT" ]
null
null
null
Shortest_Path/env.py
Chang-Chia-Chi/Maze-Generator-and-Shortest-Path-Finding-Project
fb70447a89e44f66991da35807ba998914df185d
[ "MIT" ]
1
2021-08-04T12:39:48.000Z
2021-08-04T12:39:48.000Z
import pygame class Node: """ create node object to store node coordinate and its parent state: position standing --> tuple action: action take to move --> str parent: parent of node --> Node """ def __init__(self, state:tuple, action:str, parent=None): self.state = state s...
32.801587
80
0.506412
0b1d1d39468c88c2be9ce8f337231810fb8cb217
8,343
py
Python
tests/unit/api/test_Server.py
samarthdd/cdr-plugin-folder-to-folder
def780f5590f63066194ff7b348fd256d7f74a10
[ "Apache-2.0" ]
null
null
null
tests/unit/api/test_Server.py
samarthdd/cdr-plugin-folder-to-folder
def780f5590f63066194ff7b348fd256d7f74a10
[ "Apache-2.0" ]
null
null
null
tests/unit/api/test_Server.py
samarthdd/cdr-plugin-folder-to-folder
def780f5590f63066194ff7b348fd256d7f74a10
[ "Apache-2.0" ]
null
null
null
import imp import inspect from unittest import TestCase from unittest.mock import patch, call from fastapi_offline import FastAPIOffline as FastAPI from osbot_utils.utils.Misc import list_set from cdr_plugin_folder_to_folder.api.Server import Server from cdr_plugin_folder_to_folder.utils.testing.Temp_API_Server impor...
91.681319
242
0.461824
b87b976ecadb19967b817edda9f0f98a99837675
641
py
Python
examples/pyplot/latex.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
836
2020-06-14T02:38:12.000Z
2022-03-31T15:39:50.000Z
examples/pyplot/latex.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
418
2020-06-14T10:51:32.000Z
2022-03-31T23:23:14.000Z
examples/pyplot/latex.py
hadivafaii/vedo
15f9adbd36d25c0212cbd4eb0c15af54c19f3819
[ "CC0-1.0" ]
136
2020-06-14T02:26:41.000Z
2022-03-31T12:47:18.000Z
from vedo import Latex # https://matplotlib.org/tutorials/text/mathtext.html latex1 = r'x= \frac{ - b \pm \sqrt {b^2 - 4ac} }{2a}' latex2 = r'\mathcal{A}\mathrm{sin}(2 \omega t)' latex3 = r'I(Y | X)=\sum_{x \in \mathcal{X}, y \in \mathcal{Y}} p(x, y) \log \left(\frac{p(x)}{p(x, y)}\right)' latex4 = r'\Gamma_{\epsilon...
42.733333
162
0.605304
5290a2ecfc25f008ac93634363bd4c4f34a7b03e
1,061
py
Python
video_classification/models/saving_module.py
gpostelnicu/video_classification
ac8cf0b1a3365ec42ec92fd8b3ad946c6e5c8e15
[ "MIT" ]
null
null
null
video_classification/models/saving_module.py
gpostelnicu/video_classification
ac8cf0b1a3365ec42ec92fd8b3ad946c6e5c8e15
[ "MIT" ]
null
null
null
video_classification/models/saving_module.py
gpostelnicu/video_classification
ac8cf0b1a3365ec42ec92fd8b3ad946c6e5c8e15
[ "MIT" ]
null
null
null
import torch.nn as nn CONFIG = 'config' STATE = 'state' class SavingModule(nn.Module): """ SavingModule provides saving and loading functionality for a module. In order for a class to inherit from SavingModule, they need to: - have a class attribute config_cls with the class of the configuration to...
27.921053
87
0.6541
5b04e7e8bd2eecc98e24d1e6612b34311b96ae0d
12,077
py
Python
invokust/aws_lambda/lambda_load_test.py
ktrueda/invokust
ac698589ac993bd52928b119be3c471faf2891c9
[ "MIT" ]
null
null
null
invokust/aws_lambda/lambda_load_test.py
ktrueda/invokust
ac698589ac993bd52928b119be3c471faf2891c9
[ "MIT" ]
null
null
null
invokust/aws_lambda/lambda_load_test.py
ktrueda/invokust
ac698589ac993bd52928b119be3c471faf2891c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import time import logging import threading from boto3.session import Session from botocore.client import Config logger = logging.getLogger(__name__) logging.getLogger("botocore").setLevel(logging.CRITICAL) session = Session() config = Config(connect_timeout=10, read_timeout=310)...
33.547222
142
0.578703
68142852ae778009091ecacf5e33effcede75c1c
421
py
Python
py/tests/test_Sample.py
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
1
2022-01-26T16:33:45.000Z
2022-01-26T16:33:45.000Z
py/tests/test_Sample.py
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
null
null
null
py/tests/test_Sample.py
zcemycl/algoTest
9518fb2b60fd83c85aeb2ab809ff647aaf643f0a
[ "MIT" ]
1
2022-01-26T16:35:44.000Z
2022-01-26T16:35:44.000Z
import unittest from solns.solnSample import * class TestCase(unittest.TestCase): def test_classmethod(self): s = Solution.fromOneNumber(1) self.assertEqual(s.soln1(),2) def test_abstractmethod(self): s = Solution(1,2) self.assertEqual(s.soln1(),3) def test_staticSoln2(se...
22.157895
47
0.662708
c9c91ceb39de42c44f9ce81658aa79b896999552
2,694
py
Python
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_static.py
zhupengyang/Paddle
ad6e3dd69cd915dd61287e96de7ec4ae132d24a5
[ "Apache-2.0" ]
1
2021-12-27T02:41:23.000Z
2021-12-27T02:41:23.000Z
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_static.py
zlsh80826/Paddle
c560a7d57aad990f374ebadd330351f18e2ca65f
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_nn_functional_embedding_static.py
zlsh80826/Paddle
c560a7d57aad990f374ebadd330351f18e2ca65f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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...
32.457831
74
0.5683
7e58f820f09f7605b685dc26f6fa5168271512cf
2,433
py
Python
log_casp_act/run_model_579.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/run_model_579.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/run_model_579.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
import numpy as np from math import * import pymultinest import sys sys.path.insert(0, '/home/kochenma/pysb') from pysb.integrate import Solver import csv import datetime import time as tm from model_579 import model from pysb.pathfinder import set_path set_path('bng', '/home/kochenma/BioNetGen') data_object = [] wi...
25.610526
237
0.671599
a47f34da66634483663c102d2f6ac0337c109f62
42
py
Python
modules/__init__.py
autonomousvision/data_aggregation
76777156a465cbb77d6d5ab88da8f1812e7ff043
[ "MIT" ]
29
2020-03-19T14:11:15.000Z
2022-02-01T14:51:40.000Z
modules/__init__.py
autonomousvision/data_aggregation
76777156a465cbb77d6d5ab88da8f1812e7ff043
[ "MIT" ]
4
2020-06-24T18:49:27.000Z
2020-11-18T12:31:26.000Z
modules/__init__.py
autonomousvision/data_aggregation
76777156a465cbb77d6d5ab88da8f1812e7ff043
[ "MIT" ]
5
2020-06-24T02:00:13.000Z
2021-06-05T08:54:34.000Z
from .screen_manager import ScreenManager
21
41
0.880952
fd661be1d36583e36f04f291cf696e0fc5fec77c
271
py
Python
util/make_ascii.py
kaisatec/duktape
d3dfd199897876dc40d93d9a6da4d6204719e9b1
[ "MIT" ]
null
null
null
util/make_ascii.py
kaisatec/duktape
d3dfd199897876dc40d93d9a6da4d6204719e9b1
[ "MIT" ]
null
null
null
util/make_ascii.py
kaisatec/duktape
d3dfd199897876dc40d93d9a6da4d6204719e9b1
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Paranoia escape input file to be printable ASCII. # import os, sys inp = sys.stdin.read().decode('utf-8') for c in inp: if (ord(c) >= 0x20 and ord(c) <= 0x7e) or (c in '\x0a'): sys.stdout.write(c) else: sys.stdout.write('\\u%04x' % ord(c))
19.357143
57
0.619926
c9d2dd1bd31ba0462b0860ea6d7811b96f312028
2,802
py
Python
cafe/plugins/subunit/cafe/common/reporting/subunit_report.py
melissa-kam/opencafe
af90c228084d479afa60b8b06a6b5d4d1adf2b8e
[ "Apache-2.0" ]
null
null
null
cafe/plugins/subunit/cafe/common/reporting/subunit_report.py
melissa-kam/opencafe
af90c228084d479afa60b8b06a6b5d4d1adf2b8e
[ "Apache-2.0" ]
null
null
null
cafe/plugins/subunit/cafe/common/reporting/subunit_report.py
melissa-kam/opencafe
af90c228084d479afa60b8b06a6b5d4d1adf2b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Rackspace # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
40.608696
78
0.590293
0848ca688df91d21e19bc633f06387fb9fc973c2
2,117
py
Python
business_rules_bulk/actions.py
awaazde/business-rules
7e5c998db4b06268430e19c65bb61883247e9225
[ "MIT" ]
null
null
null
business_rules_bulk/actions.py
awaazde/business-rules
7e5c998db4b06268430e19c65bb61883247e9225
[ "MIT" ]
null
null
null
business_rules_bulk/actions.py
awaazde/business-rules
7e5c998db4b06268430e19c65bb61883247e9225
[ "MIT" ]
1
2020-04-29T06:49:50.000Z
2020-04-29T06:49:50.000Z
import inspect from . import fields from .utils import fn_name_to_pretty_label class BaseActions: """ Classes that hold a collection of actions to use with the rules engine should inherit from this. """ @classmethod def get_all_actions(cls): methods = inspect.getmembers(cls) retur...
37.803571
79
0.585262
2bf159de67e8ade52e3285473fd2edb10b3f5e6e
2,667
py
Python
experiments/tests/test_hPotts.py
wmkouw/cc-infopriors
653079f201c8bce570dacb3479f4270ebe0de953
[ "MIT" ]
1
2019-07-11T01:32:55.000Z
2019-07-11T01:32:55.000Z
experiments/tests/test_hPotts.py
wmkouw/cc-smoothprior
653079f201c8bce570dacb3479f4270ebe0de953
[ "MIT" ]
null
null
null
experiments/tests/test_hPotts.py
wmkouw/cc-smoothprior
653079f201c8bce570dacb3479f4270ebe0de953
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Script to reproduce results from McGrory, Titterington, Reeves & Pettitt. Author: W.M.Kouw Date: 18-09-2018 """ import pandas as pd import numpy as np import numpy.random as rnd import scipy.optimize as opt import scipy.stats as st import matplotlib.pyplot as plt fro...
23.60177
79
0.64342
462b4941431f5ee2114ba674ca233d345a5438c3
9,354
py
Python
lib/model/rpn/proposal_target_layer_faster_rcnn.py
Complicateddd/CascadeRCNN
019010e80411325dbde62f4d649e5a2ead8eabac
[ "MIT" ]
53
2020-03-19T02:29:58.000Z
2022-03-25T08:47:32.000Z
lib/model/rpn/proposal_target_layer_faster_rcnn.py
Complicateddd/CascadeRCNN
019010e80411325dbde62f4d649e5a2ead8eabac
[ "MIT" ]
5
2020-05-18T10:26:35.000Z
2021-05-18T08:36:54.000Z
lib/model/rpn/proposal_target_layer_faster_rcnn.py
Complicateddd/CascadeRCNN
019010e80411325dbde62f4d649e5a2ead8eabac
[ "MIT" ]
6
2020-04-20T13:16:19.000Z
2020-12-08T14:47:36.000Z
from __future__ import absolute_import # -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Sean Bell # -------------------------------------------------------- # ---------------...
43.915493
104
0.631922
43cad1520ca64e6de9d0ba38863611aa6383cc35
36
py
Python
homeassistant/components/openweathermap/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
homeassistant/components/openweathermap/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
47
2020-07-23T07:14:33.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/openweathermap/__init__.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""The openweathermap component."""
18
35
0.722222
0e30a758c17b3bbac5ecf1dc23678df222e982e2
1,186
py
Python
opennem/utils/images.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
22
2020-06-30T05:27:21.000Z
2022-02-21T12:13:51.000Z
opennem/utils/images.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
71
2020-08-07T13:06:30.000Z
2022-03-15T06:44:49.000Z
opennem/utils/images.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
13
2020-06-30T03:28:32.000Z
2021-12-30T08:17:16.000Z
from hashlib import md5 from io import BytesIO from PIL import Image def img_to_buffer(img: Image) -> memoryview: """ Convert image and save as JPEG @TODO jpeg settings in opennem.settings """ buf = BytesIO() # convert all to RGP if img.mode in ("RGBA", "P", "LA"): img = img.co...
23.254902
76
0.627319
57cf2ef1d70c3c57ab67473f52582f02f95a5988
1,794
py
Python
alipay/aop/api/response/AlipayCommerceOperationContentApplyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayCommerceOperationContentApplyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayCommerceOperationContentApplyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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.OperationExtDataModel import OperationExtDataModel class AlipayCommerceOperationContentApplyResponse(AlipayResponse): def __init__(self): super(AlipayCom...
29.9
116
0.675585
90b6811f6f133af432be943358d82c6c70afdd9a
2,916
py
Python
Chapter07/Exercise7.03/bookr/reviews/models.py
PacktPublishing/Web-Development-with-Django-Second-Edition
a9c3d8e46176af612e3b8fe7bc2a2a8effafe981
[ "MIT" ]
2
2022-01-03T22:17:21.000Z
2022-03-04T13:32:36.000Z
Chapter06/Activity6.01/bookr/reviews/models.py
PacktPublishing/Web-Development-with-Django-Second-Edition
a9c3d8e46176af612e3b8fe7bc2a2a8effafe981
[ "MIT" ]
null
null
null
Chapter06/Activity6.01/bookr/reviews/models.py
PacktPublishing/Web-Development-with-Django-Second-Edition
a9c3d8e46176af612e3b8fe7bc2a2a8effafe981
[ "MIT" ]
1
2022-02-25T13:53:37.000Z
2022-02-25T13:53:37.000Z
from django.contrib import auth from django.db import models class Publisher(models.Model): """A company that publishes books.""" name = models.CharField(max_length=50, help_text="The name of the Publisher.") website = models.URLField(help_text="The Publisher's website.") email = models.EmailField(he...
36
85
0.687243
3b2ac914f848178cf3d590cb40163b9e2aabf074
302
py
Python
setup.py
alex-sherman/python-mrpc
a2b8998fab956b3e6dafcce6d1564691eafcfd23
[ "MIT" ]
3
2017-09-28T21:29:31.000Z
2021-02-02T05:36:59.000Z
setup.py
alex-sherman/python-mrpc
a2b8998fab956b3e6dafcce6d1564691eafcfd23
[ "MIT" ]
1
2017-09-28T21:33:31.000Z
2017-10-27T15:08:59.000Z
setup.py
alex-sherman/python-mrpc
a2b8998fab956b3e6dafcce6d1564691eafcfd23
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = "mrpc", version = "0.1", description = "A Python RPC framework for mesh networks and multiple protocols", packages = ["mrpc"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/python-mrpc')
27.454545
82
0.708609
f9f9950826ff78d9eef6dc00167de70fc4f1887d
825
py
Python
google/cloud/documentai/v1beta1/documentai-v1beta1-py/google/cloud/documentai_v1beta1/services/document_understanding_service/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/documentai/v1beta1/documentai-v1beta1-py/google/cloud/documentai_v1beta1/services/document_understanding_service/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/documentai/v1beta2/documentai-v1beta2-py/google/cloud/documentai_v1beta2/services/document_understanding_service/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.869565
74
0.774545
2d5664dc3bd2c80e794b3f34b0601be208f62033
7,672
py
Python
TensorFI/fiConfig.py
ozturkosu/TensorFI
4551858f2417e604466493de8ef2626afd7c9967
[ "MIT" ]
1
2018-10-11T07:27:45.000Z
2018-10-11T07:27:45.000Z
TensorFI/fiConfig.py
ozturkosu/TensorFI
4551858f2417e604466493de8ef2626afd7c9967
[ "MIT" ]
null
null
null
TensorFI/fiConfig.py
ozturkosu/TensorFI
4551858f2417e604466493de8ef2626afd7c9967
[ "MIT" ]
null
null
null
# Fault injection configuration information: this is used for the global fault injector from enum import Enum import numpy as np from faultTypes import * import yaml import logging # These are the list of supported Operations below (if you add a new Op, please add it here) class Ops(Enum): NOOP = "NOOP" ASSIGN = "AS...
31.834025
95
0.722888
e20e7c2e5f411957022dba70b10159cf28561dbf
972
py
Python
scrapy/commands/edit.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
26
2015-02-07T17:35:26.000Z
2020-04-27T21:11:00.000Z
scrapy/commands/edit.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
2
2021-09-20T19:54:29.000Z
2022-03-22T21:47:39.000Z
scrapy/commands/edit.py
h4ck3rm1k3/scrapy
59dcdbe84769c9d204f552a2b545b1e096a2d42c
[ "BSD-3-Clause" ]
9
2015-09-21T08:17:20.000Z
2021-02-07T02:31:36.000Z
import sys, os from scrapy.command import ScrapyCommand from scrapy.exceptions import UsageError class Command(ScrapyCommand): requires_project = True default_settings = {'LOG_ENABLED': False} def syntax(self): return "<spider>" def short_desc(self): return "Edit spider" def lo...
26.27027
73
0.616255
39d2d1e333821cb63f888fc9e30da35f74a06ee0
21,221
py
Python
bin/ensembl_prep.py
RahmanTeamDevelopment/CAVA
cbaf558d8a0614e3eb505beb50fabfb60f56b76a
[ "MIT" ]
2
2017-02-16T12:29:29.000Z
2018-04-23T09:11:51.000Z
bin/ensembl_prep.py
RahmanTeamDevelopment/CAVA
cbaf558d8a0614e3eb505beb50fabfb60f56b76a
[ "MIT" ]
1
2017-03-01T11:11:51.000Z
2017-03-01T11:11:51.000Z
bin/ensembl_prep.py
RahmanTeamDevelopment/CAVA
cbaf558d8a0614e3eb505beb50fabfb60f56b76a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Transcript database preparation tool (ensembl_prep) ####################################################################################################################### # Basic imports from __future__ import division import os import sys import gzip import datetime from optparse import Opt...
38.374322
181
0.581122
961af5c7ca95bf4b1a45d10a163bfba50883e7b0
2,841
py
Python
deepdata/mirror.py
killf/deepdata
4aea89265be6ad6b9a8aa0d5ad1487ac687a62c9
[ "Apache-2.0" ]
null
null
null
deepdata/mirror.py
killf/deepdata
4aea89265be6ad6b9a8aa0d5ad1487ac687a62c9
[ "Apache-2.0" ]
null
null
null
deepdata/mirror.py
killf/deepdata
4aea89265be6ad6b9a8aa0d5ad1487ac687a62c9
[ "Apache-2.0" ]
null
null
null
import os from os.path import join import deepdata __all__ = [] BASE_PATH = os.environ.get('DEEPDATA_MIRROR', 'http://pytorch_mirror.killf.info') DATA_PATH = join(BASE_PATH, 'torchvision', 'mnist') deepdata.mnist.MNIST.resources = [ (join(DATA_PATH, 'train-images-idx3-ubyte.gz'), "f68b3c2dcbeaaa9fbdd348bbdeb948...
51.654545
105
0.739176
8cbad2a49c7e207819ddbbf52aeb71b65b886297
9,753
py
Python
make_fandom_data.py
Nellius/FanFiction-FandomData
da0f0d18c0dac1f35ba736d00f96b3e17b2dfff9
[ "MIT" ]
1
2019-09-19T01:24:05.000Z
2019-09-19T01:24:05.000Z
make_fandom_data.py
Nellius/FanFiction-FandomData
da0f0d18c0dac1f35ba736d00f96b3e17b2dfff9
[ "MIT" ]
null
null
null
make_fandom_data.py
Nellius/FanFiction-FandomData
da0f0d18c0dac1f35ba736d00f96b3e17b2dfff9
[ "MIT" ]
null
null
null
"""Scrape fandom data from Fanfiction.net and write JSON files.""" # -*- coding: utf-8 -*- import sys import time import re import os import json from datetime import datetime, timezone from functools import reduce from bs4 import BeautifulSoup import undetected_chromedriver as uc class SectionData: """Scrape se...
35.209386
96
0.574285
2d4b74bfd7c3612f473ad08e6a089fb68494c2a3
4,120
py
Python
aiida_optimade/mappers/structures.py
CasperWA/aiida-optimade
9516e1521859efb9962f34841bc82d4e583dda38
[ "MIT" ]
null
null
null
aiida_optimade/mappers/structures.py
CasperWA/aiida-optimade
9516e1521859efb9962f34841bc82d4e583dda38
[ "MIT" ]
2
2020-03-09T14:59:48.000Z
2020-03-09T15:00:20.000Z
aiida_optimade/mappers/structures.py
CasperWA/aiida-optimade
9516e1521859efb9962f34841bc82d4e583dda38
[ "MIT" ]
null
null
null
from optimade.models import StructureResourceAttributes from aiida_optimade.translators import StructureDataTranslator from .entries import ResourceMapper __all__ = ("StructureMapper",) class StructureMapper(ResourceMapper): """Map 'structure' resources from OPTiMaDe to AiiDA""" ENDPOINT = "structures" ...
35.517241
100
0.601214
33fd6f7433872acafbdaa811da4a9e0c21f236d0
8,766
py
Python
chapter_01/deep_q_learning.py
linklab/link_rl_book_codes
b272b46d5ecd2802f34648440ff53641c68cbbf0
[ "MIT" ]
null
null
null
chapter_01/deep_q_learning.py
linklab/link_rl_book_codes
b272b46d5ecd2802f34648440ff53641c68cbbf0
[ "MIT" ]
7
2020-11-13T18:57:32.000Z
2022-02-10T01:52:44.000Z
chapter_01/deep_q_learning.py
linklab/link_rl_book_codes
b272b46d5ecd2802f34648440ff53641c68cbbf0
[ "MIT" ]
1
2021-09-07T12:41:33.000Z
2021-09-07T12:41:33.000Z
# https://www.deeplearningwizard.com/deep_learning/deep_reinforcement_learning_pytorch/dynamic_programming_frozenlake/ # -*- coding: utf-8 -*- import time import gym import numpy as np import matplotlib.pyplot as plt import random import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as...
32.227941
118
0.606206
dfbbe226e5764b136040f65428623511e1877800
648
py
Python
app_sys/migrations/0001_initial.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
app_sys/migrations/0001_initial.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
app_sys/migrations/0001_initial.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.1 on 2018-12-27 07:43 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='EnvSofeware', fields=[ ('id', models.AutoFi...
27
114
0.589506
0506849b67adadd8b0f003adca5ec9ca79907b5a
20,275
py
Python
src/my_package/todelete/functions/functions_pytorch0.2/FilterInterpolationLayer.py
laomao0/AIM_DAIN
8322569498d675d3b2c1f35475c1299cad580bde
[ "MIT" ]
3
2020-05-08T20:45:57.000Z
2021-01-18T11:32:38.000Z
src/my_package/todelete/functions/functions_pytorch0.2/FilterInterpolationLayer.py
laomao0/AIM_DAIN
8322569498d675d3b2c1f35475c1299cad580bde
[ "MIT" ]
null
null
null
src/my_package/todelete/functions/functions_pytorch0.2/FilterInterpolationLayer.py
laomao0/AIM_DAIN
8322569498d675d3b2c1f35475c1299cad580bde
[ "MIT" ]
null
null
null
# this is for wrapping the customized layer import torch from torch.autograd import Function import _ext.my_lib as my_lib #Please check how the STN FUNCTION is written : #https://github.com/fxia22/stn.pytorch/blob/master/script/functions/gridgen.py #https://github.com/fxia22/stn.pytorch/blob/master/script/functions/st...
38.254717
148
0.56656
75913b8e7103233097e3bfbbe5ffc4e83c2085d4
3,521
py
Python
imix/models/vqa_models/vilbert/task_utils.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
imix/models/vqa_models/vilbert/task_utils.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
imix/models/vqa_models/vilbert/task_utils.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import torch from torch.utils.data import Dataset from transformers.tokenization_bert import BertTokenizer from .datasets impor...
37.860215
114
0.654928
c3fca418cbf0abd11fc043409da6aff123a9ac45
3,105
py
Python
original/BIOMD0000000633/validation.py
sys-bio/temp-biomodels
596eebb590d72e74419773f4e9b829a62d7fff9a
[ "CC0-1.0" ]
null
null
null
original/BIOMD0000000633/validation.py
sys-bio/temp-biomodels
596eebb590d72e74419773f4e9b829a62d7fff9a
[ "CC0-1.0" ]
5
2022-03-30T21:33:45.000Z
2022-03-31T20:08:15.000Z
original/BIOMD0000000633/validation.py
sys-bio/temp-biomodels
596eebb590d72e74419773f4e9b829a62d7fff9a
[ "CC0-1.0" ]
null
null
null
import matplotlib.pyplot as plt, numpy as np from SloppyCell.ReactionNetworks import * # Corresponds to fed liver net = IO.from_SBML_file('MODEL1603030000_original.xml') normal = net.copy('normal') fasted = net.copy('fasted') adjustments_normal = {'vmax_fbp1':1.00, 'vmax_fbp2':0.66, 'v0_gk':0.48, ...
38.333333
86
0.663446
7f41b0a803b1b054f8ac7effac4006914ffa79f8
773,763
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/models/_models.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/models/_models.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/models/_models.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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 ...
41.863496
540
0.671835
eecbf9b205495bd8e42f4a34c3cdfbc0a1e502bd
18,978
py
Python
src/satori/ars/model.py
satoriproject/satori-problems
8032725dad5d35b909029e1005b972608bc4b732
[ "MIT" ]
null
null
null
src/satori/ars/model.py
satoriproject/satori-problems
8032725dad5d35b909029e1005b972608bc4b732
[ "MIT" ]
null
null
null
src/satori/ars/model.py
satoriproject/satori-problems
8032725dad5d35b909029e1005b972608bc4b732
[ "MIT" ]
null
null
null
# vim:ts=4:sts=4:sw=4:expandtab """An in-memory model for an exported service. """ import six from datetime import datetime from time import mktime from types import FunctionType from satori.objects import Argument, DispatchOn NoneType = type(None) class ArsElement(object): """Abstract...
31.63
166
0.646117
99c4e9fdfd6ab8a8a17dcd6f17a8a2dcfc9520c9
15,612
py
Python
pysnmp-with-texts/SONUS-TC.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/SONUS-TC.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/SONUS-TC.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 SONUS-TC (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SONUS-TC # Produced by pysmi-0.3.4 at Wed May 1 15:09:32 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
83.486631
1,047
0.710735
a45240a5828aca8da6cbc334e818fc9914b61ea0
5,334
py
Python
src/lib/datasets/dataset/coco.py
ThanhDinhDat/center_net_points
7747dfd6cf0c2ac4c54f3f121106346924e20e37
[ "MIT" ]
null
null
null
src/lib/datasets/dataset/coco.py
ThanhDinhDat/center_net_points
7747dfd6cf0c2ac4c54f3f121106346924e20e37
[ "MIT" ]
null
null
null
src/lib/datasets/dataset/coco.py
ThanhDinhDat/center_net_points
7747dfd6cf0c2ac4c54f3f121106346924e20e37
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pycocotools.coco as coco from pycocotools.cocoeval import COCOeval import numpy as np import json import os import torch.utils.data as data class COCO(data.Dataset): num_classes = 80 default_resolu...
39.80597
80
0.584927
7bbc7955d75aedc7027b7738eb3bc05cec8c1465
1,270
py
Python
run.py
dogoncouch/dhcptranslate
ed0387c60da14bf6bf5fee79270affbea909db92
[ "MIT" ]
null
null
null
run.py
dogoncouch/dhcptranslate
ed0387c60da14bf6bf5fee79270affbea909db92
[ "MIT" ]
null
null
null
run.py
dogoncouch/dhcptranslate
ed0387c60da14bf6bf5fee79270affbea909db92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 Dan Persons <dogoncouch@dogoncouch.net> # # 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...
43.793103
80
0.779528
219c81861a04a4aebb55fa03808752301c9f728c
5,239
py
Python
google/ads/google_ads/v6/proto/errors/bidding_strategy_error_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v6/proto/errors/bidding_strategy_error_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/errors/bidding_strategy_error_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v6/proto/errors/bidding_strategy_error.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from...
43.297521
890
0.796908
5303810fcc40728aed2d5e8004b6a19a7ade75fd
4,333
py
Python
contrib/seeds/generate-seeds.py
devronkim/kumsl
a70f068020f977ac2c9b55e121593e5631a3abc4
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
devronkim/kumsl
a70f068020f977ac2c9b55e121593e5631a3abc4
[ "MIT" ]
null
null
null
contrib/seeds/generate-seeds.py
devronkim/kumsl
a70f068020f977ac2c9b55e121593e5631a3abc4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the dir...
31.172662
98
0.578814
aef78cc82e5e411ffc72a597cb23dad86b12c247
1,128
py
Python
manage.py
nmaekawa/hxmirador
c5e364a92c3631126a7fd9335af506270f52fe68
[ "BSD-3-Clause" ]
null
null
null
manage.py
nmaekawa/hxmirador
c5e364a92c3631126a7fd9335af506270f52fe68
[ "BSD-3-Clause" ]
null
null
null
manage.py
nmaekawa/hxmirador
c5e364a92c3631126a7fd9335af506270f52fe68
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys from dotenv import load_dotenv if __name__ == "__main__": # if dotenv file, load it dotenv_path = os.environ.get("HXMIRADOR_DOTENV_PATH", None) if dotenv_path: load_dotenv(dotenv_path) # define settings if not in environment, default is "dev" if ...
33.176471
81
0.658688
327a37a67a58b314caa95c02379bd85e44d7216f
722
py
Python
src/api/v1/villains/serializers.py
reiniervdwindt/power-ranger-api
13ce639a7f5e9d4b106ce5f094c076db0aad398e
[ "MIT" ]
null
null
null
src/api/v1/villains/serializers.py
reiniervdwindt/power-ranger-api
13ce639a7f5e9d4b106ce5f094c076db0aad398e
[ "MIT" ]
null
null
null
src/api/v1/villains/serializers.py
reiniervdwindt/power-ranger-api
13ce639a7f5e9d4b106ce5f094c076db0aad398e
[ "MIT" ]
null
null
null
from rest_framework import serializers from series.models import Series from villains.models import Villain class VillainSeriesSerializer(serializers.ModelSerializer): name = serializers.CharField() class Meta(object): fields = ('id', 'name',) model = Series class VillainDetailSerializer(s...
26.740741
88
0.688366
a80633daca594c22ec7816b28ccb468e5fa2e1de
174
py
Python
configs/train_classifier/r50_nih/r50_nih_cbfocal_50e.py
CAMP-eXplain-AI/imba-explain
e41b4ca5de63955cb0e925aad9599f38c5a3e973
[ "MIT" ]
null
null
null
configs/train_classifier/r50_nih/r50_nih_cbfocal_50e.py
CAMP-eXplain-AI/imba-explain
e41b4ca5de63955cb0e925aad9599f38c5a3e973
[ "MIT" ]
null
null
null
configs/train_classifier/r50_nih/r50_nih_cbfocal_50e.py
CAMP-eXplain-AI/imba-explain
e41b4ca5de63955cb0e925aad9599f38c5a3e973
[ "MIT" ]
null
null
null
_base_ = [ '../../_base_/classifiers/resnet50.py', '../../_base_/datasets/nih_class_dataset.py', '../../_base_/losses/cb_focal.py', '../../_base_/schedules/50e.py' ]
34.8
89
0.62069
0d82466edda8a90865c6d189e8dfd682779c1300
661
py
Python
contrib/performance/simanalysis/__init__.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
462
2016-08-14T17:43:24.000Z
2022-03-17T07:38:16.000Z
contrib/performance/simanalysis/__init__.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
72
2016-09-01T23:19:35.000Z
2020-02-05T02:09:26.000Z
contrib/performance/simanalysis/__init__.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
171
2016-08-16T03:50:30.000Z
2022-03-26T11:49:55.000Z
## # Copyright (c) 2015-2017 Apple 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 l...
33.05
74
0.750378
79495bce3c41b8e34fdaa67622cac6da4443a55f
211
py
Python
Recursion/CodingNinjas/15_replace_pi.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Recursion/CodingNinjas/15_replace_pi.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Recursion/CodingNinjas/15_replace_pi.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
def replacePi(s): if len(s)==1 or len(s)==0: return s if s.startswith("pi"): return "3.14" + replacePi(s[2:]) else: return s[0]+ replacePi(s[1:]) print(replacePi("pippi"))
17.583333
40
0.526066
99a67b669ed2b13f52104b295d264a4c8a98e4fd
152
py
Python
dian/photo/admin.py
deggs7/dian-server
7157831b50cb246a36fc7cd971e346e21747aafc
[ "MIT" ]
null
null
null
dian/photo/admin.py
deggs7/dian-server
7157831b50cb246a36fc7cd971e346e21747aafc
[ "MIT" ]
3
2016-10-04T09:57:44.000Z
2016-10-04T09:58:22.000Z
dian/photo/admin.py
diankuai/dian-server
7157831b50cb246a36fc7cd971e346e21747aafc
[ "MIT" ]
null
null
null
#! -*- encoding:utf-8 -*- from django.contrib import admin from photo.models import Photo, Tag admin.site.register(Photo) admin.site.register(Tag)
13.818182
35
0.730263
0901566ed052a56841b7cbfe527ab060bc0d62be
5,949
py
Python
autotimer/src/AutoTimerPreview.py
TwolDE2/enigma2-plugins
06685a5ce6a65a8724d3b32c8f7906714650ca2c
[ "OLDAP-2.3" ]
30
2015-05-08T22:10:00.000Z
2022-03-13T22:09:31.000Z
autotimer/src/AutoTimerPreview.py
TwolDE2/enigma2-plugins
06685a5ce6a65a8724d3b32c8f7906714650ca2c
[ "OLDAP-2.3" ]
124
2015-04-27T21:30:48.000Z
2022-03-29T10:21:39.000Z
autotimer/src/AutoTimerPreview.py
TwolDE2/enigma2-plugins
06685a5ce6a65a8724d3b32c8f7906714650ca2c
[ "OLDAP-2.3" ]
193
2015-01-10T09:21:26.000Z
2022-03-21T08:19:33.000Z
# -*- coding: UTF-8 -*- from __future__ import absolute_import # for localized messages from . import _, removeBad import six # GUI (Screens) from Screens.Screen import Screen # GUI (Components) from Components.ActionMap import ActionMap from Components.Sources.List import List from Components.Sources.StaticText impo...
42.191489
224
0.680114
6ee4e441af4f665f9cbac2bb257f74763ad52e0f
800
py
Python
problems/first_unique_character.py
smartdolphin/recommandation-tutorial
3bfa8f91a6d2d064db42dfb61c3640e1775e4c31
[ "MIT" ]
1
2018-10-14T14:19:05.000Z
2018-10-14T14:19:05.000Z
problems/first_unique_character.py
smartdolphin/recommandation-tutorial
3bfa8f91a6d2d064db42dfb61c3640e1775e4c31
[ "MIT" ]
null
null
null
problems/first_unique_character.py
smartdolphin/recommandation-tutorial
3bfa8f91a6d2d064db42dfb61c3640e1775e4c31
[ "MIT" ]
null
null
null
# 387. First Unique Character in a String # https://leetcode.com/problems/first-unique-character-in-a-string import unittest class Solution: def firstUniqChar(self, s): """ :type s: str :rtype: int """ if len(s) == 0: return -1 dic = {} for c in...
21.621622
66
0.52
1eaeebc90cfcb6754cf3501550795b566835f416
6,282
py
Python
python3-virtualenv/Lib/python3.6/site-packages/mako/filters.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
null
null
null
python3-virtualenv/Lib/python3.6/site-packages/mako/filters.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
null
null
null
python3-virtualenv/Lib/python3.6/site-packages/mako/filters.py
LindaNayeli104/mlh-orientation-hackathon-project
d86b58f76721a9d5f3374399bfc6d3b1445d16ca
[ "MIT" ]
1
2021-06-20T19:28:37.000Z
2021-06-20T19:28:37.000Z
# mako/filters.py # Copyright 2006-2020 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php import codecs import re from mako import compat from mako.compat import codepoint2name f...
28.554545
78
0.588029
ee64b66a64618f4f6aa5d4ea20300b7fa809c627
11,045
py
Python
salt/modules/mac_user.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/modules/mac_user.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/mac_user.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Manage users on Mac OS 10.7+ ''' # Import python libs try: import pwd except ImportError: pass import logging import random import string import time # Import salt libs import salt.utils from salt.exceptions import CommandExecutionError, SaltInvocationError from salt._compat import...
25.988235
94
0.60679
04dfd36d4165ab13c9964de81a3607e4d9aeb25e
925
py
Python
superai/data_program/router/router.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
1
2020-12-03T18:18:16.000Z
2020-12-03T18:18:16.000Z
superai/data_program/router/router.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
13
2021-02-22T18:27:58.000Z
2022-02-10T08:14:10.000Z
superai/data_program/router/router.py
mysuperai/superai-sdk
796c411c6ab69209600bf727e8fd08c20f4d67b1
[ "Apache-2.0" ]
1
2021-04-27T12:38:47.000Z
2021-04-27T12:38:47.000Z
import os from abc import ABC, abstractmethod from typing import Dict, List from typing import TYPE_CHECKING if TYPE_CHECKING: from superai.data_program import DataProgram from superai import Client from ..workflow import Workflow from superai.log import logger log = logger.get_logger(__name__) class Router(A...
21.511628
73
0.621622
725bf7ec9da863aa4067d487afd073d70a1892d5
306
py
Python
Hackerearth Set/TheBestInternetBrowser.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
2
2019-02-26T14:06:53.000Z
2019-02-27T17:13:01.000Z
Hackerearth Set/TheBestInternetBrowser.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
null
null
null
Hackerearth Set/TheBestInternetBrowser.py
Siddharth2016/PYTHON3_prog
9dfa258d87f5b00779d39d9de9a49c1c6cea06be
[ "MIT" ]
2
2017-12-26T07:59:57.000Z
2018-06-24T03:35:05.000Z
# THE BEST INTERNET BROWSER for _ in range(int(input())): st = str(input()) countvowel = st.count('a') + st.count('e') + st.count('i') + st.count('o') + st.count('u') - 1 totallen = len(st) urllen = totallen - 4 - countvowel res = str(urllen)+"/"+str(totallen) print(res)
30.6
99
0.558824
14f9932f3fdd47ec6a18d374a4c43f9dec2e5bb0
3,628
py
Python
datasets/cifar10/cifar10.py
TheVinhLuong102/HuggingFace-DataSets
e42e15f92c1033e5df9348f6b6c0d441489aa187
[ "Apache-2.0" ]
10,608
2020-09-10T15:47:50.000Z
2022-03-31T22:51:47.000Z
datasets/cifar10/cifar10.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
2,396
2020-09-10T14:55:31.000Z
2022-03-31T19:41:04.000Z
datasets/cifar10/cifar10.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
1,530
2020-09-10T21:43:10.000Z
2022-03-31T01:59:12.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets 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/LI...
29.737705
115
0.600882
49b2a2e0885d0398c37b4600126c15e7e9ec6286
113
py
Python
Unit1/StarDraw.py
yuhao1998/PythonStudy
fa678f0352673a6934b8f5b1689777af531f3675
[ "Apache-2.0" ]
null
null
null
Unit1/StarDraw.py
yuhao1998/PythonStudy
fa678f0352673a6934b8f5b1689777af531f3675
[ "Apache-2.0" ]
null
null
null
Unit1/StarDraw.py
yuhao1998/PythonStudy
fa678f0352673a6934b8f5b1689777af531f3675
[ "Apache-2.0" ]
null
null
null
from turtle import * color('red','red') begin_fill() for i in range(5): fd(200) rt(144) end_fill() done()
14.125
20
0.628319
5d6b00b7e4cec8a3028f1eacf3e2c7fa79452a77
69,527
py
Python
tests/common.py
xbcnn/emscripten
4cf36b6df367326e4d54ab6004466efe7ed3f265
[ "MIT" ]
null
null
null
tests/common.py
xbcnn/emscripten
4cf36b6df367326e4d54ab6004466efe7ed3f265
[ "MIT" ]
null
null
null
tests/common.py
xbcnn/emscripten
4cf36b6df367326e4d54ab6004466efe7ed3f265
[ "MIT" ]
null
null
null
# Copyright 2021 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. from enum import Enum from functools import wraps from pathlib import...
38.013669
205
0.649129
4e2d67e3d315abd4c0cab5613b38c6e46b42b91a
6,945
py
Python
qcodes/instrument/ip.py
aaroncslau/Qcodes
ba1920198614e0923fbc046efcec2effb36db8f2
[ "MIT" ]
2
2019-02-14T00:07:06.000Z
2021-03-30T03:38:06.000Z
qcodes/instrument/ip.py
qdev-dk/Qcodes
f587f0c4dd74271b3b9156167fbff3dceb2d185d
[ "MIT" ]
22
2017-02-08T08:37:23.000Z
2017-11-24T14:18:20.000Z
qcodes/instrument/ip.py
aaroncslau/Qcodes
ba1920198614e0923fbc046efcec2effb36db8f2
[ "MIT" ]
6
2017-03-31T21:01:08.000Z
2019-08-20T09:25:22.000Z
"""Ethernet instrument driver class based on sockets.""" import socket import logging from .base import Instrument log = logging.getLogger(__name__) class IPInstrument(Instrument): r""" Bare socket ethernet instrument implementation. Args: name (str): What this instrument is called locally. ...
29.553191
90
0.59856
c914079e0a8d97bedba7283f07874a1f539f77a4
4,599
py
Python
data_structures/binary_tree/non_recursive_segment_tree.py
NavpreetDevpuri/Python
7ef5ae66d777e8ed702993c6aa9270e0669cb0c6
[ "MIT" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
data_structures/binary_tree/non_recursive_segment_tree.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
279
2020-02-12T20:51:09.000Z
2021-07-20T11:25:19.000Z
data_structures/binary_tree/non_recursive_segment_tree.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
""" A non-recursive Segment Tree implementation with range query and single element update, works virtually with any list of the same type of elements with a "commutative" combiner. Explanation: https://www.geeksforgeeks.org/iterative-segment-tree-range-minimum-query/ https://www.geeksforgeeks.org/segment-tree-efficie...
28.924528
88
0.499674
ac734533ba44864e72f4305dceb211fc88708a98
46,394
py
Python
_resource/python/ops/gen_io_ops.py
amlyj/tensorflowStudy
1e3a4b15a57d53e746fd730af540da4be471c70b
[ "MIT" ]
1
2021-04-08T17:05:42.000Z
2021-04-08T17:05:42.000Z
_resource/python/ops/gen_io_ops.py
amlyj/tensorflowStudy
1e3a4b15a57d53e746fd730af540da4be471c70b
[ "MIT" ]
3
2022-02-13T22:40:04.000Z
2022-02-27T11:06:59.000Z
_resource/python/ops/gen_io_ops.py
amlyj/tensorflowStudy
1e3a4b15a57d53e746fd730af540da4be471c70b
[ "MIT" ]
1
2021-05-20T00:39:38.000Z
2021-05-20T00:39:38.000Z
"""Python wrappers around Brain. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections from google.protobuf import text_format as _text_format from tensorflow.core.framework import op_def_pb2 as _op_def_pb2 # Needed to trigger the call to _set_call_cpp_shape_fn. from tensorflow.python...
26.556382
82
0.652369
828d322e4d383d57bb84eddf5c81364b055ae194
8,030
py
Python
lib/calistra_lib/storage/json_serializer.py
igorxxl8/Calistra
ced32a53f42a8d7a2309a1eb15acef42418a3ecb
[ "MIT" ]
null
null
null
lib/calistra_lib/storage/json_serializer.py
igorxxl8/Calistra
ced32a53f42a8d7a2309a1eb15acef42418a3ecb
[ "MIT" ]
null
null
null
lib/calistra_lib/storage/json_serializer.py
igorxxl8/Calistra
ced32a53f42a8d7a2309a1eb15acef42418a3ecb
[ "MIT" ]
null
null
null
import json def concat(*args): return ''.join(args) class Serializable: """ This class using as indicator for models and shows that it can serialize """ def __iter__(self): pass def __getitem__(self): pass class JsonDatabase: """ This class describe mechanism which...
30.766284
81
0.527397
aa13a5a56cb1e50e75472c74f8aecebb31b47985
2,851
bzl
Python
apple/internal/resource_rules/apple_resource_group.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
313
2017-03-29T21:47:08.000Z
2022-03-29T03:09:50.000Z
apple/internal/resource_rules/apple_resource_group.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
786
2017-03-30T16:15:59.000Z
2022-03-31T19:58:05.000Z
apple/internal/resource_rules/apple_resource_group.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
172
2017-04-24T01:55:24.000Z
2022-03-25T19:23:31.000Z
# Copyright 2019 The Bazel 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 la...
45.983871
100
0.737987
b2b027aa8d29e2d5cacaebdcdabfd726301e1e75
246
py
Python
pos/manage.py
NonnEmilia/OpenGenfri
7061957fb13ef824763922e1891cb72f7d51bb0f
[ "MIT" ]
null
null
null
pos/manage.py
NonnEmilia/OpenGenfri
7061957fb13ef824763922e1891cb72f7d51bb0f
[ "MIT" ]
null
null
null
pos/manage.py
NonnEmilia/OpenGenfri
7061957fb13ef824763922e1891cb72f7d51bb0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pos.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.363636
67
0.768293
a9d4a04f0330b980bf19773fe5490c5b61054e05
4,770
py
Python
learned_optimization/baselines/normalizers.py
google/learned_optimization
1c9ee0159c97815fc6afe79a76224fb28b199053
[ "Apache-2.0" ]
70
2021-12-16T07:12:11.000Z
2022-03-31T19:13:36.000Z
learned_optimization/baselines/normalizers.py
google/learned_optimization
1c9ee0159c97815fc6afe79a76224fb28b199053
[ "Apache-2.0" ]
10
2021-12-29T10:03:37.000Z
2022-03-22T15:59:55.000Z
learned_optimization/baselines/normalizers.py
google/learned_optimization
1c9ee0159c97815fc6afe79a76224fb28b199053
[ "Apache-2.0" ]
5
2021-12-16T04:52:35.000Z
2022-03-22T03:45:31.000Z
# coding=utf-8 # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
30.189873
78
0.692453
c6b6f6bc872ac993a5831509002ce3e6c0fd552b
9,438
py
Python
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/ios/tests/unit/modules/network/ios/test_ios_bgp_global.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/ios/tests/unit/modules/network/ios/test_ios_bgp_global.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/ios/tests/unit/modules/network/ios/test_ios_bgp_global.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
# # (c) 2019, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible_collections.cisco.ios.tests.unit.compat.mock import patch from ansible_collections.ci...
38.522449
120
0.515787
5c0be0518026c4b26be526f8fed5656ab73446d0
3,133
py
Python
tests/functions_tests/test_mellowmax.py
cnheider/chainerrl
018a29132d77e5af0f92161250c72aba10c6ce29
[ "MIT" ]
923
2017-06-01T08:27:42.000Z
2022-03-24T02:17:04.000Z
tests/functions_tests/test_mellowmax.py
hardmaru/chainerrl
018a29132d77e5af0f92161250c72aba10c6ce29
[ "MIT" ]
374
2017-06-02T02:07:50.000Z
2021-06-29T22:05:38.000Z
tests/functions_tests/test_mellowmax.py
hardmaru/chainerrl
018a29132d77e5af0f92161250c72aba10c6ce29
[ "MIT" ]
253
2017-06-04T10:31:50.000Z
2022-03-19T15:20:51.000Z
import unittest from chainer import cuda from chainer import testing from chainer.testing import attr from chainer.testing import condition import numpy from chainerrl.functions.mellowmax import maximum_entropy_mellowmax from chainerrl.functions.mellowmax import mellowmax @testing.parameterize(*testing.product({ ...
30.715686
78
0.620492
d2921b5febc711ddc8cc22ac82a74f680b14734d
13,486
py
Python
safeopt/utilities.py
vishalbelsare/SafeOpt
06f4579779af17d6a28199ab69c379f0d18bc5f4
[ "MIT" ]
107
2015-09-04T15:12:14.000Z
2022-03-18T09:03:55.000Z
gosafeopt/utilities.py
Data-Science-in-Mechanical-Engineering/Contextual-GoSafe
c7d05a866cec0993609838ac2c5adc14ac3754ab
[ "MIT" ]
5
2019-12-25T02:48:51.000Z
2021-11-26T10:52:44.000Z
gosafeopt/utilities.py
Data-Science-in-Mechanical-Engineering/Contextual-GoSafe
c7d05a866cec0993609838ac2c5adc14ac3754ab
[ "MIT" ]
48
2015-09-04T00:08:01.000Z
2022-01-24T14:15:23.000Z
""" Utilities for the safeopt library (e.g., sampling). Author: Felix Berkenkamp (befelix at inf dot ethz dot ch) """ from __future__ import print_function, absolute_import, division from collections import Sequence # isinstance(...,Sequence) import numpy as np import scipy as sp import matplotlib.pyplot ...
35.303665
79
0.548643
f77edd20e09dfb45eb941f5e5a818505aeade4ab
7,341
py
Python
scripts/build-doc.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
16
2018-12-14T16:12:40.000Z
2022-03-26T06:59:33.000Z
scripts/build-doc.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
37
2019-01-05T12:01:34.000Z
2021-11-03T11:47:32.000Z
scripts/build-doc.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
7
2019-07-28T08:32:13.000Z
2022-03-13T06:32:20.000Z
#!/usr/bin/env python3 import sys import os import argparse import subprocess from rospkg import RosPack EXCLUDED_PACKAGES = [ 'wolves_image_provider', # not our package and we wil deprecate it soon anyways 'bitbots_animation_server', # startup on import 'bitbots_dynamixel_debug', # startup on im...
35.293269
120
0.620896
c15c9b47036632b3f4d6691a7cf6428f704e15a5
12,967
py
Python
tests/models/test_security.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
4
2020-11-09T02:23:51.000Z
2021-01-24T00:45:21.000Z
tests/models/test_security.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
14
2020-11-09T02:31:34.000Z
2021-12-22T10:15:47.000Z
tests/models/test_security.py
evimacs/omicron
abe77fd25a93cf3d0d17661ae957373474724535
[ "MIT" ]
2
2021-01-24T00:45:25.000Z
2021-12-24T06:18:37.000Z
import datetime import logging import unittest from unittest import mock import arrow import numpy as np import omicron from omicron import cache from omicron.core.timeframe import tf from omicron.core.types import FrameType, SecurityType from omicron.models.securities import Securities from omicron.models.security i...
33.248718
87
0.534896
33d0f0db12e46418fc2e9dffd1d0868e30758acf
1,991
py
Python
tests/unit/test_copr_helper.py
stefwalter/packit
d675018518ef200a06ea7636dd203100d872a772
[ "MIT" ]
81
2019-02-07T15:38:34.000Z
2020-07-16T06:33:02.000Z
tests/unit/test_copr_helper.py
stefwalter/packit
d675018518ef200a06ea7636dd203100d872a772
[ "MIT" ]
825
2019-02-07T15:08:16.000Z
2020-08-02T08:11:23.000Z
tests/unit/test_copr_helper.py
stefwalter/packit
d675018518ef200a06ea7636dd203100d872a772
[ "MIT" ]
51
2019-02-08T09:56:29.000Z
2020-06-17T15:34:00.000Z
import pytest from flexmock import flexmock import packit from packit.copr_helper import CoprHelper class TestCoprHelper: @pytest.mark.parametrize( # copr_client.mock_chroot_proxy.get_list() returns dictionary "get_list_keys, expected_return", [ pytest.param(["chroot1", "_chro...
35.553571
86
0.640382
2bd0267a7f141fa14c94384f48e0a4ca49792458
921
py
Python
pycalc/reference/main_window.py
lbreede/pyqt-cheatsheet
ca094108ed60f2f0c3ae3ba5c7b4b5e7a5c73861
[ "MIT" ]
null
null
null
pycalc/reference/main_window.py
lbreede/pyqt-cheatsheet
ca094108ed60f2f0c3ae3ba5c7b4b5e7a5c73861
[ "MIT" ]
null
null
null
pycalc/reference/main_window.py
lbreede/pyqt-cheatsheet
ca094108ed60f2f0c3ae3ba5c7b4b5e7a5c73861
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QLabel from PyQt5.QtWidgets import QMainWindow from PyQt5.QtWidgets import QStatusBar from PyQt5.QtWidgets import QToolBar class Window(QMainWindow): def __init__(self, parent=None): super().__init__(parent) self.setWindowTitle('QMai...
24.891892
57
0.7481
8422d8c0dbcb5f94d9a01e56b11562201eb4188d
8,196
py
Python
pypistats/cli.py
cclauss/pypistats
0230093b7b55b1ad5026256f6119a3fbedbe810e
[ "MIT" ]
null
null
null
pypistats/cli.py
cclauss/pypistats
0230093b7b55b1ad5026256f6119a3fbedbe810e
[ "MIT" ]
null
null
null
pypistats/cli.py
cclauss/pypistats
0230093b7b55b1ad5026256f6119a3fbedbe810e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 """ CLI with subcommands for pypistats """ import argparse from datetime import date, datetime from dateutil.relativedelta import relativedelta import pypistats cli = argparse.ArgumentParser() subparsers = cli.add_subparsers(dest="subcommand") def argument(*name_or_flags, *...
25.374613
88
0.591264
ed635d50d7511b2bd536ccb86ad98e6b4c33df41
733
py
Python
tingle/util.py
deathbeds/tingle
237fad78fbf2f727812e40d7dc4b4bdca44ae451
[ "MIT" ]
null
null
null
tingle/util.py
deathbeds/tingle
237fad78fbf2f727812e40d7dc4b4bdca44ae451
[ "MIT" ]
null
null
null
tingle/util.py
deathbeds/tingle
237fad78fbf2f727812e40d7dc4b4bdca44ae451
[ "MIT" ]
null
null
null
import contextlib def append_ast_transformers(shell, transformer): if any( x for x in shell.ast_transformers if isinstance(x, transformer) ): return shell.ast_transformers.append(transformer()) def remove_ast_transformers(shell, transformer): shell.ast_transformers = [ ...
20.942857
87
0.673943
6a6572cdd3cb2e00c140ca5b4db1980985dd8b73
1,044
py
Python
scrappyepfo/app.py
KB-perByte/KudosAssignment
aff0f9e91952220ddb926de7a366f5024b439beb
[ "Unlicense" ]
null
null
null
scrappyepfo/app.py
KB-perByte/KudosAssignment
aff0f9e91952220ddb926de7a366f5024b439beb
[ "Unlicense" ]
null
null
null
scrappyepfo/app.py
KB-perByte/KudosAssignment
aff0f9e91952220ddb926de7a366f5024b439beb
[ "Unlicense" ]
1
2021-04-11T07:59:01.000Z
2021-04-11T07:59:01.000Z
try: from scrappyepfo.data_scraper import get_comp_list, get_comp_list_mca except: from data_scraper import get_comp_list, get_comp_list_mca from fuzzywuzzy import process import pprint from fastapi import FastAPI app = FastAPI() @app.get("/epfo/{companyName}") async def readEpfo(companyName): '''api cal...
20.470588
73
0.666667
3c6454d5c56094144789df077c5f2f6684e21b4e
18,536
py
Python
sentinel.py
karttur/geoimagine02-postgresdb
9f1682e42b6a3d68b41b80a80b742d00aea80f1d
[ "BSD-3-Clause" ]
null
null
null
sentinel.py
karttur/geoimagine02-postgresdb
9f1682e42b6a3d68b41b80a80b742d00aea80f1d
[ "BSD-3-Clause" ]
null
null
null
sentinel.py
karttur/geoimagine02-postgresdb
9f1682e42b6a3d68b41b80a80b742d00aea80f1d
[ "BSD-3-Clause" ]
null
null
null
''' Created on 8 juni 2018 @author: thomasgumbricht ''' # Package application imports from geoimagine.postgresdb import PGsession from geoimagine.postgresdb.compositions import InsertCompDef, InsertCompProd, InsertLayer, SelectComp from geoimagine.support import Today class ManageSentinel(PGsession): ''' ...
51.20442
274
0.631636
06234792dbd19d49bed18234cae1df56af3d351a
778
py
Python
ctapipe/flow/algorithms/string_writer.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/flow/algorithms/string_writer.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/flow/algorithms/string_writer.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
from ctapipe.core import Component from traitlets import Unicode from time import sleep class StringWriter(Component): """`StringWriter` class represents a Stage or a Consumer for pipeline. It writes received objects to file """ filename = Unicode('/tmp/test.txt', help='output filename').tag( ...
28.814815
84
0.631105
5c440bd6d9fb2caa55918edcb3dc8e77f89558eb
781
py
Python
tests/sliding_window_throttler_test.py
berknology/api-throttler
5f0c5687db3687858f84e24e232b53286e6adfcf
[ "BSD-2-Clause" ]
1
2021-01-01T08:22:54.000Z
2021-01-01T08:22:54.000Z
tests/sliding_window_throttler_test.py
berknology/api-throttler
5f0c5687db3687858f84e24e232b53286e6adfcf
[ "BSD-2-Clause" ]
null
null
null
tests/sliding_window_throttler_test.py
berknology/api-throttler
5f0c5687db3687858f84e24e232b53286e6adfcf
[ "BSD-2-Clause" ]
null
null
null
import time from unittest import TestCase from api_throttler import SlidingWindowThrottler class TestSlidingWindowThrottler(TestCase): def setUp(self) -> None: self.throttler = SlidingWindowThrottler(2, 5) def test_continuous_calls(self): allowed_calls = 0 for i in range(5): ...
27.892857
67
0.610755
0c5a99c4f336233f2c68290fadd33937eac2d44d
20,246
py
Python
facebook_business/adobjects/adcreative.py
ioluwayo/facebook-python-business-sdk
c085e1efb0a0d06d6abdf4bc4c0e262f9b478ad9
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adcreative.py
ioluwayo/facebook-python-business-sdk
c085e1efb0a0d06d6abdf4bc4c0e262f9b478ad9
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adcreative.py
ioluwayo/facebook-python-business-sdk
c085e1efb0a0d06d6abdf4bc4c0e262f9b478ad9
[ "CNRI-Python" ]
null
null
null
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
38.711281
124
0.637311
6ca39a729998438d0eaac0fab26dfb22c9706d00
1,764
py
Python
4th-semester/aisd/lab/lista-4/ex-1-hash-table-chained-tests.py
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
4
2020-12-28T21:53:00.000Z
2022-03-22T19:24:47.000Z
4th-semester/aisd/lab/lista-4/ex-1-hash-table-chained-tests.py
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
3
2022-02-13T18:07:10.000Z
2022-02-13T18:16:07.000Z
4th-semester/aisd/lab/lista-4/ex-1-hash-table-chained-tests.py
jerry-sky/academic-notebook
be2d350289441b99168ea40412891bc65b9cb431
[ "Unlicense" ]
4
2020-12-28T16:05:35.000Z
2022-03-08T16:20:00.000Z
#!/usr/bin/env python3 from rbt import RBT from llist import LList from time import time from random import randint from sys import argv, exit if __name__ == "__main__": if len(argv) < 2: exit('usage ./ex-1-hash-table-chained-tests.py <items quantity>') # initialize both structures llist = LLis...
26.727273
77
0.646825
bb72f9435fdc29920b70ac72d5ae0238e0aa1869
1,351
py
Python
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
127
2017-02-28T17:34:14.000Z
2022-01-21T13:14:30.000Z
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
36
2018-06-07T21:34:13.000Z
2022-03-13T21:01:43.000Z
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
76
2017-01-02T14:15:07.000Z
2022-03-28T03:49:45.000Z
# -*- coding: utf-8 -*- import gevent from oandapyV20.endpoints.accounts import AccountDetails, AccountChanges class GAccountDetails(gevent.Greenlet): """Greenlet to handle account details/changes. Initially get the AccountDetails and then keep polling for account changes. In case of changes put tho...
32.95122
75
0.637306
52c6e2845176af3963ddcc61c67668a2d8a19e46
2,438
py
Python
psi_apps/rook_services/views.py
TwoRavens/PSI
fd5fdbfc84cba1a5916a0714ddd733b05ee779d2
[ "Apache-2.0" ]
4
2019-07-21T04:46:41.000Z
2021-05-27T13:29:50.000Z
psi_apps/rook_services/views.py
TwoRavens/PSI
fd5fdbfc84cba1a5916a0714ddd733b05ee779d2
[ "Apache-2.0" ]
37
2018-07-12T13:51:00.000Z
2019-02-07T20:32:50.000Z
psi_apps/rook_services/views.py
TwoRavens/PSI
fd5fdbfc84cba1a5916a0714ddd733b05ee779d2
[ "Apache-2.0" ]
2
2018-07-16T20:01:22.000Z
2018-12-06T22:53:55.000Z
import json import requests import urllib.parse from django.http import JsonResponse, HttpResponse, Http404 from django.contrib.auth.decorators import login_required #from psiproject.settings.local import ROOK_SVC_URL from django.conf import settings from django.views.decorators.csrf import csrf_exempt from psi_apps....
30.475
89
0.705086
fa784858361414f36cfc834ad315624191e5ffdb
169
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/Python-Practice-Problems-master/temp/prac6.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/Python-Practice-Problems-master/temp/prac6.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_RESOURCES/Python-Practice-Problems-master/temp/prac6.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# Problem 6 # Ask the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.)
56.333333
156
0.769231
47420dd54a987a8969c31df715f0dd577800c6b1
33,036
py
Python
model/unet.py
EuphoriaYan/zi2zi
74375b45d74dfcd17fc645d2baa2e2bb470e9eb1
[ "Apache-2.0" ]
null
null
null
model/unet.py
EuphoriaYan/zi2zi
74375b45d74dfcd17fc645d2baa2e2bb470e9eb1
[ "Apache-2.0" ]
null
null
null
model/unet.py
EuphoriaYan/zi2zi
74375b45d74dfcd17fc645d2baa2e2bb470e9eb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import import tensorflow.compat.v1 as tf import numpy as np import imageio import os import time from collections import namedtuple from .ops import conv2d, deconv2d, lrelu, fc, batch_norm, init_embedding, conditional_instanc...
54.78607
120
0.566079
1930d67ccfcb62ff59bd40238891829208e4dc61
4,816
py
Python
be-image/server/classifier/vgg16bn.py
IBM/geospatial-event-observations
6e9bd8759f8b66c841ce0afea1ddd173c668f293
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2022-02-24T06:53:56.000Z
2022-02-24T06:53:56.000Z
be-image/server/classifier/vgg16bn.py
IBM/geospatial-event-observations
6e9bd8759f8b66c841ce0afea1ddd173c668f293
[ "CC-BY-4.0", "BSD-3-Clause" ]
12
2021-03-02T01:45:03.000Z
2022-03-08T23:32:46.000Z
be-image/server/classifier/vgg16bn.py
IBM/geospatial-event-observations
6e9bd8759f8b66c841ce0afea1ddd173c668f293
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
# # Licensed Materials - Property of IBM # 6949-04J # © Copyright IBM Corp. 2020 All Rights Reserved # from __future__ import division, print_function import os, json from glob import glob import numpy as np from scipy import misc, ndimage from scipy.ndimage.interpolation import zoom from keras import backend as K fr...
33.915493
118
0.671304
8359fe231b670fc2762da0a09f0e12f8ce4722a0
2,694
py
Python
src/read/story/graph/Paragraph.py
cqpancoast/solaria
c2f60e1102e9ac1ea5350302653ce2b92e6e25c0
[ "MIT" ]
null
null
null
src/read/story/graph/Paragraph.py
cqpancoast/solaria
c2f60e1102e9ac1ea5350302653ce2b92e6e25c0
[ "MIT" ]
null
null
null
src/read/story/graph/Paragraph.py
cqpancoast/solaria
c2f60e1102e9ac1ea5350302653ce2b92e6e25c0
[ "MIT" ]
null
null
null
class Paragraph: """A Paragraph is a "position" in a GraphStory that a Reader can be in. Paragraphs display prompts upon reader entry depending upon the Reader state. A Paragraph has zero or more directed edges, called Phrases, that direct to a destination Paragraph. This new Paragraph can be...
42.09375
78
0.711952
0272df4a82f4f5a68d45743ddad7e1bf3055746e
227
py
Python
PR_BCI_team/Team_StarLab/DKHan/examples/giga_cnn/csv_plot.py
PatternRecognition/OpenBMI
d9291ddb81f4319fb3764d7192e0363939a62ee9
[ "MIT" ]
217
2015-11-02T11:10:29.000Z
2022-03-22T07:01:12.000Z
PR_BCI_team/Team_StarLab/DKHan/examples/giga_cnn/csv_plot.py
deep-bci-g/OpenBMI
75daf901b2dbe215852cbff243606dcfcd10f05c
[ "MIT" ]
24
2015-11-02T11:10:45.000Z
2021-09-08T11:10:33.000Z
PR_BCI_team/Team_StarLab/DKHan/examples/giga_cnn/csv_plot.py
deep-bci-g/OpenBMI
75daf901b2dbe215852cbff243606dcfcd10f05c
[ "MIT" ]
112
2016-01-22T01:45:44.000Z
2022-03-22T07:08:19.000Z
import pandas as pd df = pd.read_csv('C:\\Users\\dk\\Downloads\\run-Jun05_11-37-22_DESKTOP-NMLMMUUfold_3_g_0.7-tag-Eval_Acc.csv') print(df) from matplotlib import pyplot as plt plt.bar(df.Step , df['Value']) plt.show()
15.133333
109
0.722467
1fc586e126625de493530bd706bcb995aab4194a
725
py
Python
venv/lib/python3.9/site-packages/google/cloud/monitoring_v3/types/query_service.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
18
2020-09-19T17:52:47.000Z
2022-03-25T12:09:22.000Z
venv/lib/python3.9/site-packages/google/cloud/monitoring_v3/types/query_service.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
110
2020-02-05T15:26:47.000Z
2022-03-28T23:02:02.000Z
venv/lib/python3.9/site-packages/google/cloud/monitoring_v3/types/query_service.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
26
2020-02-08T00:05:46.000Z
2022-03-27T19:32:26.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.954545
74
0.747586
a81b7dfff3e1cbf0ca841ddaa31eb4169c38737a
6,621
py
Python
Lib/fontbakery/reporters/ghmarkdown.py
RosaWagner/fontbakery
e5b57a4938f0f25cb722cc18cacb4836657b1ff9
[ "Apache-2.0" ]
351
2015-01-12T09:27:03.000Z
2022-03-24T14:37:56.000Z
Lib/fontbakery/reporters/ghmarkdown.py
RosaWagner/fontbakery
e5b57a4938f0f25cb722cc18cacb4836657b1ff9
[ "Apache-2.0" ]
2,308
2015-01-07T10:49:14.000Z
2022-03-31T22:55:21.000Z
Lib/fontbakery/reporters/ghmarkdown.py
RosaWagner/fontbakery
e5b57a4938f0f25cb722cc18cacb4836657b1ff9
[ "Apache-2.0" ]
89
2015-03-02T17:31:04.000Z
2022-03-16T13:18:59.000Z
import os from fontbakery.reporters.serialize import SerializeReporter from fontbakery.checkrunner import Status from fontbakery import __version__ as version LOGLEVELS=["ERROR","FAIL","WARN","SKIP","INFO","PASS","DEBUG"] class GHMarkdownReporter(SerializeReporter): def __init__(self, loglevels, **kwd): ...
41.641509
107
0.488748
3a18658218131d86ba2e6de06fd67753fde4176c
1,660
py
Python
lte/gateway/python/magma/subscriberdb/crypto/gsm.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
84
2016-11-03T20:51:09.000Z
2018-09-13T04:36:18.000Z
lte/gateway/python/magma/subscriberdb/crypto/gsm.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
79
2016-11-10T06:30:58.000Z
2018-06-01T14:29:39.000Z
lte/gateway/python/magma/subscriberdb/crypto/gsm.py
119Vik/magma-1
107a7b374466a837fc0a49b283ba9d6ff1d702e3
[ "BSD-3-Clause" ]
37
2016-11-03T22:53:22.000Z
2018-09-07T15:32:16.000Z
""" Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. """ import abc from .utils imp...
28.62069
78
0.637952
2a537925387d65a9c3ff79b709714161cc05a378
9,919
py
Python
imcsdk/mometa/comm/CommSnmp.py
TetrationAnalytics/imcsdk
d86e47831f294dc9fa5e99b9a92abceac2502d76
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/comm/CommSnmp.py
TetrationAnalytics/imcsdk
d86e47831f294dc9fa5e99b9a92abceac2502d76
[ "Apache-2.0" ]
null
null
null
imcsdk/mometa/comm/CommSnmp.py
TetrationAnalytics/imcsdk
d86e47831f294dc9fa5e99b9a92abceac2502d76
[ "Apache-2.0" ]
2
2016-05-26T02:05:46.000Z
2017-09-13T05:13:25.000Z
"""This module contains the general information for CommSnmp ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class CommSnmpConsts: ADMIN_STATE_DISABLED = "disabled" ADMIN_STATE_ENABLED = "enabled" COM2_SEC_NONE = "N...
67.02027
235
0.605202
8654ea3c4e3ead13e4a753c03a0e4fca3f698c75
8,736
py
Python
libweasyl/libweasyl/test/test_text.py
kfkitsune/weasyl
7e63c6db98ed2debfadbc277509533f72ea078a5
[ "Apache-2.0" ]
111
2016-05-18T04:18:18.000Z
2021-11-03T02:05:19.000Z
libweasyl/libweasyl/test/test_text.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
1,103
2016-05-29T05:17:53.000Z
2022-03-31T18:12:40.000Z
libweasyl/libweasyl/test/test_text.py
kfkitsune/weasyl
7e63c6db98ed2debfadbc277509533f72ea078a5
[ "Apache-2.0" ]
47
2016-05-29T20:48:37.000Z
2021-11-12T09:40:40.000Z
# encoding: utf-8 from lxml.etree import LIBXML_VERSION import pytest from libweasyl.text import markdown, markdown_excerpt, markdown_link libxml_xfail = pytest.mark.xfail(LIBXML_VERSION < (2, 9), reason='libxml2 too old to preserve whitespace') user_linking_markdown_tests = [ ('<~spam>', '<a href="/~spam">spam...
46.716578
162
0.643658
acdb91b87c82150b117eee8f27304c79d86e78fa
83,744
py
Python
xrt/backends/raycing/materials.py
adinatan/xrt
75b884c0cba7e1aac15b30f2d0d803597328a208
[ "MIT" ]
null
null
null
xrt/backends/raycing/materials.py
adinatan/xrt
75b884c0cba7e1aac15b30f2d0d803597328a208
[ "MIT" ]
null
null
null
xrt/backends/raycing/materials.py
adinatan/xrt
75b884c0cba7e1aac15b30f2d0d803597328a208
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Materials --------- Module :mod:`~xrt.backends.raycing.materials` defines atomic and material properties related to x-ray scattering, diffraction and propagation: reflectivity, transmittivity, refractive index, absorption coefficient etc. .. autofunction:: read_atomic_data .. autoclass::...
40.378014
108
0.541519
3e0675eae4580b43bb6dedbe0b732ca983f0e7c6
1,541
py
Python
templogboss/myapp/migrations/0001_initial.py
Bossabossy/Templog
1d653f9a1c23d189940950bce808a3e26d618e15
[ "BSD-2-Clause" ]
null
null
null
templogboss/myapp/migrations/0001_initial.py
Bossabossy/Templog
1d653f9a1c23d189940950bce808a3e26d618e15
[ "BSD-2-Clause" ]
null
null
null
templogboss/myapp/migrations/0001_initial.py
Bossabossy/Templog
1d653f9a1c23d189940950bce808a3e26d618e15
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-19 04:29 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
35.022727
114
0.576898
bb47ffa2da441ef000bf149e60f6b3bcce0b1574
5,451
py
Python
python/ccxt/async/fybse.py
morgwn-shaw/bttb
a0e8dac53f233f747ad1c50c13a1d4b2d0ca14a5
[ "MIT" ]
3
2017-11-19T22:08:29.000Z
2018-02-21T11:14:41.000Z
python/ccxt/async/fybse.py
morgwn-shaw/bttb
a0e8dac53f233f747ad1c50c13a1d4b2d0ca14a5
[ "MIT" ]
null
null
null
python/ccxt/async/fybse.py
morgwn-shaw/bttb
a0e8dac53f233f747ad1c50c13a1d4b2d0ca14a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ccxt.async.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError class fybse (Exchange): def describe(self): return self.deep_extend(super(fybse, self).describe(), { 'id': 'fybse', 'name': 'FYB-SE', 'count...
34.283019
126
0.476059
ddbc6b17f3fe667db8e7d26b09ea439ec8106500
889
py
Python
warehouse/helpers.py
domenkozar/warehouse
2c26400268acc76bf6b27c22c0469415738e9d22
[ "Apache-2.0" ]
null
null
null
warehouse/helpers.py
domenkozar/warehouse
2c26400268acc76bf6b27c22c0469415738e9d22
[ "Apache-2.0" ]
null
null
null
warehouse/helpers.py
domenkozar/warehouse
2c26400268acc76bf6b27c22c0469415738e9d22
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
37.041667
74
0.76378
97e56a3a2c9fd2bf51c75f36d5b5185d0e8859b4
7,889
py
Python
tests/test_deepflatten.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
72
2016-09-12T03:01:02.000Z
2022-03-05T16:54:45.000Z
tests/test_deepflatten.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
127
2016-09-14T02:07:33.000Z
2022-03-19T13:17:32.000Z
tests/test_deepflatten.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
11
2017-02-22T20:40:37.000Z
2022-03-05T16:55:40.000Z
# Licensed under Apache License Version 2.0 - see LICENSE import collections import pickle import pytest from iteration_utilities import deepflatten import helper_funcs as _hf from helper_cls import T, toT def test_deepflatten_empty1(): assert list(deepflatten([])) == [] def test_deepflatten_attributes1(): ...
32.069106
101
0.608822
93b922f12b743218239d5fc33c2b69909778c190
1,348
py
Python
rail/creation/degradation/degrader.py
yanzastro/RAIL
588ad550b21bcd60a8c33243f720ee3729f6ab7e
[ "MIT" ]
null
null
null
rail/creation/degradation/degrader.py
yanzastro/RAIL
588ad550b21bcd60a8c33243f720ee3729f6ab7e
[ "MIT" ]
null
null
null
rail/creation/degradation/degrader.py
yanzastro/RAIL
588ad550b21bcd60a8c33243f720ee3729f6ab7e
[ "MIT" ]
null
null
null
""" Abstract base class defining a degrader The key feature is that the __call__ method takes a pandas DataFrame and a seed, and returns a pandas DataFrame, and wraps the run method """ import pandas as pd from rail.core.stage import RailStage from rail.core.data import PqHandle class Degrader(RailStage): """Ba...
29.304348
94
0.635015
5d99b4faf918fcee807753fb3c4f5598f6aa3152
6,625
py
Python
dynaconf/vendor/ruamel/yaml/dumper.py
rroden12/dynaconf
9495fdd2145dfc93a9af700c104f7841e52221b2
[ "MIT" ]
5
2020-10-01T00:43:32.000Z
2021-10-30T16:15:27.000Z
dynaconf/vendor/ruamel/yaml/dumper.py
rroden12/dynaconf
9495fdd2145dfc93a9af700c104f7841e52221b2
[ "MIT" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
dynaconf/vendor/ruamel/yaml/dumper.py
rroden12/dynaconf
9495fdd2145dfc93a9af700c104f7841e52221b2
[ "MIT" ]
6
2020-10-05T00:53:35.000Z
2022-02-23T20:18:47.000Z
# coding: utf-8 from __future__ import absolute_import from ruamel.yaml.emitter import Emitter from ruamel.yaml.serializer import Serializer from ruamel.yaml.representer import ( Representer, SafeRepresenter, BaseRepresenter, RoundTripRepresenter, ) from ruamel.yaml.resolver import Resolver, BaseResol...
29.842342
193
0.581585
96534abf0c5c34ac22cf5f5b0d60caa1123c716c
796
py
Python
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/sdk/devtestlabs/models/artifact_paged.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/sdk/devtestlabs/models/artifact_paged.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
2
2021-03-25T21:38:56.000Z
2021-11-15T17:46:45.000Z
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/sdk/devtestlabs/models/artifact_paged.py
Visual-Studio-China/azure-cli-int
48c7c7f371a0ecc4ebfd4dcfdc72764beddf5c31
[ "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. # -----------------------------------------------------...
33.166667
94
0.5