hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | 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 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 251 | max_forks_repo_name stringlengths 4 130 | 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 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31ecb15b99e3ceb267fe3088d539b5b22c952d38 | 1,346 | py | Python | flink-ai-flow/examples/workflow_on_event/workflows/init/init.py | lisy09/flink-ai-extended | 011a5a332f7641f66086653e715d0596eab2e107 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ai-flow/examples/workflow_on_event/workflows/init/init.py | lisy09/flink-ai-extended | 011a5a332f7641f66086653e715d0596eab2e107 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ai-flow/examples/workflow_on_event/workflows/init/init.py | lisy09/flink-ai-extended | 011a5a332f7641f66086653e715d0596eab2e107 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 35.421053 | 83 | 0.770431 |
31ee3bc132db64859847221802dd7bff470b9ce3 | 977 | py | Python | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/bobcat/profiles/Profile_WiSUN.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 82 | 2016-06-29T17:24:43.000Z | 2021-04-16T06:49:17.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/bobcat/profiles/Profile_WiSUN.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 2 | 2017-02-13T10:07:17.000Z | 2017-03-22T21:28:26.000Z | platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/bobcat/profiles/Profile_WiSUN.py | SiliconLabs/Gecko_SDK | 991121c706578c9a2135b6f75cc88856e8c64bdc | [
"Zlib"
] | 56 | 2016-08-02T10:50:50.000Z | 2021-07-19T08:57:34.000Z | from pyradioconfig.parts.ocelot.profiles.Profile_WiSUN import Profile_WiSUN_Ocelot
from pyradioconfig.parts.common.profiles.bobcat_regs import build_modem_regs_bobcat
from pyradioconfig.parts.common.profiles.profile_common import buildCrcOutputs, buildFecOutputs, buildFrameOutputs, \
buildWhiteOutputs | 42.478261 | 117 | 0.73695 |
31ee781effe2a319a7f8d1c8b7b12faf33878337 | 1,846 | py | Python | tests/dgds_functions_test.py | openearth/hydro-engine-service | 8e7eea489ee241dad2d6d8152d1c30af8a09a8d1 | [
"MIT"
] | 4 | 2019-02-15T13:53:01.000Z | 2021-12-13T09:53:02.000Z | tests/dgds_functions_test.py | openearth/hydro-engine-service | 8e7eea489ee241dad2d6d8152d1c30af8a09a8d1 | [
"MIT"
] | 12 | 2018-12-19T08:30:29.000Z | 2021-04-21T12:59:59.000Z | tests/dgds_functions_test.py | openearth/hydro-engine-service | 8e7eea489ee241dad2d6d8152d1c30af8a09a8d1 | [
"MIT"
] | 4 | 2018-10-17T23:48:21.000Z | 2020-08-05T18:36:14.000Z | import logging
import pytest
from . import auth
from hydroengine_service import dgds_functions
logger = logging.getLogger(__name__)
| 51.277778 | 109 | 0.538462 |
31ee7dd58797f57d854758b0971c25c71826cd28 | 2,485 | py | Python | smol_opyt/logistic_problem.py | abelsiqueira/smol-opyt | 58901906eb3129f4aae9edc7893bba624c5a0686 | [
"MIT"
] | null | null | null | smol_opyt/logistic_problem.py | abelsiqueira/smol-opyt | 58901906eb3129f4aae9edc7893bba624c5a0686 | [
"MIT"
] | 5 | 2021-08-02T02:04:48.000Z | 2021-08-02T02:27:57.000Z | smol_opyt/logistic_problem.py | abelsiqueira/smol-opyt | 58901906eb3129f4aae9edc7893bba624c5a0686 | [
"MIT"
] | null | null | null | from math import log
import numpy as np
from numpy import linalg as la
| 33.133333 | 107 | 0.534004 |
9ec42ebdeb8c357fae82c9abfd68ebde784ec5ba | 1,280 | py | Python | TeamClassificationUtils.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 8 | 2020-10-17T14:54:53.000Z | 2022-02-09T11:03:01.000Z | TeamClassificationUtils.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 4 | 2021-01-03T16:02:29.000Z | 2021-11-23T03:26:01.000Z | TeamClassificationUtils.py | Neerajj9/Computer-Vision-based-Offside-Detection-in-soccer | 744bfc636463f24c4f78f25684864c2ce4abb43f | [
"MIT"
] | 2 | 2021-04-10T07:05:55.000Z | 2021-09-19T23:22:18.000Z | import numpy as np
# TODO : add code for referee | 33.684211 | 109 | 0.651563 |
9ec50e4a84db3516536add2eb38a5493aef3c343 | 856 | py | Python | examples/PTSD/mpi_tmp/PTSD_cognet.py | zeroknowledgediscovery/cognet | 3acc2f05451ccbc228bf9c02e5d357b40b0c3e4f | [
"MIT"
] | null | null | null | examples/PTSD/mpi_tmp/PTSD_cognet.py | zeroknowledgediscovery/cognet | 3acc2f05451ccbc228bf9c02e5d357b40b0c3e4f | [
"MIT"
] | null | null | null | examples/PTSD/mpi_tmp/PTSD_cognet.py | zeroknowledgediscovery/cognet | 3acc2f05451ccbc228bf9c02e5d357b40b0c3e4f | [
"MIT"
] | null | null | null | from mpi4py.futures import MPIPoolExecutor
import numpy as np
import pandas as pd
from quasinet.qnet import Qnet, qdistance, load_qnet, qdistance_matrix
from quasinet.qsampling import qsample, targeted_qsample
qnet=load_qnet('../results/PTSD_cognet_test.joblib')
w = 304
h = w
p_all = pd.read_csv("tmp_samples_as_string... | 27.612903 | 84 | 0.73715 |
9ec518765538fd6d2d3d18e0ed23d60b0ac69f7f | 58 | py | Python | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | null | null | null | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | 3 | 2018-07-24T14:32:41.000Z | 2018-08-10T11:17:49.000Z | tests/__init__.py | bio2bel/famplex | 3a1dfb0f3da3eb33c2b4de658cf02ffb6b5bebaa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for Bio2BEL FamPlex."""
| 14.5 | 32 | 0.551724 |
9ec5885a6003a25f321416770e39cf31583e933d | 4,778 | py | Python | dfainductor/algorithms/searchers.py | ctlab/DFA-Inductor-py | c9f0906101a4c83f125ab8c487dc2eac7a52d310 | [
"MIT"
] | 2 | 2020-06-03T11:27:45.000Z | 2021-08-30T04:14:48.000Z | dfainductor/algorithms/searchers.py | ctlab/DFA-Inductor-py | c9f0906101a4c83f125ab8c487dc2eac7a52d310 | [
"MIT"
] | 1 | 2021-07-14T18:43:58.000Z | 2021-07-14T18:43:58.000Z | dfainductor/algorithms/searchers.py | ctlab/DFA-Inductor-py | c9f0906101a4c83f125ab8c487dc2eac7a52d310 | [
"MIT"
] | null | null | null | from typing import List
from pysat.solvers import Solver
from ..variables import VarPool
from .reductions import ClauseGenerator
from ..examples import BaseExamplesProvider
from ..logging_utils import *
from ..statistics import STATISTICS
from ..structures import APTA, DFA, InconsistencyGraph
| 43.834862 | 102 | 0.547928 |
9ec5b4570de1244cfecc950781db192eb22b2b73 | 22,697 | py | Python | lc_sqlalchemy_dbutils/manager.py | libcommon/sqlalchemy-dbutils-py | 39b2fb0fc51279a4d1c8a2b6fe250f8cff44d1b1 | [
"MIT"
] | null | null | null | lc_sqlalchemy_dbutils/manager.py | libcommon/sqlalchemy-dbutils-py | 39b2fb0fc51279a4d1c8a2b6fe250f8cff44d1b1 | [
"MIT"
] | null | null | null | lc_sqlalchemy_dbutils/manager.py | libcommon/sqlalchemy-dbutils-py | 39b2fb0fc51279a4d1c8a2b6fe250f8cff44d1b1 | [
"MIT"
] | null | null | null | ## -*- coding: UTF8 -*-
## manager.py
## Copyright (c) 2020 libcommon
##
## 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... | 40.821942 | 119 | 0.628233 |
9ec6363df3d16f3e41bfd55d3ca8396d912ca17a | 160 | py | Python | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | mazeexperiment/__main__.py | NickAnderegg/rpacr-mazeexperiment | 3afe6afb10b4ad61a169645e59f2ad0d0f92f565 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""mazeexperiment.__main__: executed when mazeexperiment directory is called as script."""
from .mazeexperiment import main
main()
| 20 | 90 | 0.71875 |
9ec70101de03b36989296a10649d2dea72a92c80 | 1,608 | py | Python | kafka_demo_1/producer.py | Aguinore/udemy_kafka_demo | 5f8383e1381dba2ddc0fc656b3cdc66b98258aad | [
"MIT"
] | null | null | null | kafka_demo_1/producer.py | Aguinore/udemy_kafka_demo | 5f8383e1381dba2ddc0fc656b3cdc66b98258aad | [
"MIT"
] | null | null | null | kafka_demo_1/producer.py | Aguinore/udemy_kafka_demo | 5f8383e1381dba2ddc0fc656b3cdc66b98258aad | [
"MIT"
] | null | null | null | from tweepy import StreamListener, OAuthHandler, Stream
from configs import Configs
import sys
configs = Configs()
producer = None
try:
producer = create_kafka_producer()
client = create_twitter_client(producer, configs)
client.filter(track=configs.twitter_topics)
finally:
exit_gracefully(produc... | 26.8 | 88 | 0.697139 |
9ec74c2b027410af0c055e866b7e76cb8dc5f04e | 1,717 | py | Python | demo/examples/stability/advection_d2q4.py | bgraille/pylbm | fd4419933e05b85be364232fddedfcb4f7275e1f | [
"BSD-3-Clause"
] | 106 | 2016-09-13T07:19:17.000Z | 2022-03-19T13:41:55.000Z | demo/examples/stability/advection_d2q4.py | gouarin/pylbm | fd4419933e05b85be364232fddedfcb4f7275e1f | [
"BSD-3-Clause"
] | 53 | 2017-09-18T04:51:19.000Z | 2022-01-19T21:36:23.000Z | demo/examples/stability/advection_d2q4.py | gouarin/pylbm | fd4419933e05b85be364232fddedfcb4f7275e1f | [
"BSD-3-Clause"
] | 33 | 2016-06-17T13:21:17.000Z | 2021-11-11T16:57:46.000Z |
"""
Stability analysis of the
D2Q4 solver for the advection equation
d_t(u) + c_x d_x(u) + c_y d_y(u) = 0
"""
import sympy as sp
import pylbm
# pylint: disable=invalid-name
# symbolic variables
U, X, Y = sp.symbols('U, X, Y')
# symbolic parameters
LA, CX, CY = sp.symbols('lambda, cx, cy', constants=True)
S_... | 20.939024 | 58 | 0.438556 |
9ec7841a173dc4c19d7dac5f98e4c9ddedd5460c | 157 | py | Python | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 7 | 2019-06-10T12:27:25.000Z | 2021-07-23T16:36:04.000Z | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 12 | 2017-05-28T10:59:31.000Z | 2021-05-17T20:11:00.000Z | glimix_core/_util/_array.py | Horta/limix-inference | 1ba102fc544f8d307412d361b574da9d4c166f8e | [
"MIT"
] | 5 | 2017-08-27T20:13:45.000Z | 2022-02-14T06:33:14.000Z | from numpy import reshape
| 15.7 | 53 | 0.611465 |
9ec859c40962ecf3e9c555e76fd3db0d87f04e0f | 3,386 | py | Python | src/tests/component/test_engine_manager.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 8 | 2020-05-12T18:08:52.000Z | 2021-12-27T06:11:00.000Z | src/tests/component/test_engine_manager.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 4 | 2020-05-13T16:07:49.000Z | 2020-06-30T18:47:14.000Z | src/tests/component/test_engine_manager.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 3 | 2020-05-16T19:57:57.000Z | 2020-11-01T08:43:31.000Z | # -*- coding: utf-8 -*-
# *******************************************************
# Copyright (c) VMware, Inc. 2020-2021. All Rights Reserved.
# SPDX-License-Identifier: MIT
# *******************************************************
# *
# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
# * WARRANTIES OR C... | 30.781818 | 107 | 0.672475 |
9ec95a1a1ec287a29e316037c8a1f39e97c4bff8 | 97 | py | Python | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | null | null | null | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | 6 | 2020-05-20T15:29:55.000Z | 2021-09-08T02:02:43.000Z | funolympics/apps.py | codeema/Yokiyo | 2e710bca487ee393784c116b7db2db7337f73d40 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16.166667 | 35 | 0.773196 |
9eca8cb06280c8af6786e7a410286dc58b44dac0 | 5,734 | py | Python | src/gt4sd/algorithms/generation/polymer_blocks/core.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | null | null | null | src/gt4sd/algorithms/generation/polymer_blocks/core.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | null | null | null | src/gt4sd/algorithms/generation/polymer_blocks/core.py | hhhsu0825/gt4sd-core | 4a1fe9da58d2f33bba2fba64604427e037ad7a46 | [
"MIT"
] | null | null | null | """PaccMann vanilla generator trained on polymer building blocks (catalysts/monomers)."""
import logging
import os
from dataclasses import field
from typing import ClassVar, Dict, Optional, TypeVar
from ....domains.materials import SmallMolecule, validate_molecules
from ....exceptions import InvalidItem
from ....trai... | 35.614907 | 108 | 0.646495 |
9ecbaf805798824811c8f44248c90470a6ab1527 | 4,458 | py | Python | src/form/panel/MultiPanel.py | kaorin/vmd_sizing | e609299a0acaa17bd34487314b05bab6af6819d8 | [
"MIT"
] | 32 | 2019-05-05T13:08:51.000Z | 2022-03-11T07:13:27.000Z | src/form/panel/MultiPanel.py | kaorin/vmd_sizing | e609299a0acaa17bd34487314b05bab6af6819d8 | [
"MIT"
] | 3 | 2019-07-13T03:06:15.000Z | 2021-11-03T10:30:15.000Z | src/form/panel/MultiPanel.py | kaorin/vmd_sizing | e609299a0acaa17bd34487314b05bab6af6819d8 | [
"MIT"
] | 11 | 2019-07-15T17:49:09.000Z | 2022-03-20T10:40:27.000Z | # -*- coding: utf-8 -*-
#
import wx
import wx.lib.newevent
from form.panel.BasePanel import BasePanel
from form.parts.SizingFileSet import SizingFileSet
from module.MMath import MRect, MVector3D, MVector4D, MQuaternion, MMatrix4x4 # noqa
from utils import MFileUtils # noqa
from utils.MLogger import MLogger # noqa
log... | 42.056604 | 136 | 0.680126 |
9ecd3fdffb0348d1335d2b0ee06d51e7c7681296 | 1,261 | py | Python | androgui.py | nawfling/androguard | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | 1 | 2019-03-29T19:24:23.000Z | 2019-03-29T19:24:23.000Z | androgui.py | adiltirur/malware_classification | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | null | null | null | androgui.py | adiltirur/malware_classification | 67b992ce0feeeb01bc69a99257916487689c3bcf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Androguard Gui"""
import argparse
import os
import sys
from androguard.core import androconf
from androguard.gui.mainwindow import MainWindow
from PyQt5 import QtWidgets, QtGui
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Androguard GUI")
parser.add_argum... | 31.525 | 109 | 0.716891 |
9ecd99d19c3e1460adaaef7fa6dcf5ae53718429 | 2,551 | py | Python | python-trunk/sfapi2/sflib/ZSI/wstools/XMLname.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | python-trunk/sfapi2/sflib/ZSI/wstools/XMLname.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | python-trunk/sfapi2/sflib/ZSI/wstools/XMLname.py | raychorn/svn_molten-magma | 8aa2ff2340707eecae6514943e86f5afba9cd54a | [
"CC0-1.0"
] | null | null | null | """Translate strings to and from SOAP 1.2 XML name encoding
Implements rules for mapping application defined name to XML names
specified by the w3 SOAP working group for SOAP version 1.2 in
Appendix A of "SOAP Version 1.2 Part 2: Adjuncts", W3C Working Draft
17, December 2001, <http://www.w3.org/TR/soap12-part2/#... | 28.662921 | 79 | 0.547236 |
9ecf156b5761ad136db575bc3923db3ea214ba15 | 5,939 | py | Python | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | mmtbx/validation/regression/tst_restraints.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z |
from __future__ import absolute_import, division, print_function
from libtbx.utils import null_out
from libtbx import easy_pickle
from six.moves import cStringIO as StringIO
if (__name__ == "__main__"):
exercise_simple()
print("OK")
| 51.198276 | 79 | 0.506651 |
9ecfe7e3194f0f7656e10dd2b39c230900905bf9 | 887 | py | Python | Python/repeated-dna-sequences.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | Python/repeated-dna-sequences.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | Python/repeated-dna-sequences.py | sm2774us/leetcode_interview_prep_2021 | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | [
"Fair"
] | null | null | null | # Time: O(n)
# Space: O(n)
import collections
| 25.342857 | 79 | 0.476888 |
9ecff0d2def72853bb2077007cb31a53e1e71834 | 231 | py | Python | recipe/app.py | Udayan-Coding/examples | 720515bf614f4edd08c734cc5a708d8a2618522d | [
"MIT"
] | 1 | 2021-01-04T17:17:14.000Z | 2021-01-04T17:17:14.000Z | recipe/app.py | Udayan-Coding/examples | 720515bf614f4edd08c734cc5a708d8a2618522d | [
"MIT"
] | null | null | null | recipe/app.py | Udayan-Coding/examples | 720515bf614f4edd08c734cc5a708d8a2618522d | [
"MIT"
] | 1 | 2021-01-31T11:10:44.000Z | 2021-01-31T11:10:44.000Z | from flask import Flask, render_template, request
app = Flask(__name__)
| 19.25 | 53 | 0.709957 |
9ed032bb75772e44674a7c37bb30bc62c636bc41 | 3,695 | py | Python | step2.py | mosheliv/tfcollab1 | 50da5683fb40a50cb957aeca2d28bc9f72440813 | [
"MIT"
] | null | null | null | step2.py | mosheliv/tfcollab1 | 50da5683fb40a50cb957aeca2d28bc9f72440813 | [
"MIT"
] | null | null | null | step2.py | mosheliv/tfcollab1 | 50da5683fb40a50cb957aeca2d28bc9f72440813 | [
"MIT"
] | null | null | null | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
from __future__ i... | 32.991071 | 96 | 0.700677 |
9ed0bf65b8f404e11c189c592c88427ef28a69fc | 685 | py | Python | lh_lib/sensors/esp32/touch.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | lh_lib/sensors/esp32/touch.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | lh_lib/sensors/esp32/touch.py | lh70/s-connect-python | 5a4ca17690ec700b36faf69ea744c514f532cc48 | [
"Apache-2.0"
] | null | null | null | from machine import Pin
from lh_lib.sensors.sensor import AbstractSensor
| 28.541667 | 130 | 0.636496 |
9ed2d77b6c8c12c27e466fb716c2e65ea3ea3aaa | 2,579 | py | Python | squeeze_and_excitation_networks/datasets/data_loader.py | younnggsuk/CV-Paper-Implementation | fecd67d3f216872976f9b38445ce1c1f9ef1ac02 | [
"MIT"
] | 4 | 2021-06-03T13:56:51.000Z | 2021-11-05T06:22:25.000Z | densely_connected_convolutional_networks/datasets/data_loader.py | younnggsuk/CV-Paper-Implementation | fecd67d3f216872976f9b38445ce1c1f9ef1ac02 | [
"MIT"
] | null | null | null | densely_connected_convolutional_networks/datasets/data_loader.py | younnggsuk/CV-Paper-Implementation | fecd67d3f216872976f9b38445ce1c1f9ef1ac02 | [
"MIT"
] | 1 | 2022-03-28T09:34:03.000Z | 2022-03-28T09:34:03.000Z | import os
import cv2
import albumentations as A
from albumentations.pytorch import ToTensorV2
from torch.utils.data import Dataset, DataLoader
from sklearn.model_selection import train_test_split
__all__ = ['CatDogDataset', 'fetch_dataloader']
| 29.643678 | 83 | 0.579294 |
9ed44c7c52a922019ce69deffde3525039c1362a | 4,203 | py | Python | seq2seq_utils.py | mumbihere/summarizer | c230115c7d2d3bb659e9a0e402266178743f8de6 | [
"MIT"
] | null | null | null | seq2seq_utils.py | mumbihere/summarizer | c230115c7d2d3bb659e9a0e402266178743f8de6 | [
"MIT"
] | null | null | null | seq2seq_utils.py | mumbihere/summarizer | c230115c7d2d3bb659e9a0e402266178743f8de6 | [
"MIT"
] | null | null | null | from keras.preprocessing.text import text_to_word_sequence
from keras.models import Sequential
from keras.layers import Activation, TimeDistributed, Dense, RepeatVector, recurrent, Embedding
from keras.layers.recurrent import LSTM
from keras.optimizers import Adam, RMSprop
from nltk import FreqDist
import numpy as np
i... | 39.650943 | 169 | 0.664287 |
9ed4b01964cfce5140c8270d443eb2c516032d63 | 2,830 | py | Python | SAMAE/data/__init__.py | Lisa-pa/SAMAE | 8d52fd6f8c2634c82f2071233e9796ea322f6360 | [
"MIT"
] | null | null | null | SAMAE/data/__init__.py | Lisa-pa/SAMAE | 8d52fd6f8c2634c82f2071233e9796ea322f6360 | [
"MIT"
] | 4 | 2021-03-20T09:31:02.000Z | 2022-03-12T00:51:19.000Z | SAMAE/data/__init__.py | Lisa-pa/AponeurosesDetection | 8d52fd6f8c2634c82f2071233e9796ea322f6360 | [
"MIT"
] | null | null | null |
"""Standard test images.
"""
import os
from skimage.io import imread
data_dir = os.path.abspath(os.path.dirname(__file__))
__all__ = ['data_dir', 'circle', 'skmuscimg']
def _load(f, as_gray=False):
"""Load an image file located in the data directory.
Parameters
----------
f : string
F... | 28.877551 | 114 | 0.621908 |
9ed4c95b11ddd761bdc51c8d9a831201ff7973eb | 1,080 | py | Python | pandas_support/test_pandas_support.py | quanbingDG/sharper | 4cd5c6b3238d5e430d5986829cc4e0bb47ab3dff | [
"MIT"
] | null | null | null | pandas_support/test_pandas_support.py | quanbingDG/sharper | 4cd5c6b3238d5e430d5986829cc4e0bb47ab3dff | [
"MIT"
] | 2 | 2021-01-13T03:39:15.000Z | 2021-01-19T08:50:18.000Z | pandas_support/test_pandas_support.py | quanbingDG/sharper | 4cd5c6b3238d5e430d5986829cc4e0bb47ab3dff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2020/11/9 9:13
# @Author : quanbing
# @Email : quanbinks@sina.com
import pandas as pd
import numpy as np
from unittest import TestCase
from pandas_support import PandasSupport as PS
# @File : test_pandas_support.py
| 38.571429 | 99 | 0.655556 |
9ed4d88c4f6045e4df06f3ac9733b88b158d09a9 | 245 | py | Python | 08-About_scrapy/douban/main.py | jiaxiaochu/spider | 4b0f751f76a31556a91dea719873cf2979e4be94 | [
"MIT"
] | null | null | null | 08-About_scrapy/douban/main.py | jiaxiaochu/spider | 4b0f751f76a31556a91dea719873cf2979e4be94 | [
"MIT"
] | 1 | 2020-08-27T10:25:38.000Z | 2020-08-27T10:25:38.000Z | 08-About_scrapy/douban/main.py | jiaxiaochu/spider | 4b0f751f76a31556a91dea719873cf2979e4be94 | [
"MIT"
] | null | null | null | # !/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
# -*- coding:utf-8 -*-
# @Author : Jiazhixiang
# cmdline,
from scrapy import cmdline
# executescrapy
cmdline.execute(['scrapy', 'crawl', 'douban'])
| 24.5 | 64 | 0.726531 |
9ed556610d4e386e3f7c1552b11e15722ee31053 | 1,125 | py | Python | DynamicProgramming/longestIncreasingSubsequence.py | suyash248/data_structures | 41a732cebf791ed63edbce10329251f03b763ccf | [
"Apache-2.0"
] | 7 | 2017-12-13T05:54:29.000Z | 2022-03-25T09:10:59.000Z | DynamicProgramming/longestIncreasingSubsequence.py | suyash248/data_structures | 41a732cebf791ed63edbce10329251f03b763ccf | [
"Apache-2.0"
] | null | null | null | DynamicProgramming/longestIncreasingSubsequence.py | suyash248/data_structures | 41a732cebf791ed63edbce10329251f03b763ccf | [
"Apache-2.0"
] | 4 | 2019-05-22T02:51:56.000Z | 2021-05-23T10:49:57.000Z | from Array import empty_1d_array
"""
input array : [10, 22, 9, 33, 21, 50, 41, 60]
# Element at each index `i` is representing length of longest LIS from index 0 to i in input array.
output array: [1, 2, 1, 3, 2, 4, 4, 5]
"""
# Time complexity: O(n^2)
# Space complexity: O(n)
if __name__ == '__main__':
... | 36.290323 | 99 | 0.543111 |
9ed6cf9a0648712f69e8e03077835798f4836842 | 4,318 | py | Python | venv/Lib/site-packages/gevent/backdoor.py | Kiiwi/Syssel | 83705e3fd0edf40f09df950d5ce91c95586573f5 | [
"BSD-3-Clause"
] | null | null | null | venv/Lib/site-packages/gevent/backdoor.py | Kiiwi/Syssel | 83705e3fd0edf40f09df950d5ce91c95586573f5 | [
"BSD-3-Clause"
] | null | null | null | venv/Lib/site-packages/gevent/backdoor.py | Kiiwi/Syssel | 83705e3fd0edf40f09df950d5ce91c95586573f5 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2009-2014, gevent contributors
# Based on eventlet.backdoor Copyright (c) 2005-2006, Bob Ippolito
from __future__ import print_function
import sys
from code import InteractiveConsole
from gevent import socket
from gevent.greenlet import Greenlet
from gevent.hub import PY3, PYPY, getcurrent
from gevent... | 29.175676 | 98 | 0.598194 |
9ed839d6a98ae914dcbccc4b145b5eaa923e4f41 | 7,385 | py | Python | spark/par_decompress_audio.py | droyston/spectralize | 572770e7358acc3ec433470659759c17453409f2 | [
"MIT"
] | null | null | null | spark/par_decompress_audio.py | droyston/spectralize | 572770e7358acc3ec433470659759c17453409f2 | [
"MIT"
] | null | null | null | spark/par_decompress_audio.py | droyston/spectralize | 572770e7358acc3ec433470659759c17453409f2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 17 16:12:56 2020
@author: dylanroyston
"""
# import/configure packages
import numpy as np
import pandas as pd
#import pyarrow as pa
import librosa
import librosa.display
from pathlib import Path
#import Ipython.display as ipd
#import matplotlib.pyp... | 27.867925 | 90 | 0.59499 |
9eda27b08876015d63b9cfdc12be859142fbbd21 | 1,073 | py | Python | get_ip_list_ru_gov.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | get_ip_list_ru_gov.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | get_ip_list_ru_gov.py | gil9red/SimplePyScripts | c191ce08fbdeb29377639184579e392057945154 | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
"""
ip .
"""
import ipaddress
import sys
import requests
rs = requests.get('https://jarib.github.io/anon-history/RuGovEdits/ru/latest/ranges.json')
#
if not rs or not rs.json() or 'ranges' not in rs.json():
print(' ip ')
... | 22.354167 | 90 | 0.665424 |
9edc1088501805cae0cb1dc1f360911a6998aed9 | 1,337 | py | Python | test_collection.py | Rodrun/weatherguess | 468ae8f6484ee3e3e82262ae10d845fd2d9b4267 | [
"MIT"
] | null | null | null | test_collection.py | Rodrun/weatherguess | 468ae8f6484ee3e3e82262ae10d845fd2d9b4267 | [
"MIT"
] | null | null | null | test_collection.py | Rodrun/weatherguess | 468ae8f6484ee3e3e82262ae10d845fd2d9b4267 | [
"MIT"
] | null | null | null | import unittest
import requests
from collection import Collection
| 34.282051 | 145 | 0.635004 |
9edc4b896c4673af8ba61e91bf9ac87a555fe75f | 272 | py | Python | tests/bitwiseOperations/__init__.py | mgorzkowski/abn | 3a9ac6fb0cfe9d497b6d8f26373d2af3b6ff9860 | [
"MIT"
] | 4 | 2018-04-24T15:25:55.000Z | 2022-03-08T15:01:07.000Z | tests/bitwiseOperations/__init__.py | mgorzkowski/abn | 3a9ac6fb0cfe9d497b6d8f26373d2af3b6ff9860 | [
"MIT"
] | 2 | 2021-05-04T19:44:28.000Z | 2021-05-05T11:51:15.000Z | tests/bitwiseOperations/__init__.py | mgorzkowski/abn | 3a9ac6fb0cfe9d497b6d8f26373d2af3b6ff9860 | [
"MIT"
] | null | null | null | from . import nand_tests
from . import and_tests
from . import nor_tests
from . import not_tests
from . import or_tests
from . import xor_tests
from . import rotate_left_tests
from . import rotate_right_tests
from . import shift_left_tests
from . import shift_right_tests
| 24.727273 | 32 | 0.816176 |
9edd07604a3a97e4febf7283f02a7a1e61075cbb | 36,220 | py | Python | exot/util/misc.py | ETHZ-TEC/exot_eengine | 7b7ce6cb949e1b0a02e716b03f2f9af751713b29 | [
"BSD-3-Clause"
] | null | null | null | exot/util/misc.py | ETHZ-TEC/exot_eengine | 7b7ce6cb949e1b0a02e716b03f2f9af751713b29 | [
"BSD-3-Clause"
] | null | null | null | exot/util/misc.py | ETHZ-TEC/exot_eengine | 7b7ce6cb949e1b0a02e716b03f2f9af751713b29 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2015-2020, Swiss Federal Institute of Technology (ETH Zurich)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright... | 33.755825 | 158 | 0.592601 |
9ede197b4e22a537f288d32a4de554ea29c1ea06 | 1,222 | py | Python | 70_question/dynamic_programming/max_profit_with_k_transactions.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | 26 | 2019-06-07T05:29:47.000Z | 2022-03-19T15:32:27.000Z | 70_question/dynamic_programming/max_profit_with_k_transactions.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | null | null | null | 70_question/dynamic_programming/max_profit_with_k_transactions.py | alvinctk/google-tech-dev-guide | 9d7759bea1f44673c2de4f25a94b27368928a59f | [
"Apache-2.0"
] | 6 | 2019-10-10T06:39:28.000Z | 2020-05-12T19:50:55.000Z |
if __name__ == "__main__":
maxProfitWithKTransactions([5, 11, 3, 50, 60, 90], 2)
| 31.333333 | 136 | 0.56383 |
9edf6ecb3d424f1fd6e8e155154f4ecebc700938 | 4,149 | py | Python | main.py | rdmaulana/flask-smart-xls-clean | 8dde5b56c241312ab252964b159921acd6013839 | [
"MIT"
] | null | null | null | main.py | rdmaulana/flask-smart-xls-clean | 8dde5b56c241312ab252964b159921acd6013839 | [
"MIT"
] | null | null | null | main.py | rdmaulana/flask-smart-xls-clean | 8dde5b56c241312ab252964b159921acd6013839 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import io
import time
import uuid
from flask import Flask, render_template, request, redirect, url_for, Response, session, send_file, make_response, send_from_directory
from os.path import join, dirname, realpath
from werkzeug.wsgi import FileWrapper
app = Flask(__name__)
app.co... | 35.161017 | 134 | 0.612919 |
9edfa90d3388411fff4970296751427f8a1b76b6 | 257 | py | Python | 2_UNIXCommands/Exercise11.py | takeyoshinitta/NLP-100-Exercise | e77fb385fbbf50c8a8bdc47442db1421739ea5b6 | [
"MIT"
] | 3 | 2022-01-04T19:02:22.000Z | 2022-02-21T08:52:18.000Z | 2_UNIXCommands/Exercise11.py | takeyoshinitta/NLP-100-Exercise | e77fb385fbbf50c8a8bdc47442db1421739ea5b6 | [
"MIT"
] | null | null | null | 2_UNIXCommands/Exercise11.py | takeyoshinitta/NLP-100-Exercise | e77fb385fbbf50c8a8bdc47442db1421739ea5b6 | [
"MIT"
] | null | null | null | # 11. Replace tabs into spaces
# Replace every occurrence of a tab character into a space. Confirm the result by using sed, tr, or expand command.
with open('popular-names.txt') as f:
for line in f:
print(line.strip().replace("\t", " "))
| 36.714286 | 116 | 0.66537 |
9edfcae85303a4e73d41bdae85aeda75e4c87673 | 2,817 | py | Python | scripts/wapo/wapo_link_graph_from_mongo.py | feup-infolab/army-ant | 7b33120d5160f73d7a41a05e6336489c917fb75c | [
"BSD-3-Clause"
] | 5 | 2018-01-18T14:11:52.000Z | 2020-10-23T16:02:25.000Z | scripts/wapo/wapo_link_graph_from_mongo.py | feup-infolab/army-ant | 7b33120d5160f73d7a41a05e6336489c917fb75c | [
"BSD-3-Clause"
] | 10 | 2018-02-02T20:19:36.000Z | 2020-10-05T08:46:36.000Z | scripts/wapo/wapo_link_graph_from_mongo.py | feup-infolab/army-ant | 7b33120d5160f73d7a41a05e6336489c917fb75c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# wapo_link_graph_from_mongo.py
# Jos Devezas <joseluisdevezas@gmail.com>
# 2019-02-05
import logging
import sys
import warnings
import networkx as nx
from bs4 import BeautifulSoup
from pymongo import MongoClient
logging.basicConfig(
format='%(asctime)s wapo_link_graph_from_mongo: %(leve... | 26.083333 | 108 | 0.615903 |
9ee566ce8a227cbd2a762122ce0690fc72e66ca6 | 7,540 | py | Python | designScripts/vernierMask.py | smartalecH/BYUqot | 5b24759c4a100086937795a80d2eb6597e611819 | [
"MIT"
] | 5 | 2019-03-26T17:12:25.000Z | 2021-12-27T18:05:52.000Z | designScripts/vernierMask.py | smartalecH/BYUqot | 5b24759c4a100086937795a80d2eb6597e611819 | [
"MIT"
] | 5 | 2018-05-30T21:05:36.000Z | 2018-08-16T05:16:40.000Z | designScripts/vernierMask.py | smartalecH/BYUqot | 5b24759c4a100086937795a80d2eb6597e611819 | [
"MIT"
] | 5 | 2018-05-30T02:54:07.000Z | 2020-08-16T17:18:38.000Z | # ------------------------------------------------------------------ #
# vernierMask.py
# ------------------------------------------------------------------ #
#
# A mask design used to align the 3D printer to a silicon photonic chip
#
# ------------------------------------------------------------------ #
# VERSION HIST... | 35.233645 | 96 | 0.554377 |
9ee57d6363120b9d54a9902e2243f9122d20af71 | 4,810 | py | Python | src/core/serializers.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 17 | 2019-05-11T22:15:34.000Z | 2022-03-26T22:45:33.000Z | src/core/serializers.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 390 | 2019-05-23T10:48:57.000Z | 2021-12-17T21:01:43.000Z | src/core/serializers.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 40 | 2019-05-21T14:41:57.000Z | 2021-01-30T13:39:38.000Z | from django.contrib.auth import get_user_model
from rest_auth.registration.serializers import (
RegisterSerializer as BaseRegisterSerializer,
)
from rest_auth.registration.serializers import (
SocialLoginSerializer as BaseSocialLoginSerializer,
)
from rest_auth.serializers import LoginSerializer as BaseLoginSer... | 33.172414 | 88 | 0.677755 |
9ee5da5b7c789afc93423e16612fb9f6de97baba | 3,519 | py | Python | src/programy/brainfactory.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | null | null | null | src/programy/brainfactory.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | null | null | null | src/programy/brainfactory.py | motazsaad/fit-bot-fb-clt | 580477aa1ec91855b621d9ae276f2705962f6a87 | [
"MIT"
] | 4 | 2019-04-01T15:42:23.000Z | 2020-11-05T08:14:27.000Z | """
Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com
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, m... | 34.165049 | 127 | 0.680591 |
9ee68cd6efba5b094a83a85c60acb1031a826384 | 2,050 | py | Python | tools/docs/generate_api_rst.py | dcillera/envoy | cb54ba8eec26f768f8c1ae412113b07bacde7321 | [
"Apache-2.0"
] | 17,703 | 2017-09-14T18:23:43.000Z | 2022-03-31T22:04:17.000Z | tools/docs/generate_api_rst.py | dcillera/envoy | cb54ba8eec26f768f8c1ae412113b07bacde7321 | [
"Apache-2.0"
] | 15,957 | 2017-09-14T16:38:22.000Z | 2022-03-31T23:56:30.000Z | tools/docs/generate_api_rst.py | dcillera/envoy | cb54ba8eec26f768f8c1ae412113b07bacde7321 | [
"Apache-2.0"
] | 3,780 | 2017-09-14T18:58:47.000Z | 2022-03-31T17:10:47.000Z | import os
import shutil
import sys
import tarfile
if __name__ == "__main__":
main()
| 32.03125 | 96 | 0.642927 |
9ee7307b78f857465fe941638e5a41dd83ec835a | 15,792 | py | Python | src/wa_parser.py | ifly6/NS-WA-Authorboards | 57921457795306867844a29cdfce88bfcdd1c3f6 | [
"Apache-2.0"
] | null | null | null | src/wa_parser.py | ifly6/NS-WA-Authorboards | 57921457795306867844a29cdfce88bfcdd1c3f6 | [
"Apache-2.0"
] | null | null | null | src/wa_parser.py | ifly6/NS-WA-Authorboards | 57921457795306867844a29cdfce88bfcdd1c3f6 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 ifly6
import html
import io
import re
from datetime import datetime
from functools import cache
from typing import Tuple
import numpy as np
import pandas as pd
import requests
from bs4 import BeautifulSoup
from lxml import etree
from pytz import timezone
from ratelimit import limits, sleep_and_ret... | 38.705882 | 123 | 0.590109 |
9ee7fc2118d9db373e3131dcd7ab5c6417b15d3a | 5,191 | py | Python | conans/search/binary_html_table.py | matthiasng/conan | 634eadc319da928084633a344d42785edccb8d6c | [
"MIT"
] | 2 | 2019-01-09T10:01:29.000Z | 2019-01-09T10:01:31.000Z | conans/search/binary_html_table.py | matthiasng/conan | 634eadc319da928084633a344d42785edccb8d6c | [
"MIT"
] | 1 | 2019-01-09T10:09:41.000Z | 2019-01-09T10:09:41.000Z | conans/search/binary_html_table.py | matthiasng/conan | 634eadc319da928084633a344d42785edccb8d6c | [
"MIT"
] | null | null | null | import os
from collections import OrderedDict, defaultdict
from conans.model.ref import PackageReference
from conans.util.files import save
class Headers(object):
_preferred_ordering = ['os', 'arch', 'compiler', 'build_type']
def row(self, n_rows=2):
"""
Retrieve list of headers as a single... | 33.275641 | 98 | 0.571181 |
9eec590065dcf6f8cc85b4d213651d2aa3e487f2 | 1,140 | py | Python | irancovid-19.py | AmiiirCom/irancovid-19 | c8871830e9344c5bf17043c802195911127bc532 | [
"MIT"
] | null | null | null | irancovid-19.py | AmiiirCom/irancovid-19 | c8871830e9344c5bf17043c802195911127bc532 | [
"MIT"
] | null | null | null | irancovid-19.py | AmiiirCom/irancovid-19 | c8871830e9344c5bf17043c802195911127bc532 | [
"MIT"
] | null | null | null | from covid import Covid
import json
covid = Covid(source="worldometers")
covid.get_data()
iran_casses = covid.get_status_by_country_name("iran")
confirmed = iran_casses['confirmed']
new_cases = iran_casses['new_cases']
deaths = iran_casses['deaths']
recovered = iran_casses['recovered']
active = iran_casses['active']... | 30.810811 | 71 | 0.764035 |
9eec86a2c6579218afa159749612db5d5e43ce59 | 3,198 | py | Python | models/__init__.py | esentino/literate-doodle | 598533042602b989a4bdaa8778968c5f3ead3500 | [
"Apache-2.0"
] | null | null | null | models/__init__.py | esentino/literate-doodle | 598533042602b989a4bdaa8778968c5f3ead3500 | [
"Apache-2.0"
] | null | null | null | models/__init__.py | esentino/literate-doodle | 598533042602b989a4bdaa8778968c5f3ead3500 | [
"Apache-2.0"
] | 1 | 2019-09-11T21:27:37.000Z | 2019-09-11T21:27:37.000Z | # models/__init__.py
from clcrypto import password_hash
from psycopg2 import connect
def delete(self, cursor):
sql = "DELETE FROM Users WHERE id=%s"
cursor.execute(sql, (self.__id,))
self.__id = -1
return True
| 31.663366 | 92 | 0.581614 |
9eed09503a5541f18459a14cf6ef3617066817b6 | 4,124 | py | Python | crys3d/command_line/model_viewer.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | crys3d/command_line/model_viewer.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | crys3d/command_line/model_viewer.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
# LIBTBX_PRE_DISPATCHER_INCLUDE_SH export PHENIX_GUI_ENVIRONMENT=1
# LIBTBX_PRE_DISPATCHER_INCLUDE_SH export BOOST_ADAPTBX_FPE_DEFAULT=1
import cStringIO
from crys3d.wx_selection_editor import selection_editor_mixin
import wx
import libtbx.load_env
import sys, os, time
################... | 38.185185 | 78 | 0.707081 |
9eedb43deb24d2533fe70662a5b08fab696d08f6 | 500 | py | Python | Crypto/py3compat.py | eddiejessup/transcrypt | 1a5894a2c355e1b88626a2b195e132bd7e701981 | [
"MIT"
] | 14 | 2015-02-15T02:17:07.000Z | 2020-07-15T03:02:46.000Z | Crypto/py3compat.py | eddiejessup/Transcrypt | 1a5894a2c355e1b88626a2b195e132bd7e701981 | [
"MIT"
] | 12 | 2015-04-11T14:26:14.000Z | 2021-09-07T09:25:38.000Z | Crypto/py3compat.py | eddiejessup/Transcrypt | 1a5894a2c355e1b88626a2b195e132bd7e701981 | [
"MIT"
] | 4 | 2016-02-27T16:06:59.000Z | 2019-09-04T04:01:05.000Z | __revision__ = "$Id$"
from io import BytesIO
| 13.513514 | 38 | 0.542 |
9eedcf612c173937e475b9b20ab18a1677cc7feb | 2,758 | py | Python | verres/optim/schedule.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | verres/optim/schedule.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | verres/optim/schedule.py | csxeba/Verres | 04230d22b7791f84d86b9eb2272a6314a27580ed | [
"MIT"
] | null | null | null | from typing import Dict
import numpy as np
import tensorflow as tf
import verres as V
def factory(spec: dict) -> tf.optimizers.schedules.LearningRateSchedule:
name = spec.pop("name", "default")
if name.lower() in {"default", "constant"}:
scheduler = ConstantSchedule(float(spec["learning_rate"]))... | 32.069767 | 118 | 0.62074 |
9eeee0e6163243e2bcb3f1fbe4bb62fbc1fef478 | 4,865 | py | Python | JIG.py | mmg1/JIG | bc36ed013b5ba48e549a16151b9135e271d55055 | [
"MIT"
] | 28 | 2017-12-04T02:03:25.000Z | 2021-09-13T04:37:21.000Z | JIG.py | mmg1/JIG | bc36ed013b5ba48e549a16151b9135e271d55055 | [
"MIT"
] | 1 | 2018-01-20T21:13:56.000Z | 2018-01-20T21:13:56.000Z | JIG.py | NetSPI/JIG | bc36ed013b5ba48e549a16151b9135e271d55055 | [
"MIT"
] | 18 | 2018-01-08T13:40:29.000Z | 2022-02-20T17:10:57.000Z | import re
import sys
from itertools import izip as zip
import argparse
import requests
# argparse definitions
parser = argparse.ArgumentParser(description='Jira attack script')
parser.add_argument('URL', type=str , help='the URL of the Jira instance... ex. https://jira.organization.com/')
parser.add_argument(... | 39.233871 | 133 | 0.615211 |
9eef48e8177814194dd2d1510e39357b5d13bd02 | 4,383 | py | Python | run.py | SamChatfield/final-year-project | 9d1ae2cb3009ffbff89cb438cfcde855db8a53ac | [
"MIT"
] | null | null | null | run.py | SamChatfield/final-year-project | 9d1ae2cb3009ffbff89cb438cfcde855db8a53ac | [
"MIT"
] | null | null | null | run.py | SamChatfield/final-year-project | 9d1ae2cb3009ffbff89cb438cfcde855db8a53ac | [
"MIT"
] | null | null | null | import json
import string
from datetime import datetime
import deap
import numpy as np
import hmm
from discriminator import Discriminator
from ea import EA
import random_search
DEFAULT_PARAMS = {
# Discriminator CNN model
"model": "CNNModel3",
# Algorithm Parameters
"states": 5,
"symbols": 5,
... | 26.72561 | 98 | 0.6094 |
9ef2b9fdb256c9db58c16d3d792f230772a8e948 | 2,174 | py | Python | rrc_example_package/benchmark_rrc/tools/plot/exp_align_obj.py | wq13552463699/TriFinger_Research | 6ddfab4531cb4ba05a0fbb41227a734295dce378 | [
"BSD-3-Clause"
] | 12 | 2021-05-06T18:00:21.000Z | 2022-01-11T14:23:22.000Z | rrc_example_package/benchmark_rrc/tools/plot/exp_align_obj.py | wq13552463699/TriFinger_Research | 6ddfab4531cb4ba05a0fbb41227a734295dce378 | [
"BSD-3-Clause"
] | 3 | 2021-06-03T16:06:01.000Z | 2021-08-15T13:40:09.000Z | rrc_example_package/benchmark_rrc/tools/plot/exp_align_obj.py | wq13552463699/TriFinger_Research | 6ddfab4531cb4ba05a0fbb41227a734295dce378 | [
"BSD-3-Clause"
] | 4 | 2021-05-12T02:34:34.000Z | 2021-07-18T19:54:50.000Z | #!/usr/bin/env python3
'''
This code traverses a directories of evaluation log files and
record evaluation scores as well as plotting the results.
'''
import os
import argparse
import json
import copy
from shutil import copyfile
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from utils import... | 35.639344 | 110 | 0.689512 |
9ef2bd5f0fee2640fb7fcf65e291ea514c7f1058 | 286 | py | Python | test cases/common/64 custom header generator/makeheader.py | objectx/meson | c0f097c0c74551972f7ec2203cd960824984f058 | [
"Apache-2.0"
] | null | null | null | test cases/common/64 custom header generator/makeheader.py | objectx/meson | c0f097c0c74551972f7ec2203cd960824984f058 | [
"Apache-2.0"
] | null | null | null | test cases/common/64 custom header generator/makeheader.py | objectx/meson | c0f097c0c74551972f7ec2203cd960824984f058 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# NOTE: this file does not have the executable bit set. This tests that
# Meson can automatically parse shebang lines.
import sys
template = '#define RET_VAL %s\n'
output = template % (open(sys.argv[1]).readline().strip())
open(sys.argv[2], 'w').write(output)
| 26 | 71 | 0.713287 |
9ef42081bff35de1f92bff97bfccd08e32e6f3d8 | 395 | py | Python | studio_ghibli/movies/test_data.py | hbansal0122/studio_ghibli_project | 1a2df853f9d5088aa137f372ab0ee83ce8ba3667 | [
"MIT"
] | null | null | null | studio_ghibli/movies/test_data.py | hbansal0122/studio_ghibli_project | 1a2df853f9d5088aa137f372ab0ee83ce8ba3667 | [
"MIT"
] | null | null | null | studio_ghibli/movies/test_data.py | hbansal0122/studio_ghibli_project | 1a2df853f9d5088aa137f372ab0ee83ce8ba3667 | [
"MIT"
] | null | null | null | """ Test data"""
stub_films = [{
"id": "12345",
"title": "This is film one",
},{
"id": "23456",
"title": "This is film two",
}]
stub_poeple = [{
"name": "person 1",
"films": ["url/12345", "url/23456"]
},{
"name": "person 2",
"films": ["url/23456"]
},{
"name": "person 3",
"film... | 16.458333 | 39 | 0.463291 |
9ef4febad34c41f83b4899c15a9e9cfec2b40a27 | 236 | py | Python | data_converters/fsdbripper/create_new_db.py | osvaldolove/amiberry-api | 3310592d2411c69f7c225edb3e3907e6a5e6caf8 | [
"MIT"
] | null | null | null | data_converters/fsdbripper/create_new_db.py | osvaldolove/amiberry-api | 3310592d2411c69f7c225edb3e3907e6a5e6caf8 | [
"MIT"
] | null | null | null | data_converters/fsdbripper/create_new_db.py | osvaldolove/amiberry-api | 3310592d2411c69f7c225edb3e3907e6a5e6caf8 | [
"MIT"
] | 1 | 2018-08-22T21:55:26.000Z | 2018-08-22T21:55:26.000Z | import sqlite3
from constants import DESTINATION_DB
destination_connection = sqlite3.connect(DESTINATION_DB)
destination_cursor = destination_connection.cursor()
destination_cursor.execute('CREATE TABLE game(uuid, payload)')
| 26.222222 | 63 | 0.817797 |
9ef65f5bf372723d5444efb6cd95a0880cc13cef | 7,366 | py | Python | upvote/gae/shared/common/json_utils_test.py | cclauss/upvote | 9d526fec72690cde1575dbd32dacf68cbbab81d1 | [
"Apache-2.0"
] | null | null | null | upvote/gae/shared/common/json_utils_test.py | cclauss/upvote | 9d526fec72690cde1575dbd32dacf68cbbab81d1 | [
"Apache-2.0"
] | null | null | null | upvote/gae/shared/common/json_utils_test.py | cclauss/upvote | 9d526fec72690cde1575dbd32dacf68cbbab81d1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 33.481818 | 79 | 0.691827 |
9ef7f25002d6a0233c11be0350ae657d327330f8 | 3,728 | py | Python | app.py | YukiNagat0/Blog | 6f01d1a3e73f1f865b5d22dbdbb27a5acfb3e937 | [
"MIT"
] | 1 | 2021-06-24T17:48:37.000Z | 2021-06-24T17:48:37.000Z | app.py | YukiNagat0/Blog | 6f01d1a3e73f1f865b5d22dbdbb27a5acfb3e937 | [
"MIT"
] | null | null | null | app.py | YukiNagat0/Blog | 6f01d1a3e73f1f865b5d22dbdbb27a5acfb3e937 | [
"MIT"
] | null | null | null | from os import path
from typing import Union
from datetime import datetime
from flask import Flask, request, redirect, render_template
from flask_wtf import CSRFProtect
from werkzeug.utils import secure_filename
from data import db_session
from data.posts import Posts
from forms.edit_post_form import EditPostForm
... | 25.888889 | 117 | 0.668455 |
9ef839c4fcb13ab1bd28852911644c75dc9c3837 | 48,320 | py | Python | neon/backends/gpu.py | kashif/neon | d4d8ed498ee826b67f5fda1746d2d65c8ce613d2 | [
"Apache-2.0"
] | 1 | 2018-07-17T16:54:58.000Z | 2018-07-17T16:54:58.000Z | neon/backends/gpu.py | kashif/neon | d4d8ed498ee826b67f5fda1746d2d65c8ce613d2 | [
"Apache-2.0"
] | null | null | null | neon/backends/gpu.py | kashif/neon | d4d8ed498ee826b67f5fda1746d2d65c8ce613d2 | [
"Apache-2.0"
] | 2 | 2016-06-09T13:05:00.000Z | 2021-02-18T14:18:15.000Z | # ----------------------------------------------------------------------------
# Copyright 2014 Nervana Systems Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | 39.736842 | 79 | 0.556126 |
9ef85b894eb9c57e729d7cdbf2e496c34efcf07f | 23,685 | py | Python | test/test_automl/test_automl.py | ihounie/auto-sklearn | 6a72f0df60b0c66ad75b0100d8d22c07da6217bb | [
"BSD-3-Clause"
] | null | null | null | test/test_automl/test_automl.py | ihounie/auto-sklearn | 6a72f0df60b0c66ad75b0100d8d22c07da6217bb | [
"BSD-3-Clause"
] | null | null | null | test/test_automl/test_automl.py | ihounie/auto-sklearn | 6a72f0df60b0c66ad75b0100d8d22c07da6217bb | [
"BSD-3-Clause"
] | 1 | 2021-04-06T09:38:12.000Z | 2021-04-06T09:38:12.000Z | # -*- encoding: utf-8 -*-
import os
import pickle
import sys
import time
import glob
import unittest
import unittest.mock
import numpy as np
import pandas as pd
import sklearn.datasets
from smac.scenario.scenario import Scenario
from smac.facade.roar_facade import ROAR
from autosklearn.util.backend import Backend
fro... | 39.343854 | 94 | 0.609246 |
9ef87644a467b7a43c75ac4ae95f1780dab19950 | 3,934 | py | Python | algopy/base_type.py | arthus701/algopy | 1e2430f803289bbaed6bbdff6c28f98d7767835c | [
"Unlicense"
] | 54 | 2015-03-05T13:38:08.000Z | 2021-11-29T11:54:48.000Z | algopy/base_type.py | arthus701/algopy | 1e2430f803289bbaed6bbdff6c28f98d7767835c | [
"Unlicense"
] | 7 | 2016-04-06T11:25:00.000Z | 2020-11-09T13:53:20.000Z | algopy/base_type.py | arthus701/algopy | 1e2430f803289bbaed6bbdff6c28f98d7767835c | [
"Unlicense"
] | 13 | 2015-01-17T17:05:56.000Z | 2021-08-05T01:13:16.000Z | """
This implements an abstrace base class Ring .
Rationale:
Goal is to separate the datatype specification from the algorithms and containers for the following reasons:
1) It allows to directly use the algorithms *without* overhead. E.g. calling mul(z.data, x.data, y.data)
has much le... | 35.125 | 113 | 0.630147 |
9ef906903676953e2a8a6d553c8fc0e08426873c | 556 | py | Python | estrutura-repeticao-while/ex062.py | TacilioRodriguez/Python | 0b98dc8336e014046c579b387013b2871024e3d0 | [
"Unlicense"
] | null | null | null | estrutura-repeticao-while/ex062.py | TacilioRodriguez/Python | 0b98dc8336e014046c579b387013b2871024e3d0 | [
"Unlicense"
] | null | null | null | estrutura-repeticao-while/ex062.py | TacilioRodriguez/Python | 0b98dc8336e014046c579b387013b2871024e3d0 | [
"Unlicense"
] | null | null | null | """
Melhore o Desafio 061, perguntando para o usurio se ele quer mostrar mais alguns termos.
O programa encerra quando ele disser que quer mostrar 0 termos.
"""
primeiro = int(input('Digite o termo: '))
razao = int(input('Digite a razo: '))
termo = primeiro
cont = 1
total = 0
mais = 10
while mais != 0:
total = tot... | 27.8 | 89 | 0.633094 |
9ef958e7d381e2efbcf979fbddc497610f9580d1 | 3,487 | py | Python | Udemy_PythonBootcamp/Sec15_WebScraping.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | Udemy_PythonBootcamp/Sec15_WebScraping.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | Udemy_PythonBootcamp/Sec15_WebScraping.py | gonzalosc2/LearningPython | 0210d4cbbb5e154f12007b8e8f825fd3d0022be0 | [
"MIT"
] | null | null | null | ####################################
# author: Gonzalo Salazar
# course: 2020 Complete Python Bootcamps: From Zero to Hero in Python
# purpose: lecture notes
# description: Section 15 - Web Scraping
# other: N/A
####################################
# RULES
# 1. always try to get permission before scraping, otherwise I... | 32.287037 | 135 | 0.694006 |
9ef987b5b2fc09a91874ef390e457aed66cdf6c0 | 10,220 | py | Python | anchore_engine/analyzers/modules/33_binary_packages.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | null | null | null | anchore_engine/analyzers/modules/33_binary_packages.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | null | null | null | anchore_engine/analyzers/modules/33_binary_packages.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys
import os
import re
import json
import traceback
import pkg_resources
import tarfile
from collections import OrderedDict
import anchore_engine.analyzers.utils, anchore_engine.utils
analyzer_name = "package_list"
try:
config = anchore_engine.analyzers.utils.init_... | 41.044177 | 148 | 0.545108 |
9ef9c33373ed6286394fc6556d56b0671f5ed0ac | 20,610 | py | Python | SF-home-price-prediction/src/preparation.py | apthomas/SF-home-price-prediction | 448dac93ef26022bc81fab4665a12f592f9556a1 | [
"MIT"
] | null | null | null | SF-home-price-prediction/src/preparation.py | apthomas/SF-home-price-prediction | 448dac93ef26022bc81fab4665a12f592f9556a1 | [
"MIT"
] | null | null | null | SF-home-price-prediction/src/preparation.py | apthomas/SF-home-price-prediction | 448dac93ef26022bc81fab4665a12f592f9556a1 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import csv
import urllib.request
import json
from datetime import datetime
from datetime import timedelta
from sklearn.preprocessing import MinMaxScaler
import web_scrapers
import os
def wrangle_real_estate_headers(df):
'''
run before joining dataframes so keys ma... | 51.654135 | 214 | 0.655313 |
9ef9d0cb1ac73ebdbfd64d7d2d0514517d257322 | 734 | py | Python | src/python/director/builtin/plugins/measurement_tool/plugin.py | afdaniele/director | 845ba027f9009803fcf77f44874f2ab9d7ab72e3 | [
"BSD-3-Clause"
] | null | null | null | src/python/director/builtin/plugins/measurement_tool/plugin.py | afdaniele/director | 845ba027f9009803fcf77f44874f2ab9d7ab72e3 | [
"BSD-3-Clause"
] | null | null | null | src/python/director/builtin/plugins/measurement_tool/plugin.py | afdaniele/director | 845ba027f9009803fcf77f44874f2ab9d7ab72e3 | [
"BSD-3-Clause"
] | null | null | null | from director.devel.plugin import GenericPlugin
from director.fieldcontainer import FieldContainer
from .lib import measurementpanel
from PythonQt import QtCore
| 25.310345 | 77 | 0.741144 |
9efa004ed72e268641173fcd54de72edaac3595f | 4,858 | py | Python | jupyter_book/yaml.py | akhmerov/jupyter-book | 06b8134af1266655717df474438bed2569b14efe | [
"BSD-3-Clause"
] | 1 | 2021-04-26T03:21:49.000Z | 2021-04-26T03:21:49.000Z | jupyter_book/yaml.py | akhmerov/jupyter-book | 06b8134af1266655717df474438bed2569b14efe | [
"BSD-3-Clause"
] | 1 | 2020-08-26T08:27:27.000Z | 2020-08-27T18:00:42.000Z | jupyter_book/yaml.py | phaustin/jupyter-book | 674b222d44cc1acb858804782cee4549eef03fb1 | [
"BSD-3-Clause"
] | null | null | null | """A small sphinx extension to let you configure a site with YAML metadata."""
from pathlib import Path
# Transform a "Jupyter Book" YAML configuration file into a Sphinx configuration file.
# This is so that we can choose more user-friendly words for things than Sphinx uses.
# e.g., 'logo' instead of 'html_logo'.
# ... | 37.083969 | 87 | 0.628036 |
9efb34b3c08bdbb3ec7a611587c6c1763f510bd0 | 5,759 | py | Python | ScriptedAgent.py | RaphaelRoyerRivard/Supervised-End-to-end-Weight-sharing-for-StarCraft-II | 17171fc95c8385920ab7cab80bd4681ce1bff799 | [
"Apache-2.0"
] | null | null | null | ScriptedAgent.py | RaphaelRoyerRivard/Supervised-End-to-end-Weight-sharing-for-StarCraft-II | 17171fc95c8385920ab7cab80bd4681ce1bff799 | [
"Apache-2.0"
] | null | null | null | ScriptedAgent.py | RaphaelRoyerRivard/Supervised-End-to-end-Weight-sharing-for-StarCraft-II | 17171fc95c8385920ab7cab80bd4681ce1bff799 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Tony Beltramelli - www.tonybeltramelli.com'
# scripted agents taken from PySC2, credits to DeepMind
# https://github.com/deepmind/pysc2/blob/master/pysc2/agents/scripted_agent.py
import numpy as np
import uuid
from pysc2.agents import base_agent
from pysc2.lib import actions
from pysc2.lib import featur... | 39.445205 | 133 | 0.576489 |
9efb77347037fbe157767ce33cce2fb416895aa6 | 5,602 | py | Python | benchmark/test_tpch.py | serverless-analytics/dask-distributed-vanilla | b4b135ee956dbf9e64d10712558a88eafa080675 | [
"BSD-3-Clause"
] | null | null | null | benchmark/test_tpch.py | serverless-analytics/dask-distributed-vanilla | b4b135ee956dbf9e64d10712558a88eafa080675 | [
"BSD-3-Clause"
] | null | null | null | benchmark/test_tpch.py | serverless-analytics/dask-distributed-vanilla | b4b135ee956dbf9e64d10712558a88eafa080675 | [
"BSD-3-Clause"
] | null | null | null | import time
import sys
import dask
from dask.distributed import (
wait,
futures_of,
Client,
)
from tpch import loaddata, queries
#from benchmarks import utils
# Paths or URLs to the TPC-H tables.
#table_paths = {
# 'CUSTOMER': 'hdfs://bu-23-115:9000/tpch/customer.tbl',
# 'LINEITEM': 'hdfs://bu-... | 35.0125 | 87 | 0.593181 |
9efc2be79705e76de2137bab964886217cb24983 | 3,582 | py | Python | pika/adapters/tornado_connection.py | hugovk/pika | 03542ef616a2a849e8bfb0845427f50e741ea0c6 | [
"BSD-3-Clause"
] | 1 | 2019-08-28T10:10:56.000Z | 2019-08-28T10:10:56.000Z | pika/adapters/tornado_connection.py | goupper/pika | e2f26db4f41ac7ea6bdc50964a766472460dce4a | [
"BSD-3-Clause"
] | null | null | null | pika/adapters/tornado_connection.py | goupper/pika | e2f26db4f41ac7ea6bdc50964a766472460dce4a | [
"BSD-3-Clause"
] | null | null | null | """Use pika with the Tornado IOLoop
"""
import logging
from tornado import ioloop
from pika.adapters.utils import nbio_interface, selector_ioloop_adapter
from pika.adapters import base_connection
LOGGER = logging.getLogger(__name__)
| 38.934783 | 80 | 0.634283 |
9efe36b7df749158058e0d954855a509a9ce6a8b | 7,057 | py | Python | tests/library/test_ceph_volume_simple_activate.py | u-kosmonaft-u/ceph-ansible | 14c472707c165f77def05826b22885480af3e8f9 | [
"Apache-2.0"
] | 1,570 | 2015-01-03T08:38:22.000Z | 2022-03-31T09:24:37.000Z | tests/library/test_ceph_volume_simple_activate.py | u-kosmonaft-u/ceph-ansible | 14c472707c165f77def05826b22885480af3e8f9 | [
"Apache-2.0"
] | 4,964 | 2015-01-05T10:41:44.000Z | 2022-03-31T07:59:49.000Z | tests/library/test_ceph_volume_simple_activate.py | u-kosmonaft-u/ceph-ansible | 14c472707c165f77def05826b22885480af3e8f9 | [
"Apache-2.0"
] | 1,231 | 2015-01-04T11:48:16.000Z | 2022-03-31T12:15:28.000Z | from mock.mock import patch
import os
import pytest
import ca_test_common
import ceph_volume_simple_activate
fake_cluster = 'ceph'
fake_container_binary = 'podman'
fake_container_image = 'quay.ceph.io/ceph/daemon:latest'
fake_id = '42'
fake_uuid = '0c4a7eca-0c2a-4c12-beff-08a80f064c52'
fake_path = '/etc/ceph/osd/{}-{}... | 40.325714 | 132 | 0.621794 |
9effc7a4839375e16dbdf0896beb3c70b1e21234 | 154 | py | Python | setup.py | Minterious/minter-monitoring | 1a2216be57dec491a970950c3b9cfc72cea228c2 | [
"MIT"
] | 2 | 2019-08-24T12:15:20.000Z | 2019-08-24T12:19:07.000Z | setup.py | Minterious/minter-monitoring | 1a2216be57dec491a970950c3b9cfc72cea228c2 | [
"MIT"
] | null | null | null | setup.py | Minterious/minter-monitoring | 1a2216be57dec491a970950c3b9cfc72cea228c2 | [
"MIT"
] | 1 | 2019-09-19T21:16:25.000Z | 2019-09-19T21:16:25.000Z | import setuptools
setuptools.setup(
name='mintermonitoring',
version='1.0.0',
packages=setuptools.find_packages(include=['mintermonitoring'])
)
| 19.25 | 66 | 0.746753 |
7300890aeb852238c2f50f2aafaca22c70ba3108 | 158 | py | Python | Python/Back_solve_python/back_joon/StringArray/P10808.py | skyriv213/Studyriv | 6dfd3c52a873cd3bdb018280d81aec8bdcf61e6e | [
"MIT"
] | null | null | null | Python/Back_solve_python/back_joon/StringArray/P10808.py | skyriv213/Studyriv | 6dfd3c52a873cd3bdb018280d81aec8bdcf61e6e | [
"MIT"
] | null | null | null | Python/Back_solve_python/back_joon/StringArray/P10808.py | skyriv213/Studyriv | 6dfd3c52a873cd3bdb018280d81aec8bdcf61e6e | [
"MIT"
] | null | null | null | s = input()
num = [0] * 26
for i in range(len(s)):
num[ord(s[i])-97] += 1
for i in num:
print(i, end = " ")
if i == len(num)-1:
print(i)
| 15.8 | 26 | 0.455696 |
73009bb6994a5ff455eca19ffc1b698f9cf1d1d2 | 600 | py | Python | src/reliefcpp/utils.py | ferrocactus/reliefcpp | 41705a9e5c749e700f83f9fe9f352457ae57426d | [
"MIT"
] | null | null | null | src/reliefcpp/utils.py | ferrocactus/reliefcpp | 41705a9e5c749e700f83f9fe9f352457ae57426d | [
"MIT"
] | null | null | null | src/reliefcpp/utils.py | ferrocactus/reliefcpp | 41705a9e5c749e700f83f9fe9f352457ae57426d | [
"MIT"
] | null | null | null | from enum import Enum
from numpy import isin
metric_names = [
"euclidean",
"manhattan",
"hamming",
"l2",
"l1"
]
| 18.181818 | 54 | 0.638333 |
7300c97c38a22ec9df0ea9ea6a865bb5bd5120e7 | 1,993 | py | Python | utilityFiles/createValidationDatasetFromXYTrainWithCandidates.py | jmfinelli/JavaNeuralDecompiler | fb914fcf4518815a4d00061b562617fc25e2f2b4 | [
"Apache-2.0"
] | 1 | 2021-06-30T12:50:28.000Z | 2021-06-30T12:50:28.000Z | utilityFiles/createValidationDatasetFromXYTrainWithCandidates.py | jmfinelli/JavaNeuralDecompiler | fb914fcf4518815a4d00061b562617fc25e2f2b4 | [
"Apache-2.0"
] | null | null | null | utilityFiles/createValidationDatasetFromXYTrainWithCandidates.py | jmfinelli/JavaNeuralDecompiler | fb914fcf4518815a4d00061b562617fc25e2f2b4 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import os.path
length_switch = True
max_body_length = 50
process_candidates = os.path.exists('./datasets/candidates.output')
x_train = open('./datasets/x_train').readlines()
x_train = [x.rstrip('\n') for x in x_train]
y_train = open('./datasets/y_train').readlines()
y_train = [x.rstrip('\n') for x... | 39.078431 | 100 | 0.697441 |
7303a20740842e72c83f9691beba5498f652855d | 105 | py | Python | py/Utility.GetData.py | mathematicalmichael/SpringNodes | 3ff4034b6e57ee6efa55c963e1819f3d30a2c4ab | [
"MIT"
] | 51 | 2015-09-25T09:30:57.000Z | 2022-01-19T14:16:44.000Z | py/Utility.GetData.py | sabeelcoder/SpringNodes | e21a24965474d54369e74d23c06f8c42a7b926b5 | [
"MIT"
] | 66 | 2015-09-30T02:43:32.000Z | 2022-03-31T02:26:52.000Z | py/Utility.GetData.py | sabeelcoder/SpringNodes | e21a24965474d54369e74d23c06f8c42a7b926b5 | [
"MIT"
] | 48 | 2015-11-19T01:34:47.000Z | 2022-02-25T17:26:48.000Z | import System
dataKey, _ = IN
OUT = System.AppDomain.CurrentDomain.GetData("_Dyn_Wireless_%s" % dataKey) | 26.25 | 74 | 0.780952 |
7303be01ae89f9c41f09c1617f6cea31c52d0cf4 | 347 | py | Python | codes_/1189_Maximum_Number_of_Balloons.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/1189_Maximum_Number_of_Balloons.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | codes_/1189_Maximum_Number_of_Balloons.py | SaitoTsutomu/leetcode | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | [
"MIT"
] | null | null | null | # %% [1189. *Maximum Number of Balloons](https://leetcode.com/problems/maximum-number-of-balloons/)
# text'ballon'
# collections.Counter
| 43.375 | 99 | 0.700288 |
7303f0aa47265452a8086f8bcf4551e8db1e3810 | 7,746 | py | Python | src/Quiet.X.Tests/i2c_test.py | callwyat/Quiet-Firmware | 864c210e44d368a4a683704841067717ebc8ac43 | [
"MIT"
] | null | null | null | src/Quiet.X.Tests/i2c_test.py | callwyat/Quiet-Firmware | 864c210e44d368a4a683704841067717ebc8ac43 | [
"MIT"
] | null | null | null | src/Quiet.X.Tests/i2c_test.py | callwyat/Quiet-Firmware | 864c210e44d368a4a683704841067717ebc8ac43 | [
"MIT"
] | null | null | null | from quiet_coms import find_quiet_ports
from quiet import Quiet
import time
if 'EXIT_ON_FAIL' not in locals():
VERBOSE = True
EXIT_ON_FAIL = True
if __name__ == "__main__":
q2c = QuietI2C(None, log_path='usb_log.txt')
i2c_test(q2c)
i2c_test_errors(q2c)
i2c_test(q2c)
print('All I2... | 29.340909 | 113 | 0.631423 |
7304d96eed7cd6d1a985ffc90a2d6a94ba9983b7 | 716 | py | Python | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Data-Structures/binary-tree/binary-tree-tilt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 5 | 2021-06-02T23:44:25.000Z | 2021-12-27T16:21:57.000Z | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Data-Structures/binary-tree/binary-tree-tilt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 22 | 2021-05-31T01:33:25.000Z | 2021-10-18T18:32:39.000Z | WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/_Data-Structures/binary-tree/binary-tree-tilt.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | 3 | 2021-06-19T03:37:47.000Z | 2021-08-31T00:49:51.000Z | # Source : https://leetcode.com/problems/binary-tree-tilt/description/
# Date : 2017-12-26
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
| 21.058824 | 70 | 0.540503 |
7305e3962fe9733cd02f16a567ab4d4b8d8a9743 | 7,581 | py | Python | kerastuner/engine/tuner_utils.py | krantirk/keras-tuner | fbc34866bf4e7ff1d60bf8c341a9325b9d5429b3 | [
"Apache-2.0"
] | 1 | 2019-07-12T17:17:06.000Z | 2019-07-12T17:17:06.000Z | kerastuner/engine/tuner_utils.py | nishantsbi/keras-tuner | fbc34866bf4e7ff1d60bf8c341a9325b9d5429b3 | [
"Apache-2.0"
] | null | null | null | kerastuner/engine/tuner_utils.py | nishantsbi/keras-tuner | fbc34866bf4e7ff1d60bf8c341a9325b9d5429b3 | [
"Apache-2.0"
] | 1 | 2020-01-02T04:07:22.000Z | 2020-01-02T04:07:22.000Z | # Copyright 2019 The Keras Tuner Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 33.544248 | 78 | 0.626962 |
7306a719a754d7eb090a7a28857cf9ab3cc30caf | 1,880 | py | Python | plotter.py | ZiegHailo/SMUVI | c324c881c511f1c44e481f93e6bd6fe7f85d4ded | [
"MIT"
] | null | null | null | plotter.py | ZiegHailo/SMUVI | c324c881c511f1c44e481f93e6bd6fe7f85d4ded | [
"MIT"
] | null | null | null | plotter.py | ZiegHailo/SMUVI | c324c881c511f1c44e481f93e6bd6fe7f85d4ded | [
"MIT"
] | null | null | null | __author__ = 'zieghailo'
import matplotlib.pyplot as plt
# plt.ion()
if __name__ == "__main__":
start_gui() | 22.650602 | 79 | 0.579787 |
7306a81bcc0bef579d78b882fb2bc110b0f6bf5f | 1,506 | py | Python | fannypack/utils/_deprecation.py | brentyi/hfdsajk | 2888aa5d969824ac1e1a528264674ece3f4703f9 | [
"MIT"
] | 5 | 2020-03-13T21:34:31.000Z | 2020-10-27T15:18:17.000Z | fannypack/utils/_deprecation.py | brentyi/hfdsajk | 2888aa5d969824ac1e1a528264674ece3f4703f9 | [
"MIT"
] | 2 | 2020-06-17T11:06:56.000Z | 2020-10-25T03:06:18.000Z | fannypack/utils/_deprecation.py | brentyi/hfdsajk | 2888aa5d969824ac1e1a528264674ece3f4703f9 | [
"MIT"
] | 4 | 2020-03-15T01:55:18.000Z | 2022-01-21T22:06:48.000Z | import warnings
from typing import Callable, Optional, TypeVar, cast
CallableType = TypeVar("CallableType", bound=Callable)
def deprecation_wrapper(message: str, function_or_class: CallableType) -> CallableType:
"""Creates a wrapper for a deprecated function or class. Prints a warning
the first time a functi... | 31.375 | 87 | 0.688579 |
7307b7da6fb6d2b5a5aa27d12b5f25e31c28bd7c | 319 | py | Python | write/5_json_writer.py | pavlovprojects/python_qa_test_data | 4066f73c83cdd4ace9d6150726a578c0326daf94 | [
"MIT"
] | null | null | null | write/5_json_writer.py | pavlovprojects/python_qa_test_data | 4066f73c83cdd4ace9d6150726a578c0326daf94 | [
"MIT"
] | null | null | null | write/5_json_writer.py | pavlovprojects/python_qa_test_data | 4066f73c83cdd4ace9d6150726a578c0326daf94 | [
"MIT"
] | null | null | null | import json
data = {
"users": [
{"Name": "Dominator", "skill": 100, "gold": 99999, "weapons": ['Sword', 'Atomic Laser']},
{"Name": "Looser", "skill": 1, "gold": -100000, "weapons": [None, None, None]},
]
}
with open("example.json", "w") as f:
s = json.dumps(data, indent=4)
f.write(s)
| 24.538462 | 97 | 0.526646 |
730824ac4dba3e614be06b76613a0a6b290846f5 | 46 | py | Python | src/utils.py | sequoia-tree/cs370 | 47bf7f56d20bd81abbdbd0502477afcd5f62bbbe | [
"CC-BY-4.0"
] | 1 | 2019-01-14T08:31:45.000Z | 2019-01-14T08:31:45.000Z | src/utils.py | sequoia-tree/teaching-cs | 47bf7f56d20bd81abbdbd0502477afcd5f62bbbe | [
"CC-BY-4.0"
] | null | null | null | src/utils.py | sequoia-tree/teaching-cs | 47bf7f56d20bd81abbdbd0502477afcd5f62bbbe | [
"CC-BY-4.0"
] | null | null | null | from md_utils import *
from py_utils import *
| 15.333333 | 22 | 0.782609 |
73085370dd0ae578546e4f06c27e87ad769b743a | 387 | py | Python | practice/ai/machine-learning/digital-camera-day-or-night/digital-camera-day-or-night.py | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | 4 | 2017-01-18T17:51:58.000Z | 2019-10-20T12:14:37.000Z | practice/ai/machine-learning/digital-camera-day-or-night/digital-camera-day-or-night.py | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | null | null | null | practice/ai/machine-learning/digital-camera-day-or-night/digital-camera-day-or-night.py | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | 8 | 2016-03-14T17:16:59.000Z | 2021-06-26T10:11:33.000Z | if __name__ == "__main__":
data = raw_input().strip(',\n').split(' ')
count = 0
total = 0
for pxl in data:
pxl = pxl.split(',')
mean = 0
for i in pxl:
mean += int(i)
mean /= 3
if mean < 70:
count += 1
total += 1
if float(count) ... | 21.5 | 46 | 0.426357 |
73087bd098e88fc78614d997333c9cb2a9e486e2 | 1,231 | py | Python | Mini Projects/RockPaperScissors/RPS.py | Snowystar122/Python-Projects | faf05ec388030b8b40ad7a8ca5c2760fb62cf5a3 | [
"MIT"
] | null | null | null | Mini Projects/RockPaperScissors/RPS.py | Snowystar122/Python-Projects | faf05ec388030b8b40ad7a8ca5c2760fb62cf5a3 | [
"MIT"
] | null | null | null | Mini Projects/RockPaperScissors/RPS.py | Snowystar122/Python-Projects | faf05ec388030b8b40ad7a8ca5c2760fb62cf5a3 | [
"MIT"
] | null | null | null | import random as r
# Sets up required variables
running = True
user_wins = 0
comp_wins = 0
answers = ["R", "P", "S"]
win_combos = ["PR", "RS", "SP"]
# Welcome message
print("Welcome to Rock-Paper-Scissors. Please input one of the following:"
"\n'R' - rock\n'P' - paper\n'S' - scissors\nto get started.")
whil... | 32.394737 | 95 | 0.622258 |
730b2987ac65ae096f7d5f37854abcd28bec2bf9 | 1,147 | py | Python | pybullet-gym/pybulletgym/agents/agents_baselines.py | SmaleZ/vcl_diayn | b2c47a681675b405d2011bc4a43c3914f3af4ecc | [
"MIT"
] | 2 | 2021-07-12T17:11:35.000Z | 2021-07-13T05:56:30.000Z | pybullet-gym/pybulletgym/agents/agents_baselines.py | SmaleZ/vcl_diayn | b2c47a681675b405d2011bc4a43c3914f3af4ecc | [
"MIT"
] | null | null | null | pybullet-gym/pybulletgym/agents/agents_baselines.py | SmaleZ/vcl_diayn | b2c47a681675b405d2011bc4a43c3914f3af4ecc | [
"MIT"
] | null | null | null | from baselines import deepq
| 20.854545 | 58 | 0.691369 |
730be722fa533a8220a435fcc4009bd19bbb500f | 1,426 | py | Python | exploit.py | hexcowboy/CVE-2020-8813 | 0229d52f8b5adb63cc6d5bc757850a01a7800b8d | [
"MIT"
] | null | null | null | exploit.py | hexcowboy/CVE-2020-8813 | 0229d52f8b5adb63cc6d5bc757850a01a7800b8d | [
"MIT"
] | null | null | null | exploit.py | hexcowboy/CVE-2020-8813 | 0229d52f8b5adb63cc6d5bc757850a01a7800b8d | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import requests
import click
from rich import inspect
from rich.console import Console
from url_normalize import url_normalize
from urllib.parse import quote
console = Console()
if __name__ == "__main__":
exploit()
| 31 | 109 | 0.680224 |
730d40eb64f626d437281807fa30ca37ecd18cc5 | 1,119 | py | Python | common/src/stack/command/stack/commands/set/firmware/model/imp/__init__.py | kmcm0/stacki | eb9dff1b45d5725b4986e567876bf61707fec28f | [
"BSD-3-Clause"
] | 123 | 2015-05-12T23:36:45.000Z | 2017-07-05T23:26:57.000Z | common/src/stack/command/stack/commands/set/firmware/model/imp/__init__.py | kmcm0/stacki | eb9dff1b45d5725b4986e567876bf61707fec28f | [
"BSD-3-Clause"
] | 177 | 2015-06-05T19:17:47.000Z | 2017-07-07T17:57:24.000Z | common/src/stack/command/stack/commands/set/firmware/model/imp/__init__.py | kmcm0/stacki | eb9dff1b45d5725b4986e567876bf61707fec28f | [
"BSD-3-Clause"
] | 32 | 2015-06-07T02:25:03.000Z | 2017-06-23T07:35:35.000Z | # @copyright@
# Copyright (c) 2006 - 2019 Teradata
# All rights reserved. Stacki(r) v5.x stacki.com
# https://github.com/Teradata/stacki/blob/master/LICENSE.txt
# @copyright@
#
# @rocks@
# Copyright (c) 2000 - 2010 The Regents of the University of California
# All rights reserved. Rocks(r) v5.4 www.rocksclusters.org
# ... | 29.447368 | 111 | 0.739946 |
73106dc1db1187afa8a045a4fa929befaa9cbf34 | 5,939 | py | Python | torch/jit/_fuser.py | ljhOfGithub/pytorch | c568f7b16f2a98d72ff5b7c6c6161b67b2c27514 | [
"Intel"
] | 1 | 2022-03-29T00:44:31.000Z | 2022-03-29T00:44:31.000Z | torch/jit/_fuser.py | ljhOfGithub/pytorch | c568f7b16f2a98d72ff5b7c6c6161b67b2c27514 | [
"Intel"
] | null | null | null | torch/jit/_fuser.py | ljhOfGithub/pytorch | c568f7b16f2a98d72ff5b7c6c6161b67b2c27514 | [
"Intel"
] | 1 | 2022-03-28T21:49:41.000Z | 2022-03-28T21:49:41.000Z | import contextlib
import torch
from typing import List, Tuple
last_executed_optimized_graph = torch._C._last_executed_optimized_graph
def set_fusion_strategy(strategy: List[Tuple[str, int]]):
"""
Sets the type and number of specializations that can occur during fusion.
Usage: provide a list of pairs (t... | 42.120567 | 106 | 0.706348 |
73111dceec02df0e21147895187850aaff39304f | 4,420 | py | Python | modlit/db/postgres.py | patdaburu/modlit | 9c9c153b74f116357e856e4c204c9a83bb15398f | [
"MIT"
] | null | null | null | modlit/db/postgres.py | patdaburu/modlit | 9c9c153b74f116357e856e4c204c9a83bb15398f | [
"MIT"
] | null | null | null | modlit/db/postgres.py | patdaburu/modlit | 9c9c153b74f116357e856e4c204c9a83bb15398f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by pat on 5/8/18
"""
.. currentmodule:: modlit.db.postgres
.. moduleauthor:: Pat Daburu <pat@daburu.net>
This module contains utilities for working directly with PostgreSQL.
"""
import json
from pathlib import Path
from urllib.parse import urlparse, ParseResult
... | 32.262774 | 79 | 0.640045 |
7311fe6464a3f41ba16f8290bf926cae00157858 | 3,179 | py | Python | estradaspt_legacy/__init__.py | dpjrodrigues/home-assistant-custom-components | 105feec36ea065e62e839b5137a9ee2e2dcf3513 | [
"MIT"
] | null | null | null | estradaspt_legacy/__init__.py | dpjrodrigues/home-assistant-custom-components | 105feec36ea065e62e839b5137a9ee2e2dcf3513 | [
"MIT"
] | null | null | null | estradaspt_legacy/__init__.py | dpjrodrigues/home-assistant-custom-components | 105feec36ea065e62e839b5137a9ee2e2dcf3513 | [
"MIT"
] | 5 | 2018-12-29T16:39:25.000Z | 2019-12-21T22:29:22.000Z | import logging
import async_timeout
import urllib.request
import time
import re
from datetime import datetime, timedelta
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.helpers.entity import Entity
from homeas... | 27.17094 | 75 | 0.674111 |
7311ffda56e787743243c236f69f050e734a7937 | 22,262 | py | Python | parser.py | boshijingang/PyLuaCompiler | 37cdf73286d020b2d119635d6d2609a5d9debfed | [
"MIT"
] | null | null | null | parser.py | boshijingang/PyLuaCompiler | 37cdf73286d020b2d119635d6d2609a5d9debfed | [
"MIT"
] | null | null | null | parser.py | boshijingang/PyLuaCompiler | 37cdf73286d020b2d119635d6d2609a5d9debfed | [
"MIT"
] | null | null | null | import lexer
import ast
| 42.894027 | 128 | 0.620519 |
73127b6e66f9e5e908a0672dbaeb988571d8cf2c | 14,720 | py | Python | python/terra_proto/terra/treasury/v1beta1/__init__.py | Vritra4/terra.proto | 977264b7c3e0f9d135120d77b48657b82f5eacf6 | [
"Apache-2.0"
] | null | null | null | python/terra_proto/terra/treasury/v1beta1/__init__.py | Vritra4/terra.proto | 977264b7c3e0f9d135120d77b48657b82f5eacf6 | [
"Apache-2.0"
] | null | null | null | python/terra_proto/terra/treasury/v1beta1/__init__.py | Vritra4/terra.proto | 977264b7c3e0f9d135120d77b48657b82f5eacf6 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: terra/treasury/v1beta1/genesis.proto, terra/treasury/v1beta1/query.proto, terra/treasury/v1beta1/treasury.proto
# plugin: python-betterproto
from dataclasses import dataclass
from typing import Dict, List
import betterproto
from betterproto.grpc.grp... | 31.120507 | 122 | 0.691508 |
7316876aa79ec9dd6b9b2ee309c9f7ea22776613 | 5,066 | py | Python | usbservo/usbservogui.py | ppfenninger/screwball | c4a7273fa47dac6bdf6fcf8ca29c85a77f9e5bd6 | [
"MIT"
] | null | null | null | usbservo/usbservogui.py | ppfenninger/screwball | c4a7273fa47dac6bdf6fcf8ca29c85a77f9e5bd6 | [
"MIT"
] | null | null | null | usbservo/usbservogui.py | ppfenninger/screwball | c4a7273fa47dac6bdf6fcf8ca29c85a77f9e5bd6 | [
"MIT"
] | null | null | null | #
## Copyright (c) 2018, Bradley A. Minch
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
##
## 1. Redistributions of source code must retain the above copyright
## notic... | 49.666667 | 153 | 0.647059 |
7317deb1560647aa925ec2a580d6d0908f2796af | 155 | py | Python | GasBotty/models/utils.py | GreenCUBIC/GasBotty | 158f5991201c80bf4cbbbb9deabc9954ff19bbb1 | [
"MIT"
] | 353 | 2020-12-10T10:47:17.000Z | 2022-03-31T23:08:29.000Z | GasBotty/models/utils.py | GreenCUBIC/GasBotty | 158f5991201c80bf4cbbbb9deabc9954ff19bbb1 | [
"MIT"
] | 80 | 2020-12-10T09:54:22.000Z | 2022-03-30T22:08:45.000Z | GasBotty/models/utils.py | GreenCUBIC/GasBotty | 158f5991201c80bf4cbbbb9deabc9954ff19bbb1 | [
"MIT"
] | 63 | 2020-12-10T17:10:34.000Z | 2022-03-28T16:27:07.000Z | try:
from torch.hub import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url
| 31 | 75 | 0.806452 |
7318340689a601475670cd96bc3a15da21a3e8a4 | 2,438 | py | Python | pyzayo/svcinv_mixin.py | jeremyschulman/pyzayo | 37869daf6ef2df8e0898bae7c3ddbb0139840751 | [
"Apache-2.0"
] | 1 | 2021-06-02T10:00:35.000Z | 2021-06-02T10:00:35.000Z | pyzayo/svcinv_mixin.py | jeremyschulman/pyzayo | 37869daf6ef2df8e0898bae7c3ddbb0139840751 | [
"Apache-2.0"
] | null | null | null | pyzayo/svcinv_mixin.py | jeremyschulman/pyzayo | 37869daf6ef2df8e0898bae7c3ddbb0139840751 | [
"Apache-2.0"
] | null | null | null | """
This file contains the Zayo Service Inventory related API endpoints.
References
----------
Docs
http://54.149.224.75/wp-content/uploads/2020/02/Service-Inventory-Wiki.pdf
"""
# -----------------------------------------------------------------------------
# System Imports
# --------------------------------... | 30.475 | 82 | 0.455291 |
7318d12083b715d2887f9b7cf5b2559fad4d08c0 | 6,236 | py | Python | pychron/core/helpers/logger_setup.py | aelamspychron/pychron | ad87c22b0817c739c7823a24585053041ee339d5 | [
"Apache-2.0"
] | 1 | 2019-02-27T21:57:44.000Z | 2019-02-27T21:57:44.000Z | pychron/core/helpers/logger_setup.py | aelamspychron/pychron | ad87c22b0817c739c7823a24585053041ee339d5 | [
"Apache-2.0"
] | 20 | 2020-09-09T20:58:39.000Z | 2021-10-05T17:48:37.000Z | pychron/core/helpers/logger_setup.py | AGESLDEO/pychron | 1a81e05d9fba43b797f335ceff6837c016633bcf | [
"Apache-2.0"
] | null | null | null | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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... | 29.837321 | 103 | 0.591725 |
7318f31264c2155178f9f5bd08d307cfd0e1de20 | 7,980 | py | Python | picmodels/models/care_advisors/case_management_models/sequence_models/services/create_update_delete.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | picmodels/models/care_advisors/case_management_models/sequence_models/services/create_update_delete.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | picmodels/models/care_advisors/case_management_models/sequence_models/services/create_update_delete.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | import picmodels
| 34.545455 | 166 | 0.61817 |