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
0e9544a0b4d7d1664ac8ac4ecb9dec668b7b299a
2,313
py
Python
wrapper.py
maxfrei750/CarbonBlackSegmentation
ff5aeaf03a9c60c1a0396f1d2b6d5a3347808a30
[ "MIT" ]
null
null
null
wrapper.py
maxfrei750/CarbonBlackSegmentation
ff5aeaf03a9c60c1a0396f1d2b6d5a3347808a30
[ "MIT" ]
null
null
null
wrapper.py
maxfrei750/CarbonBlackSegmentation
ff5aeaf03a9c60c1a0396f1d2b6d5a3347808a30
[ "MIT" ]
null
null
null
""" This module contains a series of wrappers, that take an input in the form of image paths and output segmented masks. Various renditions are available. Demonstration of the use of these wrappers is provided in the scripts in the demo folder. """ import os # used in generating file paths from glob import glob impo...
33.042857
74
0.69131
4c3219e79d597720cd1f9d8fc6c3833edde9d278
388
py
Python
CataractProject/Scripts/pip3-script.py
Pangxiaox/-
605293093f8a9c28b33e29ab4253f8e5c407788f
[ "MIT" ]
null
null
null
CataractProject/Scripts/pip3-script.py
Pangxiaox/-
605293093f8a9c28b33e29ab4253f8e5c407788f
[ "MIT" ]
null
null
null
CataractProject/Scripts/pip3-script.py
Pangxiaox/-
605293093f8a9c28b33e29ab4253f8e5c407788f
[ "MIT" ]
2
2019-09-06T11:13:01.000Z
2019-09-06T11:24:54.000Z
#!D:\CataractProject\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( ...
29.846154
69
0.659794
9a3912d86317f934ee56051515a3d72dfee54754
257
py
Python
aula2.py
HellDonXXl/python
cd33dd879fb1cc640e1e0171a590cf2d3e89c96b
[ "MIT" ]
null
null
null
aula2.py
HellDonXXl/python
cd33dd879fb1cc640e1e0171a590cf2d3e89c96b
[ "MIT" ]
null
null
null
aula2.py
HellDonXXl/python
cd33dd879fb1cc640e1e0171a590cf2d3e89c96b
[ "MIT" ]
null
null
null
numeropessoas = int(input("digite o numero de pessoa: ")) valordaconta = float(input("digite o valor da conta: ")) a = 0.1 dezgarcom = valordaconta * a couvert = numeropessoas * 10 valortotal = valordaconta + dezgarcom + couvert print("",valortotal)
21.416667
57
0.712062
77de37550bf747b649bbe4848354b63698783d00
1,797
py
Python
pyspedas_examples/examples/ex_dsl2gse.py
spedas/pyspedas_examples
846ed292237bb1f11e1f737d7241ec15dfd1b743
[ "MIT" ]
1
2022-01-25T10:56:09.000Z
2022-01-25T10:56:09.000Z
pyspedas_examples/examples/ex_dsl2gse.py
spedas/pyspedas_examples
846ed292237bb1f11e1f737d7241ec15dfd1b743
[ "MIT" ]
1
2022-02-09T16:54:44.000Z
2022-02-10T15:00:46.000Z
pyspedas_examples/examples/ex_dsl2gse.py
spedas/pyspedas_examples
846ed292237bb1f11e1f737d7241ec15dfd1b743
[ "MIT" ]
2
2020-05-08T18:37:31.000Z
2020-05-10T17:50:07.000Z
""" Load tha_fgl_dsl data and perform a dsl to gse transformation. Notes ----- To duplicate this example on IDL SPEDAS, and compare the results to pyspedas, run the following IDL code: pro thm_crib_fgm timespan, '2017-03-23', 1 thm_load_state, probe='a', /get_support_data thm_...
29.459016
79
0.632165
2e61fa070d6726137be3e28128fb2da2e980c0e5
345
py
Python
560-subarray-sum-equals-k/560-subarray-sum-equals-k.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
560-subarray-sum-equals-k/560-subarray-sum-equals-k.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
560-subarray-sum-equals-k/560-subarray-sum-equals-k.py
Nitin-Diwakar/75DaysCodingChallenge-TechMaestro
69a355edd6f3a331b9c303ab622b1fbf49b4744a
[ "MIT" ]
null
null
null
class Solution: def subarraySum(self, nums: List[int], k: int) -> int: ans=0 prefsum=0 d={0:1} for num in nums: prefsum = prefsum + num if prefsum-k in d: ans = ans + d[prefsum-k] if prefsum not in d: d[prefsum] = 1 else: d[prefsum] = d[prefsum]+1 ...
18.157895
58
0.507246
c217816a8568997dd56e5b107273418cade492fe
4,311
py
Python
ha_healthchecker/ha_healthchecker/action/refresher.py
bzhaoopenstack/labkeeper
fecda8a306fd3f1dea3f66606ac8bd962981d2b0
[ "Apache-2.0" ]
4
2019-04-02T03:49:13.000Z
2022-01-22T14:57:33.000Z
ha_healthchecker/ha_healthchecker/action/refresher.py
bzhaoopenstack/labkeeper
fecda8a306fd3f1dea3f66606ac8bd962981d2b0
[ "Apache-2.0" ]
451
2019-03-25T07:27:52.000Z
2021-07-26T01:26:43.000Z
ha_healthchecker/ha_healthchecker/action/refresher.py
bzhaoopenstack/labkeeper
fecda8a306fd3f1dea3f66606ac8bd962981d2b0
[ "Apache-2.0" ]
14
2018-09-28T18:45:12.000Z
2022-01-22T14:57:22.000Z
import datetime from ha_healthchecker.action import base class Refresher(base.Action): def __init__(self, zk, cluster_config): super(Refresher, self).__init__(zk, cluster_config) def _local_node_service_process(self, node_obj): service_objs = self.zk.list_services(node_name_filter=node_obj.n...
41.854369
78
0.54187
b2cb1cc565566d158c149b8480db7b28fc5ed0fc
2,536
py
Python
pinball_ext/job/hadoop_jobs.py
DotModus/pinball
deeb4ec20bbd000ad44f7b44e6a7c0fa900dbbea
[ "Apache-2.0" ]
1,143
2015-03-06T22:10:53.000Z
2022-02-23T21:16:47.000Z
pinball_ext/job/hadoop_jobs.py
DotModus/pinball
deeb4ec20bbd000ad44f7b44e6a7c0fa900dbbea
[ "Apache-2.0" ]
70
2015-03-06T00:44:39.000Z
2019-05-01T13:15:10.000Z
pinball_ext/job/hadoop_jobs.py
Betterment/pinball
11120b54fcc25b2857631a5de65a1195ffcffb5c
[ "Apache-2.0" ]
169
2015-03-09T21:27:12.000Z
2022-03-19T08:09:13.000Z
# Copyright 2015, Pinterest, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
35.222222
80
0.671924
76afdbcf760149ce903a5387adbe3a817ddd97d9
6,734
py
Python
software/python-package/shepherd/launcher.py
orgua/shepherd
347af12740b008a78b7012ae748d9eb2b147274b
[ "MIT" ]
null
null
null
software/python-package/shepherd/launcher.py
orgua/shepherd
347af12740b008a78b7012ae748d9eb2b147274b
[ "MIT" ]
5
2020-10-14T14:30:55.000Z
2020-11-04T15:52:07.000Z
software/python-package/shepherd/launcher.py
orgua/shepherd
347af12740b008a78b7012ae748d9eb2b147274b
[ "MIT" ]
1
2020-07-15T09:21:28.000Z
2020-07-15T09:21:28.000Z
# -*- coding: utf-8 -*- """ shepherd.launcher ~~~~~ Launcher allows to start and stop shepherd service with the press of a button. Relies on systemd service. :copyright: (c) 2019 Networked Embedded Systems Lab, TU Dresden. :license: MIT, see LICENSE for more details. """ from typing import NoReturn from threading im...
32.220096
112
0.594001
ee2f9f265580bcc3eeb65a790b57535060142f65
34,753
py
Python
venv/lib/python2.7/site-packages/ansible/modules/cloud/centurylink/clc_loadbalancer.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
venv/lib/python2.7/site-packages/ansible/modules/cloud/centurylink/clc_loadbalancer.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
venv/lib/python2.7/site-packages/ansible/modules/cloud/centurylink/clc_loadbalancer.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
#!/usr/bin/python # # Copyright (c) 2015 CenturyLink # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['prev...
37.409042
119
0.561448
ef64c3861730c25062a1640ce79c835540ce6d76
3,258
py
Python
ratatosk/lib/utils/misc.py
SciLifeLab/ratatosk
4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0
[ "Apache-2.0" ]
null
null
null
ratatosk/lib/utils/misc.py
SciLifeLab/ratatosk
4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0
[ "Apache-2.0" ]
null
null
null
ratatosk/lib/utils/misc.py
SciLifeLab/ratatosk
4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Per Unneberg # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
40.222222
143
0.689994
9d165a525002aecf012cec39190adbeadeee2b7b
1,022
py
Python
{{cookiecutter.repo_name}}/runtests.py
HandyCodeJob/hcj-django-temp
b42c8c27cf4644b29a480356f48281e97fe97fcc
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.repo_name}}/runtests.py
HandyCodeJob/hcj-django-temp
b42c8c27cf4644b29a480356f48281e97fe97fcc
[ "BSD-3-Clause" ]
10
2015-11-06T06:28:34.000Z
2015-12-26T22:48:31.000Z
{{cookiecutter.repo_name}}/runtests.py
HandyCodeJob/hcj-django-temp
b42c8c27cf4644b29a480356f48281e97fe97fcc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ http://www.crccheck.com/blog/django-nose-without-django-nose/ HACK to support the Django + nose without django-nose. Built based on documentation from: * https://docs.djangoproject.com/en/1.8/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications # noqa * http://n...
29.2
131
0.739726
9090f821615f3c8581c28fa1f8b3131a55b42b60
3,336
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_configuration.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_configuration.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_configuration.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.333333
129
0.683453
d27365f416ce973c9031264e92bba4ee934af2a7
1,788
py
Python
plugins/wigle/komand_wigle/actions/get_files_status/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/wigle/komand_wigle/actions/get_files_status/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/wigle/komand_wigle/actions/get_files_status/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import komand from .schema import GetFilesStatusInput, GetFilesStatusOutput # Custom imports below class GetFilesStatus(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="get_files_status", description="Get the status of files uploaded by the current u...
33.111111
100
0.456376
aadc46ec098c00ae103836a8bf3320d0b9765e2e
1,876
py
Python
scripts/train.py
davnn/deep_pommerman
98375ffbd076ade584309b9feef248e30de77120
[ "Apache-2.0" ]
null
null
null
scripts/train.py
davnn/deep_pommerman
98375ffbd076ade584309b9feef248e30de77120
[ "Apache-2.0" ]
null
null
null
scripts/train.py
davnn/deep_pommerman
98375ffbd076ade584309b9feef248e30de77120
[ "Apache-2.0" ]
null
null
null
import argparse from typing import Optional, Dict import torch from graphic_pomme_env.wrappers import NUM_STACK from stable_baselines3 import PPO from stable_baselines3.common.env_util import make_vec_env from stable_baselines3.common.callbacks import CallbackList, CheckpointCallback, EvalCallback from scripts.agents...
40.782609
115
0.724947
91921a0cec639471d9e700bb16b4a2dba4d3d1cc
714
py
Python
app/main/views/sub_navigation_dictionaries.py
GouvQC/notification-admin
5707d8526668e0800ede256db925bdec6f58455d
[ "MIT" ]
null
null
null
app/main/views/sub_navigation_dictionaries.py
GouvQC/notification-admin
5707d8526668e0800ede256db925bdec6f58455d
[ "MIT" ]
null
null
null
app/main/views/sub_navigation_dictionaries.py
GouvQC/notification-admin
5707d8526668e0800ede256db925bdec6f58455d
[ "MIT" ]
null
null
null
def features_nav(): return [ { "name": "Features", "link": "main.features", "sub_navigation_items": [ { "name": "Emails", "link": "main.features_email", }, { "name"...
23.032258
56
0.330532
e6e83d883a5a3ae8a05dc491dcbb6ab0edb63389
14,392
py
Python
tutorials/DT_RNN_Tut.py
msiahbani/GroundHog-NMT
d2beadc3d0fb6b007a2bc6c26a3d5e914452da9d
[ "BSD-3-Clause" ]
65
2015-05-21T21:33:38.000Z
2021-11-15T14:12:40.000Z
tutorials/DT_RNN_Tut.py
janchorowski/GroundHog
68d01c90becbf31a487be18985defb0c95f2b522
[ "BSD-3-Clause" ]
7
2015-11-24T17:25:17.000Z
2016-04-05T13:05:45.000Z
tutorials/DT_RNN_Tut.py
janchorowski/GroundHog
68d01c90becbf31a487be18985defb0c95f2b522
[ "BSD-3-Clause" ]
45
2015-06-29T15:34:55.000Z
2021-03-24T10:24:31.000Z
""" Test of the classical LM model for language modelling """ from groundhog.datasets import LMIterator from groundhog.trainer.SGD_momentum import SGD as SGD_m from groundhog.trainer.SGD import SGD from groundhog.mainLoop import MainLoop from groundhog.layers import MultiLayer, \ RecurrentMultiLayer, \ Re...
34.430622
84
0.594427
c9b3e75408bb1af50cd690e9ac41e175bf7c8044
716
py
Python
FeatureCollection/metadata_aggregation.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
FeatureCollection/metadata_aggregation.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
FeatureCollection/metadata_aggregation.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map def cal_area(feature): num = ee.Number.parse(feature.get('areasqkm')) return feature.set('areasqkm', num) # Load watersheds from a data table. sheds = ee.FeatureCollection('USGS/WBD/2017/HUC06') \ .filterBounds(ee.Geometry.Rectangle(-127.18, 19.39, -62.75, 51.29)) \ ....
31.130435
71
0.703911
f2da0d620f11aaab5a7c16dfc1af780089e05924
2,963
py
Python
wenmo-sourcecode/wenmo/utils.py
Ryan0v0/DatabaseDesign-WenMo
a1f86af6e34f1121caec0ee2526d0e0d24504425
[ "MIT" ]
3
2019-12-12T16:36:50.000Z
2021-09-08T02:14:44.000Z
wenmo-sourcecode/wenmo/utils.py
Ryan0v0/DatabaseDesign-WenMo
a1f86af6e34f1121caec0ee2526d0e0d24504425
[ "MIT" ]
5
2021-03-19T09:14:47.000Z
2022-01-13T01:57:15.000Z
wenmo-sourcecode/wenmo/utils.py
Ryan0v0/DatabaseDesign-WenMo
a1f86af6e34f1121caec0ee2526d0e0d24504425
[ "MIT" ]
null
null
null
import os import uuid try: from urlparse import urlparse, urljoin except ImportError: from urllib.parse import urlparse, urljoin import PIL from PIL import Image from flask import current_app, request, url_for, redirect, flash from itsdangerous import BadSignature, SignatureExpired from itsdangerous import T...
29.336634
104
0.676679
44e34a3639994b8da6dd7f6a74a4353539883c4d
30,791
py
Python
selfdrive/controls/controlsd.py
DS1SQM/OPKR084test_20210505
76fc12bff1472b8bbe62206cb8ae014f4c2fb969
[ "MIT" ]
null
null
null
selfdrive/controls/controlsd.py
DS1SQM/OPKR084test_20210505
76fc12bff1472b8bbe62206cb8ae014f4c2fb969
[ "MIT" ]
null
null
null
selfdrive/controls/controlsd.py
DS1SQM/OPKR084test_20210505
76fc12bff1472b8bbe62206cb8ae014f4c2fb969
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import math from cereal import car, log from common.numpy_fast import clip, interp from common.realtime import sec_since_boot, config_realtime_process, Priority, Ratekeeper, DT_CTRL from common.profiler import Profiler from common.params import Params, put_nonblocking import cereal.mess...
43.799431
189
0.719171
812fac19f86095d63e68d0e4ee7d0e7c4eff8815
39,490
py
Python
Lib/asyncio/selector_events.py
gnprice/cpython-old
fc60914f56ad64139577cd1925883bac0bd9edd1
[ "PSF-2.0" ]
null
null
null
Lib/asyncio/selector_events.py
gnprice/cpython-old
fc60914f56ad64139577cd1925883bac0bd9edd1
[ "PSF-2.0" ]
null
null
null
Lib/asyncio/selector_events.py
gnprice/cpython-old
fc60914f56ad64139577cd1925883bac0bd9edd1
[ "PSF-2.0" ]
null
null
null
"""Event loop using a selector and related classes. A selector is a "notify-when-ready" multiplexer. For a subclass which also includes support for signal handling, see the unix_events sub-module. """ __all__ = ['BaseSelectorEventLoop'] import collections import errno import functools import socket import warnings ...
36.769088
89
0.56356
dd396bd68c5cf4d0a1d0ce169737034b72f548fb
920
py
Python
src/catalog/urls.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
1
2016-01-18T08:19:22.000Z
2016-01-18T08:19:22.000Z
src/catalog/urls.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
src/catalog/urls.py
litedesk/litedesk-webserver-provision
1576b9d3e5e2e64d1136d276767c2710cfb1938f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
31.724138
80
0.719565
a5ee16c49eddcb3c1a0b8aa2477f4468dba7ad4d
5,516
py
Python
etc/examples/tf-model/input_data.py
adrian555/FfDL
937c32310d98c6d900e19e59e2da1228557cbcd4
[ "Apache-2.0" ]
680
2018-02-09T18:16:41.000Z
2022-03-25T06:54:13.000Z
etc/examples/tf-model/input_data.py
adrian555/FfDL
937c32310d98c6d900e19e59e2da1228557cbcd4
[ "Apache-2.0" ]
118
2018-02-09T23:12:57.000Z
2022-03-02T02:24:59.000Z
etc/examples/tf-model/input_data.py
adrian555/FfDL
937c32310d98c6d900e19e59e2da1228557cbcd4
[ "Apache-2.0" ]
202
2018-02-09T18:25:07.000Z
2021-12-05T09:47:15.000Z
#!/usr/bin/env python """Functions for downloading and reading MNIST data.""" import gzip from six.moves import xrange from six.moves.urllib.request import urlretrieve import numpy import os def _read32(bytestream): dt = numpy.dtype(numpy.uint32).newbyteorder('>') return numpy.frombuffer(bytestream.read(4), ...
37.020134
125
0.638144
040b96b06dd9d4dc0980c5837641a1b144af536a
28,528
py
Python
utils/fl.py
xnyhps/fl-utils
423dedae38a35fcd97e981376eb2d19d42c2e006
[ "MIT" ]
null
null
null
utils/fl.py
xnyhps/fl-utils
423dedae38a35fcd97e981376eb2d19d42c2e006
[ "MIT" ]
null
null
null
utils/fl.py
xnyhps/fl-utils
423dedae38a35fcd97e981376eb2d19d42c2e006
[ "MIT" ]
null
null
null
#!/usr/bin/python2 # -*- coding: utf-8 -*- import json, re from html.parser import HTMLParser cache = {} data = {} categories = {0: 'Unspecified', 1: 'Currency', 101: 'Weapon', 103: 'Hat', 104: 'Gloves', 105: 'Boots'...
36.857881
206
0.524502
c06ac8a3471733f9917ee6b7165b90efebcdf657
17,602
py
Python
code_doc/utils/send_new_artifact.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/utils/send_new_artifact.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/utils/send_new_artifact.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The intent of this module is to send "artifacts" to a code_doc server, without using any of the Django related stuff and possibly no extra packages. This is done by * logging into the code_doc server using credentials and storing the cookies associated to this session * filling a form that...
33.785029
117
0.599023
ffd36bd878d3456db26fb59ebf30683fcda7a5e3
2,627
py
Python
dataset_partitioning/merge_parquet.py
theferrit32/dataset-partitioning
5c29437f33da79aaf54ee1644e3a57f49a83f002
[ "MIT" ]
null
null
null
dataset_partitioning/merge_parquet.py
theferrit32/dataset-partitioning
5c29437f33da79aaf54ee1644e3a57f49a83f002
[ "MIT" ]
null
null
null
dataset_partitioning/merge_parquet.py
theferrit32/dataset-partitioning
5c29437f33da79aaf54ee1644e3a57f49a83f002
[ "MIT" ]
null
null
null
import os, sys, gc import pandas as pd import logging import binascii from multiprocessing import Pool # logging.basicConfig(level=logging.DEBUG) from dataset_partitioning import logging_util logger = logging_util.get_logger(__name__) def rand_string(length): return binascii.hexlify(os.urandom(int(length/2 + 1))...
35.026667
98
0.688618
d2f0716a6f378f193446b1bff90bb160d0a6abdb
1,819
py
Python
my_site/blog/migrations/0001_initial.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
my_site/blog/migrations/0001_initial.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
my_site/blog/migrations/0001_initial.py
sidharth-lucy/Blog
33afd31faf5a1da44e050b13e3364b419f108c7f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-26 17:38 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Author',...
38.702128
143
0.57779
13afd185acb14fccea98095dbb692294ae494df0
16,552
py
Python
Packs/CommonScripts/Scripts/FindSimilarIncidentsV2/FindSimilarIncidentsV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/CommonScripts/Scripts/FindSimilarIncidentsV2/FindSimilarIncidentsV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/CommonScripts/Scripts/FindSimilarIncidentsV2/FindSimilarIncidentsV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
# type: ignore from CommonServerPython import * import collections from dateutil import parser # type: ignore[import] EXACT_MATCH = 0 CONTAINS = '*' SEVERITY_MAP = { '0': 'Unknown', '0.5': 'Informational', '1': 'Low', '2': 'Medium', '3': 'High', '4': 'Critical' } STATUS_MAP = { '0': 'Pe...
38.945882
120
0.622342
6ed451bb05e127fb0e12eac77f4fbed3cd5382b8
360
py
Python
pingo/examples/blink_firmata_auto.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
pingo/examples/blink_firmata_auto.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
pingo/examples/blink_firmata_auto.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
"""Blink an LED on a remote Arduino This script assumes: - this computer is connected to an Arduino - the Arduino is running the Examples->Firmata->StandardFirmata sketch """ import time import pingo ard = pingo.arduino.get_arduino() print('Connected to: %s' % ard) led = ard.pins[13] led.mode = pingo.OUT while Tr...
17.142857
70
0.713889
7fd998abe6d8410d3bba492685465a569a8ac888
1,053
py
Python
src/garage/np/algos/base.py
parachutel/garage
e9d4301278f5dd31e3cbd20df1422befa2d0b6c4
[ "MIT" ]
3
2020-09-26T16:17:52.000Z
2021-04-23T08:56:04.000Z
src/garage/np/algos/base.py
parachutel/garage
e9d4301278f5dd31e3cbd20df1422befa2d0b6c4
[ "MIT" ]
1
2019-09-03T19:57:40.000Z
2019-09-03T19:57:40.000Z
src/garage/np/algos/base.py
parachutel/garage
e9d4301278f5dd31e3cbd20df1422befa2d0b6c4
[ "MIT" ]
1
2020-12-09T03:06:48.000Z
2020-12-09T03:06:48.000Z
import abc class RLAlgorithm(abc.ABC): """Base class for all the algorithms. Note: If sampler_cls isn't specified to the LocalRunner, self.sampler_cls is required to provide default sampler for algorithm. """ @abc.abstractmethod def train_once(self, itr, paths): ...
26.325
79
0.611586
578acba5ce831384b7eebed8267d6cdffc76bc28
2,873
py
Python
custom_components/sensor/rpi_power.py
aegaas/home-assistant-config
7442c4c9d3e165bd039c4436107769053ae06091
[ "Apache-2.0" ]
1
2018-12-22T17:45:11.000Z
2018-12-22T17:45:11.000Z
custom_components/sensor/rpi_power.py
aegaas/home-assistant-config
7442c4c9d3e165bd039c4436107769053ae06091
[ "Apache-2.0" ]
null
null
null
custom_components/sensor/rpi_power.py
aegaas/home-assistant-config
7442c4c9d3e165bd039c4436107769053ae06091
[ "Apache-2.0" ]
null
null
null
""" A sensor platform which detects underruns and capped status from the official Raspberry Pi Kernel. Minimal Kernel needed is 4.14+ """ import logging import voluptuous as vol from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv from homeassistant.components.sensor impo...
33.022989
98
0.650888
120b082b103f6b8e405158a53e1299a7ec029489
2,780
py
Python
src/game/game.py
Jaavv/poetic_pumas
7274bcf5790eb4aed590042f2ffdbadcd4af71ca
[ "MIT" ]
null
null
null
src/game/game.py
Jaavv/poetic_pumas
7274bcf5790eb4aed590042f2ffdbadcd4af71ca
[ "MIT" ]
null
null
null
src/game/game.py
Jaavv/poetic_pumas
7274bcf5790eb4aed590042f2ffdbadcd4af71ca
[ "MIT" ]
null
null
null
from blessed.keyboard import Keystroke from blessed import Terminal from pathlib import Path from .element_data import ElementData from .input_handler import InputHandler from .level import Level from .level import create_level_from_file from .renderer import Renderer from .soundboard import Soundboard from ..elements....
35.641026
89
0.63705
cc2044a18344255866a4b2034d683f43b386e22f
359
py
Python
simplemooc/courses/migrations/0006_auto_20200827_2021.py
matheuspercario/simplemooc-django
05e3a3ef2249482adb3186b5394e07460030ef5d
[ "MIT" ]
1
2020-09-14T11:55:01.000Z
2020-09-14T11:55:01.000Z
simplemooc/courses/migrations/0006_auto_20200827_2021.py
matheuspercario/simplemooc-django
05e3a3ef2249482adb3186b5394e07460030ef5d
[ "MIT" ]
null
null
null
simplemooc/courses/migrations/0006_auto_20200827_2021.py
matheuspercario/simplemooc-django
05e3a3ef2249482adb3186b5394e07460030ef5d
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-27 23:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('courses', '0005_auto_20200827_2011'), ] operations = [ migrations.RenameField( model_name='material', old_name='nome', ...
18.894737
47
0.582173
d0f8323824bef2a99d4c0ab88803df902a569117
1,156
py
Python
support/cross/aio/clock.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
3
2022-03-11T22:02:39.000Z
2022-03-16T08:04:33.000Z
support/cross/aio/clock.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
null
null
null
support/cross/aio/clock.py
pmp-p/python-wasm-plus
ccd34cf46fc00924e256a0ad1d8cf5061b9520ac
[ "MIT" ]
null
null
null
import sys import time import asyncio class tui: # use direct access, it is absolute addressing on raw terminal. out = sys.__stdout__.write # save cursor def __enter__(self): self.out("\x1b7\x1b[?25l") return self # restore cursor def __exit__(self, *tb): self.out("\x...
22.230769
87
0.49654
5eb8d01aaa82ed5f107852932e2d352f233bc2cb
8,328
py
Python
integration/combination/test_function_with_alias.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
null
null
null
integration/combination/test_function_with_alias.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
1
2020-03-03T01:46:46.000Z
2020-03-03T01:46:46.000Z
integration/combination/test_function_with_alias.py
hawflau/serverless-application-model
d2cf4b7e23d26cdf677c564d53bb58e6a5b6cac2
[ "Apache-2.0" ]
null
null
null
import json from botocore.exceptions import ClientError from integration.helpers.base_test import BaseTest, LOG from integration.helpers.common_api import get_function_versions class TestFunctionWithAlias(BaseTest): def test_updating_version_by_changing_property_value(self): self.create_and_verify_stack(...
48.418605
144
0.692843
e65443b585324725f92d3c9ffae12123b3b9177c
1,954
py
Python
lustre/num_osts_demo.py
PawseySC/Intermediate-Supercomputing
2adfdbe994d1a07491ffee783bfd2a2c03f03e7e
[ "CC0-1.0" ]
3
2018-04-06T02:57:44.000Z
2018-11-27T22:01:11.000Z
lustre/num_osts_demo.py
PawseySupercomputing/Intermediate-Supercomputing
28252556226354ef9a01178d6ebb54757b0bea2f
[ "CC0-1.0" ]
1
2020-10-09T07:20:40.000Z
2020-10-22T04:23:27.000Z
lustre/num_osts_demo.py
PawseySupercomputing/Intermediate-Supercomputing
28252556226354ef9a01178d6ebb54757b0bea2f
[ "CC0-1.0" ]
3
2018-03-01T05:56:44.000Z
2018-10-02T15:54:39.000Z
### LUSTRE - NUMBER OF OSTS DEMO ###------------------------------------------------------------------------------------------------ ## In this demo we will show how the number of OSTs used to store a file in Lustre ## can effect the write and write performance from/to that file. import os, shutil, sys, subprocess ...
34.892857
107
0.645343
3a71938710910cb0b853642bacd902fd82a2de66
12,457
py
Python
tensorflow_federated/python/simulation/baselines/task_data.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
1,918
2019-02-22T21:17:28.000Z
2022-03-30T14:49:53.000Z
tensorflow_federated/python/simulation/baselines/task_data.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
999
2019-02-22T21:47:44.000Z
2022-03-31T11:06:42.000Z
tensorflow_federated/python/simulation/baselines/task_data.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
498
2019-02-22T21:17:56.000Z
2022-03-29T02:54:15.000Z
# Copyright 2021, The TensorFlow Federated 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...
41.248344
80
0.712371
e132143330b7cbb0327b0f57be106bbef79b276d
965
py
Python
lib/model/roi_crop/buildWin.py
georkap/faster-rcnnwv.pytorch
56ae1a5f5b620e2c019821a31543dbd3cb72c2f3
[ "MIT" ]
null
null
null
lib/model/roi_crop/buildWin.py
georkap/faster-rcnnwv.pytorch
56ae1a5f5b620e2c019821a31543dbd3cb72c2f3
[ "MIT" ]
null
null
null
lib/model/roi_crop/buildWin.py
georkap/faster-rcnnwv.pytorch
56ae1a5f5b620e2c019821a31543dbd3cb72c2f3
[ "MIT" ]
null
null
null
from __future__ import print_function import os import torch from torch.utils.ffi import create_extension #this_file = os.path.dirname(__file__) sources = ['src/roi_crop.c'] headers = ['src/roi_crop.h'] defines = [] with_cuda = False if torch.cuda.is_available(): print('Including CUDA code.') sources += ['sr...
24.74359
75
0.705699
38ef4b1577c0a7434ede0dacec38ae6d3cb3f487
34,520
py
Python
scripts/misc/TrainFilm.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
scripts/misc/TrainFilm.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
scripts/misc/TrainFilm.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.utils.rnn as rnn_utils import torch.optim as optim import os from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR from torch.utils.data import Data...
45.782493
246
0.56095
6a458a99f5d27d7b8d3c28b3fe766161c1bb6c30
8,274
py
Python
codenode/frontend/async/backend.py
ccordoba12/codenode
a1e9095f35a179a8dcfe3e4054760864118b4e2b
[ "BSD-3-Clause" ]
1
2015-08-14T04:38:41.000Z
2015-08-14T04:38:41.000Z
codenode/frontend/async/backend.py
ccordoba12/codenode
a1e9095f35a179a8dcfe3e4054760864118b4e2b
[ "BSD-3-Clause" ]
null
null
null
codenode/frontend/async/backend.py
ccordoba12/codenode
a1e9095f35a179a8dcfe3e4054760864118b4e2b
[ "BSD-3-Clause" ]
null
null
null
######################################################################### # Copyright (C) 2007, 2008, 2009 # Alex Clemesha <alex@clemesha.org> & Dorian Raymer <deldotdr@gmail.com> # # This module is part of codenode, and is distributed under the terms # of the BSD License: http://www.opensource.org/licenses/bsd-li...
32.447059
79
0.614213
944f881008eb5d84b47a36ecee4177f046e4da69
3,051
py
Python
videodownloader/main.py
JakeWharton/py-videodownloader
787e88ad46280288f559e728598fcb2a8487129c
[ "Apache-2.0" ]
41
2015-02-02T02:05:40.000Z
2021-08-11T04:36:21.000Z
videodownloader/main.py
clsung/py-videodownloader
0e560d768b8445c39610e18667f5f4954ecbb253
[ "Apache-2.0" ]
2
2016-08-20T16:50:55.000Z
2017-07-06T15:36:16.000Z
videodownloader/main.py
clsung/py-videodownloader
0e560d768b8445c39610e18667f5f4954ecbb253
[ "Apache-2.0" ]
15
2015-03-12T08:55:33.000Z
2020-06-04T22:51:42.000Z
#!/usr/bin/env python __license__ = ''' Copyright 2010 Jake Wharton py-video-downloader is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versi...
39.115385
146
0.654539
9046d3c42ed9ed6a66c37564d99a3423ad7e6cda
22,247
py
Python
tensorflow_models/GLMP.py
shiquanyang/GLMP
7f085bdd66aa414c8a4efd301810ad81160ac563
[ "MIT" ]
null
null
null
tensorflow_models/GLMP.py
shiquanyang/GLMP
7f085bdd66aa414c8a4efd301810ad81160ac563
[ "MIT" ]
3
2019-09-17T10:56:04.000Z
2019-10-16T00:13:28.000Z
tensorflow_models/GLMP.py
shiquanyang/GLMP
7f085bdd66aa414c8a4efd301810ad81160ac563
[ "MIT" ]
null
null
null
import tensorflow as tf from utils.config import * from tensorflow_models.encoder import ContextRNN from tensorflow_models.ExternalKnowledge import ExternalKnowledge from tensorflow_models.decoder import LocalMemoryDecoder import random import numpy as np from tensorflow.python.framework import ops import json from uti...
55.066832
229
0.531802
a68a72dfa9bd949d784452d4cd84db616897a21f
362
py
Python
server.py
teovoinea/opv
878026c2099972b352926b3d357d4e041ef458cd
[ "MIT" ]
1
2019-11-05T09:32:23.000Z
2019-11-05T09:32:23.000Z
server.py
teovoinea/opv
878026c2099972b352926b3d357d4e041ef458cd
[ "MIT" ]
49
2018-01-15T00:23:11.000Z
2020-06-01T11:08:25.000Z
server.py
teovoinea/opv
878026c2099972b352926b3d357d4e041ef458cd
[ "MIT" ]
1
2021-03-23T23:31:04.000Z
2021-03-23T23:31:04.000Z
import socket import time UDP_IP = "127.0.0.1" UDP_PORT = 4242 sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP sock.bind((UDP_IP, UDP_PORT)) start_time = time.time() while True: data, addr = sock.recvfrom(1500) # buffer size is 1024 bytes print (time.time() ...
22.625
64
0.654696
c4f7c5315dea5f8fbf73b079c26c47aa1a40e143
2,661
py
Python
cloud-build.py
Obirvalger/cloud-build
4cf56dcd9b1567ca10fb3d693207215eee798fcc
[ "MIT" ]
1
2019-08-22T13:19:42.000Z
2019-08-22T13:19:42.000Z
cloud-build.py
Obirvalger/cloud-build
4cf56dcd9b1567ca10fb3d693207215eee798fcc
[ "MIT" ]
null
null
null
cloud-build.py
Obirvalger/cloud-build
4cf56dcd9b1567ca10fb3d693207215eee798fcc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from collections.abc import Iterable import argparse import yaml import sys import cloud_build PROG = 'cloud-build' def parse_args(): def is_dict(string): raw_dict = dict(yaml.safe_load(string)) result = {} for k, v in raw_dict.items(): key = k.lower() ...
23.342105
71
0.570838
9b5d3f8a370da457532a10aaa48515cd3583b826
15,321
py
Python
cassiopeia/datastores/riotapi/leagues.py
mertkutay/cassiopeia
1c4005f78f216322d179f3465303d105261beab2
[ "MIT" ]
null
null
null
cassiopeia/datastores/riotapi/leagues.py
mertkutay/cassiopeia
1c4005f78f216322d179f3465303d105261beab2
[ "MIT" ]
null
null
null
cassiopeia/datastores/riotapi/leagues.py
mertkutay/cassiopeia
1c4005f78f216322d179f3465303d105261beab2
[ "MIT" ]
null
null
null
from typing import Type, TypeVar, MutableMapping, Any, Iterable, Generator from datapipelines import DataSource, PipelineContext, Query, NotFoundError, validate_query from .common import RiotAPIService, APINotFoundError from ...data import Platform, Queue from ...dto.league import LeaguesListDto, ChallengerLeagueListD...
53.197917
187
0.650741
f984404c0243f38c664f58f6c079aa0cf3c8ee58
9,207
py
Python
config/settings/production.py
yerkebulan19971212/dipploma
d274088aa477dadd7971950b80ef9ea3ea366a6b
[ "MIT" ]
null
null
null
config/settings/production.py
yerkebulan19971212/dipploma
d274088aa477dadd7971950b80ef9ea3ea366a6b
[ "MIT" ]
null
null
null
config/settings/production.py
yerkebulan19971212/dipploma
d274088aa477dadd7971950b80ef9ea3ea366a6b
[ "MIT" ]
null
null
null
import logging import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.logging import LoggingIntegration from sentry_sdk.integrations.celery import CeleryIntegration from .base import * # noqa from .base import env # GENERAL # -----------------------------------...
40.92
100
0.633648
f779c2c1898bf9169019877149f86baa55631f5b
17,616
py
Python
dataset/convert_tfrecords.py
HiKapok/DAN
fb726fad86b3f53d12c7bc5b833a705d7d885563
[ "Apache-2.0" ]
15
2019-01-28T01:56:15.000Z
2021-04-27T19:33:46.000Z
dataset/convert_tfrecords.py
HiKapok/DAN
fb726fad86b3f53d12c7bc5b833a705d7d885563
[ "Apache-2.0" ]
3
2019-05-14T07:25:17.000Z
2021-08-11T01:50:59.000Z
dataset/convert_tfrecords.py
HiKapok/DAN
fb726fad86b3f53d12c7bc5b833a705d7d885563
[ "Apache-2.0" ]
7
2019-04-11T09:25:11.000Z
2020-12-18T06:04:10.000Z
# Copyright 2018 Changan Wang # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
39.233853
155
0.686478
17d296d40cc1759c7265ce628143918aae5b2cba
726
py
Python
kings_and_pigs/entities/stats_heart.py
yumauri/kings_and_pigs
f22be6bbe988f430d72b5ce55283b78d3cc3fe9e
[ "MIT" ]
null
null
null
kings_and_pigs/entities/stats_heart.py
yumauri/kings_and_pigs
f22be6bbe988f430d72b5ce55283b78d3cc3fe9e
[ "MIT" ]
2
2021-12-02T11:05:53.000Z
2021-12-23T18:19:23.000Z
kings_and_pigs/entities/stats_heart.py
yumauri/kings_and_pigs
f22be6bbe988f430d72b5ce55283b78d3cc3fe9e
[ "MIT" ]
null
null
null
from ..functions import loader from .animation import Animation from .animated_entity import AnimatedEntity # stats heart sprites loader load_image = loader("kings_and_pigs/data/sprites/12-Live and Coins") class StatsHeart(AnimatedEntity): def __init__(self, x, y): idle = load_image("Small Heart Idle (1...
27.923077
68
0.692837
aaadbccc68aa4cce7a5688620bc0f855daa975c6
1,918
py
Python
openpyxl2/chartsheet/tests/test_relation.py
j5int/openpyxl2
3c82567c33d6cad5b0b26eea97da7bb39ba7f4c8
[ "MIT" ]
null
null
null
openpyxl2/chartsheet/tests/test_relation.py
j5int/openpyxl2
3c82567c33d6cad5b0b26eea97da7bb39ba7f4c8
[ "MIT" ]
null
null
null
openpyxl2/chartsheet/tests/test_relation.py
j5int/openpyxl2
3c82567c33d6cad5b0b26eea97da7bb39ba7f4c8
[ "MIT" ]
null
null
null
from __future__ import absolute_import # Copyright (c) 2010-2018 openpyxl import pytest from openpyxl2.xml.functions import fromstring, tostring from openpyxl2.tests.helper import compare_xml @pytest.fixture def SheetBackgroundPicture(): from ..chartsheet import SheetBackgroundPicture return SheetBackgroun...
32.508475
131
0.675704
a283d944ba564e2e2b8b59ed5d80a6ba92827a34
16,368
py
Python
mathics/builtin/specialfns/bessel.py
adamantinum/mathics-core
c8f5d7a7645a17a6a8833f750fb93a352d1ac9b4
[ "Apache-2.0" ]
90
2021-09-11T14:14:00.000Z
2022-03-29T02:08:29.000Z
mathics/builtin/specialfns/bessel.py
adamantinum/mathics-core
c8f5d7a7645a17a6a8833f750fb93a352d1ac9b4
[ "Apache-2.0" ]
187
2021-09-13T01:00:41.000Z
2022-03-31T11:52:52.000Z
mathics/builtin/specialfns/bessel.py
adamantinum/mathics-core
c8f5d7a7645a17a6a8833f750fb93a352d1ac9b4
[ "Apache-2.0" ]
10
2021-10-05T15:44:26.000Z
2022-03-21T12:34:33.000Z
""" Bessel and Related Functions """ import mpmath from mathics.builtin.arithmetic import _MPMathFunction from mathics.builtin.base import Builtin from mathics.core.atoms import from_mpmath from mathics.core.number import machine_precision, get_precision, PrecisionValueError from mathics.core.number import prec as _...
21.536842
154
0.559445
3efe213518780ecd8f164ca0f16977d328ade375
5,334
py
Python
tests/extensions/plugins/test_webhook.py
ballon3/PlanB
890735d0c09f68e7dd603f577e3d5bcbf818a2ab
[ "CC-BY-4.0" ]
1
2019-10-09T16:42:32.000Z
2019-10-09T16:42:32.000Z
tests/extensions/plugins/test_webhook.py
ballon3/PlanB
890735d0c09f68e7dd603f577e3d5bcbf818a2ab
[ "CC-BY-4.0" ]
14
2020-03-24T17:54:18.000Z
2022-02-10T19:43:59.000Z
tests/extensions/plugins/test_webhook.py
ballon3/PlanB
890735d0c09f68e7dd603f577e3d5bcbf818a2ab
[ "CC-BY-4.0" ]
2
2019-10-12T09:35:02.000Z
2019-10-15T07:18:25.000Z
from unittest import mock import pytest import requests from django.core.serializers import serialize from saleor.extensions.manager import get_extensions_manager from saleor.extensions.plugins.webhook import create_hmac_signature from saleor.extensions.plugins.webhook.payloads import ( generate_customer_payload,...
37.56338
88
0.792463
7ae7a57d7a8fefa7210152e36f921292c49edd52
159,368
py
Python
python/ccxt/async_support/gateio.py
trasherdk/ccxt
c82d8e27e0286ede819235158761ce390eed26bb
[ "MIT" ]
null
null
null
python/ccxt/async_support/gateio.py
trasherdk/ccxt
c82d8e27e0286ede819235158761ce390eed26bb
[ "MIT" ]
4
2021-12-14T06:19:10.000Z
2022-03-19T02:39:29.000Z
python/ccxt/async_support/gateio.py
trasherdk/ccxt
c82d8e27e0286ede819235158761ce390eed26bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors impor...
42.657388
204
0.459854
eb5b3a6754eea7735149caac2775f8f66bb2d712
7,232
py
Python
train.py
shizhediao/old-OpenNMT-py
328187e0655a685103c78ae9f77ff8c582e0f270
[ "MIT" ]
null
null
null
train.py
shizhediao/old-OpenNMT-py
328187e0655a685103c78ae9f77ff8c582e0f270
[ "MIT" ]
null
null
null
train.py
shizhediao/old-OpenNMT-py
328187e0655a685103c78ae9f77ff8c582e0f270
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Train models.""" import os import signal import torch import onmt.opts as opts import onmt.utils.distributed from onmt.utils.misc import set_random_seed from onmt.utils.logging import init_logger, logger from onmt.train_single import main as single_main from onmt.utils.parse import ArgumentPa...
34.113208
79
0.627351
6878700031e937643592947d270ff476f8a42281
6
py
Python
recipes/Python/577240_null_null/recipe-577240.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/577240_null_null/recipe-577240.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/577240_null_null/recipe-577240.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
null
3
5
0.666667
07c3c77909bedf3fac18501b4d8b4b5402f0239d
5,645
py
Python
src/mesh/python/x3d_plotter.py
attom/Draco
181b6b0e08bab928492fb5f2e5b23155e0bfad09
[ "BSD-3-Clause-Open-MPI" ]
1
2020-06-23T03:15:23.000Z
2020-06-23T03:15:23.000Z
src/mesh/python/x3d_plotter.py
attom/Draco
181b6b0e08bab928492fb5f2e5b23155e0bfad09
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
src/mesh/python/x3d_plotter.py
attom/Draco
181b6b0e08bab928492fb5f2e5b23155e0bfad09
[ "BSD-3-Clause-Open-MPI" ]
1
2020-06-23T02:02:50.000Z
2020-06-23T02:02:50.000Z
#!/usr/bin/env python # -------------------------------------------*-python-*------------------------------------------- # # file src/mesh/python/x3d_plotter.py # date Monday, Aug 9, 2021 # brief This script plots X3D mesh files. # note Copyright (C) 2021 Triad National Security, LLC., All rights reserved. # -------...
34.631902
100
0.541541
da344ca5106cd15b7c35a162a7dedddc04d7cc2e
3,080
py
Python
frameworks/kafka/tests/test_kerberos_auth.py
amolde/dcos-kafka-service
4ec069750421d70633cf66d47aac9e4463d091c0
[ "Apache-2.0" ]
33
2016-08-01T16:50:53.000Z
2020-12-15T20:50:16.000Z
frameworks/kafka/tests/test_kerberos_auth.py
amolde/dcos-kafka-service
4ec069750421d70633cf66d47aac9e4463d091c0
[ "Apache-2.0" ]
148
2016-08-01T20:10:13.000Z
2020-06-02T02:13:43.000Z
frameworks/kafka/tests/test_kerberos_auth.py
amolde/dcos-kafka-service
4ec069750421d70633cf66d47aac9e4463d091c0
[ "Apache-2.0" ]
38
2016-08-08T17:14:20.000Z
2020-07-08T03:33:56.000Z
import logging import pytest import sdk_auth import sdk_cmd import sdk_install import sdk_networks import sdk_utils from tests import auth from tests import client from tests import config log = logging.getLogger(__name__) @pytest.fixture(scope="module", autouse=True) def kerberos(configure_security): try: ...
27.256637
114
0.655519
87781113a6f849cccc3b4ce914a05ae9aab2bcef
2,768
py
Python
sine/utils/application.py
SineObama/sine.utils
b5ec6e926c8eddfb40e917384833e89e82dd40c8
[ "MIT" ]
null
null
null
sine/utils/application.py
SineObama/sine.utils
b5ec6e926c8eddfb40e917384833e89e82dd40c8
[ "MIT" ]
null
null
null
sine/utils/application.py
SineObama/sine.utils
b5ec6e926c8eddfb40e917384833e89e82dd40c8
[ "MIT" ]
null
null
null
# encoding: UTF-8 from tqdm import tqdm from threading import Lock from config_file import ConfigFile from .func import * class PredictableProcessBar(tqdm): '''继承自tqdm进度条模块,对总体大小未知的进度进行近似估算,使进度条尽量平滑。 使用简单的算法进行预测计算。''' loaded_size=0 # 已知的总大小 loaded_total=0 # 已知的总进度数,对应tqdm.total loaded_avg=0 # 已知的平均...
36.906667
111
0.621387
de891c363e4d2a8b94061e7f38c3b38cc372ec06
1,771
py
Python
examples/ad_manager/v201902/activity_service/get_all_activities.py
nlynch504/googleads-python-lib
8f7bd7f987498c4651c969a7dc73e1d5fc965be2
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201902/activity_service/get_all_activities.py
nlynch504/googleads-python-lib
8f7bd7f987498c4651c969a7dc73e1d5fc965be2
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201902/activity_service/get_all_activities.py
nlynch504/googleads-python-lib
8f7bd7f987498c4651c969a7dc73e1d5fc965be2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
34.72549
79
0.730661
82ffc6d9cea7b1351721389990d5772ab3fbec1b
1,232
py
Python
armada/exceptions/k8s_exceptions.py
sktelecom-oslab/armada
ebc71ff8eca7ecf0560493d5cdafc14e34c783c9
[ "Apache-2.0" ]
null
null
null
armada/exceptions/k8s_exceptions.py
sktelecom-oslab/armada
ebc71ff8eca7ecf0560493d5cdafc14e34c783c9
[ "Apache-2.0" ]
null
null
null
armada/exceptions/k8s_exceptions.py
sktelecom-oslab/armada
ebc71ff8eca7ecf0560493d5cdafc14e34c783c9
[ "Apache-2.0" ]
2
2018-05-28T13:00:42.000Z
2021-09-02T07:28:59.000Z
# Copyright 2018 The Armada 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 or agreed to in w...
36.235294
77
0.769481
e5e94908a0bd5107371136282dbd1ffa065162c0
13,097
py
Python
entropylab/results_backend/sqlalchemy/storage.py
galwiner/entropy
3c799981d20f268840ee68804b5ac740d1d2a8b4
[ "BSD-3-Clause" ]
null
null
null
entropylab/results_backend/sqlalchemy/storage.py
galwiner/entropy
3c799981d20f268840ee68804b5ac740d1d2a8b4
[ "BSD-3-Clause" ]
null
null
null
entropylab/results_backend/sqlalchemy/storage.py
galwiner/entropy
3c799981d20f268840ee68804b5ac740d1d2a8b4
[ "BSD-3-Clause" ]
1
2022-03-29T11:47:31.000Z
2022-03-29T11:47:31.000Z
import os.path import pickle from datetime import datetime from enum import Enum from typing import Optional, Any, Iterable, TypeVar, Callable, List import h5py import numpy as np from entropylab import RawResultData from entropylab.api.data_reader import ResultRecord, MetadataRecord from entropylab.api.data_writer i...
34.375328
88
0.604795
0bc5af947cb972059b3d4c83a05f581070851b6c
24,779
py
Python
twinpy/interfaces/aiida/vasp.py
kei0822kei/twinpy
14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc
[ "MIT" ]
null
null
null
twinpy/interfaces/aiida/vasp.py
kei0822kei/twinpy
14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc
[ "MIT" ]
5
2021-01-19T13:08:28.000Z
2021-02-20T12:03:59.000Z
twinpy/interfaces/aiida/vasp.py
kei0822kei/twinpy
14b47df1fa5b57a54f57d5c2120ed3fe9502a9bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Interface for Aiida-Vasp. """ from pprint import pprint import warnings import numpy as np from matplotlib import pyplot as plt from aiida.cmdline.utils.decorators import with_dbenv from aiida.orm import (load_node, Node, WorkChainNode, ...
32.994674
79
0.546552
b7f571d010d8027c6a894e2a8ef0942994c00dff
19,330
py
Python
src/m6_fancy_iterating.py
Seanxia99/11-Sequences
fd0753537eda4d335246492ecabf0b96306ae2cd
[ "MIT" ]
1
2022-01-07T23:47:49.000Z
2022-01-07T23:47:49.000Z
src/m6_fancy_iterating.py
Seanxia99/11-Sequences
fd0753537eda4d335246492ecabf0b96306ae2cd
[ "MIT" ]
null
null
null
src/m6_fancy_iterating.py
Seanxia99/11-Sequences
fd0753537eda4d335246492ecabf0b96306ae2cd
[ "MIT" ]
65
2018-09-24T11:54:24.000Z
2018-10-17T19:33:17.000Z
""" This module practices ITERATING (i.e. looping) through a SEQUENCE in ways OTHER than just going thru the sequence from BEGINNING to END. It also shows how to SELECT items in a sequence, e.g.: -- the items that are strings -- the items that are even integers (e.g. 2, 4, 6, ...) -- the items in the second half...
37.316602
92
0.496534
91575671d1ad1d3d6b1607da508763790936a2f4
6,066
py
Python
roles/lib_openshift/src/class/oc_adm_ca_server_cert.py
Roscoe198/Ansible-Openshift
b874bef456852ef082a27dfec4f2d7d466702370
[ "Apache-2.0" ]
164
2015-07-29T17:35:04.000Z
2021-12-16T16:38:04.000Z
roles/lib_openshift/src/class/oc_adm_ca_server_cert.py
Roscoe198/Ansible-Openshift
b874bef456852ef082a27dfec4f2d7d466702370
[ "Apache-2.0" ]
3,634
2015-06-09T13:49:15.000Z
2022-03-23T20:55:44.000Z
roles/lib_openshift/src/class/oc_adm_ca_server_cert.py
Roscoe198/Ansible-Openshift
b874bef456852ef082a27dfec4f2d7d466702370
[ "Apache-2.0" ]
250
2015-06-08T19:53:11.000Z
2022-03-01T04:51:23.000Z
# pylint: skip-file # flake8: noqa class CAServerCertConfig(OpenShiftCLIConfig): ''' CAServerCertConfig is a DTO for the oc adm ca command ''' def __init__(self, kubeconfig, verbose, ca_options): super(CAServerCertConfig, self).__init__('ca', None, kubeconfig, ca_options) self.kubeconfig = kube...
42.125
112
0.53363
dda6512288b1a06f80b75a165309695c1f607b5c
17,346
py
Python
ursina/mesh_importer.py
andraskohlmann/ursina
6661589e9f9b9b689138b4c21c7b7b29b9bda810
[ "MIT" ]
null
null
null
ursina/mesh_importer.py
andraskohlmann/ursina
6661589e9f9b9b689138b4c21c7b7b29b9bda810
[ "MIT" ]
1
2020-12-22T16:59:04.000Z
2020-12-22T16:59:04.000Z
ursina/mesh_importer.py
gmvh/ursina
d539812e9b03988230bab47f886bc0f30a71f41e
[ "MIT" ]
null
null
null
import os import glob import platform import subprocess from copy import copy, deepcopy from pathlib import Path from ursina.mesh import Mesh from ursina import application from panda3d.core import CullFaceAttrib from time import perf_counter imported_meshes = dict() def load_model(name, path=application...
36.36478
129
0.542488
5c6aac3de58d41f4b80bf1903101e4ecfe2fa150
113
py
Python
Models/querysets/Field lookups/__second/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
Models/querysets/Field lookups/__second/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
Models/querysets/Field lookups/__second/models.py
looking-for-a-job/django-examples
dfafa450668cac5c0351f6c7238b8886511229bf
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from django.db import models class MyModel(models.Model): time = models.TimeField()
14.125
29
0.716814
dc04dacc77fa27dd65cd5203d9238c8689a01496
5,340
py
Python
nova/tests/integrated/integrated_helpers.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
2
2016-04-19T08:20:39.000Z
2021-10-03T16:00:37.000Z
nova/tests/integrated/integrated_helpers.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/tests/integrated/integrated_helpers.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright 2011 Justin Santa Barbara # 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 requ...
33.584906
78
0.650936
e8f7e47279a3a212308fcd3003b6e9e0aaa3c979
2,396
py
Python
Rainfall Monitor/GetForecast.py
chennes/Rainfall-Monitor
a1430a10add5ed5bf967e8f2eaf471ff75cef8ea
[ "BSD-3-Clause" ]
null
null
null
Rainfall Monitor/GetForecast.py
chennes/Rainfall-Monitor
a1430a10add5ed5bf967e8f2eaf471ff75cef8ea
[ "BSD-3-Clause" ]
null
null
null
Rainfall Monitor/GetForecast.py
chennes/Rainfall-Monitor
a1430a10add5ed5bf967e8f2eaf471ff75cef8ea
[ "BSD-3-Clause" ]
null
null
null
# Weather API: A simple app for learning Python # # This program downloads the latest forecast for Norman, OK and stores it in a couple # of lists suitable for processing with matplotlib # # Copyright 2022 Pioneer Library System # # LICENSE: BSD 3-Clause # # Redistribution and use in source and binary forms, with or w...
42.035088
90
0.750417
74566852099dd9eff927fc905f29a9f5e7da522b
8,772
py
Python
ml/rl/test/gridworld/test_gridworld_sac.py
sfujim/Horizon
ee24203bf72740563f1e12d16990bfafe2ae9c6f
[ "BSD-3-Clause" ]
2
2021-05-23T22:11:21.000Z
2021-06-17T13:08:53.000Z
ml/rl/test/gridworld/test_gridworld_sac.py
sfujim/Horizon
ee24203bf72740563f1e12d16990bfafe2ae9c6f
[ "BSD-3-Clause" ]
null
null
null
ml/rl/test/gridworld/test_gridworld_sac.py
sfujim/Horizon
ee24203bf72740563f1e12d16990bfafe2ae9c6f
[ "BSD-3-Clause" ]
2
2021-01-06T01:06:50.000Z
2021-06-24T01:12:52.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import os import random import tempfile import unittest import numpy as np import numpy.testing as npt import torch from ml.rl.models.actor import DirichletFullyConnectedActor, GaussianFullyConnectedActor from ml.rl.models....
38.13913
88
0.677953
6cafe15dc1607ac3bdd4ab02cc69e183ae95c054
14,942
py
Python
lib/membase/helper/subdoc_helper.py
pavithra-mahamani/testrunner
d204491caa23f1fbe90505646534ed7810d96289
[ "Apache-2.0" ]
1
2020-08-31T18:51:45.000Z
2020-08-31T18:51:45.000Z
lib/membase/helper/subdoc_helper.py
pavithra-mahamani/testrunner
d204491caa23f1fbe90505646534ed7810d96289
[ "Apache-2.0" ]
null
null
null
lib/membase/helper/subdoc_helper.py
pavithra-mahamani/testrunner
d204491caa23f1fbe90505646534ed7810d96289
[ "Apache-2.0" ]
2
2020-07-24T07:12:01.000Z
2022-03-17T23:43:28.000Z
import json import random import logger import time import unittest import copy from TestInput import TestInputSingleton from couchbase_helper.document import DesignDocument, View from membase.api.rest_client import RestConnection, RestHelper from membase.helper.bucket_helper import BucketOperationHelper from membase....
42.090141
133
0.518605
0eb9e5332fcbe93b2aad99cb37245ef61334af08
1,116
py
Python
model-optimizer/mo/ops/activation.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/mo/ops/activation.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/ops/activation.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2018-2019 Intel Corporation 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 i...
29.368421
73
0.666667
9807770677c3c3fa7668d86b3c4d5fd5a4b5093b
3,255
py
Python
main.py
hbeemster/fastapi-todo
e604f1e7b7952d47c002bcd37b98cd0c32f6d39b
[ "MIT" ]
null
null
null
main.py
hbeemster/fastapi-todo
e604f1e7b7952d47c002bcd37b98cd0c32f6d39b
[ "MIT" ]
null
null
null
main.py
hbeemster/fastapi-todo
e604f1e7b7952d47c002bcd37b98cd0c32f6d39b
[ "MIT" ]
null
null
null
import random import uuid from datetime import timedelta from typing import Optional import uvicorn from fastapi import Depends from fastapi import FastAPI, Form from fastapi import Request, Response from fastapi.responses import HTMLResponse from fastapi.templating import Jinja2Templates from sqlalchemy.orm import S...
32.227723
108
0.717358
f55f488008aa84628a583f7f26d9d5832aa94ab1
979
py
Python
transformers/rephub/python-flask-server/setup.py
mapleknight/molecular-data-provider
111418ed7efab3c393c22116854fd322ff367fb9
[ "MIT" ]
5
2020-08-28T09:30:16.000Z
2021-12-29T16:00:26.000Z
transformers/rephub/python-flask-server/setup.py
mapleknight/molecular-data-provider
111418ed7efab3c393c22116854fd322ff367fb9
[ "MIT" ]
19
2021-04-26T22:19:16.000Z
2022-03-09T21:09:55.000Z
transformers/rephub/python-flask-server/setup.py
mapleknight/molecular-data-provider
111418ed7efab3c393c22116854fd322ff367fb9
[ "MIT" ]
8
2020-07-09T18:50:57.000Z
2022-01-20T16:01:33.000Z
# coding: utf-8 import sys from setuptools import setup, find_packages NAME = "repurposing-hub" VERSION = "2.0.0" # To install the library, run the following # # python setup.py install # # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools REQUIRES = [ "connexion>=2.0.2", "swagger-ui-bundle>...
24.475
110
0.697651
b57c1d6308a889ebc336cab898dc99971501250e
5,516
py
Python
tools/accuracy_checker/accuracy_checker/representation/segmentation_representation.py
allnes/open_model_zoo
693ba31b3b7671f5fb8ecf8f9b8d670cfec21bc3
[ "Apache-2.0" ]
1
2019-10-31T06:38:49.000Z
2019-10-31T06:38:49.000Z
tools/accuracy_checker/accuracy_checker/representation/segmentation_representation.py
allnes/open_model_zoo
693ba31b3b7671f5fb8ecf8f9b8d670cfec21bc3
[ "Apache-2.0" ]
6
2020-09-26T01:24:39.000Z
2022-02-10T02:16:03.000Z
tools/accuracy_checker/accuracy_checker/representation/segmentation_representation.py
allnes/open_model_zoo
693ba31b3b7671f5fb8ecf8f9b8d670cfec21bc3
[ "Apache-2.0" ]
2
2020-10-11T13:47:20.000Z
2021-08-12T08:08:06.000Z
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
29.340426
114
0.664068
2fd4bc355c51db7767cd09e0a1348ad23011c141
1,255
py
Python
serial_json/examples.py
stevarino/serial_json
661ff4e002e4e2f2fbadf7673f3f161d0a3445af
[ "MIT" ]
null
null
null
serial_json/examples.py
stevarino/serial_json
661ff4e002e4e2f2fbadf7673f3f161d0a3445af
[ "MIT" ]
null
null
null
serial_json/examples.py
stevarino/serial_json
661ff4e002e4e2f2fbadf7673f3f161d0a3445af
[ "MIT" ]
null
null
null
import argparse from collections import OrderedDict import json import os.path as path import resource import time import serial_json examples = OrderedDict() [OrderedDict.__setitem__(examples, e[0], e[1]) for e in [ ('all', ''), ('us_house', 'ep-us-house.json') ]] def run_example(example, parser=None): ...
26.702128
80
0.655777
46c25383494c22943a3bd8470ca98a25c6d58a40
1,143
py
Python
tedygram/images/migrations/0003_auto_20180702_1808.py
wooheet/tedygram
481c5d1fd44f12cf9f5c62e0f12dd3f80c0c1de4
[ "MIT" ]
null
null
null
tedygram/images/migrations/0003_auto_20180702_1808.py
wooheet/tedygram
481c5d1fd44f12cf9f5c62e0f12dd3f80c0c1de4
[ "MIT" ]
null
null
null
tedygram/images/migrations/0003_auto_20180702_1808.py
wooheet/tedygram
481c5d1fd44f12cf9f5c62e0f12dd3f80c0c1de4
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-07-02 09:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('images', '0002_auto_20180702_1619'), ] operations = [ migrations.AlterMode...
32.657143
144
0.622047
33c380b6c81b6d8cd1fadf7dbbe9fe8a433fa582
7,399
py
Python
cupyx/scipy/sparse/dia.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
6,180
2016-11-01T14:22:30.000Z
2022-03-31T08:39:20.000Z
cupyx/scipy/sparse/dia.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
6,281
2016-12-22T07:42:31.000Z
2022-03-31T19:57:02.000Z
cupyx/scipy/sparse/dia.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
829
2017-02-23T05:46:12.000Z
2022-03-27T17:40:03.000Z
try: import scipy.sparse _scipy_available = True except ImportError: _scipy_available = False import cupy from cupy import _core from cupyx.scipy.sparse import csc from cupyx.scipy.sparse import data from cupyx.scipy.sparse import _util # TODO(leofang): The current implementation is CSC-based, which is t...
33.631818
79
0.582917
1e041d6e230d85cc94929345a7d0a82b0d1561f1
1,466
py
Python
aries_cloudagent/config/tests/test_argparse.py
baens/aries-cloudagent-python
0ff9a490f60bb8de686c4e26fa9a0dd32db0cb33
[ "Apache-2.0" ]
7
2020-07-07T15:44:41.000Z
2022-03-26T21:20:41.000Z
aries_cloudagent/config/tests/test_argparse.py
totemprotocol/aries-fl
dd78dcebc771971abfee301b80cdd5d246c14840
[ "Apache-2.0" ]
6
2021-03-10T20:05:19.000Z
2022-02-27T05:41:09.000Z
aries_cloudagent/config/tests/test_argparse.py
totemprotocol/aries-fl
dd78dcebc771971abfee301b80cdd5d246c14840
[ "Apache-2.0" ]
2
2019-12-02T18:59:07.000Z
2020-06-03T18:58:20.000Z
import itertools from argparse import ArgumentParser from asynctest import TestCase as AsyncTestCase, mock as async_mock from .. import argparse class TestArgParse(AsyncTestCase): async def test_groups(self): """Test optional argument parsing.""" parser = ArgumentParser() groups = ( ...
28.192308
87
0.577763
f78c79ef8d72b6c67d0b5f4d8efa5b143576a45b
1,273
py
Python
mysite/urls.py
dariodip/django_polls
b79264b71f8b0581b9d922b4a145e0db4972215b
[ "MIT" ]
1
2018-04-04T19:24:50.000Z
2018-04-04T19:24:50.000Z
mysite/urls.py
dariodip/django_polls
b79264b71f8b0581b9d922b4a145e0db4972215b
[ "MIT" ]
null
null
null
mysite/urls.py
dariodip/django_polls
b79264b71f8b0581b9d922b4a145e0db4972215b
[ "MIT" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
33.5
83
0.700707
0b1b4ed3737bef3596ff4c5ea2f6ce29c08a44f7
121
py
Python
.history/CourseLessions/FlowControlWithLoops/if_else_20210623204425.py
minefarmer/Complete-Coding-E-Degree
7044d32b155d0fb2520c3234a0a4e3b2b44fa84b
[ "Unlicense" ]
null
null
null
.history/CourseLessions/FlowControlWithLoops/if_else_20210623204425.py
minefarmer/Complete-Coding-E-Degree
7044d32b155d0fb2520c3234a0a4e3b2b44fa84b
[ "Unlicense" ]
null
null
null
.history/CourseLessions/FlowControlWithLoops/if_else_20210623204425.py
minefarmer/Complete-Coding-E-Degree
7044d32b155d0fb2520c3234a0a4e3b2b44fa84b
[ "Unlicense" ]
null
null
null
"""[If/Else] Focus of this section is on controlling the flow of my data and coding with loops If and else statements """
30.25
81
0.752066
26f917523e4517a292ab8ef6208def025c3b6580
2,409
py
Python
cache.py
bzaczynski/autoautelion
5f60b74c64eb29d162b0ba8c2f3386e24bb7a11b
[ "MIT" ]
null
null
null
cache.py
bzaczynski/autoautelion
5f60b74c64eb29d162b0ba8c2f3386e24bb7a11b
[ "MIT" ]
4
2018-12-27T13:32:30.000Z
2021-04-21T14:19:33.000Z
cache.py
bzaczynski/autoautelion
5f60b74c64eb29d162b0ba8c2f3386e24bb7a11b
[ "MIT" ]
null
null
null
""" Caching layer for Autelion status utilizing Redis. Usage: $ export REDIS_URL=redis://localhost >>> import cache >>> autelion = cache.get_autelion() >>> if autelion is not None: ... print(autelion.status, autelion.updated_at) ... >>> cache.set_autelion({'key1': 'value1', (...)}) """ import os import json impor...
26.472527
75
0.649647
ba516b55a3397f92a0f58bd7b84021e2b6f82f2d
122
py
Python
server/__init__.py
mica-framework/cli
a5a851a73d7b9bd0431e9c8bb0c8fca401b32ccf
[ "MIT" ]
5
2019-06-14T12:32:56.000Z
2022-03-17T20:55:48.000Z
server/__init__.py
mica-framework/cli
a5a851a73d7b9bd0431e9c8bb0c8fca401b32ccf
[ "MIT" ]
null
null
null
server/__init__.py
mica-framework/cli
a5a851a73d7b9bd0431e9c8bb0c8fca401b32ccf
[ "MIT" ]
null
null
null
# import the modules from .mica_server import * #FIXME we could make that dynamically editable within the config.yml file!
61
101
0.803279
9f68c282003e4df5543640c10f30cd331ca4ef92
1,198
py
Python
tests/test_viewer.py
quapka/javus
577e0c2dabfaea39d7ffacd42100d8a5f4cd738c
[ "MIT" ]
1
2020-09-22T01:38:21.000Z
2020-09-22T01:38:21.000Z
tests/test_viewer.py
petrs/javus
6927c824d5e6b574a6a323c87bd5aa117eca5b00
[ "MIT" ]
null
null
null
tests/test_viewer.py
petrs/javus
6927c824d5e6b574a6a323c87bd5aa117eca5b00
[ "MIT" ]
1
2020-07-26T07:20:47.000Z
2020-07-26T07:20:47.000Z
import pytest from javus.viewer import format_duration, add_whitespace_id @pytest.mark.parametrize( "utc_timestamp, duration", [ ("0", "0ms"), ("1", "1s"), ("0.123", "123ms"), ("59.0", "59s"), ("61", "01:01"), ("61.013", "01:01.013"), ], ) def test_format_du...
27.227273
59
0.608514
403d8f534912b34576857d8945d384beea1c4298
3,905
py
Python
tests/api_tests.py
afqueiruga/torchdiffeq
c03c46e4d0fe0eba163fdcbc46b0c96947886712
[ "MIT" ]
null
null
null
tests/api_tests.py
afqueiruga/torchdiffeq
c03c46e4d0fe0eba163fdcbc46b0c96947886712
[ "MIT" ]
null
null
null
tests/api_tests.py
afqueiruga/torchdiffeq
c03c46e4d0fe0eba163fdcbc46b0c96947886712
[ "MIT" ]
null
null
null
import unittest import torch import torchdiffeq from problems import construct_problem eps = 1e-12 torch.set_default_dtype(torch.float64) TEST_DEVICE = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") def max_abs(tensor): return torch.max(torch.abs(tensor)) class TestCollectionState(unittest.Te...
34.866071
114
0.595903
b082952854b5211c999e81ae828b9ffb7cf9fd60
1,656
py
Python
settings/FreezeInterventionPanel_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
settings/FreezeInterventionPanel_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
settings/FreezeInterventionPanel_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
Enabled.action = { False: 'freeze_intervention.enabled = False', True: 'freeze_intervention.enabled = True'} Enabled.defaults = { 'Enabled': False, 'Label': '?' } Enabled.properties = { 'BackgroundColour': [ ('green', 'freeze_intervention.enabled == False'), ('red', 'freeze_intervention....
34.5
71
0.603865
594c431c05231aad0a8671bb5b9de053a9fb036d
465
py
Python
app/user/migrations/0033_userreviewlist_event_host.py
Sovol2018/sovolo
54250e42b4af3391d2f99690f45b93ab240563c2
[ "MIT" ]
2
2017-06-06T11:34:49.000Z
2017-10-24T13:09:50.000Z
app/user/migrations/0033_userreviewlist_event_host.py
Sovol2018/sovolo
54250e42b4af3391d2f99690f45b93ab240563c2
[ "MIT" ]
346
2016-08-09T20:50:57.000Z
2018-08-28T06:52:17.000Z
app/user/migrations/0033_userreviewlist_event_host.py
hejob/sovolo
8b73253d7bf0427c7ae0ebb6d8e3d70e118e8427
[ "MIT" ]
3
2017-11-27T14:07:57.000Z
2018-08-13T15:51:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-21 23:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0032_auto_20170818_0930'), ] operations = [ migrations.AddField( ...
22.142857
57
0.627957
75862b3931d48174013e91fa5eaa87c102b0c989
6,621
py
Python
resources/lib/lights.py
xcorp/script.kodi.hue.ambilight
76c47903b3923484f3587d684d9e51d0488e9597
[ "WTFPL" ]
172
2016-06-17T08:14:00.000Z
2021-11-28T01:19:30.000Z
resources/lib/lights.py
xcorp/script.kodi.hue.ambilight
76c47903b3923484f3587d684d9e51d0488e9597
[ "WTFPL" ]
119
2016-06-14T17:09:02.000Z
2021-12-27T22:08:41.000Z
resources/lib/lights.py
xcorp/script.kodi.hue.ambilight
76c47903b3923484f3587d684d9e51d0488e9597
[ "WTFPL" ]
73
2016-06-15T08:58:06.000Z
2021-06-18T07:44:21.000Z
import json import requests from tools import xbmclog class Light(object): def __init__(self, bridge_ip, username, light_id, spec): self.bridge_ip = bridge_ip self.username = username self.light_id = light_id self.fullspectrum = ((spec['type'] == 'Color Light') or ...
31.231132
78
0.55037
a97a0eb66ca862296cb30e615671b52c97ea63ad
3,534
py
Python
pypureclient/flasharray/FA_2_4/models/resource_space_no_id.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_4/models/resource_space_no_id.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_4/models/resource_space_no_id.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
28.5
105
0.537634
fc0f89b83d59281a84ab6dea909d143a4622a2ae
23,212
py
Python
python/ray/tune/ray_trial_executor.py
wingman-ai/ray
23e1ccc1ea5d7e5789628d3eb85ff6bc8d0a4359
[ "Apache-2.0" ]
null
null
null
python/ray/tune/ray_trial_executor.py
wingman-ai/ray
23e1ccc1ea5d7e5789628d3eb85ff6bc8d0a4359
[ "Apache-2.0" ]
4
2019-03-04T13:03:24.000Z
2019-06-06T11:25:07.000Z
python/ray/tune/ray_trial_executor.py
wingman-ai/ray
23e1ccc1ea5d7e5789628d3eb85ff6bc8d0a4359
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import math import os import random import time import traceback import ray from ray.tune.error import AbortTrialExecution from ray.tune.logger import NoopLogger from ray.tune.tr...
39.678632
112
0.59844
166fb17bb239637c6b3e25974f130421bb13b016
1,845
py
Python
gitInit.py
Garretming/slg_server
1acc536153b6ccfa07f4b8137248dec9cbd327f5
[ "MIT" ]
2
2021-06-05T09:52:23.000Z
2021-10-09T12:41:14.000Z
gitInit.py
Garretming/slg_server
1acc536153b6ccfa07f4b8137248dec9cbd327f5
[ "MIT" ]
null
null
null
gitInit.py
Garretming/slg_server
1acc536153b6ccfa07f4b8137248dec9cbd327f5
[ "MIT" ]
2
2020-10-20T02:58:41.000Z
2021-08-22T13:02:05.000Z
#!/usr/bin/evn python3 #coding=utf-8 import os import sys def parseArgument(): # 1、提交仓库组名 2、项目名 3、提交消息备注 argus = [] for i in range(0,len(sys.argv)): # print(sys.argv[i]) argus.append(sys.argv[i]) return argus if __name__ == '__main__': argus = parseArgument() path =os.getcwd()...
27.132353
151
0.593496
2221763952e6b59598e578d279ca59d1d17ca8a3
125,291
py
Python
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_volume.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_volume.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_volume.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2018-2021, NetApp, Inc # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ''' na_ontap_volume ''' from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
49.153001
158
0.623197
6c5d95b1cae7b4c3e6135dcc2179641f02bfcfbf
771
py
Python
deepaugment/val_run.py
YaCpotato/B4Research
065463c36a8f1a95c4197fe2c6ae903de4aae8c5
[ "MIT" ]
2
2020-04-20T03:21:33.000Z
2020-04-30T14:24:43.000Z
deepaugment/val_run.py
YaCpotato/B4Research
065463c36a8f1a95c4197fe2c6ae903de4aae8c5
[ "MIT" ]
6
2020-01-28T23:04:17.000Z
2022-02-10T01:07:17.000Z
deepaugment/val_run.py
YaCpotato/B4ResearchDeepaugment
065463c36a8f1a95c4197fe2c6ae903de4aae8c5
[ "MIT" ]
null
null
null
import numpy as np import os from keras.preprocessing import image from sklearn.model_selection import train_test_split import sys from os.path import dirname, realpath file_path = realpath(__file__) dir_of_file = dirname(file_path) parent_dir_of_file = dirname(dir_of_file) sys.path.insert(0, parent_dir_of_file) fr...
24.09375
158
0.771725
f04f2ad8b1746611f93fc1a539ab9f6cfd5fbe5e
225
py
Python
tests/conftest.py
brettelliot/jinx
3faa03c25b61594cfc902c122db091edff54b607
[ "MIT" ]
2
2020-05-17T02:50:18.000Z
2020-06-26T20:56:41.000Z
tests/conftest.py
brettelliot/jinx
3faa03c25b61594cfc902c122db091edff54b607
[ "MIT" ]
null
null
null
tests/conftest.py
brettelliot/jinx
3faa03c25b61594cfc902c122db091edff54b607
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Dummy conftest.py for jinx. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ # import pytest
20.454545
60
0.644444
36b134069a7e062ec6113d55e8d4924cedfd9e79
645
py
Python
src/poetry/console/commands/cache/list.py
s-spindler/poetry
27034d61127b6b4ee0974d3d356105e33cb91713
[ "MIT" ]
null
null
null
src/poetry/console/commands/cache/list.py
s-spindler/poetry
27034d61127b6b4ee0974d3d356105e33cb91713
[ "MIT" ]
null
null
null
src/poetry/console/commands/cache/list.py
s-spindler/poetry
27034d61127b6b4ee0974d3d356105e33cb91713
[ "MIT" ]
null
null
null
from __future__ import annotations from poetry.config.config import Config from poetry.console.commands.command import Command class CacheListCommand(Command): name = "cache list" description = "List Poetry's caches." def handle(self) -> int | None: config = Config.create() if config.re...
28.043478
72
0.627907
915194e8b237a0e4aceaee6de18928def1da57c4
9,173
py
Python
ros/src/waypoint_updater/waypoint_updater.py
philippmarcus/CarND-Capstone
9be5846c4a4cbd6e6d32897b62bb25d43d7f1713
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
philippmarcus/CarND-Capstone
9be5846c4a4cbd6e6d32897b62bb25d43d7f1713
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
philippmarcus/CarND-Capstone
9be5846c4a4cbd6e6d32897b62bb25d43d7f1713
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from geometry_msgs.msg import PoseStamped, TwistStamped from styx_msgs.msg import Lane, Waypoint from std_msgs.msg import Int32 import tf import math import numpy as np ''' This node will publish waypoints from the car's current position to some `x` distance ahead. As mentioned in ...
40.950893
137
0.59359
e8496d12800bb4540cb9f9c99f7481f6ed5bab67
15,662
py
Python
{{cookiecutter.project_slug}}/config/settings/base.py
rq0net/cookiecutter-django
9a94bc530f8fecadfc7846c68491832379b654b8
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/config/settings/base.py
rq0net/cookiecutter-django
9a94bc530f8fecadfc7846c68491832379b654b8
[ "BSD-3-Clause" ]
1
2021-11-17T03:36:35.000Z
2021-11-17T03:36:35.000Z
{{cookiecutter.project_slug}}/config/settings/base.py
rq0net/cookiecutter-django
9a94bc530f8fecadfc7846c68491832379b654b8
[ "BSD-3-Clause" ]
null
null
null
""" Base settings to build other settings files upon. """ from pathlib import Path import environ, os from urllib.parse import parse_qs ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent # {{ cookiecutter.project_slug }}/ APPS_DIR = ROOT_DIR / "{{ cookiecutter.project_slug }}" env = environ.Env() R...
38.960199
122
0.642957
d66c837827f6c00239af995a01af38d5b05292e8
591
py
Python
test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/__init__.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
4
2020-10-22T20:35:38.000Z
2021-12-21T07:29:01.000Z
test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/__init__.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
3
2020-09-09T15:16:15.000Z
2021-12-20T15:25:18.000Z
test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/__init__.py
Azure/autorest.azure-functions-python
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
[ "MIT" ]
2
2020-11-10T07:16:23.000Z
2020-12-30T11:03:14.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
53.727273
94
0.602369
ee957607f208f3250964b4ad8c8aa78e951b27e9
177
py
Python
AtCoder/ABC/129/a.py
ttyskg/ProgrammingCompetition
65fb9e131803e4f1a1a6369e68ed1b504f08b00f
[ "MIT" ]
null
null
null
AtCoder/ABC/129/a.py
ttyskg/ProgrammingCompetition
65fb9e131803e4f1a1a6369e68ed1b504f08b00f
[ "MIT" ]
null
null
null
AtCoder/ABC/129/a.py
ttyskg/ProgrammingCompetition
65fb9e131803e4f1a1a6369e68ed1b504f08b00f
[ "MIT" ]
null
null
null
import sys def main(): input = sys.stdin.readline A = list(map(int, input().split())) A.sort() return sum(A[:2]) if __name__ == '__main__': print(main())
14.75
39
0.570621
d6d5b6196df7f109026b0580b8ab2bffc332738e
1,431
py
Python
tests/model/test_publication.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
2
2021-12-31T22:14:31.000Z
2021-12-31T22:14:34.000Z
tests/model/test_publication.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
null
null
null
tests/model/test_publication.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
null
null
null
import pytest from publication.models import Topic, Post from ..factories.publication import TopicFactory from ..factories.users import UserFactory pytestmark = pytest.mark.django_db class TestTopicModel: def test_create_topic(self): topic = Topic.objects.create(name="test_topic") assert topic.n...
27
55
0.587002
69611718116b71b0be9875d7598daa3b82206a78
1,244
py
Python
beautiful/event/models.py
wtl0442/bwg_real
45007e89cb6c5099daea7a84b81433d1adb8e41d
[ "MIT" ]
null
null
null
beautiful/event/models.py
wtl0442/bwg_real
45007e89cb6c5099daea7a84b81433d1adb8e41d
[ "MIT" ]
9
2018-01-24T10:40:34.000Z
2022-01-13T00:40:29.000Z
beautiful/event/models.py
wtl0442/bwg_real
45007e89cb6c5099daea7a84b81433d1adb8e41d
[ "MIT" ]
1
2018-05-05T08:54:55.000Z
2018-05-05T08:54:55.000Z
from django.db import models from django.urls import reverse from django.conf import settings from django_google_maps import fields as map_fields # Create your models here. class Tag(models.Model): tag_name = models.CharField(max_length=10, default=None) def __str__(self): return self.tag_name cla...
29.619048
104
0.728296
b177199340efda9fc41813e5bac103e7802a6dfe
3,907
py
Python
republisher/management/commands/emailrepublishers.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
null
null
null
republisher/management/commands/emailrepublishers.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
3
2020-02-12T01:23:34.000Z
2021-06-10T21:49:25.000Z
republisher/management/commands/emailrepublishers.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.core.management.base import BaseCommand from django.template.loader import render_to_string from django.conf import settings from django.utils import timezone from django.contrib.sites.models import Site from django.core.mail import send_mail import sys import html2text from bs4 import Beaut...
43.411111
79
0.566931
155659aac50e89e56891d5602584c8bcc56c0046
1,024
py
Python
src/pages/single_article_page.py
djeada/Responsive-Blog-Template
3cf40a2f389d17acb49f82885947e825c921760e
[ "MIT" ]
null
null
null
src/pages/single_article_page.py
djeada/Responsive-Blog-Template
3cf40a2f389d17acb49f82885947e825c921760e
[ "MIT" ]
null
null
null
src/pages/single_article_page.py
djeada/Responsive-Blog-Template
3cf40a2f389d17acb49f82885947e825c921760e
[ "MIT" ]
1
2022-02-02T13:03:24.000Z
2022-02-02T13:03:24.000Z
import MySQLdb from flask import Blueprint, render_template from flask_mysqldb import MySQL def construct_article_page(database: MySQL) -> Blueprint: """ Constructs the single article page. :param database: The database object. :return: Single article page blueprint. """ article_page = Bluepri...
30.117647
77
0.650391