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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f5d18b826b9c188006c34d7c3b409c3f3d1575a | 288 | py | Python | Platzi_Python2022/Platzi_/for.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | 9 | 2021-08-28T01:16:31.000Z | 2022-02-23T15:07:48.000Z | Platzi_Python2022/Platzi_/for.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | null | null | null | Platzi_Python2022/Platzi_/for.py | Kennethguerra3/Python_Ejercicio_2022 | cf1297cf1e1585eba699e32c02993818c3d9ecbf | [
"MIT"
] | 3 | 2021-07-21T20:03:16.000Z | 2021-07-23T15:04:19.000Z | # print(1)
# print(2)
# print(3)
# print(4)
# print(5)
# contador = 1
# print(contador)
# while contador < 1000:
# contador += 1
# print(contador)
# a = list(range(1000))
# print(a)
# for contador in range(1, 1001):
# print(contador)
for i in range(10):
print(11 * i)
| 13.714286 | 33 | 0.583333 |
8f60c2158a21875e4f1814a10f74c2d6e01951da | 410 | py | Python | src/leetcode/1997/sol_0.py | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | 1 | 2021-07-11T03:20:10.000Z | 2021-07-11T03:20:10.000Z | src/leetcode/1997/sol_0.py | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | 39 | 2021-07-10T05:21:09.000Z | 2021-12-15T06:10:12.000Z | src/leetcode/1997/sol_0.py | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | null | null | null | import typing
import functools
| 19.52381 | 42 | 0.495122 |
8f61f1856f16642c78fb503a5e3b2cbe7612d63a | 1,278 | py | Python | setup.py | EasyPost/ssh_certificate_parser | 836d7df5c676659604a1d76f528aad5d35321803 | [
"0BSD"
] | 3 | 2017-10-09T13:50:16.000Z | 2021-08-16T21:04:16.000Z | setup.py | EasyPost/ssh_certificate_parser | 836d7df5c676659604a1d76f528aad5d35321803 | [
"0BSD"
] | null | null | null | setup.py | EasyPost/ssh_certificate_parser | 836d7df5c676659604a1d76f528aad5d35321803 | [
"0BSD"
] | 2 | 2017-07-20T16:30:44.000Z | 2021-08-09T05:52:53.000Z | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="ssh_certificate_parser",
version="1.3.3",
author="James Brown",
author_email="jbrown@easypost.com",
url="https://github.com/easypost/ssh_certificate_parser",
license="ISC",
packages=find_packages(exclude=['test... | 33.631579 | 79 | 0.634585 |
8f639c82ba6fc3b596994756f2ed202a124ee6d6 | 472 | py | Python | scripts/audio/replace.py | Y4SSIN/video-editor | 879e53ee689e0085140d10f3c7b35a4048ca233b | [
"MIT"
] | 8 | 2019-01-21T13:14:33.000Z | 2020-10-02T14:40:21.000Z | scripts/audio/replace.py | Y4SSIN/video-editor | 879e53ee689e0085140d10f3c7b35a4048ca233b | [
"MIT"
] | 3 | 2021-06-08T21:30:11.000Z | 2022-03-12T00:28:37.000Z | scripts/audio/replace.py | Y4SSIN/video-editor | 879e53ee689e0085140d10f3c7b35a4048ca233b | [
"MIT"
] | 2 | 2020-12-01T16:59:04.000Z | 2021-02-01T03:31:21.000Z | '''
This function gives you the possibility to
replace the video audio.
'''
import os
| 31.466667 | 152 | 0.722458 |
8f64fd79f6f4e0f16023d3c4112423cb2c29995a | 405 | py | Python | sims-g2/pos-adv/code/plot2D.py | ammarhakim/ammar-simjournal | 85b64ddc9556f01a4fab37977864a7d878eac637 | [
"MIT",
"Unlicense"
] | 1 | 2019-12-19T16:21:13.000Z | 2019-12-19T16:21:13.000Z | sims-g2/pos-adv/code/plot2D.py | ammarhakim/ammar-simjournal | 85b64ddc9556f01a4fab37977864a7d878eac637 | [
"MIT",
"Unlicense"
] | null | null | null | sims-g2/pos-adv/code/plot2D.py | ammarhakim/ammar-simjournal | 85b64ddc9556f01a4fab37977864a7d878eac637 | [
"MIT",
"Unlicense"
] | 2 | 2020-01-08T06:23:33.000Z | 2020-01-08T07:06:50.000Z | from pylab import *
X = linspace(-1, 1, 50)
XX, YY = meshgrid(X, X)
mu1 = 3.0/5.0
f1 = calcf(XX, YY, mu1)
pcolormesh(XX, YY, transpose(f1))
axis('image')
colorbar()
print("Max: %g. Min = %g" % (f1.max(), f1.min()))
show()
| 19.285714 | 65 | 0.540741 |
8f651734783eec2d577591561e02a2c193bbe807 | 4,312 | py | Python | cfn_custom_resources_backed_by_step_functions/cfn_custom_resources_backed_by_step_functions_stack.py | bitesizedserverless/cfn-custom-resources-backed-by-step-functions | 45c424a9d6f491700e1729ef88c5fee36beb5e44 | [
"MIT"
] | null | null | null | cfn_custom_resources_backed_by_step_functions/cfn_custom_resources_backed_by_step_functions_stack.py | bitesizedserverless/cfn-custom-resources-backed-by-step-functions | 45c424a9d6f491700e1729ef88c5fee36beb5e44 | [
"MIT"
] | null | null | null | cfn_custom_resources_backed_by_step_functions/cfn_custom_resources_backed_by_step_functions_stack.py | bitesizedserverless/cfn-custom-resources-backed-by-step-functions | 45c424a9d6f491700e1729ef88c5fee36beb5e44 | [
"MIT"
] | null | null | null | """Module for the main CfnCustomResourcesBackedByStepFunctions Stack."""
# Standard library imports
import time
# Related third party imports
# -
# Local application/library specific imports
from aws_cdk import (
core as cdk,
aws_lambda as lambda_,
aws_stepfunctions as sfn,
aws_stepfunctions_tasks as... | 35.344262 | 90 | 0.606679 |
8f6591658c09575e183359943f78305804567803 | 590 | py | Python | config/asgi.py | Jairoguo/django-sonsuz | 118698bc3353a67c5af968c34431619d6e1211af | [
"MIT"
] | null | null | null | config/asgi.py | Jairoguo/django-sonsuz | 118698bc3353a67c5af968c34431619d6e1211af | [
"MIT"
] | null | null | null | config/asgi.py | Jairoguo/django-sonsuz | 118698bc3353a67c5af968c34431619d6e1211af | [
"MIT"
] | null | null | null | import os
import sys
import django
from channels.routing import get_default_application
# from django.core.asgi import get_asgi_application
# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sonsuz.config.settings.local')
# application = get_asgi_application()
# application
app_path = os.path.abspath(os.path.join(
... | 29.5 | 81 | 0.791525 |
8f660202be6af86137fb1acec31901c87e526857 | 1,113 | py | Python | generators/app/templates/config.py | andybp85/generator-flask-api-dotenv | 1da51618c07ee6989000fbcefc26a0df2ae426ea | [
"MIT"
] | 1 | 2016-10-10T02:35:03.000Z | 2016-10-10T02:35:03.000Z | generators/app/templates/config.py | andybp85/generator-flask-api-dotenv | 1da51618c07ee6989000fbcefc26a0df2ae426ea | [
"MIT"
] | null | null | null | generators/app/templates/config.py | andybp85/generator-flask-api-dotenv | 1da51618c07ee6989000fbcefc26a0df2ae426ea | [
"MIT"
] | null | null | null | import os, tempfile
from flask.ext.dotenv import DotEnv
basedir = os.path.abspath(os.path.dirname(__file__))
<% if (databaseMapper === 'sqlalchemy') { -%>
if self.__name__ != 'TestingConfig':
prefix = self.__name__.replace('Config', '').upper()
env.alias(maps={
'<%= a... | 21.823529 | 89 | 0.634322 |
8f6693ddb85d3bb717698451379c61708255fc9d | 9,726 | py | Python | Pokemon/pokemon_item.py | V-FEXrt/Pokemon-Spoof-Plus | d397d680742496b7f64b401511da7eb57f63c973 | [
"MIT"
] | 2 | 2017-05-04T20:24:19.000Z | 2017-05-04T20:58:07.000Z | Pokemon/pokemon_item.py | V-FEXrt/Pokemon-Spoof-Plus | d397d680742496b7f64b401511da7eb57f63c973 | [
"MIT"
] | null | null | null | Pokemon/pokemon_item.py | V-FEXrt/Pokemon-Spoof-Plus | d397d680742496b7f64b401511da7eb57f63c973 | [
"MIT"
] | null | null | null | import random
Item.NOTHING = Item('Nothing', 0x00)
Item.MASTER_BALL = Item("Master Ball", 0x01)
Item.ULTRA_BALL = Item("Ultra Ball", 0x02)
Item.BRIGHT_POWDER = Item("BrightPowder", 0x03)
Item.GREAT_BALL = Item("Great Ball", 0x04)
Item.POKE_BALL = Item("Poke Ball", 0x05)
Item.BICYCLE = Item("Bicycle", 0x06)
Item.MOON_... | 36.980989 | 118 | 0.699054 |
8f66a163bf1e5878e2474fa634b0488a8aa1b816 | 3,589 | py | Python | train.py | Markus-Goetz/block-prediction | 3f89d17d449f023d60fae5ec6bd712cb6cc8cb50 | [
"MIT"
] | 5 | 2018-11-28T22:18:29.000Z | 2021-08-16T22:09:35.000Z | train.py | Markus-Goetz/block-prediction | 3f89d17d449f023d60fae5ec6bd712cb6cc8cb50 | [
"MIT"
] | null | null | null | train.py | Markus-Goetz/block-prediction | 3f89d17d449f023d60fae5ec6bd712cb6cc8cb50 | [
"MIT"
] | 5 | 2018-12-03T08:40:46.000Z | 2022-02-21T14:21:52.000Z | #!/usr/bin/env python
import argparse
import pickle
import h5py
from keras import optimizers
from keras.callbacks import ModelCheckpoint
from keras.layers import Activation, add, BatchNormalization, Conv2D, Dense, Dropout, Flatten, Input, ZeroPadding2D
from keras.models import load_model, Model
from keras.regularizers... | 31.482456 | 148 | 0.679019 |
8f68e760e629e6c9289a968b529c8bbdbfa66448 | 1,281 | py | Python | configs/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_Flat_lmPbr_SO/FlowNet512_1.5AugCosyAAEGray_Flat_Pbr_02_benchvise.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 33 | 2021-12-15T07:11:47.000Z | 2022-03-29T08:58:32.000Z | configs/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_Flat_lmPbr_SO/FlowNet512_1.5AugCosyAAEGray_Flat_Pbr_02_benchvise.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 3 | 2021-12-15T11:39:54.000Z | 2022-03-29T07:24:23.000Z | configs/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_Flat_lmPbr_SO/FlowNet512_1.5AugCosyAAEGray_Flat_Pbr_02_benchvise.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | null | null | null | _base_ = ["./FlowNet512_1.5AugCosyAAEGray_Flat_Pbr_01_ape.py"]
OUTPUT_DIR = "output/deepim/lmPbrSO/FlowNet512_1.5AugCosyAAEGray_Flat_lmPbr_SO/benchvise"
DATASETS = dict(TRAIN=("lm_pbr_benchvise_train",), TEST=("lm_real_benchvise_test",))
# bbnc7
# objects benchvise Avg(1)
# ad_2 9.12 9.12
# ad_5 44.... | 27.255319 | 89 | 0.540984 |
8f6a4ac0f3616dd43ef5ba0483ceab37ae337f14 | 2,489 | py | Python | DataCrawl/crawler/lib/browser.py | Haiduongcable/BigData-Computing | 917210a6254b5e656a98af9056a0c975d2dfef26 | [
"Apache-2.0"
] | null | null | null | DataCrawl/crawler/lib/browser.py | Haiduongcable/BigData-Computing | 917210a6254b5e656a98af9056a0c975d2dfef26 | [
"Apache-2.0"
] | null | null | null | DataCrawl/crawler/lib/browser.py | Haiduongcable/BigData-Computing | 917210a6254b5e656a98af9056a0c975d2dfef26 | [
"Apache-2.0"
] | null | null | null | import sys
import os
from pathlib import Path
import json
import pickle
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import selenium.webdriver.support.ui as ui | 34.569444 | 157 | 0.655283 |
8f6a5d9899e0976ac95b7796e1458b1bd050494d | 3,001 | py | Python | selfdrive/car/subaru/values.py | Richardrgc74/openpilot | 70b15580966a6c7f8d25eca51c912c37904cc461 | [
"MIT"
] | null | null | null | selfdrive/car/subaru/values.py | Richardrgc74/openpilot | 70b15580966a6c7f8d25eca51c912c37904cc461 | [
"MIT"
] | null | null | null | selfdrive/car/subaru/values.py | Richardrgc74/openpilot | 70b15580966a6c7f8d25eca51c912c37904cc461 | [
"MIT"
] | null | null | null | # flake8: noqa
from selfdrive.car import dbc_dict
from cereal import car
Ecu = car.CarParams.Ecu
FINGERPRINTS = {
CAR.OUTBACK_PREGLOBAL_2018: [{
# OUTBACK 2.0D 2018 ADM
2: 8, 208: 8, 209: 4, 210: 8, 211: 7, 212: 8, 316: 8, 320: 8, 321: 8, 324: 8, 328: 8, 329: 8, 336: 2, 338: 8, 342: 8, 352: 8, 353: 8, 354: 8,... | 44.132353 | 424 | 0.71043 |
8f6b4fb8b5826570c194c749e3b2f1b2eb2295e0 | 391 | py | Python | Fletnix/apps/profiles/migrations/0002_profiles_user_name.py | FuryAndRage/Fletnix | 99cc015c799eda24d605ecb9706f809fa6a05392 | [
"MIT"
] | null | null | null | Fletnix/apps/profiles/migrations/0002_profiles_user_name.py | FuryAndRage/Fletnix | 99cc015c799eda24d605ecb9706f809fa6a05392 | [
"MIT"
] | 1 | 2021-02-21T11:08:36.000Z | 2021-02-24T20:42:01.000Z | Fletnix/apps/profiles/migrations/0002_profiles_user_name.py | FuryAndRage/Fletnix | 99cc015c799eda24d605ecb9706f809fa6a05392 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2021-02-14 10:56
from django.db import migrations, models
| 20.578947 | 62 | 0.595908 |
8f6cda2b221292f939019bccf17b0c0c955ce9d9 | 492 | py | Python | options/test_options.py | salfamusic/encoder4editing | 8263cb9d42cd4811f4ab2768dfcc9085259fc251 | [
"MIT"
] | null | null | null | options/test_options.py | salfamusic/encoder4editing | 8263cb9d42cd4811f4ab2768dfcc9085259fc251 | [
"MIT"
] | null | null | null | options/test_options.py | salfamusic/encoder4editing | 8263cb9d42cd4811f4ab2768dfcc9085259fc251 | [
"MIT"
] | null | null | null | from .base_options import BaseOptions
| 41 | 109 | 0.705285 |
8f6d9715bc92a8e85ce12c2c520af4e5db0b1a7c | 3,071 | py | Python | prepomm/tools.py | dwhswenson/prepomm | 1109c4ae03f13f2c111e1d243243f45d0e28ceb2 | [
"MIT"
] | null | null | null | prepomm/tools.py | dwhswenson/prepomm | 1109c4ae03f13f2c111e1d243243f45d0e28ceb2 | [
"MIT"
] | null | null | null | prepomm/tools.py | dwhswenson/prepomm | 1109c4ae03f13f2c111e1d243243f45d0e28ceb2 | [
"MIT"
] | null | null | null | """
Tools used elsewhere in this package
"""
import os
import collections
import mdtraj as md
from simtk import openmm as mm
from simtk.openmm import app
from simtk import unit as u
try:
import openmmtools
except ImportError:
HAS_OPENMMTOOLS = False
else:
HAS_OPENMMTOOLS = True
def simulation_write_pdb(s... | 32.326316 | 77 | 0.676978 |
8f6e45249501a9eeced6ad9317380712aa8a2e41 | 1,746 | py | Python | ansible/module_utils/facts/hardware/base.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2022-01-25T22:52:58.000Z | 2022-01-25T22:52:58.000Z | ansible/module_utils/facts/hardware/base.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | ansible/module_utils/facts/hardware/base.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 32.333333 | 72 | 0.683276 |
8f71414f26283f636acf131540cc80063b73c4d4 | 691 | py | Python | components/amp-utility/python/Snd.py | ekmixon/AliOS-Things | 00334295af8aa474d818724149726ca93da4645d | [
"Apache-2.0"
] | 4,538 | 2017-10-20T05:19:03.000Z | 2022-03-30T02:29:30.000Z | components/amp-utility/python/Snd.py | ekmixon/AliOS-Things | 00334295af8aa474d818724149726ca93da4645d | [
"Apache-2.0"
] | 1,088 | 2017-10-21T07:57:22.000Z | 2022-03-31T08:15:49.000Z | components/amp-utility/python/Snd.py | willianchanlovegithub/AliOS-Things | 637c0802cab667b872d3b97a121e18c66f256eab | [
"Apache-2.0"
] | 1,860 | 2017-10-20T05:22:35.000Z | 2022-03-27T10:54:14.000Z | # * coding: UTF8 *
"""
=================================================================================================
"""
def install_codec_driver():
"""
:param :
:returns: 0: :
:raises OSError: EINVAL
"""
pass
def uninstall_codec_driver():
"""
:param :
:returns: 0: :
:... | 14.102041 | 97 | 0.489146 |
8f72691d634c7185886e3950715ddd4866514065 | 919 | py | Python | 2018/day3/claim.py | scrubskip/adventofcode2018 | 8149908d1239759597fda575432cf3ec99019dc0 | [
"Apache-2.0"
] | null | null | null | 2018/day3/claim.py | scrubskip/adventofcode2018 | 8149908d1239759597fda575432cf3ec99019dc0 | [
"Apache-2.0"
] | null | null | null | 2018/day3/claim.py | scrubskip/adventofcode2018 | 8149908d1239759597fda575432cf3ec99019dc0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
from parse import compile
if __name__== "__main__":
print main() | 25.527778 | 80 | 0.568009 |
8f72fbd93f21f83f4ef3662e0b27d9a6cf567288 | 735 | py | Python | lognotif/alertmgmt/migrations/0009_newassignment.py | subhamoykarmakar224/Django-LiveLogNotifier | 15f36048f3eb8d43d9b58b04c660bcb7fa005451 | [
"MIT"
] | null | null | null | lognotif/alertmgmt/migrations/0009_newassignment.py | subhamoykarmakar224/Django-LiveLogNotifier | 15f36048f3eb8d43d9b58b04c660bcb7fa005451 | [
"MIT"
] | null | null | null | lognotif/alertmgmt/migrations/0009_newassignment.py | subhamoykarmakar224/Django-LiveLogNotifier | 15f36048f3eb8d43d9b58b04c660bcb7fa005451 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.12 on 2020-05-06 12:27
from django.db import migrations, models
| 30.625 | 114 | 0.591837 |
8f745bc0d930118b19141f5dfac7b6915950c7e9 | 1,772 | py | Python | f5/bigiq/cm/device/licensing/pool/initial_activation.py | nghia-tran/f5-common-python | acb23a6e5830a119b460c19a578654113419f5c3 | [
"Apache-2.0"
] | 272 | 2016-02-23T06:05:44.000Z | 2022-02-20T02:09:32.000Z | f5/bigiq/cm/device/licensing/pool/initial_activation.py | nghia-tran/f5-common-python | acb23a6e5830a119b460c19a578654113419f5c3 | [
"Apache-2.0"
] | 1,103 | 2016-02-11T17:48:03.000Z | 2022-02-15T17:13:37.000Z | f5/bigiq/cm/device/licensing/pool/initial_activation.py | nghia-tran/f5-common-python | acb23a6e5830a119b460c19a578654113419f5c3 | [
"Apache-2.0"
] | 167 | 2016-02-11T17:48:21.000Z | 2022-01-17T20:13:05.000Z | # coding=utf-8
#
# Copyright 2017 F5 Networks 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 a... | 36.916667 | 118 | 0.738149 |
8f758e5cc6da0001620edeb8cb1d368674c76e41 | 373 | py | Python | run.py | myncow/compositing | 7b79011d39f42594144581143ee8e7fd3a6669a3 | [
"MIT"
] | null | null | null | run.py | myncow/compositing | 7b79011d39f42594144581143ee8e7fd3a6669a3 | [
"MIT"
] | null | null | null | run.py | myncow/compositing | 7b79011d39f42594144581143ee8e7fd3a6669a3 | [
"MIT"
] | 2 | 2021-11-05T17:06:12.000Z | 2021-11-17T04:15:29.000Z | import argparse
from generator import logic
parser = argparse.ArgumentParser()
parser.add_argument('--mode', type=str, required=True)
args = parser.parse_args()
logic_main=logic.composite_probabilistically
if args.mode == "permute":
pass
elif args.mode == "logic":
logic_main()
else:
print("Specify a fla... | 19.631579 | 74 | 0.734584 |
8f787cfd457d65b0d4fa5d03424c02511129986f | 109 | py | Python | fluxio_parser/__init__.py | NarrativeScience/fluxio-parser | bddd6b86a550ec87a58a2d854978d559e29cf3f4 | [
"BSD-3-Clause"
] | 1 | 2021-06-09T20:22:38.000Z | 2021-06-09T20:22:38.000Z | fluxio_parser/__init__.py | NarrativeScience/fluxio-parser | bddd6b86a550ec87a58a2d854978d559e29cf3f4 | [
"BSD-3-Clause"
] | null | null | null | fluxio_parser/__init__.py | NarrativeScience/fluxio-parser | bddd6b86a550ec87a58a2d854978d559e29cf3f4 | [
"BSD-3-Clause"
] | 1 | 2021-06-09T20:22:39.000Z | 2021-06-09T20:22:39.000Z | """Main exports"""
from fluxio_parser.parser import parse_project_tree # noqa: F401
__version__ = "0.3.1"
| 18.166667 | 65 | 0.733945 |
8f78b69e4772845ec293a193b3ef41aeb3b1c4fc | 1,491 | py | Python | prophet_gcp/utils.py | SpikeLab-CL/paralell_prophet | c04b069ae27eb8645dd10e0cf9992415e585ba62 | [
"WTFPL"
] | 7 | 2018-10-18T18:06:27.000Z | 2021-11-02T19:53:31.000Z | prophet_gcp/utils.py | SpikeLab-CL/paralell_prophet | c04b069ae27eb8645dd10e0cf9992415e585ba62 | [
"WTFPL"
] | null | null | null | prophet_gcp/utils.py | SpikeLab-CL/paralell_prophet | c04b069ae27eb8645dd10e0cf9992415e585ba62 | [
"WTFPL"
] | 5 | 2020-01-23T22:03:00.000Z | 2022-02-17T08:28:51.000Z | import dask.dataframe as dd
import pandas as pd
def load_parse_file(file_path, date_column="date"):
"""Loads a file into Pandas dataframe, and parse the datetime columns
Arguments:
file_path: string path to the input file.
Returns:
Dataframe: dask.dataframe from the file
... | 32.413043 | 77 | 0.646546 |
8f79be8eb8ccee8775fd0b6dbe06883ce3e72270 | 4,756 | py | Python | eva-accession-release-automation/run_release_in_embassy/analyze_vcf_validation_results.py | sundarvenkata-EBI/eva-accession | b26f0b5e5acaafe63d0755bad81837b9a5976237 | [
"Apache-2.0"
] | 3 | 2018-02-28T17:14:53.000Z | 2020-03-17T17:19:45.000Z | eva-accession-release-automation/run_release_in_embassy/analyze_vcf_validation_results.py | sundarvenkata-EBI/eva-accession | b26f0b5e5acaafe63d0755bad81837b9a5976237 | [
"Apache-2.0"
] | 52 | 2018-03-29T15:44:23.000Z | 2022-02-16T00:54:28.000Z | eva-accession-release-automation/run_release_in_embassy/analyze_vcf_validation_results.py | sundarvenkata-EBI/eva-accession | b26f0b5e5acaafe63d0755bad81837b9a5976237 | [
"Apache-2.0"
] | 15 | 2018-03-02T13:34:19.000Z | 2021-06-22T15:54:59.000Z | #!/usr/bin/env python3
# Copyright 2019 EMBL - European Bioinformatics Institute
#
# 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
#
# Unles... | 52.263736 | 118 | 0.660849 |
8f7aae12183d525e6d6a2892950c3be3ddc8cab8 | 4,115 | py | Python | include/vortex.py | wheelerMT/two-component_BEC | 3c7ddee98d2dd49b07705cb343536f8a68006d7f | [
"MIT"
] | 1 | 2020-12-16T00:05:38.000Z | 2020-12-16T00:05:38.000Z | include/vortex.py | wheelerMT/twoComponent-BEC | 3c7ddee98d2dd49b07705cb343536f8a68006d7f | [
"MIT"
] | null | null | null | include/vortex.py | wheelerMT/twoComponent-BEC | 3c7ddee98d2dd49b07705cb343536f8a68006d7f | [
"MIT"
] | null | null | null | import numpy as np
import uuid
| 39.567308 | 106 | 0.616525 |
8f7b47f31150135672ffa4570db36af3997c8bdf | 47 | py | Python | biker_vasek.py | nikitadragaa/--- | 61cfdd2c078e221e2412a1e776ae8e9afb840562 | [
"MIT"
] | 1 | 2020-11-26T19:12:09.000Z | 2020-11-26T19:12:09.000Z | biker_vasek.py | nikitadragaa/informatics_first_module | 61cfdd2c078e221e2412a1e776ae8e9afb840562 | [
"MIT"
] | null | null | null | biker_vasek.py | nikitadragaa/informatics_first_module | 61cfdd2c078e221e2412a1e776ae8e9afb840562 | [
"MIT"
] | null | null | null | a=int(input())
b=int(input())
print((a*b)%109)
| 11.75 | 16 | 0.595745 |
8f7c0232a0c1a08c2f41b65eb62c5d3ff5bd11ae | 3,562 | py | Python | tests/test_subnet.py | Diapolo10/iplib | 001479b2095fd8008f9db726b1bd9c0b0ee16eac | [
"MIT"
] | 6 | 2021-04-18T19:46:40.000Z | 2021-06-28T22:03:25.000Z | tests/test_subnet.py | Diapolo10/iplib | 001479b2095fd8008f9db726b1bd9c0b0ee16eac | [
"MIT"
] | 10 | 2021-05-01T19:46:35.000Z | 2021-07-04T08:39:35.000Z | tests/test_subnet.py | Diapolo10/iplib | 001479b2095fd8008f9db726b1bd9c0b0ee16eac | [
"MIT"
] | 4 | 2021-05-01T22:04:24.000Z | 2021-06-13T14:29:20.000Z | """Unit tests for iplib3.subnet"""
import pytest
from iplib3.subnet import ( # pylint: disable=import-error,no-name-in-module
SubnetMask,
PureSubnetMask,
)
from iplib3.constants import ( # pylint: disable=import-error,no-name-in-module
IPV4_MIN_SUBNET_VALUE,
IPV4_MAX_SUBNET_VALUE,
IPV6_MAX_SUBNE... | 29.683333 | 86 | 0.714486 |
8f7e37d4906c116b6d7ca399d7e8dabb52aaae91 | 2,570 | py | Python | examples/linear_regression_with_database.py | facebookresearch/svinfer | 14edce1af6c91e622b8691f5d78a490a8585e7b5 | [
"Apache-2.0"
] | 14 | 2020-05-29T18:45:16.000Z | 2022-03-21T03:30:27.000Z | examples/linear_regression_with_database.py | facebookresearch/svinfer | 14edce1af6c91e622b8691f5d78a490a8585e7b5 | [
"Apache-2.0"
] | null | null | null | examples/linear_regression_with_database.py | facebookresearch/svinfer | 14edce1af6c91e622b8691f5d78a490a8585e7b5 | [
"Apache-2.0"
] | 1 | 2020-07-30T17:01:20.000Z | 2020-07-30T17:01:20.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# 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 b... | 39.538462 | 85 | 0.716342 |
8f808924f32b0bba54dcbd5d9c58b33439b7f83b | 2,705 | py | Python | sightpy/backgrounds/skybox.py | ulises1229/Python-Raytracer | ad89b9dabda1c3eeb68af2d3578c3f38dee9f5b9 | [
"MIT"
] | 326 | 2020-08-14T07:29:40.000Z | 2022-03-30T11:13:32.000Z | sightpy/backgrounds/skybox.py | ulises1229/Python-Raytracer | ad89b9dabda1c3eeb68af2d3578c3f38dee9f5b9 | [
"MIT"
] | 7 | 2020-08-14T21:57:56.000Z | 2021-06-09T00:53:04.000Z | sightpy/backgrounds/skybox.py | ulises1229/Python-Raytracer | ad89b9dabda1c3eeb68af2d3578c3f38dee9f5b9 | [
"MIT"
] | 37 | 2020-08-14T17:37:56.000Z | 2022-03-30T09:37:22.000Z | from ..geometry import Cuboid_Collider, Primitive
from ..materials import Material
from ..utils.vector3 import vec3
from ..utils.constants import SKYBOX_DISTANCE
from ..utils.image_functions import load_image, load_image_as_linear_sRGB
from .util.blur_background import blur_skybox
| 46.637931 | 209 | 0.598521 |
8f8117fc5388acb6f8832bf7311ec1881c023df3 | 81 | py | Python | pks/apps.py | xingyifei2016/clusterCAD | fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6 | [
"BSD-3-Clause-LBNL"
] | 7 | 2018-11-06T00:04:47.000Z | 2021-08-05T04:37:12.000Z | pks/apps.py | xingyifei2016/clusterCAD | fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6 | [
"BSD-3-Clause-LBNL"
] | 26 | 2017-08-11T21:51:46.000Z | 2022-03-11T23:18:25.000Z | pks/apps.py | xingyifei2016/clusterCAD | fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6 | [
"BSD-3-Clause-LBNL"
] | 7 | 2017-08-16T17:28:40.000Z | 2022-03-02T00:07:00.000Z | from django.apps import AppConfig
| 13.5 | 33 | 0.728395 |
56a8d54ad528be2aaf7182e51f33608226c5e2df | 45,398 | py | Python | CGATPipelines/pipeline_exome_cancer.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | null | null | null | CGATPipelines/pipeline_exome_cancer.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | null | null | null | CGATPipelines/pipeline_exome_cancer.py | cdrakesmith/CGATPipelines | 3c94ae4f9d87d51108255dc405c4b95af7c8b694 | [
"MIT"
] | null | null | null | """
======================
Exome Cancer pipeline
======================
.. todo::
*Final filtering if SNPs/INDELs is currently done in the
reporting. This should be handled by the pipeline. The SNP output
would also then be passed to the mutational signature task
*Document
*fully make phone home/key o... | 35.973059 | 81 | 0.552998 |
56aceb9473dca4ac2d68368a3618cbfcb8694e5a | 7,581 | py | Python | tests/snuba/api/endpoints/test_project_event_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T17:46:16.000Z | 2019-10-17T17:46:16.000Z | tests/snuba/api/endpoints/test_project_event_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | null | null | null | tests/snuba/api/endpoints/test_project_event_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
import six
from django.core.urlresolvers import reverse
from sentry.testutils import APITestCase, SnubaTestCase
from sentry.testutils.helpers.datetime import before_now, iso_format
| 39.07732 | 100 | 0.590687 |
56ad3f65e7e326b6c8e24ade681a2bdad38713f8 | 61 | py | Python | je_auto_control/windows/screen/__init__.py | JE-Chen/AutoControl | c2d78f0b428d27aef2ea27f210d11c6dc1144221 | [
"MIT"
] | 1 | 2022-03-27T14:59:45.000Z | 2022-03-27T14:59:45.000Z | je_auto_control/windows/screen/__init__.py | JE-Chen/AutoControl | c2d78f0b428d27aef2ea27f210d11c6dc1144221 | [
"MIT"
] | 2 | 2021-11-19T13:45:37.000Z | 2021-12-03T12:25:28.000Z | je_auto_control/windows/screen/__init__.py | JE-Chen/AutoControl | c2d78f0b428d27aef2ea27f210d11c6dc1144221 | [
"MIT"
] | null | null | null | from je_auto_control.windows.screen.win32_screen import size
| 30.5 | 60 | 0.885246 |
56af02a969b9dab95dd47f1d92c922008e2433c4 | 435 | py | Python | guestbook/models.py | hcpthanks/vCard | cc9a301f413961c398c355426013c0cc05fbb1b7 | [
"MIT"
] | null | null | null | guestbook/models.py | hcpthanks/vCard | cc9a301f413961c398c355426013c0cc05fbb1b7 | [
"MIT"
] | null | null | null | guestbook/models.py | hcpthanks/vCard | cc9a301f413961c398c355426013c0cc05fbb1b7 | [
"MIT"
] | null | null | null | import reprlib
from django.db import models
| 27.1875 | 60 | 0.671264 |
56b027366621352ff84a9bd75357a7f9c2bdede8 | 293 | py | Python | rationalratio/rationalratio.py | omarchehab98/open.kattis.com-problems | 0523e2e641151dad719ef05cc9811a8ef5c6a278 | [
"MIT"
] | 1 | 2020-10-04T22:41:04.000Z | 2020-10-04T22:41:04.000Z | rationalratio/rationalratio.py | omarchehab98/open.kattis.com-problems | 0523e2e641151dad719ef05cc9811a8ef5c6a278 | [
"MIT"
] | null | null | null | rationalratio/rationalratio.py | omarchehab98/open.kattis.com-problems | 0523e2e641151dad719ef05cc9811a8ef5c6a278 | [
"MIT"
] | null | null | null | from fractions import Fraction
x, d = input().split(' ')
d = int(d)
k = len(x) - x.index('.') - d - 1
a, b = x[0:-d].replace('.', ''), 10 ** k
ab = Fraction(int(a), b)
rd = Fraction(int(x[-d:]), (10 ** d - 1) * b)
result = ab + rd
print(str(result.numerator) + '/' + str(result.denominator))
| 26.636364 | 60 | 0.546075 |
56b18a5e976b97460394eeab951ee9f6df83fd21 | 3,636 | py | Python | examples/doq_server.py | SouvikGhosh05/aioquic | da566b8ee616b9c83d51f0f5ad0521393119f40f | [
"BSD-3-Clause"
] | null | null | null | examples/doq_server.py | SouvikGhosh05/aioquic | da566b8ee616b9c83d51f0f5ad0521393119f40f | [
"BSD-3-Clause"
] | null | null | null | examples/doq_server.py | SouvikGhosh05/aioquic | da566b8ee616b9c83d51f0f5ad0521393119f40f | [
"BSD-3-Clause"
] | null | null | null | import argparse
import asyncio
import logging
import struct
from typing import Dict, Optional
from dnslib.dns import DNSRecord
from aioquic.asyncio import QuicConnectionProtocol, serve
from aioquic.quic.configuration import QuicConfiguration
from aioquic.quic.events import QuicEvent, StreamDataReceived
from aioquic.q... | 27.338346 | 81 | 0.622937 |
56b2d0fc3f97f8a7563d2f632e5448b894ac8ef4 | 9,483 | py | Python | extended_templates/backends/pdf.py | knivets/djaodjin-extended-templates | 71bc725b3900fc45968e5a625d72dc0931561856 | [
"BSD-2-Clause"
] | null | null | null | extended_templates/backends/pdf.py | knivets/djaodjin-extended-templates | 71bc725b3900fc45968e5a625d72dc0931561856 | [
"BSD-2-Clause"
] | null | null | null | extended_templates/backends/pdf.py | knivets/djaodjin-extended-templates | 71bc725b3900fc45968e5a625d72dc0931561856 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2018, Djaodjin Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and t... | 39.348548 | 80 | 0.61953 |
56b2fc9930c872a6e85f2a12f4ba1b8f96b7e270 | 1,484 | py | Python | python/practices/docset.py | gloomyline/ML | 3764ac7dd64e3a92de1b34d6a92a809e02f7c038 | [
"MIT"
] | null | null | null | python/practices/docset.py | gloomyline/ML | 3764ac7dd64e3a92de1b34d6a92a809e02f7c038 | [
"MIT"
] | null | null | null | python/practices/docset.py | gloomyline/ML | 3764ac7dd64e3a92de1b34d6a92a809e02f7c038 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Author: Administrator
# @Date: 2018-05-17 11:09:22
# @Last Modified by: Administrator
# @Last Modified time: 2018-05-17 11:23:24
def fact(n):
'''
Calculate 1*2*3...(n-1)*n
>>> fact(1)
1
>>> fact(10)
3628800
>>> fact(-1)
Traceback (most recent call last):
File "D:\\pr... | 21.823529 | 84 | 0.584232 |
56b37ef771a3d6c20dd29b8a7bb0b23c17d962e6 | 185 | py | Python | OpenCV/task_1.2.py | Riyaagrawal2001/Autumn-of-Automation | 5e15d1a9943e41ac548fc0862db2eddea1752c02 | [
"MIT"
] | null | null | null | OpenCV/task_1.2.py | Riyaagrawal2001/Autumn-of-Automation | 5e15d1a9943e41ac548fc0862db2eddea1752c02 | [
"MIT"
] | null | null | null | OpenCV/task_1.2.py | Riyaagrawal2001/Autumn-of-Automation | 5e15d1a9943e41ac548fc0862db2eddea1752c02 | [
"MIT"
] | null | null | null | import cv2
cap = cv2.VideoCapture(0)
while(True):
ret,frame = cap.read()
cv2.imshow('frame',frame)
if cv2.waitKey(1)&0xFF==ord('q'):
break
cap.release()
cv2.destroyAllWindows() | 14.230769 | 34 | 0.686486 |
56b5106f514ff350c7e6209c3bde64f4fb351f79 | 231 | py | Python | genno.py | divine-coder/CODECHEF-PYTHON | a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543 | [
"MIT"
] | null | null | null | genno.py | divine-coder/CODECHEF-PYTHON | a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543 | [
"MIT"
] | 4 | 2020-10-04T07:49:30.000Z | 2021-10-02T05:24:40.000Z | genno.py | divine-coder/CODECHEF-PYTHON | a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543 | [
"MIT"
] | 7 | 2020-10-04T07:46:55.000Z | 2021-11-05T14:30:00.000Z | if __name__=='__main__':
main();
| 14.4375 | 24 | 0.406926 |
56b748953a338c9c796774f938f8407392ae2efe | 1,498 | py | Python | docs/latex/src/plots/FOvsAsy2.py | vbertone/apfelxx | 7a37b982083b2a1cded2f5d6ab3aae267877f3c4 | [
"MIT"
] | 5 | 2019-10-07T14:01:59.000Z | 2021-04-13T19:54:47.000Z | docs/latex/src/plots/FOvsAsy2.py | vbertone/apfelxx | 7a37b982083b2a1cded2f5d6ab3aae267877f3c4 | [
"MIT"
] | 3 | 2017-05-30T10:43:40.000Z | 2018-09-11T14:29:53.000Z | docs/latex/src/plots/FOvsAsy2.py | vbertone/apfelxx | 7a37b982083b2a1cded2f5d6ab3aae267877f3c4 | [
"MIT"
] | 4 | 2019-06-23T08:42:00.000Z | 2022-03-18T15:25:46.000Z | import ruamel.yaml as yaml
import numpy as np
import matplotlib.pyplot as plt
import MatplotlibSettings
from scipy.interpolate import make_interp_spline, BSpline
# Loada data
data = np.loadtxt("FOvsAsy2.dat")
f, (ax1, ax2) = plt.subplots(2, 1, sharex = "all", gridspec_kw = dict(width_ratios = [1], height_ratios = [4,... | 41.611111 | 114 | 0.646862 |
56b8192795c518e7928ca09a5572608668256f99 | 3,578 | py | Python | OptimizedMovingAveragesUpdated.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | 3 | 2019-04-26T11:13:14.000Z | 2020-01-10T05:58:16.000Z | OptimizedMovingAveragesUpdated.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | null | null | null | OptimizedMovingAveragesUpdated.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Adam Reinhold Von Fisher - https://www.linkedin.com/in/adamrvfisher/
"""
#This is a strategy tester with a brute force optimizer
#Pandas_datareader is deprecated, use YahooGrabber
#Import modules
import numpy as np
from pandas_datareader import data
import random as rand
import ... | 27.953125 | 77 | 0.586082 |
56b9ba77444e2cd8a93d2c91b41f8c6f997f8056 | 2,006 | py | Python | generation/process_datasets/process-NYT.py | Pratik-11/roft | 29c54c9712832051170c47909a5d38790ff5350b | [
"MIT"
] | 10 | 2020-05-31T19:19:42.000Z | 2022-01-15T01:44:33.000Z | generation/process_datasets/process-NYT.py | kirubarajan/trick | 04ef53c1d9646e0d7e7ec0eb47cc94d423682421 | [
"MIT"
] | 121 | 2020-06-05T20:29:24.000Z | 2021-09-24T21:33:33.000Z | generation/process_datasets/process-NYT.py | kirubarajan/trick | 04ef53c1d9646e0d7e7ec0eb47cc94d423682421 | [
"MIT"
] | 2 | 2020-06-05T20:10:29.000Z | 2020-09-30T14:55:48.000Z | '''
Script to parse out the raw text of articles from the NYT Articles Corpus
This script will look for a directory named raw and find any .ta.xml
files inside, parse out the "text" field in the file, strip all newlines and
carriage returns from the file and then write the text out, one article per lin... | 37.849057 | 84 | 0.638584 |
56baa2531aac4a1b2d5cf0f754d7c2d4f1573f35 | 853 | py | Python | DataMGT/consumers.py | BerryBC/SpyDataWebAppAndAPI | 6dd42a186e6955575fb747f7ff69c5b5a060ca19 | [
"MIT"
] | null | null | null | DataMGT/consumers.py | BerryBC/SpyDataWebAppAndAPI | 6dd42a186e6955575fb747f7ff69c5b5a060ca19 | [
"MIT"
] | null | null | null | DataMGT/consumers.py | BerryBC/SpyDataWebAppAndAPI | 6dd42a186e6955575fb747f7ff69c5b5a060ca19 | [
"MIT"
] | null | null | null | '''
@Descripttion:
@Author: BerryBC
@Date: 2020-02-24 23:40:18
@LastEditors: BerryBC
@LastEditTime: 2020-04-29 22:28:49
'''
import json
import Lib.LLearn as LLearn
from channels.generic.websocket import WebsocketConsumer
| 23.054054 | 56 | 0.638921 |
56bb48fc93cbdd9d51e108045eb0d3f0918f92f4 | 821 | py | Python | main/test/test_image.py | kittenh2o/mosaic | 19dc7cb3300b00a055fad874a097aa7a011ca56f | [
"MIT"
] | null | null | null | main/test/test_image.py | kittenh2o/mosaic | 19dc7cb3300b00a055fad874a097aa7a011ca56f | [
"MIT"
] | null | null | null | main/test/test_image.py | kittenh2o/mosaic | 19dc7cb3300b00a055fad874a097aa7a011ca56f | [
"MIT"
] | null | null | null | import unittest
from main.core.process_pic import Image
if __name__ == "__main__":
suite = unittest.TestLoader().loadTestsFromTestCase(TestImage)
unittest.TextTestRunner(verbosity=2).run(suite)
| 28.310345 | 101 | 0.618758 |
56bc157b8432a7e32a0436c1af87a1c616b37163 | 1,670 | py | Python | flockos/models/error.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 14 | 2017-02-14T07:02:59.000Z | 2022-03-30T13:59:59.000Z | flockos/models/error.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 10 | 2016-10-22T20:52:00.000Z | 2021-05-10T10:40:30.000Z | flockos/models/error.py | bilmyers/pyflock | b440ffbcd6a18c0d81b81dcdcbae7ae16c025d39 | [
"Apache-2.0"
] | 8 | 2017-03-03T13:16:34.000Z | 2020-07-23T17:59:54.000Z | # coding: utf-8
from pprint import pformat
from ..utils import to_dict
def to_str(self):
"""
Returns the string representation of the model
"""
return pformat(self.to_dict())
def __repr__(self):
"""
For `print` and `pprint`
"""
return self.to... | 20.120482 | 87 | 0.602395 |
56bc4761d12edf3388b485bea197b4fd8ed7b433 | 4,390 | py | Python | tf2onnx/tflite_handlers/tfl_nn.py | BobLiu20/tensorflow-onnx | bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44 | [
"Apache-2.0"
] | 1 | 2021-04-30T15:26:06.000Z | 2021-04-30T15:26:06.000Z | tf2onnx/tflite_handlers/tfl_nn.py | BobLiu20/tensorflow-onnx | bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44 | [
"Apache-2.0"
] | null | null | null | tf2onnx/tflite_handlers/tfl_nn.py | BobLiu20/tensorflow-onnx | bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44 | [
"Apache-2.0"
] | 1 | 2021-05-22T02:24:21.000Z | 2021-05-22T02:24:21.000Z | # SPDX-License-Identifier: Apache-2.0
"""
tfl_nn
"""
from tf2onnx.handler import tfl_op
from tf2onnx.tflite_handlers.tfl_math import separate_fused_activation_function
# pylint: disable=unused-argument,missing-docstring,unused-variable,pointless-string-statement,invalid-name
| 39.54955 | 117 | 0.682916 |
56bf87b62349b915ce3f570672341fdac70f6f1f | 58 | py | Python | physballs/physballs.py | Dhhoyt/Physballs | 2225f5d88c7e16ac2b9aa59eb6e312eb62750955 | [
"MIT"
] | null | null | null | physballs/physballs.py | Dhhoyt/Physballs | 2225f5d88c7e16ac2b9aa59eb6e312eb62750955 | [
"MIT"
] | null | null | null | physballs/physballs.py | Dhhoyt/Physballs | 2225f5d88c7e16ac2b9aa59eb6e312eb62750955 | [
"MIT"
] | null | null | null | from graphics.render import open_window
open_window()
| 14.5 | 40 | 0.793103 |
56bfc33a7af917c5815e0bac91e9b07e0bede4f2 | 247 | py | Python | ex016-Descubra a Hipotenusa.py | Mathelzu/PythonExercicios | 9bb3f4ce97818fd4f0cb296c262818d7b1c76adb | [
"Apache-2.0"
] | null | null | null | ex016-Descubra a Hipotenusa.py | Mathelzu/PythonExercicios | 9bb3f4ce97818fd4f0cb296c262818d7b1c76adb | [
"Apache-2.0"
] | null | null | null | ex016-Descubra a Hipotenusa.py | Mathelzu/PythonExercicios | 9bb3f4ce97818fd4f0cb296c262818d7b1c76adb | [
"Apache-2.0"
] | null | null | null | import math
catOp = float(input('Valor Cateto Oposto: '))
catAd = float (input('Valor Cateto adjacente: '))
hip = (catOp**2) + (catAd**2)
# ou hip = math.hypot (catOp , catAd)
hip2 = math.sqrt(hip)
print (f'O valor da hipotenusa de {hip2:.2f}')
| 30.875 | 49 | 0.663968 |
56c02adeb142ee8a2831146de93928ab4c1be844 | 60 | py | Python | compute/dbconn/dbconn/models/incident.py | djfurman/well-managed-deployments | b61c9adb7212bb2f2a03f007568760ec5a36af72 | [
"BSD-3-Clause"
] | 1 | 2020-05-18T00:28:12.000Z | 2020-05-18T00:28:12.000Z | compute/dbconn/dbconn/models/incident.py | djfurman/well-managed-deployments | b61c9adb7212bb2f2a03f007568760ec5a36af72 | [
"BSD-3-Clause"
] | 10 | 2018-04-02T23:09:50.000Z | 2018-04-22T15:58:08.000Z | compute/dbconn/dbconn/models/incident.py | djfurman/well-managed-deployments | b61c9adb7212bb2f2a03f007568760ec5a36af72 | [
"BSD-3-Clause"
] | null | null | null | from orator import Model
| 8.571429 | 24 | 0.716667 |
56c06ffe14aeeb05cf11a1e9b700fb840312480b | 2,137 | py | Python | services/traction/bdd-tests/features/steps/holder.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 12 | 2022-01-29T20:30:03.000Z | 2022-03-29T11:46:14.000Z | services/traction/bdd-tests/features/steps/holder.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 38 | 2021-11-22T17:52:50.000Z | 2022-03-31T17:52:00.000Z | services/traction/bdd-tests/features/steps/holder.py | bcgov/traction | 90cec4f1aebccd68eb986cb89dfae5819a07a2ee | [
"Apache-2.0"
] | 9 | 2021-11-22T18:05:48.000Z | 2022-03-29T11:25:08.000Z | import json
import requests
import pprint
import time
from behave import *
from starlette import status
| 33.920635 | 88 | 0.697707 |
56c2cfe7d870ad1404c84801425ee3e0576bff7d | 99 | py | Python | Exercise6.py | alxsklv/homework | dd629a9b6bb5e6d79ad84de6f69f26c80d50bb22 | [
"MIT"
] | null | null | null | Exercise6.py | alxsklv/homework | dd629a9b6bb5e6d79ad84de6f69f26c80d50bb22 | [
"MIT"
] | null | null | null | Exercise6.py | alxsklv/homework | dd629a9b6bb5e6d79ad84de6f69f26c80d50bb22 | [
"MIT"
] | null | null | null | a = int(input('enter side: \n'))
b = '* '
i = 0
while i < a:
print(b)
b += '* '
i += 1 | 12.375 | 32 | 0.383838 |
56c443957d86bdbc9785b7c592e15dd086bbef8a | 527 | py | Python | Chapter__8/Examples/running_time_measuring/main.py | nil1729/python__noob | d82d951dc511eafa9f4315e1fdfdc749f484abf1 | [
"MIT"
] | null | null | null | Chapter__8/Examples/running_time_measuring/main.py | nil1729/python__noob | d82d951dc511eafa9f4315e1fdfdc749f484abf1 | [
"MIT"
] | null | null | null | Chapter__8/Examples/running_time_measuring/main.py | nil1729/python__noob | d82d951dc511eafa9f4315e1fdfdc749f484abf1 | [
"MIT"
] | null | null | null |
my_loop()
| 25.095238 | 85 | 0.586338 |
56c4a181e46ff75702be3d6706e5216784d4e18d | 12,870 | py | Python | umpleonline/chatbot/processresponse.py | YounesB-McGill/Comp550-Project | bbc9cf91e295a26fd1e8f2ba8371f737a449a47a | [
"MIT"
] | null | null | null | umpleonline/chatbot/processresponse.py | YounesB-McGill/Comp550-Project | bbc9cf91e295a26fd1e8f2ba8371f737a449a47a | [
"MIT"
] | 6 | 2020-07-19T01:29:06.000Z | 2021-05-10T21:21:27.000Z | umpleonline/chatbot/processresponse.py | YounesB-McGill/Comp550-Project | bbc9cf91e295a26fd1e8f2ba8371f737a449a47a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import re
from typing import List
import numpy as np
from keras.models import load_model
from action import (add_class_json, add_attribute, create_association, create_inheritance, create_composition,
return_error_to_user)
from data import ADD_WORDS, CONTAINS_WORDS, HAVE_WORDS, ISA_WORDS
from mo... | 37.304348 | 115 | 0.671484 |
56c81124f1aaadd1eefd7577b6f9a4ae2b4cf780 | 2,890 | py | Python | quantum_machine_learning/qml_100_GeneratingFourierState_solution.py | zemarchezi/QHack2022 | e388a546027168c3f1d48ad2e7ecf831425bb2dc | [
"CC0-1.0"
] | null | null | null | quantum_machine_learning/qml_100_GeneratingFourierState_solution.py | zemarchezi/QHack2022 | e388a546027168c3f1d48ad2e7ecf831425bb2dc | [
"CC0-1.0"
] | null | null | null | quantum_machine_learning/qml_100_GeneratingFourierState_solution.py | zemarchezi/QHack2022 | e388a546027168c3f1d48ad2e7ecf831425bb2dc | [
"CC0-1.0"
] | 5 | 2022-03-16T00:02:24.000Z | 2022-03-23T20:12:23.000Z | #! /usr/bin/python3
import sys
from pennylane import numpy as np
import pennylane as qml
def generating_fourier_state(n_qubits, m):
"""Function which, given the number of qubits and an integer m, returns the circuit and the angles that generate the state
QFT|m> following the above template.
Args:
... | 32.111111 | 126 | 0.63045 |
56cb8fcd45f5672fe2b1eb0a6363664189af573d | 2,004 | py | Python | Class08.py | Kiran1178/Python201901 | 8f387c9ed451a8b0cf5c20e9d8f6ae53cafaf0df | [
"MIT"
] | null | null | null | Class08.py | Kiran1178/Python201901 | 8f387c9ed451a8b0cf5c20e9d8f6ae53cafaf0df | [
"MIT"
] | null | null | null | Class08.py | Kiran1178/Python201901 | 8f387c9ed451a8b0cf5c20e9d8f6ae53cafaf0df | [
"MIT"
] | null | null | null | # # # ####
# import_os.path as os_path
from os import path, makedirs
# #########################
# 1) Python Absoulute path
# ########################
#
# current absolute path
# file_path = r"c:\repos\Library"
# current_file_path = path.abspath(__file__)
# print(current_file_path)
# print(path.dirname(current_fil... | 21.094737 | 73 | 0.683633 |
56ccc4b8eb0e2fdef41c04fd52d0622b0ed55475 | 542 | py | Python | zoo/migrations/0002_animal_size.py | 5akusei/test-project-django | c8a7108a5872dc9e396d48a59541c39dd8246f5c | [
"MIT"
] | null | null | null | zoo/migrations/0002_animal_size.py | 5akusei/test-project-django | c8a7108a5872dc9e396d48a59541c39dd8246f5c | [
"MIT"
] | null | null | null | zoo/migrations/0002_animal_size.py | 5akusei/test-project-django | c8a7108a5872dc9e396d48a59541c39dd8246f5c | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-21 00:10
from django.db import migrations, models
import django.db.models.deletion
| 25.809524 | 151 | 0.632841 |
56ccf9b464e87b0ee37675d5598960af66f6aaee | 996 | py | Python | explicalib/calibration/evaluation/diagrams/binary/binary_calibration_error_curve.py | euranova/estimating_eces | 9bfa81dd7a39ebe069c5b11b8e7a9bf9017e9350 | [
"MIT"
] | 2 | 2021-11-30T18:44:11.000Z | 2021-11-30T18:44:19.000Z | explicalib/calibration/evaluation/diagrams/binary/binary_calibration_error_curve.py | euranova/estimating_eces | 9bfa81dd7a39ebe069c5b11b8e7a9bf9017e9350 | [
"MIT"
] | null | null | null | explicalib/calibration/evaluation/diagrams/binary/binary_calibration_error_curve.py | euranova/estimating_eces | 9bfa81dd7a39ebe069c5b11b8e7a9bf9017e9350 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: nicolas.posocco
"""
from .binary_reliability_curve import binary_reliability_curve
| 39.84 | 113 | 0.5251 |
56cdb1a4bb76205dcc32cb83ce84f25a331f0228 | 217 | py | Python | coast/timeseries.py | British-Oceanographic-Data-Centre/NEMO-ENTRUST | 41ed278e56428404ab8ec41d74a9a3a761e308ae | [
"MIT"
] | null | null | null | coast/timeseries.py | British-Oceanographic-Data-Centre/NEMO-ENTRUST | 41ed278e56428404ab8ec41d74a9a3a761e308ae | [
"MIT"
] | null | null | null | coast/timeseries.py | British-Oceanographic-Data-Centre/NEMO-ENTRUST | 41ed278e56428404ab8ec41d74a9a3a761e308ae | [
"MIT"
] | null | null | null | """Timeseries Class"""
from .index import Indexed
from . import general_utils
| 18.083333 | 68 | 0.700461 |
56cefc1f7836af65100b50a748c1af6718286e94 | 8,714 | py | Python | bayesmark/np_util.py | goncaloperes/bayesmark | 8c420e935718f0d6867153b781e58943ecaf2338 | [
"Apache-2.0"
] | 102 | 2019-09-27T02:38:52.000Z | 2022-03-12T13:31:11.000Z | bayesmark/np_util.py | goncaloperes/bayesmark | 8c420e935718f0d6867153b781e58943ecaf2338 | [
"Apache-2.0"
] | 17 | 2019-10-07T18:20:21.000Z | 2022-01-03T08:19:16.000Z | bayesmark/np_util.py | goncaloperes/bayesmark | 8c420e935718f0d6867153b781e58943ecaf2338 | [
"Apache-2.0"
] | 34 | 2019-09-27T02:38:31.000Z | 2022-02-09T21:32:25.000Z | # Copyright (c) 2019 Uber Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 33.13308 | 119 | 0.638398 |
56cf21dd91586a112ff72573b3ee25e290d3bbe0 | 5,141 | py | Python | kra/analytics/container.py | smpio/kube-resource-analyzer | d214b7c32bc5e404ac951f66cf0914fcae1f580f | [
"MIT"
] | null | null | null | kra/analytics/container.py | smpio/kube-resource-analyzer | d214b7c32bc5e404ac951f66cf0914fcae1f580f | [
"MIT"
] | 50 | 2021-05-26T14:15:09.000Z | 2021-07-24T12:08:14.000Z | kra/analytics/container.py | smpio/kube-resource-analyzer | d214b7c32bc5e404ac951f66cf0914fcae1f580f | [
"MIT"
] | null | null | null | from kra import models
| 44.704348 | 118 | 0.428321 |
56d09b11ed25ec6017ed1280c06b4a542229e329 | 9,712 | py | Python | Zebrafish spinal locomotor circuit/Version 2/Beat_and_glide_with_sigmas.py | Bui-lab/Code | 6ce5972a4bd0c059ab167522ab1d945f3b0f5707 | [
"MIT"
] | null | null | null | Zebrafish spinal locomotor circuit/Version 2/Beat_and_glide_with_sigmas.py | Bui-lab/Code | 6ce5972a4bd0c059ab167522ab1d945f3b0f5707 | [
"MIT"
] | null | null | null | Zebrafish spinal locomotor circuit/Version 2/Beat_and_glide_with_sigmas.py | Bui-lab/Code | 6ce5972a4bd0c059ab167522ab1d945f3b0f5707 | [
"MIT"
] | 2 | 2021-08-25T08:14:52.000Z | 2021-11-29T12:56:17.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 3 15:47:19 2018
@author: Yann Roussel and Tuan Bui
Editted by: Emine Topcu on Oct 2021
"""
from random import gauss
from Beat_and_glide import Beat_and_glide_base
from Izhikevich_class import Izhikevich_9P, Leaky_Integrator
| 56.138728 | 112 | 0.358217 |
56d2471cad9e5b70a2a31907d09626de3051974a | 183 | py | Python | __init__.py | jobscry/vz-blog | de968541a0412d5ce8f09c1ba638261a9f9151f1 | [
"MIT"
] | 3 | 2016-01-29T09:31:15.000Z | 2016-05-08T19:33:23.000Z | __init__.py | jobscry/vz-blog | de968541a0412d5ce8f09c1ba638261a9f9151f1 | [
"MIT"
] | null | null | null | __init__.py | jobscry/vz-blog | de968541a0412d5ce8f09c1ba638261a9f9151f1 | [
"MIT"
] | null | null | null | # -*- mode: python; coding: utf-8; -*-
VERSION = (1, 3, 3)
__version__ = '.'.join(map(str, VERSION))
__author__ = 'Joe Vasquez'
__email__ = 'joe.vasquez@gmail.com'
__license__ = 'MIT' | 30.5 | 41 | 0.650273 |
56d2493a0437ee12a9fdd6e4cf50891d7f181b49 | 35,632 | py | Python | mysite/patterns/35.py | BioinfoNet/prepub | e19c48cabf8bd22736dcef9308a5e196cfd8119a | [
"MIT"
] | 19 | 2016-06-17T23:36:27.000Z | 2020-01-13T16:41:55.000Z | mysite/patterns/35.py | BioinfoNet/prepub | e19c48cabf8bd22736dcef9308a5e196cfd8119a | [
"MIT"
] | 13 | 2016-06-06T12:57:05.000Z | 2019-02-05T02:21:00.000Z | patterns/35.py | OmnesRes/GRIMMER | 173c99ebdb6a9edb1242d24a791d0c5d778ff643 | [
"MIT"
] | 7 | 2017-03-28T18:12:22.000Z | 2021-06-16T09:32:59.000Z | pattern_zero=[0.0, 0.027755102041, 0.05387755102, 0.057142857143, 0.078367346939, 0.084897959184, 0.101224489796, 0.111020408163, 0.114285714286, 0.122448979592, 0.135510204082, 0.142040816327, 0.158367346939, 0.16, 0.168163265306, 0.171428571429, 0.176326530612, 0.179591836735, 0.191020408163, 0.192653061224, 0.199183... | 7,126.4 | 13,182 | 0.7864 |
56d420fdf0723b65174b088f7049275c4a6b46ff | 42,569 | py | Python | src/SimulationControl/SpheralGnuPlotUtilities.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/SimulationControl/SpheralGnuPlotUtilities.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/SimulationControl/SpheralGnuPlotUtilities.py | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | import Gnuplot
import mpi
from Spheral import *
from math import *
import numpy
import os
from SpheralTestUtilities import multiSort
SpheralGnuPlotCache = []
from spheralDimensions import spheralDimensions
dims = spheralDimensions()
#-------------------------------------------------------------------------------
# D... | 37.872776 | 105 | 0.467688 |
56d64070737123e2a1fe8ad2cdb328ef5f1d6afc | 77 | py | Python | CodeUp/1152_10보다작은수.py | woorimlee/cpp_CTCI_6E_APSS | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | 2 | 2020-12-30T03:35:51.000Z | 2021-02-28T20:39:09.000Z | CodeUp/1152_10보다작은수.py | woorimlee/cpp_CTCI_6E_APSS | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | 1 | 2020-12-08T08:48:40.000Z | 2021-04-09T04:58:57.000Z | CodeUp/1152_10보다작은수.py | woorimlee/Algorithm-Repository | ff1d42e871ba853ac3de726df0c609885ba07573 | [
"MIT"
] | null | null | null | a = int(input())
if a < 10 :
print("small")
else :
print("big")
| 11 | 18 | 0.467532 |
56d7e1352e0a41bda99357c7991be824ba742bcd | 6,484 | py | Python | fingerprint/client/util.py | ghoshishan/comp-sec | f1bec8fc68814bc421337069e58a67447baf2a89 | [
"MIT"
] | null | null | null | fingerprint/client/util.py | ghoshishan/comp-sec | f1bec8fc68814bc421337069e58a67447baf2a89 | [
"MIT"
] | null | null | null | fingerprint/client/util.py | ghoshishan/comp-sec | f1bec8fc68814bc421337069e58a67447baf2a89 | [
"MIT"
] | null | null | null | import json
import base64
import random
import logging
from Crypto.Cipher import AES
from Crypto.Protocol.KDF import PBKDF2
from phe import paillier, EncryptedNumber, PaillierPublicKey
import client.dbhandler as dbhandler
from client.exceptions import WrongPin, UnknownUser
logger = logging.getLogger('client')
# for... | 33.947644 | 116 | 0.715299 |
56dac085576643fac64d1abfca3b7fade3bb0fb0 | 50 | py | Python | arbory/subcommands/__init__.py | n8jhj/arbory | 702917acecace85eb4a1597dd86c553148db1432 | [
"BSD-2-Clause"
] | null | null | null | arbory/subcommands/__init__.py | n8jhj/arbory | 702917acecace85eb4a1597dd86c553148db1432 | [
"BSD-2-Clause"
] | null | null | null | arbory/subcommands/__init__.py | n8jhj/arbory | 702917acecace85eb4a1597dd86c553148db1432 | [
"BSD-2-Clause"
] | null | null | null | from .config import config
from .tree import tree
| 16.666667 | 26 | 0.8 |
56dc55fee9c5b749a9b50ac4f9d5e574bceb9dda | 6,622 | py | Python | kemeny.py | cai-michael/kemenyapprox | 802e22c58f8649dcc8ddf888603f8c19ae32621c | [
"Apache-2.0"
] | null | null | null | kemeny.py | cai-michael/kemenyapprox | 802e22c58f8649dcc8ddf888603f8c19ae32621c | [
"Apache-2.0"
] | null | null | null | kemeny.py | cai-michael/kemenyapprox | 802e22c58f8649dcc8ddf888603f8c19ae32621c | [
"Apache-2.0"
] | null | null | null | """
Implements the Kemeny Rule and various heuristics
"""
import time
import datetime
from itertools import combinations, permutations
from multiprocessing import Pool
import functools
from collections import defaultdict
from matrix import generate_zeros_matrix, matrix_multiplication
NUM_WORKERS = 2
STATIONARY_DISTRI... | 36.384615 | 99 | 0.706131 |
56dc67205242f7ff839dde303a1973e4737ed5cb | 1,331 | py | Python | utilities/write_spatial_file.py | markfoleyie/gisp_2021 | 6077b0980d775fefeb46983e70a1f03faa1220ec | [
"MIT"
] | 1 | 2022-01-28T13:39:42.000Z | 2022-01-28T13:39:42.000Z | utilities/write_spatial_file.py | markfoleyie/gisp_2021 | 6077b0980d775fefeb46983e70a1f03faa1220ec | [
"MIT"
] | null | null | null | utilities/write_spatial_file.py | markfoleyie/gisp_2021 | 6077b0980d775fefeb46983e70a1f03faa1220ec | [
"MIT"
] | null | null | null | try:
import fiona
from fiona.crs import from_epsg
import utilities.fiona_supported_drivers as fsd
import os
except Exception as e:
print(f"{e}")
quit(1)
| 32.463415 | 89 | 0.561232 |
56dfe03b101cc2f8e7b14651f15e361abb52dfc4 | 3,536 | py | Python | src/pytest_qatouch/plugin.py | MohamedRaslan/pytest-qatouch | 8d6ddd414d2ee836da1ebb9bee64a7672ed7e04f | [
"MIT"
] | null | null | null | src/pytest_qatouch/plugin.py | MohamedRaslan/pytest-qatouch | 8d6ddd414d2ee836da1ebb9bee64a7672ed7e04f | [
"MIT"
] | 6 | 2021-06-26T20:11:10.000Z | 2022-02-21T19:41:50.000Z | src/pytest_qatouch/plugin.py | MohamedRaslan/pytest-qatouch | 8d6ddd414d2ee836da1ebb9bee64a7672ed7e04f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from .utils import QATOUCH_MARK, MissingQatouchData, ExpectedIntegerValue
from .qatouch import QatouchTestResult
__QATOUCH_TEST_RSESULT = None
___Enable_PLUGIN = None
| 30.747826 | 119 | 0.63914 |
56e0b3bab19585c01401fc4f7a552420d5771661 | 4,066 | py | Python | tsai/models/ROCKET.py | radi-cho/tsai | 32f24d55ee58df1a14d1e68618f230097a266c77 | [
"Apache-2.0"
] | 1 | 2022-01-02T18:21:27.000Z | 2022-01-02T18:21:27.000Z | tsai/models/ROCKET.py | radi-cho/tsai | 32f24d55ee58df1a14d1e68618f230097a266c77 | [
"Apache-2.0"
] | 31 | 2021-12-01T23:08:51.000Z | 2021-12-29T02:59:49.000Z | tsai/models/ROCKET.py | radi-cho/tsai | 32f24d55ee58df1a14d1e68618f230097a266c77 | [
"Apache-2.0"
] | 1 | 2022-03-13T16:47:04.000Z | 2022-03-13T16:47:04.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/111_models.ROCKET.ipynb (unless otherwise specified).
__all__ = ['RocketClassifier', 'load_rocket', 'RocketRegressor']
# Cell
import sklearn
from sklearn.linear_model import RidgeClassifierCV, RidgeCV
from sklearn.metrics import make_scorer
from ..imports import *
from ... | 42.8 | 143 | 0.657649 |
56e136e9f8cd4fb32fc3b35b6dbfa5fc8c91cf9e | 6,596 | py | Python | sheetmaker/language_strings.py | cosme12/cheet-sheet-maker | 7bbb4f4dd310127d9ca57a9365dc2bfb6bce91da | [
"MIT"
] | 112 | 2017-02-08T20:42:14.000Z | 2022-03-04T01:50:32.000Z | sheetmaker/language_strings.py | cosme12/cheet-sheet-maker | 7bbb4f4dd310127d9ca57a9365dc2bfb6bce91da | [
"MIT"
] | 20 | 2017-02-09T11:22:08.000Z | 2018-06-22T19:04:23.000Z | sheetmaker/language_strings.py | cosme12/cheet-sheet-maker | 7bbb4f4dd310127d9ca57a9365dc2bfb6bce91da | [
"MIT"
] | 30 | 2017-02-09T13:05:52.000Z | 2022-01-30T05:59:09.000Z | """Language selector handler
Todo:
* Use internacionalization
* Add more languages
"""
english = {
"INTRO_MESSAGE" : "Welcome to CheatSheet Maker",
"MAIN_MENU_OPTIONS" : { 1: "Create sheet",
2: "Export (NOT CODED YET)",
3: "Help (NOT CODED YET)"... | 52.349206 | 133 | 0.516828 |
56e3647b49151976eed2cee6aff44b3b5d0d4f87 | 1,007 | py | Python | corecat/tests/_utils/conftest.py | DanceCats/dancecat-core | 877c475413237205526cca02372f378b6f39dbb3 | [
"MIT"
] | 1 | 2017-03-25T14:30:30.000Z | 2017-03-25T14:30:30.000Z | corecat/tests/_utils/conftest.py | DanceCats/dancecat-core | 877c475413237205526cca02372f378b6f39dbb3 | [
"MIT"
] | 3 | 2017-03-23T11:05:02.000Z | 2017-04-03T08:38:40.000Z | corecat/tests/_utils/conftest.py | DanceCats/dancecat-core | 877c475413237205526cca02372f378b6f39dbb3 | [
"MIT"
] | 1 | 2017-03-18T07:21:59.000Z | 2017-03-18T07:21:59.000Z | import pytest
import datetime
| 31.46875 | 77 | 0.680238 |
56e43e574c097624d7cc4d755ce6b382a96ac7b6 | 219 | py | Python | app01.py | YA-androidapp/Book-FlaskApp-03-AddStaicFilesAndTemplates | 2ccbda0b0707a240c3824f5d31457c293f8aa95b | [
"Apache-2.0"
] | null | null | null | app01.py | YA-androidapp/Book-FlaskApp-03-AddStaicFilesAndTemplates | 2ccbda0b0707a240c3824f5d31457c293f8aa95b | [
"Apache-2.0"
] | null | null | null | app01.py | YA-androidapp/Book-FlaskApp-03-AddStaicFilesAndTemplates | 2ccbda0b0707a240c3824f5d31457c293f8aa95b | [
"Apache-2.0"
] | null | null | null | from flask import Flask, redirect, url_for
from markupsafe import escape
app = Flask(__name__) | 24.333333 | 49 | 0.721461 |
56e45b9b2bac49923c6b840cd9115a922b1a9b93 | 815 | py | Python | preprocess/BDD_Driving_Model/test.py | ksuvislab/geovisuals-bdd | 82a2b835db59f3d0431cd0cc7f218c410abb1446 | [
"Apache-2.0"
] | null | null | null | preprocess/BDD_Driving_Model/test.py | ksuvislab/geovisuals-bdd | 82a2b835db59f3d0431cd0cc7f218c410abb1446 | [
"Apache-2.0"
] | null | null | null | preprocess/BDD_Driving_Model/test.py | ksuvislab/geovisuals-bdd | 82a2b835db59f3d0431cd0cc7f218c410abb1446 | [
"Apache-2.0"
] | null | null | null | import wrapper
import tensorflow as tf
from tensorflow.core.example import example_pb2
from StringIO import StringIO
from PIL import Image
from matplotlib.pyplot import imshow, show
import numpy as np
a = wrapper.Wrapper('discrete_tcnn1','./data/pretrained_models/discrete_tcnn1/model.ckpt-126001.bestmodel', 20)
exampl... | 30.185185 | 111 | 0.791411 |
56e46bb7818acd0c03702e88afa0e940878c4a01 | 2,989 | py | Python | Hourglass_network/train.py | Ali-Sahili/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | 5 | 2021-05-17T06:52:28.000Z | 2022-02-20T15:35:51.000Z | Hourglass_network/train.py | WN1695173791/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | null | null | null | Hourglass_network/train.py | WN1695173791/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | 1 | 2021-05-17T06:52:33.000Z | 2021-05-17T06:52:33.000Z | import torch
from torch import nn
import torchvision.utils as vutils
import numpy as np
from focal_loss import FocalLoss
from Param import *
from utils import weights_init
from net import PoseNet
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
| 27.675926 | 159 | 0.613249 |
56e51968e0b294a8b19d2f549c0b644ea69e8277 | 6,308 | py | Python | main.py | abditag2/DCGAN-tensorflow | 432b0d91bd8252c48869c205b86701993eb37618 | [
"MIT"
] | 4 | 2019-04-30T08:46:13.000Z | 2020-09-08T07:18:23.000Z | main.py | abditag2/DCGAN-tensorflow | 432b0d91bd8252c48869c205b86701993eb37618 | [
"MIT"
] | null | null | null | main.py | abditag2/DCGAN-tensorflow | 432b0d91bd8252c48869c205b86701993eb37618 | [
"MIT"
] | 1 | 2019-10-24T12:24:23.000Z | 2019-10-24T12:24:23.000Z | import io
import os
import os.path
from os import listdir
from os.path import isfile, join
import numpy as np
import tensorflow as tf
from PIL import Image
import horovod.tensorflow as hvd
from model import DCGAN
from utils import pp, visualize, show_all_variables
flags = tf.app.flags
flags.DEFINE_integer("epoch", ... | 40.696774 | 138 | 0.708307 |
56e55db3074073781e32a309aaad46301011098d | 2,768 | py | Python | Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector_test.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | null | null | null | Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector_test.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | 40 | 2022-03-03T07:34:00.000Z | 2022-03-31T07:38:35.000Z | Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector_test.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | null | null | null | from OktaEventCollector import ReqParams, Client, Request, GetEvents, Method
import pytest
req_params = ReqParams(since='', sortOrder='ASCENDING', limit='5')
request = Request(method=Method.GET, url='https://testurl.com', headers={}, params=req_params)
client = Client(request)
get_events = GetEvents(client)
id1 = {'uu... | 42.584615 | 109 | 0.58526 |
56e5c536074d74d31f4d24ac8e326a346c1ae65e | 2,563 | py | Python | test/models/test_deepset.py | NetKet/netket | 96758e814fc3128e6821564d6cc2852bac40ecf2 | [
"Apache-2.0"
] | null | null | null | test/models/test_deepset.py | NetKet/netket | 96758e814fc3128e6821564d6cc2852bac40ecf2 | [
"Apache-2.0"
] | null | null | null | test/models/test_deepset.py | NetKet/netket | 96758e814fc3128e6821564d6cc2852bac40ecf2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The NetKet 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 applicable law... | 29.125 | 87 | 0.616075 |
56e652ef605ac7b4aafdbb77c6ebeaccf9aada5f | 158 | py | Python | newGui.py | Mishin870/meat_bonch_hackaton_2017 | cf8637c295981a728d36576eb2cfe8ab93202a9f | [
"MIT"
] | 1 | 2017-10-20T21:56:41.000Z | 2017-10-20T21:56:41.000Z | newGui.py | Mishin870/meat_bonch_hackaton_2017 | cf8637c295981a728d36576eb2cfe8ab93202a9f | [
"MIT"
] | null | null | null | newGui.py | Mishin870/meat_bonch_hackaton_2017 | cf8637c295981a728d36576eb2cfe8ab93202a9f | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
b = Button(root)
b['text'] = 'test'
b.bind('<Button-1>', test)
b.pack()
root.mainloop() | 12.153846 | 26 | 0.620253 |
56e712fc9d5f888dd3b32ea02057e2f0440b72f3 | 803 | py | Python | 2020/day_15/day_15.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | null | null | null | 2020/day_15/day_15.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | null | null | null | 2020/day_15/day_15.py | viddrobnic/adventofcode | 8f06f4ad3ed6744d20d222b050a15b8ff0ff9c82 | [
"MIT"
] | 1 | 2020-12-01T16:49:12.000Z | 2020-12-01T16:49:12.000Z | from collections import defaultdict
starting_numbers = [16, 12, 1, 0, 15, 7, 11]
if __name__ == '__main__':
print(f'Part One: {solver(2020)}')
print(f'Part Two: {solver(30000000)}')
| 23.617647 | 61 | 0.620174 |
56e77e033d14f603000e73fa84271bc6b5607ec9 | 3,987 | py | Python | exp/hou_ximg.py | schaban/crosscore_dev | 1eae118a485cb1de1d54d2da01ff0b32966205ef | [
"MIT"
] | 5 | 2022-01-26T03:25:00.000Z | 2022-03-06T03:27:13.000Z | exp/hou_ximg.py | schaban/crosscore_dev | 1eae118a485cb1de1d54d2da01ff0b32966205ef | [
"MIT"
] | null | null | null | exp/hou_ximg.py | schaban/crosscore_dev | 1eae118a485cb1de1d54d2da01ff0b32966205ef | [
"MIT"
] | null | null | null | # Author: Sergey Chaban <sergey.chaban@gmail.com>
import sys
import hou
import os
import imp
import re
import inspect
from math import *
from array import array
import xcore
import xhou
try: xrange
except: xrange = range
| 25.234177 | 81 | 0.616002 |
56e98dd7ca93ca487d380c97603b7cfdaf2404c3 | 4,000 | py | Python | nsd1802/python/ansible_project/myansible/webansi/views.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1802/python/ansible_project/myansible/webansi/views.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1802/python/ansible_project/myansible/webansi/views.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import shutil
from collections import namedtuple
from ansible.parsing.dataloader import DataLoader
from ansible.vars.manager import VariableManager
from ansible.inventory.manager import InventoryManager
from ansible.playbook.play import Play
from ansible.e... | 32.258065 | 115 | 0.62525 |
56e9fd79e108a7ca6eae3fd77971936796edbc9e | 9,698 | py | Python | macadam/conf/constant_params.py | yongzhuo/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 290 | 2020-06-04T17:01:30.000Z | 2022-03-29T13:10:18.000Z | macadam/conf/constant_params.py | furtherthanfar/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 7 | 2020-06-05T02:30:51.000Z | 2022-03-17T01:05:42.000Z | macadam/conf/constant_params.py | furtherthanfar/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 35 | 2020-06-11T07:32:17.000Z | 2022-03-09T06:08:03.000Z | # !/usr/bin/python
# -*- coding: utf-8 -*-
# @time : 2020/4/26 20:25
# @author : Mo
# @function: constant of token-symbol and hyper-parameters-default
from macadam.conf.path_config import path_model_dir
from typing import Dict
import os
EMBEDDING_TYPE = ["ROBERTA","ELECTRA","RANDOM","ALBERT",
... | 51.312169 | 137 | 0.576614 |
56ea4043e94445a1fa0825bf267b5e1fb99e0df2 | 786 | py | Python | tests/test_model/test_backbone/test_mobilenetv3_backbone.py | ZJCV/PyCls | 1ef59301646b6134f2ffcc009b4fd76550fa4089 | [
"Apache-2.0"
] | 110 | 2021-02-04T14:32:57.000Z | 2022-03-30T01:51:56.000Z | tests/test_model/test_backbone/test_mobilenetv3_backbone.py | likyoo/ZCls | 568621aca3a8b090c93345f0858d52c5757f2f0e | [
"Apache-2.0"
] | 8 | 2021-04-11T02:46:57.000Z | 2021-12-14T19:30:58.000Z | tests/test_model/test_backbone/test_mobilenetv3_backbone.py | likyoo/ZCls | 568621aca3a8b090c93345f0858d52c5757f2f0e | [
"Apache-2.0"
] | 20 | 2021-02-07T14:17:07.000Z | 2022-03-22T05:20:40.000Z | # -*- coding: utf-8 -*-
"""
@date: 2020/12/30 9:36
@file: test_mobilenetv3_backbone.py
@author: zj
@description:
"""
import torch
from zcls.model.backbones.mobilenet.mobilenetv3_backbone import MobileNetV3Backbone
if __name__ == '__main__':
test_mobilenet_v3_backbone()
| 20.684211 | 83 | 0.655216 |
56eb32a92cc867cd71aa0914a66e1907fb58aeae | 4,348 | py | Python | analog_sim/spice/ngspice.py | yrrapt/spice_interface | 2a66bd2672b5154920457676bbaaef8ddd694640 | [
"Apache-2.0"
] | 5 | 2021-04-29T21:38:17.000Z | 2021-07-07T04:03:45.000Z | analog_sim/spice/ngspice.py | yrrapt/spice_interface | 2a66bd2672b5154920457676bbaaef8ddd694640 | [
"Apache-2.0"
] | null | null | null | analog_sim/spice/ngspice.py | yrrapt/spice_interface | 2a66bd2672b5154920457676bbaaef8ddd694640 | [
"Apache-2.0"
] | 1 | 2021-11-30T01:12:21.000Z | 2021-11-30T01:12:21.000Z | import os, re, subprocess
import numpy as np
from spyci import spyci
from PySpice.Spice.NgSpice.Shared import NgSpiceShared
from analog_sim.spice.generic import GenericSpiceInterface
| 30.194444 | 100 | 0.527599 |
56ee5b13733521aa2c6d7583b5c0eff94fcf5da5 | 728 | py | Python | producer/kwebmon_producer/json_schemas.py | nicolalamacchia/kwebmon | 13d8720314e9faff99b34dd5cb6c10d1cf45d786 | [
"MIT"
] | null | null | null | producer/kwebmon_producer/json_schemas.py | nicolalamacchia/kwebmon | 13d8720314e9faff99b34dd5cb6c10d1cf45d786 | [
"MIT"
] | 4 | 2021-04-28T03:19:37.000Z | 2021-04-28T13:10:27.000Z | producer/kwebmon_producer/json_schemas.py | nicolalamacchia/kwebmon | 13d8720314e9faff99b34dd5cb6c10d1cf45d786 | [
"MIT"
] | null | null | null | SITES_JSON_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"sites": {"type": "array"},
"items": {"$ref": "#/$defs/site"}
},
"$defs": {
"site": {
"type": "object",
"required": ["url"],
"prop... | 28 | 76 | 0.362637 |
56ee82e7574951e2d9ede6d10b02540ba09cf793 | 68 | py | Python | src/traits/__init__.py | 5monkeys/django-traits | 206c91f2738974fe5df0a12a7e94f1ba1dd28f39 | [
"BSD-3-Clause"
] | null | null | null | src/traits/__init__.py | 5monkeys/django-traits | 206c91f2738974fe5df0a12a7e94f1ba1dd28f39 | [
"BSD-3-Clause"
] | 2 | 2021-10-07T18:14:13.000Z | 2021-10-07T20:30:49.000Z | src/traits/__init__.py | 5monkeys/django-traits | 206c91f2738974fe5df0a12a7e94f1ba1dd28f39 | [
"BSD-3-Clause"
] | null | null | null | from .base import Trait
__version__ = "0.0.1"
__all__ = ("Trait",)
| 13.6 | 23 | 0.661765 |
56ee8b1c1d8d6917b939b39a1094ae81309532e0 | 4,404 | py | Python | willie/modules/whois.py | ezoSresyeK/willie | 5782628d15996d0cc901bb4ee27d89e9c7ad94ae | [
"EFL-2.0"
] | null | null | null | willie/modules/whois.py | ezoSresyeK/willie | 5782628d15996d0cc901bb4ee27d89e9c7ad94ae | [
"EFL-2.0"
] | null | null | null | willie/modules/whois.py | ezoSresyeK/willie | 5782628d15996d0cc901bb4ee27d89e9c7ad94ae | [
"EFL-2.0"
] | null | null | null | """
whois.py - Willie Whois module
Copyright 2014, Ellis Percival (Flyte) willie@failcode.co.uk
Licensed under the Eiffel Forum License 2.
http://willie.dftba.net
A module to enable Willie to perform WHOIS lookups on nicknames.
This can either be to have Willie perform lookups on behalf of
other people, or can be imp... | 24.331492 | 73 | 0.60604 |
56ef8a75099969f876b3cdd3157b7f50324c1ed5 | 1,188 | py | Python | setup.py | satyrius/cmsplugin-scripts | bffcaefa36377b0baeedc6a0006b2c3ce5a50a98 | [
"MIT"
] | null | null | null | setup.py | satyrius/cmsplugin-scripts | bffcaefa36377b0baeedc6a0006b2c3ce5a50a98 | [
"MIT"
] | null | null | null | setup.py | satyrius/cmsplugin-scripts | bffcaefa36377b0baeedc6a0006b2c3ce5a50a98 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from cmsplugin_scripts import __version__
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: O... | 29.7 | 73 | 0.661616 |
56efd06e8d45906c55ba8332a46d55aa2ff8358b | 698 | py | Python | test/fix_name.py | xhuang98/Dtect | 929d01945fd2768032dbb84d8ba1f62069132172 | [
"MIT"
] | 1 | 2021-12-25T01:43:43.000Z | 2021-12-25T01:43:43.000Z | test/fix_name.py | xhuang98/Dtect | 929d01945fd2768032dbb84d8ba1f62069132172 | [
"MIT"
] | null | null | null | test/fix_name.py | xhuang98/Dtect | 929d01945fd2768032dbb84d8ba1f62069132172 | [
"MIT"
] | 1 | 2021-09-02T15:30:04.000Z | 2021-09-02T15:30:04.000Z | import os
import json
if __name__ == '__main__':
f = open('coverage/codeclimate.json', 'r')
summary = json.load(f)
f.close()
for i in range(len(summary['source_files'])):
if summary['source_files'][i]['name'][0] == '/':
path = summary['source_files'][i]['name'].replace('//', '/')
... | 33.238095 | 72 | 0.524355 |
56f0adb6ffb23ba292badc3740453920de7e1ff6 | 42,030 | py | Python | src/move_arm/src/projik_example.py | citronella3alain/baxterDraw | c050254e8b4b8d4f5087e8743a34289844138e0c | [
"MIT"
] | null | null | null | src/move_arm/src/projik_example.py | citronella3alain/baxterDraw | c050254e8b4b8d4f5087e8743a34289844138e0c | [
"MIT"
] | null | null | null | src/move_arm/src/projik_example.py | citronella3alain/baxterDraw | c050254e8b4b8d4f5087e8743a34289844138e0c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from moveit_msgs.srv import GetPositionIK, GetPositionIKRequest, GetPositionIKResponse
from geometry_msgs.msg import PoseStamped
from moveit_commander import MoveGroupCommander
import numpy as np
from numpy import linalg
import sys
# Python's syntax for a main() method
if __name__ ==... | 39.688385 | 115 | 0.550036 |
56f2e5d5d632d949b005c992def0743a49363138 | 269 | py | Python | day4/grid.py | Teckat/Python-Webinar | bc72f85487603fcde44ccd367ab362ad0cfb712b | [
"MIT"
] | null | null | null | day4/grid.py | Teckat/Python-Webinar | bc72f85487603fcde44ccd367ab362ad0cfb712b | [
"MIT"
] | null | null | null | day4/grid.py | Teckat/Python-Webinar | bc72f85487603fcde44ccd367ab362ad0cfb712b | [
"MIT"
] | null | null | null | import tkinter as tk
# Create a window
root = tk.Tk()
name1 = tk.Label(root, text="Aman")
name2 = tk.Label(root, text="Rahul")
name3 = tk.Label(root, text="Manoj")
name1.grid(row=0, column=0)
name2.grid(row=1, column=1)
name3.grid(row=3, column=3)
root.mainloop()
| 16.8125 | 36 | 0.684015 |
56f43352bfe59575a440aa446f6337c18f283182 | 1,747 | py | Python | 03LinkedList/143ReorderList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | 03LinkedList/143ReorderList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | 03LinkedList/143ReorderList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Editor: Zhao Xinlu
School: BUPT
Date: 2018-04-11
"""
# Definition for singly-linked list. | 21.048193 | 74 | 0.507728 |
56f4fe4a463dd38569b76ab12f231c84b957ff91 | 2,409 | py | Python | libraries/colors/colors_example1.py | est/nodebox-gl | f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d | [
"BSD-3-Clause"
] | 1 | 2015-09-29T14:22:49.000Z | 2015-09-29T14:22:49.000Z | libraries/colors/colors_example1.py | est/nodebox-gl | f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d | [
"BSD-3-Clause"
] | 1 | 2015-09-29T14:23:35.000Z | 2015-09-30T02:33:13.000Z | libraries/colors/colors_example1.py | est/nodebox-gl | f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d | [
"BSD-3-Clause"
] | null | null | null | # ANALOG COLORS
# Import the library
try:
# This is the statement you normally use.
colors = ximport("colors")
except ImportError:
# But since these examples are "inside" the library
# we may need to try something different when
# the library is not located in /Application Support
colors = ximp... | 28.341176 | 68 | 0.628892 |
56f59a848cb0e6dafae0001284fd9453da3b89e8 | 27 | py | Python | code/cyclegan/__init__.py | karl-joan/text2art-gan | 86370667f9a62bab95968abe1990dcaa4760b333 | [
"MIT"
] | 5 | 2021-10-30T13:40:41.000Z | 2022-03-20T04:48:45.000Z | code/cyclegan/__init__.py | karl-joan/text2art-gan | 86370667f9a62bab95968abe1990dcaa4760b333 | [
"MIT"
] | null | null | null | code/cyclegan/__init__.py | karl-joan/text2art-gan | 86370667f9a62bab95968abe1990dcaa4760b333 | [
"MIT"
] | 2 | 2021-09-06T03:45:04.000Z | 2022-03-13T03:23:49.000Z | from .main import cyclegan
| 13.5 | 26 | 0.814815 |
56f6dc86c3ae14b0448108e0f2a5fb1570174b18 | 1,875 | py | Python | base_site/mainapp/telegram_bot/handlers/custom_command_handler.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 4 | 2020-01-21T00:21:44.000Z | 2021-06-15T19:38:36.000Z | base_site/mainapp/telegram_bot/handlers/custom_command_handler.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 173 | 2019-11-18T08:19:44.000Z | 2021-09-08T01:37:19.000Z | base_site/mainapp/telegram_bot/handlers/custom_command_handler.py | ricardochaves/financeiro-bot | 2c48be4355e3c8630c36aa846c16042f22b88271 | [
"MIT"
] | 3 | 2020-01-28T19:19:35.000Z | 2021-05-01T02:33:36.000Z | from typing import Callable
from typing import List
from telegram import MessageEntity
from telegram import Update
from telegram.ext import Handler
| 32.894737 | 117 | 0.5936 |
56f77dfab2b19510099200dcfd2b7bf839aee11a | 175 | py | Python | rainbowconnection/sources/__init__.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | 6 | 2019-09-04T20:22:02.000Z | 2020-12-30T05:00:10.000Z | rainbowconnection/sources/__init__.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | 8 | 2019-05-23T18:06:51.000Z | 2020-02-13T22:15:07.000Z | rainbowconnection/sources/__init__.py | zkbt/rainbow-connection | 53828fd0b63a552a22a6aa38393cefda27c61b9a | [
"MIT"
] | null | null | null | from .spectrum import Spectrum
from .blank import Blank
from .thermal import Thermal
from .sun import Sun
from .lightbulbs import * # , LED, CFL
# from .PHOENIX import Star
| 21.875 | 39 | 0.76 |