hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
13f3a6d9012ba4c4473a1ffb1f1db1418326ee1f
7,566
py
Python
src/autonomous/purepursuit.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
src/autonomous/purepursuit.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
src/autonomous/purepursuit.py
Sloomey/DeepSpace2019
dda035c0ac100209b03a2ff04d86df09c6de9a85
[ "MIT" ]
null
null
null
import math from constants import Constants from utils import vector2d from wpilib import SmartDashboard as Dash from autonomous import pursuitpoint class PurePursuit(): """An implementation of the Pure Pursuit path tracking algorithm.""" def __init__(self, path): self.path = path self.pursui...
50.10596
178
0.655432
7,414
0.97991
0
0
0
0
0
0
2,202
0.291039
13f4c5d6b839fc74a59e3720afa044833541c6ea
8,661
py
Python
esphome/voluptuous_schema.py
TheEggi/esphomeyaml
98e8cc1edc7b29891e8100eb484922e5c2d4fc33
[ "MIT" ]
null
null
null
esphome/voluptuous_schema.py
TheEggi/esphomeyaml
98e8cc1edc7b29891e8100eb484922e5c2d4fc33
[ "MIT" ]
null
null
null
esphome/voluptuous_schema.py
TheEggi/esphomeyaml
98e8cc1edc7b29891e8100eb484922e5c2d4fc33
[ "MIT" ]
null
null
null
import difflib import itertools import voluptuous as vol from esphome.py_compat import string_types class ExtraKeysInvalid(vol.Invalid): def __init__(self, *arg, **kwargs): self.candidates = kwargs.pop('candidates') vol.Invalid.__init__(self, *arg, **kwargs) def ensure_multiple_invalid(err): ...
43.305
99
0.564831
8,359
0.965131
0
0
0
0
0
0
2,062
0.238079
13f5928fe05ccf64858c18af5eff2188153c32e0
20,738
py
Python
semisupervised/DensityPeaks.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
3
2021-12-10T09:04:18.000Z
2022-01-22T15:03:19.000Z
semisupervised/DensityPeaks.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
107
2021-12-02T07:43:11.000Z
2022-03-31T11:02:46.000Z
semisupervised/DensityPeaks.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Filename: DensityPeaks.py # @Author: Daniel Puente Ramírez # @Time: 5/3/22 09:55 # @Version: 4.0 import math from collections import defaultdict import numpy as np import pandas as pd from sklearn.neighbors import KNeighborsClassifier, NearestNeighbor...
35.268707
86
0.580384
20,217
0.97483
0
0
0
0
0
0
7,026
0.338782
13f713d62e74a1cd787ec98b134812d16f5287ea
933
py
Python
N-aryTreeLevelOrderTraversal429.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
N-aryTreeLevelOrderTraversal429.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
N-aryTreeLevelOrderTraversal429.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
""" # Definition for a Node. """ class TreeNode(object): def __init__(self, val, children): self.val = val self.children = children class Solution(object): def levelOrder(self, root): """ :type root: Node :rtype: List[List[int]] """ if root is None: ...
20.733333
39
0.485531
733
0.785638
0
0
0
0
0
0
104
0.111468
13f7593938a4204f0e27844ca0c493ca0b47ec5f
16,444
py
Python
plugin.video.team.milhanos/websocket/_core.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
venv/lib/python3.5/site-packages/websocket/_core.py
dukakisxyz/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/websocket/_core.py
dukakisxyz/wifiportal21-map
1f1917c2f3c2987f7a88cc537d7c50449d144ea0
[ "MIT" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, ...
33.490835
90
0.589698
12,365
0.751946
172
0.01046
0
0
0
0
8,668
0.527122
13f7ddb9a41846fb5799958db3fabf2ed4eeb64a
3,105
py
Python
vaccine_card/logistic/models.py
Unanimad/lais_046_2020_etapa_2
630efc6b25a580be44b6cd50be6744a01221a2c4
[ "Apache-2.0" ]
null
null
null
vaccine_card/logistic/models.py
Unanimad/lais_046_2020_etapa_2
630efc6b25a580be44b6cd50be6744a01221a2c4
[ "Apache-2.0" ]
null
null
null
vaccine_card/logistic/models.py
Unanimad/lais_046_2020_etapa_2
630efc6b25a580be44b6cd50be6744a01221a2c4
[ "Apache-2.0" ]
null
null
null
from django.db import models from vaccine_card.vaccination.models import Vaccine class State(models.Model): name = models.CharField(max_length=20, verbose_name='Nome') class Meta: verbose_name = 'Unidade Federativa' def __str__(self): return self.name class City(models.Model): nam...
36.104651
111
0.738808
3,011
0.967856
0
0
0
0
0
0
429
0.137898
13f954a55ebaa879400311cfe5c32a3993b29137
12,933
py
Python
test/test_rimuhosting.py
shenoyn/libcloud
bd902992a658b6a99193d69323e051ffa7388253
[ "Apache-2.0" ]
1
2015-11-08T12:59:27.000Z
2015-11-08T12:59:27.000Z
test/test_rimuhosting.py
shenoyn/libcloud
bd902992a658b6a99193d69323e051ffa7388253
[ "Apache-2.0" ]
null
null
null
test/test_rimuhosting.py
shenoyn/libcloud
bd902992a658b6a99193d69323e051ffa7388253
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # libcloud.org licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not...
45.22028
380
0.540478
11,950
0.923993
0
0
0
0
0
0
10,062
0.77801
13f9663c3671ee791e1374fc1c550b7438edff48
1,033
py
Python
tests/base_tests/polygon_tests/test_contains.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
10
2020-07-18T12:55:52.000Z
2022-03-20T07:09:10.000Z
tests/base_tests/polygon_tests/test_contains.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
52
2019-07-11T16:59:01.000Z
2022-03-29T19:41:59.000Z
tests/base_tests/polygon_tests/test_contains.py
lycantropos/gon
b3f811ece5989d1623b17d633a84071fbff6dd69
[ "MIT" ]
1
2020-03-22T12:56:07.000Z
2020-03-22T12:56:07.000Z
from typing import Tuple from hypothesis import given from gon.base import (Point, Polygon) from tests.utils import (equivalence, implication) from . import strategies @given(strategies.polygons) def test_vertices(polygon: Polygon) -> None: assert all(vertex in pol...
26.487179
72
0.708616
0
0
0
0
807
0.78122
0
0
0
0
b913259774170b0ae117752589cf379fac40286c
4,139
py
Python
easyidp/core/tests/test_class_reconsproject.py
HowcanoeWang/EasyIDP
0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272
[ "MIT" ]
null
null
null
easyidp/core/tests/test_class_reconsproject.py
HowcanoeWang/EasyIDP
0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272
[ "MIT" ]
null
null
null
easyidp/core/tests/test_class_reconsproject.py
HowcanoeWang/EasyIDP
0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272
[ "MIT" ]
null
null
null
import os import numpy as np import pytest import easyidp from easyidp.core.objects import ReconsProject, Points from easyidp.io import metashape module_path = os.path.join(easyidp.__path__[0], "io/tests") def test_init_reconsproject(): attempt1 = ReconsProject("agisoft") assert attempt1.software == "metash...
42.234694
112
0.723846
0
0
0
0
0
0
0
0
302
0.072964
b9139bb412d2bf193e04d2282744a0d621a61a94
2,413
py
Python
withings_api/const.py
tiloc/python_withings_api
64c9706ab70c93e4c54cc843a778ecd3f9960980
[ "MIT" ]
null
null
null
withings_api/const.py
tiloc/python_withings_api
64c9706ab70c93e4c54cc843a778ecd3f9960980
[ "MIT" ]
null
null
null
withings_api/const.py
tiloc/python_withings_api
64c9706ab70c93e4c54cc843a778ecd3f9960980
[ "MIT" ]
null
null
null
"""Constant values.""" STATUS_SUCCESS = (0,) STATUS_AUTH_FAILED = (100, 101, 102, 200, 401) STATUS_INVALID_PARAMS = ( 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 216, 217, 218, 220, 221, 223, 225, 227, 228, ...
9.690763
50
0.390385
0
0
0
0
0
0
0
0
22
0.009117
b9141fcf42d65abf107a484255f641db4d6e639b
3,249
py
Python
examples/canvas/bezier.py
sirpercival/kivy
29ef854a200e6764aae60ea29324379c69d271a3
[ "MIT" ]
2
2015-10-26T12:35:37.000Z
2020-11-26T12:06:09.000Z
examples/canvas/bezier.py
sirpercival/kivy
29ef854a200e6764aae60ea29324379c69d271a3
[ "MIT" ]
null
null
null
examples/canvas/bezier.py
sirpercival/kivy
29ef854a200e6764aae60ea29324379c69d271a3
[ "MIT" ]
3
2015-07-18T11:03:59.000Z
2018-03-17T01:32:42.000Z
#!/usr/bin/env python from kivy.app import App from kivy.uix.floatlayout import FloatLayout from kivy.uix.slider import Slider from kivy.graphics import Color, Bezier, Line class BezierTest(FloatLayout): def __init__(self, points=[], loop=False, *args, **kwargs): super(BezierTest, self).__init__(*args, *...
33.84375
82
0.544783
3,024
0.930748
0
0
0
0
0
0
141
0.043398
b915c0a9f384ec67869ab91a6425fc1e66fbe2a2
2,698
py
Python
tests/bugs/core_6489_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_6489_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_6489_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_6489 # title: User without ALTER ANY ROLE privilege can use COMMENT ON ROLE # decription: # Test creates two users: one of them has no any rights, second is granted with 'alter any role' privilege. # First user ('junior') must not hav...
32.902439
124
0.648258
0
0
0
0
292
0.108228
0
0
2,085
0.772795
b915eeed88fbfbe46318454fd21bc9db43d6d639
6,023
py
Python
utils/utils_bbox.py
MasoonZhang/FasterRConvMixer
a7a17d00f716a28a5b301088053e00840c222524
[ "MIT" ]
null
null
null
utils/utils_bbox.py
MasoonZhang/FasterRConvMixer
a7a17d00f716a28a5b301088053e00840c222524
[ "MIT" ]
null
null
null
utils/utils_bbox.py
MasoonZhang/FasterRConvMixer
a7a17d00f716a28a5b301088053e00840c222524
[ "MIT" ]
1
2022-03-14T05:29:42.000Z
2022-03-14T05:29:42.000Z
import numpy as np import torch from torch.nn import functional as F from torchvision.ops import nms def loc2bbox(src_bbox, loc): if src_bbox.size()[0] == 0: return torch.zeros((0, 4), dtype=loc.dtype) src_width = torch.unsqueeze(src_bbox[:, 2] - src_bbox[:, 0], -1) src_height = torch.unsqueez...
45.628788
136
0.381205
5,419
0.843162
0
0
0
0
0
0
2,073
0.322546
b9160a13d47cfdacbbfdb45a0590f6674809ddbe
96
py
Python
lib/python/test/__init__.py
woozhijun/cat
3d523202c38e37b1a2244b26d4336ebbea5db001
[ "Apache-2.0" ]
17,318
2015-01-03T03:02:07.000Z
2022-03-31T02:43:28.000Z
lib/python/test/__init__.py
MrCoderYu/cat
674bd9ab70267dd6fc74879e4344af77397f4acd
[ "Apache-2.0" ]
1,162
2015-01-04T08:23:49.000Z
2022-03-31T15:38:04.000Z
lib/python/test/__init__.py
MrCoderYu/cat
674bd9ab70267dd6fc74879e4344af77397f4acd
[ "Apache-2.0" ]
5,520
2015-01-03T03:02:07.000Z
2022-03-31T16:16:56.000Z
#!/usr/bin/env python # encoding: utf-8 import sys reload(sys) sys.setdefaultencoding("utf-8")
13.714286
31
0.729167
0
0
0
0
0
0
0
0
45
0.46875
b918984647c67e09bce945847905654d35530277
15,886
py
Python
tests/test_pyclipper.py
odidev/pyclipper
3de54fa4c4d5b8efeede364fbe69336f935f88f2
[ "MIT" ]
null
null
null
tests/test_pyclipper.py
odidev/pyclipper
3de54fa4c4d5b8efeede364fbe69336f935f88f2
[ "MIT" ]
null
null
null
tests/test_pyclipper.py
odidev/pyclipper
3de54fa4c4d5b8efeede364fbe69336f935f88f2
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Tests for Pyclipper wrapper library. """ from __future__ import print_function from unittest2 import TestCase, main import sys if sys.version_info < (3,): integer_types = (int, long) else: integer_types = (int,) import pyclipper # Example polygons from http://www.angusj.com/delphi/clip...
34.914286
111
0.660078
14,265
0.89796
0
0
622
0.039154
0
0
1,242
0.078182
b918bb151415e9d667f5286334be578684cceb18
10,754
py
Python
espoem_facts/facts.py
emre/espoem_facts
0d7164dcfe8a82e1f142929b1e00c3a85f29f101
[ "MIT" ]
null
null
null
espoem_facts/facts.py
emre/espoem_facts
0d7164dcfe8a82e1f142929b1e00c3a85f29f101
[ "MIT" ]
null
null
null
espoem_facts/facts.py
emre/espoem_facts
0d7164dcfe8a82e1f142929b1e00c3a85f29f101
[ "MIT" ]
1
2018-07-19T18:44:09.000Z
2018-07-19T18:44:09.000Z
FACTS = ['espoem multiplied by zero still equals espoem.', 'There is no theory of evolution. Just a list of creatures espoem has allowed to live.', 'espoem does not sleep. He waits.', 'Alexander Graham Bell had three missed calls from espoem when he invented the telephone.', 'espoem ...
102.419048
232
0.702343
0
0
0
0
0
0
0
0
9,610
0.893621
b918c27f2b168efd69908773e44475244b686dd0
3,379
py
Python
imageproc_OE_IF_quant/2_annotate_extracted_cells.py
hshayya/2022_Shayya_UPR_Guidance
b9a305a147a105c3ac9c0173e06b94f66e4a6102
[ "MIT" ]
null
null
null
imageproc_OE_IF_quant/2_annotate_extracted_cells.py
hshayya/2022_Shayya_UPR_Guidance
b9a305a147a105c3ac9c0173e06b94f66e4a6102
[ "MIT" ]
null
null
null
imageproc_OE_IF_quant/2_annotate_extracted_cells.py
hshayya/2022_Shayya_UPR_Guidance
b9a305a147a105c3ac9c0173e06b94f66e4a6102
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET import csv import os import re from ij import IJ from loci.plugins.in import ImporterOptions from loci.plugins import BF from ij.plugin import ImagesToStack from ij import io #Records metadata (x,y location) for cells that were extracted with 1_find_extract_cells.py #metadata will be...
40.710843
137
0.693992
0
0
0
0
0
0
0
0
1,494
0.442143
b919ab13ac46e733a617fc950c062280033c20b8
439
py
Python
MAEnv/env_SingleCatchPigs/test_SingleCatchPigs.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
5
2020-05-25T03:08:09.000Z
2022-02-27T05:57:28.000Z
MAEnv/env_SingleCatchPigs/test_SingleCatchPigs.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
1
2020-12-22T01:35:36.000Z
2022-01-28T01:51:06.000Z
MAEnv/env_SingleCatchPigs/test_SingleCatchPigs.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
1
2020-05-06T01:56:55.000Z
2020-05-06T01:56:55.000Z
from env_SingleCatchPigs import EnvSingleCatchPigs import random env = EnvSingleCatchPigs(7) max_iter = 10000 env.set_agent_at([2, 2], 0) env.set_pig_at([4, 4], 0) for i in range(max_iter): print("iter= ", i) env.render() action = random.randint(0, 4) print('action is', action) reward, done = env.s...
24.388889
50
0.658314
0
0
0
0
0
0
0
0
48
0.109339
b91c1523d70c0416c1afa5a4c6a25a3d2f1e426b
3,417
py
Python
eust/tables/data.py
rasmuse/eust
2138076d52c0ffa20fba10e4e0319dd50c4e8a91
[ "MIT" ]
1
2021-03-14T04:06:02.000Z
2021-03-14T04:06:02.000Z
eust/tables/data.py
rasmuse/eust
2138076d52c0ffa20fba10e4e0319dd50c4e8a91
[ "MIT" ]
9
2019-04-29T09:01:39.000Z
2021-11-15T17:48:36.000Z
eust/tables/data.py
rasmuse/eust
2138076d52c0ffa20fba10e4e0319dd50c4e8a91
[ "MIT" ]
1
2019-10-23T08:56:33.000Z
2019-10-23T08:56:33.000Z
# -*- coding: utf-8 -*- import re import gzip import pandas as pd import numpy as np from eust.core import _download_file, conf _DIMENSION_NAME_RE = re.compile(r"^[a-z_0-9]+$") _YEAR_RE = re.compile(r"^(1|2)[0-9]{3}$") def _is_valid_dimension_name(s: str) -> bool: return bool(_DIMENSION_NAME_RE.match(s)) d...
26.695313
78
0.654375
0
0
0
0
0
0
0
0
638
0.186713
b91ce0003a23729f5cf4b45b783933c9e0cd6696
22,196
py
Python
utils.py
fatemehtd/Echo-SyncNet
ebb280e83a67b31436c4cfa420f9c06a92ac8c12
[ "MIT" ]
6
2021-03-19T16:55:30.000Z
2022-03-15T08:41:56.000Z
utils.py
matiasmolinas/Echo-SyncNet
f7f81ead7a24d7574c0668df3765ef58fd71d54d
[ "MIT" ]
3
2021-10-01T22:15:44.000Z
2022-03-25T03:12:47.000Z
utils.py
matiasmolinas/Echo-SyncNet
f7f81ead7a24d7574c0668df3765ef58fd71d54d
[ "MIT" ]
3
2021-03-19T16:55:35.000Z
2022-02-03T10:40:48.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from config import CONFIG import json import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # pylint: disable=g-import-not-at-top import io import math import os import time from absl i...
36.748344
113
0.621193
325
0.014642
0
0
400
0.018021
0
0
4,333
0.195215
b91d0a28a2d3c169f55ef3fbe14306db5438a499
8,468
py
Python
UnityPy/classes/Sprite.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
null
null
null
UnityPy/classes/Sprite.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
null
null
null
UnityPy/classes/Sprite.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
null
null
null
from enum import IntEnum from .Mesh import BoneWeights4, SubMesh, VertexData from .NamedObject import NamedObject from .PPtr import PPtr, save_ptr from ..export import SpriteHelper from ..enums import SpriteMeshType from ..streams import EndianBinaryWriter class Sprite(NamedObject): @property def image(self)...
34.563265
90
0.599906
8,190
0.967171
0
0
566
0.06684
0
0
522
0.061644
b91e27e8ce2a32cb1f2fa0c55d35f35399d00f99
11,123
py
Python
eazy/filters.py
albertfxwang/eazy-py
bcfd8a1e49f077adc794202871345542ab29800b
[ "MIT" ]
null
null
null
eazy/filters.py
albertfxwang/eazy-py
bcfd8a1e49f077adc794202871345542ab29800b
[ "MIT" ]
null
null
null
eazy/filters.py
albertfxwang/eazy-py
bcfd8a1e49f077adc794202871345542ab29800b
[ "MIT" ]
null
null
null
import numpy as np import os from astropy.table import Table from . import utils __all__ = ["FilterDefinition", "FilterFile", "ParamFilter"] VEGA_FILE = os.path.join(utils.path_to_eazy_data(), 'alpha_lyr_stis_008.fits') VEGA = Table.read(VEGA_FILE) for c in VEGA.col...
30.225543
134
0.507687
10,748
0.966286
0
0
2,570
0.231053
0
0
3,342
0.300459
b91e9c056c9dab4c7981c513788ac7b746223cf5
672
py
Python
LeetCode/106.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
1
2020-12-08T02:01:18.000Z
2020-12-08T02:01:18.000Z
LeetCode/106.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
null
null
null
LeetCode/106.py
KevinTMtz/CompetitiveProgramming
0bf8a297c404073df707b6d7b06965b055ccd872
[ "MIT" ]
null
null
null
# # LeetCode # # Problem - 106 # URL - https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ # # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = ri...
24
97
0.651786
346
0.514881
0
0
0
0
0
0
311
0.462798
b91f064ec51160dd5a168a0ea9d44e81a3af31b7
44,880
py
Python
evalml/automl/automl_search.py
skvorekn/evalml
2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8
[ "BSD-3-Clause" ]
null
null
null
evalml/automl/automl_search.py
skvorekn/evalml
2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8
[ "BSD-3-Clause" ]
null
null
null
evalml/automl/automl_search.py
skvorekn/evalml
2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8
[ "BSD-3-Clause" ]
null
null
null
import copy import time from collections import defaultdict import cloudpickle import numpy as np import pandas as pd import woodwork as ww from sklearn.model_selection import BaseCrossValidator from .pipeline_search_plots import PipelineSearchPlots from evalml.automl.automl_algorithm import IterativeAlgorithm from ...
50.145251
234
0.660561
43,358
0.966087
0
0
3,034
0.067602
0
0
17,310
0.385695
b9206e8febc3abecc98cfdec65d8f8f8f61e43fc
782
py
Python
graphql_social_auth/mutations.py
deepsourcelabs/django-graphql-social-auth
a0cc7715144dc289ccb4d2430e7c3b94fc1dffba
[ "MIT" ]
1
2021-09-03T11:55:33.000Z
2021-09-03T11:55:33.000Z
graphql_social_auth/mutations.py
deepsourcelabs/django-graphql-social-auth
a0cc7715144dc289ccb4d2430e7c3b94fc1dffba
[ "MIT" ]
null
null
null
graphql_social_auth/mutations.py
deepsourcelabs/django-graphql-social-auth
a0cc7715144dc289ccb4d2430e7c3b94fc1dffba
[ "MIT" ]
null
null
null
import graphene from graphql_jwt.decorators import setup_jwt_cookie from . import mixins, types from .decorators import social_auth class SocialAuthMutation(mixins.SocialAuthMixin, graphene.Mutation): social = graphene.Field(types.SocialType) class Meta: abstract = True class Arguments: ...
25.225806
68
0.726343
640
0.818414
0
0
159
0.203325
0
0
68
0.086957
b92225fd1fc48f3b53478df0ef2d1501b1d04475
1,625
py
Python
yellowbrick/regressor/base.py
Juan0001/yellowbrick-docs-zh
36275d9704fc2a946c5bec5f802106bb5281efd1
[ "Apache-2.0" ]
20
2018-03-24T02:29:20.000Z
2022-03-03T05:01:40.000Z
yellowbrick/regressor/base.py
Juan0001/yellowbrick-docs-zh
36275d9704fc2a946c5bec5f802106bb5281efd1
[ "Apache-2.0" ]
4
2018-03-20T12:01:17.000Z
2019-04-07T16:02:19.000Z
yellowbrick/regressor/base.py
Juan0001/yellowbrick-docs-zh
36275d9704fc2a946c5bec5f802106bb5281efd1
[ "Apache-2.0" ]
5
2018-03-17T08:18:57.000Z
2019-11-15T02:20:20.000Z
# yellowbrick.regressor.base # Base classes for regressor Visualizers. # # Author: Rebecca Bilbro <[email protected]> # Author: Benjamin Bengfort <[email protected]> # Created: Fri Jun 03 10:30:36 2016 -0700 # # Copyright (C) 2016 District Data Labs # For license information, see LICENSE.tx...
30.660377
79
0.582154
662
0.407385
0
0
0
0
0
0
1,159
0.713231
b92247a49fd2631992a5eddee925c5305320a529
2,941
py
Python
contrib/stack/stripmapStack/crossmul.py
falkamelung/isce2
edea69d4b6216f4ac729eba78f12547807a2751a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
contrib/stack/stripmapStack/crossmul.py
falkamelung/isce2
edea69d4b6216f4ac729eba78f12547807a2751a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
contrib/stack/stripmapStack/crossmul.py
falkamelung/isce2
edea69d4b6216f4ac729eba78f12547807a2751a
[ "ECL-2.0", "Apache-2.0" ]
1
2021-06-05T16:39:25.000Z
2021-06-05T16:39:25.000Z
#!/usr/bin/env python3 import os import argparse import logging import isce import isceobj from components.stdproc.stdproc import crossmul from iscesys.ImageUtil.ImageUtil import ImageUtil as IU def createParser(): ''' Command Line Parser. ''' parser = argparse.ArgumentParser( description='Generat...
27.485981
102
0.682761
0
0
0
0
0
0
0
0
478
0.16253
b92338655b37aa1b9646d78826676f4639eac7d3
550
py
Python
27. Remove Element/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
27. Remove Element/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
27. Remove Element/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
from typing import List class Solution: def removeElement(self, nums: List[int], val: int) -> int: if not nums: return 0 curr = 0 n = len(nums) while curr < n: if nums[curr] == val: nums[curr] = nums[n-1] n -= 1 else...
23.913043
62
0.461818
340
0.618182
0
0
0
0
0
0
22
0.04
b923cd998b5a122c2fa8e86b09305b2b291d6507
3,873
py
Python
platformio/commands/home/run.py
Granjow/platformio-core
71ae579bc07b2e11fec16acda482dea04bc3a359
[ "Apache-2.0" ]
4,744
2016-11-28T14:37:47.000Z
2022-03-31T12:35:56.000Z
platformio/commands/home/run.py
Granjow/platformio-core
71ae579bc07b2e11fec16acda482dea04bc3a359
[ "Apache-2.0" ]
3,424
2016-11-27T22:45:41.000Z
2022-03-31T21:40:03.000Z
platformio/commands/home/run.py
Granjow/platformio-core
71ae579bc07b2e11fec16acda482dea04bc3a359
[ "Apache-2.0" ]
576
2016-12-01T18:48:22.000Z
2022-03-30T02:27:35.000Z
# Copyright (c) 2014-present PlatformIO <[email protected]> # # 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 appli...
38.73
88
0.737155
300
0.077459
0
0
0
0
504
0.130132
906
0.233927
b924107dfd6ae9e56411cce662afa3db86b021e5
11,450
py
Python
appengine/components/components/machine_provider/rpc_messages.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/components/components/machine_provider/rpc_messages.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/machine_provider/rpc_messages.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Copyright 2015 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Messages for the Machine Provider API.""" # pylint: disable=unused-wildcard-import, wildcard-import from protorpc import messages from compo...
38.945578
79
0.773537
10,906
0.952489
0
0
0
0
0
0
6,219
0.543144
b925f7b3126896a3611797c97e1fa8d0eee2234c
564
py
Python
webscraping.py
carvalho-fdec/DesafioDSA
fec9742bd77ddc3923ed616b6511cce87de48968
[ "MIT" ]
null
null
null
webscraping.py
carvalho-fdec/DesafioDSA
fec9742bd77ddc3923ed616b6511cce87de48968
[ "MIT" ]
null
null
null
webscraping.py
carvalho-fdec/DesafioDSA
fec9742bd77ddc3923ed616b6511cce87de48968
[ "MIT" ]
null
null
null
# webscraping test import urllib.request from bs4 import BeautifulSoup with urllib.request.urlopen('http://www.netvasco.com.br') as url: page = url.read() #print(page) print(url.geturl()) print(url.info()) print(url.getcode()) # Analise o html na variável 'page' e armazene-o no formato Beautiful...
18.193548
74
0.687943
0
0
0
0
0
0
0
0
178
0.315044
b9270600c4aae588202efc6c296f0228f4d2527a
21,441
py
Python
tensorboard/backend/event_processing/data_provider_test.py
hongxu-jia/tensorboard
98d4dadc61fd5a0580bed808653c59fb37748893
[ "Apache-2.0" ]
1
2021-01-07T14:58:47.000Z
2021-01-07T14:58:47.000Z
tensorboard/backend/event_processing/data_provider_test.py
hongxu-jia/tensorboard
98d4dadc61fd5a0580bed808653c59fb37748893
[ "Apache-2.0" ]
null
null
null
tensorboard/backend/event_processing/data_provider_test.py
hongxu-jia/tensorboard
98d4dadc61fd5a0580bed808653c59fb37748893
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 applicabl...
39.559041
80
0.583741
19,484
0.908726
0
0
0
0
0
0
3,511
0.163752
b927180a3b55091e89983dcae5d96dd47f1373ae
4,172
py
Python
extras/amld/cloud/quickdraw_rnn/task.py
luyang1210/tensorflow
948324f4cafdc97ae51c0e44fc1c28677a6e2e8a
[ "Apache-2.0" ]
1
2019-04-28T15:46:45.000Z
2019-04-28T15:46:45.000Z
extras/amld/cloud/quickdraw_rnn/task.py
luyang1210/tensorflow
948324f4cafdc97ae51c0e44fc1c28677a6e2e8a
[ "Apache-2.0" ]
null
null
null
extras/amld/cloud/quickdraw_rnn/task.py
luyang1210/tensorflow
948324f4cafdc97ae51c0e44fc1c28677a6e2e8a
[ "Apache-2.0" ]
1
2020-11-18T04:43:33.000Z
2020-11-18T04:43:33.000Z
"""Experiment wrapper for training on Cloud ML.""" import argparse, glob, os import tensorflow as tf # From this package. import model def generate_experiment_fn(data_dir, train_batch_size, eval_batch_size, train_steps, eval_steps, cell_size, hidden, **experime...
28.972222
81
0.613375
0
0
0
0
0
0
0
0
1,466
0.35139
b92725db4e0f08b5ebf9656b39a1e567c20d5ffb
150
py
Python
A/116A.py
johnggo/Codeforces-Solutions
4127ae6f72294b5781fb94c42b69cfef570aae42
[ "MIT" ]
1
2020-08-25T19:59:11.000Z
2020-08-25T19:59:11.000Z
A/116A.py
johnggo/Codeforces-Solutions
4127ae6f72294b5781fb94c42b69cfef570aae42
[ "MIT" ]
null
null
null
A/116A.py
johnggo/Codeforces-Solutions
4127ae6f72294b5781fb94c42b69cfef570aae42
[ "MIT" ]
null
null
null
# Time: 310 ms # Memory: 1664 KB n = int(input()) e = 0 s = 0 for i in range(n): s =s- eval(input().replace(' ', '-')) e = max(e, s) print(e)
15
41
0.506667
0
0
0
0
0
0
0
0
37
0.246667
b9299565a87f9a052852f5ae8225680eeeb2de61
1,923
py
Python
tests/test_serialize.py
aferrall/redner
be52e4105140f575f153d640ba889eb6e6015616
[ "MIT" ]
1,146
2018-11-11T01:47:18.000Z
2022-03-31T14:11:03.000Z
tests/test_serialize.py
Awcrr/redner
b4f57037af26b720d916bbaf26103a3499101a9f
[ "MIT" ]
177
2018-11-13T22:48:25.000Z
2022-03-30T07:19:29.000Z
tests/test_serialize.py
Awcrr/redner
b4f57037af26b720d916bbaf26103a3499101a9f
[ "MIT" ]
127
2018-11-11T02:32:17.000Z
2022-03-31T07:24:03.000Z
import pyredner import numpy as np import torch cam = pyredner.Camera(position = torch.tensor([0.0, 0.0, -5.0]), look_at = torch.tensor([0.0, 0.0, 0.0]), up = torch.tensor([0.0, 1.0, 0.0]), fov = torch.tensor([45.0]), # in degree c...
34.339286
83
0.560582
0
0
0
0
0
0
0
0
57
0.029641
b92a551001bac345f595f68ea0440f1231ad8e57
2,302
py
Python
src/zope/publisher/tests/test_requestdataproperty.py
Shoobx/zope.publisher
790e82045d7ae06146bd8c5e27139555b9ec1641
[ "ZPL-2.1" ]
3
2016-11-18T08:58:09.000Z
2021-02-01T06:13:45.000Z
src/zope/publisher/tests/test_requestdataproperty.py
Shoobx/zope.publisher
790e82045d7ae06146bd8c5e27139555b9ec1641
[ "ZPL-2.1" ]
42
2015-06-02T19:26:10.000Z
2022-03-15T07:24:03.000Z
src/zope/publisher/tests/test_requestdataproperty.py
Shoobx/zope.publisher
790e82045d7ae06146bd8c5e27139555b9ec1641
[ "ZPL-2.1" ]
7
2015-04-03T09:29:31.000Z
2021-06-07T14:47:45.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
27.404762
78
0.614683
1,307
0.567767
0
0
0
0
0
0
813
0.353171
b92a9fd2163ca676afa6df078248d3bd1b2d8259
146
py
Python
tools/scoring/dimensions/__init__.py
ahemphill/digitalbuildings
56a03b0055f9f771c3ed0a962f6bfb2b1d968947
[ "Apache-2.0" ]
null
null
null
tools/scoring/dimensions/__init__.py
ahemphill/digitalbuildings
56a03b0055f9f771c3ed0a962f6bfb2b1d968947
[ "Apache-2.0" ]
null
null
null
tools/scoring/dimensions/__init__.py
ahemphill/digitalbuildings
56a03b0055f9f771c3ed0a962f6bfb2b1d968947
[ "Apache-2.0" ]
null
null
null
""" Enable import """ from os import path import sys sys.path.append( path.abspath(path.join('tools', 'validators', 'instance_validator')))
18.25
73
0.69863
0
0
0
0
0
0
0
0
60
0.410959
b92b002b9d57e933962f9291a749b365792c1b9a
1,444
py
Python
src/thornfield/caches/cache_compression_decorator.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
2
2020-11-24T13:27:14.000Z
2020-11-24T13:29:40.000Z
src/thornfield/caches/cache_compression_decorator.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
1
2020-11-24T13:33:45.000Z
2020-11-24T15:10:41.000Z
src/thornfield/caches/cache_compression_decorator.py
drorvinkler/thornfield
3c5bb8afaa96097bc71cccb119394a0f351d828f
[ "MIT" ]
null
null
null
from typing import Callable, AnyStr, Optional from zlib import compress as default_compress, decompress as default_decompress from .cache import Cache from ..constants import NOT_FOUND class CacheCompressionDecorator(Cache): def __init__( self, cache: Cache, compress: Optional[Callable[[s...
29.469388
79
0.628809
1,255
0.869114
0
0
278
0.192521
0
0
14
0.009695
b92be50c97841e71ffe31a7d7baa405cc9ba5537
38,846
py
Python
manim/mobject/vector_field.py
kdkasad/manim
249b1dcab0f18a43e953b5fda517734084c0a941
[ "MIT" ]
2
2021-12-07T14:25:07.000Z
2021-12-09T14:16:10.000Z
manim/mobject/vector_field.py
kdkasad/manim
249b1dcab0f18a43e953b5fda517734084c0a941
[ "MIT" ]
3
2021-09-15T08:11:29.000Z
2021-10-06T02:00:03.000Z
manim/mobject/vector_field.py
kdkasad/manim
249b1dcab0f18a43e953b5fda517734084c0a941
[ "MIT" ]
3
2020-04-10T20:38:06.000Z
2020-09-30T03:03:45.000Z
"""Mobjects representing vector fields.""" __all__ = [ "VectorField", "ArrowVectorField", "StreamLines", ] import itertools as it import random from math import ceil, floor from typing import Callable, Iterable, Optional, Sequence, Tuple, Type import numpy as np from colour import Color from PIL import I...
36.96099
185
0.57298
37,588
0.967616
0
0
1,685
0.043376
0
0
20,272
0.521856
b92c7cbb70fbc4dd2dec20c24e021d0f6405bd12
19,900
py
Python
marshmallow_dataclass/__init__.py
dan-starkware/marshmallow_dataclass
25c3e041d8c6a87d740984e57a5bd29b768afbf8
[ "MIT" ]
null
null
null
marshmallow_dataclass/__init__.py
dan-starkware/marshmallow_dataclass
25c3e041d8c6a87d740984e57a5bd29b768afbf8
[ "MIT" ]
null
null
null
marshmallow_dataclass/__init__.py
dan-starkware/marshmallow_dataclass
25c3e041d8c6a87d740984e57a5bd29b768afbf8
[ "MIT" ]
null
null
null
""" This library allows the conversion of python 3.7's :mod:`dataclasses` to :mod:`marshmallow` schemas. It takes a python class, and generates a marshmallow schema for it. Simple example:: from marshmallow import Schema from marshmallow_dataclass import dataclass @dataclass class Point: x:flo...
34.133791
110
0.647538
413
0.020754
0
0
1,632
0.08201
0
0
11,211
0.563367
b92e1fb5ed102dbd1d7dc2d4b0ef720e265a976f
1,045
py
Python
electrum_trc/scripts/txradar.py
TheSin-/electrum-trc
d2f5b15fd4399a9248cce0d63e20128f3f54e69c
[ "MIT" ]
1
2019-08-20T18:05:32.000Z
2019-08-20T18:05:32.000Z
electrum_trc/scripts/txradar.py
TheSin-/electrum-trc
d2f5b15fd4399a9248cce0d63e20128f3f54e69c
[ "MIT" ]
1
2022-03-14T19:45:31.000Z
2022-03-14T19:45:31.000Z
electrum_trc/scripts/txradar.py
TheSin-/electrum-trc
d2f5b15fd4399a9248cce0d63e20128f3f54e69c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import asyncio from electrum_trc.network import filter_protocol, Network from electrum_trc.util import create_and_start_event_loop, log_exceptions try: txid = sys.argv[1] except: print("usage: txradar txid") sys.exit(1) loop, stopping_fut, loop_thread = create_and_star...
28.243243
99
0.675598
0
0
0
0
627
0.6
611
0.584689
154
0.147368
b92ef9143bb84fe6d37501129ff559d015cf231e
1,091
py
Python
jp.atcoder/dp/dp_g/24586988.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/dp/dp_g/24586988.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/dp/dp_g/24586988.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys import typing import numpy as np def solve( n: int, g: np.array, ) -> typing.NoReturn: indeg = np.zeros( n, dtype=np.int64, ) for v in g[:, 1]: indeg[v] += 1 g = g[g[:, 0].argsort()] i = np.searchsorted( g[:, 0], np.arange(n + 1) ) q = [ v for v in range(n) if...
13.810127
30
0.505041
0
0
0
0
0
0
0
0
25
0.022915
b930187de467bdc99d38231d4b217f6589a62613
2,039
py
Python
starteMessung.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
starteMessung.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
starteMessung.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
1
2021-08-09T14:57:57.000Z
2021-08-09T14:57:57.000Z
from datetime import datetime from pypylon import pylon import nimmAuf import smbus2 import os import argparse import bestimmeVolumen from threading import Thread import time programmstart = time.time() # Argumente parsen (bei Aufruf im Terminal z.B. 'starteMessung.py -n 100' eingeben) ap = argparse.ArgumentParser(de...
34.559322
169
0.703776
0
0
0
0
0
0
0
0
897
0.439706
b93050ad4c3c78860eb79accbddb8566a673cb7e
3,211
py
Python
application/services/decart.py
Sapfir0/web-premier-eye
f060b01e98a923374ea60360ba133caaa654b6c7
[ "MIT" ]
null
null
null
application/services/decart.py
Sapfir0/web-premier-eye
f060b01e98a923374ea60360ba133caaa654b6c7
[ "MIT" ]
null
null
null
application/services/decart.py
Sapfir0/web-premier-eye
f060b01e98a923374ea60360ba133caaa654b6c7
[ "MIT" ]
1
2020-01-06T18:27:45.000Z
2020-01-06T18:27:45.000Z
import os import tempfile def hasOnePointInside(bigRect, minRect): # хотя бы одна точка лежит внутри minY, minX, maxY, maxX = bigRect y1, x1, y2, x2 = minRect a = (minY <= y1 <= maxY) b = (minX <= x1 <= maxX) c = (minY <= y2 <= maxY) d = (minX <= x2 <= maxX) return a or b or c or d d...
28.927928
117
0.62753
1,229
0.341959
0
0
0
0
0
0
879
0.244574
b9312660991c249b5bd6faf4ead63f4150e99b7e
4,915
py
Python
pysnmp/EXTREME-RTSTATS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/EXTREME-RTSTATS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/EXTREME-RTSTATS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module EXTREME-RTSTATS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EXTREME-BASE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:53:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, M...
114.302326
713
0.790031
0
0
0
0
0
0
0
0
1,190
0.242116
b931a37de7e1f1ed0fc213effed503351b163f01
9,946
py
Python
goopylib/objects/_BBox.py
BhavyeMathur/goopylib
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
25
2020-07-09T10:57:16.000Z
2022-02-06T10:31:34.000Z
goopylib/objects/_BBox.py
BhavyeMathur/goopy
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
48
2020-07-02T20:08:40.000Z
2020-07-06T16:09:25.000Z
goopylib/objects/_BBox.py
BhavyeMathur/goopy
f9eb1458e9218a8dd4add6693ce70b804624bf91
[ "MIT" ]
1
2020-12-01T13:45:53.000Z
2020-12-01T13:45:53.000Z
from goopylib.objects.GraphicsObject import GraphicsObject from goopylib.styles import * class BBox(GraphicsObject): # Internal base class for objects represented by bounding box # (opposite corners) Line segment is a degenerate case. resizing_objects = [] def __init__(self, p1, p2, bounds=None, fi...
37.81749
122
0.594008
9,853
0.99065
0
0
0
0
0
0
2,454
0.246732
b931c0b51c15ef9d8f1fe028562964e4cc16bd70
670
py
Python
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
1
2021-04-01T06:19:02.000Z
2021-04-01T06:19:02.000Z
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
null
null
null
Graph/DFS&BFS.py
Mayner0220/Programmers
42e4783a526506fb7d8208841a76201909ed5c5c
[ "Apache-2.0" ]
null
null
null
# https://www.acmicpc.net/problem/1260 n, m, v = map(int, input().split()) graph = [[0] * (n+1) for _ in range(n+1)] visit = [False] * (n+1) for _ in range(m): R, C = map(int, input().split()) graph[R][C] = 1 graph[C][R] = 1 def dfs(v): visit[v] = True print(v, end=" ") for i in range(1, n+...
19.142857
43
0.470149
0
0
0
0
0
0
0
0
44
0.065672
b932e9aa7c1cc0da8573d5baaf3b16b4549529cd
347
py
Python
coding_intereview/1576. Replace All ?'s to Avoid Consecutive Repeating Characters.py
Jahidul007/Python-Bootcamp
3c870587465ff66c2c1871c8d3c4eea72463abda
[ "MIT" ]
2
2020-12-07T16:07:07.000Z
2020-12-07T16:08:53.000Z
coding_intereview/1576. Replace All ?'s to Avoid Consecutive Repeating Characters.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
null
null
null
coding_intereview/1576. Replace All ?'s to Avoid Consecutive Repeating Characters.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
1
2020-10-03T16:38:02.000Z
2020-10-03T16:38:02.000Z
class Solution: def modifyString(self, s: str) -> str: s = list(s) for i in range(len(s)): if s[i] == "?": for c in "abc": if (i == 0 or s[i-1] != c) and (i+1 == len(s) or s[i+1] != c): s[i] = c break ...
31.545455
83
0.337176
346
0.997118
0
0
0
0
0
0
10
0.028818
b9341a63382a080379eb1fbad26490deed5a76c6
2,404
py
Python
pysteps/tests/helpers.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
6
2019-01-06T07:42:55.000Z
2021-02-03T13:59:50.000Z
pysteps/tests/helpers.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
5
2018-12-23T15:10:27.000Z
2021-01-06T15:03:03.000Z
pysteps/tests/helpers.py
Fangyh09/pysteps
9eb7f4ead0a946d98b7504d1bd66b18dc405ed51
[ "BSD-3-Clause" ]
2
2019-08-06T14:16:43.000Z
2019-08-13T00:36:31.000Z
""" Testing helper functions ======================= Collection of helper functions for the testing suite. """ from datetime import datetime import numpy as np import pytest import pysteps as stp from pysteps import io, rcparams def get_precipitation_fields(num_prev_files=0): """Get a precipitation field from ...
33.388889
80
0.640599
0
0
0
0
0
0
0
0
808
0.336106
b934cd0c4d4115b02def19c6bd570d1877b158cd
3,598
py
Python
modules/courses/courses.py
ehiller/mobilecsp-v18
a59801c44c616d30f5e916d6771e479c8a9e88f7
[ "Apache-2.0" ]
null
null
null
modules/courses/courses.py
ehiller/mobilecsp-v18
a59801c44c616d30f5e916d6771e479c8a9e88f7
[ "Apache-2.0" ]
null
null
null
modules/courses/courses.py
ehiller/mobilecsp-v18
a59801c44c616d30f5e916d6771e479c8a9e88f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
36.714286
78
0.735686
0
0
0
0
0
0
0
0
1,175
0.32657
b934ce47dae53d305023f829683b8ba6f625367b
1,362
py
Python
packages/merlin/protocols/PrefixLayout.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
packages/merlin/protocols/PrefixLayout.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
packages/merlin/protocols/PrefixLayout.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
# -*- coding: utf-8 -*- # # michael a.g. aïvázis <[email protected]> # (c) 1998-2021 all rights reserved # support import merlin # the manager of intermediate and final build products class PrefixLayout(merlin.protocol, family="merlin.layouts.prefix"): """ The manager of the all build products, b...
23.482759
82
0.668135
1,146
0.840176
0
0
192
0.140762
0
0
681
0.499267
b9355080468a287acd9198671ea28f44a47c9a46
2,389
py
Python
test/IECoreMaya/ImageConverterTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
386
2015-01-02T11:10:43.000Z
2022-03-10T15:12:20.000Z
test/IECoreMaya/ImageConverterTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
484
2015-01-09T18:28:06.000Z
2022-03-31T16:02:04.000Z
test/IECoreMaya/ImageConverterTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
99
2015-01-28T23:18:04.000Z
2022-03-27T00:59:39.000Z
########################################################################## # # Copyright (c) 2011, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribu...
37.920635
92
0.706153
480
0.200921
0
0
0
0
0
0
1,810
0.757639
b936e2da1dfb0c50e0a4123e54c302664e300cf0
4,454
py
Python
tests/core_ptl/check_for_ranks.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
2
2021-09-21T07:36:20.000Z
2022-02-05T15:29:04.000Z
tests/core_ptl/check_for_ranks.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
null
null
null
tests/core_ptl/check_for_ranks.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
12
2021-06-20T08:56:10.000Z
2022-03-16T19:07:10.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
28.551282
102
0.687023
1,276
0.286484
0
0
1,051
0.235968
0
0
1,133
0.254378
b93839299c30aa23ab066b85969c7c27e043c202
1,143
py
Python
helpers/json_manager.py
Lofi-Lemonade/Python-Discord-Bot-Template
4cb79197c751c88100ad396adb38e88bf2a4d1ed
[ "Apache-2.0" ]
null
null
null
helpers/json_manager.py
Lofi-Lemonade/Python-Discord-Bot-Template
4cb79197c751c88100ad396adb38e88bf2a4d1ed
[ "Apache-2.0" ]
null
null
null
helpers/json_manager.py
Lofi-Lemonade/Python-Discord-Bot-Template
4cb79197c751c88100ad396adb38e88bf2a4d1ed
[ "Apache-2.0" ]
null
null
null
"""" Copyright © Krypton 2022 - https://github.com/kkrypt0nn (https://krypton.ninja) Description: This is a template to create your own discord bot in python. Version: 4.1 """ import json def add_user_to_blacklist(user_id: int) -> None: """ This function will add a user based on its ID in the blacklist.json...
31.75
91
0.659668
0
0
0
0
0
0
0
0
629
0.549825
b93889b31eb8ffef50e08b669fe2f20c16f4d959
1,628
py
Python
tests/test_common.py
ColinKennedy/ways
1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3
[ "MIT" ]
2
2019-11-10T18:35:38.000Z
2020-05-12T10:37:42.000Z
tests/test_common.py
ColinKennedy/ways
1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3
[ "MIT" ]
5
2017-11-27T18:05:25.000Z
2021-06-01T21:57:48.000Z
tests/test_common.py
ColinKennedy/ways
1eb44e4aa5e35fb839212cd8cb1c59c714ba10d3
[ "MIT" ]
1
2017-11-27T17:54:53.000Z
2017-11-27T17:54:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Make sure that generic functions work exactly as we expect.''' # IMPORT STANDARD LIBRARIES import unittest # IMPORT WAYS LIBRARIES from ways import common class ParseTestCase(unittest.TestCase): '''Test generic parsing-related functions.''' def test_workin...
35.391304
84
0.686732
1,418
0.871007
0
0
0
0
0
0
824
0.506143
b938dd2d4297c0de33a03a4e075f88143c4fb4d8
942
py
Python
setup.py
glibin/natasha
4f5c153f754759c189779f9879decd8d218356af
[ "MIT" ]
1
2020-01-16T14:02:01.000Z
2020-01-16T14:02:01.000Z
setup.py
glibin/natasha
4f5c153f754759c189779f9879decd8d218356af
[ "MIT" ]
null
null
null
setup.py
glibin/natasha
4f5c153f754759c189779f9879decd8d218356af
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='natasha', version='0.2.0', description='Named-entity recognition for russian language', url='https://github.com/bureaucratic-labs/natasha', author='Dmitry Veselov', author_email='[email protected]', license='MIT', classifiers=...
29.4375
97
0.59448
0
0
0
0
0
0
0
0
531
0.563694
b93a3daf85b033d7039d8c3747eadb457802db6b
2,814
py
Python
GeneratePassword/generate_password_v2.py
OneScreenfulOfPython/screenfuls
ea4e378c8d9e530edadd4a3315fe9e8acc98460b
[ "Apache-2.0" ]
2
2015-01-19T14:50:55.000Z
2015-01-28T12:45:59.000Z
GeneratePassword/generate_password_v2.py
OneScreenfulOfPython/screenfuls
ea4e378c8d9e530edadd4a3315fe9e8acc98460b
[ "Apache-2.0" ]
null
null
null
GeneratePassword/generate_password_v2.py
OneScreenfulOfPython/screenfuls
ea4e378c8d9e530edadd4a3315fe9e8acc98460b
[ "Apache-2.0" ]
null
null
null
import os, sys import random import string try: # Make Python2 work like Python3 input = raw_input except NameError: # On Python3; already using input pass letters = string.ascii_letters numbers = string.digits punctuation = string.punctuation def generate(password_length, at_least_one_letter, at_lea...
33.5
108
0.658138
0
0
0
0
0
0
0
0
1,139
0.404762
b93a4101b4ff85c90fbde08405fbe7515b2816bd
17,093
py
Python
bot/jobs/thorchain_node_jobs.py
block42-blockchain-company/thornode-telegram-bot
6478b1eb41e36c5fdd327b963b55343de1ce5337
[ "MIT" ]
15
2020-04-21T07:51:26.000Z
2021-11-02T05:45:48.000Z
bot/jobs/thorchain_node_jobs.py
block42-blockchain-company/thornode-telegram-bot
6478b1eb41e36c5fdd327b963b55343de1ce5337
[ "MIT" ]
78
2020-04-13T23:01:16.000Z
2021-05-09T11:46:25.000Z
bot/jobs/thorchain_node_jobs.py
block42-blockchain-company/thornode-telegram-bot
6478b1eb41e36c5fdd327b963b55343de1ce5337
[ "MIT" ]
5
2020-09-03T21:19:16.000Z
2021-11-20T00:17:56.000Z
from constants.messages import get_node_health_warning_message, get_node_healthy_again_message from handlers.chat_helpers import try_message_with_home_menu, try_message_to_all_users from packaging import version from service.utils import * def check_thornodes(context): chat_id = context.job.context['chat_id'] ...
43.164141
126
0.600889
0
0
0
0
0
0
0
0
4,701
0.273728
b93aaafe8012e07a3a1b7cd6bfac2b4027e51ebd
3,760
py
Python
hard-gists/7578539/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/7578539/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/7578539/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
from pylab import * from numpy import * from numpy.linalg import solve from scipy.integrate import odeint from scipy.stats import norm, uniform, beta from scipy.special import jacobi a = 0.0 b = 3.0 theta=1.0 sigma=sqrt(theta/(2*(a+b+2))) tscale = 0.05 invariant_distribution = poly1d( [-1 for x in range(int(a))], ...
27.246377
109
0.611702
0
0
0
0
0
0
0
0
148
0.039362
b93b21d31a5eecb527d2b3ad7f00cf5d4683d661
1,535
py
Python
forms.py
lennykioko/Flask-social-network
15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65
[ "MIT" ]
1
2018-04-15T19:35:54.000Z
2018-04-15T19:35:54.000Z
forms.py
lennykioko/Flask-social-network
15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65
[ "MIT" ]
null
null
null
forms.py
lennykioko/Flask-social-network
15bfe1f7dca90074c0cbef62c5da9d5a25b5ce65
[ "MIT" ]
null
null
null
# forms are not just about display, instead they are more of validation # wtf forms protect our site against csrf attacks from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, TextAreaField from wtforms.validators import (DataRequired, Regexp, ValidationError, Email, Length, EqualTo...
25.583333
85
0.712704
867
0.564821
0
0
0
0
0
0
403
0.262541
b93b8add4495a7de42fb7a036f7ba8c5ddea0d87
1,508
py
Python
pantam_cli/utils/messages.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
2
2020-10-04T10:29:43.000Z
2021-03-30T13:45:09.000Z
pantam_cli/utils/messages.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
null
null
null
pantam_cli/utils/messages.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
null
null
null
from sys import stderr, stdout from enum import Enum from colored import fg, attr PANTAM: str = fg("yellow") + attr("bold") + "PANTAM" + attr("reset") colour_msg = lambda msg, colour: fg(colour) + attr("bold") + msg + attr("reset") info_msg = lambda msg: colour_msg(msg, "blue") success_msg = lambda msg: colour_msg(ms...
24.322581
80
0.671088
62
0.041114
0
0
0
0
0
0
482
0.319629
b93da1b1bbce8a3e5fafae55f093b2f5323fb641
2,510
py
Python
tests/manage/test_remove_mon_from_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
tests/manage/test_remove_mon_from_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
tests/manage/test_remove_mon_from_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
""" A Testcase to remove mon from when I/O's are happening. Polarion-ID- OCS-355 """ import logging import pytest from ocs_ci.ocs import ocp, constants from ocs_ci.framework.testlib import tier4, ManageTest from ocs_ci.framework import config from ocs_ci.ocs.resources import pod from tests.helpers import run_io_with...
29.529412
94
0.688446
1,008
0.401594
0
0
1,605
0.639442
0
0
838
0.333865
b93f9ebd7406695d9627c10b5f85877c35692320
2,690
py
Python
smartystreets_python_sdk/us_autocomplete_pro/client.py
Caaz/smartystreets-python-sdk
f56cd00d29861bde297143c128f79a4b1d89541c
[ "Apache-2.0" ]
null
null
null
smartystreets_python_sdk/us_autocomplete_pro/client.py
Caaz/smartystreets-python-sdk
f56cd00d29861bde297143c128f79a4b1d89541c
[ "Apache-2.0" ]
null
null
null
smartystreets_python_sdk/us_autocomplete_pro/client.py
Caaz/smartystreets-python-sdk
f56cd00d29861bde297143c128f79a4b1d89541c
[ "Apache-2.0" ]
null
null
null
from smartystreets_python_sdk import Request from smartystreets_python_sdk.exceptions import SmartyException from smartystreets_python_sdk.us_autocomplete_pro import Suggestion, geolocation_type class Client: def __init__(self, sender, serializer): """ It is recommended to instantiate this class u...
42.03125
112
0.717472
2,492
0.926394
0
0
394
0.146468
0
0
530
0.197026
b94044f865f05e0aee9b401bba3907e01e40ff6c
11,578
py
Python
mssqlvc.py
Saritasa/mssqlvc
836caeea59cc0ed23234687b94062e007707c603
[ "BSD-2-Clause" ]
2
2016-09-22T04:36:46.000Z
2018-07-31T21:36:42.000Z
mssqlvc.py
Saritasa/mssqlvc
836caeea59cc0ed23234687b94062e007707c603
[ "BSD-2-Clause" ]
1
2016-02-02T07:58:29.000Z
2016-02-02T14:19:18.000Z
mssqlvc.py
krasninja/mssqlvc
836caeea59cc0ed23234687b94062e007707c603
[ "BSD-2-Clause" ]
2
2016-09-21T09:48:44.000Z
2020-03-24T15:59:54.000Z
# -*- coding: utf-8 -*- """ mssqlvc ~~~~~~~ Database version control utility for Microsoft SQL Server. See README.md for more information. Licensed under the BSD license. See LICENSE file in the project root for full license information. """ import argparse import datetime import io import logging im...
39.515358
121
0.640266
7,163
0.618673
0
0
704
0.060805
0
0
3,617
0.312403
b9408aacd4d750c790ebb27107e026e183ea1d35
4,296
py
Python
lib/python3.6/site-packages/statsmodels/iolib/tests/test_table_econpy.py
KshitizSharmaV/Quant_Platform_Python
d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39
[ "BSD-3-Clause" ]
1
2020-05-09T08:42:52.000Z
2020-05-09T08:42:52.000Z
statsmodels/iolib/tests/test_table_econpy.py
yanzhenxiong/statsmodels
e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0
[ "BSD-3-Clause" ]
null
null
null
statsmodels/iolib/tests/test_table_econpy.py
yanzhenxiong/statsmodels
e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0
[ "BSD-3-Clause" ]
1
2020-05-09T08:42:58.000Z
2020-05-09T08:42:58.000Z
''' Unit tests table.py. :see: http://docs.python.org/lib/minimal-example.html for an intro to unittest :see: http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html :see: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305292 ''' from __future__ import absolute_import from statsmodel...
30.041958
261
0.573091
2,781
0.647346
0
0
0
0
0
0
2,019
0.469972
b9409e44daa0d7a262748b347f053c849e397b73
291
py
Python
homeassistant/components/todoist/types.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/todoist/types.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/todoist/types.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Types for the Todoist component.""" from __future__ import annotations from typing import TypedDict class DueDate(TypedDict): """Dict representing a due date in a todoist api response.""" date: str is_recurring: bool lang: str string: str timezone: str | None
19.4
65
0.697595
184
0.632302
0
0
0
0
0
0
99
0.340206
b9417eb816defb8a05e4de472fa5d06b0845774d
4,237
py
Python
src/c/c_pyzstd.py
corneliusroemer/pyzstd
06f14ad29735d9ae85c188703dcb64c24686c4f2
[ "BSD-3-Clause" ]
29
2020-10-13T03:35:37.000Z
2022-03-14T11:09:47.000Z
src/c/c_pyzstd.py
corneliusroemer/pyzstd
06f14ad29735d9ae85c188703dcb64c24686c4f2
[ "BSD-3-Clause" ]
12
2020-12-22T02:27:47.000Z
2022-03-18T14:54:33.000Z
src/c/c_pyzstd.py
corneliusroemer/pyzstd
06f14ad29735d9ae85c188703dcb64c24686c4f2
[ "BSD-3-Clause" ]
3
2020-11-21T20:57:10.000Z
2021-09-26T01:14:44.000Z
from collections import namedtuple from enum import IntEnum from ._zstd import * from . import _zstd __all__ = (# From this file 'compressionLevel_values', 'get_frame_info', 'CParameter', 'DParameter', 'Strategy', # From _zstd 'ZstdCompressor', 'RichMemZstdCompressor', ...
36.213675
80
0.663441
2,203
0.519943
0
0
0
0
0
0
1,632
0.385178
b941e493bd72a0cc29b7f5487a4bd483b40a8fe3
4,414
py
Python
test/unit/data/model/mapping/common.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
test/unit/data/model/mapping/common.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
test/unit/data/model/mapping/common.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
from abc import ABC, abstractmethod from contextlib import contextmanager from uuid import uuid4 import pytest from sqlalchemy import ( delete, select, UniqueConstraint, ) class AbstractBaseTest(ABC): @pytest.fixture def cls_(self): """ Return class under test. Assumptions...
31.084507
98
0.677843
464
0.10512
756
0.171273
1,076
0.24377
0
0
1,494
0.338469
b9421dbb7e263a5a3de9a9e29e270b09ceba630c
1,004
py
Python
django_events/users/management/commands/create_default_su.py
chrisBrookes93/django-events-management
93886448a7bb85c8758324977ff67bcacc80bbec
[ "MIT" ]
null
null
null
django_events/users/management/commands/create_default_su.py
chrisBrookes93/django-events-management
93886448a7bb85c8758324977ff67bcacc80bbec
[ "MIT" ]
null
null
null
django_events/users/management/commands/create_default_su.py
chrisBrookes93/django-events-management
93886448a7bb85c8758324977ff67bcacc80bbec
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model class Command(BaseCommand): help = "Creates a default super user if one doesn't already exist. " \ "This is designed to be used in the docker-compose.yml to create an initial super user on deploymen...
41.833333
114
0.661355
897
0.893426
0
0
0
0
0
0
492
0.49004
b942ff3dafb5c886434a478e8bfb0592e83afd1c
6,215
bzl
Python
antlir/bzl/image_layer.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
28
2020-08-11T16:22:46.000Z
2022-03-04T15:41:52.000Z
antlir/bzl/image_layer.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
137
2020-08-11T16:07:49.000Z
2022-02-27T10:59:05.000Z
antlir/bzl/image_layer.bzl
zeroxoneb/antlir
811d88965610d16a5c85d831d317f087797ca732
[ "MIT" ]
10
2020-09-10T00:01:28.000Z
2022-03-08T18:00:28.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. """ An `image.layer` is a set of `feature` with some additional parameters. Its purpose to materialize those `feature`s as a btrfs subvolume ...
44.078014
79
0.740628
0
0
0
0
0
0
0
0
5,488
0.883025
b943636ba1006005819134b02620af2faa23d559
84
py
Python
python/testData/debug/test_ignore_lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/debug/test_ignore_lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/debug/test_ignore_lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from calendar import setfirstweekday stopped_in_user_file = True setfirstweekday(15)
28
36
0.880952
0
0
0
0
0
0
0
0
0
0
b9443b673da6e4fd8c252e11eba4606e69192845
1,036
py
Python
promt_tr/__main__.py
ffreemt/promt-tr-free
ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee
[ "MIT" ]
null
null
null
promt_tr/__main__.py
ffreemt/promt-tr-free
ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee
[ "MIT" ]
null
null
null
promt_tr/__main__.py
ffreemt/promt-tr-free
ff20b0f176f9611fa5a834af5aeaa9ef6ca3a3ee
[ "MIT" ]
null
null
null
''' __main__, to run: python -m promt_tr ''' import sys from random import randint from promt_tr import promt_tr, LANG_CODES # pragma: no cover def main(): '''main''' from_lang = 'auto' to_lang = 'zh' text = 'test ' + str(randint(0, 10000)) if not sys.argv[1:]: print('Provide some Engli...
23.545455
68
0.527027
0
0
0
0
0
0
0
0
306
0.295367
b9458ab72f55b4db845f6d76e44dba3b00e000ed
6,265
py
Python
src/features/v3/proc_v3_n1_calc_distance.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
src/features/v3/proc_v3_n1_calc_distance.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
src/features/v3/proc_v3_n1_calc_distance.py
askoki/nfl_dpi_prediction
dc3256f24ddc0b6725eace2081d1fb1a7e5ce805
[ "MIT" ]
null
null
null
import os import sys import pandas as pd from datetime import datetime from settings import RAW_DATA_DIR, DataV3, DATA_V3_SUBVERSION from src.features.helpers.processing import add_missing_timestamp_values from src.features.helpers.processing_v3 import get_closest_players, get_players_and_ball_indices, calculate_distan...
35.596591
119
0.675499
0
0
0
0
0
0
0
0
1,443
0.230327
b945e094a775936b9b256c03b9ad1404cebcb291
1,312
py
Python
annotate-preprocessed.py
Rajpratik71/devel-scripts
068285719a13b02889b1314361cc5bdb764d9a3a
[ "Apache-2.0" ]
null
null
null
annotate-preprocessed.py
Rajpratik71/devel-scripts
068285719a13b02889b1314361cc5bdb764d9a3a
[ "Apache-2.0" ]
null
null
null
annotate-preprocessed.py
Rajpratik71/devel-scripts
068285719a13b02889b1314361cc5bdb764d9a3a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Annotates -E preprocessed source input with line numbers. Read std input, then annotate each line with line number based on previous expanded line directives from -E output. Useful in the context of compiler debugging. """ import getopt import os import re import sys import script_utils as u ...
19.014493
74
0.636433
0
0
0
0
0
0
0
0
525
0.400152
b94613d2fb24bf9487b3045eae02b837543d3647
2,547
py
Python
pages/lstm.py
tekeburak/dam-occupancy-model
f39d436bf27088068177245f0180cafaa56ad123
[ "MIT" ]
8
2021-01-24T14:56:23.000Z
2021-03-26T18:10:33.000Z
pages/lstm.py
tekeburak/dam-occupancy-model
f39d436bf27088068177245f0180cafaa56ad123
[ "MIT" ]
null
null
null
pages/lstm.py
tekeburak/dam-occupancy-model
f39d436bf27088068177245f0180cafaa56ad123
[ "MIT" ]
6
2021-01-24T14:44:49.000Z
2021-03-21T17:50:30.000Z
import streamlit as st import tensorflow as tf import numpy from utils.get_owm_data import get_open_weather_map_data from utils.get_date import get_date_list_for_gmt import plotly.graph_objects as go from plotly import tools import plotly.offline as py import plotly.express as px def app(): st.title("LSTM Model") ...
50.94
476
0.773852
0
0
0
0
0
0
0
0
1,420
0.5573
b9475ee1123a7f8c87eb161ddf2246d4b5a64a79
1,847
py
Python
fst_web/demo_settings.py
kamidev/autobuild_fst
6baffa955075ffe3c5f197789e9fd065fa74058e
[ "BSD-3-Clause" ]
null
null
null
fst_web/demo_settings.py
kamidev/autobuild_fst
6baffa955075ffe3c5f197789e9fd065fa74058e
[ "BSD-3-Clause" ]
null
null
null
fst_web/demo_settings.py
kamidev/autobuild_fst
6baffa955075ffe3c5f197789e9fd065fa74058e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os ROOT = os.path.abspath(os.path.dirname(__file__)) path = lambda *args: os.path.join(ROOT, *args) """ Template for local settings of the FST webservice (fst_web) Please edit this file and replace all generic values with values suitable to your particular installation. """ # NOTE! Al...
28.415385
76
0.721711
0
0
0
0
0
0
0
0
1,302
0.704927
b947d963b017c12ec37d222b3722de432bf97da6
8,891
py
Python
BookingScraper-joao_v2/BookingScraper/airbnb.py
joaocamargo/estudos-python
c5fbf59a1f06131d9789dca7dbdfdcf2200d0227
[ "MIT" ]
1
2019-10-09T12:56:13.000Z
2019-10-09T12:56:13.000Z
BookingScraper-joao_v2/BookingScraper/airbnb.py
joaocamargo/estudos-python
c5fbf59a1f06131d9789dca7dbdfdcf2200d0227
[ "MIT" ]
null
null
null
BookingScraper-joao_v2/BookingScraper/airbnb.py
joaocamargo/estudos-python
c5fbf59a1f06131d9789dca7dbdfdcf2200d0227
[ "MIT" ]
null
null
null
#! /usr/bin/env python3.6 import argparse import argcomplete from argcomplete.completers import ChoicesCompleter from argcomplete.completers import EnvironCompleter import requests from bthread import BookingThread from bs4 import BeautifulSoup from file_writer import FileWriter hotels = [] def get_countries(): ...
37.995726
250
0.576313
0
0
0
0
0
0
0
0
3,665
0.412122
b94890b4860019fd993040c0790c0701fc24a0c5
2,919
py
Python
main.py
valurhrafn/chromium-sync
df5e3299d179fc47ff34d1a95409383f46aac4d4
[ "MIT" ]
4
2017-03-27T02:25:07.000Z
2021-03-07T21:40:58.000Z
main.py
valurhrafn/chromium-sync
df5e3299d179fc47ff34d1a95409383f46aac4d4
[ "MIT" ]
null
null
null
main.py
valurhrafn/chromium-sync
df5e3299d179fc47ff34d1a95409383f46aac4d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
30.40625
74
0.647825
1,838
0.629668
0
0
110
0.037684
0
0
1,356
0.464543
b94a534d42db78fa886439d7fdfdf20e0f8b2504
1,434
py
Python
comet/service/subscriber.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
15
2015-11-29T18:53:58.000Z
2022-03-09T15:47:30.000Z
comet/service/subscriber.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
29
2016-01-21T18:10:45.000Z
2021-10-01T16:41:12.000Z
comet/service/subscriber.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
11
2016-01-22T14:05:51.000Z
2022-03-09T17:49:56.000Z
# Comet VOEvent Broker. from twisted.application.internet import ClientService from comet.protocol.subscriber import VOEventSubscriberFactory __all__ = ["makeSubscriberService"] def makeSubscriberService(endpoint, local_ivo, validators, handlers, filters): """Create a reconnecting VOEvent subscriber service. ...
35.85
80
0.727336
0
0
0
0
0
0
0
0
1,065
0.742678
b94c3a86b197fdae8da6f36cf6af0eeecde07155
13,008
py
Python
scripts/master/cros_try_job_git.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/master/cros_try_job_git.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
scripts/master/cros_try_job_git.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import base64 import json import os import re import shutil import zlib from StringIO import StringIO try: # Create a block to work around evil sys.m...
37.165714
80
0.676661
11,525
0.885993
2,036
0.156519
2,780
0.213715
0
0
5,615
0.431657
b94d43136b5079271270c2099bbeca811ff9b1ce
1,412
py
Python
Medium/515.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/515.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/515.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 515. Find Largest Value in Each Tree Row # # Description: # You need to find the largest value in each row of a binary tree. # Example: # Input: # 1 # / \ # 3 2 # / \ \ # 5 3 9 # Output: [1, 3, 9] # # Version: 1.0 # 12/22/18 by Jia...
23.147541
66
0.434136
761
0.538952
0
0
0
0
0
0
697
0.493626
b94d5a11e77235531376a017f673e8c5a0fdf637
9,578
py
Python
opsmop/meta/docs/exparser.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
opsmop/meta/docs/exparser.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
opsmop/meta/docs/exparser.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Michael DeHaan LLC, <[email protected]> # # 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...
37.708661
90
0.516914
8,951
0.934537
0
0
403
0.042076
0
0
3,475
0.362811
b94dd4c5db15c696e937d22b21b3d1a6fd038ef8
737
py
Python
pylox/TokenType.py
sheunl/Compiler_Tests
18c5e0568bc39a60094f3e44943ac252c279ffb9
[ "CC0-1.0" ]
null
null
null
pylox/TokenType.py
sheunl/Compiler_Tests
18c5e0568bc39a60094f3e44943ac252c279ffb9
[ "CC0-1.0" ]
null
null
null
pylox/TokenType.py
sheunl/Compiler_Tests
18c5e0568bc39a60094f3e44943ac252c279ffb9
[ "CC0-1.0" ]
null
null
null
from enum import Enum class T(Enum): #single character Tokens LEFT_PAREN =1 RIGHT_PAREN =2 LEFT_BRACE = 3 RIGHT_BRACE = 4 COMMA = 5 DOT = 6 MINUS = 7 PLUS = 8 SEMICOLON = 9 SLASH = 10 STAR = 11 #one or two character tokens BANG = 12 BANG_EQUAL = 13 EQ...
14.45098
32
0.522388
713
0.967436
0
0
0
0
0
0
70
0.09498
b94e05939494c3c75adce95bb694899b36d0a091
919
py
Python
src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py
dios-game/dios-cocos
b7fbcbafe02f516ef18fdb64b4519dbf806303fc
[ "MIT" ]
1
2021-07-22T15:53:26.000Z
2021-07-22T15:53:26.000Z
src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py
dios-game/dios-cocos
b7fbcbafe02f516ef18fdb64b4519dbf806303fc
[ "MIT" ]
null
null
null
src/oslibs/cocos/cocos-src/tools/cocos2d-console/plugins/framework/framework_add.py
dios-game/dios-cocos
b7fbcbafe02f516ef18fdb64b4519dbf806303fc
[ "MIT" ]
null
null
null
import cocos from MultiLanguage import MultiLanguage from package.helper import ProjectHelper class FrameworkAdd(cocos.CCPlugin): @staticmethod def plugin_name(): return "add-framework" @staticmethod def brief_description(): return MultiLanguage.get_string('FRAMEWORK_ADD_BRIEF') ...
28.71875
108
0.686616
820
0.892274
0
0
172
0.18716
0
0
99
0.107726
b9514946d8170f94e426e1cbf736a481d8427c11
761
py
Python
src/utils.py
f-grimaldi/explain_ML
00892675be32bebd023b274270ccb05b798fb388
[ "MIT" ]
1
2020-08-03T08:23:31.000Z
2020-08-03T08:23:31.000Z
src/utils.py
f-grimaldi/explain_ML
00892675be32bebd023b274270ccb05b798fb388
[ "MIT" ]
null
null
null
src/utils.py
f-grimaldi/explain_ML
00892675be32bebd023b274270ccb05b798fb388
[ "MIT" ]
null
null
null
from matplotlib import colors import numpy as np class SaveOutput: def __init__(self): self.outputs = [] def __call__(self, module, module_in, module_out): self.outputs.append(module_out) def clear(self): self.outputs = [] class MidpointNormalize(colors.Normalize): def __init...
31.708333
89
0.659658
708
0.930355
0
0
0
0
0
0
85
0.111695
b9516c7b124e87fce1712aca1aa49ef2cd923f11
3,056
py
Python
lib/two/mongomgr.py
erkyrath/tworld
9f5237771196b03753d027277ffc296e25fd7425
[ "MIT" ]
38
2015-01-03T16:59:20.000Z
2021-10-13T09:15:53.000Z
lib/two/mongomgr.py
Oreolek/tworld
9f5237771196b03753d027277ffc296e25fd7425
[ "MIT" ]
32
2015-01-04T01:59:34.000Z
2016-05-20T16:29:26.000Z
lib/two/mongomgr.py
Oreolek/tworld
9f5237771196b03753d027277ffc296e25fd7425
[ "MIT" ]
7
2015-10-08T21:01:20.000Z
2020-05-21T17:42:54.000Z
""" Manage the connection to the MongoDB server. """ import tornado.gen import tornado.ioloop import motor class MongoMgr(object): def __init__(self, app): # Keep a link to the owning application. self.app = app self.log = self.app.log # This will be the Motor (MongoDB) c...
35.534884
97
0.576571
2,943
0.963024
1,556
0.509162
1,583
0.517997
0
0
914
0.299084
b9530c0fbf29c36506820a41f0b32bd37796d3e0
1,298
py
Python
code/examples/example_binomial_and_log_normal_abtest.py
hugopibernat/BayesianABTestAnalysis
026960524f5313f4a734f30fd447a5731be802e0
[ "Apache-2.0" ]
null
null
null
code/examples/example_binomial_and_log_normal_abtest.py
hugopibernat/BayesianABTestAnalysis
026960524f5313f4a734f30fd447a5731be802e0
[ "Apache-2.0" ]
null
null
null
code/examples/example_binomial_and_log_normal_abtest.py
hugopibernat/BayesianABTestAnalysis
026960524f5313f4a734f30fd447a5731be802e0
[ "Apache-2.0" ]
null
null
null
################################################# ####### Author: Hugo Pibernat ####### ####### Contact: [email protected] ####### ####### Date: April 2014 ####### ################################################# from bayesianABTest import sampleSuccessRateForBinomial, sampleMeanF...
32.45
106
0.692604
0
0
0
0
0
0
0
0
401
0.308937
b95332c99e63e536863282307e578d423edf7664
644
py
Python
tests/models/test_documents.py
airslate-oss/python-airslate
0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d
[ "Apache-2.0" ]
3
2021-02-07T20:04:26.000Z
2021-09-22T08:32:26.000Z
tests/models/test_documents.py
airslate-oss/python-airslate
0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d
[ "Apache-2.0" ]
15
2021-01-21T15:38:37.000Z
2021-02-16T07:52:20.000Z
tests/models/test_documents.py
airslate-oss/python-airslate
0f7fe6321b1c2e6875a02dfecb5ffa07a361bb1d
[ "Apache-2.0" ]
null
null
null
# This file is part of the airslate. # # Copyright (c) 2021 airSlate, Inc. # # For the full copyright and license information, please view # the LICENSE file that was distributed with this source code. from airslate.models.documents import UpdateFields from airslate.entities.fields import Field def test_empty_update...
28
62
0.677019
0
0
0
0
0
0
0
0
272
0.42236
b953812809c13031070133a7849795278b13dea4
111
py
Python
sim/dynamicobject.py
rseed42/labyrinth
1cd4dc74c67b1b76972e1e048a7fce0c13955e7d
[ "Apache-2.0" ]
null
null
null
sim/dynamicobject.py
rseed42/labyrinth
1cd4dc74c67b1b76972e1e048a7fce0c13955e7d
[ "Apache-2.0" ]
null
null
null
sim/dynamicobject.py
rseed42/labyrinth
1cd4dc74c67b1b76972e1e048a7fce0c13955e7d
[ "Apache-2.0" ]
null
null
null
class DynamicObject(object): def __init__(self, name, id_): self.name = name self.id = id_
22.2
34
0.603604
110
0.990991
0
0
0
0
0
0
0
0
b95403252db42b0394653a122fd73b2b596e194d
400
py
Python
app/main.py
meysam81/sheypoor
aa67e20646ebc4143b83968f60c0b28c2ad340a1
[ "MIT" ]
null
null
null
app/main.py
meysam81/sheypoor
aa67e20646ebc4143b83968f60c0b28c2ad340a1
[ "MIT" ]
null
null
null
app/main.py
meysam81/sheypoor
aa67e20646ebc4143b83968f60c0b28c2ad340a1
[ "MIT" ]
null
null
null
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app import api from app.core.config import config app = FastAPI(title="Sheypoor") # Set all CORS enabled origins app.add_middleware( CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], ...
21.052632
53
0.7425
0
0
0
0
0
0
0
0
49
0.1225
b9556579b31dd7d2370d8083a431ada02beb471d
2,205
py
Python
cdnu/ccds.py
Indy2222/mbg-codon-usage
d415076a8150cd712010c0389c71ef22ba9ad850
[ "MIT" ]
null
null
null
cdnu/ccds.py
Indy2222/mbg-codon-usage
d415076a8150cd712010c0389c71ef22ba9ad850
[ "MIT" ]
null
null
null
cdnu/ccds.py
Indy2222/mbg-codon-usage
d415076a8150cd712010c0389c71ef22ba9ad850
[ "MIT" ]
null
null
null
from typing import List, NamedTuple CCDS_FILE = 'CCDS.current.txt' CHROMOSOMES = ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', 'X', 'Y') class CdsPos(NamedTuple): ccds_id: str indexes: list """2-t...
30.205479
77
0.502494
297
0.134694
0
0
0
0
0
0
628
0.284807
b9576be4fad430a84f92a2e3dc9d1b34f113118c
2,732
py
Python
test/test_resolve_errors.py
ITMO-NSS-team/GEFEST
72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669
[ "BSD-3-Clause" ]
12
2022-01-19T11:06:32.000Z
2022-02-21T14:59:23.000Z
test/test_resolve_errors.py
ITMO-NSS-team/GEFEST
72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669
[ "BSD-3-Clause" ]
9
2022-01-19T11:09:11.000Z
2022-03-29T13:36:41.000Z
test/test_resolve_errors.py
ITMO-NSS-team/GEFEST
72bb61cf3fbb9f87fe3dcd48b71f3e84dd23b669
[ "BSD-3-Clause" ]
2
2022-01-19T11:37:24.000Z
2022-03-24T19:35:33.000Z
import pytest from copy import deepcopy from gefest.core.structure.point import Point from gefest.core.structure.polygon import Polygon from gefest.core.structure.structure import Structure from gefest.core.algs.postproc.resolve_errors import * from gefest.core.algs.geom.validation import * # marking length and width...
37.424658
107
0.739019
0
0
0
0
0
0
0
0
176
0.064422
b959064c37513b8eabaf61132941fe714e3a8dbc
1,833
py
Python
tests/mocks.py
davla/i3-live-tree
8dc3917afdd09f53f7cf39653c2bf12cb0200983
[ "MIT" ]
1
2021-07-22T09:04:46.000Z
2021-07-22T09:04:46.000Z
tests/mocks.py
davla/i3-live-tree
8dc3917afdd09f53f7cf39653c2bf12cb0200983
[ "MIT" ]
null
null
null
tests/mocks.py
davla/i3-live-tree
8dc3917afdd09f53f7cf39653c2bf12cb0200983
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, Mock from i3ipc.aio import Con import i3_live_tree.tree_serializer # noqa: F401 class MockConSerializer(Mock, Con): """Mock a generic i3ipc.aio.Con for serialization purposes This Mock is meant to ease testing of i3ipc.aio.Con serialization methods, which are mokey...
30.55
78
0.67485
1,704
0.929624
0
0
0
0
98
0.053464
963
0.525368
b95a54ae27c88b1a727a1742ed1880093d3693e0
971
py
Python
hvac/api/secrets_engines/gcp.py
nested-tech/hvac
2a58ac9850b882e43c1617ae6b0ea93104c99794
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/gcp.py
nested-tech/hvac
2a58ac9850b882e43c1617ae6b0ea93104c99794
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/gcp.py
nested-tech/hvac
2a58ac9850b882e43c1617ae6b0ea93104c99794
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Gcp methods module.""" from hvac import exceptions from hvac.api.vault_api_base import VaultApiBase from hvac.constants.gcp import DEFAULT_MOUNT_POINT, ALLOWED_CREDS_ENDPOINTS class Gcp(VaultApiBase): def generate_credentials(self, roleset, endpoint='key', mount_p...
34.678571
108
0.652935
743
0.765191
0
0
0
0
0
0
202
0.208033
b95b84a26deaf7cd8b371b13b34ee9e7005ee7c0
9,155
py
Python
ypricemagic/uniswap.py
poolpitako/ypricemagic
882aa2071a918937e77e0b85e5f52191a4714d28
[ "MIT" ]
null
null
null
ypricemagic/uniswap.py
poolpitako/ypricemagic
882aa2071a918937e77e0b85e5f52191a4714d28
[ "MIT" ]
null
null
null
ypricemagic/uniswap.py
poolpitako/ypricemagic
882aa2071a918937e77e0b85e5f52191a4714d28
[ "MIT" ]
null
null
null
import token from tokenize import tokenize from brownie import Contract, chain from brownie.exceptions import ContractNotFound from cachetools.func import ttl_cache from .utils.cache import memory from .utils.multicall2 import fetch_multicall from .interfaces.ERC20 import ERC20ABI import ypricemagic.magic import yprice...
43.388626
205
0.68935
0
0
0
0
5,327
0.581868
0
0
2,885
0.315128
b95bf173c71497f893fb19ff1c8e2576967d5c36
611
py
Python
configs/configuration_textrnn.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
2
2020-08-19T12:32:21.000Z
2021-11-08T15:50:08.000Z
configs/configuration_textrnn.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
null
null
null
configs/configuration_textrnn.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
1
2020-08-19T12:32:48.000Z
2020-08-19T12:32:48.000Z
""" TextRNN model configuration """ class TextRNNConfig(object): def __init__( self, vocab_size=30000, pretrained_embedding=None, embedding_matrix=None, embedding_dim=300, embedding_dropout=0.3, lstm_hidden_size=128, output_dim=1, **kwargs ...
27.772727
56
0.657938
573
0.937807
0
0
0
0
0
0
35
0.057283
b95cfef2234f9a61adbaa0afe2564f0d012dea38
38
py
Python
settings/debug_members.py
akorzunin/telegram_auction_bot
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
[ "Apache-2.0" ]
null
null
null
settings/debug_members.py
akorzunin/telegram_auction_bot
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
[ "Apache-2.0" ]
null
null
null
settings/debug_members.py
akorzunin/telegram_auction_bot
d4d5042614ea11f8085815d8f9fb8b6fbebcfab0
[ "Apache-2.0" ]
null
null
null
DEBUG_MEMBER_LIST = [ 503131177, ]
12.666667
21
0.684211
0
0
0
0
0
0
0
0
0
0
b95d4a692bcb2991f35a3f589cde3570c4033e09
29,218
py
Python
metrics/pointops/pointops_util.py
JiazeWang/SP-GAN
455003f78b1160ebe0a2056005b069808c0df35b
[ "MIT" ]
73
2021-05-11T12:00:29.000Z
2022-03-31T09:40:12.000Z
metrics/pointops/pointops_util.py
JiazeWang/SP-GAN
455003f78b1160ebe0a2056005b069808c0df35b
[ "MIT" ]
6
2021-08-18T13:03:43.000Z
2022-03-30T04:48:29.000Z
metrics/pointops/pointops_util.py
JiazeWang/SP-GAN
455003f78b1160ebe0a2056005b069808c0df35b
[ "MIT" ]
13
2021-08-28T20:09:13.000Z
2022-03-20T12:42:51.000Z
from typing import Tuple import torch from torch.autograd import Function import torch.nn as nn from metrics.pointops import pointops_cuda import numpy as np class FurthestSampling(Function): @staticmethod def forward(ctx, xyz, m): """ input: xyz: (b, n, 3) and n > m, m: int32 outpu...
37.458974
145
0.585906
27,776
0.950647
0
0
14,171
0.485009
0
0
10,024
0.343076
b95d5c160689db0e0a64a0a455645d72081698d5
2,992
py
Python
core/src/zeit/cms/content/caching.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/cms/content/caching.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/cms/content/caching.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
from collections import defaultdict from logging import getLogger from operator import itemgetter from os import environ from time import time from zope.cachedescriptors.property import Lazy as cachedproperty from zeit.cms.content.sources import FEATURE_TOGGLES from zope.component import getUtility from zeit.connector....
32.521739
78
0.57988
2,499
0.835227
0
0
827
0.276404
0
0
235
0.078543
b95e87663683cd1ca4cf5da88872ac29da6e83c7
1,177
py
Python
genesis/project.py
genialis/genesis-genapi
dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a
[ "Apache-2.0" ]
3
2020-01-24T17:03:23.000Z
2021-03-16T03:20:31.000Z
genesis/project.py
genialis/genesis-genapi
dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a
[ "Apache-2.0" ]
1
2018-02-15T19:33:00.000Z
2018-02-15T19:33:00.000Z
genesis/project.py
genialis/genesis-genapi
dfe9bcc8b332a8b9873db4ab9994b0cc10eb209a
[ "Apache-2.0" ]
6
2015-05-27T10:14:46.000Z
2021-01-01T06:35:40.000Z
"""Project""" from __future__ import absolute_import, division, print_function, unicode_literals class GenProject(object): """Genesais project annotation.""" def __init__(self, data, gencloud): for field in data: setattr(self, field, data[field]) self.gencloud = gencloud ...
30.973684
84
0.619371
1,077
0.915038
0
0
0
0
0
0
256
0.217502