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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
726955e0b07fe2c8c796176a5076ee44d6371107 | 304 | py | Python | pytm/__init__.py | jeremyng123/pytm | e0bbbbbcfa387887753e27f78678c6004edf0e85 | [
"MIT"
] | null | null | null | pytm/__init__.py | jeremyng123/pytm | e0bbbbbcfa387887753e27f78678c6004edf0e85 | [
"MIT"
] | null | null | null | pytm/__init__.py | jeremyng123/pytm | e0bbbbbcfa387887753e27f78678c6004edf0e85 | [
"MIT"
] | null | null | null | __all__ = ['Element', 'Server', 'ExternalEntity', 'Datastore', 'Actor', 'Process', 'SetOfProcesses', 'Dataflow', 'Boundary', 'TM', 'Action', 'Lambda', 'Threat']
from .pytm import Element, Server, ExternalEntity, Dataflow, Datastore, Actor, Process, SetOfProcesses, Boundary, TM, Action, Lambda, Threat
| 60.8 | 160 | 0.713816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 124 | 0.407895 |
7269858ddc95892c083fd9a632926838c559c8a0 | 7,344 | py | Python | malchive/utilities/comguidtoyara.py | 6un9-h0-Dan/malchive | 1d150430559a307cdfee49d47799c95caea47415 | [
"Apache-2.0"
] | 59 | 2021-01-29T15:58:43.000Z | 2022-02-11T20:15:04.000Z | malchive/utilities/comguidtoyara.py | 6un9-h0-Dan/malchive | 1d150430559a307cdfee49d47799c95caea47415 | [
"Apache-2.0"
] | 1 | 2021-04-09T13:53:47.000Z | 2021-04-09T13:53:47.000Z | malchive/utilities/comguidtoyara.py | 6un9-h0-Dan/malchive | 1d150430559a307cdfee49d47799c95caea47415 | [
"Apache-2.0"
] | 10 | 2021-01-29T19:35:45.000Z | 2021-07-18T21:07:40.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(c) 2021 The MITRE 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/lice... | 32.932735 | 124 | 0.578431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,983 | 0.406182 |
726a44a6fe535cc4bca286ac9836e2fee0dcea3e | 8,580 | py | Python | examples/voc2007_extract.py | sis0truk/pretrained-models.pytorch | 4aea6d47996279b4b281355ca3d9738d0dff7469 | [
"BSD-3-Clause"
] | 91 | 2018-03-21T19:45:00.000Z | 2021-12-13T06:08:00.000Z | examples/voc2007_extract.py | wubin1836/pretrained-models.pytorch | cb5127f43c554c0bb52c5ded3c071d9de9a514a4 | [
"BSD-3-Clause"
] | 6 | 2019-08-03T08:49:21.000Z | 2022-03-11T23:43:56.000Z | examples/voc2007_extract.py | wubin1836/pretrained-models.pytorch | cb5127f43c554c0bb52c5ded3c071d9de9a514a4 | [
"BSD-3-Clause"
] | 13 | 2018-03-23T12:31:52.000Z | 2020-07-20T13:16:44.000Z | import os
import argparse
from tqdm import tqdm
import torch
from torch.autograd import Variable
from torch.utils import model_zoo
# http://scikit-learn.org
from sklearn.metrics import accuracy_score
from sklearn.metrics import average_precision_score
from sklearn.svm import LinearSVC
from sklearn.svm import SVC
imp... | 46.630435 | 156 | 0.675291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,432 | 0.1669 |
726b36a2e85a950a7d407068d5aa12a5d50355a1 | 4,089 | py | Python | main.py | tani-cat/point_maximizer | c9ff868377bbeed4727914d7be258457dc8295a3 | [
"MIT"
] | 1 | 2021-09-07T04:19:48.000Z | 2021-09-07T04:19:48.000Z | main.py | tani-cat/point_maximizer | c9ff868377bbeed4727914d7be258457dc8295a3 | [
"MIT"
] | null | null | null | main.py | tani-cat/point_maximizer | c9ff868377bbeed4727914d7be258457dc8295a3 | [
"MIT"
] | null | null | null | import csv
import os
from collections import deque
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
INPUT_PATH = os.path.join(BASE_DIR, 'goods_source.csv')
OUTPUT_PATH = os.path.join(BASE_DIR, 'result.csv')
FILE_ENCODE = 'shift_jis'
INPUT_COLS = ('id', 'goods_name', 'price')
def import_csv():
"""入力データの読み込... | 25.716981 | 82 | 0.544876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,515 | 0.317012 |
726b9a5bd16ce05e24c2ecf163d38e79bdafc8e9 | 440 | py | Python | src/gui/tcltk/tcl/tests/langbench/proc.py | gspu/bitkeeper | 994fb651a4045b221e33703fc3d665c3a34784e1 | [
"Apache-2.0"
] | 342 | 2016-05-10T14:59:07.000Z | 2022-03-09T23:45:43.000Z | src/gui/tcltk/tcl/tests/langbench/proc.py | rvs/bitkeeper | 616740d0daad99530951e46ab48e577807cbbaf4 | [
"Apache-2.0"
] | 4 | 2016-05-16T20:14:27.000Z | 2020-10-04T19:59:25.000Z | src/gui/tcltk/tcl/tests/langbench/proc.py | rvs/bitkeeper | 616740d0daad99530951e46ab48e577807cbbaf4 | [
"Apache-2.0"
] | 78 | 2016-05-10T15:53:30.000Z | 2022-03-09T23:46:06.000Z | #!/usr/bin/python
def a(val):
return b(val)
def b(val):
return c(val)
def c(val):
return d(val)
def d(val):
return e(val)
def e(val):
return f(val)
def f(val):
return g(val, 2)
def g(v1, v2):
return h(v1, v2, 3)
def h(v1, v2, v3):
return i(v1, v2, v3, 4)
def i(v1, v2, v3, v4):
return j(v1, v2, v3, v4, 5)
d... | 15.172414 | 30 | 0.556818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 0.052273 |
726cd8989837300a91d84b0ca0157304eb9a9398 | 821 | py | Python | src/metrics.py | dmitryrubtsov/Recommender-systems | 9debd7b1c2d67ebc508263a483c81da57521dea0 | [
"MIT"
] | null | null | null | src/metrics.py | dmitryrubtsov/Recommender-systems | 9debd7b1c2d67ebc508263a483c81da57521dea0 | [
"MIT"
] | null | null | null | src/metrics.py | dmitryrubtsov/Recommender-systems | 9debd7b1c2d67ebc508263a483c81da57521dea0 | [
"MIT"
] | 1 | 2021-09-11T09:12:34.000Z | 2021-09-11T09:12:34.000Z | import pandas as pd
import numpy as np
import swifter
def money_precision_at_k(y_pred: pd.Series, y_true: pd.Series, item_price, k=5):
y_pred = y_pred.swifter.progress_bar(False).apply(pd.Series)
user_filter = ~(y_true.swifter.progress_bar(False).apply(len) < k)
y_pred = y_pred.loc[user_filter]
y_tru... | 34.208333 | 111 | 0.685749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
726cdda30af8fd9c2b731782ba8da0a87b370957 | 598 | py | Python | diff_r_b.py | upupming/dragon | 245f71996004b386ae764eb8f76603233d8a6763 | [
"MIT"
] | 1 | 2019-10-10T03:37:19.000Z | 2019-10-10T03:37:19.000Z | diff_r_b.py | upupming/dragon | 245f71996004b386ae764eb8f76603233d8a6763 | [
"MIT"
] | null | null | null | diff_r_b.py | upupming/dragon | 245f71996004b386ae764eb8f76603233d8a6763 | [
"MIT"
] | null | null | null | import numpy as np
size = 9
percentage_max = 0.08
xis = np.linspace(0.1 * (1-percentage_max), 0.1 * (1+percentage_max), size)
E_n = [
85219342462.9973,
85219254693.4412,
85219173007.4296,
85219096895.7433,
85219025899.6604,
85218959605.1170,
85218897637.6421,
85218839657.9502,
85218785358.0968
]
percentage ... | 21.357143 | 75 | 0.704013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 151 | 0.252508 |
726ed8580c5eeb89980b035843019ba84698e921 | 102 | py | Python | src/run.py | rhiga2/mturk-tsep-test | 2cc4388442bc9155022d28ec9132acc10a1b82f7 | [
"MIT"
] | 38 | 2016-08-25T16:12:54.000Z | 2022-01-30T05:05:28.000Z | src/run.py | rhiga2/mturk-tsep-test | 2cc4388442bc9155022d28ec9132acc10a1b82f7 | [
"MIT"
] | 24 | 2016-06-29T15:28:16.000Z | 2022-03-08T02:38:51.000Z | src/run.py | rhiga2/mturk-tsep-test | 2cc4388442bc9155022d28ec9132acc10a1b82f7 | [
"MIT"
] | 16 | 2016-06-29T17:03:17.000Z | 2022-03-19T09:43:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from caqe import app
app.run(debug=True, threaded=True) | 20.4 | 34 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 44 | 0.431373 |
726f55adcb3a541f1d732e7444389c568ce9cca4 | 4,059 | py | Python | src/main/python/hydra/lib/cli.py | bopopescu/hydra | ec0793f8c1f49ceb93bf1f1a9789085b68d55f08 | [
"Apache-2.0"
] | 10 | 2016-05-28T15:56:43.000Z | 2018-01-03T21:30:58.000Z | src/main/python/hydra/lib/cli.py | bopopescu/hydra | ec0793f8c1f49ceb93bf1f1a9789085b68d55f08 | [
"Apache-2.0"
] | 17 | 2016-06-06T22:15:28.000Z | 2020-07-22T20:28:12.000Z | src/main/python/hydra/lib/cli.py | bopopescu/hydra | ec0793f8c1f49ceb93bf1f1a9789085b68d55f08 | [
"Apache-2.0"
] | 5 | 2016-06-01T22:01:44.000Z | 2020-07-22T20:12:49.000Z | """hydra cli.
Usage:
hydra cli ls slaves
hydra cli ls apps
hydra cli ls task <app>
hydra cli [force] stop <app>
hydra cli scale <app> <scale>
hydra cli (-h | --help)
hydra cli --version
Options:
-h --help Show this screen.
--version Show version.
"""
__author__ = 'sushil'
from docopt imp... | 34.109244 | 73 | 0.533875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,375 | 0.338753 |
726f6ae6d6811d44c154cb87d7ac33570c6e67c7 | 1,378 | py | Python | azure-devops/azext_devops/test/common/test_format.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 326 | 2019-04-10T12:38:23.000Z | 2022-03-31T23:07:49.000Z | azure-devops/azext_devops/test/common/test_format.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 562 | 2019-04-10T07:36:12.000Z | 2022-03-28T07:37:54.000Z | azure-devops/azext_devops/test/common/test_format.py | doggy8088/azure-devops-cli-extension | 2f6b1a6ffbc49ae454df640a8bb00dac991d6514 | [
"MIT"
] | 166 | 2019-04-10T07:59:40.000Z | 2022-03-16T14:17:13.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 34.45 | 94 | 0.58926 | 881 | 0.639332 | 0 | 0 | 0 | 0 | 0 | 0 | 493 | 0.357765 |
7271b55252042ba4d3337da31bedcd35a08671cd | 7,464 | py | Python | github/GitReleaseAsset.py | aantr/WindowsHostManager | 75d248fc8991d471c6802fa79e7dee44a5708c65 | [
"CNRI-Python-GPL-Compatible"
] | 1 | 2021-06-25T09:13:12.000Z | 2021-06-25T09:13:12.000Z | venv/lib/python3.6/site-packages/github/GitReleaseAsset.py | rongshaoshuai/blogs | dafeb789428436c1ec8069e605400612b776b8f2 | [
"MIT"
] | 3 | 2021-03-30T23:03:03.000Z | 2021-03-30T23:06:57.000Z | lib/github/GitReleaseAsset.py | Corionis/Knobs-And-Scripts | 81a954fd0ed697e5759359ec0383a3f16a841143 | [
"MIT"
] | null | null | null | ############################ Copyrights and license ############################
# #
# Copyright 2017 Chris McBride <thehighlander@users.noreply.github.com> #
# Copyright 2017 Simon <spam@esemi.ru> ... | 37.888325 | 150 | 0.554126 | 5,489 | 0.735397 | 0 | 0 | 1,974 | 0.264469 | 0 | 0 | 3,222 | 0.431672 |
727226bedc426059fe3d1bd87ec9c301e86441f8 | 3,005 | py | Python | tests/test_remote.py | epenet/samsung-tv-ws-api | 23e0cf8188ba16ab128cff40fc56358cc2167ead | [
"MIT"
] | null | null | null | tests/test_remote.py | epenet/samsung-tv-ws-api | 23e0cf8188ba16ab128cff40fc56358cc2167ead | [
"MIT"
] | null | null | null | tests/test_remote.py | epenet/samsung-tv-ws-api | 23e0cf8188ba16ab128cff40fc56358cc2167ead | [
"MIT"
] | null | null | null | """Tests for remote module."""
from unittest.mock import Mock, call, patch
from samsungtvws.remote import SamsungTVWS
def test_send_key(connection: Mock) -> None:
"""Ensure simple data can be parsed."""
open_response = (
'{"data": {"token": 123456789}, "event": "ms.channel.connect", "from": "host"}'
... | 37.098765 | 386 | 0.609651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,538 | 0.511814 |
7272878a102453847fd4632382fedab2cb904e9f | 518 | py | Python | src/utils/pythonSrc/watchFaceParser/models/elements/battery/batteryGaugeElement.py | chm-dev/amazfitGTSwatchfaceBundle | 4cb04be5215de16628418e9b38152a35d5372d3e | [
"MIT"
] | 49 | 2019-12-18T11:24:56.000Z | 2022-03-28T09:56:27.000Z | src/utils/pythonSrc/watchFaceParser/models/elements/battery/batteryGaugeElement.py | chm-dev/amazfitGTSwatchfaceBundle | 4cb04be5215de16628418e9b38152a35d5372d3e | [
"MIT"
] | 6 | 2020-01-08T21:31:15.000Z | 2022-03-25T19:13:26.000Z | src/utils/pythonSrc/watchFaceParser/models/elements/battery/batteryGaugeElement.py | chm-dev/amazfitGTSwatchfaceBundle | 4cb04be5215de16628418e9b38152a35d5372d3e | [
"MIT"
] | 6 | 2019-12-27T17:30:24.000Z | 2021-09-30T08:11:01.000Z | import logging
from watchFaceParser.models.elements.common.imageSetElement import ImageSetElement
class BatteryGaugeElement(ImageSetElement):
def __init__(self, parameter, parent, name = None):
super(BatteryGaugeElement, self).__init__(parameter = parameter, parent = parent, name = name)
def draw3(s... | 43.166667 | 125 | 0.745174 | 416 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7272f878dcec10a25f78ca45ec857fd8f9c8248c | 3,092 | py | Python | indicoio/utils/__init__.py | JoseRoman/IndicoIo-python | 4fe2952df45c26392f36acd8b43391dfc50e140b | [
"MIT"
] | 1 | 2021-05-26T09:03:15.000Z | 2021-05-26T09:03:15.000Z | indicoio/utils/__init__.py | JoseRoman/IndicoIo-python | 4fe2952df45c26392f36acd8b43391dfc50e140b | [
"MIT"
] | null | null | null | indicoio/utils/__init__.py | JoseRoman/IndicoIo-python | 4fe2952df45c26392f36acd8b43391dfc50e140b | [
"MIT"
] | null | null | null | import inspect
import numpy as np
class TypeCheck(object):
"""
Decorator that performs a typecheck on the input to a function
"""
def __init__(self, accepted_structures, arg_name):
"""
When initialized, include list of accepted datatypes and the
arg_name to enforce the check on.... | 35.54023 | 77 | 0.647477 | 1,533 | 0.495796 | 0 | 0 | 1,517 | 0.490621 | 0 | 0 | 1,066 | 0.344761 |
727435e62860b2aa00ad17f363ac314751d38249 | 3,770 | py | Python | openprocurement/tender/openuadefense/tests/tender.py | ProzorroUKR/openprocurement.tender.openuadefense | 5d6a7433839178edba35015ae614ba3e36b29d0b | [
"Apache-2.0"
] | null | null | null | openprocurement/tender/openuadefense/tests/tender.py | ProzorroUKR/openprocurement.tender.openuadefense | 5d6a7433839178edba35015ae614ba3e36b29d0b | [
"Apache-2.0"
] | 5 | 2018-08-14T19:41:27.000Z | 2018-12-28T13:17:00.000Z | openprocurement/tender/openuadefense/tests/tender.py | ProzorroUKR/openprocurement.tender.openuadefense | 5d6a7433839178edba35015ae614ba3e36b29d0b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from openprocurement.api.tests.base import snitch
from openprocurement.api.tests.base import BaseWebTest
from openprocurement.tender.belowthreshold.tests.base import test_lots
from openprocurement.tender.belowthreshold.tests.tender import TenderResourceTestMixin
from openprocur... | 37.326733 | 121 | 0.748276 | 2,323 | 0.61618 | 0 | 0 | 0 | 0 | 0 | 0 | 516 | 0.13687 |
7274cfef52d1610735171f4f6183581cfb8fe6dd | 3,791 | py | Python | fabry/tools/file_io.py | jmilhone/fabry_perot | cd3cb7a1dbcaa3c9382f9f2dbd3407d95447b3ce | [
"MIT"
] | 1 | 2020-03-29T20:39:31.000Z | 2020-03-29T20:39:31.000Z | fabry/tools/file_io.py | jmilhone/fabry_perot | cd3cb7a1dbcaa3c9382f9f2dbd3407d95447b3ce | [
"MIT"
] | null | null | null | fabry/tools/file_io.py | jmilhone/fabry_perot | cd3cb7a1dbcaa3c9382f9f2dbd3407d95447b3ce | [
"MIT"
] | 2 | 2020-04-16T15:05:23.000Z | 2020-12-05T18:19:10.000Z | from __future__ import print_function, division
import os
import numpy as np
import h5py
def dict_2_h5(fname, dic, append=False):
'''Writes a dictionary to a hdf5 file with given filename
It will use lzf compression for all numpy arrays
Args:
fname (str): filename to write to
dic (dic... | 28.291045 | 97 | 0.611976 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,373 | 0.362174 |
727582490ff712919e59b1f8a7dcf9ac45d6d3f9 | 1,786 | py | Python | derivadas.py | lucaspompeun/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais | 008d397f76a935af1aba530cc0134b9dd326d3ac | [
"MIT"
] | 16 | 2019-09-27T03:08:44.000Z | 2020-10-16T18:43:45.000Z | primeira-edicao/derivadas.py | gm2sc-ifpa/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais-master | f435c366e08dc14b0557f2172ad3b841ddb7ef2e | [
"MIT"
] | null | null | null | primeira-edicao/derivadas.py | gm2sc-ifpa/metodos-matematicos-aplicados-nas-engenharias-via-sistemas-computacionais-master | f435c366e08dc14b0557f2172ad3b841ddb7ef2e | [
"MIT"
] | 5 | 2019-09-13T20:00:38.000Z | 2020-09-19T03:04:00.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 23 21:57:48 2019
INSTITUTO FEDERAL DE EDUCAÇÃO, CIÊNCIA E TECNOLOGIA DO PÁRA - IFPA ANANINDEUA
@author:
Prof. Dr. Denis C. L. Costa
Discentes:
Heictor Alves de Oliveira Costa
Lucas Pompeu Neves
Grupo... | 23.813333 | 78 | 0.570549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,370 | 0.750274 |
72789eb5c6f77f3e712cea1375e6fa57c2e3d189 | 1,170 | py | Python | trapping_rain_water/solution.py | haotianzhu/C_Questions_Solutions | 2677b6d26bedb9bc6c6137a2392d0afaceb91ec2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | trapping_rain_water/solution.py | haotianzhu/C_Questions_Solutions | 2677b6d26bedb9bc6c6137a2392d0afaceb91ec2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | trapping_rain_water/solution.py | haotianzhu/C_Questions_Solutions | 2677b6d26bedb9bc6c6137a2392d0afaceb91ec2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | class Solution:
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
if not height:
return 0
left = 0
right = len(height)-1
total_area = 0
if height[left] <= height[right]:
m = left
else:
m =right
while(left < right):
if height[left] <= height[right]:
# move m... | 24.375 | 103 | 0.616239 | 1,100 | 0.940171 | 0 | 0 | 0 | 0 | 0 | 0 | 437 | 0.373504 |
72792ffbb67fb0954aabb51561db8a143501fbea | 607 | py | Python | ABC/178/D.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | ABC/178/D.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | ABC/178/D.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | # list(map(int, input().split()))
# int(input())
import sys
sys.setrecursionlimit(10 ** 9)
'''
DP
A[n] = A[n-3] + A[n-4] + ... + A[0] (O(S**2))
ここで,A[n-1] = A[n-4] + A[n-5] + ... + A[0]より,
A[n] = A[n-3] + A[n-1]とも表せる.(O(S)でより高速.)
'''
mod = 10 ** 9 + 7
def main(*args):
S = args[0]
A = [0 for s in range(S+1)]... | 18.96875 | 59 | 0.444811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 393 | 0.546592 |
727a16aa07e94a6fe76bbd40cc0c276c9724b76b | 2,517 | py | Python | contrib/analysis_server/src/analysis_server/factory.py | OzanCKN/OpenMDAO-Framework | 05e9d4b9bc41d0ec00a7073545146c925cd33b0b | [
"Apache-2.0"
] | 1 | 2015-11-05T11:14:45.000Z | 2015-11-05T11:14:45.000Z | contrib/analysis_server/src/analysis_server/factory.py | janus/OpenMDAO-Framework | 05e9d4b9bc41d0ec00a7073545146c925cd33b0b | [
"Apache-2.0"
] | null | null | null | contrib/analysis_server/src/analysis_server/factory.py | janus/OpenMDAO-Framework | 05e9d4b9bc41d0ec00a7073545146c925cd33b0b | [
"Apache-2.0"
] | 1 | 2020-07-15T02:45:54.000Z | 2020-07-15T02:45:54.000Z | from openmdao.main.factory import Factory
from analysis_server import client, proxy, server
class ASFactory(Factory):
"""
Factory for components running under an AnalysisServer.
An instance would typically be passed to
:meth:`openmdao.main.factorymanager.register_class_factory`.
host: string
... | 28.602273 | 80 | 0.573699 | 2,420 | 0.961462 | 0 | 0 | 0 | 0 | 0 | 0 | 1,060 | 0.421136 |
727b538b13be55c65e12b2a82a23b2e3906b8885 | 474 | py | Python | web/migrations/0007_auto_20180824_0925.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | 2 | 2018-11-16T21:45:17.000Z | 2019-02-03T19:55:46.000Z | web/migrations/0007_auto_20180824_0925.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | 13 | 2018-08-17T19:12:11.000Z | 2022-03-11T23:27:41.000Z | web/migrations/0007_auto_20180824_0925.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1 on 2018-08-24 09:25
from django.db import migrations, models
import web.models
class Migration(migrations.Migration):
dependencies = [
('web', '0006_organizationmember_user'),
]
operations = [
migrations.AlterField(
model_name='organizationpartner',... | 23.7 | 110 | 0.662447 | 365 | 0.770042 | 0 | 0 | 0 | 0 | 0 | 0 | 107 | 0.225738 |
727c127931f6990427efb822c10447cc3dcfa23b | 1,726 | bzl | Python | antlir/bzl/image_actions/tarball.bzl | SaurabhAgarwala/antlir | d9513d35d3eaa9d28717a40057a14d099c6ec775 | [
"MIT"
] | null | null | null | antlir/bzl/image_actions/tarball.bzl | SaurabhAgarwala/antlir | d9513d35d3eaa9d28717a40057a14d099c6ec775 | [
"MIT"
] | null | null | null | antlir/bzl/image_actions/tarball.bzl | SaurabhAgarwala/antlir | d9513d35d3eaa9d28717a40057a14d099c6ec775 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("//antlir/bzl:maybe_export_file.bzl", "maybe_export_file")
load("//antlir/bzl:shape.bzl", "shape")
load(
"//antlir/bzl:target_tagger.... | 34.52 | 110 | 0.685979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 983 | 0.569525 |
727ca773247407a0b44c8ae5a52c27e130f63397 | 6,165 | py | Python | sqlmat/utils.py | haobtc/sqlmat | c6b6ef966ba01173b6a485afb932ed438c35b211 | [
"MIT"
] | null | null | null | sqlmat/utils.py | haobtc/sqlmat | c6b6ef966ba01173b6a485afb932ed438c35b211 | [
"MIT"
] | null | null | null | sqlmat/utils.py | haobtc/sqlmat | c6b6ef966ba01173b6a485afb932ed438c35b211 | [
"MIT"
] | null | null | null | from typing import Tuple, List, Optional
import json
import sys
import os
import shlex
import asyncio
import argparse
import logging
import tempfile
from urllib.parse import urlparse
logger = logging.getLogger(__name__)
def find_sqlmat_json() -> Optional[dict]:
json_path = os.getenv('SQLMAT_JSON_PATH')
if jso... | 28.541667 | 108 | 0.65515 | 0 | 0 | 0 | 0 | 0 | 0 | 1,324 | 0.214761 | 2,522 | 0.409084 |
727d45160be9a8707217c7303a6e3540147bb34c | 457 | py | Python | submit.py | young-geng/UVaClient | 8ff4a368ac8f0395248292a0d903047a074752ed | [
"BSD-2-Clause"
] | 2 | 2017-09-07T07:01:53.000Z | 2018-04-26T08:08:12.000Z | submit.py | young-geng/UVaClient | 8ff4a368ac8f0395248292a0d903047a074752ed | [
"BSD-2-Clause"
] | null | null | null | submit.py | young-geng/UVaClient | 8ff4a368ac8f0395248292a0d903047a074752ed | [
"BSD-2-Clause"
] | null | null | null | import requests
from sys import stderr
import re
def submit(session, problem_id, language, source):
language_code = {
'c': 1,
'java': 2,
'c++': 3,
'pascal': 4,
'c++11': 5
}
url = "http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=25&page=save_submission"
data = {
'problemid': '',
... | 19.041667 | 99 | 0.641138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 171 | 0.374179 |
727ddb1308f9ba28efd3e85b5a607205219bd3f3 | 5,028 | py | Python | FIGURE4/eddymoc_scripts/noresm_cesm_eddymoc_150yrs.py | adagj/ECS_SOconvection | d1bb935b37380f11e021a463c6a807d7527220a6 | [
"MIT"
] | 1 | 2021-11-26T00:29:28.000Z | 2021-11-26T00:29:28.000Z | FIGURE4/eddymoc_scripts/noresm_cesm_eddymoc_150yrs.py | adagj/ECS_SOconvection | d1bb935b37380f11e021a463c6a807d7527220a6 | [
"MIT"
] | null | null | null | FIGURE4/eddymoc_scripts/noresm_cesm_eddymoc_150yrs.py | adagj/ECS_SOconvection | d1bb935b37380f11e021a463c6a807d7527220a6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Ada Gjermundsen
year: 2019 - 2021
This script is used to calculate the eddy-induced overturning in CESM2 and NorESM2 (LM and MM) south of 50S
for the CMIP experiments piControl and abrupt-4xCO2 after 150
the average time is 30 years
The result is used in FIGU... | 45.297297 | 202 | 0.666468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,282 | 0.254972 |
7280fea22c910a6288443234b126b5c1c0f5d8b9 | 4,161 | py | Python | wings/planner.py | KnowledgeCaptureAndDiscovery/wings-client | af1d068f4adc07d9060afa94dc99e0b2565be088 | [
"Apache-2.0"
] | null | null | null | wings/planner.py | KnowledgeCaptureAndDiscovery/wings-client | af1d068f4adc07d9060afa94dc99e0b2565be088 | [
"Apache-2.0"
] | 8 | 2019-07-28T17:04:38.000Z | 2019-08-06T23:57:08.000Z | wings/planner.py | KnowledgeCaptureAndDiscovery/wings-client | af1d068f4adc07d9060afa94dc99e0b2565be088 | [
"Apache-2.0"
] | 1 | 2019-07-29T22:53:41.000Z | 2019-07-29T22:53:41.000Z | import json
import re
class Planner(object):
def __init__(self, api_client):
self.api_client = api_client
def set_template(self, template):
self.wflowns = self.api_client.get_export_url() + "workflows/" + template + ".owl#"
self.wflowid = self.wflowns + template
def _set_binding... | 37.827273 | 93 | 0.550829 | 4,136 | 0.993992 | 0 | 0 | 0 | 0 | 0 | 0 | 569 | 0.136746 |
72825a6195e36bed57090b1163e99522e513ffd4 | 2,410 | py | Python | eggs/ZConfig-3.0.4-py2.7.egg/ZConfig/tests/test_cookbook.py | salayhin/talkofacta | 8b5a14245dd467bb1fda75423074c4840bd69fb7 | [
"MIT"
] | null | null | null | eggs/ZConfig-3.0.4-py2.7.egg/ZConfig/tests/test_cookbook.py | salayhin/talkofacta | 8b5a14245dd467bb1fda75423074c4840bd69fb7 | [
"MIT"
] | null | null | null | eggs/ZConfig-3.0.4-py2.7.egg/ZConfig/tests/test_cookbook.py | salayhin/talkofacta | 8b5a14245dd467bb1fda75423074c4840bd69fb7 | [
"MIT"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 33.943662 | 78 | 0.612448 | 1,100 | 0.456432 | 0 | 0 | 0 | 0 | 0 | 0 | 1,616 | 0.670539 |
7282cd43987729ea642d1583bf120e197cdcc79d | 420 | py | Python | src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 18 | 2021-05-20T13:20:16.000Z | 2022-02-11T02:40:18.000Z | src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 109 | 2021-05-21T20:14:23.000Z | 2022-03-31T20:56:10.000Z | src/bullet_point/migrations/0006_bulletpoint_sift_risk_score.py | ResearchHub/ResearchHub-Backend-Open | d36dca33afae2d442690694bb2ab17180d84bcd3 | [
"MIT"
] | 4 | 2021-05-17T13:47:53.000Z | 2022-02-12T10:48:21.000Z | # Generated by Django 2.2 on 2020-11-07 01:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bullet_point', '0005_bulletpoint_created_location'),
]
operations = [
migrations.AddField(
model_name='bulletpoint',
n... | 22.105263 | 62 | 0.62619 | 329 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0 | 124 | 0.295238 |
72831f9ef5d36065feb1e5d281d84dbd15c6710a | 1,840 | py | Python | main.py | ezhkovskii/instagrapi-rest | a3570f279ef0973856b92e433b117e0be0d4c713 | [
"MIT"
] | null | null | null | main.py | ezhkovskii/instagrapi-rest | a3570f279ef0973856b92e433b117e0be0d4c713 | [
"MIT"
] | null | null | null | main.py | ezhkovskii/instagrapi-rest | a3570f279ef0973856b92e433b117e0be0d4c713 | [
"MIT"
] | null | null | null | import pkg_resources
from fastapi import FastAPI
from fastapi.openapi.utils import get_openapi
from starlette.responses import RedirectResponse, JSONResponse
from routers import auth, media, video, photo, user, igtv, clip, album, story, hashtag, direct
app = FastAPI()
app.include_router(auth.router)
app.include_route... | 28.307692 | 94 | 0.7 | 0 | 0 | 0 | 0 | 668 | 0.363043 | 501 | 0.272283 | 375 | 0.203804 |
7283a25bff5f7d4878aa3e626f36db48a3d5a96f | 1,065 | py | Python | scripts/run_d435.py | suet-lee/mycelium | db83cd3ab00697f28b2def2cebcdef52698fdd92 | [
"Apache-2.0"
] | 6 | 2021-05-23T17:36:02.000Z | 2022-01-21T20:34:17.000Z | scripts/run_d435.py | suet-lee/mycelium | db83cd3ab00697f28b2def2cebcdef52698fdd92 | [
"Apache-2.0"
] | null | null | null | scripts/run_d435.py | suet-lee/mycelium | db83cd3ab00697f28b2def2cebcdef52698fdd92 | [
"Apache-2.0"
] | 1 | 2021-06-17T20:35:10.000Z | 2021-06-17T20:35:10.000Z | #!/usr/bin/env python3
from mycelium import CameraD435
from mycelium_utils import Scripter
class ScripterExt(Scripter):
def run_main(self):
self.camera = CameraD435(
configuration_mode=self.cfg.d435['configuration_mode'],
enable_rgb_stream=self.cfg.d435['enable_rgb_stream'],
... | 29.583333 | 75 | 0.661033 | 908 | 0.852582 | 0 | 0 | 0 | 0 | 0 | 0 | 174 | 0.16338 |
72853d22db5f533d50b0fe4776f60ba950c28d1f | 224 | py | Python | examples/system/miniscreen/miniscreen_display_animated_image_once_simple_way.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 28 | 2020-11-24T08:02:58.000Z | 2022-02-27T18:37:33.000Z | examples/system/miniscreen/miniscreen_display_animated_image_once_simple_way.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 263 | 2020-11-10T14:35:10.000Z | 2022-03-31T12:35:13.000Z | examples/system/miniscreen/miniscreen_display_animated_image_once_simple_way.py | pi-top/pi-top-Python-SDK | 6c83cc5f612d77f86f8d391c7f2924a28f7b1232 | [
"Apache-2.0"
] | 1 | 2022-01-31T22:48:35.000Z | 2022-01-31T22:48:35.000Z | from PIL import Image
from pitop import Pitop
pitop = Pitop()
miniscreen = pitop.miniscreen
rocket = Image.open("/usr/lib/python3/dist-packages/pitop/miniscreen/images/rocket.gif")
miniscreen.play_animated_image(rocket)
| 20.363636 | 88 | 0.794643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 67 | 0.299107 |
728590b1ad401344329ed841bf7e2c36ccfdfcf3 | 119,428 | py | Python | synbioinformatica.py | nemami/synbioinformatica | 9306d7a7edb93aaa8e4de5e041db6633214c07b1 | [
"BSD-2-Clause"
] | null | null | null | synbioinformatica.py | nemami/synbioinformatica | 9306d7a7edb93aaa8e4de5e041db6633214c07b1 | [
"BSD-2-Clause"
] | null | null | null | synbioinformatica.py | nemami/synbioinformatica | 9306d7a7edb93aaa8e4de5e041db6633214c07b1 | [
"BSD-2-Clause"
] | 1 | 2021-03-01T08:48:35.000Z | 2021-03-01T08:48:35.000Z | #!/usr/bin/python -tt
import sys, re, math
from decimal import *
# TODO: work on naming scheme
# TODO: add more ORIs
# TODO: assemblytree alignment
# TODO: Wobble, SOEing
# TODO: (digestion, ligation) redundant products
# TODO: for PCR and Sequencing, renormalize based on LCS
# TODO: tutorials
dna_alphabet = {'A':'A... | 62.040519 | 836 | 0.636509 | 12,955 | 0.108475 | 0 | 0 | 0 | 0 | 0 | 0 | 37,208 | 0.311552 |
7285a6d4732937feeb025500720c611d893078bb | 753 | py | Python | scriptd/app/flask_helper.py | jasonszang/scriptd | e612f10971ca5d98ffff7e0680485575792529e7 | [
"MIT"
] | 1 | 2018-09-05T06:54:54.000Z | 2018-09-05T06:54:54.000Z | scriptd/app/flask_helper.py | jasonszang/scriptd | e612f10971ca5d98ffff7e0680485575792529e7 | [
"MIT"
] | null | null | null | scriptd/app/flask_helper.py | jasonszang/scriptd | e612f10971ca5d98ffff7e0680485575792529e7 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""Helper for working with flask"""
import logging
from flask import Flask
from flask import request
from typing import Text
class FlaskHelper(object):
"""
Helper class for interacting with flask framework.
Improves testability by avoiding accessing flask global/thread-local objec... | 25.1 | 92 | 0.649402 | 600 | 0.796813 | 0 | 0 | 0 | 0 | 0 | 0 | 324 | 0.430279 |
7285e9ab42c1215b9cfd19e9d7ea2bd99678e38c | 2,789 | py | Python | evology/research/MCarloLongRuns/Exp1_WSvsReturn.py | aymericvie/evology | 8f00d94dee7208be5a5bdd0375a9d6ced25097f4 | [
"Apache-2.0"
] | null | null | null | evology/research/MCarloLongRuns/Exp1_WSvsReturn.py | aymericvie/evology | 8f00d94dee7208be5a5bdd0375a9d6ced25097f4 | [
"Apache-2.0"
] | 2 | 2022-01-10T02:10:56.000Z | 2022-01-14T03:41:42.000Z | evology/research/MCarloLongRuns/Exp1_WSvsReturn.py | aymericvie/evology | 8f00d94dee7208be5a5bdd0375a9d6ced25097f4 | [
"Apache-2.0"
] | null | null | null | # Imports
import numpy as np
import pandas as pd
import sys
import tqdm
import warnings
import time
import ternary
from ternary.helpers import simplex_iterator
import multiprocessing as mp
warnings.simplefilter("ignore")
if sys.platform == "darwin":
sys.path.append("/Users/aymericvie/Documents/GitHub/evology/evol... | 24.043103 | 78 | 0.570097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 586 | 0.210111 |
7286c123e2e1e4752621f27aef91caae14dc1664 | 727 | py | Python | ex039.py | vinisantos7/PythonExercicios | bc8f38e03a606d6b0216632a93affeab0792e534 | [
"MIT"
] | 2 | 2021-11-04T21:09:11.000Z | 2021-11-08T09:42:10.000Z | ex039.py | vinisantos7/PythonExercicios | bc8f38e03a606d6b0216632a93affeab0792e534 | [
"MIT"
] | null | null | null | ex039.py | vinisantos7/PythonExercicios | bc8f38e03a606d6b0216632a93affeab0792e534 | [
"MIT"
] | null | null | null | print("@"*30)
print("Alistamento - Serviço Militar")
print("@"*30)
from datetime import date
ano_nasc = int(input("Digite seu ano de nascimento: "))
ano_atual = date.today().year
idade = ano_atual - ano_nasc
print(f"Quem nasceu em {ano_nasc} tem {idade} anos em {ano_atual}")
if idade == 18:
print("É a hora de se... | 30.291667 | 70 | 0.674003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 367 | 0.501366 |
728800a60a85756e4875a7047b803fa961c8c2d3 | 25,990 | py | Python | test/python/spl/tk17/opt/.__splpy/packages/streamsx/topology/tester.py | Jaimie-Jin1/streamsx.topology | 6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08 | [
"Apache-2.0"
] | 31 | 2015-06-24T06:21:14.000Z | 2020-08-28T21:45:50.000Z | test/python/spl/tk17/opt/.__splpy/packages/streamsx/topology/tester.py | Jaimie-Jin1/streamsx.topology | 6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08 | [
"Apache-2.0"
] | 1,203 | 2015-06-15T02:11:49.000Z | 2021-03-22T09:47:54.000Z | test/python/spl/tk17/opt/.__splpy/packages/streamsx/topology/tester.py | Jaimie-Jin1/streamsx.topology | 6f316ec8e9ed1349c6f061d9bb7d03deb87e3d08 | [
"Apache-2.0"
] | 53 | 2015-05-28T21:14:16.000Z | 2021-12-23T12:58:59.000Z | # coding=utf-8
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2017
"""Testing support for streaming applications.
Allows testing of a streaming application by creation conditions
on streams that are expected to become valid during the processing.
`Tester` is designed to be used with Python's `unittest` ... | 39.740061 | 133 | 0.634052 | 22,867 | 0.879838 | 0 | 0 | 4,009 | 0.154252 | 0 | 0 | 15,077 | 0.580108 |
72881bbcc670bbaede8d42280fea146e0bccefea | 702 | py | Python | piglatin_microservice/views/main.py | Curly-Mo/piglatin | 9ea4a7533675bcb5b28f708beda18f175e0a9fe4 | [
"MIT"
] | null | null | null | piglatin_microservice/views/main.py | Curly-Mo/piglatin | 9ea4a7533675bcb5b28f708beda18f175e0a9fe4 | [
"MIT"
] | null | null | null | piglatin_microservice/views/main.py | Curly-Mo/piglatin | 9ea4a7533675bcb5b28f708beda18f175e0a9fe4 | [
"MIT"
] | null | null | null | from flask import request, jsonify, Blueprint
from .. import piglatin
main = Blueprint('main', __name__)
@main.route('/', methods=['GET', 'POST'])
def index():
response = """
Please use the endpoint /translate to access this api.
Usage: "{}translate?text=Translate+this+text+into+Piglatin."
... | 23.4 | 68 | 0.650997 | 0 | 0 | 0 | 0 | 587 | 0.836182 | 0 | 0 | 219 | 0.311966 |
7289763d0bdfbe7696c866a5439b0ea41f2358eb | 1,240 | py | Python | projects/pong-game/pong.py | sumanentc/Python-Projects | 11c763fcbe4e088928bd56c28f767b93ae73984d | [
"MIT"
] | null | null | null | projects/pong-game/pong.py | sumanentc/Python-Projects | 11c763fcbe4e088928bd56c28f767b93ae73984d | [
"MIT"
] | null | null | null | projects/pong-game/pong.py | sumanentc/Python-Projects | 11c763fcbe4e088928bd56c28f767b93ae73984d | [
"MIT"
] | null | null | null | from turtle import Screen
from paddle import Paddle
from ball import Ball
import time
from scoreboard import ScoreBoard
screen = Screen()
screen.bgcolor('black')
screen.setup(width=800, height=600)
screen.title('pong')
# Turn off animation to show paddle after it has been shifted
screen.tracer(0)
right_paddle = Pad... | 22.962963 | 68 | 0.679032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 203 | 0.16371 |
728a356d657b32fde675735de36842cf48062bf3 | 1,579 | py | Python | ExPy/ExPy/module20.py | brad-h/expy | d3f3dfbbdae31ab8c7e134a5ce9d5f6adf94b516 | [
"MIT"
] | null | null | null | ExPy/ExPy/module20.py | brad-h/expy | d3f3dfbbdae31ab8c7e134a5ce9d5f6adf94b516 | [
"MIT"
] | null | null | null | ExPy/ExPy/module20.py | brad-h/expy | d3f3dfbbdae31ab8c7e134a5ce9d5f6adf94b516 | [
"MIT"
] | null | null | null | """ Multistate Sales Tax Calculator """
import os
from decimal import Decimal
from decimal import InvalidOperation
def prompt_decimal(prompt):
""" Using the prompt, attempt to get a decimal from the user """
while True:
try:
return Decimal(input(prompt))
except InvalidOperation:
... | 25.467742 | 68 | 0.609246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 592 | 0.374921 |
728a6a081e2856ad1af42a97ac6d7dc3898ac287 | 2,650 | py | Python | pyvdms/util/verify.py | psmsmets/pyVDMS | cb3db93b655d3a02ae3aa1fdd418ae70dd249271 | [
"MIT"
] | 1 | 2020-04-22T14:38:23.000Z | 2020-04-22T14:38:23.000Z | pyvdms/util/verify.py | psmsmets/PyVDMS | cb3db93b655d3a02ae3aa1fdd418ae70dd249271 | [
"MIT"
] | null | null | null | pyvdms/util/verify.py | psmsmets/PyVDMS | cb3db93b655d3a02ae3aa1fdd418ae70dd249271 | [
"MIT"
] | null | null | null | r"""
:mod:`util.verify` -- Input verification
========================================
Common input verification methods.
"""
# Mandatory imports
import numpy as np
__all__ = ['verify_tuple_range']
def verify_tuple_range(
input_range: tuple, allow_none: bool = True, name: str = None,
step: bool = None, ... | 30.45977 | 78 | 0.570189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 834 | 0.314717 |
728cb69af3c08ef7582f9c410b1fc5f27c722c62 | 2,349 | py | Python | api/image_similarity.py | reneraab/librephotos | a3972ab520586e721c67f283b1a50ccb7abe2b01 | [
"MIT"
] | null | null | null | api/image_similarity.py | reneraab/librephotos | a3972ab520586e721c67f283b1a50ccb7abe2b01 | [
"MIT"
] | null | null | null | api/image_similarity.py | reneraab/librephotos | a3972ab520586e721c67f283b1a50ccb7abe2b01 | [
"MIT"
] | null | null | null | import numpy as np
import requests
from django.db.models import Q
from api.models import Photo, User
from api.util import logger
from ownphotos.settings import IMAGE_SIMILARITY_SERVER
def search_similar_embedding(user, emb, result_count=100, threshold=27):
if type(user) == int:
user_id = user
else:
... | 29 | 87 | 0.648361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 308 | 0.13112 |
728d2b759b651322512d149b383118385699c3b6 | 621 | py | Python | WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/struct/struct_endianness.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/struct/struct_endianness.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/struct/struct_endianness.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | #
"""
"""
# end_pymotw_header
import struct
import binascii
values = (1, "ab".encode("utf-8"), 2.7)
print("Original values:", values)
endianness = [
("@", "native, native"),
("=", "native, standard"),
("<", "little-endian"),
(">", "big-endian"),
("!", "network"),
]
for code, name in endianness:... | 21.413793 | 60 | 0.566828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 234 | 0.376812 |
728dfcc1ec3bf1913efacef3f37dc134c73588dd | 7,307 | py | Python | pydov/util/net.py | GuillaumeVandekerckhove/pydov | b51f77bf93d1f9e96dd39edf564d95426da04126 | [
"MIT"
] | 32 | 2017-03-17T16:36:40.000Z | 2022-02-18T13:10:50.000Z | pydov/util/net.py | GuillaumeVandekerckhove/pydov | b51f77bf93d1f9e96dd39edf564d95426da04126 | [
"MIT"
] | 240 | 2017-01-03T12:32:15.000Z | 2022-03-30T11:52:02.000Z | pydov/util/net.py | GuillaumeVandekerckhove/pydov | b51f77bf93d1f9e96dd39edf564d95426da04126 | [
"MIT"
] | 17 | 2017-01-09T21:00:36.000Z | 2022-03-01T15:04:21.000Z | # -*- coding: utf-8 -*-
"""Module grouping network-related utilities and functions."""
from queue import Empty, Queue
from threading import Thread
import requests
import urllib3
from requests.adapters import HTTPAdapter
import pydov
request_timeout = 300
class TimeoutHTTPAdapter(HTTPAdapter):
"""HTTPAdapter w... | 28.542969 | 79 | 0.569454 | 7,033 | 0.962502 | 413 | 0.056521 | 1,088 | 0.148898 | 0 | 0 | 3,834 | 0.524702 |
728ec9dc6f471c261e07e33eefde07e826192c2e | 305 | py | Python | app/main/views.py | yiunsr/flask_labstoo_base | ec99a7c955bd0bd9d96959c1c26cbd0e5ec23796 | [
"Apache-2.0"
] | null | null | null | app/main/views.py | yiunsr/flask_labstoo_base | ec99a7c955bd0bd9d96959c1c26cbd0e5ec23796 | [
"Apache-2.0"
] | null | null | null | app/main/views.py | yiunsr/flask_labstoo_base | ec99a7c955bd0bd9d96959c1c26cbd0e5ec23796 | [
"Apache-2.0"
] | null | null | null | from flask.helpers import make_response
from flask.templating import render_template
from . import main
@main.route('/', methods=['GET', 'POST'])
@main.route('/index', methods=['GET', 'POST'])
def index():
resp = make_response(
render_template('main/index.html'))
return resp
| 25.416667 | 47 | 0.665574 | 0 | 0 | 0 | 0 | 192 | 0.629508 | 0 | 0 | 50 | 0.163934 |
728ed3b7ad18763967710681b9cc5dc917ab6fd6 | 11,470 | py | Python | SBOL2Excel/utils/sbol2excel.py | abamaj/SBOL-to-Excel | 790ef5242990c06b20dcb8e207def8e4527aea02 | [
"BSD-3-Clause"
] | null | null | null | SBOL2Excel/utils/sbol2excel.py | abamaj/SBOL-to-Excel | 790ef5242990c06b20dcb8e207def8e4527aea02 | [
"BSD-3-Clause"
] | null | null | null | SBOL2Excel/utils/sbol2excel.py | abamaj/SBOL-to-Excel | 790ef5242990c06b20dcb8e207def8e4527aea02 | [
"BSD-3-Clause"
] | null | null | null | import sbol2
import pandas as pd
import os
import logging
from openpyxl import load_workbook
from openpyxl.worksheet.table import Table, TableStyleInfo
from openpyxl.utils.dataframe import dataframe_to_rows
from openpyxl.styles import Font, PatternFill, Border, Side
from requests_html import HTMLSession
#wasderivedfro... | 38.619529 | 124 | 0.588317 | 10,980 | 0.95728 | 0 | 0 | 0 | 0 | 0 | 0 | 3,999 | 0.348649 |
728f92f6b83a6233b200b60652e9836df6ba2fba | 17,145 | py | Python | ocean_lib/models/data_token.py | akshay-ap/ocean.py | 1dab70d164ca36a6cff284e8be82ae04344ad13f | [
"Apache-2.0"
] | null | null | null | ocean_lib/models/data_token.py | akshay-ap/ocean.py | 1dab70d164ca36a6cff284e8be82ae04344ad13f | [
"Apache-2.0"
] | null | null | null | ocean_lib/models/data_token.py | akshay-ap/ocean.py | 1dab70d164ca36a6cff284e8be82ae04344ad13f | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2021 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
import json
import os
import time
from collections import namedtuple
import requests
from eth_utils import remove_0x_prefix
from ocean_lib.data_provider.data_service_provider import DataServiceProvider
from ocean_lib.enforce_typing_sh... | 36.324153 | 120 | 0.602858 | 16,116 | 0.939983 | 0 | 0 | 16,136 | 0.941149 | 0 | 0 | 3,051 | 0.177953 |
728fbc5bfc6f1e3c71f6dc0d49a88fbd6f828cf5 | 18,655 | py | Python | cgmodsel/prox.py | chrlen/cgmodsel | 1d7336e173289468d55897b1aa044bf98c3c1a6b | [
"MIT"
] | null | null | null | cgmodsel/prox.py | chrlen/cgmodsel | 1d7336e173289468d55897b1aa044bf98c3c1a6b | [
"MIT"
] | null | null | null | cgmodsel/prox.py | chrlen/cgmodsel | 1d7336e173289468d55897b1aa044bf98c3c1a6b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Frank Nussbaum (frank.nussbaum@uni-jena.de), 2019
"""
import numpy as np
#import scipy
#import abc
#import time
from scipy.optimize import approx_fprime
from scipy.linalg import eigh
from scipy import optimize
from cgmodsel.utils import _logsumexp_condprob... | 38.071429 | 114 | 0.557438 | 17,936 | 0.961458 | 0 | 0 | 0 | 0 | 0 | 0 | 5,612 | 0.300831 |
7290644aa942c45a2f6b6c965febcc5dc6a44a31 | 17,758 | py | Python | openmdao.main/src/openmdao/main/linearsolver.py | MrShoks/OpenMDAO-Framework | 412f34ffe31a95631fbe55ca7d75b84669ae8f8c | [
"Apache-2.0"
] | 1 | 2020-06-28T20:38:56.000Z | 2020-06-28T20:38:56.000Z | openmdao.main/src/openmdao/main/linearsolver.py | MrShoks/OpenMDAO-Framework | 412f34ffe31a95631fbe55ca7d75b84669ae8f8c | [
"Apache-2.0"
] | null | null | null | openmdao.main/src/openmdao/main/linearsolver.py | MrShoks/OpenMDAO-Framework | 412f34ffe31a95631fbe55ca7d75b84669ae8f8c | [
"Apache-2.0"
] | null | null | null | """ Linear solvers that are used to solve for the gradient of an OpenMDAO System.
(Not to be confused with the OpenMDAO Solver classes.)
"""
# pylint: disable=E0611, F0401
import numpy as np
from scipy.sparse.linalg import gmres, LinearOperator
from openmdao.main.mpiwrap import MPI
from openmdao.util.graph import fix... | 35.374502 | 121 | 0.508954 | 17,323 | 0.975504 | 0 | 0 | 0 | 0 | 0 | 0 | 4,374 | 0.246312 |
7290a137b403884de1319ee844bb33bdb2db9268 | 198 | py | Python | Temperatures.py | VivianaEloisa/Viviana_first_repo | d132ffdcda8e2c3cd5673cfa86fecc1337697fd0 | [
"MIT"
] | null | null | null | Temperatures.py | VivianaEloisa/Viviana_first_repo | d132ffdcda8e2c3cd5673cfa86fecc1337697fd0 | [
"MIT"
] | null | null | null | Temperatures.py | VivianaEloisa/Viviana_first_repo | d132ffdcda8e2c3cd5673cfa86fecc1337697fd0 | [
"MIT"
] | null | null | null | def fahr_to_cels(a):
return (a-32)/1.8
def cels_to_fahr(b):
return(b*1.8)+32
c=50
d=10
print("{0} °F is {1}°C.".format(c,fahr_to_cels(c)))
print("{0}°C is {1}°F.".format(d,cels_to_fahr(d)))
| 22 | 51 | 0.616162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 39 | 0.193069 |
7290f4e2e5f1b65887b615200ae0e5b25c830766 | 4,134 | py | Python | src/transform.py | Andres-CS/wallet-analysis | 822b8b900a91ab7a2fd76743f174d320e45e98c9 | [
"Apache-2.0"
] | null | null | null | src/transform.py | Andres-CS/wallet-analysis | 822b8b900a91ab7a2fd76743f174d320e45e98c9 | [
"Apache-2.0"
] | null | null | null | src/transform.py | Andres-CS/wallet-analysis | 822b8b900a91ab7a2fd76743f174d320e45e98c9 | [
"Apache-2.0"
] | null | null | null | import csv
import re
'''
Delete char in substring of original string.
Used this function when, you want to delete
a character in a substring but not in the
rest of the original string.
Returns a string
-- PARAMETERS --
text: original string
start: start of subString
end: end of subString
char: char to delete,... | 20.773869 | 85 | 0.647315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,999 | 0.483551 |
72911e6ae35f06f9d987c47bf7d9ffd692afda2e | 672 | py | Python | game/views/credits_view.py | fisher60/pyweek-2021 | 294b45d768a7e0d85ac67dc4b12384e68fc4f399 | [
"MIT"
] | null | null | null | game/views/credits_view.py | fisher60/pyweek-2021 | 294b45d768a7e0d85ac67dc4b12384e68fc4f399 | [
"MIT"
] | null | null | null | game/views/credits_view.py | fisher60/pyweek-2021 | 294b45d768a7e0d85ac67dc4b12384e68fc4f399 | [
"MIT"
] | null | null | null | import arcade
from .menu_view import MenuView
TEXT_COLOR = arcade.csscolor.WHITE
class CreditsView(MenuView):
def __init__(self, parent_view):
super().__init__()
self.parent_view = parent_view
def on_draw(self):
arcade.start_render()
arcade.draw_text(
"Credits",... | 22.4 | 67 | 0.596726 | 586 | 0.872024 | 0 | 0 | 0 | 0 | 0 | 0 | 17 | 0.025298 |
72930128f10a45046ff86b69e321c55984b0eb59 | 15,885 | py | Python | sknn_jgd/backend/lasagne/mlp.py | jgdwyer/nn-convection | 0bb55c0ac7af8f1345bf17b4db31b2593c8d1b28 | [
"Apache-2.0"
] | 1 | 2016-08-08T14:33:20.000Z | 2016-08-08T14:33:20.000Z | sknn_jgd/backend/lasagne/mlp.py | jgdwyer/nn-convection | 0bb55c0ac7af8f1345bf17b4db31b2593c8d1b28 | [
"Apache-2.0"
] | null | null | null | sknn_jgd/backend/lasagne/mlp.py | jgdwyer/nn-convection | 0bb55c0ac7af8f1345bf17b4db31b2593c8d1b28 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, unicode_literals, print_function)
__all__ = ['MultiLayerPerceptronBackend']
import os
import sys
import math
import time
import types
import logging
import itertools
log = logging.getLogger('sknn')
import numpy
import theano
import sklearn.... | 40.730769 | 117 | 0.577274 | 15,240 | 0.959396 | 964 | 0.060686 | 145 | 0.009128 | 0 | 0 | 2,249 | 0.14158 |
729381f8f09e518e6c6e8b1407dd8a10e56dc240 | 773 | py | Python | src/portals/admins/filters.py | IkramKhan-DevOps/pw-elearn | 41ac0c9a3dcc6141a25c2618a82bb2673e7f8986 | [
"MIT"
] | 2 | 2022-02-04T07:45:57.000Z | 2022-02-04T07:46:03.000Z | src/portals/admins/filters.py | IkramKhan-DevOps/pw-elearn | 41ac0c9a3dcc6141a25c2618a82bb2673e7f8986 | [
"MIT"
] | null | null | null | src/portals/admins/filters.py | IkramKhan-DevOps/pw-elearn | 41ac0c9a3dcc6141a25c2618a82bb2673e7f8986 | [
"MIT"
] | null | null | null | import django_filters
from django.forms import TextInput
from src.accounts.models import User
from src.application.models import Quiz, StudentGrade
class UserFilter(django_filters.FilterSet):
username = django_filters.CharFilter(widget=TextInput(attrs={'placeholder': 'username'}), lookup_expr='icontains')
fi... | 40.684211 | 122 | 0.730918 | 621 | 0.803364 | 0 | 0 | 0 | 0 | 0 | 0 | 154 | 0.199224 |
7293c3777f58eec10956f70997622aaecdee719d | 1,677 | py | Python | L2J_DataPack/data/scripts/quests/998_FallenAngelSelect/__init__.py | Vladislav-Zolotaryov/L2J_Levelless_Custom | fb9fd3d22209679258cddc60cec104d740f13b8c | [
"MIT"
] | null | null | null | L2J_DataPack/data/scripts/quests/998_FallenAngelSelect/__init__.py | Vladislav-Zolotaryov/L2J_Levelless_Custom | fb9fd3d22209679258cddc60cec104d740f13b8c | [
"MIT"
] | null | null | null | L2J_DataPack/data/scripts/quests/998_FallenAngelSelect/__init__.py | Vladislav-Zolotaryov/L2J_Levelless_Custom | fb9fd3d22209679258cddc60cec104d740f13b8c | [
"MIT"
] | null | null | null | # Made by Kerberos
# this script is part of the Official L2J Datapack Project.
# Visit http://www.l2jdp.com/forum/ for more details.
import sys
from com.l2jserver.gameserver.instancemanager import QuestManager
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestS... | 34.9375 | 153 | 0.689326 | 1,147 | 0.683959 | 0 | 0 | 0 | 0 | 0 | 0 | 428 | 0.255218 |
72948f0d5e0688cdcff4ef82755618fc89287414 | 37 | py | Python | examples/in.py | alehander42/pseudo-python | 5cdc9211a5ad28e720882f034651d579b0aa0592 | [
"MIT"
] | 94 | 2016-03-11T13:55:12.000Z | 2018-11-14T06:46:19.000Z | examples/in.py | alehander42/pseudo-python | 5cdc9211a5ad28e720882f034651d579b0aa0592 | [
"MIT"
] | 11 | 2016-03-07T18:17:16.000Z | 2017-04-17T08:08:57.000Z | examples/in.py | alehander42/pseudo-python | 5cdc9211a5ad28e720882f034651d579b0aa0592 | [
"MIT"
] | 9 | 2016-03-14T22:44:44.000Z | 2018-11-07T12:49:19.000Z | s = [4, 2]
if '2' in s:
print(s)
| 9.25 | 12 | 0.405405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0.081081 |
7295b71bdde90ae99770dabaff2f0e425c610dba | 10,859 | py | Python | ai_safety_gridworlds/environments/side_effects_sokoban.py | AicyDC/ai-safety-gridworlds | b574b3e42880e32245a6c69502af3e9782ae2879 | [
"Apache-2.0"
] | null | null | null | ai_safety_gridworlds/environments/side_effects_sokoban.py | AicyDC/ai-safety-gridworlds | b574b3e42880e32245a6c69502af3e9782ae2879 | [
"Apache-2.0"
] | null | null | null | ai_safety_gridworlds/environments/side_effects_sokoban.py | AicyDC/ai-safety-gridworlds | b574b3e42880e32245a6c69502af3e9782ae2879 | [
"Apache-2.0"
] | 1 | 2020-02-13T01:30:09.000Z | 2020-02-13T01:30:09.000Z | # Copyright 2018 The AI Safety Gridworlds Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 34.916399 | 80 | 0.664702 | 6,902 | 0.635602 | 0 | 0 | 0 | 0 | 0 | 0 | 4,372 | 0.402615 |
7295e60221af8bcb23ad558a2feefc9a7f5e4f9d | 956 | py | Python | setup.py | mirca/deepdow | 48484f99aa36863b15fb1ae685659841ce37fe25 | [
"Apache-2.0"
] | 2 | 2021-05-06T07:00:05.000Z | 2022-03-15T22:13:37.000Z | setup.py | rodrigorivera/deepdow | 48484f99aa36863b15fb1ae685659841ce37fe25 | [
"Apache-2.0"
] | null | null | null | setup.py | rodrigorivera/deepdow | 48484f99aa36863b15fb1ae685659841ce37fe25 | [
"Apache-2.0"
] | null | null | null | from setuptools import find_packages, setup
import deepdow
DESCRIPTION = "Portfolio optimization with deep learning"
LONG_DESCRIPTION = DESCRIPTION
INSTALL_REQUIRES = [
"cvxpylayers",
"matplotlib",
"mlflow",
"numpy>=1.16.5",
"pandas",
"pillow",
"seaborn",
"torch>=1.5",
"tensorboar... | 24.512821 | 94 | 0.646444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 405 | 0.42364 |
7297791db05ab40bf0827824367abd990f8158d1 | 12,139 | py | Python | src/ref/WGAN_CNN_CNN_DISCRETE/Critic.py | chychen/nba_scrip_generation | 942df59cc0426aa30b54a0e09c0f646aa8fd4f18 | [
"MIT"
] | 1 | 2020-07-09T09:00:09.000Z | 2020-07-09T09:00:09.000Z | src/ref/WGAN_CNN_CNN_DISCRETE/Critic.py | chychen/bball_defensive_strategies_generation | 942df59cc0426aa30b54a0e09c0f646aa8fd4f18 | [
"MIT"
] | null | null | null | src/ref/WGAN_CNN_CNN_DISCRETE/Critic.py | chychen/bball_defensive_strategies_generation | 942df59cc0426aa30b54a0e09c0f646aa8fd4f18 | [
"MIT"
] | null | null | null | """
modeling
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import time
import shutil
import numpy as np
import tensorflow as tf
from tensorflow.contrib import rnn
from tensorflow.contrib import layers
from utils_cnn import Norm
class C_MODE... | 43.199288 | 121 | 0.539583 | 11,830 | 0.974545 | 0 | 0 | 0 | 0 | 0 | 0 | 2,268 | 0.186836 |
72988ee005f70d398f192554b5dfb6763416e1a6 | 13,582 | py | Python | tests/attr/test_kernel_shap.py | trsvchn/captum | 0435ff10a71724a788bdc54f01324f4f5c788541 | [
"BSD-3-Clause"
] | 3,140 | 2019-10-10T17:05:37.000Z | 2022-03-31T17:31:01.000Z | tests/attr/test_kernel_shap.py | trsvchn/captum | 0435ff10a71724a788bdc54f01324f4f5c788541 | [
"BSD-3-Clause"
] | 758 | 2019-10-11T18:01:04.000Z | 2022-03-31T21:36:07.000Z | tests/attr/test_kernel_shap.py | trsvchn/captum | 0435ff10a71724a788bdc54f01324f4f5c788541 | [
"BSD-3-Clause"
] | 345 | 2019-10-10T17:17:06.000Z | 2022-03-30T07:31:31.000Z | #!/usr/bin/env python3
import io
import unittest
import unittest.mock
from typing import Any, Callable, List, Tuple, Union
import torch
from captum._utils.typing import BaselineType, TensorOrTupleOfTensorsGeneric
from captum.attr._core.kernel_shap import KernelShap
from tests.helpers.basic import (
BaseTest,
... | 35.931217 | 88 | 0.547121 | 13,040 | 0.960094 | 0 | 0 | 990 | 0.072891 | 0 | 0 | 568 | 0.04182 |
729a34538302ef5eb6b5be2a95bd148de79a7e02 | 899 | py | Python | vol/items.py | volCommunity/vol-crawlers | d046a23a1a778ed1c1ed483bd565ecb6a23898e5 | [
"Apache-2.0"
] | 3 | 2017-10-18T07:08:01.000Z | 2017-10-31T07:46:14.000Z | vol/items.py | volCommunity/vol-crawlers | d046a23a1a778ed1c1ed483bd565ecb6a23898e5 | [
"Apache-2.0"
] | 31 | 2017-09-28T00:53:53.000Z | 2021-03-22T17:01:50.000Z | vol/items.py | volCommunity/vol-crawlers | d046a23a1a778ed1c1ed483bd565ecb6a23898e5 | [
"Apache-2.0"
] | 1 | 2017-10-29T21:30:22.000Z | 2017-10-29T21:30:22.000Z | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class JobItem(scrapy.Item):
title = scrapy.Field()
url = scrapy.Field()
text = scrapy.Field()
labels = scrapy.Field()
city = scrapy.... | 22.475 | 51 | 0.649611 | 724 | 0.805339 | 0 | 0 | 0 | 0 | 0 | 0 | 145 | 0.16129 |
729a80929d56b3febe54ea0a4bcd62e2fff44b08 | 6,519 | py | Python | Beheer/tests.py | RamonvdW/nhb-apps | 5a9f840bfe066cd964174515c06b806a7b170c69 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-12-22T13:11:12.000Z | 2021-12-22T13:11:12.000Z | Beheer/tests.py | RamonvdW/nhb-apps | 5a9f840bfe066cd964174515c06b806a7b170c69 | [
"BSD-3-Clause-Clear"
] | 9 | 2020-10-28T07:07:05.000Z | 2021-06-28T20:05:37.000Z | Beheer/tests.py | RamonvdW/nhb-apps | 5a9f840bfe066cd964174515c06b806a7b170c69 | [
"BSD-3-Clause-Clear"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2020-2021 Ramon van der Winkel.
# All rights reserved.
# Licensed under BSD-3-Clause-Clear. See LICENSE file for details.
from django.conf import settings
from django.test import TestCase
from django.urls import reverse
from TestHelpers.e2ehelpers import E2EHelpers
# updat... | 39.509091 | 185 | 0.670655 | 3,770 | 0.57831 | 0 | 0 | 0 | 0 | 0 | 0 | 3,318 | 0.508974 |
729b3276310d180f2f78ff2784137e2b0f03795f | 1,179 | py | Python | L1Trigger/TrackFindingTracklet/python/ProducerKF_cff.py | Jingyan95/cmssw | f78d843f0837f269ee6811b0e0f4c0432928c190 | [
"Apache-2.0"
] | 5 | 2020-07-02T19:05:26.000Z | 2022-02-25T14:37:09.000Z | L1Trigger/TrackFindingTracklet/python/ProducerKF_cff.py | Jingyan95/cmssw | f78d843f0837f269ee6811b0e0f4c0432928c190 | [
"Apache-2.0"
] | 61 | 2020-07-14T17:22:52.000Z | 2022-03-16T11:11:12.000Z | L1Trigger/TrackFindingTracklet/python/ProducerKF_cff.py | Jingyan95/cmssw | f78d843f0837f269ee6811b0e0f4c0432928c190 | [
"Apache-2.0"
] | 8 | 2020-06-08T16:28:54.000Z | 2021-11-16T14:40:00.000Z | import FWCore.ParameterSet.Config as cms
from L1Trigger.TrackTrigger.ProducerSetup_cff import TrackTriggerSetup
from L1Trigger.TrackerTFP.Producer_cfi import TrackerTFPProducer_params
from L1Trigger.TrackerTFP.ProducerES_cff import TrackTriggerDataFormats
from L1Trigger.TrackerTFP.ProducerLayerEncoding_cff import Trac... | 78.6 | 116 | 0.894826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 109 | 0.092451 |
729b69592bb4f1c56bbfc69279479c3149d38d7b | 60,446 | py | Python | py_cui/__init__.py | ne-msft/py_cui | b4938dd2c23a422496af7e32a33c2dbfcb348719 | [
"BSD-3-Clause"
] | null | null | null | py_cui/__init__.py | ne-msft/py_cui | b4938dd2c23a422496af7e32a33c2dbfcb348719 | [
"BSD-3-Clause"
] | null | null | null | py_cui/__init__.py | ne-msft/py_cui | b4938dd2c23a422496af7e32a33c2dbfcb348719 | [
"BSD-3-Clause"
] | null | null | null | """A python library for intuitively creating CUI/TUI interfaces with pre-built widgets.
"""
#
# Author: Jakub Wlodek
# Created: 12-Aug-2019
# Docs: https://jwlodek.github.io/py_cui-docs
# License: BSD-3-Clause (New/Revised)
#
# Some python core library imports
import sys
import os
import time
import copy
impo... | 37.266338 | 188 | 0.553089 | 58,453 | 0.967028 | 0 | 0 | 0 | 0 | 0 | 0 | 26,191 | 0.433296 |
729bee0345192e65862237553dfdacf7015f8ae1 | 5,578 | py | Python | isi_sdk_8_0/isi_sdk_8_0/models/auth_access_access_item_file.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 24 | 2018-06-22T14:13:23.000Z | 2022-03-23T01:21:26.000Z | isi_sdk_8_0/isi_sdk_8_0/models/auth_access_access_item_file.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 46 | 2018-04-30T13:28:22.000Z | 2022-03-21T21:11:07.000Z | isi_sdk_8_0/isi_sdk_8_0/models/auth_access_access_item_file.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 29 | 2018-06-19T00:14:04.000Z | 2022-02-08T17:51:19.000Z | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 3
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class AuthAccessAccessItemFile(o... | 28.030151 | 95 | 0.580495 | 5,289 | 0.948189 | 0 | 0 | 2,552 | 0.457512 | 0 | 0 | 3,005 | 0.538724 |
729d6a65e6746aea2916773666e9ce787cb8c7de | 10,772 | py | Python | dataconnector.py | iamthinkking/COMP4217_FinalProject | 98cadb013bab52677bffb951b6d173caf4bb22b3 | [
"MIT"
] | null | null | null | dataconnector.py | iamthinkking/COMP4217_FinalProject | 98cadb013bab52677bffb951b6d173caf4bb22b3 | [
"MIT"
] | null | null | null | dataconnector.py | iamthinkking/COMP4217_FinalProject | 98cadb013bab52677bffb951b6d173caf4bb22b3 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import pymysql
class Connection:
SQL_HOST = 'localhost'
SQL_USR = ''
SQL_PWD = ''
SQL_DB = 'HOSPITAL'
# initialize database object
def __init__(self, usr, pwd):
self.USR = usr
self.PWD = pwd
# return an database connection
def __ente... | 30.602273 | 121 | 0.525529 | 10,730 | 0.996101 | 0 | 0 | 0 | 0 | 0 | 0 | 3,382 | 0.313962 |
729e65cca9b0a6039288577ac59eedc5273e9d20 | 5,040 | py | Python | flow/visualize/plot_custom_callables.py | AHammoudeh/Flow_AH | 16c5641be3e9e85511756f75efd002478edaee9b | [
"MIT"
] | null | null | null | flow/visualize/plot_custom_callables.py | AHammoudeh/Flow_AH | 16c5641be3e9e85511756f75efd002478edaee9b | [
"MIT"
] | null | null | null | flow/visualize/plot_custom_callables.py | AHammoudeh/Flow_AH | 16c5641be3e9e85511756f75efd002478edaee9b | [
"MIT"
] | null | null | null | """Generate charts from with .npy files containing custom callables through replay."""
import argparse
from datetime import datetime
import errno
import numpy as np
import matplotlib.pyplot as plt
import os
import pytz
import sys
def make_bar_plot(vals, title):
print(len(vals))
fig = plt.figure()
plt.hist... | 36.788321 | 107 | 0.624405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 734 | 0.145635 |
72a124c3d481e06d142109091c80f7375d688299 | 6,447 | py | Python | deployer/src/config_manager.py | yugabyte/docsearch-scraper | 8b58d364c7721cbce892843e946834a3ccc5fcd7 | [
"MIT"
] | null | null | null | deployer/src/config_manager.py | yugabyte/docsearch-scraper | 8b58d364c7721cbce892843e946834a3ccc5fcd7 | [
"MIT"
] | 2 | 2021-03-31T20:20:23.000Z | 2021-12-13T20:58:56.000Z | deployer/src/config_manager.py | tubone24/docsearch-scraper | 07937b551be7f88322c2fe2f28f3ad4eb254e996 | [
"MIT"
] | 1 | 2020-04-01T22:01:17.000Z | 2020-04-01T22:01:17.000Z | import algoliasearch
from os import environ
from . import algolia_helper
from . import snippeter
from . import emails
from . import helpers
from . import fetchers
from .helpdesk_helper import add_note, get_conversation, \
get_emails_from_conversation, get_conversation_url_from_cuid
from deployer.src.algolia_inte... | 40.54717 | 106 | 0.547076 | 6,085 | 0.94385 | 0 | 0 | 368 | 0.057081 | 0 | 0 | 758 | 0.117574 |
72a1afeaa2791d784987902c76baf2fe264f4270 | 1,131 | py | Python | Source/budgie/__init__.py | pylover/budgie | f453cf2fbbf440e8e2314c7fb63f101dbe048e17 | [
"WTFPL"
] | 3 | 2016-10-30T07:41:30.000Z | 2016-11-07T04:55:44.000Z | Source/budgie/__init__.py | pylover/budgie | f453cf2fbbf440e8e2314c7fb63f101dbe048e17 | [
"WTFPL"
] | 11 | 2016-10-28T12:18:24.000Z | 2016-10-29T15:18:56.000Z | Source/budgie/__init__.py | pylover/budgie | f453cf2fbbf440e8e2314c7fb63f101dbe048e17 | [
"WTFPL"
] | null | null | null |
import sys
from sqlalchemy.exc import DatabaseError
from . import cli
from .configuration import settings, init as init_config
from .observer import HelpdeskObserver, MaximumClientsReached
from .models import init as init_models, metadata, engine, check_db
from .smtp import SMTPConfigurationError
__version__ = '0.... | 21.75 | 113 | 0.66313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 132 | 0.116711 |
72a38e5ecc9516d35d7db3206173481ed721f2aa | 3,422 | py | Python | locations/spiders/shopnsave.py | thismakessand/alltheplaces | b6116199844c9e88bff3a691290f07a7457470ba | [
"MIT"
] | 1 | 2019-08-19T10:00:55.000Z | 2019-08-19T10:00:55.000Z | locations/spiders/shopnsave.py | thismakessand/alltheplaces | b6116199844c9e88bff3a691290f07a7457470ba | [
"MIT"
] | null | null | null | locations/spiders/shopnsave.py | thismakessand/alltheplaces | b6116199844c9e88bff3a691290f07a7457470ba | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
import re
from locations.items import GeojsonPointItem
DAY_DICT = {
'Mon': 'Mo',
'Tue': 'Tu',
'Wed': 'We',
'Thu': 'Th',
'Fri': 'Fr',
'Sat': 'Sa',
'Sun': 'Su',
'Monday': 'Mo',
'Tuesday': 'Tu',
'Wednesday': 'We',
'Thursday': 'Th',
'Th... | 36.021053 | 133 | 0.564582 | 2,924 | 0.853972 | 1,123 | 0.327979 | 0 | 0 | 0 | 0 | 1,328 | 0.38785 |
72a3a6f79755d64c89ce82684ad3ec8dc5568be0 | 65 | py | Python | run.py | TovarischSuhov/QR_quest | d2735a60f9018e59fcef09fd76b40c3a1e9d7412 | [
"Apache-2.0"
] | null | null | null | run.py | TovarischSuhov/QR_quest | d2735a60f9018e59fcef09fd76b40c3a1e9d7412 | [
"Apache-2.0"
] | null | null | null | run.py | TovarischSuhov/QR_quest | d2735a60f9018e59fcef09fd76b40c3a1e9d7412 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from app import app
app.run(debug = True)
| 13 | 21 | 0.707692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 21 | 0.323077 |
72a3d114ee07b14005e62845551d3b0c0d260004 | 831 | py | Python | tests/twitter_learning_journal/dao/test_os_env.py | DEV3L/twitter-learning-journal | a51d22a60a3d1249add352d8357975a7f2db585c | [
"Beerware"
] | 1 | 2021-01-12T17:06:57.000Z | 2021-01-12T17:06:57.000Z | tests/twitter_learning_journal/dao/test_os_env.py | DEV3L/twitter-learning-journal | a51d22a60a3d1249add352d8357975a7f2db585c | [
"Beerware"
] | null | null | null | tests/twitter_learning_journal/dao/test_os_env.py | DEV3L/twitter-learning-journal | a51d22a60a3d1249add352d8357975a7f2db585c | [
"Beerware"
] | 1 | 2018-07-31T21:16:33.000Z | 2018-07-31T21:16:33.000Z | from unittest.mock import patch
from app.twitter_learning_journal.dao.os_env import os_environ
@patch('app.twitter_learning_journal.dao.os_env.os')
def test_os_environ(mock_os):
expected_value = 'environment_value'
mock_os.environ.__contains__.return_value = True # patch in statement
mock_os.environ.__... | 26.806452 | 74 | 0.776173 | 0 | 0 | 0 | 0 | 402 | 0.483755 | 0 | 0 | 122 | 0.146811 |
72a434d4367495e97d23e862eb1e69cd74b1b481 | 477 | py | Python | web-scraper/mongoscraper/populate.py | naveenr414/hack-umbc | f5d0fa5b6c3203d54a3c98b8a43b8028229431f8 | [
"MIT"
] | null | null | null | web-scraper/mongoscraper/populate.py | naveenr414/hack-umbc | f5d0fa5b6c3203d54a3c98b8a43b8028229431f8 | [
"MIT"
] | null | null | null | web-scraper/mongoscraper/populate.py | naveenr414/hack-umbc | f5d0fa5b6c3203d54a3c98b8a43b8028229431f8 | [
"MIT"
] | null | null | null | import pymongo
myclient = pymongo.MongoClient()
mydb = myclient["mydb"]
hor = mydb["HoR"]
sen = mydb["Senator"]
gov = mydb["Governor"]
def write(fileJSON):
myDoc = fileJSON
if( "hor" in myDoc.values()):
hor.insert_one(myDoc)
elif( "senate" in myDoc.values()):
sen.insert_one(myDoc)
else... | 18.346154 | 38 | 0.601677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 43 | 0.090147 |
72a4e5a582877273a13f89ab82a67ba0dbfaef06 | 1,444 | py | Python | tests/test_utils_obj_value.py | ZSD-tim/dayu_widgets | 31c2530bdc4161d9311574d9850c2e9471e53072 | [
"MIT"
] | 157 | 2019-03-10T05:55:21.000Z | 2022-03-31T09:07:00.000Z | tests/test_utils_obj_value.py | kanbang/dayu_widgets | 6ff101e6c6f8fcf10e5cb578023a12ccdcef9164 | [
"MIT"
] | 16 | 2019-07-15T11:30:53.000Z | 2021-12-16T14:17:59.000Z | tests/test_utils_obj_value.py | kanbang/dayu_widgets | 6ff101e6c6f8fcf10e5cb578023a12ccdcef9164 | [
"MIT"
] | 56 | 2019-06-19T03:35:27.000Z | 2022-03-22T08:07:32.000Z | """
Test get_obj_value set_obj_value has_obj_value
"""
import pytest
from dayu_widgets import utils
class _HasNameAgeObject(object):
def __init__(self, name, age):
super(_HasNameAgeObject, self).__init__()
self.name = name
self.age = age
@pytest.mark.parametrize('obj', (
{'name': 'xi... | 29.469388 | 68 | 0.607341 | 1,226 | 0.84903 | 0 | 0 | 1,173 | 0.812327 | 0 | 0 | 427 | 0.295706 |
72a50676744b1429bd199408d3b9fb6111481c1b | 322 | py | Python | desktop/core/ext-py/PyYAML-3.12/tests/lib3/test_all.py | kokosing/hue | 2307f5379a35aae9be871e836432e6f45138b3d9 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/PyYAML-3.12/tests/lib3/test_all.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/PyYAML-3.12/tests/lib3/test_all.py | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z |
import sys, yaml, test_appliance
def main(args=None):
collections = []
import test_yaml
collections.append(test_yaml)
if yaml.__with_libyaml__:
import test_yaml_ext
collections.append(test_yaml_ext)
return test_appliance.run(collections, args)
if __name__ == '__main__':
main()... | 20.125 | 48 | 0.698758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.031056 |
72a54534a71e2246424e06879611de77216a27cb | 22,969 | py | Python | tim_camera/oop_detection_webcam.py | Tim-orius/aidem | 965a71888db72f42223777e890f4bcf88cde7fd3 | [
"MIT"
] | null | null | null | tim_camera/oop_detection_webcam.py | Tim-orius/aidem | 965a71888db72f42223777e890f4bcf88cde7fd3 | [
"MIT"
] | null | null | null | tim_camera/oop_detection_webcam.py | Tim-orius/aidem | 965a71888db72f42223777e890f4bcf88cde7fd3 | [
"MIT"
] | null | null | null | """ Webcam Detection with Tensorflow calssifier and object distance calculation """
__version__ = "0.1.0"
__author__ = "Tim Rosenkranz"
__email__ = "tim.rosenkranz@stud.uni-frankfurt.de"
__credits__ = "Special thanks to The Anh Vuong who came up with the original idea." \
"This code is also based off of ... | 49.184154 | 221 | 0.530846 | 21,061 | 0.916932 | 0 | 0 | 0 | 0 | 0 | 0 | 7,101 | 0.309156 |
72a66499365040683f1a28fc9b02b8c6e95b1740 | 4,107 | py | Python | modules/zabbix_smart.py | yakumo-saki/smart_to_zabbix | 04dd1debe0c831b4ec94962884543c989ad57730 | [
"MIT"
] | null | null | null | modules/zabbix_smart.py | yakumo-saki/smart_to_zabbix | 04dd1debe0c831b4ec94962884543c989ad57730 | [
"MIT"
] | 23 | 2021-08-30T14:59:27.000Z | 2021-11-05T16:51:08.000Z | modules/zabbix_smart.py | yakumo-saki/smart_to_zabbix | 04dd1debe0c831b4ec94962884543c989ad57730 | [
"MIT"
] | null | null | null | import json
import logging
import config as cfg
from modules.const import Keys, AttrKey
from modules.zabbix_sender import send_to_zabbix
logger = logging.getLogger(__name__)
SMART_ATTR_KEY = "ata_smart_attributes"
NVME_ATTR_KEY = "nvme_smart_health_information_log"
def send_attribute_discovery(result):
"""
zab... | 30.198529 | 90 | 0.70392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,333 | 0.307355 |
72a84aac36dbbd7474150732b72b1f6e0905fbe4 | 2,007 | py | Python | data.py | kpister/biaxial-rnn-music-composition | f6feafad0fe1066dd957293803a86d6c584d9952 | [
"BSD-2-Clause"
] | null | null | null | data.py | kpister/biaxial-rnn-music-composition | f6feafad0fe1066dd957293803a86d6c584d9952 | [
"BSD-2-Clause"
] | null | null | null | data.py | kpister/biaxial-rnn-music-composition | f6feafad0fe1066dd957293803a86d6c584d9952 | [
"BSD-2-Clause"
] | null | null | null | import itertools
from midi_to_statematrix import UPPER_BOUND, LOWER_BOUND
def startSentinel():
def noteSentinel(note):
position = note
part_position = [position]
pitchclass = (note + LOWER_BOUND) % 12
part_pitchclass = [int(i == pitchclass) for i in range(12)]
return part... | 26.76 | 89 | 0.636273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 161 | 0.080219 |
72a872cd27be148319e99d8b66913e6b97bcfc81 | 7,861 | py | Python | ocdb/ws/controllers/datasets.py | eocdb/ocdb-server | 0e28d092e8ecf5f4813878aab43de990cc5fb4ee | [
"MIT"
] | null | null | null | ocdb/ws/controllers/datasets.py | eocdb/ocdb-server | 0e28d092e8ecf5f4813878aab43de990cc5fb4ee | [
"MIT"
] | null | null | null | ocdb/ws/controllers/datasets.py | eocdb/ocdb-server | 0e28d092e8ecf5f4813878aab43de990cc5fb4ee | [
"MIT"
] | null | null | null | # The MIT License (MIT)
# Copyright (c) 2018 by EUMETSAT
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify,... | 38.346341 | 97 | 0.677649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,275 | 0.289403 |
72a973eeb72b3616d349d7fd689d925f5f433b09 | 4,209 | py | Python | libAnt/node.py | ayanezcasal/AntLibAYC | c266af973f4c32d4baf30130fe51a572478488ec | [
"MIT"
] | 19 | 2018-04-14T15:29:17.000Z | 2022-02-05T08:51:16.000Z | libAnt/node.py | ayanezcasal/AntLibAYC | c266af973f4c32d4baf30130fe51a572478488ec | [
"MIT"
] | 5 | 2018-12-16T09:32:06.000Z | 2021-10-20T20:20:06.000Z | libAnt/node.py | ayanezcasal/AntLibAYC | c266af973f4c32d4baf30130fe51a572478488ec | [
"MIT"
] | 12 | 2016-08-24T09:00:44.000Z | 2022-01-24T00:16:13.000Z | import threading
from queue import Queue, Empty
from time import sleep
from libAnt.drivers.driver import Driver
from libAnt.message import *
class Network:
def __init__(self, key: bytes = b'\x00' * 8, name: str = None):
self.key = key
self.name = name
self.number = 0
def __str__(self... | 33.943548 | 117 | 0.516512 | 4,058 | 0.964124 | 0 | 0 | 0 | 0 | 0 | 0 | 138 | 0.032787 |
72a98cda239838c97dafaaefa4602ca6f04cc90c | 5,168 | py | Python | tests/test_seasonality.py | OliPerkins1987/Wildfire_Human_Agency_Model | 49ac17c7c2ad5e03d572b6ae22c227e89a944624 | [
"MIT"
] | 1 | 2021-06-24T16:45:22.000Z | 2021-06-24T16:45:22.000Z | tests/test_seasonality.py | OliPerkins1987/Wildfire_Human_Agency_Model | 49ac17c7c2ad5e03d572b6ae22c227e89a944624 | [
"MIT"
] | null | null | null | tests/test_seasonality.py | OliPerkins1987/Wildfire_Human_Agency_Model | 49ac17c7c2ad5e03d572b6ae22c227e89a944624 | [
"MIT"
] | 1 | 2021-10-05T08:57:17.000Z | 2021-10-05T08:57:17.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 30 12:17:04 2021
@author: Oli
"""
import pytest
import pandas as pd
import numpy as np
import netCDF4 as nc
import os
from copy import deepcopy
os.chdir(os.path.dirname(os.path.realpath(__file__)))
wd = os.getcwd().replace('\\', '/')
exec(open("test_set... | 32.917197 | 125 | 0.60952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,449 | 0.280379 |
72a98f8195358b1bfa2d15602cde451901a0aac4 | 2,514 | py | Python | bookalo/funciones_report.py | unizar-30226-2019-08/Backend | d14e6fce293330611cd697af033823aa01a2ebfe | [
"MIT"
] | 3 | 2019-05-21T19:35:30.000Z | 2019-06-03T19:58:10.000Z | bookalo/funciones_report.py | unizar-30226-2019-08/Backend | d14e6fce293330611cd697af033823aa01a2ebfe | [
"MIT"
] | 99 | 2019-03-14T10:22:52.000Z | 2022-03-11T23:46:08.000Z | bookalo/funciones_report.py | unizar-30226-2019-08/Backend | d14e6fce293330611cd697af033823aa01a2ebfe | [
"MIT"
] | 4 | 2019-03-17T18:53:57.000Z | 2019-05-21T19:35:35.000Z | from django.shortcuts import render, redirect
from bookalo.pyrebase_settings import db, auth
from bookalo.models import *
from bookalo.serializers import *
#from bookalo.functions import *
from rest_framework import status, permissions
from rest_framework.decorators import api_view, permission_classes
from rest_... | 54.652174 | 307 | 0.73031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 535 | 0.212724 |
72a9deefb1b6924bdaa40e4fd75c347025f116d3 | 572 | py | Python | tests/test_client.py | patvdleer/nefit-client-python | 97f2c1e454b7c0d5829e1a9c285c998980c603e3 | [
"MIT"
] | 11 | 2017-07-20T10:12:55.000Z | 2020-12-25T12:40:31.000Z | tests/test_client.py | patvdleer/nefit-client-python | 97f2c1e454b7c0d5829e1a9c285c998980c603e3 | [
"MIT"
] | 5 | 2018-01-01T22:11:09.000Z | 2020-05-14T20:59:50.000Z | tests/test_client.py | patvdleer/nefit-client-python | 97f2c1e454b7c0d5829e1a9c285c998980c603e3 | [
"MIT"
] | 11 | 2017-04-09T18:55:53.000Z | 2020-04-22T14:31:12.000Z | import os
import unittest
from nefit import NefitClient, NefitResponseException
class ClientTest(unittest.TestCase):
def test_exceptions(self):
client = NefitClient(
os.environ.get("NEFIT_SERIAL", 123456789),
os.environ.get("NEFIT_ACCESS_KEY", "abc1abc2abc3abc4"),
"asdd... | 26 | 67 | 0.657343 | 440 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 76 | 0.132867 |
72ac281779d052a2842e7fce7e7f54eebca721c0 | 5,080 | py | Python | opencivicdata/merge.py | GovHawkDC/python-opencivicdata | 1679a4e5df381c777c3e6c53d7c056321662e99a | [
"BSD-3-Clause"
] | null | null | null | opencivicdata/merge.py | GovHawkDC/python-opencivicdata | 1679a4e5df381c777c3e6c53d7c056321662e99a | [
"BSD-3-Clause"
] | null | null | null | opencivicdata/merge.py | GovHawkDC/python-opencivicdata | 1679a4e5df381c777c3e6c53d7c056321662e99a | [
"BSD-3-Clause"
] | null | null | null | import datetime
from django.db import transaction
def compute_diff(obj1, obj2):
"""
Given two objects compute a list of differences.
Each diff dict has the following keys:
field - name of the field
new - the new value for the field
one - value of the field in o... | 34.794521 | 97 | 0.491339 | 0 | 0 | 0 | 0 | 683 | 0.134449 | 0 | 0 | 1,141 | 0.224606 |
72ac92211f4ec9ab263019e3549666f802fa242f | 3,257 | py | Python | src/python/pants/core/project_info/filedeps.py | silverguo/pants | 141510d03fbf2b7e1a0b54f66b54088697f6fa51 | [
"Apache-2.0"
] | null | null | null | src/python/pants/core/project_info/filedeps.py | silverguo/pants | 141510d03fbf2b7e1a0b54f66b54088697f6fa51 | [
"Apache-2.0"
] | null | null | null | src/python/pants/core/project_info/filedeps.py | silverguo/pants | 141510d03fbf2b7e1a0b54f66b54088697f6fa51 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import itertools
from pathlib import PurePath
from typing import Iterable
from pants.base.build_root import BuildRoot
from pants.engine.addresses import Address, Addresses, BuildFileAddre... | 30.726415 | 100 | 0.645072 | 1,072 | 0.329137 | 0 | 0 | 2,346 | 0.720295 | 1,464 | 0.449493 | 550 | 0.168867 |
72adadcbd8e2ff6b2637e141f68ab8b5a7fcd9ed | 5,887 | py | Python | perfkitbenchmarker/providers/rackspace/rackspace_network.py | dq922/CloudControlVM | fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52 | [
"Apache-2.0"
] | null | null | null | perfkitbenchmarker/providers/rackspace/rackspace_network.py | dq922/CloudControlVM | fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52 | [
"Apache-2.0"
] | null | null | null | perfkitbenchmarker/providers/rackspace/rackspace_network.py | dq922/CloudControlVM | fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 38.477124 | 80 | 0.565993 | 4,794 | 0.814337 | 0 | 0 | 0 | 0 | 0 | 0 | 1,605 | 0.272635 |
72b295dd25910f310b0a00f8178ac31d5400862a | 154,604 | py | Python | dota2py/proto/dota_usermessages_pb2.py | mjdesrosiers/dota2py | 744f44ba6993c99932037df15de2c08dbd265674 | [
"MIT"
] | 86 | 2015-01-05T02:03:10.000Z | 2021-07-06T02:38:20.000Z | dota2py/proto/dota_usermessages_pb2.py | mjdesrosiers/dota2py | 744f44ba6993c99932037df15de2c08dbd265674 | [
"MIT"
] | 8 | 2015-01-20T15:24:20.000Z | 2018-11-29T07:35:53.000Z | dota2py/proto/dota_usermessages_pb2.py | mjdesrosiers/dota2py | 744f44ba6993c99932037df15de2c08dbd265674 | [
"MIT"
] | 29 | 2015-01-20T15:26:50.000Z | 2019-08-30T14:49:28.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
import google.protobuf.descriptor_pb2
import netmessages_pb2
impo... | 41.315874 | 18,615 | 0.764191 | 13,991 | 0.090496 | 0 | 0 | 0 | 0 | 0 | 0 | 42,230 | 0.273149 |
72b29fc480b17250901de0de9a0fdd2643e31525 | 369 | py | Python | auth0_client/menu/datafiles/scripts/get_active_user_count.py | rubelw/auth0_client | 51e68239babcf7c40e40491d1aaa3f8547a67f63 | [
"MIT"
] | 2 | 2020-10-08T21:42:56.000Z | 2021-03-21T08:17:52.000Z | auth0_client/menu/datafiles/scripts/get_active_user_count.py | rubelw/auth0_client | 51e68239babcf7c40e40491d1aaa3f8547a67f63 | [
"MIT"
] | null | null | null | auth0_client/menu/datafiles/scripts/get_active_user_count.py | rubelw/auth0_client | 51e68239babcf7c40e40491d1aaa3f8547a67f63 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import json
from auth0_client.Auth0Client import Auth0Client
from auth0_client.menu.menu_helper.common import *
from auth0_client.menu.menu_helper.pretty import *
try:
users = {}
client = Auth0Client(auth_config())
results = client.active_users()
print(pretty(results))
except... | 19.421053 | 50 | 0.742547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 21 | 0.056911 |
72b41799b9ea2ac1e3eee3e55900103983d55cfc | 852 | py | Python | encryptfinance/transactions/admin.py | dark-codr/encryptfinance | 573a8179c3a7c4b0f68d71bc9d461246f6fdba29 | [
"Apache-2.0"
] | null | null | null | encryptfinance/transactions/admin.py | dark-codr/encryptfinance | 573a8179c3a7c4b0f68d71bc9d461246f6fdba29 | [
"Apache-2.0"
] | 1 | 2022-03-31T03:16:16.000Z | 2022-03-31T03:16:16.000Z | encryptfinance/transactions/admin.py | dark-codr/encryptfinance | 573a8179c3a7c4b0f68d71bc9d461246f6fdba29 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from django.contrib import admin
from .models import Deposit, Withdrawal, Support
from .forms import DepositForm, WithdrawalForm
# Register your models here.
@admin.register(Deposit)
class DepositAdmin(admin.ModelAdmin):
# form = DepositForm
list_display = ["__str__", "... | 28.4 | 89 | 0.706573 | 564 | 0.661972 | 0 | 0 | 617 | 0.724178 | 0 | 0 | 241 | 0.282864 |
72b5ec574a910346ea5b219b420b4689179e7f53 | 818 | py | Python | vendor-local/src/django-piston/tests/test_project/settings.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 22 | 2015-01-16T01:36:32.000Z | 2020-06-08T00:46:18.000Z | vendor-local/src/django-piston/tests/test_project/settings.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 9 | 2019-03-15T11:39:32.000Z | 2019-04-30T00:59:50.000Z | vendor-local/src/django-piston/tests/test_project/settings.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 13 | 2015-01-13T20:56:22.000Z | 2022-02-23T06:01:17.000Z | import os
DEBUG = True
DATABASES = {
'default':
{
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/tmp/piston.db'
}
}
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = '/tmp/piston.db'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessi... | 24.058824 | 62 | 0.687042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 486 | 0.594132 |
72b62ed3f7cc27fe8cfe04f0c5e5ac430e3c0735 | 14,958 | py | Python | src/sage/combinat/combinatorial_map.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | null | null | null | src/sage/combinat/combinatorial_map.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | null | null | null | src/sage/combinat/combinatorial_map.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | null | null | null | """
Combinatorial maps
This module provides a decorator that can be used to add semantic to a
Python method by marking it as implementing a *combinatorial map*,
that is a map between two :class:`enumerated sets <EnumeratedSets>`::
sage: from sage.combinat.combinatorial_map import combinatorial_map
sage: class... | 36.043373 | 130 | 0.595935 | 6,195 | 0.41416 | 0 | 0 | 0 | 0 | 0 | 0 | 13,025 | 0.870771 |
72b71a7472c7bdcc100bc857b45e0a2173cf0beb | 5,048 | py | Python | tests/cppproj/xdressrc.py | xdress/xdress | eb7f0a02b3edf617d401939ede7f0d713a88917f | [
"BSD-2-Clause-FreeBSD"
] | 88 | 2015-01-04T14:49:05.000Z | 2021-03-25T15:32:41.000Z | tests/cppproj/xdressrc.py | scopatz/xdress | 2d95c900e849f924644756d421b1f4da4624e6c9 | [
"BSD-2-Clause-FreeBSD"
] | 26 | 2015-02-03T19:09:11.000Z | 2022-03-24T00:15:55.000Z | tests/cppproj/xdressrc.py | scopatz/xdress | 2d95c900e849f924644756d421b1f4da4624e6c9 | [
"BSD-2-Clause-FreeBSD"
] | 25 | 2015-01-27T18:25:15.000Z | 2022-03-24T00:10:18.000Z | import os
from xdress.utils import apiname
package = 'cppproj'
packagedir = 'cppproj'
includes = ['src']
plugins = ('xdress.autoall', 'xdress.pep8names', 'xdress.cythongen',
'xdress.stlwrap', )
extra_types = 'cppproj_extra_types' # non-default value
dtypes = [
('map', 'str', 'int'),
('set', 'in... | 33.210526 | 89 | 0.522187 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,443 | 0.483954 |
72b766456e6162990d0a72bfeab659fdbe69bb40 | 1,259 | py | Python | routines/server.py | henryshunt/c-aws | 6e15bb18c2243f11a129b01298cb31749033f8d4 | [
"MIT"
] | null | null | null | routines/server.py | henryshunt/c-aws | 6e15bb18c2243f11a129b01298cb31749033f8d4 | [
"MIT"
] | null | null | null | routines/server.py | henryshunt/c-aws | 6e15bb18c2243f11a129b01298cb31749033f8d4 | [
"MIT"
] | null | null | null | import os
import subprocess
import routines.config as config
import routines.helpers as helpers
def get_static_info():
""" Outputs data concerning the computer in the C-AWS station
"""
startup_time = None
data_drive_space = None
camera_drive_space = None
# Get system startup ... | 33.131579 | 74 | 0.629071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 150 | 0.119142 |
72b93e836d4145542223f40d01a9abd8ec9065ef | 654 | py | Python | DQM/DTMonitorModule/python/dtChamberEfficiencyHI_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQM/DTMonitorModule/python/dtChamberEfficiencyHI_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQM/DTMonitorModule/python/dtChamberEfficiencyHI_cfi.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
from RecoMuon.TrackingTools.MuonServiceProxy_cff import MuonServiceProxy
dtEfficiencyMonitor = cms.EDAnalyzer("DTChamberEfficiency",
MuonServiceProxy,
debug = cms.untracked.bool(True),
TrackCollection = cms.InputTag("standAloneMuons"),
theMaxChi2 = cms.do... | 32.7 | 73 | 0.717125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 0.126911 |
72b949d8e04cbc755aaffda65747d7946fc2a6d5 | 217 | py | Python | gym_reinmav/envs/mujoco/__init__.py | peterminh227/reinmav-gym | 518122b16b86d59f744b3116e6187dafd49a3de4 | [
"BSD-3-Clause"
] | 60 | 2019-03-08T21:14:38.000Z | 2022-01-23T20:43:21.000Z | gym_reinmav/envs/mujoco/__init__.py | peterminh227/reinmav-gym | 518122b16b86d59f744b3116e6187dafd49a3de4 | [
"BSD-3-Clause"
] | 8 | 2019-03-09T09:09:38.000Z | 2022-03-25T15:36:51.000Z | gym_reinmav/envs/mujoco/__init__.py | peterminh227/reinmav-gym | 518122b16b86d59f744b3116e6187dafd49a3de4 | [
"BSD-3-Clause"
] | 22 | 2019-03-08T19:47:49.000Z | 2022-03-29T09:14:01.000Z | from gym_reinmav.envs.mujoco.mujoco_quad import MujocoQuadEnv
from gym_reinmav.envs.mujoco.mujoco_quad_hovering import MujocoQuadHoveringEnv
from gym_reinmav.envs.mujoco.mujoco_quad_quat import MujocoQuadQuaternionEnv | 72.333333 | 78 | 0.907834 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
72ba794e4ffc0f8c96701df9930a1aeef6a247aa | 3,075 | py | Python | test.py | jasonivey/scripts | 09f9702e5ce62abbb7699aae16b45b33711fe856 | [
"MIT"
] | null | null | null | test.py | jasonivey/scripts | 09f9702e5ce62abbb7699aae16b45b33711fe856 | [
"MIT"
] | null | null | null | test.py | jasonivey/scripts | 09f9702e5ce62abbb7699aae16b45b33711fe856 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# vim:softtabstop=4:ts=4:sw=4:expandtab:tw=120
from ansimarkup import AnsiMarkup, parse
import csv
import datetime
import operator
import os
from pathlib import Path
import re
import sys
import traceback
_VERBOSE = False
user_tags = {
'error' : parse('<bold><red>'),
'nam... | 35.755814 | 103 | 0.666016 | 0 | 0 | 368 | 0.119675 | 0 | 0 | 0 | 0 | 593 | 0.192846 |
72ba9085ddab97bd04e95141330b44b2e8f9e59c | 625 | py | Python | RDyn-master/rdyn/test/rdyn_test.py | nogrady/dynamo | 4a94453c810cb6cd0eb976c6db9e379cfb2e1f3b | [
"MIT"
] | 12 | 2020-02-05T10:24:54.000Z | 2022-02-24T02:26:00.000Z | RDyn-master/rdyn/test/rdyn_test.py | nogrady/dynamo | 4a94453c810cb6cd0eb976c6db9e379cfb2e1f3b | [
"MIT"
] | 4 | 2020-12-03T04:24:24.000Z | 2021-09-18T13:14:50.000Z | RDyn-master/rdyn/test/rdyn_test.py | nogrady/dynamo | 4a94453c810cb6cd0eb976c6db9e379cfb2e1f3b | [
"MIT"
] | 6 | 2019-07-30T12:55:44.000Z | 2021-09-05T06:26:18.000Z | import unittest
import shutil
from rdyn.alg.RDyn_v2 import RDynV2
class RDynTestCase(unittest.TestCase):
def test_rdyn_simplified(self):
print("1")
rdb = RDynV2(size=500, iterations=100)
rdb.execute(simplified=True)
print("2")
rdb = RDynV2(size=500, iterations=100, max_ev... | 24.038462 | 99 | 0.6384 | 507 | 0.8112 | 0 | 0 | 0 | 0 | 0 | 0 | 34 | 0.0544 |
72bb20592ab5dcb9752888e9d174ab8e1560ff6a | 1,436 | py | Python | recognition/datasets/build.py | Jung-Jun-Uk/UNPG | a6f9c1731a68fc035eb8fe8198f5a5c643825a5b | [
"Apache-2.0"
] | 7 | 2022-03-15T13:09:05.000Z | 2022-03-31T04:11:19.000Z | recognition/datasets/build.py | Jung-Jun-Uk/UNPG | a6f9c1731a68fc035eb8fe8198f5a5c643825a5b | [
"Apache-2.0"
] | 1 | 2022-03-31T02:03:05.000Z | 2022-03-31T11:18:02.000Z | recognition/datasets/build.py | Jung-Jun-Uk/UNPG | a6f9c1731a68fc035eb8fe8198f5a5c643825a5b | [
"Apache-2.0"
] | null | null | null | import os
from .kface import KFace
from .ms1m import MS1M
from .bin_datasets import BIN
from .ijb import IJB
def build_datasets(data_cfg, batch_size, cuda, workers, mode, rank=-1):
assert mode in ['train', 'test']
cfg = data_cfg[mode]
if cfg['dataset'] == 'kface':
dataset =... | 46.322581 | 112 | 0.559192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 248 | 0.172702 |
72bb21a725c716541be205c2b5b7874c878a779b | 1,316 | py | Python | django_cd/notifications.py | ppinard/django-cd | 1bc9304466ace12867df3b18a8ef7f204b9744b4 | [
"MIT"
] | 1 | 2021-12-22T15:18:17.000Z | 2021-12-22T15:18:17.000Z | django_cd/notifications.py | ppinard/django-cd | 1bc9304466ace12867df3b18a8ef7f204b9744b4 | [
"MIT"
] | null | null | null | django_cd/notifications.py | ppinard/django-cd | 1bc9304466ace12867df3b18a8ef7f204b9744b4 | [
"MIT"
] | null | null | null | """"""
# Standard library modules.
import abc
# Third party modules.
from django.core.mail import send_mail
from django.template import Engine, Context
# Local modules.
from .models import RunState
# Globals and constants variables.
class Notification(metaclass=abc.ABCMeta):
@classmethod
def notify(self, ... | 28 | 87 | 0.637538 | 1,073 | 0.81535 | 0 | 0 | 76 | 0.057751 | 0 | 0 | 198 | 0.150456 |
72bbe0388e18a5be8321d3239864b86aeb1e09f0 | 16,783 | py | Python | Experiment/ltpFR3_MTurk/ListGen/ltpFR3_listgen.py | jpazdera/PazdKaha22 | 9b3157cbcc68aafc829dbd38f3271f884caf541d | [
"CC-BY-4.0"
] | null | null | null | Experiment/ltpFR3_MTurk/ListGen/ltpFR3_listgen.py | jpazdera/PazdKaha22 | 9b3157cbcc68aafc829dbd38f3271f884caf541d | [
"CC-BY-4.0"
] | null | null | null | Experiment/ltpFR3_MTurk/ListGen/ltpFR3_listgen.py | jpazdera/PazdKaha22 | 9b3157cbcc68aafc829dbd38f3271f884caf541d | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python2
import random
import itertools
import numpy
import sys
import json
import copy
def make_bins_ltpFR3(semArray):
"""
Creates four equal-width bins of WAS scores, identical to those used in ltpFR2. Then combine the middle two to give
three bins: low similarity, medium similarity, and h... | 42.923274 | 121 | 0.599476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7,431 | 0.442769 |
72bc6c214f68401efd569e611f4ece00cc40d261 | 1,568 | py | Python | fastestimator/dataset/data/cifar10.py | DwijayDS/fastestimator | 9b288cb2bd870f971ec4cee09d0b3205e1316a94 | [
"Apache-2.0"
] | 57 | 2019-05-21T21:29:26.000Z | 2022-02-23T05:55:21.000Z | fastestimator/dataset/data/cifar10.py | vbvg2008/fastestimator | 6061a4fbbeb62a2194ef82ba8017f651710d0c65 | [
"Apache-2.0"
] | 93 | 2019-05-23T18:36:07.000Z | 2022-03-23T17:15:55.000Z | fastestimator/dataset/data/cifar10.py | vbvg2008/fastestimator | 6061a4fbbeb62a2194ef82ba8017f651710d0c65 | [
"Apache-2.0"
] | 47 | 2019-05-09T15:41:37.000Z | 2022-03-26T17:00:08.000Z | # Copyright 2019 The FastEstimator Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 40.205128 | 116 | 0.700255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,069 | 0.68176 |