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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03cc40e680dd0a778266264e42ce9370062476e1 | 1,036 | py | Python | tornado/4_celery_async_sleep.py | dongweiming/speakerdeck | 497352767a6ec57629f28d5c85f70bef38fc1914 | [
"Apache-2.0"
] | 6 | 2015-03-02T06:01:28.000Z | 2016-06-03T09:55:34.000Z | tornado/4_celery_async_sleep.py | dongweiming/speakerdeck | 497352767a6ec57629f28d5c85f70bef38fc1914 | [
"Apache-2.0"
] | null | null | null | tornado/4_celery_async_sleep.py | dongweiming/speakerdeck | 497352767a6ec57629f28d5c85f70bef38fc1914 | [
"Apache-2.0"
] | 5 | 2015-02-01T13:48:58.000Z | 2018-11-27T02:10:59.000Z | #!/bin/env python
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
import tornado.gen
import tornado.httpclient
import tcelery
import sleep_task as tasks
from tornado.options import define, options
define("port", default=8000, help="run on the given port", type=int)
tcelery.... | 28 | 70 | 0.728764 |
03cdffc4aa94129ab097ff69eb0662a8a2afab32 | 1,026 | py | Python | 013-Flareon 6 Reloadered/resolve.py | schommi/low-tech | 8dc1c823204da9088ff696c5d23d5471eef317e1 | [
"MIT"
] | null | null | null | 013-Flareon 6 Reloadered/resolve.py | schommi/low-tech | 8dc1c823204da9088ff696c5d23d5471eef317e1 | [
"MIT"
] | null | null | null | 013-Flareon 6 Reloadered/resolve.py | schommi/low-tech | 8dc1c823204da9088ff696c5d23d5471eef317e1 | [
"MIT"
] | null | null | null | import itertools
secret = [
0x7A, 0x17, 0x08, 0x34, 0x17, 0x31, 0x3B, 0x25, 0x5B, 0x18, 0x2E, 0x3A, 0x15, 0x56, 0x0E, 0x11,
0x3E, 0x0D, 0x11, 0x3B, 0x24, 0x21, 0x31, 0x06, 0x3C, 0x26, 0x7C, 0x3C, 0x0D, 0x24, 0x16, 0x3A,
0x14, 0x79, 0x01, 0x3A, 0x18, 0x5A, 0x58, 0x73, 0x2E, 0x09, 0x00, 0x16, 0x00, 0x49, 0x22, 0x0... | 27.72973 | 97 | 0.567251 |
03d0163037b3ffb3243f9f7b36c80a6e4a2647ef | 1,098 | py | Python | py/cidoc_crm_types/entities/e66_formation.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/entities/e66_formation.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | py/cidoc_crm_types/entities/e66_formation.py | minorg/cidoc-crm-types | 9018bdbf0658e4d28a87bc94543e467be45d8aa5 | [
"Apache-2.0"
] | null | null | null | from .e63_beginning_of_existence import E63BeginningofExistence
from .e7_activity import E7Activity
from dataclasses import dataclass
| 40.666667 | 393 | 0.784153 |
03d052fd2d3ee2a1a9e3667dd101b990d188cf77 | 7,269 | py | Python | platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4440_modem_calc/pro2plusapilist.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 82 | 2016-06-29T17:24:43.000Z | 2021-04-16T06:49:17.000Z | platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4440_modem_calc/pro2plusapilist.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 6 | 2022-01-12T18:22:08.000Z | 2022-03-25T10:19:27.000Z | platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4440_modem_calc/pro2plusapilist.py | lmnotran/gecko_sdk | 2e82050dc8823c9fe0e8908c1b2666fb83056230 | [
"Zlib"
] | 56 | 2016-08-02T10:50:50.000Z | 2021-07-19T08:57:34.000Z | '''
Created on Apr 4, 2013
@author: sesuskic
'''
from .pro2apilist import Pro2ApiList
from .trueround import trueround
__all__ = ["Pro2PlusApiList"]
| 57.23622 | 138 | 0.618104 |
03d0bc9d1b09e698e817e41c4a64a567b8b2fd46 | 4,052 | py | Python | tests/mockers.py | bastienboutonnet/sheetwork | 7aa757ed12375ddd2c56502b721d91146d22b7ea | [
"MIT"
] | 9 | 2020-12-10T12:12:42.000Z | 2021-11-24T20:56:36.000Z | tests/mockers.py | bastienboutonnet/sheetwork | 7aa757ed12375ddd2c56502b721d91146d22b7ea | [
"MIT"
] | 266 | 2020-04-19T10:50:19.000Z | 2022-03-14T22:12:43.000Z | tests/mockers.py | bastienboutonnet/sheetwork | 7aa757ed12375ddd2c56502b721d91146d22b7ea | [
"MIT"
] | 3 | 2020-04-25T18:11:20.000Z | 2020-12-21T09:36:34.000Z | import pandas
from pandas import Timestamp
EXPECTED_CONFIG = {
"sheet_name": "df_dropper",
"sheet_key": "sample",
"target_schema": "sand",
"target_table": "bb_test_sheetwork",
"columns": [
{"name": "col_a", "datatype": "int"},
{"name": "col_b", "datatype": "varchar"},
{"name... | 25.64557 | 89 | 0.517769 |
03d3ac7a4d3e7b410abc26d86dafcac236ceca0f | 337 | py | Python | app/bot/types.py | DramatikMan/mlhl-01-python-bot | ab65432781db8bb5b0ff3b698514a14393809360 | [
"MIT"
] | null | null | null | app/bot/types.py | DramatikMan/mlhl-01-python-bot | ab65432781db8bb5b0ff3b698514a14393809360 | [
"MIT"
] | null | null | null | app/bot/types.py | DramatikMan/mlhl-01-python-bot | ab65432781db8bb5b0ff3b698514a14393809360 | [
"MIT"
] | null | null | null | from typing import Any
from telegram.ext import CallbackContext, Dispatcher
CCT = CallbackContext[
dict[Any, Any],
dict[Any, Any],
dict[Any, Any]
]
DP = Dispatcher[
CCT,
dict[Any, Any],
dict[Any, Any],
dict[Any, Any]
]
DataRecord = tuple[
int, int, int, int, int, int, int, int, int, s... | 16.85 | 64 | 0.626113 |
03d62215eb44f2521a4a5180463ae9e3411c086d | 1,401 | py | Python | custom_components/gpodder/config_flow.py | hsolberg/gpodder | 6b3af212f8067c7084f638bf40c9a25fe6fc252d | [
"MIT"
] | 13 | 2019-03-21T10:44:58.000Z | 2021-04-17T09:19:53.000Z | custom_components/gpodder/config_flow.py | hsolberg/gpodder | 6b3af212f8067c7084f638bf40c9a25fe6fc252d | [
"MIT"
] | 18 | 2019-03-24T20:41:21.000Z | 2021-12-10T01:42:57.000Z | custom_components/gpodder/config_flow.py | hsolberg/gpodder | 6b3af212f8067c7084f638bf40c9a25fe6fc252d | [
"MIT"
] | 8 | 2019-03-24T06:19:24.000Z | 2021-06-03T11:08:23.000Z | """Adds config flow for gPodder."""
from homeassistant import config_entries
import voluptuous as vol
from custom_components.gpodder.const import (
CONF_NAME,
CONF_PASSWORD,
CONF_USERNAME,
CONF_DEVICE,
DEFAULT_NAME,
DOMAIN,
)
| 28.591837 | 71 | 0.605282 |
03d6498ba61a917cb8382f4c387383c0b1401401 | 2,765 | py | Python | openfda/nsde/pipeline.py | FDA/openfda | 93c3abed4042a4a2729975468c4e377a67e8a5ca | [
"CC0-1.0"
] | 388 | 2015-01-09T18:50:35.000Z | 2022-03-24T10:15:23.000Z | openfda/nsde/pipeline.py | FDA/openfda | 93c3abed4042a4a2729975468c4e377a67e8a5ca | [
"CC0-1.0"
] | 150 | 2015-01-21T20:30:54.000Z | 2022-03-28T20:46:29.000Z | openfda/nsde/pipeline.py | FDA/openfda | 93c3abed4042a4a2729975468c4e377a67e8a5ca | [
"CC0-1.0"
] | 113 | 2015-01-31T21:24:16.000Z | 2022-01-30T15:17:28.000Z | #!/usr/local/bin/python
'''
Pipeline for converting CSV nsde data to JSON and importing into Elasticsearch.
'''
import glob
import os
from os.path import join, dirname
import luigi
from openfda import common, config, parallel, index_util
from openfda.common import newest_file_timestamp
NSDE_DOWNLOAD = \
'https:/... | 28.802083 | 79 | 0.691863 |
03d659e23330734a212d3f3f3cc9b22edbb8b9c6 | 1,397 | py | Python | mirari/INV/migrations/0003_auto_20190609_1903.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | null | null | null | mirari/INV/migrations/0003_auto_20190609_1903.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | 18 | 2019-12-27T19:58:20.000Z | 2022-02-27T08:17:49.000Z | mirari/INV/migrations/0003_auto_20190609_1903.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2019-06-10 00:03
from django.db import migrations, models
import localflavor.mx.models
| 36.763158 | 182 | 0.625626 |
03d7145827f639d44aefbdbab3925d11bd2e21e5 | 1,994 | py | Python | tests/test_fluids_ecl.py | trhallam/digirock | 05b1199d741a384345a4930605be97369c9ec270 | [
"MIT"
] | null | null | null | tests/test_fluids_ecl.py | trhallam/digirock | 05b1199d741a384345a4930605be97369c9ec270 | [
"MIT"
] | 2 | 2022-02-28T08:51:53.000Z | 2022-02-28T13:24:33.000Z | tests/test_fluids_ecl.py | trhallam/digirock | 05b1199d741a384345a4930605be97369c9ec270 | [
"MIT"
] | null | null | null | """Test functions for pem.fluid.ecl module
"""
import pytest
from pytest import approx
import numpy as np
import digirock.fluids.ecl as fluid_ecl
from inspect import getmembers, isfunction
def test_oil_fvf_table_bad_pchi(test_data):
tab = np.loadtxt(test_data / "PVT_BO.inc")
# test bad extrap... | 28.485714 | 89 | 0.584253 |
03d7d92d4d5bfbe186989e957053e7a566a34b64 | 123 | py | Python | anyrun/__init__.py | mwalkowski/anyrun | 48545bcbbb4872ecc4f3736c9395d69b56ff6134 | [
"Apache-2.0"
] | 18 | 2019-06-10T09:37:14.000Z | 2021-09-28T18:39:50.000Z | anyrun/__init__.py | plinkert/anyrun | f0d6bd915460c9bd3d37acdcc27ddf20c92d0410 | [
"Apache-2.0"
] | 7 | 2019-07-17T04:50:59.000Z | 2020-05-09T13:33:08.000Z | anyrun/__init__.py | mwalkowski/anyrun | 48545bcbbb4872ecc4f3736c9395d69b56ff6134 | [
"Apache-2.0"
] | 5 | 2019-06-11T05:22:37.000Z | 2021-02-18T01:47:14.000Z | from anyrun.client import AnyRunClient, AnyRunException
__version__ = '0.1'
__all__ = ['AnyRunClient', 'AnyRunException']
| 24.6 | 55 | 0.780488 |
03d7f39caab28a9c35a6797a159ddc4799ba288c | 618 | py | Python | python/sort/BubbleSort.py | smdsbz/homework | 6cac5cc006543bc0787ef4219e72f314ee04083e | [
"MIT"
] | 5 | 2017-05-21T15:36:27.000Z | 2018-01-01T09:47:26.000Z | python/sort/BubbleSort.py | smdsbz/homework | 6cac5cc006543bc0787ef4219e72f314ee04083e | [
"MIT"
] | null | null | null | python/sort/BubbleSort.py | smdsbz/homework | 6cac5cc006543bc0787ef4219e72f314ee04083e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''
BubbleSort.py
by Xiaoguang Zhu
'''
array = []
print("Enter at least two numbers to start bubble-sorting.")
print("(You can end inputing anytime by entering nonnumeric)")
# get numbers
while True:
try:
array.append(float(input(">> ")))
except ValueError: # exit inputing
break
print("\nTh... | 19.3125 | 62 | 0.665049 |
03dd52993883fc7a35378bdcc353de5b907ed0cd | 386 | py | Python | Ex-08.py | gilmartins83/Guanabara-Python | 43128c35fcd601db1f72c80a9c76f4b4f4085c7f | [
"MIT"
] | null | null | null | Ex-08.py | gilmartins83/Guanabara-Python | 43128c35fcd601db1f72c80a9c76f4b4f4085c7f | [
"MIT"
] | null | null | null | Ex-08.py | gilmartins83/Guanabara-Python | 43128c35fcd601db1f72c80a9c76f4b4f4085c7f | [
"MIT"
] | null | null | null | medida = float(input("uma distancai em metros: "))
cm = medida * 100
mm = medida * 1000
dm = medida / 10
dam = medida * 1000000
hm = medida / 100
km = medida * 0.001
ml = medida * 0.000621371
m = medida * 100000
print("A medida de {:.0f}m corresponde a {:.0f} mm \n{:.0f} cm \n{:.0f} dm \n{:.0f} dam \n{:.0f} hm \n{:.2f... | 29.692308 | 171 | 0.595855 |
03ddc3f06dc7248a7bc64aaebf34b1b6df562b47 | 1,889 | py | Python | src/spaceone/monitoring/info/metric_info.py | jihyungSong/plugin-google-cloud-stackdriver | 3875b158ad047b9502c79475ac89e4a9d45fdb0b | [
"Apache-2.0"
] | 1 | 2020-06-22T09:49:24.000Z | 2020-06-22T09:49:24.000Z | src/spaceone/monitoring/info/metric_info.py | jihyungSong/plugin-aws-cloudwatch | 59e5ae7d6e93c8e46c221268ad93ab4a0b262fe8 | [
"Apache-2.0"
] | null | null | null | src/spaceone/monitoring/info/metric_info.py | jihyungSong/plugin-aws-cloudwatch | 59e5ae7d6e93c8e46c221268ad93ab4a0b262fe8 | [
"Apache-2.0"
] | null | null | null | import functools
from spaceone.api.monitoring.plugin import metric_pb2
from spaceone.api.core.v1 import plugin_pb2
from spaceone.core.pygrpc.message_type import *
__all__ = ['PluginMetricsResponse', 'PluginMetricDataResponse']
| 25.186667 | 89 | 0.654844 |
03de85b4de7acb4fb0b954a110ce43afb026ce19 | 7,466 | py | Python | POP CHECK R0 py36.py | Rigonz/PopDensity_SatelliteNightLight | 88b0fae1e09984e08506063908d9c7fce6dc2229 | [
"MIT"
] | null | null | null | POP CHECK R0 py36.py | Rigonz/PopDensity_SatelliteNightLight | 88b0fae1e09984e08506063908d9c7fce6dc2229 | [
"MIT"
] | null | null | null | POP CHECK R0 py36.py | Rigonz/PopDensity_SatelliteNightLight | 88b0fae1e09984e08506063908d9c7fce6dc2229 | [
"MIT"
] | null | null | null | '''
Created on: see version log.
@author: rigonz
coding: utf-8
IMPORTANT: requires py3.6 (rasterio)
Script that:
1) reads a series of raster files,
2) runs some checks,
3) makes charts showing the results.
The input data corresponds to a region of the world (ESP) and represents
the population density (pop/km2).
Each... | 28.496183 | 125 | 0.659925 |
03e1aa08a772e435ec4bfa6b688a45a8f113fb37 | 25,849 | py | Python | lookerapi/models/query.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | lookerapi/models/query.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | lookerapi/models/query.py | jcarah/python_sdk | 3bff34d04a828c940c3f93055e10b6a0095c2327 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Looker API 3.1 Reference
### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token.... | 32.392231 | 4,190 | 0.607954 |
03e4f0c10cb588161abc592a99f12c950ad74fb3 | 1,036 | py | Python | custom_components/hello_world.py | swissglider/homeassistant_custome_components | 8d3fef980831789b6ecd7f51e9bc197b18fa8fb9 | [
"MIT"
] | null | null | null | custom_components/hello_world.py | swissglider/homeassistant_custome_components | 8d3fef980831789b6ecd7f51e9bc197b18fa8fb9 | [
"MIT"
] | 1 | 2019-02-01T15:09:37.000Z | 2019-02-01T15:09:37.000Z | custom_components/hello_world.py | swissglider/homeassistant_custome_components | 8d3fef980831789b6ecd7f51e9bc197b18fa8fb9 | [
"MIT"
] | 1 | 2022-01-19T10:09:32.000Z | 2022-01-19T10:09:32.000Z | """
Hello World Component.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/developers/development_101/
"""
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
# Initialize the logger
_LOGGER = logging.getLogger(__name__)
#... | 25.268293 | 83 | 0.741313 |
03e57254dfaf90b0cc055c4ccd9443ee667b2d23 | 1,108 | py | Python | svsim/compare/sc21_compare/cirq/cirq_multiply_n13.py | yukwangmin/SV-Sim | 1b6b71cb490e7a1eac3d6ebc24777590d48378de | [
"MIT"
] | null | null | null | svsim/compare/sc21_compare/cirq/cirq_multiply_n13.py | yukwangmin/SV-Sim | 1b6b71cb490e7a1eac3d6ebc24777590d48378de | [
"MIT"
] | null | null | null | svsim/compare/sc21_compare/cirq/cirq_multiply_n13.py | yukwangmin/SV-Sim | 1b6b71cb490e7a1eac3d6ebc24777590d48378de | [
"MIT"
] | null | null | null | import time
import cirq
import numpy as np
from functools import reduce
q = [cirq.NamedQubit('q' + str(i)) for i in range(13)]
circuit = cirq.Circuit(
cirq.X(q[0]),
cirq.X(q[1]),
cirq.X(q[2]),
cirq.X(q[4]),
cirq.CCX(q[2], q[0], q[5]),
cirq.CCX(q[2], q[1], q[6]),
cirq.CCX(q[3], q[0], q[7]),
... | 30.777778 | 97 | 0.587545 |
03eb9e9a2678ce2856ad1cc39eac15c2a16bbcc9 | 431 | py | Python | Section_7/word_count_repo/src/word_count.py | PacktPublishing/Software-Engineering-with-Python-3.x | 056e4c89e4f8d7fc4a4095ee0671d6944a86630e | [
"MIT"
] | 1 | 2020-02-02T13:55:29.000Z | 2020-02-02T13:55:29.000Z | Section_7/word_count_repo/src/word_count.py | PacktPublishing/Software-Engineering-with-Python-3.x | 056e4c89e4f8d7fc4a4095ee0671d6944a86630e | [
"MIT"
] | null | null | null | Section_7/word_count_repo/src/word_count.py | PacktPublishing/Software-Engineering-with-Python-3.x | 056e4c89e4f8d7fc4a4095ee0671d6944a86630e | [
"MIT"
] | 2 | 2020-02-09T12:41:40.000Z | 2020-09-21T02:16:06.000Z | from project_utils import dict_to_file, get_word_count
if __name__ == "__main__":
inp_filename = 'sample.txt'
out_filename = 'count.csv'
print("Reading file ", inp_filename)
word_dict = get_word_count(inp_filename)
print("Output from get_word_count is")
print(word_dict)
print("W... | 19.590909 | 54 | 0.703016 |
03ecb8a44ff3c3e66ce134246974ad0988fe8e8e | 1,242 | py | Python | examples/tempy_examples.py | NinoDoko/TemPy | c6bdd4c12ae1a4a5db6a852295f7f758b7dc595a | [
"Apache-2.0"
] | null | null | null | examples/tempy_examples.py | NinoDoko/TemPy | c6bdd4c12ae1a4a5db6a852295f7f758b7dc595a | [
"Apache-2.0"
] | null | null | null | examples/tempy_examples.py | NinoDoko/TemPy | c6bdd4c12ae1a4a5db6a852295f7f758b7dc595a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import os
from flask import Flask
app = Flask(__name__)
if __name__ == '__main__':
app.run(port=8888, debug=True)
| 22.581818 | 69 | 0.706924 |
03ef1f344c45295f3dabd049b11b142929115048 | 1,671 | py | Python | Chapter05/airflow/dags/classification_pipeline_dag.py | arifmudi/Machine-Learning-Engineering-with-Python | 05c3fb9ae9fb9124a13812f59f8e681d66832d3b | [
"MIT"
] | 67 | 2021-01-31T19:43:15.000Z | 2022-03-27T08:03:56.000Z | Chapter05/airflow/dags/classification_pipeline_dag.py | arifmudi/Machine-Learning-Engineering-with-Python | 05c3fb9ae9fb9124a13812f59f8e681d66832d3b | [
"MIT"
] | null | null | null | Chapter05/airflow/dags/classification_pipeline_dag.py | arifmudi/Machine-Learning-Engineering-with-Python | 05c3fb9ae9fb9124a13812f59f8e681d66832d3b | [
"MIT"
] | 35 | 2021-02-08T14:34:46.000Z | 2022-03-18T16:06:09.000Z | from datetime import timedelta
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.utils.dates import days_ago
default_args = {
'owner': 'Andrew McMahon',
'depends_on_past': False,
'start_date': days_ago(2),
'email': ['example@example.com'],
'email_on_failu... | 26.109375 | 69 | 0.691801 |
03ef80065ba71a9283c8b010bfb8f94407342153 | 3,424 | py | Python | Yank/tests/test_pipeline.py | hannahbrucemacdonald/yank | 8f79b6a06f0a197bf761fea9451bf00021c3e690 | [
"MIT"
] | null | null | null | Yank/tests/test_pipeline.py | hannahbrucemacdonald/yank | 8f79b6a06f0a197bf761fea9451bf00021c3e690 | [
"MIT"
] | null | null | null | Yank/tests/test_pipeline.py | hannahbrucemacdonald/yank | 8f79b6a06f0a197bf761fea9451bf00021c3e690 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# =============================================================================
# MODULE DOCSTRING
# =============================================================================
"""
Test pipeline functions in pipeline.py.
"""
# =================================================================... | 40.761905 | 94 | 0.515479 |
03f06d7ef5a24baadf174fb8ea7bc0c85df13ac9 | 4,626 | py | Python | a1d05eba1/scripts/entry.py | dorey/a1d05eba1 | eb6f66a946f3c417ab6bf9047ba9715be071967c | [
"0BSD"
] | null | null | null | a1d05eba1/scripts/entry.py | dorey/a1d05eba1 | eb6f66a946f3c417ab6bf9047ba9715be071967c | [
"0BSD"
] | 28 | 2020-06-23T19:00:58.000Z | 2021-03-26T22:13:07.000Z | a1d05eba1/scripts/entry.py | dorey/a1d05eba1 | eb6f66a946f3c417ab6bf9047ba9715be071967c | [
"0BSD"
] | null | null | null | import os
import json
import yaml
import argparse
from pyxform import xls2json
from pyxform.builder import create_survey_element_from_dict
from pprint import pprint
from ..content_variations import build_content
from ..utils.form_to_yaml_string import form_to_yaml_string
YAML_FORMAT = 'yml'
JSON_FORMAT = 'json'
XL... | 29.845161 | 79 | 0.620406 |
03f31a2a63dceed013a3bf2dd7cfcd908654b692 | 48 | py | Python | rmp2/rmpgraph/__init__.py | UWRobotLearning/rmp2 | c612a014f517204b38c552619a441be4b3d7b67f | [
"MIT"
] | 17 | 2021-07-05T19:53:27.000Z | 2022-03-28T18:10:20.000Z | rmp2/rmpgraph/__init__.py | UWRobotLearning/rmp2 | c612a014f517204b38c552619a441be4b3d7b67f | [
"MIT"
] | null | null | null | rmp2/rmpgraph/__init__.py | UWRobotLearning/rmp2 | c612a014f517204b38c552619a441be4b3d7b67f | [
"MIT"
] | 2 | 2022-03-15T01:13:27.000Z | 2022-03-21T08:30:54.000Z | from rmp2.rmpgraph.robotics import RobotRMPGraph | 48 | 48 | 0.895833 |
03f4b115ea16b479cbe75ec350b750f18e4067a9 | 3,468 | py | Python | pushmi-pullyu.py | klynch/pushmi-pullyu | b17e29b7e7bdb1d1da59b61236572781980173f4 | [
"MIT"
] | null | null | null | pushmi-pullyu.py | klynch/pushmi-pullyu | b17e29b7e7bdb1d1da59b61236572781980173f4 | [
"MIT"
] | 1 | 2021-11-05T06:10:02.000Z | 2021-12-18T22:31:37.000Z | pushmi-pullyu.py | klynch/pushmi-pullyu | b17e29b7e7bdb1d1da59b61236572781980173f4 | [
"MIT"
] | 1 | 2020-06-02T12:00:22.000Z | 2020-06-02T12:00:22.000Z | #!/usr/bin/env python3
import argparse
import requests
import json
import os
import base64
from collections import namedtuple
import docker
Registry = namedtuple('Registry', ['name', 'tag_url', 'tag_func'])
REGISTRY_REGISTRY = {
'hub.docker.com': Registry(
name='hub.docker.com',
tag_url='https://r... | 35.387755 | 123 | 0.678489 |
03f575511edc87fbaa0168ce74fe3d45c2492f5f | 4,158 | py | Python | src/contactapp/migrations/0001_initial.py | robertsmoto/sodavault | 200e843be7abe6cc447647bba55c7c1309092e5e | [
"BSD-3-Clause"
] | null | null | null | src/contactapp/migrations/0001_initial.py | robertsmoto/sodavault | 200e843be7abe6cc447647bba55c7c1309092e5e | [
"BSD-3-Clause"
] | null | null | null | src/contactapp/migrations/0001_initial.py | robertsmoto/sodavault | 200e843be7abe6cc447647bba55c7c1309092e5e | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.2.3 on 2021-08-23 17:30
from django.db import migrations, models
import django.db.models.deletion
| 46.719101 | 154 | 0.549784 |
03f5f0261dae2f37b5e7db37db0f4a97a9efea20 | 3,860 | py | Python | examples/kcs.py | WeiZhixiong/ksc-sdk-python | a93237ce376e107eaae644678ef6b99819a9f8eb | [
"Apache-2.0"
] | 53 | 2016-09-21T15:52:14.000Z | 2021-12-23T09:23:00.000Z | examples/kcs.py | WeiZhixiong/ksc-sdk-python | a93237ce376e107eaae644678ef6b99819a9f8eb | [
"Apache-2.0"
] | 27 | 2016-09-21T15:24:43.000Z | 2021-11-18T08:38:38.000Z | examples/kcs.py | WeiZhixiong/ksc-sdk-python | a93237ce376e107eaae644678ef6b99819a9f8eb | [
"Apache-2.0"
] | 68 | 2016-09-06T10:33:09.000Z | 2021-11-16T07:13:03.000Z | # -*- encoding:utf-8 -*-
from kscore.session import get_session
if __name__ == "__main__":
s = get_session()
#
kcsClient = s.create_client("kcs", "cn-shanghai-3", use_ssl=False)
# DescribeCacheReadonlyNodekcsv2
#kcsv2Client = s.create_client("kcsv2", "cn-shanghai-3", use_ssl=False)
#
#pr... | 45.411765 | 223 | 0.70285 |
03f77421a8248af15d6335d234c04c7267e108b3 | 1,695 | py | Python | src/server/utils.py | Krzem5/Python-School_Website | 5947b25a538c52fb475ccfbb87142dbe5ef5e0d0 | [
"BSD-3-Clause"
] | null | null | null | src/server/utils.py | Krzem5/Python-School_Website | 5947b25a538c52fb475ccfbb87142dbe5ef5e0d0 | [
"BSD-3-Clause"
] | null | null | null | src/server/utils.py | Krzem5/Python-School_Website | 5947b25a538c52fb475ccfbb87142dbe5ef5e0d0 | [
"BSD-3-Clause"
] | null | null | null | import builtins
import datetime
import inspect
import threading
import time
import ws
global _c,_pq,_l_ws,_sc
_c={}
_pq=None
_l_ws={}
_sc=None
_tl=threading.Lock()
| 18.833333 | 130 | 0.629499 |
03f8dea5d4d479b6d242969494dabbcbf9fdaa1f | 4,593 | py | Python | tests/test_operation.py | InTack2/boip | 99a2c1cf7116dc4a28453d44ac9768446241174d | [
"MIT"
] | null | null | null | tests/test_operation.py | InTack2/boip | 99a2c1cf7116dc4a28453d44ac9768446241174d | [
"MIT"
] | 1 | 2020-09-28T15:26:02.000Z | 2020-09-28T15:26:02.000Z | tests/test_operation.py | InTack2/boip | 99a2c1cf7116dc4a28453d44ac9768446241174d | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import generators
from __future__ import division
import os
import pytest
from boip import operation
SCRIPT_PATH = os.path.dirna... | 32.574468 | 117 | 0.698236 |
03f90b9c017571d5e21e3b7da29f1645b4a33491 | 85 | py | Python | service/models/__init__.py | CottageLabs/lodestone | 2e60f2138a49633398655bb7f728fd3d6ac92c43 | [
"Apache-2.0"
] | null | null | null | service/models/__init__.py | CottageLabs/lodestone | 2e60f2138a49633398655bb7f728fd3d6ac92c43 | [
"Apache-2.0"
] | null | null | null | service/models/__init__.py | CottageLabs/lodestone | 2e60f2138a49633398655bb7f728fd3d6ac92c43 | [
"Apache-2.0"
] | null | null | null | from service.models.ethesis import Ethesis
from service.models.dataset import Dataset | 42.5 | 42 | 0.870588 |
03fcdf32087c44ef545515c06175fa5dfd2d8041 | 122 | py | Python | rmepy/robot_modules/__init__.py | 233a344a455/RobomasterEPlib | d0497d06d107c482e7b4c80c54c7c05c0bf62e21 | [
"MIT"
] | 3 | 2020-04-23T14:19:59.000Z | 2020-10-06T17:02:12.000Z | rmepy/robot_modules/__init__.py | 233a344a455/RobomasterEPlib | d0497d06d107c482e7b4c80c54c7c05c0bf62e21 | [
"MIT"
] | null | null | null | rmepy/robot_modules/__init__.py | 233a344a455/RobomasterEPlib | d0497d06d107c482e7b4c80c54c7c05c0bf62e21 | [
"MIT"
] | 2 | 2020-05-13T08:15:16.000Z | 2020-05-13T08:55:51.000Z | from .basic_ctrl import BasicCtrl
from .chassis import Chassis
from .gimbal import Gimbal
from .blaster import Blaster | 30.5 | 34 | 0.811475 |
03fe24516cc44d26a56b806f17cdc2963b402fd8 | 12,360 | py | Python | build.py | MrCoft/EngiMod | 65c90bd9231ac388d8af7849a1835914f1eefc78 | [
"MIT"
] | null | null | null | build.py | MrCoft/EngiMod | 65c90bd9231ac388d8af7849a1835914f1eefc78 | [
"MIT"
] | null | null | null | build.py | MrCoft/EngiMod | 65c90bd9231ac388d8af7849a1835914f1eefc78 | [
"MIT"
] | null | null | null | import utils
from utils import format
import os
import tempfile
import urllib.request
import shutil
import zipfile
spire_dir = r"D:\Games\Slay the Spire Modded"
mod_dir = os.path.join("cache", "mod")
if __name__ == "__main__":
build()
| 47.722008 | 179 | 0.611408 |
ff0002f28ad3a199bd96b680511c5012fe2c72ff | 107 | py | Python | src/filtermaker/__init__.py | yukihira1992/filtermaker | 0fdd76771ea551ecdfe3328eadec32f59d0f5f8c | [
"MIT"
] | null | null | null | src/filtermaker/__init__.py | yukihira1992/filtermaker | 0fdd76771ea551ecdfe3328eadec32f59d0f5f8c | [
"MIT"
] | null | null | null | src/filtermaker/__init__.py | yukihira1992/filtermaker | 0fdd76771ea551ecdfe3328eadec32f59d0f5f8c | [
"MIT"
] | null | null | null | from .filters import TextFilter
__version__ = '0.0.1'
__all__ = (
'__version__',
'TextFilter',
)
| 11.888889 | 31 | 0.64486 |
ff011eb3b30a5dcec0975d8afd7f72454da4922d | 4,378 | py | Python | projects/migrations/0001_initial.py | louisenje/project-rate | b11e209bebdf59983d967864a049538b2807acd2 | [
"MIT"
] | null | null | null | projects/migrations/0001_initial.py | louisenje/project-rate | b11e209bebdf59983d967864a049538b2807acd2 | [
"MIT"
] | null | null | null | projects/migrations/0001_initial.py | louisenje/project-rate | b11e209bebdf59983d967864a049538b2807acd2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-06-02 07:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 56.128205 | 171 | 0.574006 |
ff03b5152146f8e41903bfd092d0c4ff488dcd2f | 1,068 | py | Python | osbenchmark/builder/downloaders/repositories/repository_url_provider.py | engechas/opensearch-benchmark | d11db3721aebf5419a7fc0b8a7d300a1d63ddbfe | [
"Apache-2.0"
] | 26 | 2021-12-09T06:58:53.000Z | 2022-03-29T15:01:37.000Z | osbenchmark/builder/downloaders/repositories/repository_url_provider.py | engechas/opensearch-benchmark | d11db3721aebf5419a7fc0b8a7d300a1d63ddbfe | [
"Apache-2.0"
] | 63 | 2021-12-08T20:47:17.000Z | 2022-03-31T18:21:31.000Z | osbenchmark/builder/downloaders/repositories/repository_url_provider.py | engechas/opensearch-benchmark | d11db3721aebf5419a7fc0b8a7d300a1d63ddbfe | [
"Apache-2.0"
] | 5 | 2021-12-09T10:17:30.000Z | 2022-03-03T05:31:12.000Z | from functools import reduce
from osbenchmark.exceptions import SystemSetupError
| 41.076923 | 108 | 0.73221 |
ff03f3f76a27457124aff233817d512634898ae3 | 4,953 | py | Python | setup_cares.py | thedrow/pycares | ecb5062c31aae66c655c1526ccf21ee0c944d414 | [
"MIT"
] | null | null | null | setup_cares.py | thedrow/pycares | ecb5062c31aae66c655c1526ccf21ee0c944d414 | [
"MIT"
] | null | null | null | setup_cares.py | thedrow/pycares | ecb5062c31aae66c655c1526ccf21ee0c944d414 | [
"MIT"
] | null | null | null |
import errno
import os
import subprocess
import sys
from distutils import log
from distutils.command.build_ext import build_ext
from distutils.errors import DistutilsError
def exec_process(cmdline, silent=True, catch_enoent=True, input=None, **kwargs):
"""Execute a subprocess and returns the returncode, stdout ... | 40.933884 | 151 | 0.626085 |
ff04fdc9886ae14cf3e6ffff47f1dd3087fb8967 | 3,176 | py | Python | FaceTemplateMatching.py | domjhill/Python-FaceTemplateMatching | 4bf72a8534cd1c333956c75ca2fd2851d5d0fbea | [
"MIT"
] | 6 | 2017-08-13T16:55:52.000Z | 2021-07-12T03:33:48.000Z | FaceTemplateMatching.py | domjhill/Python-FaceTemplateMatching | 4bf72a8534cd1c333956c75ca2fd2851d5d0fbea | [
"MIT"
] | null | null | null | FaceTemplateMatching.py | domjhill/Python-FaceTemplateMatching | 4bf72a8534cd1c333956c75ca2fd2851d5d0fbea | [
"MIT"
] | 5 | 2017-08-13T16:56:04.000Z | 2021-01-08T09:00:13.000Z | import cv2
from threading import Thread
import datetime
import time
import sys
vidStream = FrameGrabber(src=0).start()
cascadeFace = cv2.CascadeClassifier('lbpcascade_frontalface.xml')
if (len(sys.argv) == 1):
template = cv2.imread('template.png', 0)
else:
imgPath = sys.argv[1]
template = cv2.imr... | 27.145299 | 98 | 0.621537 |
ff06a4859edba98a7a88d5622aad9b23c4419609 | 12,017 | py | Python | kafka_proto_api/protos/etf_http_ref_pb2.py | Ycallaer/kafka_proto_py | 478f0ac7a95e4c14f4bb2f1deeef60df0c8aa133 | [
"MIT"
] | 1 | 2021-03-24T12:43:24.000Z | 2021-03-24T12:43:24.000Z | kafka_proto_api/protos/etf_http_ref_pb2.py | Ycallaer/kafka_proto_py | 478f0ac7a95e4c14f4bb2f1deeef60df0c8aa133 | [
"MIT"
] | null | null | null | kafka_proto_api/protos/etf_http_ref_pb2.py | Ycallaer/kafka_proto_py | 478f0ac7a95e4c14f4bb2f1deeef60df0c8aa133 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: etf_http_ref.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.p... | 48.651822 | 1,362 | 0.785471 |
ff098027575fba502952fc4d4e830126b3044b28 | 3,086 | py | Python | src/access.py | zimingd/packer-rstudio | 935360c55c292b06969fe157da95b74351e4d3c1 | [
"Apache-2.0"
] | null | null | null | src/access.py | zimingd/packer-rstudio | 935360c55c292b06969fe157da95b74351e4d3c1 | [
"Apache-2.0"
] | 7 | 2020-04-14T17:00:48.000Z | 2022-03-03T00:39:21.000Z | src/access.py | zimingd/packer-rstudio | 935360c55c292b06969fe157da95b74351e4d3c1 | [
"Apache-2.0"
] | 4 | 2020-05-20T16:47:22.000Z | 2021-05-25T15:16:00.000Z | #!/usr/bin/env python3
import jwt
import requests
import base64
import json
import boto3
import time
import functools
import os
from mod_python import apache
region = json.loads(requests.get('http://169.254.169.254/latest/dynamic/instance-identity/document').text)['region']
ssm_parameter_name_env_var = 'SYNAPSE_TOKE... | 33.182796 | 116 | 0.745949 |
ff0b467f1ad7ee9bf9ae9be6fd164aa964a5004d | 289 | py | Python | tests/test_checks_interface.py | ployt0/server_monitor | 835e48ed317b4b069ebd66675ca2d1b3120770c0 | [
"MIT"
] | null | null | null | tests/test_checks_interface.py | ployt0/server_monitor | 835e48ed317b4b069ebd66675ca2d1b3120770c0 | [
"MIT"
] | null | null | null | tests/test_checks_interface.py | ployt0/server_monitor | 835e48ed317b4b069ebd66675ca2d1b3120770c0 | [
"MIT"
] | null | null | null | from checks_interface import deserialise_simple_csv
| 41.285714 | 100 | 0.768166 |
ff0c20d8ce541a65a62a8c8b06da2596d5632606 | 16,877 | py | Python | perses/tests/test_atom_mapping.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 99 | 2016-01-19T18:10:37.000Z | 2022-03-26T02:43:08.000Z | perses/tests/test_atom_mapping.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 878 | 2015-09-18T19:25:30.000Z | 2022-03-31T02:33:04.000Z | perses/tests/test_atom_mapping.py | schallerdavid/perses | 58bd6e626e027879e136f56e175683893e016f8c | [
"MIT"
] | 30 | 2015-09-21T15:26:35.000Z | 2022-01-10T20:07:24.000Z | import os
import pytest
import unittest
from perses.rjmc.atom_mapping import AtomMapper, AtomMapping, InvalidMappingException
from openff.toolkit.topology import Molecule
################################################################################
# LOGGER
#########################################################... | 54.092949 | 230 | 0.642591 |
ff0c43edc85bb45d1c3abc800ebe6bb6c12cb224 | 1,630 | py | Python | app/api.py | amelie-fri/munch-api | cbb205acbb5b1a107862cd8a53197de5317a26e4 | [
"MIT"
] | 2 | 2020-09-21T08:22:11.000Z | 2020-09-22T07:58:16.000Z | app/api.py | amelie-fri/munch-api | cbb205acbb5b1a107862cd8a53197de5317a26e4 | [
"MIT"
] | null | null | null | app/api.py | amelie-fri/munch-api | cbb205acbb5b1a107862cd8a53197de5317a26e4 | [
"MIT"
] | 1 | 2020-09-25T07:19:37.000Z | 2020-09-25T07:19:37.000Z | from flask import Flask, request, jsonify
from flask_restful import Resource, Api
from TeiParser import Family
from dataManager import parentManager
import os
# path to "_data/N" folder
path_N = os.path.join("_data", "N")
# create the parent manager
pm_N = parentManager(path_N)
# create the Flask application
app = Fl... | 28.596491 | 67 | 0.564417 |
ff0c4addd4684de4de158e744b10372828e5a73b | 99 | py | Python | globals/__init__.py | anmartinezs/pyseg | f991d8826e8d4e1eff70064183cb79425b7e9109 | [
"Apache-2.0"
] | 1 | 2018-09-11T17:10:52.000Z | 2018-09-11T17:10:52.000Z | globals/__init__.py | anmartinezs/pyseg | f991d8826e8d4e1eff70064183cb79425b7e9109 | [
"Apache-2.0"
] | null | null | null | globals/__init__.py | anmartinezs/pyseg | f991d8826e8d4e1eff70064183cb79425b7e9109 | [
"Apache-2.0"
] | null | null | null | __author__ = 'martinez'
import vtk
import numpy as np
from variables import *
from utils import * | 14.142857 | 23 | 0.767677 |
ff0cf49c7c7632c23c40457718207c17bbdfabac | 1,053 | py | Python | LeetCode/Linked List/23. Merge k Sorted Lists/solution.py | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | 17 | 2018-09-04T15:51:30.000Z | 2021-06-04T08:47:07.000Z | LeetCode/Linked List/23. Merge k Sorted Lists/solution.py | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | null | null | null | LeetCode/Linked List/23. Merge k Sorted Lists/solution.py | Ceruleanacg/Crack-Interview | 994dc0eee2f576fc543c90b82398dc8d957cdf09 | [
"MIT"
] | 6 | 2018-11-03T09:36:25.000Z | 2020-05-27T17:51:08.000Z | # Definition for singly-linked list.
| 26.325 | 79 | 0.555556 |
ff0e0ab82a47b14a5a9f6d4e884685c57fad317e | 1,391 | py | Python | Code/Python/ImageProcessing/RadialTransform/bSpline_test.py | Nailim/shuttler | a12ea89a1c6b289079ce61ebf8bf3361696f10b2 | [
"MIT"
] | null | null | null | Code/Python/ImageProcessing/RadialTransform/bSpline_test.py | Nailim/shuttler | a12ea89a1c6b289079ce61ebf8bf3361696f10b2 | [
"MIT"
] | null | null | null | Code/Python/ImageProcessing/RadialTransform/bSpline_test.py | Nailim/shuttler | a12ea89a1c6b289079ce61ebf8bf3361696f10b2 | [
"MIT"
] | null | null | null | # this resizes __1.jpt to x it's original size & it turns it grayscale
import cv
import numpy
import bSpline
if __name__ == "__main__": # this is not a module
scale = 10
# load image
#cv_img = cv.LoadImage("__1.jpg", cv.CV_LOAD_IMAGE_GRAYSCALE) # CV_LOAD_IMAGE_GRAYSCALE
cv_img = cv.LoadImage("__1.jpg", cv.C... | 33.119048 | 88 | 0.710999 |
ff0e759a560e8f0f6ef4777c4576a5ba668deba3 | 354 | py | Python | crawler/crawling/items.py | zookeeperss/scrapy-cluster | afb7be0ff8c272691761da01ef28172bad864f9b | [
"MIT"
] | null | null | null | crawler/crawling/items.py | zookeeperss/scrapy-cluster | afb7be0ff8c272691761da01ef28172bad864f9b | [
"MIT"
] | null | null | null | crawler/crawling/items.py | zookeeperss/scrapy-cluster | afb7be0ff8c272691761da01ef28172bad864f9b | [
"MIT"
] | 1 | 2020-07-26T08:24:03.000Z | 2020-07-26T08:24:03.000Z | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
from scrapy import Item, Field
| 19.666667 | 47 | 0.610169 |
ff0ec8bcc5fb92da0704cb54de56155385f7c9bc | 1,459 | py | Python | examples/c/cdecl.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | 161 | 2020-05-31T03:29:42.000Z | 2022-03-07T08:36:19.000Z | examples/c/cdecl.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | 74 | 2020-05-26T18:05:48.000Z | 2021-02-13T21:55:39.000Z | examples/c/cdecl.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | 19 | 2020-05-27T19:22:11.000Z | 2022-02-17T18:53:52.000Z | """ Implement alike logic as is done on www.cdecl.org
Try for example:
$ cdelc.py 'char **a;'
"""
import argparse
import io
from ppci.api import get_current_arch
from ppci.lang.c import CLexer, CParser, COptions, CContext, CSemantics
from ppci.lang.c.nodes import types, declarations
from ppci.lang.c.preprocessor im... | 29.18 | 78 | 0.727896 |
ff0eeef238c81de1bf1340b33fe05aefc2ffa217 | 1,462 | py | Python | minder_lastreview.py | hodea/hodea-review-minder | 6fff883c9b521be59c6d996edeafa25074be7a21 | [
"MIT"
] | null | null | null | minder_lastreview.py | hodea/hodea-review-minder | 6fff883c9b521be59c6d996edeafa25074be7a21 | [
"MIT"
] | 27 | 2017-12-13T19:10:36.000Z | 2018-11-20T09:21:23.000Z | minder_lastreview.py | hodea/hodea-review-minder | 6fff883c9b521be59c6d996edeafa25074be7a21 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 26 19:38:29 2018
@author: Daniel
"""
import argparse
import os
from minder_config import minder_cfg
from minder_database import minder_db
from minder_htmlreport import minder_report
import time
import hashlib
import uuid
| 29.836735 | 92 | 0.487004 |
ff0efbaac9950eb55c068dc1d25ca25669b5b53d | 189 | py | Python | build/lib/NaMAZU/onnx_api/__init__.py | NMZ0429/NaMAZU | 46ac3a5fab6fc21bbef323e16daadfd4111e2e68 | [
"Apache-2.0"
] | 5 | 2021-09-22T20:17:22.000Z | 2021-11-26T07:09:18.000Z | build/lib/NaMAZU/onnx_api/__init__.py | NMZ0429/NaMAZU | 46ac3a5fab6fc21bbef323e16daadfd4111e2e68 | [
"Apache-2.0"
] | null | null | null | build/lib/NaMAZU/onnx_api/__init__.py | NMZ0429/NaMAZU | 46ac3a5fab6fc21bbef323e16daadfd4111e2e68 | [
"Apache-2.0"
] | null | null | null | __all__ = ["MiDASInference", "U2NetInference", "RealESRGANInference"]
from .midas import MiDASInference
from .segmentation import U2NetInference
from .real_esr import RealESRGANInference
| 27 | 69 | 0.825397 |
ff109f1e8d0d2b14f171554da2663b60fd683a02 | 495 | py | Python | practice/aboutfunctions.py | mrElnekave/Hallow-Valley | 6c3ba0dc3932839941a00362da0212850b2b20a6 | [
"MIT"
] | null | null | null | practice/aboutfunctions.py | mrElnekave/Hallow-Valley | 6c3ba0dc3932839941a00362da0212850b2b20a6 | [
"MIT"
] | null | null | null | practice/aboutfunctions.py | mrElnekave/Hallow-Valley | 6c3ba0dc3932839941a00362da0212850b2b20a6 | [
"MIT"
] | null | null | null | def create_path(path:str):
"""
:param path:path is the relative path from the pixel images folder
:return: return the relative path from roots of project
"""
return current_path + path
#a function name is before the parameters and after the def
#function parameters: the values that the function kn... | 49.5 | 80 | 0.753535 |
ff12374036cabc8d3ecc65f6a2e6dd1c7c2493d3 | 5,171 | py | Python | tex2ebook.py | rzoller/tex2ebook | 57859343e2e4fd31a5701ee834019a5e7b9e8128 | [
"Apache-2.0"
] | 13 | 2015-01-03T13:07:07.000Z | 2017-01-03T16:06:28.000Z | tex2ebook.py | rkaravia/tex2ebook | 57859343e2e4fd31a5701ee834019a5e7b9e8128 | [
"Apache-2.0"
] | 1 | 2020-11-05T13:31:02.000Z | 2020-11-05T13:31:03.000Z | tex2ebook.py | rzoller/tex2ebook | 57859343e2e4fd31a5701ee834019a5e7b9e8128 | [
"Apache-2.0"
] | 6 | 2015-03-30T05:13:25.000Z | 2019-05-16T14:05:03.000Z | # run with --help to see available options
import os, sys, tempfile, shutil, re
from optparse import OptionParser
log_dir = os.path.abspath('_log')
# convert all files listed in indexfile
# convert a single file
# convert equations to images
# added 25.04.2013 ML
# infos de http://webcache.googleusercontent.com/... | 39.776923 | 186 | 0.704699 |
ff1501dcd7b3dad8c0c13f61bf195ed160da427f | 4,544 | py | Python | pyfritzhome/devicetypes/fritzhomedevicethermostat.py | Gezzo42/python-fritzhome | 2edbd521163b9f9477400f4646c13df9ddc73db5 | [
"MIT"
] | null | null | null | pyfritzhome/devicetypes/fritzhomedevicethermostat.py | Gezzo42/python-fritzhome | 2edbd521163b9f9477400f4646c13df9ddc73db5 | [
"MIT"
] | null | null | null | pyfritzhome/devicetypes/fritzhomedevicethermostat.py | Gezzo42/python-fritzhome | 2edbd521163b9f9477400f4646c13df9ddc73db5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
from .fritzhomedevicebase import FritzhomeDeviceBase
from .fritzhomedevicefeatures import FritzhomeDeviceFeatures
_LOGGER = logging.getLogger(__name__)
| 33.167883 | 88 | 0.626981 |
ff18552d2ab970009d07a39acf26b2dfab64a7a4 | 14,721 | py | Python | UI/mainUI.py | steenzout/python-storj-gui | 5e81898f8a8a97f8ffa91563e20cf8b851075c64 | [
"MIT"
] | null | null | null | UI/mainUI.py | steenzout/python-storj-gui | 5e81898f8a8a97f8ffa91563e20cf8b851075c64 | [
"MIT"
] | null | null | null | UI/mainUI.py | steenzout/python-storj-gui | 5e81898f8a8a97f8ffa91563e20cf8b851075c64 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import threading
import storj.exception as sjexc
from PyQt4 import QtCore, QtGui
from .qt_interfaces.dashboard_ui import Ui_MainMenu
from .bucket_edition import BucketEditingUI
from .client_config import ClientConfigurationUI
from .engine import StorjEngine
from .file_download... | 42.180516 | 155 | 0.611643 |
ff18e68d25414cdb3fdcaa970634bcf4be8109ba | 7,008 | py | Python | biocircuits/reg.py | justinbois/biocircuits | 4f696be5a240ce6157e331d67bb78c3b2b3b88cf | [
"BSD-3-Clause"
] | 3 | 2021-03-08T06:19:39.000Z | 2022-03-27T12:59:51.000Z | biocircuits/reg.py | justinbois/be150 | 96afe62ff40276f81d8a86eaa7b54d442517eec7 | [
"BSD-3-Clause"
] | 7 | 2019-04-14T22:14:20.000Z | 2021-05-07T16:51:05.000Z | biocircuits/reg.py | justinbois/be150 | 96afe62ff40276f81d8a86eaa7b54d442517eec7 | [
"BSD-3-Clause"
] | 4 | 2019-04-14T21:24:55.000Z | 2022-03-27T12:59:58.000Z | def rep_hill(x, n):
"""Dimensionless production rate for a gene repressed by x.
Parameters
----------
x : float or NumPy array
Concentration of repressor.
n : float
Hill coefficient.
Returns
-------
output : NumPy array or float
1 / (1 + x**n)
"""
return... | 25.67033 | 80 | 0.56835 |
ff18e96c20d7d388479a01b1d0934ac6e969a33f | 2,071 | py | Python | fourpisky/log_config.py | 4pisky/fourpisky-core | 1dc9c4f73dfef075e2a27c3c8453d811a5a99e58 | [
"BSD-2-Clause"
] | 2 | 2016-08-25T22:20:58.000Z | 2018-11-18T21:16:11.000Z | fourpisky/log_config.py | 4pisky/fourpisky-core | 1dc9c4f73dfef075e2a27c3c8453d811a5a99e58 | [
"BSD-2-Clause"
] | 2 | 2016-11-01T14:10:58.000Z | 2016-11-01T14:11:39.000Z | fourpisky/log_config.py | 4pisky/fourpisky-core | 1dc9c4f73dfef075e2a27c3c8453d811a5a99e58 | [
"BSD-2-Clause"
] | null | null | null | import logging
from fourpisky.reports import EmailHandler
from fourpisky.local import contacts
full_date_fmt = "%y-%m-%d (%a) %H:%M:%S"
short_date_fmt = "%H:%M:%S"
verbose_formatter = logging.Formatter(
'%(asctime)s:%(name)s:%(levelname)s:%(message)s',
# '%(asctime)s:%(levelname)s:%(message)s',
... | 33.403226 | 78 | 0.701593 |
ff19f80ce54b21669a5438b2e634f31309d289a7 | 602 | py | Python | Python Advanced/Advanced/Tuples and Sets/Lab/Task05.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | 1 | 2022-03-16T10:23:04.000Z | 2022-03-16T10:23:04.000Z | Python Advanced/Advanced/Tuples and Sets/Lab/Task05.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | Python Advanced/Advanced/Tuples and Sets/Lab/Task05.py | IvanTodorovBG/SoftUni | 7b667f6905d9f695ab1484efbb02b6715f6d569e | [
"MIT"
] | null | null | null | n = int(input())
vip_guest = set()
regular_guest = set()
for _ in range(n):
reservation_code = input()
if reservation_code[0].isdigit():
vip_guest.add(reservation_code)
else:
regular_guest.add(reservation_code)
command = input()
while command != "END":
if command[0].isdigit():
... | 17.705882 | 51 | 0.669435 |
ff1d37048cb854203f9a4fa6e024de7bc7ef651a | 356 | py | Python | exercicios-Python/desaf109/pythonteste.py | marcelo-py/Exercicios-Python | d654d54821983897dbc377a2d3db97671dd75b5b | [
"MIT"
] | null | null | null | exercicios-Python/desaf109/pythonteste.py | marcelo-py/Exercicios-Python | d654d54821983897dbc377a2d3db97671dd75b5b | [
"MIT"
] | null | null | null | exercicios-Python/desaf109/pythonteste.py | marcelo-py/Exercicios-Python | d654d54821983897dbc377a2d3db97671dd75b5b | [
"MIT"
] | null | null | null | from desaf109 import moeda
p = float(input('Digite um preo: R$'))
print('A metade de {} {}'.format(moeda.moeda(p), moeda.metade(p, True)))
print('O dobro de {} {}'.format(moeda.moeda(p), moeda.dobro(p, True)))
print('Se adcionarmos 10% fica {}'.format(moeda.aumentar(p, 10, True)))
print('Se tirarmos 13% fica {}'.for... | 59.333333 | 74 | 0.671348 |
ff1fdf4c603a65101e9db8bef4cb3a81cab16a6b | 1,153 | py | Python | src/curt/curt/modules/vision/vision_processor_service.py | sanyaade-teachings/cep | 59e22b148c3a95eff521ce75cf4eacbcfb074115 | [
"MIT"
] | 108 | 2021-08-09T17:10:39.000Z | 2022-03-21T21:59:03.000Z | src/curt/curt/modules/vision/vision_processor_service.py | sanyaade-teachings/cep | 59e22b148c3a95eff521ce75cf4eacbcfb074115 | [
"MIT"
] | 15 | 2021-09-19T01:25:25.000Z | 2022-03-28T18:47:49.000Z | src/curt/curt/modules/vision/vision_processor_service.py | sanyaade-teachings/cep | 59e22b148c3a95eff521ce75cf4eacbcfb074115 | [
"MIT"
] | 14 | 2021-08-10T04:42:17.000Z | 2022-03-28T16:30:34.000Z | """
Copyright (C) Cortic Technology Corp. - All Rights Reserved
Written by Michael Ng <michaelng@cortic.ca>, 2021
"""
# need to advertise different processor type, eg CPU, GPU, TPU
import traceback
import logging
from curt.base_service import BaseService
| 32.027778 | 62 | 0.565481 |
ff204abc808df6bc7b2066510508ef7023f10267 | 21 | py | Python | src_py/hat/gateway/devices/modbus/__init__.py | hat-open/hat-gateway | 43d02e3809a1f9dfcb6ee797bb7034b61dd3c469 | [
"Apache-2.0"
] | 2 | 2022-02-01T13:43:08.000Z | 2022-02-24T09:30:36.000Z | src_py/hat/gateway/devices/modbus/__init__.py | hat-open/hat-gateway | 43d02e3809a1f9dfcb6ee797bb7034b61dd3c469 | [
"Apache-2.0"
] | null | null | null | src_py/hat/gateway/devices/modbus/__init__.py | hat-open/hat-gateway | 43d02e3809a1f9dfcb6ee797bb7034b61dd3c469 | [
"Apache-2.0"
] | null | null | null | """Modbus devices"""
| 10.5 | 20 | 0.619048 |
205c30821b9360c92edbacec46a9037da22b2a7d | 1,450 | py | Python | lamp/neuralnets.py | bdevl/PGMCPC | cac2fe4304ae42ef2a0d94219b4349d51e86ab2d | [
"MIT"
] | 3 | 2020-10-23T13:40:56.000Z | 2022-02-10T03:42:52.000Z | lamp/neuralnets.py | pkmtum/generative-physics-informed-pde | 63ec383da0f2dbf0d8ffbbb44a670e90d07c132e | [
"MIT"
] | null | null | null | lamp/neuralnets.py | pkmtum/generative-physics-informed-pde | 63ec383da0f2dbf0d8ffbbb44a670e90d07c132e | [
"MIT"
] | null | null | null | import lamp.modules
import torch
import numpy as np
from lamp.utils import get_activation_function
| 26.851852 | 117 | 0.648276 |
205c8698d1be613dcc084ddfdcc8d9120bb54da7 | 130 | py | Python | PythonExercicios/ex010.py | VitorFRodrigues/Python-curso | af75ff4a7ca14bc7e67b4f3362af837d355b1746 | [
"MIT"
] | null | null | null | PythonExercicios/ex010.py | VitorFRodrigues/Python-curso | af75ff4a7ca14bc7e67b4f3362af837d355b1746 | [
"MIT"
] | null | null | null | PythonExercicios/ex010.py | VitorFRodrigues/Python-curso | af75ff4a7ca14bc7e67b4f3362af837d355b1746 | [
"MIT"
] | null | null | null | n = float(input('Quanto dinheiro voc tem na carteira? R$'))
print('Com R${:.2f} voc pode comprar US${:.2f}.'.format(n, n/3.27))
| 43.333333 | 68 | 0.646154 |
205c895c1f60cd3b978288b5cd1339799a85f756 | 3,267 | py | Python | tests/data/expected_tabulated.py | CozyDoomer/pypistats | 39e4415c736d025d16aa0131d2107756d0f127fa | [
"MIT"
] | 1 | 2020-09-13T14:18:09.000Z | 2020-09-13T14:18:09.000Z | tests/data/expected_tabulated.py | CozyDoomer/pypistats | 39e4415c736d025d16aa0131d2107756d0f127fa | [
"MIT"
] | 5 | 2020-09-13T14:18:30.000Z | 2020-09-13T14:33:37.000Z | tests/data/expected_tabulated.py | Smirenost/pypistats | 431201080061ecd41d58b12ad4837de6883d66ae | [
"MIT"
] | null | null | null | EXPECTED_TABULATED_HTML = """
<table>
<thead>
<tr>
<th>category</th>
<th>date</th>
<th>downloads</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">2.6</td>
<td align="left">2018-08-15</td>
<td align="right">51</t... | 28.911504 | 44 | 0.379859 |
20605b002bc8502c420a5ef9e4b77ba1cb4d2244 | 2,474 | py | Python | pressio4py/apps/burgers1d.py | Pressio/pressio4py | 36676dbd112a7c7960ccbf302ff14d4376c819ec | [
"Unlicense",
"BSD-3-Clause"
] | 4 | 2020-07-06T20:01:39.000Z | 2022-03-05T09:23:40.000Z | pressio4py/apps/burgers1d.py | Pressio/pressio4py | 36676dbd112a7c7960ccbf302ff14d4376c819ec | [
"Unlicense",
"BSD-3-Clause"
] | 19 | 2020-02-27T20:52:53.000Z | 2022-01-13T16:24:49.000Z | pressio4py/apps/burgers1d.py | Pressio/pressio4py | 36676dbd112a7c7960ccbf302ff14d4376c819ec | [
"Unlicense",
"BSD-3-Clause"
] | 1 | 2022-03-03T16:05:09.000Z | 2022-03-03T16:05:09.000Z |
import numpy as np
import math
from scipy.sparse import csr_matrix, diags
from scipy import linalg
import time
try:
from numba import jit, njit
numbaOn = True
except ModuleNotFoundError:
numbaOn = False
if numbaOn:
else:
if numbaOn:
else:
| 28.113636 | 68 | 0.590542 |
20608dda313ebd7ffbdc01a5aeefc1d8ecdc5d47 | 5,029 | py | Python | src/model/model.py | Alexei95/FasTrCaps | c0986b77ece9c562dcce06156dffcb592c1f6c11 | [
"MIT"
] | 2 | 2020-08-26T15:33:31.000Z | 2021-01-30T22:56:30.000Z | src/model/model.py | Alexei95/FasTrCaps | c0986b77ece9c562dcce06156dffcb592c1f6c11 | [
"MIT"
] | null | null | null | src/model/model.py | Alexei95/FasTrCaps | c0986b77ece9c562dcce06156dffcb592c1f6c11 | [
"MIT"
] | null | null | null | import math
import pathlib
import sys
import torch
import torch.nn as nn
PROJECT_DIR = pathlib.Path(__file__).absolute().parent.parent.parent # main directory, the parent of src
if str(PROJECT_DIR) not in sys.path:
sys.path.append(str(PROJECT_DIR))
from src.model.ConvLayer import ConvLayer
from src.m... | 38.684615 | 105 | 0.573673 |
2061c5f307d5379a34411f50ff8d63a1748c107a | 2,444 | py | Python | whyis/blueprint/entity/get_entity.py | aswallace/whyis | 10a3e19f2a35e66618b323c5ec74dd60eeec9ab7 | [
"Apache-2.0"
] | 31 | 2018-05-30T02:41:23.000Z | 2021-10-17T01:25:20.000Z | whyis/blueprint/entity/get_entity.py | aswallace/whyis | 10a3e19f2a35e66618b323c5ec74dd60eeec9ab7 | [
"Apache-2.0"
] | 115 | 2018-04-07T00:59:11.000Z | 2022-03-02T03:06:45.000Z | whyis/blueprint/entity/get_entity.py | aswallace/whyis | 10a3e19f2a35e66618b323c5ec74dd60eeec9ab7 | [
"Apache-2.0"
] | 25 | 2018-04-07T00:49:55.000Z | 2021-09-28T14:29:18.000Z | from flask import current_app, request, Response, make_response
from rdflib import ConjunctiveGraph
from werkzeug.exceptions import abort
from depot.middleware import FileServeApp
from .entity_blueprint import entity_blueprint
from whyis.data_extensions import DATA_EXTENSIONS
from whyis.data_formats import DATA_FORMAT... | 43.642857 | 108 | 0.73036 |
2063c95543ab6e4ef6c980fc98b25c5894306406 | 9,816 | py | Python | tests/test_pipeline.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | tests/test_pipeline.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | tests/test_pipeline.py | phvu/cebes-python | 41e0a687feeac437eadcab1a4d1f0a041986bd4e | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 The Cebes Authors. All Rights Reserved.
#
# Licensed under the Apache License, version 2.0 (the "License").
# You may not use this work except in compliance with the License,
# which is available at www.apache.org/licenses/LICENSE-2.0
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRAN... | 40.9 | 110 | 0.640587 |
2064caf0142b4319c92d60dbabf59d75a465327e | 906 | py | Python | Chapter04/currency_converter/core/currency.py | ariwells2001/Python-Programming-Blueprints | 23981ab304e65bcc24560393c75fd5ee85c96ce5 | [
"MIT"
] | 72 | 2017-12-19T09:19:40.000Z | 2021-11-08T13:13:34.000Z | Chapter04/currency_converter/core/currency.py | ariwells2001/Python-Programming-Blueprints | 23981ab304e65bcc24560393c75fd5ee85c96ce5 | [
"MIT"
] | 20 | 2018-03-21T01:15:27.000Z | 2021-09-08T00:59:40.000Z | Chapter04/currency_converter/core/currency.py | ariwells2001/Python-Programming-Blueprints | 23981ab304e65bcc24560393c75fd5ee85c96ce5 | [
"MIT"
] | 53 | 2017-12-19T09:19:42.000Z | 2022-03-06T02:21:10.000Z | from enum import Enum
| 24.486486 | 31 | 0.590508 |
206a46f327f26de1a92c3d1bcec2ea680b114a57 | 6,822 | py | Python | kgtk/cli/wikidata_nodes_import.py | bhatiadivij/kgtk | 10890fa2c3460e199d327a0b66e0f71501738fe2 | [
"MIT"
] | null | null | null | kgtk/cli/wikidata_nodes_import.py | bhatiadivij/kgtk | 10890fa2c3460e199d327a0b66e0f71501738fe2 | [
"MIT"
] | null | null | null | kgtk/cli/wikidata_nodes_import.py | bhatiadivij/kgtk | 10890fa2c3460e199d327a0b66e0f71501738fe2 | [
"MIT"
] | null | null | null | """
Import wikidata nodes into KGTK file
"""
def add_arguments(parser):
"""
Parse arguments
Args:
parser (argparse.ArgumentParser)
"""
parser.add_argument("-i", action="store", type=str, dest="wikidat_file")
parser.add_argument("-o", action="store", type=str, dest="output_file")
p... | 31.730233 | 85 | 0.413515 |
206bdceed901242fca25b737a0e8e945f5ce902c | 54,328 | py | Python | training/train_nav.py | catalina17/EmbodiedQA | 492c2e907697691899e7fe2102b0b859059d4efd | [
"BSD-3-Clause"
] | 289 | 2018-06-14T22:51:20.000Z | 2022-02-09T19:48:37.000Z | training/train_nav.py | catalina17/EmbodiedQA | 492c2e907697691899e7fe2102b0b859059d4efd | [
"BSD-3-Clause"
] | 27 | 2018-06-26T07:57:51.000Z | 2022-03-11T23:22:02.000Z | training/train_nav.py | catalina17/EmbodiedQA | 492c2e907697691899e7fe2102b0b859059d4efd | [
"BSD-3-Clause"
] | 66 | 2018-06-14T23:34:32.000Z | 2022-03-25T11:16:09.000Z | import time
import argparse
from datetime import datetime
import logging
import numpy as np
import os
import torch
import torch.nn.functional as F
import torch.multiprocessing as mp
from models import NavCnnModel, NavCnnRnnModel, NavCnnRnnMultModel, NavPlannerControllerModel
from data import EqaDataLoader
from metrics ... | 40.84812 | 155 | 0.475445 |
206bea68e024108a3072a57ecb2075b2c8f91020 | 1,300 | py | Python | yarll/scripts/list_exps.py | hknozturk/yarll | c5293e6455e3debe6e4d4d21f713937a24a654f3 | [
"MIT"
] | 62 | 2016-11-05T19:27:11.000Z | 2018-09-20T13:29:39.000Z | yarll/scripts/list_exps.py | hknozturk/yarll | c5293e6455e3debe6e4d4d21f713937a24a654f3 | [
"MIT"
] | 4 | 2020-07-09T16:46:19.000Z | 2022-01-26T07:18:06.000Z | yarll/scripts/list_exps.py | hknozturk/yarll | c5293e6455e3debe6e4d4d21f713937a24a654f3 | [
"MIT"
] | 18 | 2016-11-24T14:17:15.000Z | 2018-07-04T16:33:00.000Z | import os
import json
import argparse
from pathlib import Path
import pandas as pd
import dateutil
parser = argparse.ArgumentParser()
parser.add_argument("directory", type=Path help="Path to the directory.")
if __name__ == '__main__':
main()
| 33.333333 | 134 | 0.606154 |
206c60f444384827b5b58347d59f704ffc3951d0 | 964 | py | Python | src/malign/alignment.py | tresoldi/malign | dad7f2585db3b12f2edbf587f591463aed7c98f5 | [
"MIT"
] | null | null | null | src/malign/alignment.py | tresoldi/malign | dad7f2585db3b12f2edbf587f591463aed7c98f5 | [
"MIT"
] | 1 | 2020-08-07T13:01:29.000Z | 2020-08-07T13:01:29.000Z | src/malign/alignment.py | tresoldi/malign | dad7f2585db3b12f2edbf587f591463aed7c98f5 | [
"MIT"
] | null | null | null | """
Module for the Alignment class.
The `Alignment` class is a simple data class that holds aligned sequences and
their score. It was originally a dictionary passed back and forth among
functions, for which a data class is a good replacement.
"""
from dataclasses import dataclass
from typing import Sequence, Hashable... | 25.368421 | 77 | 0.678423 |
206d8b5b08e4365864d96a5cc41f73122c66ff99 | 1,305 | py | Python | 0236_Lowest_Common_Ancestor_of_a_Binary_Tree.py | coldmanck/leetcode-python | f644b8a0711c96f312326b4d025e9be3340fec42 | [
"MIT"
] | 4 | 2021-01-11T09:53:58.000Z | 2022-01-18T13:11:54.000Z | 0236_Lowest_Common_Ancestor_of_a_Binary_Tree.py | coldmanck/leetcode-python | f644b8a0711c96f312326b4d025e9be3340fec42 | [
"MIT"
] | null | null | null | 0236_Lowest_Common_Ancestor_of_a_Binary_Tree.py | coldmanck/leetcode-python | f644b8a0711c96f312326b4d025e9be3340fec42 | [
"MIT"
] | 2 | 2020-04-13T13:55:48.000Z | 2020-08-25T16:16:11.000Z | # Runtime: 84 ms, faster than 22.95% of Python3 online submissions for Lowest Common Ancestor of a Binary Tree.
# Memory Usage: 23.1 MB, less than 91.67% of Python3 online submissions for Lowest Common Ancestor of a Binary Tree.
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# ... | 33.461538 | 116 | 0.532567 |
206ef09a2bc28f7ba5a8ff01cc6d9883d5038da6 | 18,167 | py | Python | src/main/python/scrumtools/github.py | TU-Berlin-DIMA/scrum-tools | f17b39f815d01b7a6f1e2b3cd46d7e99e3cf3118 | [
"Apache-2.0"
] | 1 | 2015-05-23T05:19:32.000Z | 2015-05-23T05:19:32.000Z | src/main/python/scrumtools/github.py | TU-Berlin-DIMA/scrum-tools | f17b39f815d01b7a6f1e2b3cd46d7e99e3cf3118 | [
"Apache-2.0"
] | null | null | null | src/main/python/scrumtools/github.py | TU-Berlin-DIMA/scrum-tools | f17b39f815d01b7a6f1e2b3cd46d7e99e3cf3118 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2010-2014 DIMA Research Group, TU Berlin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 42.150812 | 121 | 0.608686 |
2072a741b04f9c964e7ed9b4b5f47b7e8423121d | 3,628 | py | Python | cubam/MajorityModel.py | welinder/cubam | fe5ba700f1adbb489c69af311558d64370d73d36 | [
"BSD-3-Clause-Clear"
] | 20 | 2015-01-10T02:53:44.000Z | 2022-03-20T18:10:15.000Z | cubam/MajorityModel.py | afcarl/cubam | fe5ba700f1adbb489c69af311558d64370d73d36 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-01-30T17:02:51.000Z | 2019-01-30T17:02:51.000Z | cubam/MajorityModel.py | afcarl/cubam | fe5ba700f1adbb489c69af311558d64370d73d36 | [
"BSD-3-Clause-Clear"
] | 12 | 2016-02-22T02:43:55.000Z | 2021-09-19T20:50:09.000Z | from BinaryModel import *
from numpy.random import rand
| 27.484848 | 78 | 0.5543 |
2073f752394f61237cdcd24fae2aec0b516f1d64 | 2,016 | py | Python | visprotocol/server/test_multi_LED.py | ClandininLab/vis-protocol | d4438dccea3987b8f21648d439fe1c1349940024 | [
"MIT"
] | null | null | null | visprotocol/server/test_multi_LED.py | ClandininLab/vis-protocol | d4438dccea3987b8f21648d439fe1c1349940024 | [
"MIT"
] | null | null | null | visprotocol/server/test_multi_LED.py | ClandininLab/vis-protocol | d4438dccea3987b8f21648d439fe1c1349940024 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from flystim.screen import Screen, SubScreen
from flystim.draw import draw_screens
from flystim.stim_server import StimServer
from flystim.dlpc350 import make_dlpc350_objects
from math import pi
import matplotlib.pyplot as plt
if __name__ == '__main__':
main()
| 34.758621 | 185 | 0.650298 |
2074b6146e8831cccc4002f920981b1ef1a5685a | 2,511 | py | Python | UserInterfaces.py | StudentCV/TableSoccerCV | dcead6a3b53f959a2264a4f7372b3a9b6904b476 | [
"Apache-2.0"
] | 10 | 2016-06-17T10:30:27.000Z | 2021-04-10T19:46:41.000Z | UserInterfaces.py | StudentCV/TableSoccerCV | dcead6a3b53f959a2264a4f7372b3a9b6904b476 | [
"Apache-2.0"
] | null | null | null | UserInterfaces.py | StudentCV/TableSoccerCV | dcead6a3b53f959a2264a4f7372b3a9b6904b476 | [
"Apache-2.0"
] | 1 | 2019-03-28T22:16:06.000Z | 2019-03-28T22:16:06.000Z | #Copyright 2016 StudentCV
#Copyright and related rights are licensed under the
#Solderpad Hardware License, Version 0.51 (the License);
#you may not use this file except in compliance with the License.
#You may obtain a copy of the License at http://solderpad.org/licenses/SHL-0.51.
#Unless required by applicable law or... | 26.712766 | 82 | 0.589805 |
207541c4f4a46b92967908249bf629d6ac8f4fb1 | 6,335 | py | Python | data/external/repositories/115375/hail-seizure-master/train.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/115375/hail-seizure-master/train.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2015-12-10T16:46:02.000Z | 2018-05-21T23:01:55.000Z | data/external/repositories/115375/hail-seizure-master/train.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | #!/usr/bin/env python3
import python.utils as utils
import os
import joblib
import pickle
import pdb
if __name__ == '__main__':
# get and parse CLI options
parser = utils.get_parser()
args = parser.parse_args()
main(args.settings,
verbose=args.verbose,
save_training_detailed=args.... | 38.865031 | 81 | 0.424467 |
20778423e20ac6661734493d2303bc03ce7d5df0 | 982 | py | Python | tests/scraper/models.py | teolemon/django-dynamic-scraper | 2a46df8828fa8dcf4f74315abe99cc37b214b2e8 | [
"BSD-3-Clause"
] | null | null | null | tests/scraper/models.py | teolemon/django-dynamic-scraper | 2a46df8828fa8dcf4f74315abe99cc37b214b2e8 | [
"BSD-3-Clause"
] | null | null | null | tests/scraper/models.py | teolemon/django-dynamic-scraper | 2a46df8828fa8dcf4f74315abe99cc37b214b2e8 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from dynamic_scraper.models import Scraper, SchedulerRuntime
from scrapy.contrib.djangoitem import DjangoItem
| 35.071429 | 107 | 0.726069 |
207a4de3d61bc090e22bce94c09268f291db401d | 395 | py | Python | users/models.py | lizooo/webpage | 4a203ad04991a4ae54d6bd1179054715b56095aa | [
"MIT"
] | 1 | 2021-12-16T15:56:35.000Z | 2021-12-16T15:56:35.000Z | users/models.py | Na11a/webpage | 29ba3ecee7c122a7ce92c6053077f00056e6ce28 | [
"MIT"
] | 6 | 2020-04-25T17:43:43.000Z | 2021-11-04T20:02:46.000Z | users/models.py | Na11a/webpage | 29ba3ecee7c122a7ce92c6053077f00056e6ce28 | [
"MIT"
] | 10 | 2020-10-05T12:55:54.000Z | 2021-11-21T12:03:30.000Z | from django.db import models
# Create your models here.
from django.db import models
from datetime import datetime
| 26.333333 | 67 | 0.756962 |
207a528acd1c6078894046fa653d5ad571c45a65 | 1,038 | py | Python | doctable/textmodels/parsetreedoc.py | devincornell/sqlitedocuments | 16923bb3b91af5104140e49045efdc612afbc310 | [
"MIT"
] | 1 | 2019-06-19T20:27:55.000Z | 2019-06-19T20:27:55.000Z | doctable/textmodels/parsetreedoc.py | devincornell/sqlitedocuments | 16923bb3b91af5104140e49045efdc612afbc310 | [
"MIT"
] | 21 | 2019-04-12T01:08:20.000Z | 2020-11-09T18:28:41.000Z | doctable/textmodels/parsetreedoc.py | devincornell/sqlitedocuments | 16923bb3b91af5104140e49045efdc612afbc310 | [
"MIT"
] | null | null | null |
from typing import Any
from .basedoc import BaseDoc
from .parsetree import ParseTree
| 28.833333 | 85 | 0.633911 |
207ce01859ee49a195d1d997b32d1fc62a2fd809 | 10,063 | py | Python | corehq/motech/openmrs/finders.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | corehq/motech/openmrs/finders.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | corehq/motech/openmrs/finders.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | """
PatientFinders are used to find OpenMRS patients that correspond to
CommCare cases if none of the patient identifiers listed in
OpenmrsCaseConfig.match_on_ids have successfully matched a patient.
See `README.md`__ for more context.
"""
import logging
from collections import namedtuple
from functools import partial... | 39.61811 | 109 | 0.649111 |
207cece5083a3bf4d7a32eb8cf668d2c4b468041 | 91 | py | Python | Chapter05/examine_tar_file_content.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 116 | 2018-12-21T01:05:47.000Z | 2022-03-23T21:41:41.000Z | Chapter05/examine_tar_file_content.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 2 | 2021-03-31T19:36:19.000Z | 2021-06-10T22:29:26.000Z | Chapter05/examine_tar_file_content.py | add54/ADMIN_SYS_PYTHON | 5a6d9705537c8663c8f7b0f45d29ccc87b6096e7 | [
"MIT"
] | 147 | 2018-12-19T14:10:32.000Z | 2022-03-20T11:03:20.000Z | import tarfile
tar_file = tarfile.open("work.tar.gz", "r:gz")
print(tar_file.getnames())
| 15.166667 | 46 | 0.714286 |
207dbca61480d6630a2424d70a7f583f2e795a69 | 263 | py | Python | main/__init__.py | graingert/LiteBot | 8ce84fb9e150e532adc4d5c549b0c04f208ba20c | [
"MIT"
] | null | null | null | main/__init__.py | graingert/LiteBot | 8ce84fb9e150e532adc4d5c549b0c04f208ba20c | [
"MIT"
] | null | null | null | main/__init__.py | graingert/LiteBot | 8ce84fb9e150e532adc4d5c549b0c04f208ba20c | [
"MIT"
] | null | null | null | from main import status, tps, server_commands, scoreboard
| 29.222222 | 58 | 0.737643 |
207de260265c6907b91ff91673f6e28b96b0eef2 | 959 | py | Python | rsatools/rp.py | SteelShredder/rsa-tools | 17a3441a7f00b68674a48477eee7b31449eebf6f | [
"MIT"
] | null | null | null | rsatools/rp.py | SteelShredder/rsa-tools | 17a3441a7f00b68674a48477eee7b31449eebf6f | [
"MIT"
] | null | null | null | rsatools/rp.py | SteelShredder/rsa-tools | 17a3441a7f00b68674a48477eee7b31449eebf6f | [
"MIT"
] | null | null | null | from .decrypt import decrypt as d
from .encrypt import encrypt as e
from .generatekeys import genkeys as g
| 23.390244 | 47 | 0.519291 |
207fd602e53b75231f396c0ed8874c586d12e870 | 17,721 | py | Python | thrift/gen-py/hello/UserExchange.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2018-04-14T16:28:39.000Z | 2021-11-14T12:08:02.000Z | thrift/gen-py/hello/UserExchange.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 3 | 2022-02-14T10:38:51.000Z | 2022-02-27T16:01:16.000Z | thrift/gen-py/hello/UserExchange.py | amitsaha/playground | 82cb5ac02ac90d3fa858a5153b0a5705187c14ce | [
"Unlicense"
] | 4 | 2015-07-07T01:01:27.000Z | 2019-04-12T05:38:26.000Z | #
# Autogenerated by Thrift Compiler (0.9.1)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
... | 29.05082 | 188 | 0.668585 |
20800899334a7f9045e3040d9fc79c07a6e2cb14 | 784 | py | Python | api/db/db.py | bcgov/data-stream | 2d8fbf3843ee765ee102f306993fdbc742aca5d8 | [
"Apache-2.0"
] | 1 | 2019-02-10T08:27:22.000Z | 2019-02-10T08:27:22.000Z | api/db/db.py | bcgov/data-stream | 2d8fbf3843ee765ee102f306993fdbc742aca5d8 | [
"Apache-2.0"
] | 18 | 2019-02-09T01:02:09.000Z | 2022-03-30T23:04:24.000Z | api/db/db.py | bcgov/data-stream | 2d8fbf3843ee765ee102f306993fdbc742aca5d8 | [
"Apache-2.0"
] | 2 | 2019-02-09T06:36:54.000Z | 2019-02-12T09:52:58.000Z | from mongoengine import connect
from config import Config
from db.models.subscriptions import Subscriptions
| 34.086957 | 68 | 0.633929 |
2080236000439e0ed58e5a725a9936f7390f4727 | 6,490 | py | Python | src/hg/makeDb/scripts/cd8Escape/process_epitopes.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 171 | 2015-04-22T15:16:02.000Z | 2022-03-18T20:21:53.000Z | src/hg/makeDb/scripts/cd8Escape/process_epitopes.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 60 | 2016-10-03T15:15:06.000Z | 2022-03-30T15:21:52.000Z | src/hg/makeDb/scripts/cd8Escape/process_epitopes.py | andypohl/kent | af7a004c8f3fa909cd8c2cfc2e5bea60e3421cd1 | [
"MIT"
] | 80 | 2015-04-16T10:39:48.000Z | 2022-03-29T16:36:30.000Z | import os
import re
import gzip
import argparse
import pandas as pd
import numpy as np
from collections import defaultdict
def get_args():
"""
Parse command line arguments
"""
parser = argparse.ArgumentParser(description="Method to create track for escape mutations")
parser.add_argument("-xlsx",... | 33.112245 | 109 | 0.495069 |
20814154949781ec0720ced4bfe5f982eaceb787 | 2,268 | py | Python | plugins/dnshome_de_srvc.py | ppetr/ddupdate | ed1c16349d5900618e7d6d2322aab3d287f92860 | [
"MIT"
] | null | null | null | plugins/dnshome_de_srvc.py | ppetr/ddupdate | ed1c16349d5900618e7d6d2322aab3d287f92860 | [
"MIT"
] | null | null | null | plugins/dnshome_de_srvc.py | ppetr/ddupdate | ed1c16349d5900618e7d6d2322aab3d287f92860 | [
"MIT"
] | null | null | null | """
ddupdate plugin updating data on dnshome.de.
See: ddupdate(8)
See: https://www.dnshome.de/
"""
from typing import AnyStr
from logging import Logger
from ddupdate.ddplugin import ServicePlugin, ServiceError
from ddupdate.ddplugin import http_basic_auth_setup, get_response, IpAddr
| 31.068493 | 78 | 0.642416 |
2081deed960bb703ad8647423a60570315d1aa3c | 130 | py | Python | debug.py | codingjerk/ztd.blunders-web | 38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83 | [
"MIT"
] | null | null | null | debug.py | codingjerk/ztd.blunders-web | 38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83 | [
"MIT"
] | null | null | null | debug.py | codingjerk/ztd.blunders-web | 38d4c1049dc3d0bd0b4294ffa419d25cbfbf2b83 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from app import app
app.run(host = '0.0.0.0', port = 8089, debug = True, threaded = False, processes = 1)
| 21.666667 | 85 | 0.653846 |
2081f91a4c6fb4212b9597707979f9847c86b694 | 4,838 | py | Python | tests/test_ms_sql_server.py | changrunner/zeppos_microsoft_sql_server | d3c9ddbadfadd2262b8d9c6751df9026220e4b75 | [
"Apache-2.0"
] | null | null | null | tests/test_ms_sql_server.py | changrunner/zeppos_microsoft_sql_server | d3c9ddbadfadd2262b8d9c6751df9026220e4b75 | [
"Apache-2.0"
] | null | null | null | tests/test_ms_sql_server.py | changrunner/zeppos_microsoft_sql_server | d3c9ddbadfadd2262b8d9c6751df9026220e4b75 | [
"Apache-2.0"
] | null | null | null | import unittest
from zeppos_microsoft_sql_server.ms_sql_server import MsSqlServer
import pandas as pd
import pyodbc
import os
if __name__ == '__main__':
unittest.main()
| 51.468085 | 135 | 0.670525 |
20825b308b651659766c6c9a91b7118e25fa9654 | 827 | py | Python | test22.py | spatole12/ssw555tmashishningrohnitshivani2019Spring | 737f2ac2548c232c1181b0da4dd327d3a12f3c3e | [
"MIT"
] | null | null | null | test22.py | spatole12/ssw555tmashishningrohnitshivani2019Spring | 737f2ac2548c232c1181b0da4dd327d3a12f3c3e | [
"MIT"
] | null | null | null | test22.py | spatole12/ssw555tmashishningrohnitshivani2019Spring | 737f2ac2548c232c1181b0da4dd327d3a12f3c3e | [
"MIT"
] | 2 | 2019-03-09T22:28:21.000Z | 2019-04-29T21:09:38.000Z | import unittest
import io
import sys
from main import Gedcom
if __name__ == '__main__':
unittest.main() | 34.458333 | 78 | 0.648126 |
2082afade3820d1cb8855f41bc4382f224e85fa9 | 200 | py | Python | rest_framework_social_oauth2/settings.py | hrahmadi71/django-rest-framework-social-oauth2 | f9de220606bd08981b9d81ab80dd69d70ceb1988 | [
"MIT"
] | 613 | 2018-03-31T01:59:00.000Z | 2022-03-19T14:40:42.000Z | rest_framework_social_oauth2/settings.py | hrahmadi71/django-rest-framework-social-oauth2 | f9de220606bd08981b9d81ab80dd69d70ceb1988 | [
"MIT"
] | 132 | 2015-04-08T17:31:55.000Z | 2018-03-15T13:32:06.000Z | rest_framework_social_oauth2/settings.py | hrahmadi71/django-rest-framework-social-oauth2 | f9de220606bd08981b9d81ab80dd69d70ceb1988 | [
"MIT"
] | 118 | 2018-03-29T02:47:23.000Z | 2022-02-17T12:14:07.000Z | from django.conf import settings
DRFSO2_PROPRIETARY_BACKEND_NAME = getattr(settings, 'DRFSO2_PROPRIETARY_BACKEND_NAME', "Django")
DRFSO2_URL_NAMESPACE = getattr(settings, 'DRFSO2_URL_NAMESPACE', "")
| 40 | 96 | 0.83 |
2087972111b6fcd0c39cbcbfedd3e3b1270eb392 | 5,499 | py | Python | txircd/modules/core/bans_gline.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 19 | 2015-07-06T21:24:15.000Z | 2021-04-01T13:05:46.000Z | txircd/modules/core/bans_gline.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 37 | 2015-01-16T10:01:28.000Z | 2021-06-01T14:17:49.000Z | txircd/modules/core/bans_gline.py | guyguy2001/txircd | d548975a775a3582ebb2f480474cfa3e79a26b8c | [
"BSD-3-Clause"
] | 4 | 2016-09-15T02:48:43.000Z | 2020-01-14T17:23:50.000Z | from twisted.plugin import IPlugin
from twisted.words.protocols import irc
from txircd.config import ConfigValidationError
from txircd.module_interface import Command, ICommand, IModuleData, ModuleData
from txircd.modules.xlinebase import XLineBase
from txircd.utils import durationToSeconds, ircLower, now
from zope.int... | 33.944444 | 142 | 0.704855 |
208a55695ef5b4358c7fc67496a5d6443fd64738 | 3,552 | py | Python | errandpy/utility.py | DIAOZHUO/errandpy | 8465218db8b9be7871bb7d38286e9df42d5e9b9a | [
"MIT"
] | null | null | null | errandpy/utility.py | DIAOZHUO/errandpy | 8465218db8b9be7871bb7d38286e9df42d5e9b9a | [
"MIT"
] | null | null | null | errandpy/utility.py | DIAOZHUO/errandpy | 8465218db8b9be7871bb7d38286e9df42d5e9b9a | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy
import errandpy
"""
logFitting Parameter: a,b,c,d
normalized_param
"""
| 30.101695 | 83 | 0.530124 |
208a6e6d4af030e233066a14c7021ed7e69dabef | 1,576 | py | Python | API_AUTH_TEST.py | DaTiC0/cPanel-Python | e0a7ec4d3ad3908e2ff493f68a578468deac96fc | [
"Apache-2.0"
] | null | null | null | API_AUTH_TEST.py | DaTiC0/cPanel-Python | e0a7ec4d3ad3908e2ff493f68a578468deac96fc | [
"Apache-2.0"
] | null | null | null | API_AUTH_TEST.py | DaTiC0/cPanel-Python | e0a7ec4d3ad3908e2ff493f68a578468deac96fc | [
"Apache-2.0"
] | null | null | null |
# from logging import error
import requests
import urllib.parse as uparse
import config
import logging
# Enabling debugging at http.client level (requests->urllib3->http.client)
# you will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.
# the only thing missing will be the re... | 25.836066 | 117 | 0.75 |
208a944865cc3b2efa6d830a3ced85fa06ed73c4 | 3,369 | py | Python | myutils/pandas_util.py | stas00/fastai-misc | e7e8c18ed798f91b2e026c667f795f45992608b8 | [
"Apache-2.0"
] | 1 | 2018-06-01T17:39:59.000Z | 2018-06-01T17:39:59.000Z | myutils/pandas_util.py | stas00/fastai-misc | e7e8c18ed798f91b2e026c667f795f45992608b8 | [
"Apache-2.0"
] | null | null | null | myutils/pandas_util.py | stas00/fastai-misc | e7e8c18ed798f91b2e026c667f795f45992608b8 | [
"Apache-2.0"
] | null | null | null | # from https://github.com/ohmeow/pandas_examples
# import sys
# sys.path.append('/home/stas/fast.ai')
# from myutils.pandas_util import advanced_describe
import pandas as pd
######################### Data Examination ############################
# - made changes to unique_vals to show a small sample, regardless ho... | 41.592593 | 143 | 0.623034 |
208b0a423a689f212d0216be381d251035036c09 | 314 | bzl | Python | tensorflow/compiler/plugin/poplar/poplar.bzl | chenzhengda/tensorflow | 8debb698097670458b5f21d728bc6f734a7b5a53 | [
"Apache-2.0"
] | 74 | 2020-07-06T17:11:39.000Z | 2022-01-28T06:31:28.000Z | tensorflow/compiler/plugin/poplar/poplar.bzl | chenzhengda/tensorflow | 8debb698097670458b5f21d728bc6f734a7b5a53 | [
"Apache-2.0"
] | 9 | 2020-10-13T23:25:29.000Z | 2022-02-10T06:54:48.000Z | tensorflow/compiler/plugin/poplar/poplar.bzl | chenzhengda/tensorflow | 8debb698097670458b5f21d728bc6f734a7b5a53 | [
"Apache-2.0"
] | 12 | 2020-07-08T07:27:17.000Z | 2021-12-27T08:54:27.000Z | load(
"//tensorflow/core/platform:rules_cc.bzl",
"cc_library",
)
def poplar_cc_library(**kwargs):
""" Wrapper for inserting poplar specific build options.
"""
if not "copts" in kwargs:
kwargs["copts"] = []
copts = kwargs["copts"]
copts.append("-Werror=return-type")
cc_library(**kwargs)
| 19.625 | 58 | 0.656051 |
208b77d9848dd4e23b70112bbfeaf02f7d4d30a9 | 1,016 | py | Python | easy/9.Palindrome_Number.py | Leesoar/leetcode | e566513fc0e7055155157798f06089299bd44fd2 | [
"Apache-2.0"
] | 2 | 2018-03-04T23:29:49.000Z | 2019-04-23T01:13:12.000Z | easy/9.Palindrome_Number.py | Leesoar/leetcode | e566513fc0e7055155157798f06089299bd44fd2 | [
"Apache-2.0"
] | null | null | null | easy/9.Palindrome_Number.py | Leesoar/leetcode | e566513fc0e7055155157798f06089299bd44fd2 | [
"Apache-2.0"
] | 1 | 2018-03-05T09:58:59.000Z | 2018-03-05T09:58:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Question:
Determine whether an integer is a palindrome. Do this without extra space.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of converting the integer to string, note the restriction of using extra space.
You could also t... | 25.4 | 183 | 0.587598 |
208bc866b2ae4ae06bb7f254c3b642334b3aa7b8 | 598 | py | Python | scripts/lottery_prints.py | chibitrader/smartcotractlottery | 5208988437e71b8927f567d5b7d3d270d0ecdc2f | [
"MIT"
] | null | null | null | scripts/lottery_prints.py | chibitrader/smartcotractlottery | 5208988437e71b8927f567d5b7d3d270d0ecdc2f | [
"MIT"
] | null | null | null | scripts/lottery_prints.py | chibitrader/smartcotractlottery | 5208988437e71b8927f567d5b7d3d270d0ecdc2f | [
"MIT"
] | null | null | null | from brownie import Lottery, accounts, config, network
from web3 import Web3
| 27.181818 | 72 | 0.665552 |
208ff921c6f3b56395e223269bba951dc85c3d8d | 28,128 | py | Python | _build/jupyter_execute/curriculum-notebooks/Languages/FrenchVerbCodingConjugation/french-verb-conjugation.py | BryceHaley/curriculum-jbook | d1246799ddfe62b0cf5c389394a18c2904383437 | [
"CC-BY-4.0"
] | 1 | 2022-03-18T18:19:40.000Z | 2022-03-18T18:19:40.000Z | _build/jupyter_execute/curriculum-notebooks/Languages/FrenchVerbCodingConjugation/french-verb-conjugation.py | callysto/curriculum-jbook | ffb685901e266b0ae91d1250bf63e05a87c456d9 | [
"CC-BY-4.0"
] | null | null | null | _build/jupyter_execute/curriculum-notebooks/Languages/FrenchVerbCodingConjugation/french-verb-conjugation.py | callysto/curriculum-jbook | ffb685901e266b0ae91d1250bf63e05a87c456d9 | [
"CC-BY-4.0"
] | null | null | null | 
<a href="https://hub.callysto.ca/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fcallysto%2Fcurriculum-notebooks&branch=master&subPath=Languages/FrenchVerbCodingConjugation/F... | 33.091765 | 559 | 0.655041 |