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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed3f22bc9cd6901491dd74a1964aa19636812550 | 581 | py | Python | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | 18 | 2021-04-20T17:03:20.000Z | 2022-03-12T05:56:24.000Z | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | null | null | null | tools/test_net.py | by-liu/SegLossBia | 9cc639c04084cda9d5fb20ea34699db7e0beaf5c | [
"MIT"
] | 1 | 2021-07-08T17:44:15.000Z | 2021-07-08T17:44:15.000Z | import sys
import logging
from seglossbias.utils import mkdir, setup_logging
from seglossbias.engine import default_argument_parser, load_config, DefaultTester
logger = logging.getLogger(__name__)
def setup(args):
cfg = load_config(args)
mkdir(cfg.OUTPUT_DIR)
setup_logging(output_dir=cfg.OUTPUT_DIR)
... | 20.75 | 82 | 0.717728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 0.055077 |
ed3f423aba07bd3e0294dc5b518080a8998ed87f | 1,047 | py | Python | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | sarpy/io/nitf/tres/unclass/ENGRDA.py | anielsen001/sarpy | 07bf157f54a5304185fc0e1c34010053fd6ae9d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from ..tre_elements import TREExtension, TREElement
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
class RECORD(TREElement):
def __init__(self, value):
super(RECORD, self).__init__()
self.add_field('ENGLN', 'd', 2, value)
self.add_field('ENG... | 29.914286 | 60 | 0.621777 | 890 | 0.850048 | 0 | 0 | 0 | 0 | 0 | 0 | 196 | 0.187202 |
ed402a46ff5fc00fad7e1376b1ab297b4013340b | 7,808 | py | Python | jp_doodle/quantity_forest.py | lingruiluo/jp_doodle | b3935208821898f22ab504c2b26dd4d37f08f0e4 | [
"BSD-2-Clause"
] | 43 | 2018-10-10T08:38:07.000Z | 2022-03-19T22:44:42.000Z | jp_doodle/quantity_forest.py | firmfrol19/jp_doodle | cb34938edaedbe15590ebe8024060dd97bb69fa9 | [
"BSD-2-Clause"
] | 8 | 2018-09-17T19:49:45.000Z | 2020-08-24T15:51:16.000Z | jp_doodle/quantity_forest.py | firmfrol19/jp_doodle | cb34938edaedbe15590ebe8024060dd97bb69fa9 | [
"BSD-2-Clause"
] | 5 | 2019-06-13T15:53:55.000Z | 2020-11-13T01:22:56.000Z | from jp_doodle import doodle_files
qf_js = doodle_files.vendor_path("js/quantity_forest.js")
from jp_doodle import dual_canvas
import jp_proxy_widget
import os
from subprocess import check_output
import pprint
if bytes != str:
unicode = str
def directory_usage(directory, epsilon=0.02):
if not os.path.isdir(di... | 34.702222 | 115 | 0.523309 | 6,538 | 0.837346 | 0 | 0 | 0 | 0 | 0 | 0 | 1,903 | 0.243724 |
ed40391b29c9dd84fbde6dce8cec5a7ba2c96f0b | 3,139 | py | Python | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0035-Search-Insert-Position.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""=================================================================
@Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3
@File : LC-0035-Search-Insert-Position.py
@Author : [YuweiYin](https://github.com/YuweiYin)
@Date : 2022-01-01
============================... | 28.798165 | 107 | 0.572794 | 1,253 | 0.399172 | 0 | 0 | 0 | 0 | 0 | 0 | 1,746 | 0.556228 |
ed4086f481b4822d573ede5f8a9108ee4da236b6 | 290 | py | Python | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | coding202-parsing-json/get-ap-json-1.py | firodj/ciscodevnet-coding-skills-sample-code | 4fca975e450cf0c913001fe1b36582f7a094b1e7 | [
"Apache-2.0"
] | null | null | null | import requests
url = 'https://64.103.26.61/api/contextaware/v1/maps/info/DevNetCampus/DevNetBuilding/DevNetZone'
headers = {'Authorization': 'Basic bGVhcm5pbmc6bGVhcm5pbmc=='}
response = requests.get(url, headers=headers, verify=False)
responseString = response.text
print(responseString)
| 41.428571 | 97 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 139 | 0.47931 |
ed4193bd5735a5283b0caa027d333560a4c2793c | 1,078 | py | Python | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 605 | 2019-10-18T01:15:54.000Z | 2022-03-31T14:31:04.000Z | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 3,180 | 2019-10-18T01:21:21.000Z | 2022-03-31T23:25:41.000Z | lldb/test/API/lang/swift/optimized_code/bound_generic_enum/TestSwiftOptimizedBoundGenericEnum.py | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | 275 | 2019-10-18T05:27:22.000Z | 2022-03-30T09:04:21.000Z | import lldb
from lldbsuite.test.decorators import *
import lldbsuite.test.lldbtest as lldbtest
import lldbsuite.test.lldbutil as lldbutil
import os
import unittest2
class TestSwiftOptimizedBoundGenericEnum(lldbtest.TestBase):
mydir = lldbtest.TestBase.compute_mydir(__file__)
@swiftTest
def test(self):
... | 35.933333 | 79 | 0.705009 | 910 | 0.844156 | 0 | 0 | 789 | 0.731911 | 0 | 0 | 175 | 0.162338 |
ed4253185dfabd501835c1030a3d60a0f1a59215 | 296 | py | Python | kervi/kervi/plugin/routing/kervi_io/__init__.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | kervi/kervi/plugin/routing/kervi_io/__init__.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | kervi/kervi/plugin/routing/kervi_io/__init__.py | wentzlau/kervi | d35a422a6bca6b0ef50a4f9e5c382dece855abdc | [
"MIT"
] | null | null | null | #Copyright 2017 Tim Wentlau.
#Distributed under the MIT License. See LICENSE in root of project.
def init_plugin(config, manager):
from kervi.plugin.routing.kervi_io.mq_router import KerviIORouterPlugin
return KerviIORouterPlugin(config, manager)
def plugin_type():
return "routing" | 32.888889 | 75 | 0.787162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 104 | 0.351351 |
ed42d7a8a9a02745abd1180b0c82d5235e6a3711 | 903 | py | Python | bc_gym_planning_env/envs/base/action.py | ghostFaceKillah/bc-gym-planning-env | 3cc0eb03adb752d304c3f007675cfff86691d007 | [
"MIT"
] | 2 | 2019-04-28T02:26:23.000Z | 2021-12-06T16:04:36.000Z | bc_gym_planning_env/envs/base/action.py | ghostFaceKillah/bc-gym-planning-env | 3cc0eb03adb752d304c3f007675cfff86691d007 | [
"MIT"
] | 7 | 2019-03-12T14:07:40.000Z | 2019-05-02T04:46:30.000Z | bc_gym_planning_env/envs/base/action.py | ghostFaceKillah/bc-gym-planning-env | 3cc0eb03adb752d304c3f007675cfff86691d007 | [
"MIT"
] | 7 | 2019-01-08T08:09:09.000Z | 2022-02-07T09:57:02.000Z | """ Code for wrapping the motion primitive action in an object. """
from __future__ import division
from __future__ import absolute_import
import attr
import numpy as np
from bc_gym_planning_env.utilities.serialize import Serializable
@attr.s(cmp=False)
class Action(Serializable):
""" Object representing an 'ac... | 28.21875 | 100 | 0.713178 | 644 | 0.713178 | 0 | 0 | 663 | 0.734219 | 0 | 0 | 157 | 0.173865 |
ed42fcb801fa38e9585e0b02fe9fd71eff57af66 | 1,863 | py | Python | histogram.py | ccfelius/queueing | c38bd2fe230e52d6166a94449cec28f82e245ec2 | [
"MIT"
] | 1 | 2020-12-10T17:36:40.000Z | 2020-12-10T17:36:40.000Z | histogram.py | ccfelius/queueing | c38bd2fe230e52d6166a94449cec28f82e245ec2 | [
"MIT"
] | null | null | null | histogram.py | ccfelius/queueing | c38bd2fe230e52d6166a94449cec28f82e245ec2 | [
"MIT"
] | 1 | 2021-01-05T13:08:03.000Z | 2021-01-05T13:08:03.000Z | import matplotlib.pyplot as plt
import pandas as pd
import math
import numpy as np
from scipy import stats
import seaborn as sns
data = pd.read_csv("data/500-4.txt", sep="\t")
# example1 = data[data["SIM_TIME"] == 500]
simulations = 500
simtimes = [5, 50, 150, 500, 1000]
# for i in [1, 2, 4]:
# data = pd.read_c... | 30.540984 | 83 | 0.662909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 650 | 0.3489 |
ed4391eec6c0ca45d66a840d1a081ef7d248ea7e | 558 | py | Python | python/1931.py | zheedong/BaekJoon | 7f9e00085276a337d18ee3bb90c98126f7af4d3a | [
"MIT"
] | null | null | null | python/1931.py | zheedong/BaekJoon | 7f9e00085276a337d18ee3bb90c98126f7af4d3a | [
"MIT"
] | null | null | null | python/1931.py | zheedong/BaekJoon | 7f9e00085276a337d18ee3bb90c98126f7af4d3a | [
"MIT"
] | null | null | null | n = int(input())
conf_set = []
for _ in range(n):
conf_set.append(tuple(map(int, input().split())))
conf_set.sort(key=lambda x : (x[1], x[0]))
# 끝나는 시간을 기준으로 정렬
# 시작과 종료가 같은 경우를 포함하기 위해선, 시작 시간도 오름차순으로 정렬해 줘야 한다
solution_list = [conf_set[0]]
# Greedy Algorithm
for conf in conf_set[1:]:
last_conf = solution... | 23.25 | 59 | 0.664875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 300 | 0.417827 |
ed4408c93538d9f83abe75060897c6705abd216b | 2,219 | py | Python | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | 2 | 2017-06-21T15:29:09.000Z | 2022-01-26T21:12:25.000Z | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | null | null | null | social_webpy/app.py | python-social-auth/social-app-webpy | edcfd8dd95c66a3524961e5212e13c9c2e8515a3 | [
"BSD-3-Clause"
] | 1 | 2018-10-21T07:33:36.000Z | 2018-10-21T07:33:36.000Z | import web
from social_core.actions import do_auth, do_complete, do_disconnect
from .utils import psa, load_strategy, load_strategy
urls = (
r'/login/(?P<backend>[^/]+)/?', 'auth',
r'/complete/(?P<backend>[^/]+)/?', 'complete',
r'/disconnect/(?P<backend>[^/]+)/?', 'disconnect',
r'/disconnect/(?P<bac... | 28.818182 | 78 | 0.598918 | 1,784 | 0.803966 | 0 | 0 | 545 | 0.245606 | 0 | 0 | 309 | 0.139252 |
ed4409f82d978378f6be973493d164c3f3a747dd | 2,133 | py | Python | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | stellar/config.py | gomyar/stellar | b2dfbe136f1540f0ca6ac5779ebaeae996a3b747 | [
"MIT"
] | null | null | null | import os
import logging
import yaml
from schema import Use, Schema, SchemaError, Optional
class InvalidConfig(Exception):
pass
class MissingConfig(Exception):
pass
default_config = {
'logging': 30,
'migrate_from_0_3_2': True
}
schema = Schema({
'stellar_url': Use(str),
'url': Use(str),
... | 23.43956 | 70 | 0.554149 | 80 | 0.037506 | 0 | 0 | 0 | 0 | 0 | 0 | 207 | 0.097046 |
ed446ef71ae2d9e250f77adc4d3e36a498ecb373 | 3,239 | py | Python | egs2/mr_openslr64/asr1/local/data_prep.py | texpomru13/espnet | 7ef005e832e2fb033f356c16f54e0f08762fb4b0 | [
"Apache-2.0"
] | 1 | 2022-03-25T14:41:05.000Z | 2022-03-25T14:41:05.000Z | egs2/mr_openslr64/asr1/local/data_prep.py | texpomru13/espnet | 7ef005e832e2fb033f356c16f54e0f08762fb4b0 | [
"Apache-2.0"
] | 2 | 2019-04-23T04:43:33.000Z | 2019-05-13T13:06:52.000Z | egs2/mr_openslr64/asr1/local/data_prep.py | texpomru13/espnet | 7ef005e832e2fb033f356c16f54e0f08762fb4b0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2021 Carnegie Mellon University (Peter Wu)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
import argparse
import os
import random
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-d", help="downloads directory", type=str, def... | 32.39 | 88 | 0.538747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 399 | 0.123186 |
ed44cdd790149a7a7aba7ae668b2598d57504c5a | 9,404 | py | Python | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | movement_validation/features/feature_processing_options.py | eulerkaku/movement_validation | af939a42a97c1de889cf13bad0c22a2824d60947 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module will hold a class that will be referenced when processing features.
I'd like to move things from "config" into here ...
- @JimHokanson
"""
from __future__ import division
from .. import utils
#Can't do this, would be circular
#from .worm_features import WormFeatures
class... | 34.072464 | 116 | 0.606231 | 9,001 | 0.957146 | 0 | 0 | 0 | 0 | 0 | 0 | 4,818 | 0.512335 |
ed44fdb0f01181ea268ba486b1d64620229b6b81 | 634 | py | Python | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/ec2_observer/steps/__init__.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | #from .sync_external_routes import SyncExternalRoutes
#from .sync_network_slivers import SyncNetworkSlivers
#from .sync_networks import SyncNetworks
#from .sync_network_deployments import SyncNetworkDeployments
#from .sync_site_privileges import SyncSitePrivilege
#from .sync_slice_memberships import SyncSliceMembership... | 39.625 | 61 | 0.865931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 619 | 0.976341 |
ed45225f06a1a8cadf577895bd9772f8a5fae7c7 | 1,240 | py | Python | src/napari_geojson/_tests/test_writer.py | NHPatterson/napari-geojson | 8e7925dc7600608673d489e24e8760c4669eaa0b | [
"BSD-3-Clause"
] | null | null | null | src/napari_geojson/_tests/test_writer.py | NHPatterson/napari-geojson | 8e7925dc7600608673d489e24e8760c4669eaa0b | [
"BSD-3-Clause"
] | 6 | 2021-12-31T06:04:05.000Z | 2022-02-27T15:19:29.000Z | src/napari_geojson/_tests/test_writer.py | NHPatterson/napari-geojson | 8e7925dc7600608673d489e24e8760c4669eaa0b | [
"BSD-3-Clause"
] | 1 | 2022-02-22T20:35:07.000Z | 2022-02-22T20:35:07.000Z | import geojson
import pytest
from napari_geojson import write_shapes
ellipse = [[[0, 0], [0, 5], [5, 5], [5, 0]], "ellipse", "Polygon"]
line = [[[0, 0], [5, 5]], "line", "LineString"]
polygon = [[[0, 0], [5, 5], [0, 10]], "polygon", "Polygon"]
polyline = [[[0, 0], [5, 5], [0, 10]], "path", "LineString"]
rectangle = [... | 33.513514 | 75 | 0.647581 | 0 | 0 | 0 | 0 | 720 | 0.580645 | 0 | 0 | 280 | 0.225806 |
ed45fdb6ca6f0aa4bd602cf9c46a5336b5f100f3 | 115 | py | Python | algorithms/521. Longest Uncommon Subsequence I.py | woozway/py3-leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | 1 | 2020-12-02T13:54:30.000Z | 2020-12-02T13:54:30.000Z | algorithms/521. Longest Uncommon Subsequence I.py | woozway/py3-leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | null | null | null | algorithms/521. Longest Uncommon Subsequence I.py | woozway/py3-leetcode | e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf | [
"MIT"
] | null | null | null | class Solution:
def findLUSlength(self, a: str, b: str) -> int:
return -1 if a == b else max(len(a), len(b))
| 28.75 | 49 | 0.608696 | 114 | 0.991304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ed487e9bb61e7b47c76c3fe0f4b895d4d0e7a7e7 | 12,688 | py | Python | pgmpy/models/ClusterGraph.py | echoyi/pgmpy | c37dda4401f23ec73fc5d17d957867cd62e588d3 | [
"MIT"
] | null | null | null | pgmpy/models/ClusterGraph.py | echoyi/pgmpy | c37dda4401f23ec73fc5d17d957867cd62e588d3 | [
"MIT"
] | null | null | null | pgmpy/models/ClusterGraph.py | echoyi/pgmpy | c37dda4401f23ec73fc5d17d957867cd62e588d3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from collections import defaultdict
import numpy as np
from pgmpy.base import UndirectedGraph
from pgmpy.factors import factor_product
class ClusterGraph(UndirectedGraph):
r"""
Base class for representing Cluster Graph.
Cluster graph is an undirected graph which is associated wi... | 34.953168 | 119 | 0.534994 | 12,524 | 0.987074 | 0 | 0 | 0 | 0 | 0 | 0 | 9,076 | 0.715322 |
ed48aebeb275b2b66a2ca1e46510e44f4c833499 | 1,474 | py | Python | plugins/commands_window/plugin.py | stonewell/eim | 50fc4bb6e265ed8a5eb84577fd203e83934d55a7 | [
"MIT"
] | null | null | null | plugins/commands_window/plugin.py | stonewell/eim | 50fc4bb6e265ed8a5eb84577fd203e83934d55a7 | [
"MIT"
] | null | null | null | plugins/commands_window/plugin.py | stonewell/eim | 50fc4bb6e265ed8a5eb84577fd203e83934d55a7 | [
"MIT"
] | null | null | null | from PySide6.QtWidgets import QListWidgetItem
from yapsy.IPlugin import IPlugin
class Plugin(IPlugin):
def __init__(self):
IPlugin.__init__(self)
def activate(self):
IPlugin.activate(self)
return
def deactivate(self):
IPlugin.deactivate(self)
def set_current_window(self, ... | 25.859649 | 80 | 0.683853 | 1,384 | 0.938942 | 0 | 0 | 0 | 0 | 0 | 0 | 79 | 0.053596 |
ed493a7b9c217715b159a3e6f8cf67b68a3aa7f3 | 478 | py | Python | custom_components/helpers.py | zroger49/broadlink_custom_component | c7b0f9648f1dbaad64e573561e852b689be5a755 | [
"MIT"
] | null | null | null | custom_components/helpers.py | zroger49/broadlink_custom_component | c7b0f9648f1dbaad64e573561e852b689be5a755 | [
"MIT"
] | 2 | 2022-01-30T15:29:17.000Z | 2022-03-13T10:54:58.000Z | custom_components/helpers.py | racelandshop/broadlink_custom_component | c7b0f9648f1dbaad64e573561e852b689be5a755 | [
"MIT"
] | 1 | 2022-01-16T16:05:24.000Z | 2022-01-16T16:05:24.000Z | """Helpers for the Broadlink remote."""
from base64 import b64decode
from homeassistant.helpers import config_validation as cv
def decode_packet(value):
"""Decode a data packet given for a Broadlink remote."""
value = cv.string(value)
extra = len(value) % 4
if extra > 0:
value = value + ("=" ... | 26.555556 | 60 | 0.65272 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 133 | 0.278243 |
ed49ab3c5d4f24945d71fc6987cac08699af6050 | 692 | py | Python | problems/139.Word_Break/AC_dp_n2.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/139.Word_Break/AC_dp_n2.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/139.Word_Break/AC_dp_n2.py | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: illuz <iilluzen[at]gmail.com>
# File: AC_dp_n2.py
# Create Date: 2015-04-21 10:21:18
# Usage: AC_dp_n2.py
# Descripton:
class Solution:
# @param s, a string
# @param dict, a set of string
# @return a boolean
def wordBreak(self, s... | 23.862069 | 58 | 0.460983 | 442 | 0.638728 | 0 | 0 | 0 | 0 | 0 | 0 | 268 | 0.387283 |
ed49cff59f1ab26e4ca17666763624af983410cc | 8,641 | py | Python | examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py | motionfigures/bullet3 | 4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22 | [
"Zlib"
] | 51 | 2018-11-11T12:47:38.000Z | 2022-03-06T08:39:43.000Z | examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py | motionfigures/bullet3 | 4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22 | [
"Zlib"
] | 2 | 2019-11-15T03:21:45.000Z | 2020-09-10T11:53:58.000Z | examples/pybullet/gym/pybullet_envs/bullet/kukaCamGymEnv.py | motionfigures/bullet3 | 4a66d6c80b38a87ecbdf2fd5c4d281f0b5913d22 | [
"Zlib"
] | 14 | 2018-12-12T09:12:14.000Z | 2021-10-17T14:30:25.000Z | import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0,parentdir)
import math
import gym
from gym import spaces
from gym.utils import seeding
import numpy as np
import time
import pybullet... | 32.731061 | 270 | 0.661035 | 8,162 | 0.944567 | 0 | 0 | 0 | 0 | 0 | 0 | 1,360 | 0.157389 |
ed4a2840446404d2f282a8452d7b98f961fd5554 | 6,392 | py | Python | hi-ml-histopathology/src/histopathology/preprocessing/tiling.py | kumar-pratik/hi-ml | a108cf4ea244a76127adedc0ca60f0a5afdfb3e8 | [
"MIT"
] | 402 | 2020-09-22T16:38:16.000Z | 2022-03-30T09:56:03.000Z | hi-ml-histopathology/src/histopathology/preprocessing/tiling.py | kumar-pratik/hi-ml | a108cf4ea244a76127adedc0ca60f0a5afdfb3e8 | [
"MIT"
] | 259 | 2020-09-23T09:32:33.000Z | 2022-03-30T18:15:01.000Z | hi-ml-histopathology/src/histopathology/preprocessing/tiling.py | kumar-pratik/hi-ml | a108cf4ea244a76127adedc0ca60f0a5afdfb3e8 | [
"MIT"
] | 112 | 2020-09-23T00:12:58.000Z | 2022-03-31T07:39:55.000Z | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | 49.550388 | 110 | 0.661608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,086 | 0.482791 |
ed4a5900145229cd2e22ae9792f8a8881bfd83d3 | 9,697 | py | Python | miniapp/miniapp/hartreefock/hf.py | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | miniapp/miniapp/hartreefock/hf.py | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | 1 | 2018-12-28T13:30:16.000Z | 2018-12-29T10:30:33.000Z | miniapp/miniapp/hartreefock/hf.py | savcardamone/tyche | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | from math import pi
from numpy import array, ndarray, divide, sqrt, argsort, sort, diag, trace
from numpy.linalg import eig, norm
class HartreeFock():
zeta = array([38.474970, 5.782948, 1.242567, 0.298073])
num_aos = len(zeta)
num_mos = 0
energy_tolerance = 0.0001; density_tolerance = 0.001
... | 39.579592 | 131 | 0.607301 | 9,487 | 0.978344 | 0 | 0 | 0 | 0 | 0 | 0 | 1,722 | 0.177581 |
ed4a99de0c0a371040dd37f7fc6fad45e488b616 | 132 | py | Python | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 12,023 | 2019-03-13T08:53:27.000Z | 2022-03-31T21:31:15.000Z | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 100 | 2019-03-14T04:09:12.000Z | 2022-03-22T14:24:11.000Z | 6.爬取豆瓣排行榜电影数据(含GUI界面版)/main.py | shengqiangzhang/examples-of-web-crawlers | 89eb6c169b8824a6a9bc78e7a32e064d33560aa7 | [
"MIT"
] | 3,693 | 2019-03-13T08:21:22.000Z | 2022-03-31T16:07:08.000Z | # -*- coding:utf-8 -*-
from uiObject import uiObject
# main入口
if __name__ == '__main__':
ui = uiObject()
ui.ui_process() | 13.2 | 29 | 0.621212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 44 | 0.323529 |
ed4ce61eb4af04f3704ae96a5870d43583535a63 | 524 | py | Python | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | photos/models.py | eude313/vault | d3e24cf01d15de94244b7d2e80316355a0827f74 | [
"MIT"
] | null | null | null | from django.db import models
from cloudinary.models import CloudinaryField
# Create your models here.
class Category(models.Model):
name = models.CharField( max_length=200, null=False, blank=False )
def __str__(self):
return self.name
class Photo(models.Model):
category = models.ForeignKey(... | 29.111111 | 94 | 0.71374 | 414 | 0.790076 | 0 | 0 | 0 | 0 | 0 | 0 | 35 | 0.066794 |
ed4d3cea76d6d1815b54c52a975d47ddfb5f8c99 | 7,496 | py | Python | server/djangoapp/restapis.py | christiansencq/ibm_capstone | d445fd40c0267be0948a5d85e9d43828b908641c | [
"Apache-2.0"
] | null | null | null | server/djangoapp/restapis.py | christiansencq/ibm_capstone | d445fd40c0267be0948a5d85e9d43828b908641c | [
"Apache-2.0"
] | null | null | null | server/djangoapp/restapis.py | christiansencq/ibm_capstone | d445fd40c0267be0948a5d85e9d43828b908641c | [
"Apache-2.0"
] | null | null | null | import requests
import json
# import related models here
from .models import CarDealer, DealerReview
from requests.auth import HTTPBasicAuth
import logging
logger = logging.getLogger(__name__)
# Create a `get_request` to make HTTP GET requests
# e.g., response = requests.get(url, params=params, headers={'Content-Type... | 46.271605 | 140 | 0.603522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,145 | 0.419557 |
ed4d8f444cbb7eba10514b86dbcd28fb80cd5824 | 2,035 | py | Python | examples/python/upload.py | oslokommune/okdata-data-uploader | fc006ae90440b267613260bba90235799bf0cf6e | [
"MIT"
] | null | null | null | examples/python/upload.py | oslokommune/okdata-data-uploader | fc006ae90440b267613260bba90235799bf0cf6e | [
"MIT"
] | null | null | null | examples/python/upload.py | oslokommune/okdata-data-uploader | fc006ae90440b267613260bba90235799bf0cf6e | [
"MIT"
] | null | null | null | import logging
from configparser import ConfigParser
from sdk.data_uploader import DataUploader
logging.basicConfig(level=logging.INFO)
log = logging.getLogger()
config = ConfigParser()
config.read("config.ini")
#####
# Datasets to be added to metadata API
datasetData = {
"title": "Test",
"description": "Tes... | 30.373134 | 86 | 0.678624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 979 | 0.480845 |
ed4da4c3e62ea1a20080eade8fbb9743d55cdd88 | 3,558 | py | Python | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 254 | 2017-09-20T15:02:20.000Z | 2022-03-28T11:33:28.000Z | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 39 | 2017-09-23T14:28:36.000Z | 2022-01-06T08:41:57.000Z | doc/examples.py | Enerccio/mahjong | 903505a7886c31845dfa6b3f54c936a4feb29e6e | [
"MIT"
] | 38 | 2017-10-19T09:06:53.000Z | 2022-03-15T05:08:22.000Z | from mahjong.hand_calculating.hand import HandCalculator
from mahjong.meld import Meld
from mahjong.hand_calculating.hand_config import HandConfig, OptionalRules
from mahjong.shanten import Shanten
from mahjong.tile import TilesConverter
calculator = HandCalculator()
# useful helper
def print_hand_result(hand_result... | 35.227723 | 133 | 0.537943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,431 | 0.402192 |
ed4e6dc26f15763248de005c84025114cd89fa6c | 436 | py | Python | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | src/infi/mount_utils/solaris/mounter.py | Infinidat/mount-utils | e4e08e21c278a2391494a7b9d9d7efdaeb393a9c | [
"BSD-3-Clause"
] | null | null | null | from ..base.mounter import MounterMixin, execute_mount
class SolarisMounterMixin(MounterMixin):
def _get_fstab_path(self):
return "/etc/fstab"
def _get_entry_format(self, entry):
return entry.get_format_solaris()
def mount_entry(self, entry):
args = ["-F", entry.get_typename(), en... | 31.142857 | 84 | 0.694954 | 379 | 0.869266 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 0.036697 |
ed4edc151ca26cac5de8e4d708a84551964ac057 | 14,366 | py | Python | sdk/python/pulumi_oci/database/get_external_non_container_database.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/database/get_external_non_container_database.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/database/get_external_non_container_database.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 45.034483 | 457 | 0.69748 | 11,427 | 0.79542 | 1,095 | 0.076222 | 10,213 | 0.710915 | 0 | 0 | 5,509 | 0.383475 |
ed4f8a612b9b05faf17087ad729a1b5925503103 | 1,358 | py | Python | setup.py | xmedius/xmedius-mailrelayserver | 44bb55c4b543e96bb23a45499d281c1bbab18abf | [
"MIT"
] | null | null | null | setup.py | xmedius/xmedius-mailrelayserver | 44bb55c4b543e96bb23a45499d281c1bbab18abf | [
"MIT"
] | null | null | null | setup.py | xmedius/xmedius-mailrelayserver | 44bb55c4b543e96bb23a45499d281c1bbab18abf | [
"MIT"
] | null | null | null | from setuptools import setup
from setuptools.command.install import install
class PostInstallCommand(install):
user_options = install.user_options + [
('noservice', None, None),
]
def initialize_options(self):
install.initialize_options(self)
self.noservice = None
def finalize... | 30.863636 | 104 | 0.667158 | 499 | 0.367452 | 0 | 0 | 0 | 0 | 0 | 0 | 506 | 0.372607 |
ed502bad0b09f0685ca1ff615fe9d8b7f8ad7287 | 1,554 | py | Python | 143.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | 143.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | 143.py | tsbxmw/leetcode | e751311b8b5f2769874351717a22c35c19b48a36 | [
"MIT"
] | null | null | null | # 143. 重排链表
# 给定一个单链表 L:L0→L1→…→Ln-1→Ln ,
# 将其重新排列后变为: L0→Ln→L1→Ln-1→L2→Ln-2→…
# 你不能只是单纯的改变节点内部的值,而是需要实际的进行节点交换。
# 示例 1:
# 给定链表 1->2->3->4, 重新排列为 1->4->2->3.
# 示例 2:
# 给定链表 1->2->3->4->5, 重新排列为 1->5->2->4->3.
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# ... | 24.28125 | 62 | 0.462677 | 866 | 0.481646 | 0 | 0 | 0 | 0 | 0 | 0 | 1,020 | 0.567297 |
ed50775b4eac2d767b8b5f1e618533d64da3321f | 1,882 | py | Python | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 21 | 2018-05-12T20:18:02.000Z | 2022-02-18T17:33:50.000Z | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 1 | 2018-06-23T09:13:39.000Z | 2018-06-27T01:22:27.000Z | CraftProtocol/NBT/NBTTagList.py | Toranktto/CraftProtocol | a6f4a67756c3868820ab76df5e148d76b020d990 | [
"MIT"
] | 2 | 2018-05-19T21:36:00.000Z | 2020-10-02T03:23:13.000Z | #!/usr/bin/env python
from CraftProtocol.NBT.NBTBase import NBTBase
from CraftProtocol.NBT.NBTProvider import NBTProvider
from CraftProtocol.StreamIO import StreamIO
class NBTTagList(NBTBase):
TYPE_ID = 0x09
def __init__(self, tag_type, values=None):
NBTBase.__init__(self)
if values is None... | 25.093333 | 88 | 0.643996 | 1,712 | 0.909671 | 0 | 0 | 550 | 0.292242 | 0 | 0 | 65 | 0.034538 |
ed5085f9be9c98ff85fd3851495ed53a851d06cd | 25,960 | py | Python | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 37 | 2021-12-12T17:36:24.000Z | 2022-03-12T15:46:56.000Z | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 1 | 2021-12-19T12:39:10.000Z | 2021-12-19T12:39:10.000Z | examples/0b02b172-ad67-449b-b4a2-ff645b28c508.py | lapaniku/GAS | e49ce302689af683da744cd172e0359c0ba0af86 | [
"MIT"
] | 3 | 2021-12-17T17:29:35.000Z | 2022-03-12T15:26:49.000Z | # This program was generated by "Generative Art Synthesizer"
# Generation date: 2021-11-28 09:21:40 UTC
# GAS change date: 2021-11-28 09:20:21 UTC
# GAS md5 hash: ad55481e87ca5a7e9a8e92cd336d1cad
# Python version: 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# For more informat... | 64.9 | 346 | 0.689908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 678 | 0.026117 |
ed510f09d28e1fdb65727ee044b934fd67984f9c | 2,555 | py | Python | onmt/bin/build_vocab.py | comydream/OpenNMT-py | 2f3c810069ca03b752d9886782648e576b39a06d | [
"MIT"
] | 1 | 2021-10-01T15:03:35.000Z | 2021-10-01T15:03:35.000Z | onmt/bin/build_vocab.py | urialon/OpenNMT-py | bdca05a3fac8f864b21c86a8ad03c09895212e70 | [
"MIT"
] | null | null | null | onmt/bin/build_vocab.py | urialon/OpenNMT-py | bdca05a3fac8f864b21c86a8ad03c09895212e70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Get vocabulary coutings from transformed corpora samples."""
from onmt.utils.logging import init_logger
from onmt.utils.misc import set_random_seed, check_path
from onmt.utils.parse import ArgumentParser
from onmt.opts import dynamic_prepare_opts
from onmt.inputters.corpus import build_vocab
fr... | 33.618421 | 77 | 0.706849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 701 | 0.274364 |
ed51b4414d9639f63dd9eb5d177b6130aa8d5108 | 2,756 | py | Python | schools3/ml/experiments/feat_pruning_experiment.py | dssg/mlpolicylab_fall20_schools3_public | f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4 | [
"MIT"
] | null | null | null | schools3/ml/experiments/feat_pruning_experiment.py | dssg/mlpolicylab_fall20_schools3_public | f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4 | [
"MIT"
] | null | null | null | schools3/ml/experiments/feat_pruning_experiment.py | dssg/mlpolicylab_fall20_schools3_public | f8eff4c56e9bada1eb81ddaca03686d7ef53c2c4 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from schools3.ml.experiments.models_experiment import ModelsExperiment
from schools3.data.base.cohort import Cohort
from schools3.config import main_config
from schools3.config import global_config
from schools3.data.datasets.dataset import Dataset
from schools3.ml.experiments.fea... | 43.746032 | 123 | 0.717707 | 1,861 | 0.675254 | 0 | 0 | 0 | 0 | 0 | 0 | 207 | 0.075109 |
ed51e5aefc8aa4c007f752784c838fb5f4f57c1c | 2,297 | py | Python | network/dataset/image_loading.py | imsb-uke/podometric_u_net | a33afcc186d618889df73c7ab2941dfbb63574ac | [
"MIT"
] | null | null | null | network/dataset/image_loading.py | imsb-uke/podometric_u_net | a33afcc186d618889df73c7ab2941dfbb63574ac | [
"MIT"
] | null | null | null | network/dataset/image_loading.py | imsb-uke/podometric_u_net | a33afcc186d618889df73c7ab2941dfbb63574ac | [
"MIT"
] | null | null | null | import os
import numpy as np
from skimage.io import imread
def get_file_count(paths, image_format='.tif'):
total_count = 0
for path in paths:
try:
path_list = [_ for _ in os.listdir(path) if _.endswith(image_format)]
total_count += len(path_list)
except OSError:
... | 37.048387 | 124 | 0.652155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 394 | 0.171528 |
ed52fe7003cd3391400a3e6ca8a3b67edfc17d59 | 6,769 | py | Python | series/simple/numeric_series.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | series/simple/numeric_series.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | series/simple/numeric_series.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | from typing import Optional, Callable
try: # Assume we're a sub-module in a package.
from series import series_classes as sc
from utils import numeric as nm
except ImportError: # Apparently no higher-level package has been imported, fall back to a local import.
from .. import series_classes as sc
fro... | 34.186869 | 116 | 0.601418 | 6,274 | 0.926873 | 798 | 0.11789 | 65 | 0.009603 | 0 | 0 | 190 | 0.028069 |
ed5484913e5b4d8984ea6ca02d8e86830b881e11 | 4,857 | py | Python | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | app/internal/module/video/database.py | kuropengin/SHINtube-video-api | 8a4b068fb95a9a2736b3dba3782dbbbf73815290 | [
"MIT"
] | null | null | null | import glob
import pathlib
from .filemanager import filemanager_class
class database_class(filemanager_class):
def __init__(self):
filemanager_class.__init__(self)
async def update_info(self, year, cid, vid, title, explanation):
# 既存のjsonを読み込み
json_file = "/".join([self.video_dir, str... | 33.267123 | 71 | 0.558369 | 4,916 | 0.979478 | 0 | 0 | 0 | 0 | 4,751 | 0.946603 | 911 | 0.18151 |
ed548c718f56038d0a32759b322ccf9c4f9f5e93 | 29,735 | py | Python | python/OpenGeoTile.py | scoofy/open-geotiling | 0b1305d4482d6df46104135662ffe4565f92f9f0 | [
"Apache-2.0"
] | null | null | null | python/OpenGeoTile.py | scoofy/open-geotiling | 0b1305d4482d6df46104135662ffe4565f92f9f0 | [
"Apache-2.0"
] | null | null | null | python/OpenGeoTile.py | scoofy/open-geotiling | 0b1305d4482d6df46104135662ffe4565f92f9f0 | [
"Apache-2.0"
] | null | null | null | from openlocationcode import openlocationcode as olc
from enum import Enum
import math, re
class TileSize(Enum):
''' An area of 20° x 20°. The side length of this tile varies with its location on the globe,
but can be up to approximately 2200km. Tile addresses will be 2 characters long.'''
GLOBAL = (2,... | 43.535871 | 150 | 0.613351 | 27,626 | 0.928699 | 0 | 0 | 0 | 0 | 0 | 0 | 10,995 | 0.369617 |
ed55484ea14f91f98d1615b910fc743371e53922 | 13,543 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/arrays/arraydatatype.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 87 | 2015-04-09T16:57:27.000Z | 2022-02-21T13:21:12.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/arrays/arraydatatype.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 47 | 2015-04-09T21:05:30.000Z | 2021-06-22T15:21:18.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/arrays/arraydatatype.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 16 | 2015-04-09T19:10:22.000Z | 2020-07-19T05:41:06.000Z | """Array data-type implementations (abstraction points for GL array types"""
import ctypes
import OpenGL
from OpenGL.raw.GL import _types
from OpenGL import plugins
from OpenGL.arrays import formathandler, _arrayconstants as GL_1_1
from OpenGL import logs
_log = logs.getLog( 'OpenGL.arrays.arraydatatype' )
from OpenG... | 44.844371 | 100 | 0.616333 | 10,928 | 0.806911 | 0 | 0 | 118 | 0.008713 | 0 | 0 | 2,889 | 0.213321 |
ed57f1712b86394159992dc11fd79688181d493e | 13,851 | bzl | Python | tensorflow_probability/python/build_defs.bzl | jbergmanster/probability | e15b307066e7485b8fe9faf3d289c739ab8d3806 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/build_defs.bzl | jbergmanster/probability | e15b307066e7485b8fe9faf3d289c739ab8d3806 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/build_defs.bzl | jbergmanster/probability | e15b307066e7485b8fe9faf3d289c739ab8d3806 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 35.698454 | 89 | 0.608043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,858 | 0.42293 |
ed583ccefc13cf5fca32a4b108662e62505e92e1 | 5,425 | py | Python | src/wikidated/wikidata/wikidata_dump.py | lschmelzeisen/wikidata-history-analyzer | 8673639b61839d2dca271fbbaf2feb8563b75f2d | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2021-06-10T09:26:44.000Z | 2021-07-07T13:49:00.000Z | src/wikidated/wikidata/wikidata_dump.py | lschmelzeisen/wikidata-history-analyzer | 8673639b61839d2dca271fbbaf2feb8563b75f2d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/wikidated/wikidata/wikidata_dump.py | lschmelzeisen/wikidata-history-analyzer | 8673639b61839d2dca271fbbaf2feb8563b75f2d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #
# Copyright 2021 Lukas Schmelzeisen
#
# 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 ... | 33.487654 | 87 | 0.654194 | 4,051 | 0.746728 | 0 | 0 | 1,158 | 0.213456 | 0 | 0 | 1,211 | 0.223226 |
ed58570015c33daeb7f03921904a43571a44e66f | 18,726 | py | Python | tcapygen/layoutgen.py | Ahrvo-Trading-Systems/tcapy | df8439aa5c754fc9a7fde463c44c489b27112f76 | [
"Apache-2.0"
] | 189 | 2020-03-20T17:03:04.000Z | 2022-03-30T13:33:27.000Z | tcapygen/layoutgen.py | Ahrvo-Trading-Systems/tcapy | df8439aa5c754fc9a7fde463c44c489b27112f76 | [
"Apache-2.0"
] | 4 | 2020-06-06T14:58:21.000Z | 2022-03-10T22:31:15.000Z | tcapygen/layoutgen.py | Ahrvo-Trading-Systems/tcapy | df8439aa5c754fc9a7fde463c44c489b27112f76 | [
"Apache-2.0"
] | 60 | 2020-03-20T17:06:56.000Z | 2022-03-26T02:48:58.000Z | from __future__ import division, print_function
__author__ = 'saeedamen' # Saeed Amen / [email protected]
#
# Copyright 2017 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro
#
# See the License for the specific language governing permissions and limitations under the License.
#
## Web server components
import da... | 58.51875 | 154 | 0.595215 | 17,982 | 0.960269 | 0 | 0 | 0 | 0 | 0 | 0 | 6,847 | 0.365641 |
ed585ed9b9e64b5cd7e7fef27facda2ab0843b74 | 4,320 | py | Python | tests/molecular/molecules/molecule/fixtures/cof/periodic_kagome.py | andrewtarzia/stk | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | tests/molecular/molecules/molecule/fixtures/cof/periodic_kagome.py | JelfsMaterialsGroup/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | tests/molecular/molecules/molecule/fixtures/cof/periodic_kagome.py | supramolecular-toolkit/stk | 0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | import pytest
import stk
from ...case_data import CaseData
@pytest.fixture(
scope='session',
params=(
lambda name: CaseData(
molecule=stk.ConstructedMolecule(
topology_graph=stk.cof.PeriodicKagome(
building_blocks=(
stk.BuildingB... | 45.473684 | 71 | 0.344907 | 0 | 0 | 0 | 0 | 4,257 | 0.985417 | 0 | 0 | 1,944 | 0.45 |
ed587bf56577619d8ec39ef62825f11e9ce7e776 | 3,511 | py | Python | projects/MAE/utils/weight_convert.py | Oneflow-Inc/libai | e473bd3962f07b1e37232d2be39c8257df0ec0f3 | [
"Apache-2.0"
] | 55 | 2021-12-10T08:47:06.000Z | 2022-03-28T09:02:15.000Z | projects/MAE/utils/weight_convert.py | Oneflow-Inc/libai | e473bd3962f07b1e37232d2be39c8257df0ec0f3 | [
"Apache-2.0"
] | 106 | 2021-11-03T05:16:45.000Z | 2022-03-31T06:16:23.000Z | projects/MAE/utils/weight_convert.py | Oneflow-Inc/libai | e473bd3962f07b1e37232d2be39c8257df0ec0f3 | [
"Apache-2.0"
] | 13 | 2021-12-29T08:12:08.000Z | 2022-03-28T06:59:45.000Z | # coding=utf-8
# Copyright 2021 The OneFlow 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 require... | 32.509259 | 95 | 0.656508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,594 | 0.454002 |
ed5a1b538137819cd768e00bc5a8aa7705765275 | 37 | py | Python | dthm4kaiako/events/__init__.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2018-12-10T07:03:02.000Z | 2021-04-12T02:18:30.000Z | dthm4kaiako/events/__init__.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 566 | 2018-09-30T02:54:28.000Z | 2022-03-28T01:20:01.000Z | dthm4kaiako/events/__init__.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2019-04-04T19:53:39.000Z | 2021-05-16T02:04:46.000Z | """Module for events application."""
| 18.5 | 36 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 36 | 0.972973 |
ed5a4c9715fe0f81c7675d25ae101b58391d1929 | 8,462 | py | Python | spot/level1.py | K0gata/SGLI_Python_output_tool | 1368e0408edd737a5109d0523db6c147faa80b97 | [
"MIT"
] | 1 | 2020-08-04T04:17:49.000Z | 2020-08-04T04:17:49.000Z | spot/level1.py | K0gata/SGLI_Python_Open_Tool | 1368e0408edd737a5109d0523db6c147faa80b97 | [
"MIT"
] | null | null | null | spot/level1.py | K0gata/SGLI_Python_Open_Tool | 1368e0408edd737a5109d0523db6c147faa80b97 | [
"MIT"
] | null | null | null | import numpy as np
import logging
from decimal import Decimal, ROUND_HALF_UP
from abc import ABC, abstractmethod, abstractproperty
from spot.utility import bilin_2d
from spot.config import PROJ_TYPE
# =============================
# Level-1 template class
# =============================
class L1Interface(ABC):
... | 34.538776 | 120 | 0.610021 | 7,952 | 0.939731 | 0 | 0 | 397 | 0.046916 | 0 | 0 | 1,893 | 0.223706 |
ed5a7dc4339280b02e5e632da64cfe3100fda887 | 345 | py | Python | 168. Excel Sheet Column Title.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | 168. Excel Sheet Column Title.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | 168. Excel Sheet Column Title.py | Alvin1994/leetcode-python3- | ba2bde873c925554cc39f2bd13be81967713477d | [
"Apache-2.0"
] | null | null | null | class Solution:
# @return a string
def convertToTitle(self, n: int) -> str:
capitals = [chr(x) for x in range(ord('A'), ord('Z')+1)]
result = []
while n > 0:
result.insert(0, capitals[(n-1)%len(capitals)])
n = (n-1) % len(capitals)
# result.reverse()
... | 34.5 | 64 | 0.510145 | 345 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 44 | 0.127536 |
ed5ab9e7476a3e24312d9ef871509f4e43e86312 | 18,788 | py | Python | devil/devil/utils/cmd_helper.py | Martijnve23/catapult | 5c63b19d221af6a12889e8727acc85d93892cab7 | [
"BSD-3-Clause"
] | 1,894 | 2015-04-17T18:29:53.000Z | 2022-03-28T22:41:06.000Z | devil/devil/utils/cmd_helper.py | Martijnve23/catapult | 5c63b19d221af6a12889e8727acc85d93892cab7 | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | infra/services/android_docker/third_party/devil/utils/cmd_helper.py | NDevTK/chromium-infra | d38e088e158d81f7f2065a38aa1ea1894f735ec4 | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.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.
"""A wrapper for subprocess to make calling shell commands easier."""
import codecs
import logging
import os
import pipes
import select
import signal
imp... | 31.10596 | 80 | 0.64951 | 253 | 0.013466 | 4,973 | 0.26469 | 53 | 0.002821 | 0 | 0 | 8,749 | 0.46567 |
ed5b25db8eee2bdd6eb22e7c4a9c331775d6cf05 | 1,651 | py | Python | services/server/server/apps/checkout/migrations/0001_initial.py | AyanSamanta23/moni-moni | 8e8aa4edf4cd2e2b005f6dbe8c885ecc791e6a2b | [
"MIT"
] | null | null | null | services/server/server/apps/checkout/migrations/0001_initial.py | AyanSamanta23/moni-moni | 8e8aa4edf4cd2e2b005f6dbe8c885ecc791e6a2b | [
"MIT"
] | null | null | null | services/server/server/apps/checkout/migrations/0001_initial.py | AyanSamanta23/moni-moni | 8e8aa4edf4cd2e2b005f6dbe8c885ecc791e6a2b | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-26 15:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FundingOptions',
fields=[
('id', models.Big... | 40.268293 | 142 | 0.59358 | 1,558 | 0.943671 | 0 | 0 | 0 | 0 | 0 | 0 | 441 | 0.267111 |
ed5b5860c856a4418e7eeb1cf777cb4c10722142 | 2,845 | py | Python | api/to_astm.py | urchinpro/L2-forms | 37f33386984efbb2d1e92c73d915256247801109 | [
"MIT"
] | null | null | null | api/to_astm.py | urchinpro/L2-forms | 37f33386984efbb2d1e92c73d915256247801109 | [
"MIT"
] | null | null | null | api/to_astm.py | urchinpro/L2-forms | 37f33386984efbb2d1e92c73d915256247801109 | [
"MIT"
] | null | null | null | import itertools
from astm import codec
from collections import defaultdict
from django.utils import timezone
import directions.models as directions
import directory.models as directory
import api.models as api
import simplejson as json
def get_astm_header() -> list:
return ['H|\\^&', None, None, ['1', '2.00'], N... | 34.277108 | 138 | 0.636555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 64 | 0.022496 |
ed5bad05b400253943df833d896315c0be535899 | 19,288 | py | Python | test/unit/test_som_rom_parser.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 15 | 2015-08-31T20:50:39.000Z | 2022-03-13T08:56:39.000Z | test/unit/test_som_rom_parser.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 5 | 2015-05-02T16:48:57.000Z | 2017-06-15T16:25:34.000Z | test/unit/test_som_rom_parser.py | CospanDesign/nysa | ffe07f0b8fe2f6217e7a862d89b80f1b17163be9 | [
"MIT"
] | 6 | 2016-09-02T16:02:13.000Z | 2021-06-29T22:29:45.000Z | #!/usr/bin/python
import unittest
import json
import sys
import os
import string
sys.path.append(os.path.join(os.path.dirname(__file__),
os.pardir,
os.pardir))
from nysa.cbuilder import sdb_component as sdbc
from nysa.cbuilder import sdb_object_model as som
... | 27.792507 | 169 | 0.506999 | 7,182 | 0.372356 | 0 | 0 | 0 | 0 | 0 | 0 | 6,339 | 0.32865 |
ed5bb200d9597641b3d366c18b6bda01b9a7883d | 6,119 | py | Python | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | null | null | null | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | null | null | null | src/TF-gui/tftrain.py | jeetsagar/turbojet | 9b17edde0a7e01d0fa320261fbc2734ce53577d2 | [
"MIT"
] | 2 | 2021-05-20T05:47:59.000Z | 2021-08-24T07:44:37.000Z | #!python3
import os
import pandas as pd
import tensorflow as tf
from tensorflow.keras import layers
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
# gpu_devices = tf.config.experimental.list_physical_devices("GPU")
# for device in gpu_devices:
# tf.config.experimental.set_memory_growth(device, True)
def trainModel... | 42.493056 | 120 | 0.57346 | 538 | 0.087923 | 0 | 0 | 0 | 0 | 0 | 0 | 742 | 0.121262 |
ed5bcaf7cb360ac7f0af74528df0eb589224f1a5 | 5,434 | py | Python | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 34 | 2016-03-09T17:10:52.000Z | 2019-12-25T08:31:49.000Z | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 6 | 2016-05-16T14:09:05.000Z | 2018-07-23T21:09:33.000Z | library/kong_api.py | sebastienc/ansible-kong-module | c1e7b471a517d1ec99c5629f3729ebc34088bd64 | [
"MIT"
] | 23 | 2016-02-17T12:18:16.000Z | 2021-05-06T09:39:35.000Z | #!/usr/bin/python
DOCUMENTATION = '''
---
module: kong
short_description: Configure a Kong API Gateway
'''
EXAMPLES = '''
- name: Register a site
kong:
kong_admin_uri: http://127.0.0.1:8001/apis/
name: "Mockbin"
taget_url: "http://mockbin.com"
request_host: "mockbin.com"
state: present
- ... | 30.188889 | 133 | 0.597902 | 3,773 | 0.694332 | 0 | 0 | 0 | 0 | 0 | 0 | 1,014 | 0.186603 |
ed5c8a4473db3e1f846fdf5ddd27546849b2b2e4 | 3,091 | py | Python | src/compas_plotters/artists/lineartist.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | src/compas_plotters/artists/lineartist.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | src/compas_plotters/artists/lineartist.py | XingxinHE/compas | d2901dbbacdaf4694e5adae78ba8f093f10532bf | [
"MIT"
] | null | null | null | from compas_plotters.artists import Artist
from matplotlib.lines import Line2D
from compas.geometry import intersection_line_box_xy
__all__ = ['LineArtist']
class LineArtist(Artist):
""""""
zorder = 1000
def __init__(self, line, draw_points=False, draw_as_segment=False, linewidth=1.0, linestyle='solid... | 36.364706 | 122 | 0.530573 | 2,929 | 0.94759 | 0 | 0 | 85 | 0.027499 | 0 | 0 | 25 | 0.008088 |
ed5d3821ab68704ffac0f126c20afbf8dae239de | 1,018 | py | Python | plot2d_artificial_dataset1_silvq.py | manome/python-silvq | b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f | [
"BSD-3-Clause"
] | null | null | null | plot2d_artificial_dataset1_silvq.py | manome/python-silvq | b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f | [
"BSD-3-Clause"
] | null | null | null | plot2d_artificial_dataset1_silvq.py | manome/python-silvq | b50d7486e970fbe9a5b66dd3fc5beb8b5de8ca2f | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf8 -*-
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
from lvq import SilvqModel
from lvq.utils import plot2d
def main():
# Load dataset
dataset = np.loadtxt('data/artificial_dataset1.csv', delimiter=',')
x = dataset[:... | 30.848485 | 118 | 0.697446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 323 | 0.317289 |
ed5d69e17539392ab832fd82b04ce64e261c7b31 | 7,727 | py | Python | classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py | ifr1m/hyper-kvasir | 21cc366e78c0cb4e180a26a0e441d6c0d5171da9 | [
"CC-BY-4.0"
] | 38 | 2019-12-20T13:17:09.000Z | 2022-03-20T08:39:40.000Z | classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py | smaranjitghose/hyper-kvasir | b4815d151ef90cffa1bbc8fbf97cd091a20ce600 | [
"CC-BY-4.0"
] | 2 | 2021-01-12T10:45:13.000Z | 2021-01-28T06:14:45.000Z | classification_experiments/Fine-Tuned-ResNet-50/Fine-Tuned-ResNet-50.py | smaranjitghose/hyper-kvasir | b4815d151ef90cffa1bbc8fbf97cd091a20ce600 | [
"CC-BY-4.0"
] | 11 | 2020-03-24T17:58:04.000Z | 2021-12-09T16:12:16.000Z | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
#Importing all required libraries
# In[ ]:
from __future__ import absolute_import, division, print_function, unicode_literals
# In[ ]:
#Checking for correct cuda and tf versions
from tensorflow.python.platform import build_info as tf_build_info
print(tf_build_in... | 21.889518 | 102 | 0.666235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,899 | 0.245762 |
ed5e905c814c4d72273c16c39c47e06ae62fc1f0 | 897 | gyp | Python | tools/android/android_tools.gyp | SlimKatLegacy/android_external_chromium_org | ee480ef5039d7c561fc66ccf52169ead186f1bea | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-04T02:36:53.000Z | 2016-06-25T11:22:17.000Z | tools/android/android_tools.gyp | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/android/android_tools.gyp | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2015-02-09T08:49:30.000Z | 2017-08-26T02:03:34.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.
{
'targets': [
# Intermediate target grouping the android tools needed to run native
# unittests and instrumentation test apks.
{
'ta... | 25.628571 | 73 | 0.596433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 652 | 0.726867 |
ed5f32dd2cd9143c086d6a609f05220bf9f92fde | 12,380 | py | Python | test/functional/fantasygold_opcall.py | FantasyGold/FantasyGold-Core | afff8871e770045e468e2f536ede9db0dff889d5 | [
"MIT"
] | 13 | 2018-04-30T21:43:40.000Z | 2020-12-07T11:06:47.000Z | test/functional/fantasygold_opcall.py | donoel2/FantasyGold-Core | afff8871e770045e468e2f536ede9db0dff889d5 | [
"MIT"
] | 4 | 2018-05-10T00:18:18.000Z | 2019-07-08T23:12:54.000Z | test/functional/fantasygold_opcall.py | donoel2/FantasyGold-Core | afff8871e770045e468e2f536ede9db0dff889d5 | [
"MIT"
] | 13 | 2018-04-30T17:41:54.000Z | 2020-12-08T18:24:06.000Z | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from tes... | 57.581395 | 689 | 0.714943 | 11,840 | 0.956381 | 0 | 0 | 0 | 0 | 0 | 0 | 3,700 | 0.298869 |
ed5fdee808e9a889711f8e8007e05b2a81263072 | 1,883 | py | Python | intake_sklearn/source.py | AlbertDeFusco/intake-sklearn | 6cd0e11b26703712eb338032518e5c55b725c48f | [
"BSD-3-Clause"
] | 1 | 2022-02-23T09:00:38.000Z | 2022-02-23T09:00:38.000Z | intake_sklearn/source.py | AlbertDeFusco/intake-sklearn | 6cd0e11b26703712eb338032518e5c55b725c48f | [
"BSD-3-Clause"
] | 1 | 2019-10-14T12:25:26.000Z | 2019-10-25T13:55:59.000Z | intake_sklearn/source.py | AlbertDeFusco/intake-sklearn | 6cd0e11b26703712eb338032518e5c55b725c48f | [
"BSD-3-Clause"
] | 1 | 2021-07-28T17:49:36.000Z | 2021-07-28T17:49:36.000Z | from intake.source.base import DataSource, Schema
import joblib
import fsspec
import sklearn
import re
from . import __version__
class SklearnModelSource(DataSource):
container = 'python'
name = 'sklearn'
version = __version__
partition_access = False
def __init__(self, urlpath, storage_options=N... | 27.691176 | 89 | 0.591609 | 1,750 | 0.929368 | 0 | 0 | 0 | 0 | 0 | 0 | 549 | 0.291556 |
ed607bad1d48fdf5da41de44d6ec206f2716afe4 | 4,915 | py | Python | jedi/evaluate/dynamic.py | hatamov/jedi | 10df0f933f931a8e0e70304d823f6df0dc3000bd | [
"MIT"
] | null | null | null | jedi/evaluate/dynamic.py | hatamov/jedi | 10df0f933f931a8e0e70304d823f6df0dc3000bd | [
"MIT"
] | null | null | null | jedi/evaluate/dynamic.py | hatamov/jedi | 10df0f933f931a8e0e70304d823f6df0dc3000bd | [
"MIT"
] | null | null | null | """
One of the really important features of |jedi| is to have an option to
understand code like this::
def foo(bar):
bar. # completion here
foo(1)
There's no doubt wheter bar is an ``int`` or not, but if there's also a call
like ``foo('str')``, what would happen? Well, we'll just show both. Because
th... | 33.435374 | 95 | 0.584334 | 241 | 0.049034 | 0 | 0 | 3,908 | 0.795117 | 0 | 0 | 1,570 | 0.31943 |
ed614dd2f553e42b3e9876c261fcf0d4bfb4705a | 2,245 | py | Python | steamcheck/views.py | moird/linux-game-report | 8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd | [
"MIT"
] | null | null | null | steamcheck/views.py | moird/linux-game-report | 8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd | [
"MIT"
] | null | null | null | steamcheck/views.py | moird/linux-game-report | 8c3204d857134b0685bc3c213cd9d9e9f9a5f2fd | [
"MIT"
] | null | null | null | from steamcheck import app
from flask import jsonify, render_template
import os
import steamapi
import json
@app.route('/')
def index():
return render_template("index.html")
@app.route('/report/<name>')
def report(name=None):
"""
This will generate the report based on the users Steam ID. Returns JSON
... | 35.634921 | 111 | 0.623163 | 0 | 0 | 0 | 0 | 2,132 | 0.949666 | 0 | 0 | 856 | 0.381292 |
ed6236b34ab65a1e059ca45441d455cec6bd4e90 | 516 | py | Python | validator/delphi_validator/run.py | benjaminysmith/covidcast-indicators | b1474cd68a1497166fefe4beffd4d5ff867b9a61 | [
"MIT"
] | null | null | null | validator/delphi_validator/run.py | benjaminysmith/covidcast-indicators | b1474cd68a1497166fefe4beffd4d5ff867b9a61 | [
"MIT"
] | null | null | null | validator/delphi_validator/run.py | benjaminysmith/covidcast-indicators | b1474cd68a1497166fefe4beffd4d5ff867b9a61 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Functions to call when running the tool.
This module should contain a function called `run_module`, that is executed
when the module is run with `python -m delphi_validator`.
"""
from delphi_utils import read_params
from .validate import Validator
def run_module():
"""Run the validator... | 28.666667 | 75 | 0.732558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 265 | 0.513566 |
ed62a0f3bd61d82280e96fe9d14711d5df97f622 | 1,876 | py | Python | datasets/validation_folders.py | zenithfang/supervised_dispnet | f81dfccfdc944e015d8fae17e24b3e664bec14d6 | [
"MIT"
] | 39 | 2020-01-17T18:33:42.000Z | 2021-11-14T02:36:32.000Z | datasets/validation_folders.py | zenithfang/supervised_dispnet | f81dfccfdc944e015d8fae17e24b3e664bec14d6 | [
"MIT"
] | 7 | 2020-01-10T14:52:44.000Z | 2021-03-15T18:55:35.000Z | datasets/validation_folders.py | zenithfang/supervised_dispnet | f81dfccfdc944e015d8fae17e24b3e664bec14d6 | [
"MIT"
] | 10 | 2020-03-01T11:35:50.000Z | 2022-01-18T10:54:04.000Z | import torch.utils.data as data
import numpy as np
from imageio import imread
from path import Path
import pdb
def crawl_folders(folders_list):
imgs = []
depth = []
for folder in folders_list:
current_imgs = sorted(folder.files('*.jpg'))
current_depth = []
fo... | 32.912281 | 153 | 0.615672 | 1,187 | 0.632729 | 0 | 0 | 0 | 0 | 0 | 0 | 545 | 0.290512 |
ed62a4dc340088a21f482019440f649f39123cfc | 1,293 | py | Python | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 51 | 2019-01-09T02:38:03.000Z | 2022-03-19T19:08:02.000Z | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 7 | 2019-10-03T19:50:32.000Z | 2021-05-28T22:52:09.000Z | secretpy/ciphers/rot18.py | tigertv/crypt | e464f998e5540f52e269fe360ec9d3a08e976b2e | [
"MIT"
] | 13 | 2019-04-16T16:39:44.000Z | 2021-06-01T21:50:12.000Z | #!/usr/bin/python
from .rot13 import Rot13
import secretpy.alphabets as al
class Rot18:
"""
The Rot18 Cipher
"""
__rot13 = Rot13()
def __init__(self):
alphabet = al.ENGLISH
half = len(alphabet) >> 1
self.__alphabet = alphabet[:half] + al.DECIMAL[:5] + alphabet[half:] + al... | 24.396226 | 93 | 0.58314 | 1,214 | 0.938902 | 0 | 0 | 0 | 0 | 0 | 0 | 605 | 0.467904 |
ed6310e1d8d83cf871e0d32a527ca7f1529b58ca | 1,302 | py | Python | pysaurus/database/special_properties.py | notoraptor/pysaurus | 3bf5fe8c15e0e0e580e5edaea05b4a1298641367 | [
"MIT"
] | null | null | null | pysaurus/database/special_properties.py | notoraptor/pysaurus | 3bf5fe8c15e0e0e580e5edaea05b4a1298641367 | [
"MIT"
] | 4 | 2021-08-13T14:03:02.000Z | 2022-03-05T16:02:45.000Z | pysaurus/database/special_properties.py | notoraptor/pysaurus | 3bf5fe8c15e0e0e580e5edaea05b4a1298641367 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from pysaurus.database.properties import PropType
from pysaurus.database.video import Video
class SpecialPropType(PropType):
__slots__ = ()
@abstractmethod
def get(self, video: Video):
raise NotImplementedError()
class PropError(SpecialPropType):
__slots__ = ... | 26.04 | 83 | 0.627496 | 1,169 | 0.897849 | 0 | 0 | 798 | 0.612903 | 0 | 0 | 11 | 0.008449 |
ed65a740d0a6c0e521ed5a04db6b899535f0bcde | 19,613 | py | Python | patrole_tempest_plugin/rbac_utils.py | openstack/patrole | fa0ee135121a5e86301ad5ee1854b3a0bd70b69b | [
"Apache-2.0"
] | 14 | 2017-01-03T15:07:18.000Z | 2020-09-17T18:07:39.000Z | patrole_tempest_plugin/rbac_utils.py | openstack/patrole | fa0ee135121a5e86301ad5ee1854b3a0bd70b69b | [
"Apache-2.0"
] | null | null | null | patrole_tempest_plugin/rbac_utils.py | openstack/patrole | fa0ee135121a5e86301ad5ee1854b3a0bd70b69b | [
"Apache-2.0"
] | 12 | 2017-02-28T20:08:48.000Z | 2020-12-30T09:31:51.000Z | # Copyright 2017 AT&T 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 require... | 39.069721 | 120 | 0.629175 | 18,161 | 0.925967 | 3,590 | 0.183042 | 11,573 | 0.590068 | 0 | 0 | 10,147 | 0.517361 |
ed66f473c8ee9e1a4cbf088bc3dc94834ee24ff9 | 6,029 | py | Python | core/my_widgets/drug_picker.py | kimera1999/pmpktn | 5307b6684a08bac4b88617f097017b5ea4192ab2 | [
"MIT"
] | null | null | null | core/my_widgets/drug_picker.py | kimera1999/pmpktn | 5307b6684a08bac4b88617f097017b5ea4192ab2 | [
"MIT"
] | null | null | null | core/my_widgets/drug_picker.py | kimera1999/pmpktn | 5307b6684a08bac4b88617f097017b5ea4192ab2 | [
"MIT"
] | 1 | 2020-05-16T14:28:59.000Z | 2020-05-16T14:28:59.000Z | from initialize import *
from core.db.db_func import query_linedrug_list
import os
import wx
class DrugPopup(wx.ComboPopup):
def __init__(self, parent):
super().__init__()
self.lc = None
self.mv = parent.mv
self.init_d_l = query_linedrug_list(self.mv.sess).all()
self.d_l =... | 31.238342 | 96 | 0.543208 | 5,960 | 0.983661 | 0 | 0 | 578 | 0.095395 | 0 | 0 | 212 | 0.034989 |
ed6710b9dafd0dadb8b0c6608676f1c2e79ad2c8 | 615 | py | Python | em Python/Roteiro4/Roteiro4__grafos.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | em Python/Roteiro4/Roteiro4__grafos.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | em Python/Roteiro4/Roteiro4__grafos.py | GuilhermeEsdras/Grafos | b6556c3d679496d576f65b798a1a584cd73e40f4 | [
"MIT"
] | null | null | null | from Roteiro4.Roteiro4__funcoes import Grafo
class Grafos:
# Grafo da Paraíba
paraiba = Grafo(['J', 'C', 'E', 'P', 'M', 'T', 'Z'])
for aresta in ['J-C', 'C-E', 'C-E', 'C-P', 'C-P', 'C-M', 'C-T', 'M-T', 'T-Z']:
paraiba.adicionaAresta(aresta)
# --- #
# Grafo Completo
grafo... | 23.653846 | 82 | 0.461789 | 568 | 0.922078 | 0 | 0 | 0 | 0 | 0 | 0 | 192 | 0.311688 |
ed6739ff5f8ea8f36a47b3ca0134c0c015b0b7c7 | 3,499 | py | Python | fuzzybee/joboard/views.py | youtaya/knight | 6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee | [
"MIT"
] | null | null | null | fuzzybee/joboard/views.py | youtaya/knight | 6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee | [
"MIT"
] | null | null | null | fuzzybee/joboard/views.py | youtaya/knight | 6899e18ca6b1ef01daaae7d7fd14b50a26aa0aee | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.shortcuts import get_object_or_404, render_to_response, render
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.shortcuts import redirect
from joboard.models import Factory
from joboard.forms import FactoryForm
from d... | 33.009434 | 105 | 0.658474 | 0 | 0 | 0 | 0 | 1,476 | 0.421835 | 0 | 0 | 666 | 0.19034 |
ed67b3786dc5aa973280b427220b99a230def591 | 464 | py | Python | flask/app.py | yatsu/react-flask-graphql-example | 18a38b7602c81a85a3cc38c74440ce34d63fc32a | [
"MIT"
] | 21 | 2017-06-24T15:29:30.000Z | 2021-03-03T06:58:41.000Z | flask/app.py | yatsu/react-flask-graphql-example | 18a38b7602c81a85a3cc38c74440ce34d63fc32a | [
"MIT"
] | null | null | null | flask/app.py | yatsu/react-flask-graphql-example | 18a38b7602c81a85a3cc38c74440ce34d63fc32a | [
"MIT"
] | 6 | 2018-01-15T06:36:11.000Z | 2022-03-18T07:57:39.000Z | from flask import Flask
from flask_cors import CORS
from flask_graphql import GraphQLView
from schema import Schema
def create_app(**kwargs):
app = Flask(__name__)
app.debug = True
app.add_url_rule(
'/graphql',
view_func=GraphQLView.as_view('graphql', schema=Schema, **kwargs)
)
ret... | 22.095238 | 73 | 0.668103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 52 | 0.112069 |
ed689bd57d1b5e295bd3bb253d9bfc772e080d82 | 5,431 | py | Python | mortgagetvm/mortgageOptions.py | AndrewChap/mortgagetvm | 4ec39707d61bcb3224bdcddce84bf237f02352d1 | [
"MIT"
] | null | null | null | mortgagetvm/mortgageOptions.py | AndrewChap/mortgagetvm | 4ec39707d61bcb3224bdcddce84bf237f02352d1 | [
"MIT"
] | null | null | null | mortgagetvm/mortgageOptions.py | AndrewChap/mortgagetvm | 4ec39707d61bcb3224bdcddce84bf237f02352d1 | [
"MIT"
] | null | null | null | # Factory-like class for mortgage options
class MortgageOptions:
def __init__(self,kind,**inputOptions):
self.set_default_options()
self.set_kind_options(kind = kind)
self.set_input_options(**inputOptions)
def set_default_options(self):
self.optionList = dict()
self.optionList['commonDefaul... | 58.397849 | 88 | 0.606518 | 5,388 | 0.992082 | 0 | 0 | 0 | 0 | 0 | 0 | 2,643 | 0.486651 |
ed693e39d7414ae26d14dc6568bc549d2c30f321 | 1,452 | py | Python | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | 2 | 2020-04-13T04:47:26.000Z | 2022-02-19T06:10:04.000Z | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | null | null | null | DD/Terrain.py | CodingBullywug/DDreshape | 393e5ea336eb6cb78f31345731ccf52baf19bfac | [
"MIT"
] | 1 | 2020-04-13T04:47:30.000Z | 2020-04-13T04:47:30.000Z | from DD.utils import PoolByteArray2NumpyArray, NumpyArray2PoolByteArray
from DD.Entity import Entity
import numpy as np
class Terrain(Entity):
def __init__(self, json, width, height, scale=4, terrain_types=4):
super(Terrain, self).__init__(json)
self._scale = scale
self.terrain_types = terr... | 37.230769 | 144 | 0.644628 | 1,330 | 0.915978 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 0.017906 |
ed69c7e1252a3ec3f75d6d65d353de14affd6d0c | 1,628 | py | Python | bluesky/tests/utils.py | AbbyGi/bluesky | 759f9c55dce97dc47513cca749a69dd861bdf58d | [
"BSD-3-Clause"
] | 43 | 2015-08-04T20:13:41.000Z | 2019-04-12T17:21:36.000Z | bluesky/tests/utils.py | AbbyGi/bluesky | 759f9c55dce97dc47513cca749a69dd861bdf58d | [
"BSD-3-Clause"
] | 966 | 2015-07-29T16:43:21.000Z | 2019-05-09T21:02:28.000Z | bluesky/tests/utils.py | AbbyGi/bluesky | 759f9c55dce97dc47513cca749a69dd861bdf58d | [
"BSD-3-Clause"
] | 48 | 2019-05-15T18:01:06.000Z | 2022-03-03T18:53:43.000Z | from collections import defaultdict
import contextlib
import tempfile
import sys
import threading
import asyncio
@contextlib.contextmanager
def _print_redirect():
old_stdout = sys.stdout
try:
fout = tempfile.TemporaryFile(mode="w+", encoding="utf-8")
sys.stdout = fout
yield fout
fi... | 23.941176 | 66 | 0.594595 | 875 | 0.537469 | 216 | 0.132678 | 243 | 0.149263 | 0 | 0 | 118 | 0.072482 |
ed69da856e9dae34d6443933a8a9df258e7f8e95 | 1,116 | py | Python | cli/check_json.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | cli/check_json.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | cli/check_json.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | null | null | null | import json
import sys
from openslides_backend.models.checker import Checker, CheckException
def main() -> int:
files = sys.argv[1:]
if not files:
print("No files specified.")
return 1
possible_modes = tuple(f"--{mode}" for mode in Checker.modes)
modes = tuple(mode[2:] for mode in p... | 24.8 | 78 | 0.53405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 164 | 0.146953 |
ed6a3ab7b10d68f5a936266b4ec7064d1ae865c6 | 313 | py | Python | utils/mgmt.py | robinagist/manic | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | 2 | 2018-09-06T05:39:11.000Z | 2020-10-13T21:40:06.000Z | utils/mgmt.py | robinagist/manic | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | 20 | 2018-01-20T05:00:23.000Z | 2018-01-25T17:55:00.000Z | utils/mgmt.py | robinagist/Manic-Mapped-Memory-Server | b1bdefbb11c7489164a0c08bb092ffecb5900261 | [
"MIT"
] | null | null | null | from utils.data import load_memfile_configs
from utils.server import plain_response
from sanic import response
def get_mappedfile_configs():
cfgs = load_memfile_configs()
return response.json(plain_response(cfgs, 0), status=200)
def created_mapped_file():
pass
def delete_mapped_file():
pass | 19.5625 | 61 | 0.776358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ed6ad5b625da50e0023d94d78806dbcd8acd64a1 | 28,127 | py | Python | datasets/medicalImage.py | UpCoder/YNe | 2f932456eda29b1e04f4c7e212e2ab0dacfe831b | [
"MIT"
] | null | null | null | datasets/medicalImage.py | UpCoder/YNe | 2f932456eda29b1e04f4c7e212e2ab0dacfe831b | [
"MIT"
] | null | null | null | datasets/medicalImage.py | UpCoder/YNe | 2f932456eda29b1e04f4c7e212e2ab0dacfe831b | [
"MIT"
] | null | null | null | # -*- coding=utf-8 -*-
import SimpleITK as itk
import pydicom
import numpy as np
from PIL import Image, ImageDraw
import gc
from skimage.morphology import disk, dilation
import nipy
import os
from glob import glob
import scipy
import cv2
from xml.dom.minidom import Document
typenames = ['CYST', 'FNH', 'HCC', 'HEM', 'M... | 33.484524 | 138 | 0.657731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,275 | 0.182937 |
ed6aff1082796c2046965ddce3d39f2087944e89 | 925 | py | Python | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | 1 | 2020-11-11T02:19:50.000Z | 2020-11-11T02:19:50.000Z | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | null | null | null | setup.py | marcus-luck/zohoreader | e832f076a8a87bf27607980fb85a1d2bc8339743 | [
"MIT"
] | null | null | null | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(name='zohoreader',
version='0.1',
description='A simple reader for zoho projects API to get all projects, users and timereports',
long_description=readme(),
classifiers=[
'Devel... | 28.030303 | 101 | 0.596757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 423 | 0.457297 |
ed6b5de7ad69456fafac8a04559f11ef56300d5e | 24,607 | bzl | Python | web/repositories.bzl | Ubehebe/rules_webtesting | c231866a3bccc0f27b31050a57dc2b4a700ad64e | [
"Apache-2.0"
] | null | null | null | web/repositories.bzl | Ubehebe/rules_webtesting | c231866a3bccc0f27b31050a57dc2b4a700ad64e | [
"Apache-2.0"
] | null | null | null | web/repositories.bzl | Ubehebe/rules_webtesting | c231866a3bccc0f27b31050a57dc2b4a700ad64e | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 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 or agreed to in writing,... | 43.019231 | 152 | 0.675011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14,898 | 0.605437 |
ed6b5f33a003c3ef902a30bdc2ac23b77d488f11 | 8,045 | py | Python | code/tools/run_viz_single_task.py | santomon/taskonomy | 4b22087a2686172b21b61589831061e7a386fe36 | [
"MIT"
] | 789 | 2018-03-21T05:28:38.000Z | 2022-03-29T19:32:47.000Z | code/tools/run_viz_single_task.py | santomon/taskonomy | 4b22087a2686172b21b61589831061e7a386fe36 | [
"MIT"
] | 46 | 2018-05-03T07:11:10.000Z | 2022-03-11T23:26:03.000Z | code/tools/run_viz_single_task.py | santomon/taskonomy | 4b22087a2686172b21b61589831061e7a386fe36 | [
"MIT"
] | 152 | 2018-03-24T10:20:44.000Z | 2022-02-09T02:38:10.000Z | from __future__ import absolute_import, division, print_function
import argparse
import importlib
import itertools
import time
from multiprocessing import Pool
import numpy as np
import os
import pdb
import pickle
import subprocess
import sys
import tensorflow as tf
import tensorflow.contrib.slim as slim
import thr... | 35.131004 | 313 | 0.605842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,075 | 0.257924 |
ed6bae7a17f418cda8c2e6d4ee817869bb64ec62 | 35,884 | bzl | Python | stratum/portage/build_defs.bzl | cholve/stratum | 09ddb5acb604f7e694a6b7d2fe93fea79f801794 | [
"Apache-2.0"
] | 267 | 2019-09-11T15:01:37.000Z | 2022-03-28T11:14:29.000Z | stratum/portage/build_defs.bzl | cholve/stratum | 09ddb5acb604f7e694a6b7d2fe93fea79f801794 | [
"Apache-2.0"
] | 906 | 2019-09-18T03:37:08.000Z | 2022-03-30T00:59:53.000Z | stratum/portage/build_defs.bzl | cholve/stratum | 09ddb5acb604f7e694a6b7d2fe93fea79f801794 | [
"Apache-2.0"
] | 107 | 2019-09-16T07:30:53.000Z | 2022-03-18T09:53:03.000Z | # Copyright 2018 Google LLC
# Copyright 2018-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
"""A portable build system for Stratum P4 switch stack.
To use this, load() this file in a BUILD file, specifying the symbols needed.
The public symbols are the macros:
decorate(path)
sc_cc_lib ... | 35.042969 | 90 | 0.582767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 17,398 | 0.48484 |
ed6c12390ca654e898450e0424a1c59a124edd59 | 96,578 | py | Python | src/genie/libs/parser/ios/tests/test_show_platform.py | miuvlad/genieparser | 60b1151e3c67c6b55d75e30359d0bf52825efad8 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/ios/tests/test_show_platform.py | miuvlad/genieparser | 60b1151e3c67c6b55d75e30359d0bf52825efad8 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/ios/tests/test_show_platform.py | miuvlad/genieparser | 60b1151e3c67c6b55d75e30359d0bf52825efad8 | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
import unittest
from unittest.mock import Mock
from pyats.topology import Device
from genie.metaparser.util.exceptions import SchemaEmptyParserError,\
SchemaMissingKeyError
from genie.libs.parser.ios.show_platform import ShowVersion,\
Dir,\
ShowRedundan... | 41.307956 | 153 | 0.510582 | 93,626 | 0.969434 | 0 | 0 | 0 | 0 | 0 | 0 | 43,975 | 0.455331 |
ed6c19de3061a6952b4f83f10500239e87852cc5 | 2,883 | py | Python | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | autumn/projects/covid_19/sri_lanka/sri_lanka/project.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | import numpy as np
from autumn.calibration.proposal_tuning import perform_all_params_proposal_tuning
from autumn.core.project import Project, ParameterSet, load_timeseries, build_rel_path, get_all_available_scenario_paths, \
use_tuned_proposal_sds
from autumn.calibration import Calibration
from autumn.calibration.p... | 43.029851 | 123 | 0.794658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 921 | 0.319459 |
ed6c1e66e6a96e129aa7826692f68edb943e0fae | 9,245 | py | Python | Analytics/resources/themes/test_subthemes.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 4 | 2018-11-21T14:42:18.000Z | 2020-05-11T10:52:59.000Z | Analytics/resources/themes/test_subthemes.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 60 | 2018-11-21T15:11:59.000Z | 2019-12-02T10:46:44.000Z | Analytics/resources/themes/test_subthemes.py | thanosbnt/SharingCitiesDashboard | 5d123691d1f25d0b85e20e4e8293266bf23c9f8a | [
"Apache-2.0"
] | 7 | 2018-11-21T14:42:44.000Z | 2019-11-28T16:24:14.000Z | import unittest
from http import HTTPStatus
from unittest import TestCase
import bcrypt
from flask.ctx import AppContext
from flask.testing import FlaskClient
from app import create_app
from models.theme import Theme, SubTheme
from models.users import Users
class TestSubTemes(TestCase):
"""
Unittest for the... | 42.800926 | 119 | 0.589508 | 8,933 | 0.966252 | 0 | 0 | 0 | 0 | 0 | 0 | 2,853 | 0.308599 |
ed6c49af1afdf5e937dac3ecb68b0de9cb7816d4 | 11,421 | py | Python | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | selfdrive/sensord/rawgps/structs.py | TC921/openpilot | d5d91e6e3be02e2525ed8d6137e5fdca2b81657c | [
"MIT"
] | null | null | null | from struct import unpack_from, calcsize
LOG_GNSS_POSITION_REPORT = 0x1476
LOG_GNSS_GPS_MEASUREMENT_REPORT = 0x1477
LOG_GNSS_CLOCK_REPORT = 0x1478
LOG_GNSS_GLONASS_MEASUREMENT_REPORT = 0x1480
LOG_GNSS_BDS_MEASUREMENT_REPORT = 0x1756
LOG_GNSS_GAL_MEASUREMENT_REPORT = 0x1886
LOG_GNSS_OEMDRE_MEASUREMENT_REPORT = 0x14DE
... | 50.76 | 403 | 0.698976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9,620 | 0.842308 |
ed6ced72ed9bc083484bd7a8ca32221ff538be8a | 12,541 | py | Python | python2.7libs/hammer_tools/content_browser.py | anvdev/Hammer-Tools | 0211ec837da6754e537c98624ecd07c23abab28e | [
"Apache-2.0"
] | 19 | 2019-10-09T13:48:11.000Z | 2021-06-14T01:25:23.000Z | python2.7libs/hammer_tools/content_browser.py | anvdev/Hammer-Tools | 0211ec837da6754e537c98624ecd07c23abab28e | [
"Apache-2.0"
] | 219 | 2019-10-08T14:44:48.000Z | 2021-06-19T06:27:46.000Z | python2.7libs/hammer_tools/content_browser.py | anvdev/Hammer-Tools | 0211ec837da6754e537c98624ecd07c23abab28e | [
"Apache-2.0"
] | 3 | 2020-02-14T06:18:06.000Z | 2020-11-25T20:47:06.000Z | from __future__ import print_function
try:
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
except ImportError:
from PySide2.QtWidgets import *
from PySide2.QtGui import *
from PySide2.QtCore import *
import hou
from hammer_tools.utils import createAction
d... | 37.21365 | 106 | 0.660633 | 11,891 | 0.94817 | 0 | 0 | 0 | 0 | 0 | 0 | 570 | 0.045451 |
ed6cf42a0947849b7e11a5ffae5ba378599d9f7e | 1,106 | py | Python | rt-thread/applications/server/udp_sender.py | luhuadong/stm32f769-disco-demo | c7fb0d627b02c3f87959f43f1447bc79f62a7099 | [
"Apache-2.0"
] | null | null | null | rt-thread/applications/server/udp_sender.py | luhuadong/stm32f769-disco-demo | c7fb0d627b02c3f87959f43f1447bc79f62a7099 | [
"Apache-2.0"
] | null | null | null | rt-thread/applications/server/udp_sender.py | luhuadong/stm32f769-disco-demo | c7fb0d627b02c3f87959f43f1447bc79f62a7099 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
"""
UDP sender
"""
import socket
import time
import sys
smsg = b'\xaa\x08\xfe\x00\xc9\xe6\x5f\xee'
def main():
ip_port = ('192.168.3.188', 8888)
if len(sys.argv) < 2:
port = 8888
else:
port = int(sys.argv[1])
# 1. 创建 udp 套接字
udp_socket = socket.socket(s... | 17.83871 | 65 | 0.513562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 445 | 0.386285 |
ed6da0909e41c7d13eeccbce6856b66ed6774782 | 1,273 | py | Python | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | 6 | 2021-04-29T12:48:55.000Z | 2021-06-25T06:54:37.000Z | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | null | null | null | yudzuki/role.py | LunaProject-Discord/yudzuki.py | 7ff2d1f9e39ed5300a46c48fb95df50046814ede | [
"MIT"
] | null | null | null | __all__ = (
"Role",
)
class Role:
def __init__(self, data):
self.data = data
self._update(data)
def _get_json(self):
return self.data
def __repr__(self):
return (
f"<Role id={self.id} name={self.name}>"
)
def __str__(self):
... | 19.584615 | 51 | 0.531815 | 1,245 | 0.978005 | 0 | 0 | 480 | 0.377062 | 0 | 0 | 127 | 0.099764 |
ed6e652c3847138189ca7b951889b9b3a32aa8ce | 1,702 | py | Python | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | jassen/django/project/project/urls.py | cabilangan112/intern-drf-blog | b2d6c7a4af1316b2c7ce38547bd9df99b4f3e8b9 | [
"MIT"
] | null | null | null | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | 37.822222 | 101 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 789 | 0.463572 |
ed6e6b0df61cc3926c2f1e1ffc6195fcb5a7b2f1 | 13 | py | Python | deep-learning-app/src/models/__init__.py | everbrez/Deep-Learning-based-Chemical-Graphics-Analysis-Platform | 5ecaedadd74e96891c28d9f73384e07c1526916b | [
"Apache-2.0"
] | 1 | 2021-04-30T10:44:32.000Z | 2021-04-30T10:44:32.000Z | deep-learning-app/src/models/__init__.py | everbrez/Deep-Learning-based-Chemical-Graphics-Analysis-Platform | 5ecaedadd74e96891c28d9f73384e07c1526916b | [
"Apache-2.0"
] | null | null | null | deep-learning-app/src/models/__init__.py | everbrez/Deep-Learning-based-Chemical-Graphics-Analysis-Platform | 5ecaedadd74e96891c28d9f73384e07c1526916b | [
"Apache-2.0"
] | null | null | null | print('init') | 13 | 13 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.461538 |
ed6e6d96a4c0121238dbb61b6a4a506e75d9c0bd | 1,007 | py | Python | chemmltoolkit/tensorflow/callbacks/variableScheduler.py | Andy-Wilkinson/ChemMLToolk | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | 1 | 2019-10-30T03:43:24.000Z | 2019-10-30T03:43:24.000Z | chemmltoolkit/tensorflow/callbacks/variableScheduler.py | Andy-Wilkinson/ChemMLToolk | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | 2 | 2021-11-28T21:09:30.000Z | 2021-11-28T21:09:39.000Z | chemmltoolkit/tensorflow/callbacks/variableScheduler.py | Andy-Wilkinson/ChemMLToolkit | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | [
"MIT"
] | null | null | null | import tensorflow as tf
class VariableScheduler(tf.keras.callbacks.Callback):
"""Schedules an arbitary variable during training.
Arguments:
variable: The variable to modify the value of.
schedule: A function that takes an epoch index (integer, indexed
from 0) and current variable ... | 37.296296 | 73 | 0.646475 | 980 | 0.973188 | 0 | 0 | 0 | 0 | 0 | 0 | 479 | 0.47567 |
ed6f5b3794c25687738dfe6c60b7b8d1ed6647b2 | 14,621 | py | Python | join_peaks.py | nijibabulu/chip_tools | 04def22059a6018b3b49247d69d7b04eee1dcd89 | [
"MIT"
] | null | null | null | join_peaks.py | nijibabulu/chip_tools | 04def22059a6018b3b49247d69d7b04eee1dcd89 | [
"MIT"
] | null | null | null | join_peaks.py | nijibabulu/chip_tools | 04def22059a6018b3b49247d69d7b04eee1dcd89 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import os
import sys
import math
import csv
import collections
import docopt
import peakzilla_qnorm_mapq_patched as pz
__doc__ = '''
Usage: join_peaks.py [options] PEAKS CHIP INPUT [ (PEAKS CHIP INPUT) ... ]
This script finds peaks in common between multiple ChIP experiments determined
by pe... | 39.730978 | 122 | 0.603584 | 8,588 | 0.587374 | 0 | 0 | 382 | 0.026127 | 0 | 0 | 4,684 | 0.320361 |
ed6ff0df42bec5dfbd4d71634bb7ab44a9c003d2 | 9,473 | py | Python | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | django_town/rest_swagger/views.py | uptown/django-town | 4c3b078a8ce5dcc275d65faa4a1cdfb7ebc74a50 | [
"MIT"
] | null | null | null | from django_town.rest import RestApiView, rest_api_manager
from django_town.http import http_json_response
from django_town.cache.utlis import SimpleCache
from django_town.oauth2.swagger import swagger_authorizations_data
from django_town.social.oauth2.permissions import OAuth2Authenticated, OAuth2AuthenticatedOrReadOn... | 43.059091 | 108 | 0.331468 | 9,065 | 0.95693 | 0 | 0 | 0 | 0 | 0 | 0 | 1,742 | 0.183891 |
ed71593db0e5552171798bc1852cca8f7c4d9f3e | 2,285 | py | Python | components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py | mastermind88/dash | 760af721980e18d91bdbc4e204d1d063c7ed325c | [
"MIT"
] | null | null | null | components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py | mastermind88/dash | 760af721980e18d91bdbc4e204d1d063c7ed325c | [
"MIT"
] | null | null | null | components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py | mastermind88/dash | 760af721980e18d91bdbc4e204d1d063c7ed325c | [
"MIT"
] | null | null | null | from dash import Dash, Input, Output, dcc, html
from dash.exceptions import PreventUpdate
def test_dddo001_dynamic_options(dash_dcc):
dropdown_options = [
{"label": "New York City", "value": "NYC"},
{"label": "Montreal", "value": "MTL"},
{"label": "San Francisco", "value": "SF"},
]
... | 27.202381 | 87 | 0.647265 | 0 | 0 | 0 | 0 | 300 | 0.131291 | 0 | 0 | 718 | 0.314223 |
ed725c3c070133c88aad862a90d3bfcbc58edf09 | 768 | py | Python | Server.py | dipghoshraj/live-video-streming-with-web-socket | dda924e22a4c40d225ec39dd94ee1e489233c403 | [
"BSD-2-Clause"
] | 3 | 2020-06-30T03:49:46.000Z | 2021-07-17T16:15:55.000Z | Server.py | dipghoshraj/live-video-streming-with-web-socket | dda924e22a4c40d225ec39dd94ee1e489233c403 | [
"BSD-2-Clause"
] | null | null | null | Server.py | dipghoshraj/live-video-streming-with-web-socket | dda924e22a4c40d225ec39dd94ee1e489233c403 | [
"BSD-2-Clause"
] | null | null | null | import cv2
import io
import socket
import struct
import time
import pickle
import zlib
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(('127.0.0.1', 8485))
connection = client_socket.makefile('wb')
cam = cv2.VideoCapture("E:/songs/Attention Charlie Puth(GabbarWorld.com) 1080p.mp4... | 29.538462 | 84 | 0.71224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 142 | 0.184896 |
ed74d0762a12ab84a6b4c685f57a0a532e003b99 | 7,059 | py | Python | hal/agent/tf2_utils.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-13T21:48:52.000Z | 2022-03-13T21:48:52.000Z | hal/agent/tf2_utils.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | hal/agent/tf2_utils.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 32.380734 | 79 | 0.696841 | 2,381 | 0.3373 | 0 | 0 | 0 | 0 | 0 | 0 | 3,557 | 0.503896 |
ed753328e567a24c6d1169588942c86a984af1ee | 4,437 | py | Python | wolk/logger_factory.py | Wolkabout/WolkConnect-Python- | 11412e3f88911170f587b5e857d07ab41c8f52b5 | [
"Apache-2.0"
] | 6 | 2016-12-19T13:36:44.000Z | 2018-05-10T15:08:15.000Z | wolk/logger_factory.py | Wolkabout/WolkConnect-Python | 11412e3f88911170f587b5e857d07ab41c8f52b5 | [
"Apache-2.0"
] | 5 | 2019-02-23T09:37:12.000Z | 2021-09-17T13:54:58.000Z | wolk/logger_factory.py | Wolkabout/WolkConnect-Python- | 11412e3f88911170f587b5e857d07ab41c8f52b5 | [
"Apache-2.0"
] | 3 | 2016-08-15T22:19:00.000Z | 2017-12-28T09:48:37.000Z | """LoggerFactory Module."""
# Copyright 2020 WolkAbout Technology s.r.o.
#
# 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
#
# Unl... | 30.8125 | 88 | 0.610773 | 2,702 | 0.60897 | 0 | 0 | 0 | 0 | 0 | 0 | 1,976 | 0.445346 |
ed7563752fb4afab443eb59eb4484ffff4182b40 | 1,830 | py | Python | raw.py | andre-marcos-perez/data-pipeline-demo | 2647cce6e90d39798eda352608dc0f6d6ab5255a | [
"MIT"
] | 3 | 2021-05-20T23:24:13.000Z | 2021-08-20T12:23:18.000Z | raw.py | andre-marcos-perez/data-pipeline-demo | 2647cce6e90d39798eda352608dc0f6d6ab5255a | [
"MIT"
] | null | null | null | raw.py | andre-marcos-perez/data-pipeline-demo | 2647cce6e90d39798eda352608dc0f6d6ab5255a | [
"MIT"
] | 3 | 2021-05-26T14:49:20.000Z | 2022-03-21T23:17:54.000Z | import json
import gzip
import requests
from datetime import datetime
import pendulum
import boto3
from botocore.exceptions import ClientError
from util.log import Log
from settings.aws_settings import AWSSettings
from settings.telegram_settings import TelegramSettings
def lambda_handler(event: dict, context: dict)... | 31.016949 | 103 | 0.62623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 352 | 0.19235 |