hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
421af2a1f59a1b18591afc3f2b15c0f844e4476c
5,415
py
Python
edward2/trace.py
debbiemarkslab/edward2
d071268c0439b434b508fe23abd938a5effb7a70
[ "Apache-2.0" ]
null
null
null
edward2/trace.py
debbiemarkslab/edward2
d071268c0439b434b508fe23abd938a5effb7a70
[ "Apache-2.0" ]
null
null
null
edward2/trace.py
debbiemarkslab/edward2
d071268c0439b434b508fe23abd938a5effb7a70
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Edward2 Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
29.752747
80
0.68181
52bee6476b4b4e34db3565cbf98b64f204f42311
1,961
py
Python
napalm_logs/transport/__init__.py
Djailla/napalm-logs
94ff8ad31d5135401b65d396760cac8d765ba805
[ "Apache-2.0" ]
null
null
null
napalm_logs/transport/__init__.py
Djailla/napalm-logs
94ff8ad31d5135401b65d396760cac8d765ba805
[ "Apache-2.0" ]
null
null
null
napalm_logs/transport/__init__.py
Djailla/napalm-logs
94ff8ad31d5135401b65d396760cac8d765ba805
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' napalm-logs pluggable publisher. ''' from __future__ import absolute_import from __future__ import unicode_literals # Import python std lib import logging # Import napalm-logs pkgs # Exceptions from napalm_logs.exceptions import InvalidTransportException # Transport classes from napalm_log...
27.619718
91
0.746558
4bc2a9d009f698d080cc4ea2a76bc74f5a92c16d
266
py
Python
backend/sql_connection.py
Prince6112/Full-Stack-Grocery-Store
12fef2586befdac5a7a604afb069d8c005cfddaf
[ "MIT" ]
null
null
null
backend/sql_connection.py
Prince6112/Full-Stack-Grocery-Store
12fef2586befdac5a7a604afb069d8c005cfddaf
[ "MIT" ]
null
null
null
backend/sql_connection.py
Prince6112/Full-Stack-Grocery-Store
12fef2586befdac5a7a604afb069d8c005cfddaf
[ "MIT" ]
null
null
null
import mysql.connector __cnx=None def get_sql_connection(): global __cnx if __cnx is None: __cnx = mysql.connector.connect(user='root', password='root', host='127.0.0.1', database='gs') return __cnx
29.555556
70
0.567669
4a9ab410608615288103c278cf8f12eda62a2680
836
py
Python
setup.py
yarikoptic/pybids
d067fabc27a2b7d9745970831a21d90f092876e4
[ "MIT" ]
null
null
null
setup.py
yarikoptic/pybids
d067fabc27a2b7d9745970831a21d90f092876e4
[ "MIT" ]
null
null
null
setup.py
yarikoptic/pybids
d067fabc27a2b7d9745970831a21d90f092876e4
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages PACKAGES = find_packages() # Get version and release info, which is all stored in bids/version.py ver_file = os.path.join('bids', 'version.py') with open(ver_file) as f: exec(f.read()) opts = dict(name=NAME, maintainer=MAINTAINER, maint...
27.866667
70
0.62201
fdecdbb3b562d23aa39ca6e01272a78ecc2583af
12,477
py
Python
src/main.py
NU-Teams/flight-telemetry-display
3e776f5c7137eb57a9960dd2020b237f9e89e17a
[ "MIT" ]
3
2020-12-28T02:07:15.000Z
2020-12-30T00:03:10.000Z
src/main.py
NURocketry/laughing-octo-system
3e776f5c7137eb57a9960dd2020b237f9e89e17a
[ "MIT" ]
4
2020-12-23T02:31:55.000Z
2021-02-02T11:12:37.000Z
src/main.py
NU-Teams/flight-telemetry-display
3e776f5c7137eb57a9960dd2020b237f9e89e17a
[ "MIT" ]
1
2021-02-11T23:55:11.000Z
2021-02-11T23:55:11.000Z
import asyncio import os import sys import threading import time import aiohttp_jinja2 import jinja2 import psutil import pyqrcode import serial import serial.tools.list_ports import websockets from aiohttp import web AZUREKEY1 = "" AZUREKEY2 = "" # Load in azure keys from the computer environment try: AZUREKEY1...
36.165217
120
0.655606
4b71dd5f8cecb38cccd8170cb49d182e9a2ededf
3,690
py
Python
plugin/CustomerSupportArchive/chipDiagnostics/tools/json2.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
plugin/CustomerSupportArchive/NucStepSpatialV2/tools/json2.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
plugin/CustomerSupportArchive/autoCal/tools/json2.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
''' Expanded JSON fuctions ''' # Python 2 and 3 compatible from json import * import json as _json import numpy as _np import datetime as _dt import traceback as _tb class JSONEncoder( _json.JSONEncoder ): ''' Generic encoder to serialize complex objects. For speed efficiency, you might what to rebuild i...
27.333333
97
0.542547
d4b4c9cb5b41a44662758749e2d5986f557327b1
5,300
py
Python
WiredQT/plugin/MsgBox/_MsgBox.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
1
2021-12-18T09:17:08.000Z
2021-12-18T09:17:08.000Z
WiredQT/plugin/MsgBox/_MsgBox.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
null
null
null
WiredQT/plugin/MsgBox/_MsgBox.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
2
2021-12-18T09:15:53.000Z
2022-01-19T15:10:14.000Z
import gi import time gi.require_version('Gtk', '3.0') from gi.repository import Gtk,GObject,Gdk,Pango,GLib from wta_module import * # Generated By WiredGTK for Python: by Rocky Nuarin, 2018 Phils # #####################www.WireThemAll.com##################### class Handler(usercontrol): #WiredEvent def usercontrolev...
5,300
5,300
0.653208
9ffc3fb702df0f16808b755925dd0e9c191be673
20,853
py
Python
sdk/python/pulumi_gcp/diagflow/cx_version.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/diagflow/cx_version.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/diagflow/cx_version.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
43.993671
262
0.638853
f3bd9743be9bbafd133e8e4e27f103c0307ae6e8
781
py
Python
Algorithmic Toolbox/week5_dynamic_programming1/money_change_again.py
TSantosFigueira/Data-Structures-Algorithms
9787212d317cc2fdab1e7db6839ccf3b65245ffd
[ "MIT" ]
null
null
null
Algorithmic Toolbox/week5_dynamic_programming1/money_change_again.py
TSantosFigueira/Data-Structures-Algorithms
9787212d317cc2fdab1e7db6839ccf3b65245ffd
[ "MIT" ]
null
null
null
Algorithmic Toolbox/week5_dynamic_programming1/money_change_again.py
TSantosFigueira/Data-Structures-Algorithms
9787212d317cc2fdab1e7db6839ccf3b65245ffd
[ "MIT" ]
1
2022-01-05T19:54:17.000Z
2022-01-05T19:54:17.000Z
# python3 import math def change_naive(money): min_coins = float("inf") for num1 in range(money + 1): for num3 in range(money // 3 + 1): for num4 in range(money // 4 + 1): if 1 * num1 + 3 * num3 + 4 * num4 == money: min_coins = min(min_coins, num1 + num3...
24.40625
66
0.523688
4b53d9e51483131bc3a095fa50da22c836cbab01
2,385
py
Python
Chapter03/simulator.py
jvstinian/Python-Reinforcement-Learning-Projects
6c97c68351fc4af426cb5c3583d75aebfabac8aa
[ "MIT" ]
114
2018-10-20T15:32:59.000Z
2022-03-21T14:16:25.000Z
Chapter03/simulator.py
jvstinian/Python-Reinforcement-Learning-Projects
6c97c68351fc4af426cb5c3583d75aebfabac8aa
[ "MIT" ]
11
2018-10-18T12:39:42.000Z
2022-02-10T03:28:19.000Z
Chapter03/simulator.py
jvstinian/Python-Reinforcement-Learning-Projects
6c97c68351fc4af426cb5c3583d75aebfabac8aa
[ "MIT" ]
72
2018-10-12T13:02:32.000Z
2022-03-11T13:03:26.000Z
''' Created on 18 Sep 2017 @author: ywz ''' import gym, numpy from gym import spaces class Simulator: # Supported tasks: # v1: Reacher, HalfCheetah, Hopper, Swimmer, Walker2d, Ant, Humanoid # v0: CartPole, Acrobot, Pendulum def __init__(self, task='Swimmer'): self.task = task ...
28.73494
87
0.555975
bc1aa6c1301e3c18ae4ca36689e05c984d8004d4
13,810
py
Python
homeassistant/components/knx/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
homeassistant/components/knx/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
38
2020-07-23T07:14:08.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/knx/__init__.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Support KNX devices.""" import logging import voluptuous as vol from xknx import XKNX from xknx.devices import ActionCallback, DateTime, DateTimeBroadcastType, ExposeSensor from xknx.dpt import DPTArray, DPTBinary from xknx.exceptions import XKNXException from xknx.io import DEFAULT_MCAST_PORT, ConnectionConfig, Co...
34.438903
88
0.63635
3878d0390ceae7b26d82f8468e9a9a967fd2a65f
6,088
py
Python
dns-k8s-watcher.py
Pesir/utum-DNS-exporter
923193c5ed8f7f111140d6edf86d0546f118ed67
[ "BSD-2-Clause" ]
null
null
null
dns-k8s-watcher.py
Pesir/utum-DNS-exporter
923193c5ed8f7f111140d6edf86d0546f118ed67
[ "BSD-2-Clause" ]
null
null
null
dns-k8s-watcher.py
Pesir/utum-DNS-exporter
923193c5ed8f7f111140d6edf86d0546f118ed67
[ "BSD-2-Clause" ]
null
null
null
import signal from time import sleep from kubernetes import client, config from google.cloud import dns import logging import os def exitExporter(signum, frame): logging.info("Exit exporter") exit(0) def main(): config.load_incluster_config() dns_client = dns.Client.from_service_account_json('/etc/...
41.414966
115
0.550427
77a30e030a146aa6d1bcc93e5ad6b07ad878e00c
278
py
Python
hsi_toolkit/__init__.py
nfahlgren/hsi_toolkit_py
3a03c58bbeaf7b323fa345a22531fa00c56e68b6
[ "MIT" ]
22
2019-02-07T03:55:37.000Z
2021-09-26T06:47:07.000Z
hsi_toolkit/__init__.py
nfahlgren/hsi_toolkit_py
3a03c58bbeaf7b323fa345a22531fa00c56e68b6
[ "MIT" ]
2
2020-04-14T18:21:23.000Z
2020-11-11T08:07:38.000Z
hsi_toolkit/__init__.py
nfahlgren/hsi_toolkit_py
3a03c58bbeaf7b323fa345a22531fa00c56e68b6
[ "MIT" ]
15
2019-02-07T03:56:59.000Z
2022-02-24T07:42:57.000Z
from hsi_toolkit import anomaly_detectors from hsi_toolkit import classifiers from hsi_toolkit import endmember_extraction from hsi_toolkit import signature_detectors from hsi_toolkit import spectral_indices from hsi_toolkit import dim_reduction from hsi_toolkit import util
34.75
45
0.888489
8ec6f1eb155ab3ca9242020baec33e078087b4bd
4,004
py
Python
openregistry/lots/loki/views/lot_related_processes.py
bdmbdsm/openregistry.lots.loki
0b20efbb1f78f7748fcecb22ecc6fef836e793dd
[ "Apache-2.0" ]
null
null
null
openregistry/lots/loki/views/lot_related_processes.py
bdmbdsm/openregistry.lots.loki
0b20efbb1f78f7748fcecb22ecc6fef836e793dd
[ "Apache-2.0" ]
null
null
null
openregistry/lots/loki/views/lot_related_processes.py
bdmbdsm/openregistry.lots.loki
0b20efbb1f78f7748fcecb22ecc6fef836e793dd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from openregistry.lots.core.utils import ( json_view, context_unpack, APIResource, ) from openregistry.lots.core.utils import ( save_lot, oplotsresource, apply_patch, ) from openregistry.lots.core.interfaces import ILotManager from openregistry.lots.loki.validation import ( v...
42.147368
117
0.623377
1ef91ab0a42376b770e0b21eae07963c46dbb5a6
5,472
py
Python
InkSvgNest/inkSvgNest.py
JakubAndrysek/InkSvgNest
4b9104acc899f8033a5c930d1f376444a5158611
[ "MIT" ]
4
2021-07-07T15:58:44.000Z
2022-02-09T23:51:33.000Z
InkSvgNest/inkSvgNest.py
JakubAndrysek/InkSvgNest
4b9104acc899f8033a5c930d1f376444a5158611
[ "MIT" ]
null
null
null
InkSvgNest/inkSvgNest.py
JakubAndrysek/InkSvgNest
4b9104acc899f8033a5c930d1f376444a5158611
[ "MIT" ]
1
2021-07-24T14:27:56.000Z
2021-07-24T14:27:56.000Z
#!/usr/bin/env python # coding=utf-8 # # MIT License # # Copyright (c) 2021 Kuba Andrýsek # # 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 t...
34.2
88
0.601974
63d972033bccde36a2f4fd6f825cc6a3383bc43d
7,267
py
Python
aqt/jax/imagenet/configs/base_config.py
chulongc/google-research
b5065fb5c705499caee4dbc78c0e6cd649dbf186
[ "Apache-2.0" ]
1
2022-03-03T02:54:36.000Z
2022-03-03T02:54:36.000Z
aqt/jax/imagenet/configs/base_config.py
baicuya/google-research
d505782bcd21e150bbe7a396408e0e0dbb0cda87
[ "Apache-2.0" ]
null
null
null
aqt/jax/imagenet/configs/base_config.py
baicuya/google-research
d505782bcd21e150bbe7a396408e0e0dbb0cda87
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.117371
86
0.710747
10c35d6e1c1885c208f277ebf1f7ef2dbcd1eec2
447
py
Python
boa3/model/builtin/neometadatatype.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3/model/builtin/neometadatatype.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3/model/builtin/neometadatatype.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from boa3.model.identifiedsymbol import IdentifiedSymbol class __NeoMetadataType(IdentifiedSymbol): """ A class used to represent the metadata object """ def __init__(self): identifier = 'NeoMetadata' super().__init__(identifier) @property def shadowing_name(self) -> str: ...
20.318182
56
0.677852
0a916aa806bccf9a260e42ae622dda03c547df50
4,161
py
Python
temboo/core/Library/Amazon/S3/GetBucketNotification.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Amazon/S3/GetBucketNotification.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Amazon/S3/GetBucketNotification.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # GetBucketNotification # Retrieves the notification configuration of a specified bucket. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "...
42.459184
283
0.704158
9fbcebfc73778a5e2a69758aad92f13aa45d6fa1
1,430
py
Python
scripts/filter_classes_from_json.py
MrLeylo/yolact
236675e731f5cba1e6831473a9408600790c2ed9
[ "MIT" ]
null
null
null
scripts/filter_classes_from_json.py
MrLeylo/yolact
236675e731f5cba1e6831473a9408600790c2ed9
[ "MIT" ]
null
null
null
scripts/filter_classes_from_json.py
MrLeylo/yolact
236675e731f5cba1e6831473a9408600790c2ed9
[ "MIT" ]
null
null
null
import os import json import argparse present_classes = [1, 10, 25, 28, 29, 40, 41, 43, 44, 45, 66, 68, 74, 78, 80] annotated_classes = [1] parser = argparse.ArgumentParser( description='JSON parser') parser.add_argument('--json_in', default='./data/example.json', type=str) parser.add_argument('--json_out', defau...
37.631579
119
0.721678
f8a63dba59045f6e7adc731f5e29b77974186850
21,101
py
Python
tests/test_edge_cases.py
larrycameron80/ioc-finder
ae422333fd67134560f9e5c0d2a9e0e41fb92831
[ "MIT" ]
null
null
null
tests/test_edge_cases.py
larrycameron80/ioc-finder
ae422333fd67134560f9e5c0d2a9e0e41fb92831
[ "MIT" ]
null
null
null
tests/test_edge_cases.py
larrycameron80/ioc-finder
ae422333fd67134560f9e5c0d2a9e0e41fb92831
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pytest from ioc_finder import find_iocs @pytest.fixture def text_a(): """Provide some generic text for the tests below.""" return 'example.com is a nice domain if you consider http://bad.com/test/bingo.php to be bad. {} {} {} 1.2.3.4 192.64.55.61 bad1231...
33.125589
157
0.640444
3284c9a46dd3313d8e328080eb9a2b0764b57231
4,870
py
Python
cascade/key.py
brunorijsman/qkd-cascade
32fa65d45f81f08ac84867f8eea9ab93dfb1dbe2
[ "MIT" ]
10
2020-05-13T06:09:36.000Z
2022-03-27T13:02:38.000Z
cascade/key.py
brunorijsman/qkd-cascade
32fa65d45f81f08ac84867f8eea9ab93dfb1dbe2
[ "MIT" ]
1
2021-06-02T00:52:00.000Z
2021-06-02T00:52:00.000Z
cascade/key.py
brunorijsman/qkd-cascade
32fa65d45f81f08ac84867f8eea9ab93dfb1dbe2
[ "MIT" ]
6
2020-05-20T16:20:38.000Z
2021-08-19T04:47:15.000Z
import copy import random class Key: """ A key that the Cascade protocol reconciles. """ _random = random.Random() ERROR_METHOD_BERNOULLI = "bernoulli" ERROR_METHOD_EXACT = "exact" ERROR_METHODS = [ERROR_METHOD_BERNOULLI, ERROR_METHOD_EXACT] def __init__(self): """ Cre...
30.061728
99
0.567351
6f02ac0798ac9ed8d4b96960c222fabd95fd33ad
12,202
py
Python
src/bio2bel/cli.py
gokceneraslan/bio2bel
503c9d7ed71b3745f8142e34ea546b0a1fd342d1
[ "MIT" ]
null
null
null
src/bio2bel/cli.py
gokceneraslan/bio2bel
503c9d7ed71b3745f8142e34ea546b0a1fd342d1
[ "MIT" ]
null
null
null
src/bio2bel/cli.py
gokceneraslan/bio2bel
503c9d7ed71b3745f8142e34ea546b0a1fd342d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Aggregate CLI for all Bio2BEL projects.""" import logging import os import sys from typing import TextIO import click from tqdm import tqdm from .constants import config from .manager import AbstractManager, get_bio2bel_manager_classes from .manager.bel_manager import BELManagerMixin from...
33.800554
116
0.623832
ef9572b10822dd63909bb782791ec06eab7be30e
70
py
Python
RRG/helper/visualize.py
quentunahelper/game-theoretic-feedback-loop
659697cb1c7d43ca196eb169bac8131954b1c960
[ "MIT" ]
1
2015-01-22T02:44:32.000Z
2015-01-22T02:44:32.000Z
RRG/helper/visualize.py
qntnt/game-theoretic-feedback-loop
659697cb1c7d43ca196eb169bac8131954b1c960
[ "MIT" ]
null
null
null
RRG/helper/visualize.py
qntnt/game-theoretic-feedback-loop
659697cb1c7d43ca196eb169bac8131954b1c960
[ "MIT" ]
1
2015-02-20T22:44:12.000Z
2015-02-20T22:44:12.000Z
# robot['graph'].keys() === VERTICES def run(robot, map): return
14
36
0.6
4b5e7bc5929e5ae0d51d39dba47ef7e30c2c01b5
763
py
Python
manual_manage.py
TiMMaTTiee/bramsplanter
0ec2d66cee12b92d0a55be9601781129ef2bc58c
[ "MIT" ]
null
null
null
manual_manage.py
TiMMaTTiee/bramsplanter
0ec2d66cee12b92d0a55be9601781129ef2bc58c
[ "MIT" ]
2
2021-11-29T20:36:17.000Z
2021-11-29T20:37:13.000Z
manual_manage.py
TiMMaTTiee/bramsplanter
0ec2d66cee12b92d0a55be9601781129ef2bc58c
[ "MIT" ]
null
null
null
from app.interface import DatabaseInterface from utils.utils import check_password, get_hashed_password from datetime import datetime, timedelta # DB interface dbi = DatabaseInterface() def add_user(name, password): print('adding user') print(dbi.add_user(name, get_hashed_password(password))) def add_mois...
26.310345
75
0.707733
5363afdbb90482039935c31304ee1a97ae58a362
7,247
py
Python
stubs.min/System/ComponentModel/__init___parts/NullableConverter.py
denfromufa/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-07T11:15:45.000Z
2017-07-07T11:15:45.000Z
stubs.min/System/ComponentModel/__init___parts/NullableConverter.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/ComponentModel/__init___parts/NullableConverter.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class NullableConverter(TypeConverter): """ Provides automatic conversion between a nullable type and its underlying primitive type. NullableConverter(type: Type) """ def CanConvertFrom(self,*__args): """ CanConvertFrom(self: NullableConverter,context: ITypeDescriptorContext,sourceType: Type) -> bo...
42.881657
149
0.747068
acfb1227743e49efd04d3ebaad2f2ed1fbe4d9f7
3,179
py
Python
mp_sort/app/static/library.py
seancze/d2w_mini_project_mp_sort
aa472b168a7e1d238bf074e74773c3c71b0ba7af
[ "MIT" ]
null
null
null
mp_sort/app/static/library.py
seancze/d2w_mini_project_mp_sort
aa472b168a7e1d238bf074e74773c3c71b0ba7af
[ "MIT" ]
null
null
null
mp_sort/app/static/library.py
seancze/d2w_mini_project_mp_sort
aa472b168a7e1d238bf074e74773c3c71b0ba7af
[ "MIT" ]
null
null
null
from org.transcrypt.stubs.browser import * import random def gen_random_int(number, seed): random.seed(seed) array = list(range(number)) random.shuffle(array) return array def generate(): number = 10 seed = 200 # call gen_random_int() with the given number and seed # store it to the variable array array = ...
25.845528
98
0.702422
2f6cef306637237fc1a10e0f49334afec32447af
4,168
py
Python
tests/test_bin_trie.py
cburgdorf/py-trie
d4bf2a9b87f77f684b287664898bdfaebf54ddd7
[ "MIT" ]
null
null
null
tests/test_bin_trie.py
cburgdorf/py-trie
d4bf2a9b87f77f684b287664898bdfaebf54ddd7
[ "MIT" ]
null
null
null
tests/test_bin_trie.py
cburgdorf/py-trie
d4bf2a9b87f77f684b287664898bdfaebf54ddd7
[ "MIT" ]
null
null
null
import pytest from hypothesis import ( given, strategies as st, settings, ) from trie.binary import ( BinaryTrie, ) from trie.constants import ( BLANK_HASH, ) from trie.exceptions import ( NodeOverrideError, ) @given(k=st.lists(st.binary(min_size=32, max_size=32), min_size=100, max_size=100,...
32.310078
121
0.613724
d96e6bad3401acfde32ebae181df8fb2302560cf
529
py
Python
package.py
hugollm/pak
34e543b949d12f1b58a496ce845d1d625b94779c
[ "MIT" ]
32
2017-04-20T11:33:56.000Z
2019-01-08T19:13:36.000Z
package.py
hugollm/pak
34e543b949d12f1b58a496ce845d1d625b94779c
[ "MIT" ]
null
null
null
package.py
hugollm/pak
34e543b949d12f1b58a496ce845d1d625b94779c
[ "MIT" ]
2
2017-05-01T16:09:16.000Z
2017-05-02T19:49:52.000Z
name = 'foster' version = '0.1.0' packages = ['foster'] files = ['foster/samples', 'LICENSE'] requirements = ['twine >= 1, < 2'] scripts = ['foster=foster.main:run'] author = 'Hugo Leonardo Leão Mota' author_email = 'hugo.txt@gmail.com' license = 'MIT' url = 'https://github.com/hugollm/foster' keywords = 'foster pyt...
26.45
93
0.708885
a1f2d1d9d2583af47daaf3c44de9ea7571850384
61,865
py
Python
src/sage/combinat/tiling.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
2
2015-08-11T05:05:47.000Z
2019-05-15T17:27:25.000Z
src/sage/combinat/tiling.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/tiling.py
bopopescu/classic_diff_geom
2b1d88becbc8cb30962e0995cc78e429e0f5589f
[ "BSL-1.0" ]
1
2020-07-24T11:56:55.000Z
2020-07-24T11:56:55.000Z
r""" Tiling Solver Tiling a n-dimensional box into non-intersecting n-dimensional polyominoes. This uses dancing links code which is in Sage. Dancing links were originally introduced by Donald Knuth in 2000 [Knuth1]_. In particular, Knuth used dancing links to solve tilings of a region by 2d pentaminoes. Here we ex...
36.348414
232
0.49427
a537ae3b15fb03033d03fd1f5e721c527484cc72
995
py
Python
aerosandbox/aerodynamics/aero_3D/test_aero_3D/test_aero_buildup/draw_fuselage_aero.py
peterdsharpe/FastFlow3D
d02c8ff97fa84adcd9db988b09157695d9e2b318
[ "MIT" ]
1
2021-11-01T22:48:12.000Z
2021-11-01T22:48:12.000Z
aerosandbox/aerodynamics/aero_3D/test_aero_3D/test_aero_buildup/draw_fuselage_aero.py
peterdsharpe/FastFlow3D
d02c8ff97fa84adcd9db988b09157695d9e2b318
[ "MIT" ]
null
null
null
aerosandbox/aerodynamics/aero_3D/test_aero_3D/test_aero_buildup/draw_fuselage_aero.py
peterdsharpe/FastFlow3D
d02c8ff97fa84adcd9db988b09157695d9e2b318
[ "MIT" ]
null
null
null
import aerosandbox as asb import aerosandbox.numpy as np import matplotlib.pyplot as plt import aerosandbox.tools.pretty_plots as p fuselage = asb.Fuselage( xsecs=[ asb.FuselageXSec( xyz_c=[xi, 0, 0], radius=asb.Airfoil("naca0010").local_thickness(xi) ) for xi in np...
23.139535
68
0.627136
434598b38da25326a51a2ccbcbcdd222c386e0e3
4,956
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/instructiontype_f00a5f3142a336cc29bbaac751ef1a91.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/instructiontype_f00a5f3142a336cc29bbaac751ef1a91.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/instructiontype_f00a5f3142a336cc29bbaac751ef1a91.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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, ...
33.486486
156
0.629136
953429a77c9985b8d84aeeb9782dcf86716f47fc
186
py
Python
output/models/sun_data/attr_decl/ad_name/ad_name00101m/ad_name00101m3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/sun_data/attr_decl/ad_name/ad_name00101m/ad_name00101m3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/sun_data/attr_decl/ad_name/ad_name00101m/ad_name00101m3_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.sun_data.attr_decl.ad_name.ad_name00101m.ad_name00101m3_xsd.ad_name00101m3 import ( ElementWithAttr, Root, ) __all__ = [ "ElementWithAttr", "Root", ]
18.6
102
0.731183
2c8b1cfe9591529cf0150614ac5ec3ee4f6da073
11,772
py
Python
main_dnn.py
kant/music_transcription_MAPS
08e9ecd087c2b7d307f5296bd41e3e2be63a57b5
[ "MIT" ]
59
2017-12-12T21:51:48.000Z
2022-03-04T18:06:45.000Z
main_dnn.py
kant/music_transcription_MAPS
08e9ecd087c2b7d307f5296bd41e3e2be63a57b5
[ "MIT" ]
1
2018-04-19T02:52:09.000Z
2019-01-27T03:33:27.000Z
main_dnn.py
kant/music_transcription_MAPS
08e9ecd087c2b7d307f5296bd41e3e2be63a57b5
[ "MIT" ]
13
2017-12-13T21:45:16.000Z
2021-09-04T01:56:20.000Z
""" Summary: Piano automatic music transcription (AMT) on MAPS dataset. Author: Qiuqiang Kong Created: 2017.12.11 Modified: """ from __future__ import print_function import os import numpy as np import csv import time import pickle import cPickle import h5py import argparse import matplotlib.pyplot as plt import...
35.890244
108
0.60542
4709d8b8b6670ea4029dde3b3e44014135926319
2,358
py
Python
moviepy/audio/io/AudioFileClip.py
antiboredom/moviepy
3b797c6967a0dcd8a4b04b328d7d7a769c2058b4
[ "MIT" ]
1
2015-03-07T01:16:15.000Z
2015-03-07T01:16:15.000Z
moviepy/audio/io/AudioFileClip.py
antiboredom/moviepy
3b797c6967a0dcd8a4b04b328d7d7a769c2058b4
[ "MIT" ]
null
null
null
moviepy/audio/io/AudioFileClip.py
antiboredom/moviepy
3b797c6967a0dcd8a4b04b328d7d7a769c2058b4
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np from moviepy.audio.AudioClip import AudioClip from moviepy.audio.io.readers import FFMPEG_AudioReader class AudioFileClip(AudioClip): """ An audio clip read from a sound file, or an array. The whole file is not loaded in memory. Instead, only a portion ...
30.230769
74
0.624682
9f90361a827ff91a15895f9a7602868ef4058996
1,816
py
Python
src/PyR3/meshlib/lib_obj/usertags.py
Argmaster/PyR3
6786bcb6a101fe4bd4cc50fe43767b8178504b15
[ "MIT" ]
2
2021-12-12T18:51:52.000Z
2022-02-23T09:49:16.000Z
src/PyR3/meshlib/lib_obj/usertags.py
Argmaster/PyR3
6786bcb6a101fe4bd4cc50fe43767b8178504b15
[ "MIT" ]
2
2021-11-08T12:09:02.000Z
2021-12-12T23:01:12.000Z
src/PyR3/meshlib/lib_obj/usertags.py
Argmaster/PyR3
6786bcb6a101fe4bd4cc50fe43767b8178504b15
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import annotations from pathlib import Path from typing import Any, Dict, List import yaml def load(path: Path) -> UserTags: if path.exists(): with path.open("r", encoding="utf-8") as file: data = yaml.safe_load(file) else: data = {} re...
29.290323
85
0.602423
cf1e698f782155e90797dc371cb9c43674520a76
3,259
py
Python
Project2a/flask/app.py
dorispira/Travel-Advisors
ce7fc63771df2cf176f7a7de73bc54e281e95780
[ "MIT" ]
null
null
null
Project2a/flask/app.py
dorispira/Travel-Advisors
ce7fc63771df2cf176f7a7de73bc54e281e95780
[ "MIT" ]
null
null
null
Project2a/flask/app.py
dorispira/Travel-Advisors
ce7fc63771df2cf176f7a7de73bc54e281e95780
[ "MIT" ]
1
2019-05-04T00:52:06.000Z
2019-05-04T00:52:06.000Z
from flask import Flask, render_template, json, request, jsonify from flask_cors import CORS import pandas as pd app = Flask(__name__) cors = CORS(app) # CORS(app,resources={r"/*": {"origins": "*"}}) app.config["CACHE_TYPE"] = "null" @app.route('/') def hello_world(): return render_template("index.html") def fi...
31.038095
133
0.606935
7b5c2f2b04f62f5c4285218e5c3c962d4f0c7c9a
3,027
py
Python
migrations/versions/d9c9512758a6_.py
erickymoreno/Site-Secretaria-de-Obras
c2976cfab6184450aa8d46b307a6ab24b4cc5232
[ "MIT" ]
null
null
null
migrations/versions/d9c9512758a6_.py
erickymoreno/Site-Secretaria-de-Obras
c2976cfab6184450aa8d46b307a6ab24b4cc5232
[ "MIT" ]
null
null
null
migrations/versions/d9c9512758a6_.py
erickymoreno/Site-Secretaria-de-Obras
c2976cfab6184450aa8d46b307a6ab24b4cc5232
[ "MIT" ]
null
null
null
"""empty message Revision ID: d9c9512758a6 Revises: Create Date: 2021-05-10 16:20:44.375731 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd9c9512758a6' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
38.316456
80
0.675917
4736bff2d6b1e99c47defdb6d5ad5d677d9ea9f5
51,120
py
Python
test_autoarray/unit/mask/test_geometry.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
test_autoarray/unit/mask/test_geometry.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
test_autoarray/unit/mask/test_geometry.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
import os import numpy as np import pytest import shutil import autoarray as aa from autoarray import exc class TestCoordinates: def test__central_pixel__depends_on_shape_pixel_scale_and_origin(self): mask = aa.mask.manual( mask_2d=np.full(fill_value=False, shape=(3, 3)), pixel_scales=(0.1,...
35.475364
115
0.52903
8da964e1aeeb4b68c1f0c4fc12cc0efd41b624ae
8,057
py
Python
thingsboard-gateway/thingsboard_gateway/grpc_connectors/gw_grpc_connector.py
drexelwireless/thingsboard-gateway
c4af30c3874c4e507c14566e332d2b4628e506e8
[ "Apache-2.0" ]
1
2022-02-10T10:03:43.000Z
2022-02-10T10:03:43.000Z
thingsboard-gateway/thingsboard_gateway/grpc_connectors/gw_grpc_connector.py
drexelwireless/thingsboard-gateway
c4af30c3874c4e507c14566e332d2b4628e506e8
[ "Apache-2.0" ]
null
null
null
thingsboard-gateway/thingsboard_gateway/grpc_connectors/gw_grpc_connector.py
drexelwireless/thingsboard-gateway
c4af30c3874c4e507c14566e332d2b4628e506e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2022. ThingsBoard # # 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 ...
45.778409
177
0.665136
c1c3ad7f84e7e7e46aaf4435c6ee7add6172849c
17,191
py
Python
tensorflow/python/ops/parallel_for/control_flow_ops.py
lambdabaa/tensorflow
b7e7addbd06c3ba414565f1cd50d734a45f6e12d
[ "Apache-2.0" ]
26
2019-11-10T15:33:34.000Z
2022-03-24T19:56:57.000Z
tensorflow/python/ops/parallel_for/control_flow_ops.py
lambdabaa/tensorflow
b7e7addbd06c3ba414565f1cd50d734a45f6e12d
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/parallel_for/control_flow_ops.py
lambdabaa/tensorflow
b7e7addbd06c3ba414565f1cd50d734a45f6e12d
[ "Apache-2.0" ]
6
2020-03-29T11:10:53.000Z
2021-06-14T05:39:14.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.521519
101
0.722238
d2122561eed41a4cd93ce2cefd72d88e2d6f0f23
3,500
py
Python
bindings/python/ensmallen/datasets/string/erythrobacterspantb3c2.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/erythrobacterspantb3c2.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/erythrobacterspantb3c2.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Erythrobacter sp. ANT-B3C2. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--pro...
33.333333
223
0.677714
b04b7c4d5ebea67ae1d9299f4720f58c22dfdff9
19,132
py
Python
ranking_scraper/smashgg/scraper.py
odysseycaravels/ranking-scraper
0a9ab097ef15267a0021b40ddc131caa7cf4264b
[ "MIT" ]
null
null
null
ranking_scraper/smashgg/scraper.py
odysseycaravels/ranking-scraper
0a9ab097ef15267a0021b40ddc131caa7cf4264b
[ "MIT" ]
null
null
null
ranking_scraper/smashgg/scraper.py
odysseycaravels/ranking-scraper
0a9ab097ef15267a0021b40ddc131caa7cf4264b
[ "MIT" ]
null
null
null
import itertools import json import logging import time from datetime import datetime from urllib.error import HTTPError import typing from graphqlclient import GraphQLClient from ranking_scraper.gql_query import GraphQLQuery from ranking_scraper.model import Game, Event, EventState, EventType, EventFormat, Set, Play...
49.309278
99
0.592306
39352c0cc52a3e2ef8ab4240b6b2177874c4a42e
6,621
py
Python
tests/test_intensity_normalization.py
radmodel/intensity-normalization
b7b39fc6ac74450bf5e19d32b4657dcfe96a9559
[ "Apache-2.0" ]
223
2018-08-03T03:41:45.000Z
2022-03-24T13:55:02.000Z
tests/test_intensity_normalization.py
radmodel/intensity-normalization
b7b39fc6ac74450bf5e19d32b4657dcfe96a9559
[ "Apache-2.0" ]
52
2018-09-10T15:38:57.000Z
2022-03-17T19:04:37.000Z
tests/test_intensity_normalization.py
radmodel/intensity-normalization
b7b39fc6ac74450bf5e19d32b4657dcfe96a9559
[ "Apache-2.0" ]
50
2018-12-04T06:51:55.000Z
2022-03-26T16:06:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `intensity_normalization` package.""" import os from pathlib import Path from typing import List import nibabel as nib import numpy as np import pytest from intensity_normalization.cli.fcm import fcm_main from intensity_normalization.cli.histogram import his...
28.416309
87
0.721039
2cfef515c5f8825125ab9615b8d4431e16c2b631
4,267
py
Python
Python/qPHA.py
EggYouKnow/qPHA
2f4d4b796943f163c3eab472a4b16835624bd050
[ "Apache-2.0" ]
null
null
null
Python/qPHA.py
EggYouKnow/qPHA
2f4d4b796943f163c3eab472a4b16835624bd050
[ "Apache-2.0" ]
null
null
null
Python/qPHA.py
EggYouKnow/qPHA
2f4d4b796943f163c3eab472a4b16835624bd050
[ "Apache-2.0" ]
null
null
null
import sys import PyQt5 from PyQt5 import QtWidgets from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QApplication, QMainWindow import pathlib import Ui_FLIPPED from _functions import * class MainDialog(QMainWindow): def __init__(self, parent=None): super(QMainWindow, self).__init__(parent) ...
38.441441
110
0.55191
b49386c4b187edc343d1534c505f24d7232976ee
19,932
py
Python
.venv/lib/python3.8/site-packages/google/cloud/firestore_v1/services/firestore/transports/base.py
osamhack2021/APP_IOT_AI_MilitaryCafeteria_FOODFIGHTERS
8b412a4aab0406469201f9330f350049bb368890
[ "MIT" ]
4
2021-10-20T12:39:09.000Z
2022-02-26T15:02:08.000Z
.venv/lib/python3.8/site-packages/google/cloud/firestore_v1/services/firestore/transports/base.py
osamhack2021/APP_IOT_AI_MilitaryCafeteria_FOODFIGHTERS
8b412a4aab0406469201f9330f350049bb368890
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/google/cloud/firestore_v1/services/firestore/transports/base.py
osamhack2021/APP_IOT_AI_MilitaryCafeteria_FOODFIGHTERS
8b412a4aab0406469201f9330f350049bb368890
[ "MIT" ]
1
2021-10-20T13:47:10.000Z
2021-10-20T13:47:10.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
36.438757
103
0.559904
fbbd324c8e3c79acc608da16bbe305a648bf0be5
6,610
py
Python
fabfile.py
pollitosabroson/angular
42dcb2e2dc36cad0ad489a364f4f05fe14746414
[ "Apache-2.0" ]
null
null
null
fabfile.py
pollitosabroson/angular
42dcb2e2dc36cad0ad489a364f4f05fe14746414
[ "Apache-2.0" ]
null
null
null
fabfile.py
pollitosabroson/angular
42dcb2e2dc36cad0ad489a364f4f05fe14746414
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from fabric.api import cd, env, require, run, task from fabric.colors import green, white from fabric.context_managers import contextmanager, shell_env from fabric.utils import puts from fabutils import arguments, join, options from fabutils.env import set_env_from_json_file from fabutils.conte...
30.88785
79
0.62829
2df5fa03513f9630049ba38f5db022ae8ce1795f
5,538
py
Python
tests/unit/test_graph_merge.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_graph_merge.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_graph_merge.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
null
null
null
from kgx.graph.nx_graph import NxGraph from kgx.graph_operations.graph_merge import ( merge_all_graphs, merge_graphs, add_all_nodes, merge_node, merge_edge, ) def get_graphs(): """ Returns instances of defined graphs. """ g1 = NxGraph() g1.name = 'Graph 1' g1.add_node('A', ...
29.457447
100
0.60744
c304aacfbd7870b7663d3728f406c914454b8dda
3,152
py
Python
build/lib/vespy/spectra.py
NeilWilkins/VesPy
29b766b737a470915cf02ed70f4077cec1ff77c5
[ "MIT" ]
7
2019-05-07T14:14:41.000Z
2022-03-24T06:30:08.000Z
vespy/spectra.py
NeilWilkins/VesPy
29b766b737a470915cf02ed70f4077cec1ff77c5
[ "MIT" ]
null
null
null
vespy/spectra.py
NeilWilkins/VesPy
29b766b737a470915cf02ed70f4077cec1ff77c5
[ "MIT" ]
2
2019-05-07T14:14:41.000Z
2022-01-16T23:52:16.000Z
# spectra.py # module: vespy.spectra # Functions for generating and plotting amplitude and frequency spectra for seismic data import numpy as np import cmath import matplotlib.pyplot as plt def get_spectra(tr, power=False, unwrap=True): ''' Calculates the amplitude and phase spectra of a seismic signal, along...
32.833333
109
0.689086
cb07508e704c15b2f87e0579a65066c18c5dc4f0
1,064
py
Python
Tests/test_geo.py
ntamas/biopython
ff12c3dd533274678113ecdbd88b0136fb77e565
[ "PostgreSQL" ]
1
2022-01-18T22:33:06.000Z
2022-01-18T22:33:06.000Z
Tests/test_geo.py
ntamas/biopython
ff12c3dd533274678113ecdbd88b0136fb77e565
[ "PostgreSQL" ]
null
null
null
Tests/test_geo.py
ntamas/biopython
ff12c3dd533274678113ecdbd88b0136fb77e565
[ "PostgreSQL" ]
null
null
null
"""Tests the basic functionality of the GEO parsers. """ from __future__ import print_function import os import sys import Bio.Geo testfiles = ['GSE16.txt', 'GSM645.txt', 'GSM691.txt', 'GSM700.txt', 'GSM804.txt'] #Five additional files from the NCBI to document the GEO SOFT file format #changes made in 2005. Note...
30.4
81
0.616541
d427d9b5d8f2efe050a0a054409c81f1a5354c26
724
py
Python
francoralite/apps/francoralite_front/views/location_gis_add.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
2
2021-07-26T08:29:26.000Z
2021-07-26T08:29:27.000Z
francoralite/apps/francoralite_front/views/location_gis_add.py
lluc/telemeta-integration
c2fb116471235674eae597abac84a7113e0f7c82
[ "BSD-3-Clause" ]
167
2018-10-20T14:34:46.000Z
2021-06-01T10:40:55.000Z
francoralite/apps/francoralite_front/views/location_gis_add.py
Francoralite/francoralite
f8c5eeffe6d395c7e4222a9f5a4a7a01841b503c
[ "BSD-3-Clause" ]
1
2021-06-06T12:16:49.000Z
2021-06-06T12:16:49.000Z
# -*- coding: utf-8 -*- # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # Authors: Luc LEGER / Coopérative ARTEFACTS <artefacts.lle@gmail.com> from django.views.generic.edit import FormView from francoralite.apps.fran...
34.47619
80
0.730663
ca2657a763c172529699d4d9153be4316596a416
1,385
py
Python
ass_parser/__init__.py
bubblesub/ass_parser
a47d8dde7102368cf80f1a622fec5adfa96ed97a
[ "MIT" ]
null
null
null
ass_parser/__init__.py
bubblesub/ass_parser
a47d8dde7102368cf80f1a622fec5adfa96ed97a
[ "MIT" ]
null
null
null
ass_parser/__init__.py
bubblesub/ass_parser
a47d8dde7102368cf80f1a622fec5adfa96ed97a
[ "MIT" ]
1
2022-02-21T07:02:02.000Z
2022-02-21T07:02:02.000Z
"""ASS parser main module.""" from ass_parser.ass_color import AssColor from ass_parser.ass_event import AssEvent from ass_parser.ass_file import AssFile from ass_parser.ass_sections import ( AssBaseSection, AssBaseTabularSection, AssEventList, AssKeyValueMapping, AssScriptInfo, AssStringTable, ...
28.854167
76
0.781949
5135b10c191bf7b9cc9a6a8eac047d3870110b02
186
py
Python
pythonDesafios/aula10.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
pythonDesafios/aula10.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
pythonDesafios/aula10.py
mateusdev7/desafios-python
6160ddc84548c7af7f5775f9acabe58238f83008
[ "MIT" ]
null
null
null
# Condições tempo = int(input('Quantos anos tem seu carro?\n>')) if tempo <= 3: print('Seu carro está novo') else: print('Seu carro está velhinho...') print('Fim do programa.')
20.666667
52
0.650538
30ffa37477c69ad09bd63f3a202da6e416db13d0
8,741
py
Python
.sandbox/FEM/getfem/getfemtosiconos.py
vacary/siconos-tutorials
93c0158321077a313692ed52fed69ff3c256ae32
[ "Apache-2.0" ]
6
2017-01-12T23:09:28.000Z
2021-03-20T17:03:58.000Z
.sandbox/FEM/getfem/getfemtosiconos.py
vacary/siconos-tutorials
93c0158321077a313692ed52fed69ff3c256ae32
[ "Apache-2.0" ]
3
2019-01-14T13:44:51.000Z
2021-05-17T13:57:27.000Z
.sandbox/FEM/getfem/getfemtosiconos.py
vacary/siconos-tutorials
93c0158321077a313692ed52fed69ff3c256ae32
[ "Apache-2.0" ]
2
2019-10-22T13:30:39.000Z
2020-10-06T10:19:57.000Z
# Getfem tools to build the finite element model import getfem as gf import numpy as np class SiconosFem: """ The set of matrices required by Siconos, from a Finite Element Model """ def __init__(self): self.nbdof = 0 self.Mass = [] self.Stiff = [] self.H = [] self...
32.494424
117
0.578424
c3564edaf03020676d5d266fd605fa393abf8e01
2,257
py
Python
main/main.py
dwelle/excalidraw-json
805c651cb7998af21fd24a5ffaf3ba4857f6e52e
[ "MIT" ]
2
2020-04-18T01:22:39.000Z
2022-02-26T13:04:40.000Z
main/main.py
dwelle/excalidraw-json
805c651cb7998af21fd24a5ffaf3ba4857f6e52e
[ "MIT" ]
null
null
null
main/main.py
dwelle/excalidraw-json
805c651cb7998af21fd24a5ffaf3ba4857f6e52e
[ "MIT" ]
null
null
null
# coding: utf-8 from urlparse import urlparse from datetime import datetime import flask import requests_toolbelt.adapters.appengine import config import util # Enable requests compatibility with GAE (needed for authlib) # From https://toolbelt.readthedocs.io/en/latest/adapters.html#appengineadapter requests_toolbe...
29.311688
101
0.743908
88cdf2dca19d466bc777ba4c5943681f16a91aba
1,116
py
Python
graphql/core/execution/middlewares/asyncio.py
gabriel-laet/graphql-py
8a9aa350cb7a86015a734d35a6b2dc8a96fc28be
[ "MIT" ]
118
2015-09-19T17:19:33.000Z
2019-12-19T16:52:14.000Z
graphql/core/execution/middlewares/asyncio.py
gabriel-laet/graphql-py
8a9aa350cb7a86015a734d35a6b2dc8a96fc28be
[ "MIT" ]
44
2015-09-19T17:05:51.000Z
2015-11-25T00:59:53.000Z
graphql/core/execution/middlewares/asyncio.py
gabriel-laet/graphql-py
8a9aa350cb7a86015a734d35a6b2dc8a96fc28be
[ "MIT" ]
8
2015-07-04T04:01:40.000Z
2015-09-18T05:18:32.000Z
# flake8: noqa from asyncio import Future, ensure_future, iscoroutine from graphql.core.defer import Deferred def process_future_result(deferred): def handle_future_result(future): exception = future.exception() if exception: deferred.errback(exception) else: defer...
30.162162
103
0.648746
dd748e6bb08c8c262974a77d6b5774f63fb8f6c0
8,759
py
Python
lib/tools/histogram.py
annekegh/mcdiff
c85bda048be323c21d407abcc8d4ab6b1564b589
[ "MIT" ]
6
2018-05-28T12:55:29.000Z
2022-03-20T23:49:58.000Z
lib/tools/histogram.py
annekegh/mcdiff
c85bda048be323c21d407abcc8d4ab6b1564b589
[ "MIT" ]
null
null
null
lib/tools/histogram.py
annekegh/mcdiff
c85bda048be323c21d407abcc8d4ab6b1564b589
[ "MIT" ]
2
2017-05-16T15:52:27.000Z
2018-05-01T19:55:18.000Z
"""Script to plot histogram of xyz coords AG, August 13, 2012""" import numpy as np import matplotlib.pyplot as plt def read_coor_x_or_y_or_z(filename): #print "Reading...", filename data = [] with open(filename,"r") as f: for line in f: if not line.startswith("#"): da...
33.688462
93
0.622445
5e8751b0a958a19d6801235f6e72d6aa6e88e5f1
2,173
py
Python
docs/conf.py
riyuzxn/easy-pil
e00c250b7fedc39aa08030f2a245cf61a01842c7
[ "MIT" ]
null
null
null
docs/conf.py
riyuzxn/easy-pil
e00c250b7fedc39aa08030f2a245cf61a01842c7
[ "MIT" ]
null
null
null
docs/conf.py
riyuzxn/easy-pil
e00c250b7fedc39aa08030f2a245cf61a01842c7
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.432836
79
0.668661
06a3eeb266ee77dd5e8ffb91854c0857c2c70694
522
py
Python
examples/test_pos.py
smilelight/lightNLP
772c5f6a1be9943c2ed4d1d713dd456089b48268
[ "Apache-2.0" ]
889
2019-03-11T00:58:46.000Z
2022-03-27T07:12:06.000Z
examples/test_pos.py
smilelight/lightNLP
772c5f6a1be9943c2ed4d1d713dd456089b48268
[ "Apache-2.0" ]
14
2019-03-25T09:21:38.000Z
2020-12-28T11:41:55.000Z
examples/test_pos.py
smilelight/lightNLP
772c5f6a1be9943c2ed4d1d713dd456089b48268
[ "Apache-2.0" ]
237
2019-03-19T08:30:17.000Z
2022-03-14T03:38:30.000Z
import os import sys sys.path.append(os.path.split(os.path.realpath(__file__))[0]) from lightnlp.sl import POS pos_model = POS() train_path = '../data/pos/train.sample.txt' dev_path = '../data/pos/test.sample.txt' vec_path = 'D:/Data/NLP/embedding/char/token_vec_300.bin' pos_model.train(train_path, vectors_path=vec...
26.1
94
0.731801
63e5295783f8aca2cc370ee5e23a37a60d3bb8e3
6,498
gyp
Python
chrome/common/extensions/api/api.gyp
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/api/api.gyp
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/api/api.gyp
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'chrome_api', 'type': 'static_library', 'sources': [ '<@(schema_files)', ], #...
33.668394
72
0.4763
acd0ce45bfad11b762e79d84701f603e9dc27a1b
3,744
py
Python
1.Estrutura_Sequencia_wiki.Python/estrutura_sequencial_17.py
renankemiya/exercicios
669f38acc2e85f84003bfaaccbfbaeb9211dd599
[ "MIT" ]
null
null
null
1.Estrutura_Sequencia_wiki.Python/estrutura_sequencial_17.py
renankemiya/exercicios
669f38acc2e85f84003bfaaccbfbaeb9211dd599
[ "MIT" ]
null
null
null
1.Estrutura_Sequencia_wiki.Python/estrutura_sequencial_17.py
renankemiya/exercicios
669f38acc2e85f84003bfaaccbfbaeb9211dd599
[ "MIT" ]
null
null
null
# Faça um Programa para uma loja de tintas. O programa deverá pedir o tamanho em metros quadrados da área # a ser pintada. Considere que a cobertura da tinta é de 1 litro para cada 6 metros quadrados e que a tinta é vendida # em latas de 18 litros, que custam R$ 80,00 ou em galões de 3,6 litros, que custam R$ 25,00....
40.695652
119
0.665064
dd99f66c23ff6580a2982c44f38144671b4af7ef
539
py
Python
docs/components_page/components/layout/width.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
1
2022-01-12T12:36:20.000Z
2022-01-12T12:36:20.000Z
docs/components_page/components/layout/width.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
null
null
null
docs/components_page/components/layout/width.py
imrehg/dash-bootstrap-components
7cf43168808bb88b243e414168dc3bf196fefd84
[ "Apache-2.0" ]
null
null
null
import dash_bootstrap_components as dbc import dash_html_components as html row = html.Div( [ dbc.Row(dbc.Col(html.Div("A single, half-width column"), width=6)), dbc.Row( dbc.Col(html.Div("An automatically sized column"), width="auto") ), dbc.Row( [ ...
28.368421
76
0.532468
4959b97e43bdd09eaf90e8e93d781fc2dd1b24d5
3,316
py
Python
discord_bot/d_commands/state.py
Mr-Jaxee/Console
7c042ad51310aaeef76a497a6e96a4ef2a108e6a
[ "MIT" ]
null
null
null
discord_bot/d_commands/state.py
Mr-Jaxee/Console
7c042ad51310aaeef76a497a6e96a4ef2a108e6a
[ "MIT" ]
null
null
null
discord_bot/d_commands/state.py
Mr-Jaxee/Console
7c042ad51310aaeef76a497a6e96a4ef2a108e6a
[ "MIT" ]
null
null
null
async def state_cmd(bot, discord, sqlite3, message, botconfig, os, platform, datetime, one_result, localization, embed_color, connection, cursor, cpuinfo, psutil): usersdb = cursor.execute('SELECT * FROM users').rowcount usersdb_count = cursor.fetchall() guildsdb = cursor.execute('SELECT * FR...
94.742857
257
0.647467
e3b21147d41e2fc8035ea3c56467f5e3258bc0c8
28,349
py
Python
sdk/python/pulumi_google_native/compute/beta/network_endpoint_group.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/compute/beta/network_endpoint_group.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/compute/beta/network_endpoint_group.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
51.731752
475
0.680095
df8da65c0a43955c24c30d9f076809ef123f418e
10,633
py
Python
twitterscraper/query.py
cenguix/twitterscraper
74e46822b4663094d5265353c6bcbcbea2b4ea3b
[ "MIT" ]
null
null
null
twitterscraper/query.py
cenguix/twitterscraper
74e46822b4663094d5265353c6bcbcbea2b4ea3b
[ "MIT" ]
null
null
null
twitterscraper/query.py
cenguix/twitterscraper
74e46822b4663094d5265353c6bcbcbea2b4ea3b
[ "MIT" ]
null
null
null
from __future__ import division import random import requests import datetime as dt import json from functools import partial from multiprocessing.pool import Pool from twitterscraper.tweet import Tweet from twitterscraper.ts_logger import logger from twitterscraper.user import User import urllib import sys HEADERS_L...
35.208609
120
0.613373
7c1cfbdba128eff6074054c5648107d8514a7572
3,577
py
Python
plot_dms_atm.py
sfons/OIBclassification
f6065ee38d1a510f51d34bd475e7ebecaa8ebfe9
[ "MIT" ]
null
null
null
plot_dms_atm.py
sfons/OIBclassification
f6065ee38d1a510f51d34bd475e7ebecaa8ebfe9
[ "MIT" ]
null
null
null
plot_dms_atm.py
sfons/OIBclassification
f6065ee38d1a510f51d34bd475e7ebecaa8ebfe9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import cartopy.crs as ccrs import numpy as np from osgeo import gdal #import glob #from matplotlib.colors import LinearSegmentedColormap """ Created on Tue Sep 10 15:10:21 2019 @author: steven fons (sfons@umd.edu) This program reads in a D...
38.053191
146
0.684372
4e6fb6c5fb0a821e2e623c68ec48b8af4f7263d4
374
py
Python
assets/code/src/integer_division.py
drtrome/rsd
5fdc0edd2733319d1c8c2e7dbbd8e21af1b0606c
[ "MIT" ]
null
null
null
assets/code/src/integer_division.py
drtrome/rsd
5fdc0edd2733319d1c8c2e7dbbd8e21af1b0606c
[ "MIT" ]
92
2017-10-01T14:00:05.000Z
2020-04-20T13:06:40.000Z
assets/code/src/integer_division.py
drtrome/rsd
5fdc0edd2733319d1c8c2e7dbbd8e21af1b0606c
[ "MIT" ]
24
2017-12-11T16:46:31.000Z
2020-01-08T11:54:10.000Z
""" Function to repeatedly divide a number by another number. """ def get_exponent_of_factor(N, b): """ Count number of times b divides N. Inputs: - N: An int - b: A divisor Outputs: - The number of times that b divides N """ count = 0 while N >= b and N % b == 0: ...
17.809524
57
0.529412
8988286ff20af1930e1eb0b64f8b5565b43032b1
11,751
py
Python
lanf_earthquake_likelihood/notebooks/monte_carlo_test.py
shibaji7/DataAnalytics2
89dea6dd0d9d9230fe379e8ebf823ebf77063aa5
[ "Apache-2.0" ]
null
null
null
lanf_earthquake_likelihood/notebooks/monte_carlo_test.py
shibaji7/DataAnalytics2
89dea6dd0d9d9230fe379e8ebf823ebf77063aa5
[ "Apache-2.0" ]
null
null
null
lanf_earthquake_likelihood/notebooks/monte_carlo_test.py
shibaji7/DataAnalytics2
89dea6dd0d9d9230fe379e8ebf823ebf77063aa5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Monte Carlo simulation to find recurrence interval PDF on a fault # In[1]: #get_ipython().magic(u'pylab inline') #get_ipython().magic(u"config InlineBackend.figure_format = 'retina'") # In[2]: import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np import p...
18.275272
330
0.650753
15d884c9cd859d60c3b7e78a97bd24fc06353baa
2,623
py
Python
capsul/engine/module/matlab.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
5
2018-10-31T10:16:53.000Z
2022-03-11T08:11:32.000Z
capsul/engine/module/matlab.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
78
2018-10-30T17:04:38.000Z
2022-03-17T17:39:41.000Z
capsul/engine/module/matlab.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
11
2019-01-21T10:05:08.000Z
2022-02-22T17:02:22.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import capsul.engine import os #from soma.controller import Controller #from traits.api import File, Undefined, Instance def init_settings(capsul_engine): with capsul_engine.settings as settings: settings.ensure_module_fields('matlab', ...
34.973333
102
0.645063
732cfe175d396e7ac9d41fa68b5175dbd6bf7d6c
40,761
py
Python
tensor2tensor/trax/rlax/ppo.py
Leo-xxx/tensor2tensor
cab8388d783ba349d52eda21338b525079f9dd9c
[ "Apache-2.0" ]
1
2019-07-26T01:57:23.000Z
2019-07-26T01:57:23.000Z
tensor2tensor/trax/rlax/ppo.py
Leo-xxx/tensor2tensor
cab8388d783ba349d52eda21338b525079f9dd9c
[ "Apache-2.0" ]
null
null
null
tensor2tensor/trax/rlax/ppo.py
Leo-xxx/tensor2tensor
cab8388d783ba349d52eda21338b525079f9dd9c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
35.786655
81
0.648193
eb94387cf478eb8870316feec2e479779fe277a8
3,212
py
Python
official_examples/技能模板/Face_Detection_Template/postprocess.py
huaweicloud/HiLens-Lab
2b0613db2a40ec86c267bc69076e9fb7987fc610
[ "Apache-2.0" ]
31
2020-01-09T11:11:35.000Z
2022-02-25T06:19:19.000Z
official_examples/技能模板/Face_Detection_Template/postprocess.py
huaweicloud/HiLens-Lab
2b0613db2a40ec86c267bc69076e9fb7987fc610
[ "Apache-2.0" ]
null
null
null
official_examples/技能模板/Face_Detection_Template/postprocess.py
huaweicloud/HiLens-Lab
2b0613db2a40ec86c267bc69076e9fb7987fc610
[ "Apache-2.0" ]
12
2020-01-09T16:00:32.000Z
2021-05-24T07:33:08.000Z
# -*- coding: utf-8 -*- # !/usr/bin/python3 # SkillFramework 1.0.0 face detection demo # yolo v2单类检测模型的后处理 import hilens import cv2 import numpy as np import math # 网络输入尺寸 input_height = 480 input_width = 480 class_num = 1 # 类别数 box_num = 5 # 最后一层的anchor boxes数量 biases = [0.71, 0.70, 1.37, 1.31, 2.01, 2.21, 2.73,...
28.936937
89
0.528331
6fe9d774859f4dcc73dbdc676bac3e4be7813044
49,412
py
Python
project.py
glbrntt/swift-source-compat-suite
43b26ce77c85c986a68f47a1b9f3d5d1fc9cb50e
[ "Apache-2.0" ]
null
null
null
project.py
glbrntt/swift-source-compat-suite
43b26ce77c85c986a68f47a1b9f3d5d1fc9cb50e
[ "Apache-2.0" ]
null
null
null
project.py
glbrntt/swift-source-compat-suite
43b26ce77c85c986a68f47a1b9f3d5d1fc9cb50e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # ===--- project.py -------------------------------------------------------=== # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See ht...
40.369281
110
0.536266
30b5c38a51f83f9cc9d06e3bf00d4c119dc9f9f3
3,378
py
Python
points_visualization.py
minhncedutw/pointnet1_keras
10f1d318652a562ed455f128cf2431130c4089e1
[ "MIT" ]
1
2019-12-03T17:07:33.000Z
2019-12-03T17:07:33.000Z
points_visualization.py
minhncedutw/pointnet1_keras
10f1d318652a562ed455f128cf2431130c4089e1
[ "MIT" ]
null
null
null
points_visualization.py
minhncedutw/pointnet1_keras
10f1d318652a562ed455f128cf2431130c4089e1
[ "MIT" ]
null
null
null
''' File name: Mayavi 3D points visualization Author: minhnc Date created(MM/DD/YYYY): 9/28/2018 Last modified(MM/DD/YYYY HH:MM): 9/28/2018 5:18 AM Python Version: 3.5 Other modules: [] Reference: [Guide](https://www.scipy-lectures.org/advanced/3d_plotting/index.html#id4) Copyright = Co...
31.867925
124
0.555062
4d6bdbb065575aa1d480e9c44df89651ece5027e
2,601
py
Python
project/utility/testMemoryExh.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
project/utility/testMemoryExh.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
project/utility/testMemoryExh.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
# This is the audit script for checking the GC linker. # # It beats to memory to see if everything holds up, but not suitable for # the test suite. It is run in conjuction with the printf statement in # jp_gc.cpp to see how aggressive we are being about running the gc. # The goal is to keep the memory as low as possi...
30.244186
91
0.607074
6f6ee9df80e02dd1da0c7f011585b0dc21c98140
360
py
Python
output/models/nist_data/list_pkg/g_month/schema_instance/nistschema_sv_iv_list_g_month_enumeration_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/g_month/schema_instance/nistschema_sv_iv_list_g_month_enumeration_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/g_month/schema_instance/nistschema_sv_iv_list_g_month_enumeration_5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.g_month.schema_instance.nistschema_sv_iv_list_g_month_enumeration_5_xsd.nistschema_sv_iv_list_g_month_enumeration_5 import ( NistschemaSvIvListGMonthEnumeration5, NistschemaSvIvListGMonthEnumeration5Type, ) __all__ = [ "NistschemaSvIvListGMonthEnumeration5", "Nists...
36
162
0.861111
1748c6002000ee27e9cf61c8d60528e211898aed
27,712
py
Python
frappe/core/doctype/file/file.py
Vishalcse/frappev13beta
6ef0b68d4203cd859db85417818c5889b4359008
[ "MIT" ]
null
null
null
frappe/core/doctype/file/file.py
Vishalcse/frappev13beta
6ef0b68d4203cd859db85417818c5889b4359008
[ "MIT" ]
null
null
null
frappe/core/doctype/file/file.py
Vishalcse/frappev13beta
6ef0b68d4203cd859db85417818c5889b4359008
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt """ record of files naming for same name files: file.gif, file-1.gif, file-2.gif etc """ from __future__ import unicode_literals import base64 import hashlib import imghdr import io import json import mimetypes impor...
29.958919
116
0.71875
98fa934c6cfebbc15e74074dfc3bb44fc447befc
2,007
py
Python
WINGSWorkflowComponents/economic-v6.1/src/all-crops-update-sims.py
mintproject/MINT-WorkflowDomain
aea1a3c10a8249a481ea8dabcf9e1fb5e306e427
[ "Apache-2.0" ]
null
null
null
WINGSWorkflowComponents/economic-v6.1/src/all-crops-update-sims.py
mintproject/MINT-WorkflowDomain
aea1a3c10a8249a481ea8dabcf9e1fb5e306e427
[ "Apache-2.0" ]
9
2019-08-14T18:08:32.000Z
2021-04-23T14:31:28.000Z
WINGSWorkflowComponents/economic-v6.1/src/all-crops-update-sims.py
KnowledgeCaptureAndDiscovery/MINT-WorkflowDomain
aea1a3c10a8249a481ea8dabcf9e1fb5e306e427
[ "Apache-2.0" ]
2
2018-05-17T14:13:39.000Z
2019-01-11T23:03:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Economic Model.""" import os import csv import sys from pathlib import Path def _generate_sim_price(p, sim_price): i = Path(p) o = Path("simprice.csv") with i.open("r") as r, o.open("w",newline = '') as w: r = csv.reader(r) w = csv.writer(w) num = 0 fo...
20.479592
76
0.621824
af060d16d15df8ca80dcc23ebda3c3dfc2321199
663
py
Python
job2/job2.py
shrijaycreator/devops-python-microservice-K8S
1c5bdc9fb40084ead70aeb4b0a69ba5ae23bb08b
[ "MIT" ]
null
null
null
job2/job2.py
shrijaycreator/devops-python-microservice-K8S
1c5bdc9fb40084ead70aeb4b0a69ba5ae23bb08b
[ "MIT" ]
null
null
null
job2/job2.py
shrijaycreator/devops-python-microservice-K8S
1c5bdc9fb40084ead70aeb4b0a69ba5ae23bb08b
[ "MIT" ]
1
2022-03-01T18:12:19.000Z
2022-03-01T18:12:19.000Z
''' Job 2 Calculates Foreign Exchange Rates of currencies as per USD ''' import requests import sys ''' getFX() fetches the Foreign exchange rates for currencies. It takes 2 arguments as input, "ccy" and "dates" ccy (string) is the currency whose value has to be translated to USD Values for ccy could be (...
26.52
91
0.693816
00922c062033e23f480fc9948dbf03b8191afecd
12,549
py
Python
src/primaires/communication/canal.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
14
2015-08-21T19:15:21.000Z
2017-11-26T13:59:17.000Z
src/primaires/communication/canal.py
vincent-lg/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
20
2015-09-29T20:50:45.000Z
2018-06-21T12:58:30.000Z
src/primaires/communication/canal.py
vlegoff/tsunami
36b3b974f6eefbf15cd5d5f099fc14630e66570b
[ "BSD-3-Clause" ]
3
2015-05-02T19:42:03.000Z
2018-09-06T10:55:00.000Z
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # 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 notice, this # ...
42.683673
82
0.560762
0648c1e6df2a3384863e5e65f481d3219f0bd147
4,819
py
Python
scripts/emu/simple_dhcpv6.py
klement/trex-core
b98e2e6d2b8c6caeb233ce36fcbc131ffc45e35e
[ "Apache-2.0" ]
null
null
null
scripts/emu/simple_dhcpv6.py
klement/trex-core
b98e2e6d2b8c6caeb233ce36fcbc131ffc45e35e
[ "Apache-2.0" ]
null
null
null
scripts/emu/simple_dhcpv6.py
klement/trex-core
b98e2e6d2b8c6caeb233ce36fcbc131ffc45e35e
[ "Apache-2.0" ]
null
null
null
from trex.emu.api import * from trex.utils.common import increase_mac, increase_ip, generate_ipv6 import argparse MAX_UINT16 = (2 ** 16) - 1 MAX_TCI = (2 ** 12) - 1 def ipv62int(ip): ''' Convert ipv6 to 2 numbers, 8 bytes each''' ip = socket.inet_pton(socket.AF_INET6, ip) a, b = struct.unpack("!QQ", ...
36.233083
128
0.488276
50b3797e12adb591fb94c5483cbbf888182084c2
2,193
py
Python
benchmarks/H/Theis_1D/h_quad_axisym.py
GeoStat-Framework/ogs5py_benchmarks
0b6db19b87cfad36459757f99ce2458f8e12b20b
[ "BSD-4-Clause" ]
3
2019-01-15T17:38:11.000Z
2020-01-07T23:44:12.000Z
benchmarks/H/Theis_1D/h_quad_axisym.py
GeoStat-Framework/ogs5py_benchmarks
0b6db19b87cfad36459757f99ce2458f8e12b20b
[ "BSD-4-Clause" ]
1
2020-05-12T09:18:09.000Z
2020-05-12T10:48:32.000Z
benchmarks/H/Theis_1D/h_quad_axisym.py
GeoStat-Framework/ogs5py_benchmarks
0b6db19b87cfad36459757f99ce2458f8e12b20b
[ "BSD-4-Clause" ]
1
2020-01-08T13:28:50.000Z
2020-01-08T13:28:50.000Z
# -*- coding: utf-8 -*- from ogs5py import OGS model = OGS( task_root='h_quad_axisym_root', task_id='h_quad_axisym', output_dir='out', ) model.msh.read_file('h_quad_axisym.msh') model.gli.read_file('h_quad_axisym.gli') model.pcs.add_block( main_key='PROCESS', PCS_TYPE='LIQUID_FLOW', NUM_TYPE='N...
23.329787
53
0.639763
5e9c1b894be2bc9f5f1745194faef32821e6eb73
998
py
Python
src/core/api/__init__.py
le717/vss-365-today
fbce9b0dd66075bff7ac7e71a2911bbfb51fc555
[ "MIT" ]
1
2019-07-09T19:59:55.000Z
2019-07-09T19:59:55.000Z
src/core/api/__init__.py
le717/vss365-today
265c4c0e546e6913391aacc963e6558c913426c0
[ "MIT" ]
45
2019-04-14T20:19:29.000Z
2020-05-17T20:05:39.000Z
src/core/api/__init__.py
le717/vss365-today
265c4c0e546e6913391aacc963e6558c913426c0
[ "MIT" ]
null
null
null
from typing import Any import sys_vars from src.core.api import _api __all__ = ["delete", "get", "post", "put"] def __create_api_url(*args: str) -> str: """Construct a URL to the given v1 API endpoint.""" endpoint = "/".join(args) return f"{sys_vars.get('API_DOMAIN')}/v1/{endpoint}" def delete(*args...
25.589744
58
0.648297
f2cd54c341b4c693b46cc09410afb6d6b0331850
3,688
py
Python
test/test_skelebot_main.py
dmyers87/skelebot
954552fc5f465eb2a887f5c96a27f11ad423cd71
[ "MIT" ]
null
null
null
test/test_skelebot_main.py
dmyers87/skelebot
954552fc5f465eb2a887f5c96a27f11ad423cd71
[ "MIT" ]
null
null
null
test/test_skelebot_main.py
dmyers87/skelebot
954552fc5f465eb2a887f5c96a27f11ad423cd71
[ "MIT" ]
null
null
null
import unittest from unittest import mock from schema import SchemaError from colorama import Fore, Style import skelebot as sb class TestSkelebotMain(unittest.TestCase): @mock.patch('skelebot.systems.execution.executor.execute') @mock.patch('skelebot.systems.generators.yaml.loadConfig') @mock.patch('sk...
40.527473
121
0.706345
62e056087d2837e3f4f7dc6051de16b38664892b
9,233
py
Python
cogs/threadlogs.py
Harukomaze/Thread-Manager
4a4b83952a68f7c8623b98a2a964940ba315b729
[ "MIT" ]
2
2021-08-03T08:44:00.000Z
2022-03-24T19:53:23.000Z
cogs/threadlogs.py
Harukomaze/Thread-Manager
4a4b83952a68f7c8623b98a2a964940ba315b729
[ "MIT" ]
null
null
null
cogs/threadlogs.py
Harukomaze/Thread-Manager
4a4b83952a68f7c8623b98a2a964940ba315b729
[ "MIT" ]
null
null
null
import typing import config import discord import sqlite3 import aiosqlite from entropy import stablizer from discord.ext import commands from profanity import profanity class ThreadLogging(commands.Cog, name="Utilities", description = "Commands related to thread logging configurations can be found here!"...
50.179348
212
0.591899
096fb4b0fd01713afe3bda1a1c8e293302afe384
655
py
Python
pepper/language/__init__.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
29
2018-01-20T08:51:42.000Z
2022-01-25T11:59:28.000Z
pepper/language/__init__.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
32
2018-09-20T13:09:34.000Z
2021-06-04T15:23:45.000Z
pepper/language/__init__.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
10
2018-10-25T02:45:21.000Z
2020-10-03T12:59:10.000Z
""" The Pepper Language Package contains tools to generate RDF triples from Natural Language and vice versa. """ from .language import Chat, Utterance from .utils.atoms import UtteranceType, Emotion, Time # Download NLTK Dependencies import nltk # Make sure Averaged Perceptron Tagger has been downloaded try: nltk....
27.291667
104
0.787786
055e11369a04bb7e529514ecc0e04cdb55988a14
2,683
py
Python
zx/_playback.py
kosarev/zx
6f72f45438e03f97be975bab1a36889aca16cee4
[ "MIT" ]
6
2018-09-09T16:38:41.000Z
2020-11-10T11:25:55.000Z
zx/_playback.py
kosarev/zx
6f72f45438e03f97be975bab1a36889aca16cee4
[ "MIT" ]
24
2019-10-16T14:08:31.000Z
2021-11-07T13:36:10.000Z
zx/_playback.py
kosarev/zx
6f72f45438e03f97be975bab1a36889aca16cee4
[ "MIT" ]
1
2020-05-02T11:41:47.000Z
2020-05-02T11:41:47.000Z
# -*- coding: utf-8 -*- # ZX Spectrum Emulator. # https://github.com/kosarev/zx # # Copyright (C) 2017-2021 Ivan Kosarev. # ivan@kosarev.info # # Published under the MIT license. from ._data import MachineSnapshot from ._rzx import RZXFile # TODO: Rework to a time machine interface. class PlaybackPlayer(o...
32.325301
76
0.564666
f205e49664136e0385b6d627d3d749fcac047bd3
22,207
py
Python
oscpy/server.py
virtualeconomy/oscpy
4abbf58766e3d25b489de6c96d8ba8bf49ae4e89
[ "MIT" ]
86
2018-06-19T06:59:51.000Z
2022-02-24T16:17:51.000Z
oscpy/server.py
ibrahimkelly/oscpy
df736aae16c1620e769bc994a31597452dea1499
[ "MIT" ]
51
2018-06-23T19:02:13.000Z
2022-01-19T11:56:30.000Z
oscpy/server.py
ibrahimkelly/oscpy
df736aae16c1620e769bc994a31597452dea1499
[ "MIT" ]
29
2018-08-22T06:05:54.000Z
2022-01-19T20:12:50.000Z
"""Server API. This module currently only implements `OSCThreadServer`, a thread based server. """ import logging from threading import Thread, Event import os import re import inspect from sys import platform from time import sleep, time from functools import partial from select import select import socket from osc...
34.482919
98
0.575044
c19560a737489957d2e8e4d98e0714da7c1a3be0
19,888
py
Python
2019/finals/reversing-tob/compiler.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/finals/reversing-tob/compiler.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/finals/reversing-tob/compiler.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/env python2 # ------------------------------------------------------------------------------------------------- # Copyright 2019 Google LLC # # 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 Lic...
37.666667
100
0.47687
d2908979c5dc15315588266c17ed2604aee2f1a8
41,846
py
Python
tests/test_policy.py
myoung34/cloud-custodian
e10a146bb797a3df21ee44bbf1eda76bb2b001d8
[ "Apache-2.0" ]
null
null
null
tests/test_policy.py
myoung34/cloud-custodian
e10a146bb797a3df21ee44bbf1eda76bb2b001d8
[ "Apache-2.0" ]
null
null
null
tests/test_policy.py
myoung34/cloud-custodian
e10a146bb797a3df21ee44bbf1eda76bb2b001d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2017 Capital One Services, LLC # # 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 ...
33.665326
96
0.499426
975770dcf4865b2813f7c68ccdf552c3c3ed4530
9,376
py
Python
tests/test_sktools.py
cmougan/sktools
dd750a7ffb882709b827a07fb5a768cf5e9dabca
[ "MIT" ]
10
2020-05-03T09:52:06.000Z
2021-11-30T07:38:27.000Z
tests/test_sktools.py
cmougan/sktools
dd750a7ffb882709b827a07fb5a768cf5e9dabca
[ "MIT" ]
7
2020-11-19T16:08:09.000Z
2021-06-17T11:37:31.000Z
tests/test_sktools.py
cmougan/sktools
dd750a7ffb882709b827a07fb5a768cf5e9dabca
[ "MIT" ]
3
2020-06-21T08:46:31.000Z
2021-08-17T11:32:20.000Z
#!/usr/bin/env python """Tests for `sktools` package.""" import unittest import sktools import pandas as pd from scipy.sparse import csr_matrix from category_encoders import MEstimateEncoder import numpy as np class TestTypeSelector(unittest.TestCase): """Tests for type selector.""" def setUp(self): ...
32
88
0.554181
d2edc85837af47fea1d3ec0c26bf32ca1930a14c
1,111
py
Python
core/config.py
olegbrz/Apollo-SQL
a39b2ca4fa70c5119c7f4128a5ca09f3fa39f442
[ "MIT" ]
1
2020-05-31T14:23:25.000Z
2020-05-31T14:23:25.000Z
core/config.py
olegbrz/Oracle-SQL-Python-client
a39b2ca4fa70c5119c7f4128a5ca09f3fa39f442
[ "MIT" ]
null
null
null
core/config.py
olegbrz/Oracle-SQL-Python-client
a39b2ca4fa70c5119c7f4128a5ca09f3fa39f442
[ "MIT" ]
1
2021-06-25T20:47:22.000Z
2021-06-25T20:47:22.000Z
from configparser import ConfigParser from getpass import getpass from os.path import exists def init_config(): config = ConfigParser() config.add_section('connection') fields = ['host', 'port', 'sid', 'user', 'password'] for field in fields: config['connection'][field] = '' with open('con...
25.25
77
0.642664
686467235813ebe4365dba7e97f0b2155da74381
4,433
py
Python
google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # 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...
36.04065
97
0.630047
1940cf20a9ebf35855c066b888a6fe8e37d8ab44
7,941
py
Python
docs/conf.py
Matmac945/agent-motion-prediction
4d4832c67fc57f05da23f149f8ff52280cce9ddf
[ "MIT" ]
null
null
null
docs/conf.py
Matmac945/agent-motion-prediction
4d4832c67fc57f05da23f149f8ff52280cce9ddf
[ "MIT" ]
null
null
null
docs/conf.py
Matmac945/agent-motion-prediction
4d4832c67fc57f05da23f149f8ff52280cce9ddf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # agent_motion_prediction documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configurati...
32.412245
82
0.712757
9e8a2cd07188c1ea7732717998c031f3826e4dfd
157
py
Python
reddit2telegram/channels/minecraft_en/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
187
2016-09-20T09:15:54.000Z
2022-03-29T12:22:33.000Z
reddit2telegram/channels/minecraft_en/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
84
2016-09-22T14:25:07.000Z
2022-03-19T01:26:17.000Z
reddit2telegram/channels/minecraft_en/app.py
mainyordle/reddit2telegram
1163e15aed3b6ff0fba65b222d3d9798f644c386
[ "MIT" ]
172
2016-09-21T15:39:39.000Z
2022-03-16T15:15:58.000Z
#encoding:utf-8 subreddit = 'minecraftmemes+minecraft' t_channel = '@minecraft_en' def send_post(submission, r2t): return r2t.send_simple(submission)
17.444444
38
0.764331
24712cc86cb5a1a82b5c1d07b8f6cc3fd1ff8be9
9,819
py
Python
nadine-2.2.3/member/views/organization.py
alvienzo720/Dep_Nadine
b23688aa87ba3cfe138f9b243eed3f50a74e1486
[ "Apache-2.0" ]
null
null
null
nadine-2.2.3/member/views/organization.py
alvienzo720/Dep_Nadine
b23688aa87ba3cfe138f9b243eed3f50a74e1486
[ "Apache-2.0" ]
null
null
null
nadine-2.2.3/member/views/organization.py
alvienzo720/Dep_Nadine
b23688aa87ba3cfe138f9b243eed3f50a74e1486
[ "Apache-2.0" ]
1
2020-02-24T08:23:45.000Z
2020-02-24T08:23:45.000Z
import string from datetime import date, datetime, timedelta from django.conf import settings from django.contrib import messages from django.contrib.auth.models import User from django.urls import reverse from django.contrib.auth.decorators import login_required, user_passes_test from django.forms.formsets import fo...
43.065789
580
0.652205
9c472026a2dd5efa0ad77741482170ecafdb1f05
6,449
py
Python
tests/test_testing.py
danielroseman/django-rest-framework
efaa37376ca0bb6f2442b633665ff8d3264e89d6
[ "Unlicense" ]
null
null
null
tests/test_testing.py
danielroseman/django-rest-framework
efaa37376ca0bb6f2442b633665ff8d3264e89d6
[ "Unlicense" ]
null
null
null
tests/test_testing.py
danielroseman/django-rest-framework
efaa37376ca0bb6f2442b633665ff8d3264e89d6
[ "Unlicense" ]
null
null
null
# -- coding: utf-8 -- from __future__ import unicode_literals from django.conf.urls import patterns, url from io import BytesIO from django.contrib.auth.models import User from django.test import TestCase from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.t...
36.230337
228
0.640719
ab2a3165b4f2020c8584b74d3687517befe6e9e7
11,267
py
Python
gamestonk_terminal/portfolio/portfolio_controller.py
dakhouya/GamestonkTerminal
006b3570b795215a17c64841110b649b03db9a98
[ "MIT" ]
null
null
null
gamestonk_terminal/portfolio/portfolio_controller.py
dakhouya/GamestonkTerminal
006b3570b795215a17c64841110b649b03db9a98
[ "MIT" ]
1
2022-03-29T13:45:05.000Z
2022-03-29T13:45:05.000Z
gamestonk_terminal/portfolio/portfolio_controller.py
dakhouya/GamestonkTerminal
006b3570b795215a17c64841110b649b03db9a98
[ "MIT" ]
1
2021-03-19T23:13:42.000Z
2021-03-19T23:13:42.000Z
"""Portfolio Controller""" __docformat__ = "numpy" import argparse import os from os import listdir from os.path import isfile, join from typing import List from datetime import datetime from prompt_toolkit.completion import NestedCompleter import pandas as pd from gamestonk_terminal.parent_classes import BaseControl...
33.041056
100
0.549925
5f8fabb6576e30555e804013749b4cc2e1be97ab
669
py
Python
mainapp/migrations/0025_auto_20180816_1203.py
reyasmohammed/rescuekerala
68ee6cd4ea7b94e04fd32c4d488bcd7a8f2d371c
[ "MIT" ]
1
2018-09-22T21:08:38.000Z
2018-09-22T21:08:38.000Z
mainapp/migrations/0025_auto_20180816_1203.py
reyasmohammed/rescuekerala
68ee6cd4ea7b94e04fd32c4d488bcd7a8f2d371c
[ "MIT" ]
1
2018-08-18T12:00:29.000Z
2018-08-18T12:00:29.000Z
mainapp/migrations/0025_auto_20180816_1203.py
reyasmohammed/rescuekerala
68ee6cd4ea7b94e04fd32c4d488bcd7a8f2d371c
[ "MIT" ]
5
2019-11-07T11:34:56.000Z
2019-11-07T11:36:00.000Z
# Generated by Django 2.1 on 2018-08-16 06:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainapp', '0024_auto_20180815_2306'), ] operations = [ migrations.AddField( model_name='request', name='latlng', ...
27.875
119
0.603886
fc338baaca8ab09a69320355edae108c4219e427
2,036
py
Python
archive/2018/Problem J4: Sunflowers.py
Luke-zhang-04/CCC-Junior-Problems
9fc52296113b333b9b5151202ff67d484d5be6f0
[ "0BSD" ]
null
null
null
archive/2018/Problem J4: Sunflowers.py
Luke-zhang-04/CCC-Junior-Problems
9fc52296113b333b9b5151202ff67d484d5be6f0
[ "0BSD" ]
null
null
null
archive/2018/Problem J4: Sunflowers.py
Luke-zhang-04/CCC-Junior-Problems
9fc52296113b333b9b5151202ff67d484d5be6f0
[ "0BSD" ]
null
null
null
lines = int(input()) table = [] for i in range(lines): table.append(list(map(int, input().split(" ")))) def rotate(deg, table): cout = [] if deg == 180: for i in range(lines): cout.append(table[i][::-1]) cout = cout[::-1] elif deg == 90: for i in range(lines): ...
23.136364
59
0.418959
991ddbd30b2a87c3fe3efd1f56e80120f0c5fa56
779
py
Python
42smtp.py
Ulyssesss/Learn-Python
03f0b0ff52158ea239e89e8604c2744fe9a6e341
[ "Apache-2.0" ]
1
2017-08-27T15:36:25.000Z
2017-08-27T15:36:25.000Z
42smtp.py
Ulyssesss/learn-python
03f0b0ff52158ea239e89e8604c2744fe9a6e341
[ "Apache-2.0" ]
null
null
null
42smtp.py
Ulyssesss/learn-python
03f0b0ff52158ea239e89e8604c2744fe9a6e341
[ "Apache-2.0" ]
null
null
null
from email.header import Header from email.mime.text import MIMEText from email.utils import parseaddr, formataddr import smtplib def _format_addr(s): name, addr = parseaddr(s) return formataddr((Header(name, 'utf-8').encode(), addr)) from_address = input('From: ') password = input('Password: ') to_address ...
28.851852
61
0.709884
330a51aa00ab71aa87d3b1705165d9c4f055d3a1
2,998
py
Python
scripts/loader.py
hs-apotell/UHDM
ce9d7a3b3bca397c81918e32635db82192daf475
[ "Apache-2.0" ]
null
null
null
scripts/loader.py
hs-apotell/UHDM
ce9d7a3b3bca397c81918e32635db82192daf475
[ "Apache-2.0" ]
null
null
null
scripts/loader.py
hs-apotell/UHDM
ce9d7a3b3bca397c81918e32635db82192daf475
[ "Apache-2.0" ]
1
2020-09-07T06:59:41.000Z
2020-09-07T06:59:41.000Z
import orderedmultidict import os import pprint import re from collections import OrderedDict import config def _load_one_model(filepath): lineNo = 0 top_def = None cur_def = None with open(filepath, 'rt') as strm: for line in strm: lineNo += 1 # Strip out any comment...
28.283019
83
0.500334