hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
ab1a1e11ddf7bd7dae943e8668ed1a5ba0c14a72
3,848
py
Python
applications/cli/commands/model/tests/test_export.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
390
2019-01-23T09:07:00.000Z
2022-02-20T04:03:34.000Z
applications/cli/commands/model/tests/test_export.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
52
2019-01-31T12:17:30.000Z
2022-02-10T00:01:39.000Z
applications/cli/commands/model/tests/test_export.py
nparkstar/nauta
1bda575a01f782d1dc2cd5221122651f184f7167
[ "Apache-2.0" ]
66
2019-01-23T18:59:39.000Z
2020-10-18T15:24:00.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...
35.62963
109
0.747401
ab1a86e3a749c305907e0a449b620a088db1db5e
4,070
py
Python
var/spack/repos/builtin/packages/py-mdanalysis/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-mdanalysis/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-mdanalysis/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
54.266667
96
0.653317
ab1a9a9be99684f3bafd7d5cd35569aa18f68f49
786
py
Python
lesley-byte/graphpressure.py
lesley-byte/enviroplus-python
df08c238c8b550c9041ff06a0b6bef6b330af611
[ "MIT" ]
null
null
null
lesley-byte/graphpressure.py
lesley-byte/enviroplus-python
df08c238c8b550c9041ff06a0b6bef6b330af611
[ "MIT" ]
null
null
null
lesley-byte/graphpressure.py
lesley-byte/enviroplus-python
df08c238c8b550c9041ff06a0b6bef6b330af611
[ "MIT" ]
null
null
null
from requests import get import matplotlib.pyplot as plt import matplotlib.animation as animation import datetime as dt from bme280 import BME280 try: from smbus2 import SMBus except ImportError: from smbus import SMBus fig = plt.figure() ax = fig.add_subplot(1, 1, 1) xs = [] ys =[] bus = SMBus(1) bme280 = ...
20.153846
75
0.670483
ab1ab02c6fe0df3ffafd8d3c0b4bb24aea453027
5,912
py
Python
bootstrapvz/plugins/ova/tasks.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/ova/tasks.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
bootstrapvz/plugins/ova/tasks.py
brett-smith/bootstrap-vz
2eaa98db684b85186f3ecd6e5d1304aaceca6b73
[ "Apache-2.0" ]
null
null
null
from bootstrapvz.base import Task from bootstrapvz.common import phases from bootstrapvz.common.tasks import workspace import os import shutil assets = os.path.normpath(os.path.join(os.path.dirname(__file__), 'assets'))
39.152318
113
0.692321
ab1ab3780950be34d6065669fa02273afffb05ab
3,498
py
Python
docs/conf.py
PhilippJunk/homelette
d6e585a215d7eef75ef6c837d1faf2d0ad8025c1
[ "MIT" ]
null
null
null
docs/conf.py
PhilippJunk/homelette
d6e585a215d7eef75ef6c837d1faf2d0ad8025c1
[ "MIT" ]
null
null
null
docs/conf.py
PhilippJunk/homelette
d6e585a215d7eef75ef6c837d1faf2d0ad8025c1
[ "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...
33.314286
79
0.616638
ab1bca899ba1f440651e92b900de789b742e59bc
7,742
py
Python
bytecode2ast/parsers/bases.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
bytecode2ast/parsers/bases.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
bytecode2ast/parsers/bases.py
Cologler/bytecode2ast-python
407b261a493e018bc86388040ddfb6fb0e4b96d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2019~2999 - Cologler <skyoflw@gmail.com> # ---------- # some object for parser # ---------- from typing import List import enum import dis from collections import defaultdict # instrs def add_instr(self, instr: dis.Instruction): ''' add a handled instructi...
28.050725
82
0.597778
ab1c5aded9a853b37a00d0b031cb2cff207d2b22
15,055
py
Python
netbox/extras/forms.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
1
2021-05-01T18:16:37.000Z
2021-05-01T18:16:37.000Z
netbox/extras/forms.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
null
null
null
netbox/extras/forms.py
orphanedgamboa/netbox
5cdc38ec3adb5278480b267a6c8e674e9d3fca39
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.utils.safestring import mark_safe from django.utils.translation import gettext as _ from dcim.models import DeviceRole, DeviceType, Platform, Region, Site, SiteGroup from tenancy....
28.40566
117
0.643374
ab1c9d3f78e7e9ff6cc93d1c78aab266fbaf43fb
3,122
py
Python
unwarp_models.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
unwarp_models.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
unwarp_models.py
zgjslc/Film-Recovery-master1
4497a9930398c9e826ac364056a79e5bcbf6c953
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from models.misc import modules constrain_path = { ('threeD', 'normal'): (True, True, ''), ('threeD', 'depth'): (True, True, ''), ('normal', 'depth'): (True, True, ''), ('depth', 'normal'): (True, True, ''), }
51.180328
105
0.686739
ab1d101c4bcfc97cfc157f818f4f8698285ba31c
12,768
py
Python
endpoint/test_endpoint/update.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
14
2019-02-19T01:31:08.000Z
2021-12-12T12:56:08.000Z
endpoint/test_endpoint/update.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
2
2020-03-10T12:12:10.000Z
2020-03-10T12:12:10.000Z
endpoint/test_endpoint/update.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
4
2019-07-09T02:00:13.000Z
2020-08-18T14:04:24.000Z
import configparser import os import hashlib import json import shutil import sys import tempfile import subprocess import tarfile import re import stat from functools import cmp_to_key from contextlib import closing from gzip import GzipFile from pathlib import Path from urllib.error import HTTPError from urllib.reque...
31.60396
98
0.56344
ab1d930ad268269a2d4b9569657fc14b57b495e4
690
py
Python
lib/jbgp/jbgpneighbor.py
routedo/junos-pyez-example
b89df2d40ca0a233529e4a26b42dd605c00aae46
[ "Apache-2.0" ]
null
null
null
lib/jbgp/jbgpneighbor.py
routedo/junos-pyez-example
b89df2d40ca0a233529e4a26b42dd605c00aae46
[ "Apache-2.0" ]
null
null
null
lib/jbgp/jbgpneighbor.py
routedo/junos-pyez-example
b89df2d40ca0a233529e4a26b42dd605c00aae46
[ "Apache-2.0" ]
1
2020-06-17T12:17:18.000Z
2020-06-17T12:17:18.000Z
""" Query BGP neighbor table on a Juniper network device. """ import sys from jnpr.junos import Device from jnpr.junos.factory import loadyaml def juniper_bgp_state(dev, bgp_neighbor): """ This function queries the BGP neighbor table on a Juniper network device. dev = Juniper device connection bgp_ne...
23
77
0.676812
ab1fe51ebbcd4a1dc4363d8ff7260094c438deca
2,170
py
Python
lib/cherrypy/cherrypy/test/test_sessionauthenticate.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/cherrypy/cherrypy/test/test_sessionauthenticate.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/cherrypy/cherrypy/test/test_sessionauthenticate.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
162
2015-01-01T00:21:16.000Z
2022-02-23T02:36:04.000Z
import cherrypy from cherrypy.test import helper
34.444444
82
0.566359
ab202528012b6880e43938d0db79af54bf805f9b
1,145
py
Python
2021/day-12/solve.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
1
2019-12-27T22:36:30.000Z
2019-12-27T22:36:30.000Z
2021/day-12/solve.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
2021/day-12/solve.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
#!/usr/bin/env python from typing import List import aoc from collections import defaultdict with open('test2.txt', 'r') as f: inp = f.read() print("Part 1:", solve(inp)) print("Part 2:", solve(inp, True)) with open('input.txt', 'r') as f: inp = f.read() print("Part 1:", solve(inp)) print(...
23.367347
73
0.541485
ab207da0020d38ce47419c0053bab12a37bcf81b
11,387
py
Python
PaddleCV/tracking/ltr/data/processing.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
5
2021-09-28T13:28:01.000Z
2021-12-21T07:25:44.000Z
PaddleCV/tracking/ltr/data/processing.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
1
2020-07-02T03:05:00.000Z
2020-07-02T03:05:00.000Z
PaddleCV/tracking/ltr/data/processing.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
3
2021-09-28T15:33:45.000Z
2021-09-29T01:44:32.000Z
import numpy as np from ltr.data import transforms import ltr.data.processing_utils as prutils from pytracking.libs import TensorDict
43.296578
121
0.558971
ab21105c56263980d75d2b1bb1e9d7beba919be5
884
py
Python
tqcli/config/config.py
Tranquant/tqcli
0cc12e0d80129a14cec8117cd73e2ca69fb25214
[ "Apache-2.0" ]
null
null
null
tqcli/config/config.py
Tranquant/tqcli
0cc12e0d80129a14cec8117cd73e2ca69fb25214
[ "Apache-2.0" ]
null
null
null
tqcli/config/config.py
Tranquant/tqcli
0cc12e0d80129a14cec8117cd73e2ca69fb25214
[ "Apache-2.0" ]
1
2016-08-16T03:43:36.000Z
2016-08-16T03:43:36.000Z
import logging from os.path import expanduser #TQ_API_ROOT_URL = 'http://127.0.1.1:8090/dataset' TQ_API_ROOT_URL = 'http://elb-tranquant-ecs-cluster-tqapi-1919110681.us-west-2.elb.amazonaws.com/dataset' LOG_PATH = expanduser('~/tqcli.log') # the chunk size must be at least 5MB for multipart upload DEFAULT_CHUNK_SIZE ...
30.482759
105
0.745475
ab21d266138fcacadbe38aeb0f70a2986ce949b2
8,564
py
Python
fqf_iqn_qrdqn/agent/base_agent.py
rainwangphy/fqf-iqn-qrdqn.pytorch
351e9c4722c8b1ed411cd8c1bbf46c93c07f0893
[ "MIT" ]
null
null
null
fqf_iqn_qrdqn/agent/base_agent.py
rainwangphy/fqf-iqn-qrdqn.pytorch
351e9c4722c8b1ed411cd8c1bbf46c93c07f0893
[ "MIT" ]
null
null
null
fqf_iqn_qrdqn/agent/base_agent.py
rainwangphy/fqf-iqn-qrdqn.pytorch
351e9c4722c8b1ed411cd8c1bbf46c93c07f0893
[ "MIT" ]
1
2022-02-14T02:55:01.000Z
2022-02-14T02:55:01.000Z
from abc import ABC, abstractmethod import os import numpy as np import torch from torch.utils.tensorboard import SummaryWriter from fqf_iqn_qrdqn.memory import LazyMultiStepMemory, \ LazyPrioritizedMultiStepMemory from fqf_iqn_qrdqn.utils import RunningMeanStats, LinearAnneaer
34.119522
79
0.599603
ab224c0b7dd96b0783239d1ab27b2b04825a3e94
4,122
py
Python
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
null
null
null
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
6
2021-12-20T17:13:35.000Z
2022-03-29T08:54:11.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/timeperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List, Pattern from recognizers_text.utilities import RegExpUtility from recognizers_text.extractor import Extractor from recognizers_number.number.italian.extractors import ItalianIntegerExtractor from ....
37.816514
96
0.743328
ab2324a100ecb32532716cd76301eba78659a0c1
3,012
py
Python
quartet_condor.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
quartet_condor.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
quartet_condor.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
#quartet_condor.py #version 2.0.2 import random, sys def addToDict(d): ''' Ensures each quartet has three concordance factors (CFs) a dictionary d has less than three CFs, add CFs with the value 0 until there are three Input: a dictionary containing CFs, a counter of how many CFs are in the dictionar...
33.466667
98
0.537849
ab24554d8fbfa3bde2693fe79ec073ac02c9f577
177
py
Python
src/profiles/forms.py
rahulroshan96/CloudVisual
aa33709d88442bcdbe3229234b4eb4f9abb4481e
[ "MIT", "Unlicense" ]
null
null
null
src/profiles/forms.py
rahulroshan96/CloudVisual
aa33709d88442bcdbe3229234b4eb4f9abb4481e
[ "MIT", "Unlicense" ]
4
2020-06-05T19:43:52.000Z
2021-06-01T23:15:44.000Z
src/profiles/forms.py
rahulroshan96/CloudVisual
aa33709d88442bcdbe3229234b4eb4f9abb4481e
[ "MIT", "Unlicense" ]
null
null
null
from django import forms from models import UserInputModel
22.125
37
0.717514
ab253b2fa27d701106a981880d15472309de60c1
2,379
py
Python
tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py
Honny1/oval-graph
96472a9d2b08c2afce620c54f229ce95ad019d1f
[ "Apache-2.0" ]
21
2019-08-01T09:09:25.000Z
2020-09-27T10:00:09.000Z
tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py
Honny1/oval-graph
96472a9d2b08c2afce620c54f229ce95ad019d1f
[ "Apache-2.0" ]
129
2019-08-04T19:06:24.000Z
2020-10-03T10:02:26.000Z
tests_oval_graph/test_arf_xml_parser/test_arf_xml_parser.py
Honny1/oval-graph
96472a9d2b08c2afce620c54f229ce95ad019d1f
[ "Apache-2.0" ]
11
2019-08-07T08:53:54.000Z
2020-10-02T22:02:38.000Z
from pathlib import Path import pytest from oval_graph.arf_xml_parser.arf_xml_parser import ARFXMLParser
30.896104
93
0.721732
ab2601bcecd2c5b5f36345a106f14a3b9c2ff88d
5,668
py
Python
main.py
scottjr632/trump-twitter-bot
484b1324d752395338b0a9e5850acf294089b26f
[ "MIT" ]
null
null
null
main.py
scottjr632/trump-twitter-bot
484b1324d752395338b0a9e5850acf294089b26f
[ "MIT" ]
null
null
null
main.py
scottjr632/trump-twitter-bot
484b1324d752395338b0a9e5850acf294089b26f
[ "MIT" ]
null
null
null
import os import logging import argparse import sys import signal import subprocess from functools import wraps from dotenv import load_dotenv load_dotenv(verbose=True) from app.config import configure_app from app.bot import TrumpBotScheduler from app.sentimentbot import SentimentBot parser = argparse.ArgumentParse...
27.64878
106
0.657728
ab27a7af29a41d40eec1afd58d05fca20bfc3c8b
691
py
Python
010-summation-of-primes.py
dendi239/euler
71fcdca4a80f9e586aab05eb8acadf1a296dda90
[ "MIT" ]
null
null
null
010-summation-of-primes.py
dendi239/euler
71fcdca4a80f9e586aab05eb8acadf1a296dda90
[ "MIT" ]
null
null
null
010-summation-of-primes.py
dendi239/euler
71fcdca4a80f9e586aab05eb8acadf1a296dda90
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import itertools import typing as tp if __name__ == '__main__': main()
16.452381
62
0.51809
ab27ed4a158779f6beba16216ad31870fa98bf95
11,368
py
Python
setup.py
letmaik/lensfunpy
ddadb6bfd5f3acde5640210aa9f575501e5c0914
[ "MIT" ]
94
2016-08-24T21:52:40.000Z
2022-03-05T07:17:21.000Z
setup.py
letmaik/lensfunpy
ddadb6bfd5f3acde5640210aa9f575501e5c0914
[ "MIT" ]
22
2016-10-21T07:15:21.000Z
2021-09-20T13:41:02.000Z
setup.py
letmaik/lensfunpy
ddadb6bfd5f3acde5640210aa9f575501e5c0914
[ "MIT" ]
11
2016-12-12T03:14:07.000Z
2021-05-06T17:47:30.000Z
from setuptools import setup, Extension, find_packages import subprocess import errno import re import os import shutil import sys import zipfile from urllib.request import urlretrieve import numpy from Cython.Build import cythonize isWindows = os.name == 'nt' isMac = sys.platform == 'darwin' is64Bit = sys.maxsize...
37.518152
125
0.616555
ab2a38bd32faf647f78849a772f13ad447eb6e18
2,144
py
Python
chapter_13/mailtools/__init__.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_13/mailtools/__init__.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_13/mailtools/__init__.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
"The mailtools Utility Package" 'Initialization File' """ ################################################################################## mailtools package: interface to mail server transfers, used by pymail2, PyMailGUI, and PyMailCGI; does loads, sends, parsing, composing, and deleting, with part attachments, e...
51.047619
83
0.718284
ab2add18b201d727e235b13fba3fa52b34c35680
404
py
Python
TreeModelLib/BelowgroundCompetition/__init__.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
TreeModelLib/BelowgroundCompetition/__init__.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
TreeModelLib/BelowgroundCompetition/__init__.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 8 15:25:03 2018 @author: bathmann """ from .BelowgroundCompetition import BelowgroundCompetition from .SimpleTest import SimpleTest from .FON import FON from .OGSWithoutFeedback import OGSWithoutFeedback from .OGSLargeScale3D import OGSLargeScale3...
25.25
58
0.799505
ab2b3845336cbc9c2cd653a367ec0d03b0cfffa6
223
py
Python
server.py
SDelhey/websocket-chat
c7b83583007a723baee25acedbceddd55c12ffec
[ "MIT" ]
null
null
null
server.py
SDelhey/websocket-chat
c7b83583007a723baee25acedbceddd55c12ffec
[ "MIT" ]
null
null
null
server.py
SDelhey/websocket-chat
c7b83583007a723baee25acedbceddd55c12ffec
[ "MIT" ]
null
null
null
from flask import Flask, render_template from flask_socketio import SocketIO, send, emit app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app) if __name__ == '__main__': socketio.run(app)
24.777778
47
0.748879
ab2c89bde44269f1533806cfa45910e25d77ed66
2,771
py
Python
services/postprocess/src/postprocess.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
null
null
null
services/postprocess/src/postprocess.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
5
2020-01-28T23:13:10.000Z
2022-02-10T00:28:15.000Z
services/postprocess/src/postprocess.py
hadarohana/myCosmos
6e4682a2af822eb828180658aaa6d3e304cc85bf
[ "Apache-2.0" ]
1
2021-03-10T19:25:44.000Z
2021-03-10T19:25:44.000Z
""" Post processing on detected objects """ import pymongo from pymongo import MongoClient import time import logging logging.basicConfig(format='%(levelname)s :: %(asctime)s :: %(message)s', level=logging.DEBUG) from joblib import Parallel, delayed import click from xgboost_model.inference import run_inference, Postpr...
37.445946
111
0.616745
ab2d00e90fa00656e5b245ed372443c5a0686b39
2,619
py
Python
model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/mo/front/common/partial_infer/multi_box_prior_test.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
""" Copyright (C) 2018-2021 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...
44.389831
112
0.583047
ab2d830b247e5d1c87b1cc476939c72b7371cdbc
10,997
py
Python
bin/mem_monitor.py
Samahu/ros-system-monitor
5376eba046ac38cfe8fe9ff8b385fa2637015eda
[ "BSD-3-Clause" ]
68
2016-02-07T00:35:25.000Z
2022-03-22T11:14:16.000Z
bin/mem_monitor.py
Samahu/ros-system-monitor
5376eba046ac38cfe8fe9ff8b385fa2637015eda
[ "BSD-3-Clause" ]
5
2016-04-12T14:29:51.000Z
2021-08-04T12:55:59.000Z
bin/mem_monitor.py
Samahu/ros-system-monitor
5376eba046ac38cfe8fe9ff8b385fa2637015eda
[ "BSD-3-Clause" ]
62
2015-08-09T23:17:16.000Z
2022-02-11T18:24:30.000Z
#!/usr/bin/env python ############################################################################ # Copyright (C) 2009, Willow Garage, Inc. # # Copyright (C) 2013 by Ralf Kaestner # # ralf.kaestner@gmail.com ...
41.973282
102
0.555606
ab2dd4e23245d0ab9d1e255dfa3fc732936ba5f1
4,557
py
Python
cmake/utils/gen-ninja-deps.py
stamhe/bitcoin-abc
a1ba303c6b4f164ae94612e83b824e564405a96e
[ "MIT" ]
1,266
2017-05-02T07:02:29.000Z
2022-03-31T17:15:44.000Z
cmake/utils/gen-ninja-deps.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
426
2017-05-07T12:40:52.000Z
2022-03-29T18:12:01.000Z
cmake/utils/gen-ninja-deps.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
721
2017-05-07T10:36:11.000Z
2022-03-15T09:07:48.000Z
#!/usr/bin/env python3 import argparse import os import subprocess parser = argparse.ArgumentParser(description='Produce a dep file from ninja.') parser.add_argument( '--build-dir', help='The build directory.', required=True) parser.add_argument( '--base-dir', help='The directory for which depende...
25.038462
79
0.577354
ab30352abcf50690534a3f85202149cd132e631c
46
py
Python
src/webpy1/src/manage/checkPic.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
1
2020-02-17T08:18:29.000Z
2020-02-17T08:18:29.000Z
src/webpy1/src/manage/checkPic.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/webpy1/src/manage/checkPic.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
''' Created on 2011-6-22 @author: dholer '''
7.666667
20
0.608696
ab30973f8a964fee614a5ec7df1f83c6a91d145f
122
py
Python
tests/__init__.py
coleb/sendoff
fc1b38ba7571254a88ca457f6f618ae4572f30b6
[ "MIT" ]
2
2021-09-28T09:53:53.000Z
2021-10-01T17:45:29.000Z
tests/__init__.py
coleb/sendoff
fc1b38ba7571254a88ca457f6f618ae4572f30b6
[ "MIT" ]
10
2021-09-17T22:14:37.000Z
2022-03-21T16:25:39.000Z
tests/__init__.py
coleb/sendoff
fc1b38ba7571254a88ca457f6f618ae4572f30b6
[ "MIT" ]
1
2021-09-27T15:55:40.000Z
2021-09-27T15:55:40.000Z
"""Tests for the `sendoff` library.""" """ The `sendoff` library tests validate the expected function of the library. """
24.4
74
0.704918
ab30b98300e549b0e8401f690d6ee36c03180fdb
2,493
py
Python
sysinv/sysinv/sysinv/sysinv/helm/garbd.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/helm/garbd.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/helm/garbd.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2018-2019 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # from sysinv.common import constants from sysinv.common import exception from sysinv.common import utils from sysinv.helm import common from sysinv.helm import base
37.208955
80
0.649017
ab313db7c6b7e6135aaa8212f15c08dfe29e2372
1,280
py
Python
dataloader/frame_counter/frame_counter.py
aaron-zou/pretraining-twostream
5aa2f4bafb731e61f8f671e2500a6dfa8436be57
[ "MIT" ]
null
null
null
dataloader/frame_counter/frame_counter.py
aaron-zou/pretraining-twostream
5aa2f4bafb731e61f8f671e2500a6dfa8436be57
[ "MIT" ]
null
null
null
dataloader/frame_counter/frame_counter.py
aaron-zou/pretraining-twostream
5aa2f4bafb731e61f8f671e2500a6dfa8436be57
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Generate frame counts dict for a dataset. Usage: frame_counter.py [options] Options: -h, --help Print help message --root=<str> Path to root of dataset (should contain video folders that contain images) [default: /vision/vision_users/azou/data/hmdb5...
27.826087
102
0.625
ab32101612714ab2b6b04c378a7a5646daa96906
155
py
Python
Problem_30/main.py
jdalzatec/EulerProject
2f2f4d9c009be7fd63bb229bb437ea75db77d891
[ "MIT" ]
1
2022-03-28T05:32:58.000Z
2022-03-28T05:32:58.000Z
Problem_30/main.py
jdalzatec/EulerProject
2f2f4d9c009be7fd63bb229bb437ea75db77d891
[ "MIT" ]
null
null
null
Problem_30/main.py
jdalzatec/EulerProject
2f2f4d9c009be7fd63bb229bb437ea75db77d891
[ "MIT" ]
null
null
null
total = 0 for n in range(1000, 1000000): suma = 0 for i in str(n): suma += int(i)**5 if (n == suma): total += n print(total)
14.090909
30
0.483871
ab33de96dbc34b33ac4aed99648c2c63749addef
8,913
py
Python
armi/physics/fuelCycle/settings.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
1
2021-05-29T16:02:31.000Z
2021-05-29T16:02:31.000Z
armi/physics/fuelCycle/settings.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
armi/physics/fuelCycle/settings.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
"""Settings for generic fuel cycle code.""" import re import os from armi.settings import setting from armi.operators import settingsValidation CONF_ASSEMBLY_ROTATION_ALG = "assemblyRotationAlgorithm" CONF_ASSEM_ROTATION_STATIONARY = "assemblyRotationStationary" CONF_CIRCULAR_RING_MODE = "circularRingMode" CONF_CIRCU...
39.092105
106
0.574554
ab36c71fdbd365804953a57202728144c1db7c55
628
py
Python
nl/predictor.py
jclosure/donkus
b3384447094b2ecbaff5ee9d970818313b6ee8b0
[ "MIT" ]
1
2015-01-16T01:04:39.000Z
2015-01-16T01:04:39.000Z
nl/predictor.py
jclosure/donkus
b3384447094b2ecbaff5ee9d970818313b6ee8b0
[ "MIT" ]
null
null
null
nl/predictor.py
jclosure/donkus
b3384447094b2ecbaff5ee9d970818313b6ee8b0
[ "MIT" ]
null
null
null
from nltk.corpus import gutenberg from nltk import ConditionalFreqDist from random import choice #create the distribution object cfd = ConditionalFreqDist() ## for each token count the current word given the previous word prev_word = None for word in gutenberg.words('austen-persuasion.txt'): cfd[prev_word][word]...
22.428571
73
0.716561
ab36d85f43aaa15a75066ac03e9bf9c7135fde35
893
py
Python
eve/workers/pykmip/bin/run_server.py
mmg-3/cloudserver
9ff6364b2ed4f33a5135d86311a72de4caff51c1
[ "Apache-2.0" ]
762
2016-06-08T19:51:51.000Z
2018-08-02T09:05:38.000Z
eve/workers/pykmip/bin/run_server.py
mmg-3/cloudserver
9ff6364b2ed4f33a5135d86311a72de4caff51c1
[ "Apache-2.0" ]
1,252
2018-08-03T18:27:31.000Z
2022-03-31T20:22:55.000Z
eve/workers/pykmip/bin/run_server.py
mmg-3/cloudserver
9ff6364b2ed4f33a5135d86311a72de4caff51c1
[ "Apache-2.0" ]
170
2016-06-14T17:09:39.000Z
2018-06-30T12:48:19.000Z
#!/usr/bin/env python # Copyright (c) 2016 The Johns Hopkins University/Applied Physics Laboratory # 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.ap...
33.074074
76
0.75252
ab37e16ef4016e52fa0dab454a286037abc7c623
889
py
Python
tests/test_tempo_event.py
yokaze/crest-python
c246b16ade6fd706f0e18aae797660064bddd555
[ "MIT" ]
null
null
null
tests/test_tempo_event.py
yokaze/crest-python
c246b16ade6fd706f0e18aae797660064bddd555
[ "MIT" ]
null
null
null
tests/test_tempo_event.py
yokaze/crest-python
c246b16ade6fd706f0e18aae797660064bddd555
[ "MIT" ]
null
null
null
# # test_tempo_event.py # crest-python # # Copyright (C) 2017 Rue Yokaze # Distributed under the MIT License. # import crest_loader import unittest from crest.events.meta import TempoEvent if (__name__ == '__main__'): unittest.main()
24.694444
75
0.662542
ab386b22c54d5affe44957aab20ea4dc3913a866
1,159
py
Python
tensorflow_quantum/python/differentiators/__init__.py
PyJedi/quantum
3f4a3c320e048b8a8faf3a10339975d2d5366fb6
[ "Apache-2.0" ]
1,501
2020-03-09T00:40:31.000Z
2022-03-28T19:59:57.000Z
tensorflow_quantum/python/differentiators/__init__.py
tappinganalytics/quantum
ef3a34341d997d485a7e43335a8ed61a8e7c6ea6
[ "Apache-2.0" ]
381
2020-03-09T18:31:04.000Z
2022-03-28T18:47:32.000Z
tensorflow_quantum/python/differentiators/__init__.py
tappinganalytics/quantum
ef3a34341d997d485a7e43335a8ed61a8e7c6ea6
[ "Apache-2.0" ]
410
2020-03-09T03:05:48.000Z
2022-03-31T12:08:14.000Z
# Copyright 2020 The TensorFlow Quantum 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...
37.387097
80
0.729077
ab38ae2d8c17a7a5df07314f47034bda8a636085
3,845
py
Python
tests/test_color_background.py
erykoff/redmapper
23fb66c7369de784c67ce6c41ada2f1f51a84acb
[ "Apache-2.0" ]
17
2016-03-06T07:51:02.000Z
2022-02-03T15:17:26.000Z
tests/test_color_background.py
erykoff/redmapper
23fb66c7369de784c67ce6c41ada2f1f51a84acb
[ "Apache-2.0" ]
42
2016-07-27T20:48:20.000Z
2022-01-31T20:47:51.000Z
tests/test_color_background.py
erykoff/redmapper
23fb66c7369de784c67ce6c41ada2f1f51a84acb
[ "Apache-2.0" ]
8
2017-01-26T01:38:41.000Z
2020-11-14T07:41:53.000Z
import unittest import numpy.testing as testing import numpy as np import fitsio import tempfile import os from redmapper import ColorBackground from redmapper import ColorBackgroundGenerator from redmapper import Configuration if __name__=='__main__': unittest.main()
34.954545
98
0.635371
ab392fd8e80c256d42ff5f34b47b1e8775e1c4cb
33,538
py
Python
src/metpy/calc/basic.py
Exi666/MetPy
c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c
[ "BSD-3-Clause" ]
null
null
null
src/metpy/calc/basic.py
Exi666/MetPy
c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c
[ "BSD-3-Clause" ]
null
null
null
src/metpy/calc/basic.py
Exi666/MetPy
c3cf8b9855e0ce7c14347e9d000fc3d531a18e1c
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2008,2015,2016,2017,2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Contains a collection of basic calculations. These include: * wind components * heat index * windchill """ import warnings import numpy as np from scip...
33.945344
94
0.653706
ab3a2dd3958eeed0683e138275086ab9243b7a2e
1,525
py
Python
burl/core/api/views.py
wryfi/burl
664878ce9a31695456be89c8e10e8bb612074ef6
[ "MIT" ]
1
2021-02-07T21:48:59.000Z
2021-02-07T21:48:59.000Z
burl/core/api/views.py
wryfi/burl
664878ce9a31695456be89c8e10e8bb612074ef6
[ "MIT" ]
16
2020-03-24T16:53:30.000Z
2022-03-15T17:46:59.000Z
burl/core/api/views.py
wryfi/burl
664878ce9a31695456be89c8e10e8bb612074ef6
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.decorators import api_view from rest_framework.reverse import reverse from rest_framework_simplejwt.tokens import RefreshToken
29.901961
92
0.688525
ab3b3b45e085df872dae2584e5093ac10afc0c16
1,296
py
Python
ITmeetups_back/api/serializers.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
3
2019-02-28T15:20:24.000Z
2019-03-02T18:33:23.000Z
ITmeetups_back/api/serializers.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
7
2020-07-17T01:18:53.000Z
2022-02-17T22:49:16.000Z
ITmeetups_back/api/serializers.py
RomulusGwelt/AngularProject
acc7083f30b1edf002da8d156be023d2432a05e4
[ "MIT" ]
1
2019-03-03T02:45:55.000Z
2019-03-03T02:45:55.000Z
from rest_framework import serializers from .models import Post, Comment, Like from django.contrib.auth.models import User
24
62
0.655864
ab3e250f158b4ed0173fe7715ee2559fe186d522
1,879
py
Python
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
6
2020-09-05T16:08:59.000Z
2022-03-05T00:54:47.000Z
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
6
2020-09-23T17:58:37.000Z
2022-03-10T14:02:09.000Z
qurator/sbb_ned/embeddings/bert.py
qurator-spk/sbb_ned
d4cfe249f72e48913f254a58fbe0dbe6e47bd168
[ "Apache-2.0" ]
2
2021-03-22T00:12:51.000Z
2022-01-31T10:04:08.000Z
from ..embeddings.base import Embeddings from flair.data import Sentence
29.359375
122
0.585418
ab3e8587e5794a9e3b079ba7743bbea191efe88d
66,791
py
Python
Arbitrage_Future/Arbitrage_Future/test.py
ronaldzgithub/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
1
2021-11-03T06:16:16.000Z
2021-11-03T06:16:16.000Z
Arbitrage_Future/Arbitrage_Future/test.py
benno0810/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
null
null
null
Arbitrage_Future/Arbitrage_Future/test.py
benno0810/CryptoArbitrage
b4b7a12b7b11f3dcf950f9d2039dad4f1388530b
[ "MIT" ]
2
2021-05-07T09:11:54.000Z
2021-11-27T16:29:10.000Z
# !/usr/local/bin/python # -*- coding:utf-8 -*- import YunBi import CNBTC import json import threading import Queue import time import logging import numpy import message import random open_platform = [True,True,True,True] numpy.set_printoptions(suppress=True) # logging.basicConfig(level=logging.DEBUG, # ...
45.74726
245
0.561558
ab3ea1f161bcea5311f9766c4b23a51c645e6437
1,174
py
Python
startuptweet.py
cudmore/startupnotify
76b61b295ae7049e597fa05457a6696e624c4955
[ "MIT" ]
null
null
null
startuptweet.py
cudmore/startupnotify
76b61b295ae7049e597fa05457a6696e624c4955
[ "MIT" ]
null
null
null
startuptweet.py
cudmore/startupnotify
76b61b295ae7049e597fa05457a6696e624c4955
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Author: Robert Cudmore Date: 20181013 Purpose: Send a Tweet with IP and MAC address of a Raspberry Pi Install: pip3 install tweepy Usage: python3 startuptweet.py 'this is my tweet' """ import tweepy import sys import socket import subprocess from uuid import getnode as get_mac from datetime i...
22.576923
88
0.736797
ab3f43a17d20a3de43fa762a19edf3462b4252f3
1,307
py
Python
distributed/db.py
VW-Stephen/pySpiderScrape
861d7289743d5b65916310448526a58b381fde8d
[ "WTFPL" ]
null
null
null
distributed/db.py
VW-Stephen/pySpiderScrape
861d7289743d5b65916310448526a58b381fde8d
[ "WTFPL" ]
null
null
null
distributed/db.py
VW-Stephen/pySpiderScrape
861d7289743d5b65916310448526a58b381fde8d
[ "WTFPL" ]
null
null
null
#!/usr/bin/python from bs4 import BeautifulSoup import sqlite3
35.324324
397
0.582249
ab4054d837b64d6cdc4bc55d34e29e751e8dc8d5
4,427
py
Python
private/scripts/recheck-invalid-handles.py
bansal-shubham/stopstalk-deployment
6392eace490311be103292fdaff9ae215e4db7e6
[ "MIT" ]
null
null
null
private/scripts/recheck-invalid-handles.py
bansal-shubham/stopstalk-deployment
6392eace490311be103292fdaff9ae215e4db7e6
[ "MIT" ]
null
null
null
private/scripts/recheck-invalid-handles.py
bansal-shubham/stopstalk-deployment
6392eace490311be103292fdaff9ae215e4db7e6
[ "MIT" ]
null
null
null
""" Copyright (c) 2015-2019 Raj Patel(raj454raj@gmail.com), StopStalk 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 ...
41.373832
106
0.639259
ab41670d17acae57b54990c3a25815a2ee40eb19
9,225
py
Python
onnxmltools/convert/keras/_parse.py
gpminsuk/onnxmltools
4e88929a79a1018183f58e2d5e032dd639839dd2
[ "MIT" ]
1
2018-04-10T02:30:47.000Z
2018-04-10T02:30:47.000Z
onnxmltools/convert/keras/_parse.py
gpminsuk/onnxmltools
4e88929a79a1018183f58e2d5e032dd639839dd2
[ "MIT" ]
null
null
null
onnxmltools/convert/keras/_parse.py
gpminsuk/onnxmltools
4e88929a79a1018183f58e2d5e032dd639839dd2
[ "MIT" ]
1
2018-06-27T18:16:20.000Z
2018-06-27T18:16:20.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import te...
51.825843
125
0.714363
ab41d11daca6d1b31e59637bf18b9f99a383f86f
24,575
py
Python
src/scenic/core/regions.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
null
null
null
src/scenic/core/regions.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
null
null
null
src/scenic/core/regions.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
null
null
null
"""Objects representing regions in space.""" import math import random import itertools import numpy import scipy.spatial import shapely.geometry import shapely.ops from scenic.core.distributions import Samplable, RejectionException, needsSampling from scenic.core.lazy_eval import valueInContext from scenic.core.vec...
33.896552
96
0.722238
ab42204ebfa5ee7790165df748eb621656c602f4
6,525
py
Python
orangery/cli/cutfill.py
mrahnis/orangery
69afe0057bd61163eb8e026e58d648dfa1e73b94
[ "BSD-3-Clause" ]
2
2015-11-30T02:46:28.000Z
2021-06-26T15:01:45.000Z
orangery/cli/cutfill.py
mrahnis/orangery
69afe0057bd61163eb8e026e58d648dfa1e73b94
[ "BSD-3-Clause" ]
18
2017-06-18T03:23:05.000Z
2022-03-18T00:14:05.000Z
orangery/cli/cutfill.py
mrahnis/orangery
69afe0057bd61163eb8e026e58d648dfa1e73b94
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import logging import time import json import click import matplotlib.pyplot as plt import orangery as o from orangery.cli import defaults, util from orangery.tools.plotting import get_scale_factor
45
225
0.66728
ab42719d063612a8629ae16074131965d4bb9222
1,397
py
Python
src/ice_g2p/dictionaries.py
cadia-lvl/ice-g2p
5a6cc55f45282e8a656ea0742e2f373189c9a912
[ "Apache-2.0" ]
null
null
null
src/ice_g2p/dictionaries.py
cadia-lvl/ice-g2p
5a6cc55f45282e8a656ea0742e2f373189c9a912
[ "Apache-2.0" ]
null
null
null
src/ice_g2p/dictionaries.py
cadia-lvl/ice-g2p
5a6cc55f45282e8a656ea0742e2f373189c9a912
[ "Apache-2.0" ]
null
null
null
import os, sys DICTIONARY_FILE = os.path.join(sys.prefix, 'dictionaries/ice_pron_dict_standard_clear.csv') HEAD_FILE = os.path.join(sys.prefix, 'data/head_map.csv') MODIFIER_FILE = os.path.join(sys.prefix, 'data/modifier_map.csv') VOWELS_FILE = os.path.join(sys.prefix, 'data/vowels_sampa.txt') CONS_CLUSTERS_FILE = os.p...
24.086207
91
0.670007
ab42c6179a77692e03a58e9d6335af55ec3cb46d
385
py
Python
tests/test_annotations_notebook.py
jeromedockes/pylabelbuddy
26be00db679e94117968387aa7010dab2739b517
[ "BSD-3-Clause" ]
null
null
null
tests/test_annotations_notebook.py
jeromedockes/pylabelbuddy
26be00db679e94117968387aa7010dab2739b517
[ "BSD-3-Clause" ]
null
null
null
tests/test_annotations_notebook.py
jeromedockes/pylabelbuddy
26be00db679e94117968387aa7010dab2739b517
[ "BSD-3-Clause" ]
null
null
null
from pylabelbuddy import _annotations_notebook
32.083333
68
0.750649
ab4374fa18ea29af4960ad145950b9d2672ecb83
1,257
py
Python
middleware/run.py
natedogg484/react-flask-authentication
5000685d35471b03f72e0b07dfbdbf6d5fc296d2
[ "MIT" ]
null
null
null
middleware/run.py
natedogg484/react-flask-authentication
5000685d35471b03f72e0b07dfbdbf6d5fc296d2
[ "MIT" ]
4
2021-03-09T21:12:06.000Z
2022-02-26T19:17:31.000Z
middleware/run.py
natedogg484/vue-authentication
ab087e238d98606ffb73167cb9a16648812ac3e5
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS from flask_restful import Api from flask_sqlalchemy import SQLAlchemy from flask_jwt_extended import JWTManager app = Flask(__name__) CORS(app) api = Api(app) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] =...
27.933333
64
0.791567
ab43951bf5dc988e3a4948ac307ca905f1536445
223
py
Python
Programas do Curso/Desafio 2.py
carvalhopedro22/Programas-em-python-cursos-e-geral-
970e1ebe6cdd1e31f52dfd60328c2203d4de3ef1
[ "MIT" ]
null
null
null
Programas do Curso/Desafio 2.py
carvalhopedro22/Programas-em-python-cursos-e-geral-
970e1ebe6cdd1e31f52dfd60328c2203d4de3ef1
[ "MIT" ]
null
null
null
Programas do Curso/Desafio 2.py
carvalhopedro22/Programas-em-python-cursos-e-geral-
970e1ebe6cdd1e31f52dfd60328c2203d4de3ef1
[ "MIT" ]
null
null
null
nome = input('Qual o seu nome? ') dia = input('Que dia do ms voc nasceu? ') mes = input('Qual o ms em que voc nasceu? ') ano = input('Qual o ano em que voc nasceu? ') print(nome, 'nasceu em', dia,'de',mes,'do ano',ano)
44.6
51
0.650224
ab450e026b0907e8b838f6f9a3e2ba1d4218dd25
5,065
py
Python
cmibs/cisco_vlan_membership_mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
cmibs/cisco_vlan_membership_mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
cmibs/cisco_vlan_membership_mib.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # CISCO-VLAN-MEMBERSHIP-MIB # Compiled MIB # Do not modify this file directly # Run ./noc mib make-cmib instead # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for de...
64.113924
98
0.62231
ab453c7b64fdd47b4cf51bb569f233871fe2b337
4,118
py
Python
harbor/tests/test_unit.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
harbor/tests/test_unit.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
harbor/tests/test_unit.py
tdimnet/integrations-core
a78133a3b71a1b8377fa214d121a98647031ab06
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from mock import MagicMock from requests import HTTPError from datadog_checks.base import AgentCheck from datadog_checks.dev.http import MockResponse from .common import HARBOR_COMPONENTS, ...
43.347368
120
0.753035
ab47866bdd7f779d52254d019f551b3dccc349a3
2,649
py
Python
M-SPRING/template/adapter.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
3
2019-09-27T08:07:11.000Z
2021-11-19T11:27:39.000Z
M-SPRING/template/adapter.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
null
null
null
M-SPRING/template/adapter.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
null
null
null
# module for adapting templates on the fly if components are reused # check that all reused components are defined consistently -> else: exception # check and return number of reuses # return adapted templates with adapted reused components and exactly one arc per port (allows proportional output)
36.791667
116
0.690449
ab4824ab4c800c1d309f147567a8700135e66f6b
1,483
py
Python
source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
172
2015-01-07T08:40:17.000Z
2019-02-18T07:01:11.000Z
source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
83
2015-03-06T07:47:03.000Z
2018-07-05T15:10:19.000Z
source/vsm-dashboard/vsm_dashboard/test/test_data/swift_data.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
125
2015-01-05T12:22:15.000Z
2019-02-18T07:01:39.000Z
# Copyright 2012 Nebula, 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 agree...
38.025641
78
0.645988
ab48693089ba2d51e690249090e8808f1456a30c
17,971
py
Python
cinder/backup/driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
cinder/backup/driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/backup/driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (C) 2013 Deutsche Telekom AG # 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 r...
40.566591
79
0.615492
ab48971329305ae9b948d764b897a02b20e65a2f
67
py
Python
__init__.py
ENDERZOMBI102/chained
d01f04d1eb9a913f64cea9da52e61d91300315ff
[ "MIT" ]
null
null
null
__init__.py
ENDERZOMBI102/chained
d01f04d1eb9a913f64cea9da52e61d91300315ff
[ "MIT" ]
null
null
null
__init__.py
ENDERZOMBI102/chained
d01f04d1eb9a913f64cea9da52e61d91300315ff
[ "MIT" ]
null
null
null
from .chainOpen import chainOpen __all__ = [ 'chainOpen' ]
13.4
33
0.656716
ab4a651d98707257763d7fecd97ef8404192f74c
1,146
py
Python
code/reasoningtool/tests/QuerySciGraphTests.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
31
2018-03-05T20:01:10.000Z
2022-02-01T03:31:22.000Z
code/reasoningtool/tests/QuerySciGraphTests.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
1,774
2018-03-06T01:55:03.000Z
2022-03-31T03:09:04.000Z
code/reasoningtool/tests/QuerySciGraphTests.py
andrewsu/RTX
dd1de262d0817f7e6d2f64e5bec7d5009a3a2740
[ "MIT" ]
19
2018-05-10T00:43:19.000Z
2022-03-08T19:26:16.000Z
import unittest from QuerySciGraph import QuerySciGraph if __name__ == '__main__': unittest.main()
44.076923
101
0.620419
ab4c81650d8bacd66796cfc5a7b9384015825cae
1,342
py
Python
ledis/cli.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
ledis/cli.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
ledis/cli.py
gianghta/Ledis
a6b31617621746344408ee411cf510ef3cfb2e7b
[ "MIT" ]
null
null
null
from typing import Any from ledis import Ledis from ledis.exceptions import InvalidUsage
29.173913
78
0.520119
ab4cd7dafdbec4a4f671b37357e68833614883fc
866
py
Python
ClosedLoopTF.py
nazhanshaberi/miniature-octo-barnacle
eb1a8b5366003bf2d0f7e89af9d9dea120965f4f
[ "MIT" ]
null
null
null
ClosedLoopTF.py
nazhanshaberi/miniature-octo-barnacle
eb1a8b5366003bf2d0f7e89af9d9dea120965f4f
[ "MIT" ]
null
null
null
ClosedLoopTF.py
nazhanshaberi/miniature-octo-barnacle
eb1a8b5366003bf2d0f7e89af9d9dea120965f4f
[ "MIT" ]
null
null
null
#group 1: Question 1(b) # A control system for positioning the head of a laser printer has the closed loop transfer function: # !pip install control import matplotlib.pyplot as plt import control a=10 #Value for a b=50 #value for b sys1 = control.tf(20*b,[1,20+a,b+20*a,20*b]) print('3rd order system transfer funct...
29.862069
101
0.725173
ab4d5adf0a4cf40d756ef93b4de1fbf8fed57093
1,953
py
Python
example_project/test_messages/bbcode_tags.py
bastiedotorg/django-precise-bbcode
567a8a7f104fb7f2c9d59f304791e53d2d8f4dea
[ "BSD-3-Clause" ]
30
2015-01-02T13:43:56.000Z
2021-02-08T18:43:09.000Z
example_project/test_messages/bbcode_tags.py
bastiedotorg/django-precise-bbcode
567a8a7f104fb7f2c9d59f304791e53d2d8f4dea
[ "BSD-3-Clause" ]
31
2015-01-16T00:25:19.000Z
2021-12-11T16:40:03.000Z
example_project/test_messages/bbcode_tags.py
bastiedotorg/django-precise-bbcode
567a8a7f104fb7f2c9d59f304791e53d2d8f4dea
[ "BSD-3-Clause" ]
13
2015-07-16T23:25:10.000Z
2020-08-23T20:12:24.000Z
import re from precise_bbcode.bbcode.tag import BBCodeTag from precise_bbcode.tag_pool import tag_pool color_re = re.compile(r'^([a-z]+|#[0-9abcdefABCDEF]{3,6})$') tag_pool.register_tag(SubTag) tag_pool.register_tag(PreTag) tag_pool.register_tag(SizeTag) tag_pool.register_tag(FruitTag) tag_pool.register_tag...
27.125
97
0.673835
ab4de19d0181da877a10411de0bdd3a02265b4f5
1,567
py
Python
tests/test_vmtkScripts/test_vmtksurfacescaling.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
null
null
null
tests/test_vmtkScripts/test_vmtksurfacescaling.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
null
null
null
tests/test_vmtkScripts/test_vmtksurfacescaling.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
1
2019-06-18T23:41:11.000Z
2019-06-18T23:41:11.000Z
## Program: VMTK ## Language: Python ## Date: January 10, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNES...
31.34
75
0.678366
ab4e0820c560508db4fbda99cab044003f105f34
155,374
py
Python
tencentcloud/vpc/v20170312/models.py
yangyimincn/tencentcloud-sdk-python
1d4f1bd83bb57a91bb6d2631131a339bc1f9b91d
[ "Apache-2.0" ]
null
null
null
tencentcloud/vpc/v20170312/models.py
yangyimincn/tencentcloud-sdk-python
1d4f1bd83bb57a91bb6d2631131a339bc1f9b91d
[ "Apache-2.0" ]
null
null
null
tencentcloud/vpc/v20170312/models.py
yangyimincn/tencentcloud-sdk-python
1d4f1bd83bb57a91bb6d2631131a339bc1f9b91d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright 1999-2017 Tencent Ltd. # # 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 l...
29.914132
366
0.643827
ab4e7cdf2bacce34a3021f862bd5b5457c0c010e
3,677
py
Python
mlcsim/dist.py
nobodywasishere/MLCSim
a3eb3d39b6970a4e706e292c6a283531fb44350c
[ "MIT" ]
null
null
null
mlcsim/dist.py
nobodywasishere/MLCSim
a3eb3d39b6970a4e706e292c6a283531fb44350c
[ "MIT" ]
null
null
null
mlcsim/dist.py
nobodywasishere/MLCSim
a3eb3d39b6970a4e706e292c6a283531fb44350c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Distribution functions This module provides functions for dealing with normal distributions and generating error maps. When called directly as main, it allows for converting a threshold map into an error map. ``` $ python -m mlcsim.dist --help usage: dist.py [-h] [-b {1,2,3,4}] -f F [-o O]...
27.856061
93
0.627142
ab4ecc2d3d04743c00cc721399cf77a91c741662
2,063
py
Python
Pr-Lab5/lab5.py
JackShen1/pr-labs
c84df379d8f7b26ccff30248dfb23ae38e0ce7c2
[ "MIT" ]
2
2021-02-25T11:42:06.000Z
2021-03-08T20:43:44.000Z
Pr-Lab5/lab5.py
JackShen1/pr-labs
c84df379d8f7b26ccff30248dfb23ae38e0ce7c2
[ "MIT" ]
null
null
null
Pr-Lab5/lab5.py
JackShen1/pr-labs
c84df379d8f7b26ccff30248dfb23ae38e0ce7c2
[ "MIT" ]
null
null
null
earth = { "Asia": {'Japan': ("Tokyo", 377975, 125620000)}, "Europe": {'Austria': ("Vienna", 83800, 8404000), 'Germany': ("Berlin", 357000, 81751000), 'Great Britain': ("London", 244800, 62700000), 'Iceland': ("Reykjavk", 103000, 317630), 'Italy': ("Rome", 3014...
38.203704
125
0.49491
ab4efdf65ad735b02d6de387aa7fd48994cd82b2
1,507
bzl
Python
vue/repositories.bzl
ubiquitoustech/rules_vue
759786eae1b6caf647b1c6018e16030a66e486e2
[ "Apache-2.0" ]
null
null
null
vue/repositories.bzl
ubiquitoustech/rules_vue
759786eae1b6caf647b1c6018e16030a66e486e2
[ "Apache-2.0" ]
null
null
null
vue/repositories.bzl
ubiquitoustech/rules_vue
759786eae1b6caf647b1c6018e16030a66e486e2
[ "Apache-2.0" ]
null
null
null
"""Declare runtime dependencies These are needed for local dev, and users must install them as well. See https://docs.bazel.build/versions/main/skylark/deploying.html#dependencies """ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") #...
45.666667
126
0.7286
ab4f57f26ec8e3a5f4f9c3add8fa33115729abc3
3,956
py
Python
endpoints/api/test/test_tag.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
endpoints/api/test/test_tag.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
endpoints/api/test/test_tag.py
kwestpharedhat/quay
a0df895005bcd3e53847046f69f6a7add87c88fd
[ "Apache-2.0" ]
null
null
null
import pytest from playhouse.test_utils import assert_query_count from data.registry_model import registry_model from data.database import Manifest from endpoints.api.test.shared import conduct_api_call from endpoints.test.shared import client_with_identity from endpoints.api.tag import RepositoryTag, RestoreTag, Li...
34.4
146
0.654954
ab4f80a6a89a2ba8ed869ff8442a2bb12f645322
8,541
py
Python
inventory.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
inventory.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
inventory.py
Jongerr/vendor_receiving
f69f09a5b41d38b45e9ea0bf82590bb27ce913f6
[ "MIT" ]
null
null
null
import json import os import random import requests from passlib.hash import pbkdf2_sha256 as pbk from PyQt5.QtSql import QSqlDatabase, QSqlQuery from pprint import pprint ENCODING = 'utf-8' DB_PATH = os.path.join(os.path.curdir, 'inventory.db') def scrambleWord(word): """Randomize the letters in word and retur...
37.296943
143
0.583772
ab4fc96f582ec2e7dbdc6b88ad13480fe26a5ca3
1,749
py
Python
lnbits/core/views/lnurl.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
lnbits/core/views/lnurl.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
lnbits/core/views/lnurl.py
frennkie/lnbits
5fe64d324dc7ac05d1d0fc25eb5ad6a5a414ea8a
[ "MIT" ]
null
null
null
import requests from flask import abort, redirect, request, url_for from lnurl import LnurlWithdrawResponse, handle as handle_lnurl from lnurl.exceptions import LnurlException from time import sleep from lnbits.core import core_app from lnbits.helpers import Status from lnbits.settings import WALLET from ..crud impo...
30.155172
108
0.70669
ab5224dab7764f41af318140ad4ebc3291d1cf50
1,507
py
Python
driver_training/driver_training.py
munishm/MLOpsPython
e3ee31f6a0cac645a2b3ad945b8263e07d3085e4
[ "MIT" ]
null
null
null
driver_training/driver_training.py
munishm/MLOpsPython
e3ee31f6a0cac645a2b3ad945b8263e07d3085e4
[ "MIT" ]
null
null
null
driver_training/driver_training.py
munishm/MLOpsPython
e3ee31f6a0cac645a2b3ad945b8263e07d3085e4
[ "MIT" ]
null
null
null
# Import libraries import argparse from azureml.core import Run import joblib import json import os import pandas as pd import shutil # Import functions from train.py from train import split_data, train_model, get_model_metrics # Get the output folder for the model from the '--output_folder' parameter parser = argpar...
27.4
89
0.780358
ab52d48313f3351abea75bf8f470d2befb8d9c79
62
py
Python
tests/__init__.py
madman-bob/python-lua-imports
76d3765b03a0478544214022118e5a4a13f6e36a
[ "MIT" ]
3
2020-04-15T00:00:42.000Z
2021-03-07T19:58:44.000Z
tests/__init__.py
madman-bob/python-lua-imports
76d3765b03a0478544214022118e5a4a13f6e36a
[ "MIT" ]
null
null
null
tests/__init__.py
madman-bob/python-lua-imports
76d3765b03a0478544214022118e5a4a13f6e36a
[ "MIT" ]
1
2020-10-05T16:21:53.000Z
2020-10-05T16:21:53.000Z
from lua_imports import lua_importer lua_importer.register()
15.5
36
0.854839
ab5634ebc042f640696c7b2e6eb9efb69e3e48b5
258
py
Python
app/models/product.py
VyachAp/SalesFABackend
dcbe1b5106c030ee07535795dfd7b97613a1203d
[ "MIT" ]
80
2020-10-06T00:35:57.000Z
2022-03-31T19:56:24.000Z
app/models/product.py
VyachAp/SalesFABackend
dcbe1b5106c030ee07535795dfd7b97613a1203d
[ "MIT" ]
1
2021-03-28T06:17:41.000Z
2021-04-03T06:41:09.000Z
app/models/product.py
VyachAp/SalesFABackend
dcbe1b5106c030ee07535795dfd7b97613a1203d
[ "MIT" ]
24
2020-11-14T03:04:43.000Z
2022-03-11T15:44:44.000Z
from sqlalchemy import Column, Integer, String, Float from app.database.base_class import Base
25.8
54
0.744186
ab57b93b87294fbdfc94236ad38a6b407c2435a8
7,463
py
Python
katana/utils/directory_traversal_utils.py
warriorframework/Katanaframework
9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323
[ "Apache-2.0" ]
1
2020-09-30T11:14:14.000Z
2020-09-30T11:14:14.000Z
katana/utils/directory_traversal_utils.py
warriorframework/Katanaframework
9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323
[ "Apache-2.0" ]
4
2020-06-06T01:55:04.000Z
2021-06-10T22:57:50.000Z
katana/utils/directory_traversal_utils.py
warriorframework/Katanaframework
9dc78df9d0c8f19ef5eaaa8690fbfa1ad885b323
[ "Apache-2.0" ]
1
2020-09-17T08:20:09.000Z
2020-09-17T08:20:09.000Z
import glob import os import re import errno import shutil def get_sub_dirs_and_files(path, abs_path=False): """ Gets the direct child sub-files and sub-folders of the given directory Args: path: Absolute path to the directory abs_path: If set to True, it returns a list of absolute paths ...
29.498024
100
0.643307
ab58cf0f15e7f5253d551ed9c21fd93da300dfec
8,381
py
Python
alignment.py
LucaOnline/theanine-synthetase
75a9d1f6d853409e12bf9f3b6e5948b594a03217
[ "MIT" ]
null
null
null
alignment.py
LucaOnline/theanine-synthetase
75a9d1f6d853409e12bf9f3b6e5948b594a03217
[ "MIT" ]
1
2021-04-28T21:34:45.000Z
2021-05-11T23:29:59.000Z
alignment.py
LucaOnline/theanine-synthetase
75a9d1f6d853409e12bf9f3b6e5948b594a03217
[ "MIT" ]
null
null
null
"""The `alignment` module provides an implementation of the Needleman-Wunsch alignment algorithm.""" from typing import Tuple, Literal, List from math import floor import numpy as np from stats import variance MOVE_DIAGONAL = 0 MOVE_RIGHT = 1 MOVE_DOWN = 2 EditMove = Literal[MOVE_DIAGONAL, MOVE_RIGHT, MOVE_DOWN] ...
32.111111
106
0.595752
ab58dbf2a732c20f8c5b6f7ff7869c6f7c00ca41
2,348
py
Python
examples/the-feeling-of-success/mock_grasp_object_op.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/the-feeling-of-success/mock_grasp_object_op.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
examples/the-feeling-of-success/mock_grasp_object_op.py
yujialuo/erdos
7a631b55895f1a473b0f4d38a0d6053851e65b5d
[ "Apache-2.0" ]
null
null
null
from mock_gripper_op import MockGripType from std_msgs.msg import Bool from erdos.op import Op from erdos.data_stream import DataStream from erdos.message import Message
34.028986
79
0.663969
ab58e931b2be617a8f028a51f43ae40e92333614
3,683
py
Python
src/pyfsa/lib/fsa.py
taliamax/pyfsa
d92faa96c1e17e4016df7b367c7d405a07f1253b
[ "Apache-2.0" ]
1
2021-01-21T21:48:26.000Z
2021-01-21T21:48:26.000Z
src/pyfsa/lib/fsa.py
taliamax/pyfsa
d92faa96c1e17e4016df7b367c7d405a07f1253b
[ "Apache-2.0" ]
null
null
null
src/pyfsa/lib/fsa.py
taliamax/pyfsa
d92faa96c1e17e4016df7b367c7d405a07f1253b
[ "Apache-2.0" ]
4
2021-01-22T04:04:22.000Z
2021-11-01T14:43:09.000Z
# -*- coding: utf-8 -*- import pygraphviz as gv # type: ignore import itertools as it from typing import ( List, Optional, ) from pyfsa.lib.types import TransitionsTable def get_state_graph( transitions: TransitionsTable, start: Optional[str] = None, end: Optional[str] = None, nodes: Option...
27.485075
65
0.620961
ab59b426727f7713efb93b6855597da219efc0be
1,695
py
Python
examples/multimedia/mmimdb_MFM.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
148
2021-03-06T06:54:13.000Z
2022-03-29T19:27:21.000Z
examples/multimedia/mmimdb_MFM.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
10
2021-07-19T22:57:49.000Z
2022-02-04T03:12:29.000Z
examples/multimedia/mmimdb_MFM.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
18
2021-07-22T07:17:27.000Z
2022-03-27T16:11:40.000Z
import torch import sys import os sys.path.append(os.getcwd()) from utils.helper_modules import Sequential2 from unimodals.common_models import Linear, MLP, MaxOut_MLP from datasets.imdb.get_data import get_dataloader from fusions.common_fusions import Concat from objective_functions.objectives_for_supervised_learnin...
42.375
175
0.746313
ab5a9e198509b5652d8bbadee3e63897c02a6e94
1,461
py
Python
subeana/migrations/0001_initial.py
izumin2000/izuminapp
3464cebe1d98c85c2cd95c6fac779ec1f42ef930
[ "MIT" ]
null
null
null
subeana/migrations/0001_initial.py
izumin2000/izuminapp
3464cebe1d98c85c2cd95c6fac779ec1f42ef930
[ "MIT" ]
null
null
null
subeana/migrations/0001_initial.py
izumin2000/izuminapp
3464cebe1d98c85c2cd95c6fac779ec1f42ef930
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-06-01 04:43 from django.db import migrations, models import django.db.models.deletion
40.583333
169
0.600274
ab5b1e3328548b4d29719e9eabea190e03a2dd78
78,836
py
Python
bifacialvf/vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
1
2020-05-20T06:19:40.000Z
2020-05-20T06:19:40.000Z
bifacialvf/vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
null
null
null
bifacialvf/vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
1
2020-12-30T08:05:49.000Z
2020-12-30T08:05:49.000Z
# -*- coding: utf-8 -*- """ ViewFactor module - VF calculation helper files for bifacial-viewfactor @author Bill Marion @translated to python by sayala 06/09/17 """ # ensure python3 compatible division and printing from __future__ import division, print_function, absolute_import import math import numpy as np fr...
50.374441
203
0.534692
ab5be15bbc59ecc18cf93a6170b0dd272f33cfd6
833
py
Python
tests/test_slison.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
2
2017-02-06T17:15:11.000Z
2017-04-17T13:18:18.000Z
tests/test_slison.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
null
null
null
tests/test_slison.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
null
null
null
from slisonner import decoder, encoder from tests import mocker from tempfile import mkdtemp from shutil import rmtree
29.75
75
0.716687
ab5da7ec6af05a22fe8ff59c25c22325724698fc
403
py
Python
cartrade/cartrade/doctype/category/category.py
vignesharumainayagam/cartrade
81349bc3cd9dbd441491304734077aab10dca56f
[ "MIT" ]
null
null
null
cartrade/cartrade/doctype/category/category.py
vignesharumainayagam/cartrade
81349bc3cd9dbd441491304734077aab10dca56f
[ "MIT" ]
null
null
null
cartrade/cartrade/doctype/category/category.py
vignesharumainayagam/cartrade
81349bc3cd9dbd441491304734077aab10dca56f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Tridots Tech Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.website.website_generator import WebsiteGenerator
28.785714
61
0.751861
ab5e4dfefa5bc8fdcbff9af5c74dd0475612065f
372
py
Python
exercises/pyfiles/ex812_polarsincos.py
TUDelft-AE-Python/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
1
2021-10-05T04:49:54.000Z
2021-10-05T04:49:54.000Z
exercises/pyfiles/ex812_polarsincos.py
TUDelft-AE1205/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
null
null
null
exercises/pyfiles/ex812_polarsincos.py
TUDelft-AE1205/ae1205-exercises
342d1d567b64d3ccb3371ce9826c02a87a155fa8
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import math xtab = [] ytab = [] for i in range(0, 628): # Calculate polar coordinates for provided equation phi = float(i) / 100.0 r = 4 * math.cos(2 * phi) # Convert to Cartesian and store in lists x = r * math.cos(phi) y = r * math.sin(phi) xtab.append(x)...
19.578947
55
0.620968
ab5ff68a9733a875c0aeb19f8b19c6f3ac7260b4
3,108
py
Python
vendor/packages/logilab-astng/__pkginfo__.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/logilab-astng/__pkginfo__.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/logilab-astng/__pkginfo__.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program 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 2 of the Lic...
40.363636
87
0.740991
ab60f9944d5fde6a7550fbbfc9b1e8fd43e10b50
1,518
py
Python
W-DCGAN/model.py
lmyybh/pytorch-networks
8da055f5042c3803b275734afc89d33d239d7585
[ "MulanPSL-1.0" ]
null
null
null
W-DCGAN/model.py
lmyybh/pytorch-networks
8da055f5042c3803b275734afc89d33d239d7585
[ "MulanPSL-1.0" ]
null
null
null
W-DCGAN/model.py
lmyybh/pytorch-networks
8da055f5042c3803b275734afc89d33d239d7585
[ "MulanPSL-1.0" ]
null
null
null
import torch import torch.nn as nn
33
87
0.563241
ab617d4c442405b9219d3fa02f66e3a525d82e42
4,339
py
Python
bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py
bioShaun/omsCabinet
741179a06cbd5200662cd03bc2e0115f4ad06917
[ "MIT" ]
null
null
null
bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py
bioShaun/omsCabinet
741179a06cbd5200662cd03bc2e0115f4ad06917
[ "MIT" ]
null
null
null
bioinformatics/analysis/rnaseq/prepare/split_gtf_by_type.py
bioShaun/omsCabinet
741179a06cbd5200662cd03bc2e0115f4ad06917
[ "MIT" ]
null
null
null
import fire import gtfparse from pathlib import Path GENCODE_CATEGORY_MAP = { 'IG_C_gene': 'protein_coding', 'IG_D_gene': 'protein_coding', 'IG_J_gene': 'protein_coding', 'IG_V_gene': 'protein_coding', 'IG_LV_gene': 'protein_coding', 'TR_C_gene': 'protein_coding', 'TR_J_gene': 'protein_cod...
30.77305
59
0.63563
ab61967196abc0b2e677bfd1d2c054cef2f1f32b
792
py
Python
rational.py
navel0810/chibi
d2e9a791492352c3c1b76c841a3ad30df2f444fd
[ "MIT" ]
null
null
null
rational.py
navel0810/chibi
d2e9a791492352c3c1b76c841a3ad30df2f444fd
[ "MIT" ]
null
null
null
rational.py
navel0810/chibi
d2e9a791492352c3c1b76c841a3ad30df2f444fd
[ "MIT" ]
null
null
null
import math q1=Q(1,2) q2=Q(1,3) print(q1/q2)
17.217391
36
0.412879
ab6209870d287fc20132452f64da2ca39e9ab140
1,890
py
Python
cities_light/tests/test_import.py
jsandovalc/django-cities-light
a1c6af08938b7b01d4e12555bd4cb5040905603d
[ "MIT" ]
null
null
null
cities_light/tests/test_import.py
jsandovalc/django-cities-light
a1c6af08938b7b01d4e12555bd4cb5040905603d
[ "MIT" ]
null
null
null
cities_light/tests/test_import.py
jsandovalc/django-cities-light
a1c6af08938b7b01d4e12555bd4cb5040905603d
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import glob import os from dbdiff.fixture import Fixture from .base import TestImportBase, FixtureDir from ..settings import DATA_DIR
29.53125
84
0.607937
ab6246c7ab7820986e2418ba286e6e0d8c06092b
574
py
Python
custom_components/hoymiles/__init__.py
Cosik/HAHoymiles
e956f8fafc4ae59d4c05755c6e8a5d5d7caa37f9
[ "MIT" ]
null
null
null
custom_components/hoymiles/__init__.py
Cosik/HAHoymiles
e956f8fafc4ae59d4c05755c6e8a5d5d7caa37f9
[ "MIT" ]
null
null
null
custom_components/hoymiles/__init__.py
Cosik/HAHoymiles
e956f8fafc4ae59d4c05755c6e8a5d5d7caa37f9
[ "MIT" ]
null
null
null
import datetime import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_PASSWORD, CONF_USERNAME import homeassistant.helpers.config_validation as cv from .const import ( CONF_PLANT_ID, ) _LOGGER = logging.getLogger(__name__) MIN_T...
23.916667
60
0.775261
db3b69e3c4b3003f7bdcfee2a7ee4c426c44a37d
5,738
py
Python
views/auth.py
bluebibi/flask_rest
9b1ee876060bca5d97459bb894c73530f66c4c15
[ "MIT" ]
null
null
null
views/auth.py
bluebibi/flask_rest
9b1ee876060bca5d97459bb894c73530f66c4c15
[ "MIT" ]
1
2022-02-11T03:43:51.000Z
2022-02-11T03:43:51.000Z
views/auth.py
bluebibi/flask_rest
9b1ee876060bca5d97459bb894c73530f66c4c15
[ "MIT" ]
2
2019-11-19T02:09:03.000Z
2020-04-04T06:55:14.000Z
from flask import Blueprint, redirect, render_template, request, flash, session from database import base from database.base import User from forms import UserForm, LoginForm, MyPageUserForm from flask_login import login_required, login_user, logout_user, current_user import requests auth_blueprint = Blueprint('auth'...
32.977011
104
0.648832
db3d773e3532da7f969a86616e27db866a72624c
3,500
py
Python
doc/.src/book/exer/cable_sin.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
86
2015-12-17T12:57:11.000Z
2022-03-26T01:53:47.000Z
doc/.src/book/exer/cable_sin.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
9
2017-04-16T21:57:29.000Z
2021-04-17T08:09:30.000Z
doc/.src/book/exer/cable_sin.py
hplgit/fem-book
c23099715dc3cb72e7f4d37625e6f9614ee5fc4e
[ "MIT" ]
43
2016-03-11T19:33:14.000Z
2022-03-05T00:21:57.000Z
import matplotlib.pyplot as plt def model(): """Solve u'' = -1, u(0)=0, u'(1)=0.""" import sympy as sym x, c_0, c_1, = sym.symbols('x c_0 c_1') u_x = sym.integrate(1, (x, 0, x)) + c_0 u = sym.integrate(u_x, (x, 0, x)) + c_1 r = sym.solve([u.subs(x,0) - 0, sym.diff(u,x).subs(x...
28.92562
60
0.512571
db3dd00adedd165108fb972c0f4e5656055ffd1d
1,196
py
Python
skgmm.py
liuliu663/speaker-recognition-py3
8fd0f77ac011e4a11c7cac751dc985b9cd1f2c4d
[ "Apache-2.0" ]
null
null
null
skgmm.py
liuliu663/speaker-recognition-py3
8fd0f77ac011e4a11c7cac751dc985b9cd1f2c4d
[ "Apache-2.0" ]
null
null
null
skgmm.py
liuliu663/speaker-recognition-py3
8fd0f77ac011e4a11c7cac751dc985b9cd1f2c4d
[ "Apache-2.0" ]
null
null
null
from sklearn.mixture import GaussianMixture import operator import numpy as np import math
27.813953
81
0.601171
db3fb84bca4d1b9ce63dca5f602d76eb7650bd3f
106
py
Python
lib/loss/__init__.py
kennethwdk/PINet
3a0abbd653146c56e39612384891c94c3fb49b35
[ "MIT" ]
10
2021-12-22T11:31:53.000Z
2022-01-18T11:52:17.000Z
lib/loss/__init__.py
kennethwdk/PINet
3a0abbd653146c56e39612384891c94c3fb49b35
[ "MIT" ]
null
null
null
lib/loss/__init__.py
kennethwdk/PINet
3a0abbd653146c56e39612384891c94c3fb49b35
[ "MIT" ]
null
null
null
from .heatmaploss import HeatmapLoss from .offsetloss import OffsetLoss from .refineloss import RefineLoss
35.333333
36
0.867925
db40a9951b31f74580005898f3f6b78a4f2c461b
1,080
py
Python
eth2/beacon/types/historical_batch.py
AndrewBezold/trinity
bc656da4dece431a0c929a99349d45faf75decf8
[ "MIT" ]
null
null
null
eth2/beacon/types/historical_batch.py
AndrewBezold/trinity
bc656da4dece431a0c929a99349d45faf75decf8
[ "MIT" ]
null
null
null
eth2/beacon/types/historical_batch.py
AndrewBezold/trinity
bc656da4dece431a0c929a99349d45faf75decf8
[ "MIT" ]
null
null
null
from typing import Sequence from eth.constants import ZERO_HASH32 from eth_typing import Hash32 import ssz from ssz.sedes import Vector, bytes32 from eth2.configs import Eth2Config from .defaults import default_tuple, default_tuple_of_size
30
87
0.649074
db42ec903108c18c60147d1092a12cae13582379
186
py
Python
app/settings.py
nikosk/fastAPI-microservice-example-
a1a61ab4e521bc0c48eee5b3a755db134c098546
[ "MIT" ]
null
null
null
app/settings.py
nikosk/fastAPI-microservice-example-
a1a61ab4e521bc0c48eee5b3a755db134c098546
[ "MIT" ]
null
null
null
app/settings.py
nikosk/fastAPI-microservice-example-
a1a61ab4e521bc0c48eee5b3a755db134c098546
[ "MIT" ]
null
null
null
import os from pydantic import BaseSettings
15.5
51
0.688172
db434cf2f9b45ff5f3690a75cc12bde4fd9cb6aa
1,354
py
Python
ADVECTOR/io_tools/create_bathymetry.py
john-science/ADVECTOR
5c5ca7595c2c051f1a088b1f0e694936c3da3610
[ "MIT" ]
7
2021-09-07T02:32:00.000Z
2022-01-15T11:35:02.000Z
ADVECTOR/io_tools/create_bathymetry.py
TheOceanCleanupAlgorithms/ADVECT
e27ce15da6a2fcbccbe363f8c2415b0122696d1f
[ "MIT" ]
1
2021-12-24T15:16:26.000Z
2021-12-24T15:16:26.000Z
ADVECTOR/io_tools/create_bathymetry.py
TheOceanCleanupAlgorithms/ADVECT
e27ce15da6a2fcbccbe363f8c2415b0122696d1f
[ "MIT" ]
1
2021-12-12T15:13:52.000Z
2021-12-12T15:13:52.000Z
import numpy as np import xarray as xr def create_bathymetry_from_land_mask(land_mask: xr.DataArray) -> xr.DataArray: """Method: identifies the lower depth bound of the shallowest ocean cell (non-null) in each vertical grid column. :param land_mask: dimensions {time, depth, lat, lon}, boloean array, T...
34.717949
99
0.637371
db446d4b90633693172c23acd329f858502b3ec2
712
py
Python
unitconvert/distance.py
cr2630git/unitconvert
64a530f53b27a9412988877c7ae1b3b34f9ce8a6
[ "MIT" ]
null
null
null
unitconvert/distance.py
cr2630git/unitconvert
64a530f53b27a9412988877c7ae1b3b34f9ce8a6
[ "MIT" ]
null
null
null
unitconvert/distance.py
cr2630git/unitconvert
64a530f53b27a9412988877c7ae1b3b34f9ce8a6
[ "MIT" ]
2
2017-11-16T15:11:09.000Z
2021-08-19T19:34:23.000Z
""" A simple python module for converting kilometers to miles or vice versa. So simple that it doesn't even have any dependencies. """ def kilometers_to_miles(dist_in_km): """ Actually does the conversion of distance from km to mi. PARAMETERS -------- dist_in_km: float A distance in kilometers. RETURNS -...
17.365854
72
0.703652