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
c165a2d6078e507a40ef86207575d3eefb0da508
289
py
Python
test/tests/intmethods.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
1
2015-11-06T03:39:51.000Z
2015-11-06T03:39:51.000Z
test/tests/intmethods.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
test/tests/intmethods.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
# can't try large numbers yet due to lack of long for i in xrange(1, 100): for j in xrange(1, 100): print i.__divmod__(j) for i in xrange(1, 12): for j in xrange(1, 12): print i | j print i & j print i ^ j print 1 ** 0 print 0 ** 0 print -1 ** 0
18.0625
49
0.546713
c165a6d6b497f214d3ee7b9ab319db0cb8d9588f
384
py
Python
src/reverse/setup.py
fugue/zim-example
861b197ddc1074375bb9437b3282ab3e517b9019
[ "MIT" ]
null
null
null
src/reverse/setup.py
fugue/zim-example
861b197ddc1074375bb9437b3282ab3e517b9019
[ "MIT" ]
null
null
null
src/reverse/setup.py
fugue/zim-example
861b197ddc1074375bb9437b3282ab3e517b9019
[ "MIT" ]
2
2021-03-17T03:02:52.000Z
2021-07-21T23:31:08.000Z
import os.path from setuptools import setup, find_packages with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f: requirements = f.read().strip() setup( name="reverse", version="0.0.0", description="Reverse data", packages=find_packages(exclude=["tests"]), package_data={"...
25.6
76
0.690104
c165ec6055b3d0599812a0a06fa513f8948722c9
3,204
py
Python
tutorial_metarl/tasks/CompositionalTwoArmedBandit.py
akjagadish/tutorial-metarl
8810eafa783749c70a0575e805810a098b3df0fb
[ "MIT" ]
null
null
null
tutorial_metarl/tasks/CompositionalTwoArmedBandit.py
akjagadish/tutorial-metarl
8810eafa783749c70a0575e805810a098b3df0fb
[ "MIT" ]
null
null
null
tutorial_metarl/tasks/CompositionalTwoArmedBandit.py
akjagadish/tutorial-metarl
8810eafa783749c70a0575e805810a098b3df0fb
[ "MIT" ]
null
null
null
import torch import numpy as np import math
41.61039
102
0.626717
c1665cfed8ff4a38680780c2f17d5964d1d9ed35
70
py
Python
00.source-code/02.Python/writeFile.py
wardensky/blogs
e8f347d05b59684f81ea6f7ee8cdbe0d701122f5
[ "Apache-2.0" ]
2
2018-12-20T12:19:56.000Z
2019-09-24T06:25:01.000Z
00.source-code/02.Python/writeFile.py
wardensky/blogs
e8f347d05b59684f81ea6f7ee8cdbe0d701122f5
[ "Apache-2.0" ]
null
null
null
00.source-code/02.Python/writeFile.py
wardensky/blogs
e8f347d05b59684f81ea6f7ee8cdbe0d701122f5
[ "Apache-2.0" ]
3
2018-09-18T06:58:56.000Z
2019-10-27T09:35:01.000Z
#!/usr/bin/python f = file('x1.txt', 'w') f.write('hello') f.close()
11.666667
23
0.571429
c16896197cec1995065f5c34607ce687f11e89f6
2,916
py
Python
scripts/example.py
alexboden/nba-who-has-more
590ba8bd062b96ff866c13988eb79a8c7ff0f488
[ "MIT" ]
null
null
null
scripts/example.py
alexboden/nba-who-has-more
590ba8bd062b96ff866c13988eb79a8c7ff0f488
[ "MIT" ]
null
null
null
scripts/example.py
alexboden/nba-who-has-more
590ba8bd062b96ff866c13988eb79a8c7ff0f488
[ "MIT" ]
null
null
null
from nba_api.stats.static import players from nba_api.stats import endpoints from nba_api.stats.library.parameters import SeasonAll from nba_api.stats.endpoints import playercareerstats from nba_api.stats.endpoints import commonplayerinfo from nba_api.stats.endpoints import playergamelog import pandas as pd import tim...
25.80531
126
0.718793
c168f756bc02752d155d2b864b3e1da8b5fa59b8
2,653
py
Python
data/Process_MIR1k.py
carrieeeeewithfivee/tf2_Vocal_Separation_UNet
5dbb6838bee0d8fbf0f73fa83e8c3d6c1978c67c
[ "MIT" ]
null
null
null
data/Process_MIR1k.py
carrieeeeewithfivee/tf2_Vocal_Separation_UNet
5dbb6838bee0d8fbf0f73fa83e8c3d6c1978c67c
[ "MIT" ]
1
2022-01-02T06:54:27.000Z
2022-01-02T12:09:13.000Z
data/Process_MIR1k.py
carrieeeeewithfivee/tf2_Vocal_Separation_UNet
5dbb6838bee0d8fbf0f73fa83e8c3d6c1978c67c
[ "MIT" ]
null
null
null
import os from librosa.core import load, stft, istft, magphase from librosa.output import write_wav from concurrent.futures import ThreadPoolExecutor from time import time import asyncio import os,glob import numpy as np from multiprocessing import cpu_count #Thanks to https://github.com/jnzhng/keras-unet-vocal-separat...
35.851351
107
0.656238
c1693dff2b16a43c1fe7913423163831050a96a1
3,195
py
Python
utils/utils.py
bo-miao/anomaly_classification
08829b3cdc488c6c7867f02950b5e22b6a5d5435
[ "Apache-2.0" ]
null
null
null
utils/utils.py
bo-miao/anomaly_classification
08829b3cdc488c6c7867f02950b5e22b6a5d5435
[ "Apache-2.0" ]
null
null
null
utils/utils.py
bo-miao/anomaly_classification
08829b3cdc488c6c7867f02950b5e22b6a5d5435
[ "Apache-2.0" ]
null
null
null
from utils import lr_scheduler, metric, prefetch, summary import os, sys import time import numpy as np from collections import OrderedDict import glob import math import copy import tqdm from sklearn.metrics import roc_auc_score, roc_curve, auc import matplotlib.pyplot as plt from torch.cuda.amp import autocast impor...
30.428571
103
0.638498
c169f12d80ecf64a50d7329d9a77f916c0b26871
1,960
py
Python
src/kpi_WV_hs/.ipynb_checkpoints/compute_kpi_1d_v2_prun-checkpoint.py
tlechauveCLS/kpi_mpc
4dc61d210c2b97e6ac240e54a8d96c35cf9123de
[ "MIT" ]
null
null
null
src/kpi_WV_hs/.ipynb_checkpoints/compute_kpi_1d_v2_prun-checkpoint.py
tlechauveCLS/kpi_mpc
4dc61d210c2b97e6ac240e54a8d96c35cf9123de
[ "MIT" ]
null
null
null
src/kpi_WV_hs/.ipynb_checkpoints/compute_kpi_1d_v2_prun-checkpoint.py
tlechauveCLS/kpi_mpc
4dc61d210c2b97e6ac240e54a8d96c35cf9123de
[ "MIT" ]
1
2022-03-23T07:48:27.000Z
2022-03-23T07:48:27.000Z
#!/home1/datawork/agrouaze/conda_envs2/envs/py2.7_cwave/bin/python # coding: utf-8 """ """ import sys print(sys.executable) import subprocess import logging from dateutil import rrule import datetime if __name__ == '__main__': root = logging.getLogger () if root.handlers: for handler in root.handlers: ...
40
102
0.626531
c16a520b3532e245375dff9d61f50950a6a91c7f
20,482
py
Python
pysrc/simulserver.py
juliusbierk/simultant
9d454b58797399f60812c4d8c482a57e82b5dba7
[ "MIT" ]
null
null
null
pysrc/simulserver.py
juliusbierk/simultant
9d454b58797399f60812c4d8c482a57e82b5dba7
[ "MIT" ]
null
null
null
pysrc/simulserver.py
juliusbierk/simultant
9d454b58797399f60812c4d8c482a57e82b5dba7
[ "MIT" ]
null
null
null
import asyncio import concurrent import functools import json import numpy as np import torch from aiohttp import web from aiohttp.web_runner import GracefulExit import aiohttp_cors import logging import csv import multiprocessing import queue import pickle # Local imports: from torchfcts import function_from_code, get...
33.412724
117
0.553803
c16b54a8fb917e5a067468f0c78cd337a4b77c6b
4,312
py
Python
streak/api_get.py
srevinsaju/streak
ff21f39b06da3010568940d335c32bd7d357ca69
[ "MIT" ]
2
2022-03-07T20:18:46.000Z
2022-03-08T12:48:04.000Z
streak/api_get.py
srevinsaju/streak
ff21f39b06da3010568940d335c32bd7d357ca69
[ "MIT" ]
null
null
null
streak/api_get.py
srevinsaju/streak
ff21f39b06da3010568940d335c32bd7d357ca69
[ "MIT" ]
null
null
null
from flask import jsonify, make_response, request from . import app from .api_post import engine, login from .core import utility_funcs from sqlalchemy.orm import sessionmaker from sqlalchemy_cockroachdb import run_transaction from .api_post import login_required def _get_info_fmt(session, user_uuid): user = ...
28
87
0.661874
c16b90c3a22166a86fb8294e272716e1caa3d0d8
4,066
py
Python
BI/delta.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-21T16:24:18.000Z
2021-12-21T16:24:18.000Z
BI/delta.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-10T01:05:55.000Z
2021-12-10T01:05:55.000Z
BI/delta.py
aessex24/rindr
2a546b27ce1c72728bb7a63e60653929ca592cfe
[ "MIT" ]
1
2021-12-10T00:48:33.000Z
2021-12-10T00:48:33.000Z
#!/usr/bin/python3 """ Run "mypy --disallow-untyped-defs --ignore-missing-imports \ --show-error-codes --strict-equality delta.py". The holidays module lacks type hints. Next need: explicit Pytests. Notice the imports are punctuated in an isort style. """ from datetime import datetime, timedelta import sy...
40.257426
118
0.624693
c16c66d300e2ec1188a948c8172e2c9116bd68b9
2,831
py
Python
octopus/modules/account/dao.py
tuub/magnificent-octopus
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
[ "Apache-2.0" ]
null
null
null
octopus/modules/account/dao.py
tuub/magnificent-octopus
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
[ "Apache-2.0" ]
null
null
null
octopus/modules/account/dao.py
tuub/magnificent-octopus
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
[ "Apache-2.0" ]
2
2019-12-17T14:55:17.000Z
2020-02-03T12:35:24.000Z
from octopus.modules.es import dao from datetime import datetime from octopus.modules.account.exceptions import NonUniqueAccountException def query_filter(q): """Function used by the query endpoint to ensure only the relevant account data is returned""" # q is an esprit.models.Query object # this limits t...
36.766234
139
0.620276
c16e57e83faead3659a5fd36f3a7c633cdd84012
330
py
Python
app/app/tests.py
aniket463/recipe-app-api
64d390bea67f840f0d056f6fdb36eb30236be64b
[ "MIT" ]
null
null
null
app/app/tests.py
aniket463/recipe-app-api
64d390bea67f840f0d056f6fdb36eb30236be64b
[ "MIT" ]
null
null
null
app/app/tests.py
aniket463/recipe-app-api
64d390bea67f840f0d056f6fdb36eb30236be64b
[ "MIT" ]
null
null
null
from django.test import TestCase from app.calc import substraction from app.calc import add
27.5
45
0.709091
c16fb7371862914b59939c00a0c9796c961142c4
856
py
Python
buildbot/master/files/config/passwords.py
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
1
2021-01-07T18:49:38.000Z
2021-01-07T18:49:38.000Z
buildbot/master/files/config/passwords.py
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
null
null
null
buildbot/master/files/config/passwords.py
ecoal95/saltfs
4d2596794a70919c2887688d6d116f2f5bb5cf1e
[ "Apache-2.0", "MIT" ]
null
null
null
import json # Jinja will replace the inside with double-quote-using JSON, # so use single quotes to delimit the string. # Use double quotes inside to keep the expression as a single string. credentials = json.loads('{{ pillar["buildbot"]["credentials"]|json }}') # json.loads creates unicode strings but Buildbot requir...
45.052632
72
0.775701
c170014093c78e48166681a428ba4bef1d6ab86d
11,819
py
Python
analytics/core/tests/unittest_core_processor.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
analytics/core/tests/unittest_core_processor.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
29
2015-02-23T07:59:13.000Z
2015-04-05T09:49:53.000Z
analytics/core/tests/unittest_core_processor.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # import libs import unittest import random import sys import warnings # import classes import analytics.utils.misc as misc import analytics.exceptions.exceptions as ex import analytics.core.processor.processor as processor from types import ListType, DictType from analytics.core.map.dataitemmap ...
40.064407
77
0.607496
c171e9fdddb0b26706be73c55350884337b985be
19,654
py
Python
test/test_get_metadata_functions.py
bjoernmeier/sqlalchemy_exasol
d63e70096f227db5eb68e631e98777e0e68ac178
[ "BSD-2-Clause" ]
26
2015-10-13T21:43:07.000Z
2021-09-22T16:58:02.000Z
test/test_get_metadata_functions.py
bjoernmeier/sqlalchemy_exasol
d63e70096f227db5eb68e631e98777e0e68ac178
[ "BSD-2-Clause" ]
65
2015-01-22T10:05:18.000Z
2022-01-18T12:11:53.000Z
test/test_get_metadata_functions.py
bjoernmeier/sqlalchemy_exasol
d63e70096f227db5eb68e631e98777e0e68ac178
[ "BSD-2-Clause" ]
23
2015-01-21T09:27:05.000Z
2022-01-18T11:40:18.000Z
# -*- coding: UTF-8 -*- import pytest from sqlalchemy import create_engine from sqlalchemy.engine.url import URL from sqlalchemy.sql.sqltypes import INTEGER, VARCHAR from sqlalchemy.testing import fixtures, config from sqlalchemy_exasol.base import EXADialect TEST_GET_METADATA_FUNCTIONS_SCHEMA = "test_get_metadata_f...
59.738602
177
0.666735
c1724e3fcc8f514b866413548912dc98400bc49f
2,790
py
Python
entrepreneurial_property/migrations/0015_auto_20180905_0646.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
1
2019-05-26T22:24:01.000Z
2019-05-26T22:24:01.000Z
entrepreneurial_property/migrations/0015_auto_20180905_0646.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
6
2019-01-22T14:53:43.000Z
2020-09-22T16:20:28.000Z
entrepreneurial_property/migrations/0015_auto_20180905_0646.py
CzechInvest/ciis
c6102598f564a717472e5e31e7eb894bba2c8104
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-09-05 06:46 from django.db import migrations, models
37.702703
98
0.603584
c173709b35ae18fdb3b908927a799df5ea385960
1,353
py
Python
backend/app/__init__.py
mushcatshiro/flask-template
27a1558e831ef2c14622c320a5e6fd6991b94bcf
[ "MIT" ]
null
null
null
backend/app/__init__.py
mushcatshiro/flask-template
27a1558e831ef2c14622c320a5e6fd6991b94bcf
[ "MIT" ]
null
null
null
backend/app/__init__.py
mushcatshiro/flask-template
27a1558e831ef2c14622c320a5e6fd6991b94bcf
[ "MIT" ]
null
null
null
from flask import Flask, jsonify from flask_marshmallow import Marshmallow from flask_sqlalchemy import SQLAlchemy from flask_track_usage import TrackUsage from backend.config import config, Config from celery import Celery db = SQLAlchemy() ma = Marshmallow() celery = Celery( __name__, broker=Config.CELERY_B...
24.160714
63
0.702882
c1743e483c31f6d867722bc46b72b5ece150db84
1,561
py
Python
pineboolib/fllegacy/tests/test_settings.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
null
null
null
pineboolib/fllegacy/tests/test_settings.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
1
2017-10-30T22:00:48.000Z
2017-11-11T19:34:32.000Z
pineboolib/fllegacy/tests/test_settings.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
1
2017-10-30T20:16:38.000Z
2017-10-30T20:16:38.000Z
"""Test_flutil module.""" import unittest from pineboolib.fllegacy import flsettings
43.361111
85
0.675208
c174bae4ae48802d0df61029ad46df721459ecfb
1,109
py
Python
setup.py
nat236919/pyhighstakes
dbe7dcf81febd361b6b0084788d9f176e1008ee7
[ "MIT" ]
null
null
null
setup.py
nat236919/pyhighstakes
dbe7dcf81febd361b6b0084788d9f176e1008ee7
[ "MIT" ]
2
2020-01-29T02:03:55.000Z
2020-01-29T02:05:17.000Z
setup.py
nat236919/pyhighstakes
dbe7dcf81febd361b6b0084788d9f176e1008ee7
[ "MIT" ]
1
2020-01-28T14:14:45.000Z
2020-01-28T14:14:45.000Z
""" FILE: setup.py DESCRIPTION: Set up PyPI as a Python Library DATE: 27-Jan-2020 """ import setuptools with open('README.md') as f: README = f.read() setuptools.setup( author='Nuttaphat Arunoprayoch', author_email='nat236919@gmail.com', name='pyhighstakes', license='MIT', description='PyHigh...
30.805556
74
0.660956
c1764afdac11e0d9a60b3e199a98aa40f4ecf8a4
894
py
Python
ecommerce/accounts/migrations/0028_auto_20220127_2039.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/accounts/migrations/0028_auto_20220127_2039.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/accounts/migrations/0028_auto_20220127_2039.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.10 on 2022-01-27 17:09 from django.db import migrations, models
31.928571
135
0.621924
c1771dbe757ef772ec9d522997c65b45e5bb1019
14,552
py
Python
kernel/rnn.py
diwu1990/UnaryComputingSim
1a4746b7bcc2fcde5144a8b42fc94e6f5cd82b8e
[ "MIT" ]
1
2020-06-24T09:54:06.000Z
2020-06-24T09:54:06.000Z
kernel/rnn.py
RuokaiYin/UnarySim
343ff9abf356a63d526b1df8eb946ad528690a27
[ "MIT" ]
null
null
null
kernel/rnn.py
RuokaiYin/UnarySim
343ff9abf356a63d526b1df8eb946ad528690a27
[ "MIT" ]
null
null
null
import math import torch import copy from torch import Tensor import torch.nn as nn import torch.nn.functional as F from UnarySim.kernel import FSUAdd from UnarySim.kernel import FSUMul from UnarySim.kernel import FSULinear from torch.cuda.amp import autocast from typing import List, Tuple, Optional, overload, Union fr...
42.17971
169
0.604178
c1786868690cfefd20cc751e90ea8b47ab54a55a
323
py
Python
app/__init__.py
uwase-diane/NewsAPI
49acb4e22f623818b5ee63f7b545f698953e2387
[ "Unlicense" ]
null
null
null
app/__init__.py
uwase-diane/NewsAPI
49acb4e22f623818b5ee63f7b545f698953e2387
[ "Unlicense" ]
null
null
null
app/__init__.py
uwase-diane/NewsAPI
49acb4e22f623818b5ee63f7b545f698953e2387
[ "Unlicense" ]
null
null
null
from flask import Flask from .config import DevConfig from flask_bootstrap import Bootstrap app = Flask(__name__,instance_relative_config= True) app.config.from_object(DevConfig) app.config.from_pyfile('config.py') # Initializing Flask Extensions bootstrap = Bootstrap(app) from app import views from app import er...
20.1875
52
0.817337
c17afdf4c22417a1397dcd7e27fcec9b2af92696
3,505
py
Python
bentosign/bentosign_object.py
BentoSign/python_bentosign
f1f00b1c84af353c3945e1ed09c8460ee836d1be
[ "MIT" ]
null
null
null
bentosign/bentosign_object.py
BentoSign/python_bentosign
f1f00b1c84af353c3945e1ed09c8460ee836d1be
[ "MIT" ]
null
null
null
bentosign/bentosign_object.py
BentoSign/python_bentosign
f1f00b1c84af353c3945e1ed09c8460ee836d1be
[ "MIT" ]
null
null
null
import json import requests from .bentosign_errors import BentoSignError # An BentoSignObject is a dictionary where ``object.key=value`` is a shortcut for ``object[key]=value``
31.294643
103
0.607133
c17b28f08989d2fa2b75ad5040f70d15e7571b14
2,842
py
Python
OpenThermML/backup.py
wwlorey/open-thermostat-software
a0521b0d3b65fe9f2bd23f5059971d3a8d773e54
[ "MIT" ]
1
2020-12-14T02:44:10.000Z
2020-12-14T02:44:10.000Z
OpenThermML/backup.py
wwlorey/open-thermostat-software
a0521b0d3b65fe9f2bd23f5059971d3a8d773e54
[ "MIT" ]
null
null
null
OpenThermML/backup.py
wwlorey/open-thermostat-software
a0521b0d3b65fe9f2bd23f5059971d3a8d773e54
[ "MIT" ]
1
2020-12-12T20:24:43.000Z
2020-12-12T20:24:43.000Z
predictions = [ [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0...
149.578947
247
0.364532
c17bdf43121bff61f06c96f3d74874b39434a71f
267
py
Python
app1/callbacks.py
DrGFreeman/multi-dash
377788c4404a9f7b59ba0dbfb697b4db074fdbd4
[ "Unlicense" ]
null
null
null
app1/callbacks.py
DrGFreeman/multi-dash
377788c4404a9f7b59ba0dbfb697b4db074fdbd4
[ "Unlicense" ]
null
null
null
app1/callbacks.py
DrGFreeman/multi-dash
377788c4404a9f7b59ba0dbfb697b4db074fdbd4
[ "Unlicense" ]
null
null
null
from datetime import datetime from dash.dependencies import Input, Output from app1 import app
26.7
51
0.700375
c17c5ab864e3da04534b047a476281e0e31c2fdb
108
py
Python
main.py
Aayushpatil77/Gryphon_Web_Crawler
ee52fe2b353cc040e662056d7888ea420c1a49fa
[ "MIT" ]
null
null
null
main.py
Aayushpatil77/Gryphon_Web_Crawler
ee52fe2b353cc040e662056d7888ea420c1a49fa
[ "MIT" ]
24
2021-11-12T20:33:04.000Z
2021-11-24T14:34:31.000Z
main.py
Aayushpatil77/Gryphon_Web_Crawler
ee52fe2b353cc040e662056d7888ea420c1a49fa
[ "MIT" ]
5
2021-11-10T18:04:23.000Z
2022-02-22T04:38:16.000Z
from django.http import HttpResponse test()
18
50
0.731481
c17d194b756e7fa590502bf845583e715519cb01
460
py
Python
app/career/serializers/weekly_business.py
TIHLDE/Lepton
60ec0793381f1c1b222f305586e8c2d4345fb566
[ "MIT" ]
7
2021-03-04T18:49:12.000Z
2021-03-08T18:25:51.000Z
app/career/serializers/weekly_business.py
TIHLDE/Lepton
60ec0793381f1c1b222f305586e8c2d4345fb566
[ "MIT" ]
251
2021-03-04T19:19:14.000Z
2022-03-31T14:47:53.000Z
app/career/serializers/weekly_business.py
tihlde/Lepton
5cab3522c421b76373a5c25f49267cfaef7b826a
[ "MIT" ]
3
2021-10-05T19:03:04.000Z
2022-02-25T13:32:09.000Z
from app.career.models import WeeklyBusiness from app.common.serializers import BaseModelSerializer
23
54
0.523913
c17d66b90ac3507c48eac335d807b7e734538bbd
3,401
py
Python
emovix-twitter-detectlang.py
eMOVIX/emovix-twitter-detectlang
d4ad5a9845b9b98fec70490c81481390a24a9af1
[ "Apache-2.0" ]
null
null
null
emovix-twitter-detectlang.py
eMOVIX/emovix-twitter-detectlang
d4ad5a9845b9b98fec70490c81481390a24a9af1
[ "Apache-2.0" ]
null
null
null
emovix-twitter-detectlang.py
eMOVIX/emovix-twitter-detectlang
d4ad5a9845b9b98fec70490c81481390a24a9af1
[ "Apache-2.0" ]
null
null
null
__author__ = 'Jordi Vilaplana' from pymongo import MongoClient import detectlanguage import json import logging import time logging.basicConfig( filename='emovix_twitter_detectlang.log', level=logging.WARNING, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%d-%m-%y %H:%M') # C...
36.569892
128
0.527786
c17d75beb39c3d0157047d3515d20edb8d4e90a4
1,178
py
Python
src/azure-cli/azure/cli/command_modules/storage/operations/queue.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
3,287
2016-07-26T17:34:33.000Z
2022-03-31T09:52:13.000Z
src/azure-cli/azure/cli/command_modules/storage/operations/queue.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
19,206
2016-07-26T07:04:42.000Z
2022-03-31T23:57:09.000Z
src/azure-cli/azure/cli/command_modules/storage/operations/queue.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
2,575
2016-07-26T06:44:40.000Z
2022-03-31T22:56:06.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.071429
94
0.60017
c17dc41b3022979fe55065b808584b80b7482833
8,793
py
Python
tests/getl/blocks/load/test_load_entrypoint.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
8
2020-06-10T09:00:17.000Z
2021-06-07T18:02:19.000Z
tests/getl/blocks/load/test_load_entrypoint.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
5
2020-07-03T10:39:25.000Z
2021-08-30T14:52:47.000Z
tests/getl/blocks/load/test_load_entrypoint.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
1
2020-05-28T07:53:48.000Z
2020-05-28T07:53:48.000Z
"""Unit test for GETL load method.""" from os import environ from unittest.mock import Mock from pyspark.sql import types as T from getl.blocks.load.entrypoint import ( batch_csv, batch_delta, batch_json, batch_xml, resolve, ) # TODO: Need to adapt to different xml version depending on spark vers...
28.548701
85
0.60787
c17f0a03fa3b18a4b271f3edc88481c6be2c623b
745
py
Python
arrays/sorting/selection_sort.py
AyoubEssrifi/Data-Structures-Algorithms
d903bccba46cd8f2a35728f47cdfc836d5dfdf1a
[ "MIT" ]
null
null
null
arrays/sorting/selection_sort.py
AyoubEssrifi/Data-Structures-Algorithms
d903bccba46cd8f2a35728f47cdfc836d5dfdf1a
[ "MIT" ]
null
null
null
arrays/sorting/selection_sort.py
AyoubEssrifi/Data-Structures-Algorithms
d903bccba46cd8f2a35728f47cdfc836d5dfdf1a
[ "MIT" ]
null
null
null
import numpy as np import math def selection_sort(arr): """ Performs a selection sort algorithm - Time complexity: O(n) Args: arr (list): List to sort Returns: (list): Sorted list """ i = 0 while i < len(arr): j = i min = math.inf while j < len(...
20.135135
44
0.507383
c17f1a7c03757d8295e2618ab5615740ad1e5ea5
6,819
py
Python
dumb_cup/dc.py
Ladvien/ezsp32_upython_env
5bdec9e1d2eabb117941a5ce0e74570757e87740
[ "MIT" ]
null
null
null
dumb_cup/dc.py
Ladvien/ezsp32_upython_env
5bdec9e1d2eabb117941a5ce0e74570757e87740
[ "MIT" ]
null
null
null
dumb_cup/dc.py
Ladvien/ezsp32_upython_env
5bdec9e1d2eabb117941a5ce0e74570757e87740
[ "MIT" ]
1
2020-05-27T13:18:31.000Z
2020-05-27T13:18:31.000Z
import time from machine import I2C, Pin, Timer from dumb_cup.v53l0x import VL53L0X from dumb_cup.adxl345 import ADXL345 from dumb_cup.spirit_level import SpiritLevel ############### # Constants ############### OZ_FULL = const(16) INIT_SAMPES = const(50) NUM_SAMPLES = const(15) RND_PLCS ...
25.349442
90
0.592022
c17f98ab5a946504638ab093524b788e3de36f90
2,042
py
Python
nsh/asteroids/views.py
kowabunga314/NSH
01dfc56d88e9b3b96e5bed61be24dd1e5080abbc
[ "MIT" ]
null
null
null
nsh/asteroids/views.py
kowabunga314/NSH
01dfc56d88e9b3b96e5bed61be24dd1e5080abbc
[ "MIT" ]
1
2021-08-31T23:10:01.000Z
2021-08-31T23:10:01.000Z
nsh/asteroids/views.py
kowabunga314/NSH
01dfc56d88e9b3b96e5bed61be24dd1e5080abbc
[ "MIT" ]
null
null
null
from requests import api from rest_framework.decorators import api_view from rest_framework.response import Response from asteroids.api import AsteroidApi from asteroids.serializers import ApproachSerializer from clients.neows import NeoWs from django.shortcuts import render
31.415385
92
0.760039
c1814a99cc81b34203c9bfed3dc84d50f6f96bd3
1,313
py
Python
shell_test.py
zignig/cqparts_bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
10
2018-09-18T08:09:02.000Z
2022-03-18T06:24:22.000Z
shell_test.py
zignig/cqparts-bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
1
2018-08-09T01:57:32.000Z
2018-08-09T01:57:32.000Z
shell_test.py
zignig/cqparts-bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
1
2018-12-07T20:14:04.000Z
2018-12-07T20:14:04.000Z
""" Shell test # 2019 Simon Kirkby obeygiantrobot@gmail.com """ import cadquery as cq import cqparts from cqparts.params import PositiveFloat, Int from cqparts.display import render_props from cqparts.constraint import Mate from cqparts.utils.geometry import CoordSystem from cqparts.search import register # base s...
29.840909
81
0.611577
c181b677ca0d130f4ba82570047a76315f9bae27
1,266
py
Python
test/should-work/client.py
dragazo/PyBlox
52e895090708810f4af18da746b90278e4ee82f7
[ "Apache-2.0" ]
2
2021-08-16T14:25:11.000Z
2021-12-11T19:38:15.000Z
test/should-work/client.py
dragazo/PyBlox
52e895090708810f4af18da746b90278e4ee82f7
[ "Apache-2.0" ]
null
null
null
test/should-work/client.py
dragazo/PyBlox
52e895090708810f4af18da746b90278e4ee82f7
[ "Apache-2.0" ]
1
2021-09-24T15:32:49.000Z
2021-09-24T15:32:49.000Z
#!/usr/bin/env python import netsblox editor = netsblox.Editor() phoneiot = editor.phone_iot public_roles = editor.public_roles assert type(phoneiot.get_sensors()) == list assert public_roles.get_public_role_id() == editor.get_public_role_id() assert phoneiot.get_color(12, 34, 54, 34) == 571220534 assert phoneiot.g...
38.363636
95
0.636651
c183f4d6f31778737b79a4e9462050d2a9596ead
872
py
Python
carla_env/__init__.py
janwithb/Carla-Gym-Wrapper
f1ea9fe89427c5a654f5561f214a5fba139b2568
[ "Apache-2.0" ]
6
2021-04-15T09:22:44.000Z
2022-02-15T01:07:23.000Z
carla_env/__init__.py
janwithb/Carla-Gym-Wrapper
f1ea9fe89427c5a654f5561f214a5fba139b2568
[ "Apache-2.0" ]
2
2021-08-23T02:47:40.000Z
2022-01-17T02:20:47.000Z
carla_env/__init__.py
janwithb/Carla-Gym-Wrapper
f1ea9fe89427c5a654f5561f214a5fba139b2568
[ "Apache-2.0" ]
2
2021-07-12T06:32:37.000Z
2021-11-24T14:43:13.000Z
from gym.envs.registration import register register( id='CarlaEnv-state-v1', entry_point='carla_env.carla_env:CarlaEnv', max_episode_steps=500, kwargs={ 'render': True, 'carla_port': 2000, 'changing_weather_speed': 0.1, 'frame_skip': 1, 'observations_type': 'stat...
23.567568
47
0.579128
c185bdc700271a99b44e838020cbe70d16ab1c2c
5,039
py
Python
utilities/fragtop.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
9
2018-10-19T08:47:42.000Z
2020-08-19T01:58:27.000Z
utilities/fragtop.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
1
2019-11-07T11:24:43.000Z
2019-11-07T11:52:51.000Z
utilities/fragtop.py
ondrejholecek/fortimonitor
79b0377f97b084f04396a323a84bb3e8a93d6f2d
[ "BSD-3-Clause" ]
3
2020-04-24T03:51:15.000Z
2021-12-19T16:08:24.000Z
#!/usr/bin/env python2.7 import os # to be able to import our modules from the directory above os.sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from parsers.CurrentTime import ParserCurrentTime from parsers.Fragmentation import ParserFragmentation from parsers.ProcessCPU import ParserP...
39.992063
150
0.653106
c1870c6bef4d20bdc8064b24eaabb94b95f23f4a
161
py
Python
app/admin.py
kirezibana/awards
7f674430e84e84e5fd39106f3af7c42ee2f6b8ac
[ "Unlicense" ]
null
null
null
app/admin.py
kirezibana/awards
7f674430e84e84e5fd39106f3af7c42ee2f6b8ac
[ "Unlicense" ]
null
null
null
app/admin.py
kirezibana/awards
7f674430e84e84e5fd39106f3af7c42ee2f6b8ac
[ "Unlicense" ]
null
null
null
from django.contrib import admin from .models import Project, Profile, Rate admin.site.register(Project) admin.site.register(Profile) admin.site.register(Rate)
23
42
0.813665
c187d975a2a0abd411797bab631c97d079d986a0
3,250
py
Python
SCOTUS/SVE/infer_sco50case.py
JeffT13/LegalUISRNN
a5efdba091746a0e04da9faccdad74b3b4cec74f
[ "Apache-2.0" ]
1
2020-11-17T02:33:28.000Z
2020-11-17T02:33:28.000Z
SCOTUS/SVE/infer_sco50case.py
JeffT13/LegalUISRNN
a5efdba091746a0e04da9faccdad74b3b4cec74f
[ "Apache-2.0" ]
null
null
null
SCOTUS/SVE/infer_sco50case.py
JeffT13/LegalUISRNN
a5efdba091746a0e04da9faccdad74b3b4cec74f
[ "Apache-2.0" ]
null
null
null
''' SCOTUS d-vec UISRNN inference''' import sys sys.path.append("./LegalUISRNN") import numpy as np import os, csv import torch import uisrnn case_path = '/scratch/jt2565/sco50/sco50wav_proc_case/' total_cases = (len(os.listdir(case_path))/2) train_cases = (total_cases//10)*9 print("# of training:", train_cases) prin...
28.761062
74
0.626462
c1883470a70c6ef2fb0240606651d61fa3e8412b
4,143
py
Python
evaluation/evaluation_template.py
MaviccPRP/Anonymizer
3d75ed3e97e260b6ded7e188eb3d58d749844e36
[ "MIT" ]
null
null
null
evaluation/evaluation_template.py
MaviccPRP/Anonymizer
3d75ed3e97e260b6ded7e188eb3d58d749844e36
[ "MIT" ]
2
2019-06-14T19:55:39.000Z
2019-06-14T20:16:11.000Z
evaluation/evaluation_template.py
MaviccPRP/Anonymizer
3d75ed3e97e260b6ded7e188eb3d58d749844e36
[ "MIT" ]
1
2020-03-13T14:32:31.000Z
2020-03-13T14:32:31.000Z
# Evaluation script template for de-identification tool https://github.com/dieterich-lab/Anonymize from sklearn.metrics import classification_report from sklearn.metrics import confusion_matrix from sklearn.metrics import roc_curve, auc from sklearn.metrics import matthews_corrcoef from sklearn.metrics import fb...
30.688889
99
0.668839
c1893382322e8407dce4b1d084d353bc65babc08
880
py
Python
tests/utils.py
CrisKP/gyst
c3a86564bcf278d2b6a177b20840d50f71dd63b1
[ "MIT" ]
12
2017-09-10T01:43:42.000Z
2020-09-20T01:17:20.000Z
functional_tests/utils.py
HelloMelanieC/FiveUp
ab97d311f163b09146fe330e4360d8e75d769f95
[ "MIT" ]
22
2016-12-26T21:46:10.000Z
2022-02-10T08:01:52.000Z
tests/utils.py
CrisKP/gyst
c3a86564bcf278d2b6a177b20840d50f71dd63b1
[ "MIT" ]
4
2017-08-24T16:01:37.000Z
2019-02-14T23:50:17.000Z
from contextlib import contextmanager from django.contrib.staticfiles.testing import StaticLiveServerTestCase from selenium.webdriver.firefox.webdriver import WebDriver from selenium.webdriver.support.expected_conditions import staleness_of from selenium.webdriver.support.ui import WebDriverWait
32.592593
74
0.761364
c18b1f9e7702a88aea07ec02c274a084bf5ac802
411
py
Python
dictsort.py
robertbyers1111/python
e87558f2432f0a4a86f17c47c6b19e1345625b83
[ "MIT" ]
null
null
null
dictsort.py
robertbyers1111/python
e87558f2432f0a4a86f17c47c6b19e1345625b83
[ "MIT" ]
null
null
null
dictsort.py
robertbyers1111/python
e87558f2432f0a4a86f17c47c6b19e1345625b83
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Iterate through a list of dictionaries, sorted by a field from the dictionaries response = [ {'a':1, 'b':2222, 'LastModified':1320, 'c':33}, {'a':11, 'LastModified':1229, 'b':222, 'c':3}, {'LastModified':1400,'a':111, 'b':2, 'c':3333}, {'a':1111, 'b':22, 'LastModified':180, 'c':333} ] respon...
25.6875
81
0.627737
c18c4a2ad72355e5338af8e668969552070e526d
617
py
Python
setup.py
urbangrammarai/graphics
69bf5976a11c783fc8a27f59ef57efefbbee6aa8
[ "BSD-3-Clause" ]
1
2021-05-30T07:41:23.000Z
2021-05-30T07:41:23.000Z
setup.py
urbangrammarai/graphics
69bf5976a11c783fc8a27f59ef57efefbbee6aa8
[ "BSD-3-Clause" ]
2
2021-02-19T09:00:03.000Z
2021-10-16T18:59:05.000Z
setup.py
urbangrammarai/graphics
69bf5976a11c783fc8a27f59ef57efefbbee6aa8
[ "BSD-3-Clause" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf8") as fh: long_description = fh.read() setuptools.setup( name="urbangrammar_graphics", version="1.2.3", author="Martin Fleischmann", author_email="martin@martinfleischmann.net", python_requires=">=3.6", install_requires=["matplotl...
32.473684
70
0.719611
c18d7f1c745b04cc0b216ca0de4f5614635c60a7
701
py
Python
Supervised Learning/Tilecoder.py
panchyo0/Reinforcement-Learning
b823d7900f020db154d0a61f3683e0cce29e3797
[ "MIT" ]
null
null
null
Supervised Learning/Tilecoder.py
panchyo0/Reinforcement-Learning
b823d7900f020db154d0a61f3683e0cce29e3797
[ "MIT" ]
null
null
null
Supervised Learning/Tilecoder.py
panchyo0/Reinforcement-Learning
b823d7900f020db154d0a61f3683e0cce29e3797
[ "MIT" ]
null
null
null
numTilings = 8 #printTileCoderIndices(0.1, 0.1) #printTileCoderIndices(4.0, 2.0) #printTileCoderIndices(5.99, 5.99) #printTileCoderIndices(4.0, 2.1)
26.961538
77
0.584879
c18ed66e182091851798f0c36bc54305d626d02e
868
py
Python
diary/models.py
yheiblog/base_diary
01c2914019d6581c67071c7823a677e3c3e70950
[ "MIT" ]
null
null
null
diary/models.py
yheiblog/base_diary
01c2914019d6581c67071c7823a677e3c3e70950
[ "MIT" ]
16
2021-06-07T13:23:10.000Z
2022-02-05T23:18:43.000Z
diary/models.py
yheiblog/base_diary
01c2914019d6581c67071c7823a677e3c3e70950
[ "MIT" ]
1
2021-08-18T23:40:21.000Z
2021-08-18T23:40:21.000Z
from django.db import models from django.db.models.deletion import CASCADE from django.contrib.auth.models import AbstractUser # Create your models here.
27.125
54
0.756912
c18f09b8f5369b2d98ea558dbc26227c15367da2
131
py
Python
2344.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
6
2021-04-13T00:33:43.000Z
2022-02-10T10:23:59.000Z
2344.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
null
null
null
2344.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
3
2021-03-23T18:42:24.000Z
2022-02-10T10:24:07.000Z
n = int(input()) if n == 0: print('E') elif n <= 35: print('D') elif n <= 60: print('C') elif n <= 85: print('B') else: print('A')
18.714286
24
0.519084
c18f1ada21fe45a22c35f613a302bd0bd45fb736
871
py
Python
tests/test_Sk.py
sambit-giri/DMemu
1827832efdab2dfcb735035b6956854e34d17202
[ "MIT" ]
3
2021-08-23T14:50:38.000Z
2022-02-25T11:06:05.000Z
tests/test_Sk.py
sambit-giri/BCMemu
3b2afb1fb3be09f98a7730e7a5ff18baafd8660e
[ "MIT" ]
null
null
null
tests/test_Sk.py
sambit-giri/BCMemu
3b2afb1fb3be09f98a7730e7a5ff18baafd8660e
[ "MIT" ]
null
null
null
import numpy as np import pickle from BCMemu import * ### Cosmology Ob, Om = 0.0463, 0.2793 bcmdict = {'log10Mc': 13.32, 'mu' : 0.93, 'thej' : 4.235, 'gamma' : 2.25, 'delta' : 6.40, 'eta' : 0.15, 'deta' : 0.14, } k_eval = 10**np.linspace(-1,1.08,50) def test_BCM_7p...
31.107143
182
0.619977
c18ff04ae0b27c497f2250200b6017afaacf3341
271
py
Python
main/forms.py
levertco/stactistics
a62ba5e43b6ffb22f8b22d974aa4942d133bf7d1
[ "MIT" ]
null
null
null
main/forms.py
levertco/stactistics
a62ba5e43b6ffb22f8b22d974aa4942d133bf7d1
[ "MIT" ]
3
2021-03-19T03:26:02.000Z
2021-06-10T21:55:35.000Z
main/forms.py
levertco/stactistics
a62ba5e43b6ffb22f8b22d974aa4942d133bf7d1
[ "MIT" ]
null
null
null
from django import forms from .models import Review,Website
22.583333
36
0.671587
c1911e4814c500c6d717e67d052d56f8aad603a6
1,693
py
Python
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
null
null
null
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
null
null
null
controle_financeiro/autenticacao/forms.py
douglaspands/controle-financeiro
1f8f44dca6132b730e92ccf62447dede4119b28e
[ "MIT" ]
1
2021-06-15T22:14:22.000Z
2021-06-15T22:14:22.000Z
import re from django import forms from django.utils.translation import gettext_lazy as _ from usuarios.models import Usuario
26.873016
84
0.604843
c191569683e9fab2fbe1691bb0fddbc792e5b431
1,586
py
Python
main-bme280-thread.py
obviateio/micropython-esp32
9b10e1fd96a0ef80ddd6ced79d0ab1a941da4870
[ "MIT" ]
null
null
null
main-bme280-thread.py
obviateio/micropython-esp32
9b10e1fd96a0ef80ddd6ced79d0ab1a941da4870
[ "MIT" ]
null
null
null
main-bme280-thread.py
obviateio/micropython-esp32
9b10e1fd96a0ef80ddd6ced79d0ab1a941da4870
[ "MIT" ]
null
null
null
# Originally from: # https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/blob/master/MicroPython_BUILD/components/micropython/esp32/modules_examples/bme280.py import machine, _thread, time import micropython, gc import bme280 i2c=machine.I2C(scl=machine.Pin(22),sda=machine.Pin(21),speed=400000) bme=bme280.BME280(i2...
36.883721
153
0.594578
c191d5b851aa17930934dfcfc06e7f9a47195619
1,644
py
Python
preprocess_package/test_pdf2crops.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
1
2021-08-02T01:51:35.000Z
2021-08-02T01:51:35.000Z
preprocess_package/test_pdf2crops.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
1
2021-11-03T08:58:30.000Z
2021-11-03T08:58:30.000Z
preprocess_package/test_pdf2crops.py
Hupengyu/Paddle_learning
0ac1e2ad32e41ac87bbb19e4535a4bc253ca9b0f
[ "Apache-2.0" ]
null
null
null
from preprocess_package.pdf2pages import pdf2pages from preprocess_package.cut_images import cut_images_save import os import cv2 pwd = os.getcwd() image_index = 1 if __name__ == '__main__': imgs_file_path = './pictures/' failed_imgs_file_path = './pictures/failed_images' single_img_file_path = './pictur...
33.55102
113
0.631995
c19246725b954f2f43ba88f9e9c66c4d573ae9a3
1,238
py
Python
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
bot.py
oumike/rachmaninoff-bot
b8a44468a70020342b483f4de8980ca3859c806e
[ "Apache-2.0" ]
null
null
null
# bot.py import os from discord.ext import commands from dotenv import load_dotenv from rachmaninoff_bot import RachmaninoffBot from cogs.general_cog import GeneralCog from cogs.weather_cog import WeatherCog from cogs.traffic_cog import TrafficCog from cogs.covid_cog import CovidCog from cogs.stock_cog import StockCog ...
32.578947
80
0.710824
c192bf77330b23f5e695e3815dc856ee252d5e96
5,305
py
Python
geeker/mylog/log_config.py
4379711/functools_lyl
61b6cdbf304d3eacbffcbf85a27ecf72d3d275d8
[ "MIT" ]
1
2019-07-23T09:35:35.000Z
2019-07-23T09:35:35.000Z
geeker/mylog/log_config.py
4379711/functools_lyl
61b6cdbf304d3eacbffcbf85a27ecf72d3d275d8
[ "MIT" ]
null
null
null
geeker/mylog/log_config.py
4379711/functools_lyl
61b6cdbf304d3eacbffcbf85a27ecf72d3d275d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import logging.handlers from logging.handlers import TimedRotatingFileHandler import gzip import os import time from geeker.functions import Singleton class LogBase(Singleton): def __filter_message(self, handler, log_level): """ , ...
37.359155
114
0.532328
c1957a877ea69974035f42a8db38ff5234fcd531
13,245
py
Python
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
null
null
null
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
2
2022-01-23T20:27:16.000Z
2022-01-30T15:51:35.000Z
src/Ikarus/strategies/StrategyBase.py
bilkosem/Icarus
16d66600f1764a43dccd1b19153b906452cdef5a
[ "Apache-2.0" ]
1
2022-01-23T22:16:07.000Z
2022-01-23T22:16:07.000Z
import json import logging from binance.helpers import round_step_size from sqlalchemy import false from ..enums import * import bson import abc import itertools from ..objects import EState, EOrderType, ECommand, EnhancedJSONEncoder from ..utils import safe_sum, round_step_downward, truncate, safe_multiply, safe_subst...
44.003322
174
0.649
c198314254036559bc40906b82bd6eec9b2cf13a
4,150
py
Python
ohos/ndk/archive_ndk.py
ShadowCCY/build
5c88ebad21093ef816087c9160bda8e5e9035008
[ "Apache-2.0" ]
null
null
null
ohos/ndk/archive_ndk.py
ShadowCCY/build
5c88ebad21093ef816087c9160bda8e5e9035008
[ "Apache-2.0" ]
14
2021-09-07T08:39:43.000Z
2021-09-17T08:50:23.000Z
ohos/ndk/archive_ndk.py
ShadowCCY/build
5c88ebad21093ef816087c9160bda8e5e9035008
[ "Apache-2.0" ]
1
2021-09-07T06:19:48.000Z
2021-09-07T06:19:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2021 Huawei Device Co., 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 # #...
39.150943
78
0.604819
c1983d2c626217431ca80bafdd345d71048cc22d
587
py
Python
lib/utils/utils.py
PaperCodeSubmission/ICML2020-697
00f7732c236b9c6234e76a47dfebe5de314d5c01
[ "MIT" ]
12
2019-09-26T01:55:25.000Z
2020-01-21T06:53:04.000Z
lib/utils/utils.py
PaperCodeSubmission/ICML2020-697
00f7732c236b9c6234e76a47dfebe5de314d5c01
[ "MIT" ]
2
2021-08-09T03:53:26.000Z
2021-08-18T10:16:25.000Z
lib/utils/utils.py
PaperCodeSubmission/ICML2020-697
00f7732c236b9c6234e76a47dfebe5de314d5c01
[ "MIT" ]
4
2021-06-09T06:02:15.000Z
2021-10-05T13:33:15.000Z
import numpy as np """ some really utils functions """ def get_score_label_array_from_dict(score_dict, label_dict): """ :param score_dict: defaultdict(list) :param label_dict: defaultdict(list) :return: np array with score and label """ assert len(score_dict) == len(label_dict), "The score_di...
27.952381
90
0.678024
c19b573ce46ab404e883f0fd6d1da1c94abd41bc
512
py
Python
algorithms/Python/implementation/bon appetit.py
Kumbong/hackerrank
36125f3a17c3e0f1fa889495e8ad33b0aa424552
[ "MIT" ]
8
2019-09-19T19:38:09.000Z
2022-02-14T13:59:37.000Z
algorithms/Python/implementation/bon appetit.py
Kumbong/hacker-rank
36125f3a17c3e0f1fa889495e8ad33b0aa424552
[ "MIT" ]
null
null
null
algorithms/Python/implementation/bon appetit.py
Kumbong/hacker-rank
36125f3a17c3e0f1fa889495e8ad33b0aa424552
[ "MIT" ]
7
2019-09-23T13:17:27.000Z
2022-01-27T18:02:16.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the bonAppetit function below. if __name__ == '__main__': nk = input().rstrip().split() n = int(nk[0]) k = int(nk[1]) bill = list(map(int, input().rstrip().split())) b = int(input().strip()) bonAppetit(bil...
16
51
0.556641
c19b66b11e8920b6ef16169525e7de5c6d536e86
3,675
py
Python
tests/test_expr_where.py
alexkyllo/kusto-tool
c7689dfa363a1c8d40532cc7929570154fe82307
[ "MIT" ]
null
null
null
tests/test_expr_where.py
alexkyllo/kusto-tool
c7689dfa363a1c8d40532cc7929570154fe82307
[ "MIT" ]
null
null
null
tests/test_expr_where.py
alexkyllo/kusto-tool
c7689dfa363a1c8d40532cc7929570154fe82307
[ "MIT" ]
null
null
null
from kusto_tool import expression as exp from pytest import fixture from .fake_database import FakeDatabase def test_where_eq_str(): actual = str(exp.Where(exp.Infix(exp.OP.EQ, exp.Column("foo", str), "a"))) expected = "| where foo == 'a'" assert actual == expected def test_where_eq_int(): actual...
26.824818
78
0.593741
c19ba5d245f195cdb6eb4605b71e37758440a2a2
4,991
py
Python
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
twitchtv/datadog_checks/twitchtv/twitchtv.py
johananlai/integrations-extras
e3cf6f17f9f2ebf4f997b67aa5b757be90d31ec4
[ "BSD-3-Clause" ]
null
null
null
import requests import simplejson as json from six.moves.urllib.parse import urljoin from datadog_checks.checks import AgentCheck
36.97037
95
0.598077
c19c3f1d1283d225db3d7d7ddef5d1c3d3346d48
393
py
Python
plugins/amazon/__init__.py
nim4/pantea
29bee731157b1a643bcfeed37133c7575bc9340f
[ "MIT" ]
3
2016-09-26T06:47:57.000Z
2017-10-03T17:05:16.000Z
plugins/amazon/__init__.py
nim4/pantea
29bee731157b1a643bcfeed37133c7575bc9340f
[ "MIT" ]
null
null
null
plugins/amazon/__init__.py
nim4/pantea
29bee731157b1a643bcfeed37133c7575bc9340f
[ "MIT" ]
null
null
null
from lib.util import get_info_by_url, insert_to_db __host = ".amazon." __sess = "x-main="
28.071429
76
0.613232
c19e5fe5435a4cf4b75d4a2f8a46480d0ba1db04
2,842
py
Python
tests/test_config.py
drdavella/tox-conda
8cb9d2f4fed1f7b3e851a2460bbd7756fad7d19c
[ "MIT" ]
2
2018-12-05T18:37:46.000Z
2018-12-29T02:41:23.000Z
tests/test_config.py
drdavella/tox-conda
8cb9d2f4fed1f7b3e851a2460bbd7756fad7d19c
[ "MIT" ]
7
2018-11-03T14:55:23.000Z
2019-03-27T20:26:07.000Z
tests/test_config.py
drdavella/tox-conda
8cb9d2f4fed1f7b3e851a2460bbd7756fad7d19c
[ "MIT" ]
1
2018-12-28T16:00:19.000Z
2018-12-28T16:00:19.000Z
import pytest
26.811321
78
0.574243
c19ec7fa6563be347aaab52b5eafbb49e3825d49
20,933
py
Python
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
1
2021-07-01T13:00:30.000Z
2021-07-01T13:00:30.000Z
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
2
2020-12-31T14:33:02.000Z
2020-12-31T14:38:26.000Z
site/_build/jupyter_execute/notebooks/book/19_training_and_deploying_at_scale.py
rpi-techfundamentals/spring2020_website
b4b208ce7555f5574054ff5ff5d79b9e0e825499
[ "MIT" ]
3
2021-01-05T20:26:15.000Z
2021-02-15T14:54:44.000Z
**Chapter 19 Training and Deploying TensorFlow Models at Scale** _This notebook contains all the sample code in chapter 19._ <table align="left"> <td> <a target="_blank" href="https://colab.research.google.com/github/ageron/handson-ml2/blob/master/19_training_and_deploying_at_scale.ipynb"><img src="https://www...
37.514337
655
0.716572
c19f8556fffeaba80b71b3e0bca33cbbc4243288
2,291
py
Python
test/test_testrun_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
1
2019-09-10T17:55:53.000Z
2019-09-10T17:55:53.000Z
test/test_testrun_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
null
null
null
test/test_testrun_api.py
rcbops/qtest-swagger-client
28220aa95d878922ca4b35c325706932adabea4e
[ "Apache-2.0" ]
2
2019-02-12T23:15:10.000Z
2022-03-11T20:08:28.000Z
# coding: utf-8 """ qTest Manager API Version 8.6 - 9.1 qTest Manager API Version 8.6 - 9.1 OpenAPI spec version: 8.6 - 9.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest impo...
18.328
69
0.526408
c1a047f305103c02462a6d290c41963621ea947a
3,731
py
Python
scripts/evaluations/create_pruned_corpus.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
25
2018-03-03T11:57:57.000Z
2022-01-16T21:19:54.000Z
scripts/evaluations/create_pruned_corpus.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
385
2018-02-21T16:52:06.000Z
2022-02-17T07:44:56.000Z
scripts/evaluations/create_pruned_corpus.py
mikiec84/delphi
2e517f21e76e334c7dfb14325d25879ddf26d10d
[ "Apache-2.0" ]
19
2018-03-20T01:08:11.000Z
2021-09-29T01:04:49.000Z
""" Prune the preassembled corpus json file """ import json import sys from tqdm import tqdm if __name__ == "__main__": with open(sys.argv[1], "r") as f: sts = json.load(f) filtered_sts = [] hasWMKey = lambda x: x.get("WM") is not None hasNonZeroWMGroundingList = lambda x: len(x["WM"]) != 0...
42.397727
125
0.564996
c1a0698046ea5c15fed9403075b6dadc726dcd15
1,562
py
Python
ax/exceptions/data_provider.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
ax/exceptions/data_provider.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
ax/exceptions/data_provider.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Iterable
33.234043
86
0.65493
c1a329ce0d56913c2a3d217d2eff794cd4ce53ce
156
py
Python
zfit/core/__init__.py
olantwin/zfit
dae89fd95fc2158c0e7530664d8ca999db4802c5
[ "BSD-3-Clause" ]
1
2022-01-15T13:38:12.000Z
2022-01-15T13:38:12.000Z
zfit/core/__init__.py
kailiu77/zfit
00eed81fb34e0eb2e4bae5ddc9ebf38699e107ca
[ "BSD-3-Clause" ]
null
null
null
zfit/core/__init__.py
kailiu77/zfit
00eed81fb34e0eb2e4bae5ddc9ebf38699e107ca
[ "BSD-3-Clause" ]
null
null
null
from . import (baseobject, basepdf, basemodel, basefunc, data, interfaces, integration, math, loss, sample, limits, operations, parameter, )
52
99
0.692308
c1a365128f0c36be71cba9ee9f85b9c58b5f1207
29,113
py
Python
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
null
null
null
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
null
null
null
groupdocs_comparison_cloud/models/settings.py
groupdocs-comparison-cloud/groupdocs-comparison-cloud-python
f970b22fae7a791d07b756c2d418217fd368c289
[ "MIT" ]
1
2021-02-02T18:41:48.000Z
2021-02-02T18:41:48.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="Settings.py"> # Copyright (c) 2003-2021 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of th...
36.574121
624
0.645828
c1a36f901ada2ecff8f592caff250af3e4962c6a
6,713
py
Python
gui/backend/tests/unit/test_Sqleditor.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
11
2022-03-02T11:04:16.000Z
2022-03-29T05:28:23.000Z
gui/backend/tests/unit/test_Sqleditor.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
1
2022-03-25T15:12:16.000Z
2022-03-31T18:59:22.000Z
gui/backend/tests/unit/test_Sqleditor.py
mike-lischke/mysql-shell-plugins
d7d15591dd8e70f7f5ef8ea579e0797eff30fa0a
[ "Apache-2.0", "CC0-1.0" ]
3
2022-03-24T11:32:12.000Z
2022-03-25T20:40:14.000Z
# Copyright (c) 2020, 2022, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, # as published by the Free Software Foundation. # # This program is also distributed with certain software (including # ...
39.958333
120
0.714584
c1a48eb1c0e309496f0be9a970ec65fc62f63f3c
981
py
Python
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
889
2016-08-27T01:37:35.000Z
2018-10-07T19:47:56.000Z
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
218
2021-05-25T01:46:15.000Z
2022-02-11T01:08:52.000Z
tests/losses/test_lamb_gan_loss.py
limberc/HyperGAN
b074e74abf0ed9b81bd52084706e3707a47e0fe2
[ "MIT" ]
145
2016-09-27T06:56:24.000Z
2018-09-25T16:09:28.000Z
import tensorflow as tf import hyperchamber as hc import hypergan as hg import numpy as np from hypergan.losses.lamb_gan_loss import LambGanLoss from hypergan.ops import TensorflowOps from unittest.mock import MagicMock from tests.mocks import mock_gan loss_config = {'test': True, 'reduce':'reduce_mean', 'labels': [0...
32.7
119
0.654434
c1a639306302ef557c6752a6a01fb763ef49ebd4
4,846
py
Python
examples/poly_model/poly_dimension_adaptive.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
1
2020-06-26T10:37:56.000Z
2020-06-26T10:37:56.000Z
examples/poly_model/poly_dimension_adaptive.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
null
null
null
examples/poly_model/poly_dimension_adaptive.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
2
2020-04-20T12:50:11.000Z
2020-04-24T10:35:13.000Z
import chaospy as cp import numpy as np import easyvvuq as uq import os # import fabsim3_cmd_api as fab import matplotlib.pyplot as plt plt.close('all') # author: Wouter Edeling __license__ = "LGPL" HOME = os.path.abspath(os.path.dirname(__file__)) # Set up a fresh campaign called "sc" my_campaign = uq.Campaign(nam...
35.372263
88
0.639909
c1a725906e88f1b2357a9d34b387186061ce645e
280
py
Python
tests/data/test_regression_file_path_fixture/tests-inputs/case/test_fixture.py
sdinot/pytest-executable
45e5b2df8e81213973c6d8d70ec6e0fb0c4b8db6
[ "Apache-2.0" ]
8
2020-04-22T06:26:58.000Z
2022-01-22T05:14:45.000Z
tests/data/test_regression_file_path_fixture/tests-inputs/case/test_fixture.py
sdinot/pytest-executable
45e5b2df8e81213973c6d8d70ec6e0fb0c4b8db6
[ "Apache-2.0" ]
6
2020-08-08T19:56:15.000Z
2021-11-11T09:05:43.000Z
tests/data/test_regression_file_path_fixture/tests-inputs/case/test_fixture.py
sdinot/pytest-executable
45e5b2df8e81213973c6d8d70ec6e0fb0c4b8db6
[ "Apache-2.0" ]
2
2020-04-23T06:37:42.000Z
2020-04-29T21:59:25.000Z
from fnmatch import fnmatch
28
72
0.732143
c1a87ca84277a3dd76ad935ca0c45a7628e65f14
3,996
py
Python
preprocess_data/preprocess_data.py
s-diaco/DRL4Trading
8f6042d7ce0381dc1fc809558e529a512c4c4e01
[ "MIT" ]
4
2021-07-05T12:18:34.000Z
2022-02-07T19:41:45.000Z
preprocess_data/preprocess_data.py
s-diaco/DRL4Trading
8f6042d7ce0381dc1fc809558e529a512c4c4e01
[ "MIT" ]
5
2021-04-04T09:44:59.000Z
2021-06-26T09:38:53.000Z
preprocess_data/preprocess_data.py
s-diaco/DRL4Trading
8f6042d7ce0381dc1fc809558e529a512c4c4e01
[ "MIT" ]
2
2021-07-05T12:18:34.000Z
2021-08-04T08:01:11.000Z
"""preprocess data before using it""" import logging import pandas as pd from preprocess_data import csv_data, custom_col_base, custom_columns def col_from_cls(client_class, data): ''' Create "series" from a given function and dataframe Parameters: client_func (callable): fu...
35.362832
78
0.651401
c1ab4ab02c0597d4e6630967716526281f28d594
17,930
py
Python
constants.py
datarobot-community/soccer_match_prediction
80aea8e7e14d772178909656496e05122ebff0a8
[ "Apache-2.0" ]
2
2020-06-16T14:34:13.000Z
2020-07-15T18:13:41.000Z
constants.py
datarobot-community/soccer_match_prediction
80aea8e7e14d772178909656496e05122ebff0a8
[ "Apache-2.0" ]
null
null
null
constants.py
datarobot-community/soccer_match_prediction
80aea8e7e14d772178909656496e05122ebff0a8
[ "Apache-2.0" ]
2
2021-07-23T06:40:49.000Z
2022-02-11T17:52:26.000Z
LEAGUES = [ 'Scottish Premiership', 'Italy Serie A', 'French Ligue 1', 'Spanish Segunda Division', 'Australian A-League', 'Italy Serie B', 'Dutch Eredivisie', 'Mexican Primera Division Torneo Clausura', 'Russian Premier Liga', 'Spanish Primera Division', 'English League One',...
26.562963
47
0.56068
c1ae4861c8eb6db57eabd223609f74170cb8381d
474
py
Python
string-list.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
string-list.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
string-list.py
leaen/Codeeval-solutions
fa83cb4fba3e56f79c0a6b00361c18cd3092c3f0
[ "MIT" ]
null
null
null
import sys import itertools if __name__ == '__main__': main()
24.947368
87
0.525316
c1ae52c695e3f0b50fa41e0e39c71498b5115833
403
py
Python
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
src/chitty/web/meta.py
zgoda/chitty-server
8257ab39a9a6c0ae70d6e39e595925905c444850
[ "BSD-3-Clause" ]
null
null
null
import os from falcon import Request, Response
25.1875
67
0.550868
c1aeb6b648385e5dd2afb1d49db366eb4bba7f45
1,295
py
Python
tests/compiler_2.py
louisyoungx/zpycli
87deb188d1fd7782c60912edf1eeedb719b649a6
[ "MIT" ]
null
null
null
tests/compiler_2.py
louisyoungx/zpycli
87deb188d1fd7782c60912edf1eeedb719b649a6
[ "MIT" ]
null
null
null
tests/compiler_2.py
louisyoungx/zpycli
87deb188d1fd7782c60912edf1eeedb719b649a6
[ "MIT" ]
null
null
null
import sys if ".." not in sys.path: sys.path.insert(0,"..") import zpylib.ast.lexer as lex from zpylib.grammar import * # Test it out data = """ # TEST Apple = 3 + 4 * 10 + -20 *2 def Print(what): if True: go(what + 10) : x = 'yoo what's up' '''what fuck''' {:.2f}.format(name) """ Compiler(data)...
24.433962
79
0.550579
c1aeb773120f6e8b25cc706f47a68a22cbbc7e59
989
py
Python
setup.py
wasilak/yamllint-junit
0861484dc38220f772a4563974eebeae71ee6fb2
[ "MIT" ]
4
2017-11-28T22:04:01.000Z
2021-08-18T16:09:02.000Z
setup.py
wasilak/yamllint-junit
0861484dc38220f772a4563974eebeae71ee6fb2
[ "MIT" ]
5
2020-08-03T15:44:28.000Z
2021-11-05T10:47:51.000Z
setup.py
wasilak/yamllint-junit
0861484dc38220f772a4563974eebeae71ee6fb2
[ "MIT" ]
1
2020-08-28T15:05:51.000Z
2020-08-28T15:05:51.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from yamllint_junit_bootstrap import bootstrap version = bootstrap.__version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='yamllint-junit', packages=['yamllint_junit_bootstrap'], version=ve...
25.358974
89
0.65723
c1aeb94e32529b20eed44693cf5cf6e8db8c7b4a
199
py
Python
pyot/utils/tft/routing.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
1
2022-02-04T03:12:09.000Z
2022-02-04T03:12:09.000Z
pyot/utils/tft/routing.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
null
null
null
pyot/utils/tft/routing.py
FabrizioCoder/Pyot
2ca5114e97fa9785b030c60892838f3605664c21
[ "MIT" ]
null
null
null
from pyot.models.tft import base def platform_to_region(platform: str) -> str: '''Return the region correspondent to a given platform''' return base.PyotRouting._platform2regions[platform]
28.428571
61
0.763819
c1af19eb5f9a129022353a3807101d1e028dd303
242
py
Python
problems/biclique/solver/main.py
Benezivas/algobattle-problems
b00b85413893bd1618001a4cdaa0dd7442f4e481
[ "MIT" ]
null
null
null
problems/biclique/solver/main.py
Benezivas/algobattle-problems
b00b85413893bd1618001a4cdaa0dd7442f4e481
[ "MIT" ]
null
null
null
problems/biclique/solver/main.py
Benezivas/algobattle-problems
b00b85413893bd1618001a4cdaa0dd7442f4e481
[ "MIT" ]
null
null
null
"""Simple dummy solver for the BiClique problem, outputting a static solution.""" with open("output", "w") as output: output.write("s set1 1\n") output.write("s set2 2\n") output.write("s set2 3\n") output.write("s set2 4\n")
34.571429
81
0.652893
c1affedd9b9ad2746552cd2f0960a1b9537db67c
6,151
py
Python
pyalfred/server/database.py
tingiskhan/pyalfred
c9fac2672af92906bcc4294e14844e904423c2e6
[ "MIT" ]
null
null
null
pyalfred/server/database.py
tingiskhan/pyalfred
c9fac2672af92906bcc4294e14844e904423c2e6
[ "MIT" ]
null
null
null
pyalfred/server/database.py
tingiskhan/pyalfred
c9fac2672af92906bcc4294e14844e904423c2e6
[ "MIT" ]
null
null
null
from typing import Union, List, Type from sqlalchemy.orm import scoped_session, sessionmaker from logging import Logger from starlette.endpoints import HTTPEndpoint from starlette.requests import Request from starlette.responses import JSONResponse from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR, HTTP_200_O...
34.172222
113
0.634368
c1b0a13dd61f692f08ec2294ecce99fedfad9c35
4,628
py
Python
hdv/redfish/http_handler.py
opnfv/cirv-hdv
2d145d4f1fd231def2c9d52a71267031b938c0ac
[ "Apache-2.0" ]
null
null
null
hdv/redfish/http_handler.py
opnfv/cirv-hdv
2d145d4f1fd231def2c9d52a71267031b938c0ac
[ "Apache-2.0" ]
null
null
null
hdv/redfish/http_handler.py
opnfv/cirv-hdv
2d145d4f1fd231def2c9d52a71267031b938c0ac
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2020 China Mobile Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is ...
35.6
79
0.590104
c1b2c130162bc0b7988dfc259c05389cac64465c
3,006
py
Python
appserver/migrations/versions/a6ca510027a5_seed_annotationstyle_and_domainurlsmap_.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
8
2022-01-28T08:43:07.000Z
2022-03-23T11:18:10.000Z
appserver/migrations/versions/a6ca510027a5_seed_annotationstyle_and_domainurlsmap_.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
23
2022-02-14T15:25:00.000Z
2022-03-28T15:30:45.000Z
appserver/migrations/versions/a6ca510027a5_seed_annotationstyle_and_domainurlsmap_.py
SBRG/lifelike
a7b715f38b389a585c10e6d0d067345937455c13
[ "MIT" ]
5
2022-01-28T15:45:44.000Z
2022-03-14T11:36:49.000Z
"""Seed AnnotationStyle and DomainURLsMap tables Revision ID: a6ca510027a5 Revises: fb1654973fbd Create Date: 2020-08-19 23:27:53.132930 """ import json from alembic import context from alembic import op import sqlalchemy as sa from sqlalchemy.orm.session import Session from sqlalchemy.sql import table, column from...
28.093458
76
0.641717
c1b48598f2501dd038d05132ab6a96a3689973e1
18,205
py
Python
trace.py
rawoul/apitrace
e9fcdcf14a99f5cb4729abb7bbf7817d7aa59d18
[ "MIT" ]
1
2017-07-25T20:22:08.000Z
2017-07-25T20:22:08.000Z
trace.py
rawoul/apitrace
e9fcdcf14a99f5cb4729abb7bbf7817d7aa59d18
[ "MIT" ]
null
null
null
trace.py
rawoul/apitrace
e9fcdcf14a99f5cb4729abb7bbf7817d7aa59d18
[ "MIT" ]
null
null
null
########################################################################## # # Copyright 2008-2010 VMware, Inc. # All Rights Reserved. # # 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 withou...
35.418288
166
0.572535
c1b62424e13951dc15b2f1d8f1ebe1749e5c2d11
3,334
py
Python
prepare_dataset.py
TheElderMindseeker/pytorch-domain-adaptation
70ca862708bd6e59b5eee5d7c8bd808ef3457dc8
[ "MIT" ]
null
null
null
prepare_dataset.py
TheElderMindseeker/pytorch-domain-adaptation
70ca862708bd6e59b5eee5d7c8bd808ef3457dc8
[ "MIT" ]
null
null
null
prepare_dataset.py
TheElderMindseeker/pytorch-domain-adaptation
70ca862708bd6e59b5eee5d7c8bd808ef3457dc8
[ "MIT" ]
null
null
null
# pylint: disable=invalid-name,missing-docstring import os import subprocess import urllib.parse import uuid source_path = '/home/daniil/Downloads/UCF-Crime/Videos' result_path = '/home/daniil/Documents/Projects/University/Thesis/frames2' if not os.path.exists(result_path): os.mkdir(result_path) normal_frames =...
38.767442
79
0.596581
c1b820b4d47994172a5b13534ae44af8e3d7d6e0
228
py
Python
10.变态跳台阶/10.变态跳台阶(DP).py
shenweichen/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
483
2020-01-05T12:58:59.000Z
2022-03-19T05:44:00.000Z
10.变态跳台阶/10.变态跳台阶(DP).py
moshilangzi/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
1
2020-01-20T08:47:15.000Z
2020-01-27T13:24:15.000Z
10.变态跳台阶/10.变态跳台阶(DP).py
moshilangzi/coding_interviews
990cc54a62b8fa277b743289e8d6f6e96a95225d
[ "MIT" ]
122
2020-01-05T14:10:04.000Z
2022-03-19T05:24:42.000Z
# -*- coding:utf-8 -*-
25.333333
35
0.491228
c1b891e7d61a9e3e64538ab34a986ee96aa12260
2,866
py
Python
corehq/ex-submodules/phonelog/migrations/0006_auto__chg_field_devicereportentry_app_version__chg_field_devicereporte.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/ex-submodules/phonelog/migrations/0006_auto__chg_field_devicereportentry_app_version__chg_field_devicereporte.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/ex-submodules/phonelog/migrations/0006_auto__chg_field_devicereportentry_app_version__chg_field_devicereporte.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
54.075472
140
0.60328
c1b8b6e21410622622aa640ba1d082574eb412ec
8,201
py
Python
lib/providers/theaudiodb.py
DaVukovic/script.artwork.beef
cb6e54cd2b3bccc82660ad277c13618746f36e08
[ "MIT" ]
40
2017-10-29T22:43:43.000Z
2022-03-12T05:59:05.000Z
lib/providers/theaudiodb.py
supmagc/script.artwork.beef
afd76b290d13b2e9ea00d7f9772961353f4640b8
[ "MIT" ]
47
2017-01-31T21:28:20.000Z
2021-03-23T06:53:51.000Z
lib/providers/theaudiodb.py
supmagc/script.artwork.beef
afd76b290d13b2e9ea00d7f9772961353f4640b8
[ "MIT" ]
31
2017-10-16T05:28:53.000Z
2022-02-24T19:50:24.000Z
import xbmc from lib.libs import mediatypes from lib.libs.addonsettings import settings from lib.libs.pykodi import json, UTF8JSONDecoder from lib.libs.utils import SortedDisplay from lib.providers.base import AbstractProvider, AbstractImageProvider, cache, build_key_error def _get_imagesize(arttype): if arttype...
44.32973
118
0.631386
c1b9ee59be99f775c2f552e13c66ff23db053369
1,025
py
Python
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
220
2016-01-22T21:19:02.000Z
2022-01-25T04:33:55.000Z
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-01-23T14:34:39.000Z
2016-09-19T19:58:37.000Z
osp/test/corpus/models/document/test_format_counts.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-02-03T13:47:48.000Z
2019-03-27T13:09:05.000Z
import pytest from osp.corpus.models import Document from osp.corpus.models import Document_Format pytestmark = pytest.mark.usefixtures('db') def test_format_counts(): """ Document.format_counts() """ d1 = Document.create(path='1') d2 = Document.create(path='2') d3 = Document.create(pat...
24.404762
62
0.650732
c1ba667085462dd4a1725b7706f902a599a1b8e8
3,696
py
Python
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
polyaxon/dockerizer/builders/jobs.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from constants.jobs import JobLifeCycle from db.models.repos import Repo from dockerizer.builders.base import BaseDockerBuilder def build_job(project, job, job_builder, image_tag=None): """Build necessary code for a job to r...
34.222222
91
0.588474
c1bb44a49533620993e5fb48385ae2720ad43392
2,786
py
Python
code/attr2vec_func.py
xuliang09/JAPE
961a0cf9d10abf81cc24a71ac33274b42bc2fbc1
[ "MIT" ]
91
2018-03-13T03:56:15.000Z
2022-03-26T13:47:22.000Z
code/attr2vec_func.py
codeinging/JAPE
b4b3617a7c61df5f7093921553dd3b0a7497506d
[ "MIT" ]
10
2018-04-02T15:47:08.000Z
2022-03-01T09:28:10.000Z
code/attr2vec_func.py
codeinging/JAPE
b4b3617a7c61df5f7093921553dd3b0a7497506d
[ "MIT" ]
23
2018-05-30T07:18:38.000Z
2021-08-15T06:13:29.000Z
import math import collections import random import numpy as np import tensorflow as tf import itertools import time def sum_rows(x): """Returns a vector summing up each row of the matrix x.""" cols = tf.shape(x)[1] ones_shape = tf.stack([cols, 1]) ones = tf.ones(ones_shape, x.dtype) return tf.res...
35.265823
119
0.645011
c1bb5795f5cf4b1f0f656850cbb021970ffc7c82
5,218
py
Python
src/installer/src/tortuga/db/componentDbApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/installer/src/tortuga/db/componentDbApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/installer/src/tortuga/db/componentDbApi.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa 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...
31.624242
76
0.590264
c1bd3526605a6b1d3a41d10be0e5bafa8ed8f574
312
py
Python
python_data_structures/stack.py
chandlerbrtek/python-data-structures
7fb8a4c4879fb148e607a627a98d0111e5a942a3
[ "MIT" ]
null
null
null
python_data_structures/stack.py
chandlerbrtek/python-data-structures
7fb8a4c4879fb148e607a627a98d0111e5a942a3
[ "MIT" ]
null
null
null
python_data_structures/stack.py
chandlerbrtek/python-data-structures
7fb8a4c4879fb148e607a627a98d0111e5a942a3
[ "MIT" ]
null
null
null
"""Main module."""
20.8
39
0.532051
c1c255b1f03413b3ba902b4ef59492fdc92fec91
2,667
py
Python
network/embedding.py
cherry979988/OpenNRE
740e6abd3b8b30625cb88a643a2acb65d5e923dd
[ "MIT" ]
1
2019-10-08T02:53:28.000Z
2019-10-08T02:53:28.000Z
network/embedding.py
flyounger/OpenNRE
1f30a0b3109e9b3c3284fa72a1562f81cdb70fdf
[ "MIT" ]
null
null
null
network/embedding.py
flyounger/OpenNRE
1f30a0b3109e9b3c3284fa72a1562f81cdb70fdf
[ "MIT" ]
1
2020-07-22T08:39:09.000Z
2020-07-22T08:39:09.000Z
import tensorflow as tf import numpy as np FLAGS = tf.app.flags.FLAGS
56.744681
179
0.656543
c1c3368fb90c0a4c1c5f3d9670d74ff773fbc850
768
py
Python
experiments/mapModel.py
PerceptronV/denoising-text-autoencoders
8ef59e2531a4fc7531002cffd3546f27eadb8ec9
[ "Apache-2.0" ]
null
null
null
experiments/mapModel.py
PerceptronV/denoising-text-autoencoders
8ef59e2531a4fc7531002cffd3546f27eadb8ec9
[ "Apache-2.0" ]
null
null
null
experiments/mapModel.py
PerceptronV/denoising-text-autoencoders
8ef59e2531a4fc7531002cffd3546f27eadb8ec9
[ "Apache-2.0" ]
1
2022-03-04T05:57:52.000Z
2022-03-04T05:57:52.000Z
import torch.nn as nn
30.72
76
0.518229
c1c4c548cee3344d6a0288f1062e34cef764d45e
1,166
py
Python
clafiyy/new/sum.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
clafiyy/new/sum.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
clafiyy/new/sum.py
cy486/DomRead
852289588b902dedba5fd3f2a57b39d2a2b027ba
[ "Apache-2.0" ]
null
null
null
# @Time : 2019/5/22 11:26 # @Author : shakespere # @FileName: sum.py import pandas as pd submission_1 = pd.read_csv("./data/merge_0.8550913438849271_predictions.csv") submission_2 = pd.read_csv("./data/merge_0.8551243481873769_predictions.csv") submission_3 = pd.read_csv("./data/merge_0.8571411176454415_pre...
58.3
302
0.747856
c1c554676d59b1bbb3e5980c3277d57ab792911e
4,216
py
Python
lexos/receivers/matrix_receiver.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
107
2015-03-19T09:10:31.000Z
2022-01-29T01:33:48.000Z
lexos/receivers/matrix_receiver.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
864
2015-05-19T19:27:00.000Z
2022-01-28T18:48:52.000Z
lexos/receivers/matrix_receiver.py
WheatonCS/Lexos
994be4e403053ebbef18e5758a100af616195706
[ "MIT" ]
25
2015-06-02T23:03:06.000Z
2020-08-06T04:27:49.000Z
"""This is the receiver for the matrix model.""" from typing import NamedTuple, Optional, Dict from lexos.receivers.base_receiver import BaseReceiver DocumentLabelMap = Dict[int, str]
31.699248
79
0.671252
c1c5a2754fda11c89b443f7e02da5e10a6ab2f74
3,791
py
Python
src/train_process/build_cnn_model/Train_model.py
rober5566a/NTUT_109-2_MVA_Final-Project
d18494760750efae1ff0810dcaa281a03d0827c0
[ "MIT" ]
null
null
null
src/train_process/build_cnn_model/Train_model.py
rober5566a/NTUT_109-2_MVA_Final-Project
d18494760750efae1ff0810dcaa281a03d0827c0
[ "MIT" ]
null
null
null
src/train_process/build_cnn_model/Train_model.py
rober5566a/NTUT_109-2_MVA_Final-Project
d18494760750efae1ff0810dcaa281a03d0827c0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from Model.CNN_1 import CNN
37.534653
118
0.613558
c1c7615a1093ffe7d7e900aa21ffc5ae797e37b3
374
py
Python
tests/mocks.py
lgatellier/webhook-router
7e68e469b54c1f605d03e10744774cb9f1f094f3
[ "Apache-2.0" ]
1
2022-03-06T19:01:23.000Z
2022-03-06T19:01:23.000Z
tests/mocks.py
lgatellier/webhook-router
7e68e469b54c1f605d03e10744774cb9f1f094f3
[ "Apache-2.0" ]
8
2021-11-18T22:49:49.000Z
2022-03-30T09:29:43.000Z
tests/mocks.py
lgatellier/webhook-gateway
975b7d380b17fd3b534d9c1eca51b6dd2cc44d00
[ "Apache-2.0" ]
null
null
null
from fastapi import Request
22
60
0.604278
c1c7c2c4ce7d208b7884ed9d436d4aa0dfa66353
2,821
py
Python
src/csi_rover_vision/nodes/depth_image_processor.py
BhargavRE25/Rover-Machine-Learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
3
2020-09-21T17:15:08.000Z
2020-09-25T01:08:19.000Z
src/csi_rover_vision/nodes/depth_image_processor.py
columbia-university-robotics/vehicle-machine-learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
null
null
null
src/csi_rover_vision/nodes/depth_image_processor.py
columbia-university-robotics/vehicle-machine-learning
af48811ceb08acae1dda76473d294f362178dcbe
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Header from geometry_msgs.msg import PoseStamped from nav_msgs.msg import Odometry from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError import cv2 import sys import numpy as np import message_filters import tf if __name__ == "__m...
30.333333
97
0.651542