hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
643b4979b58a4049604d5d6693576339e883c03f | 146 | py | Python | ASCII_value.py | RAVURISREESAIHARIKRISHNA/Python-2.7.12-3.5.2- | b2626a5a9bd5630dfadba252bbc00760597fe304 | [
"MIT"
] | null | null | null | ASCII_value.py | RAVURISREESAIHARIKRISHNA/Python-2.7.12-3.5.2- | b2626a5a9bd5630dfadba252bbc00760597fe304 | [
"MIT"
] | null | null | null | ASCII_value.py | RAVURISREESAIHARIKRISHNA/Python-2.7.12-3.5.2- | b2626a5a9bd5630dfadba252bbc00760597fe304 | [
"MIT"
] | null | null | null | print("Enter a character:\n")
ch=input()
while(len(ch)!=1):
print("\nShould Enter single Character...RETRY!")
ch=input()
print(ord(ch))
| 20.857143 | 52 | 0.636986 | 22 | 146 | 4.227273 | 0.636364 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.143836 | 146 | 6 | 53 | 24.333333 | 0.736 | 0 | 0 | 0.333333 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ff2fe5e48f7156257838f8a74aad6873cfef3b8f | 377 | py | Python | tests/platform_tests/test_killed_pid.py | noahspurrier/pexpect | 7999ca657997e78febfb3fb89cfcc066d50bf788 | [
"Unlicense"
] | 8 | 2016-05-09T02:02:36.000Z | 2021-11-23T19:33:19.000Z | tests/platform_tests/test_killed_pid.py | noahspurrier/pexpect | 7999ca657997e78febfb3fb89cfcc066d50bf788 | [
"Unlicense"
] | 1 | 2020-11-12T04:05:29.000Z | 2020-11-12T04:05:29.000Z | tests/platform_tests/test_killed_pid.py | noahspurrier/pexpect | 7999ca657997e78febfb3fb89cfcc066d50bf788 | [
"Unlicense"
] | 7 | 2017-08-28T20:55:50.000Z | 2021-11-23T19:33:28.000Z | #!/usr/bin/env python
import os, time, signal
import expyct
e = expyct.expyct ('/bin/sh', '-i')
print 'pid,fd:', e.pid, e.fd
print 'isAlive:', e.isAlive()
# Treat it brusquely.
print 'sending SIGKILL...'
os.kill (e.pid, signal.SIGKILL)
time.sleep (1)
print os.read(e.fd, 1000)
print 'isAlive:', e.isAlive()
e.expect('\#... | 20.944444 | 35 | 0.636605 | 66 | 377 | 3.636364 | 0.5 | 0.1 | 0.108333 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015291 | 0.132626 | 377 | 17 | 36 | 22.176471 | 0.718654 | 0.106101 | 0 | 0.142857 | 0 | 0 | 0.191045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ff393509cfca4e9beb4ae894a57103208020829e | 359 | py | Python | 051 - 100/ex078.py | SocrammBR/Desafios-Python-CursoEmVideo | bd2454a24134500343ece91b936c169d3a66f89e | [
"MIT"
] | null | null | null | 051 - 100/ex078.py | SocrammBR/Desafios-Python-CursoEmVideo | bd2454a24134500343ece91b936c169d3a66f89e | [
"MIT"
] | null | null | null | 051 - 100/ex078.py | SocrammBR/Desafios-Python-CursoEmVideo | bd2454a24134500343ece91b936c169d3a66f89e | [
"MIT"
] | null | null | null | lista = []
for c in range(0, 5):
lista.append(int(input(f'Digite um valor para a posição {c}: ')))
print('=-=' * 10)
print(f'Você digitou os valores {lista}')
print(f'O maior valor digitado é o {max(lista)} e ele está na posição {lista.index(max(lista))}')
print(f'O menor valor digitado é o {min(lista)} e ele está... | 35.9 | 97 | 0.674095 | 66 | 359 | 3.666667 | 0.530303 | 0.07438 | 0.090909 | 0.099174 | 0.264463 | 0.264463 | 0.264463 | 0.264463 | 0 | 0 | 0 | 0.013115 | 0.150418 | 359 | 10 | 98 | 35.9 | 0.780328 | 0 | 0 | 0 | 0 | 0.285714 | 0.677778 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
ff4461b2ff3d0483ed450cbbcb23171919aee2cc | 1,042 | py | Python | gelada_tests.py | marcysweber/lifetime-repro-success | d03f11cd37a7bbc4c07f185f0f2de88d5329b198 | [
"MIT"
] | null | null | null | gelada_tests.py | marcysweber/lifetime-repro-success | d03f11cd37a7bbc4c07f185f0f2de88d5329b198 | [
"MIT"
] | null | null | null | gelada_tests.py | marcysweber/lifetime-repro-success | d03f11cd37a7bbc4c07f185f0f2de88d5329b198 | [
"MIT"
] | null | null | null | import unittest
from agent import *
from completesimulation import HamadryasSim, HamaPopulation, GeladaSim, GelPopulation
from dispersal import HamadryasDispersal, GeladaDispersal
from group import HamadryasGroup, GeladaGroup
from seedgroups import HamadryasSeed, GeladaSeed
class DispersalTests(unittest.TestCase):
... | 20.84 | 85 | 0.664107 | 114 | 1,042 | 5.938596 | 0.45614 | 0.093058 | 0.146233 | 0.177253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015686 | 0.265835 | 1,042 | 49 | 86 | 21.265306 | 0.869281 | 0 | 0 | 0.294118 | 0 | 0 | 0.00096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0.294118 | 0.176471 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ff4ed90e32aa5937e34af07b872734dcfeaa44fc | 1,077 | py | Python | daily-problems/Day3/problem3.py | jeffreycshelton/ghp-challenges | c19e6b9964818674502bb096fc87f32146af1ad0 | [
"MIT"
] | null | null | null | daily-problems/Day3/problem3.py | jeffreycshelton/ghp-challenges | c19e6b9964818674502bb096fc87f32146af1ad0 | [
"MIT"
] | null | null | null | daily-problems/Day3/problem3.py | jeffreycshelton/ghp-challenges | c19e6b9964818674502bb096fc87f32146af1ad0 | [
"MIT"
] | null | null | null | '''
An N x N board contains only 0s and 1s. In each move, you can swap any 2 rows with each other, or any 2 columns with each other.
What is the minimum number of moves to transform the board into a "chessboard" - a board where no 0s and no 1s are 4-directionally
adjacent? If the task is impossible, return -1.
Examp... | 26.268293 | 131 | 0.685237 | 192 | 1,077 | 3.84375 | 0.46875 | 0.01897 | 0.01626 | 0.02168 | 0.054201 | 0.054201 | 0 | 0 | 0 | 0 | 0 | 0.104019 | 0.214485 | 1,077 | 41 | 132 | 26.268293 | 0.768322 | 0.941504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ff60dbfd902026bd5649718bd10ab9c193a8b52b | 537 | py | Python | contxt/services/health.py | ndustrialio/contxt-sdk-python-control | e87930eb65853a314eb118ea5cbc0386d2188db2 | [
"0BSD"
] | null | null | null | contxt/services/health.py | ndustrialio/contxt-sdk-python-control | e87930eb65853a314eb118ea5cbc0386d2188db2 | [
"0BSD"
] | null | null | null | contxt/services/health.py | ndustrialio/contxt-sdk-python-control | e87930eb65853a314eb118ea5cbc0386d2188db2 | [
"0BSD"
] | null | null | null | from ..models.health import Health
from .api import ConfiguredLegacyApi
from ..utils.config import ContxtEnvironmentConfig
class HealthService(ConfiguredLegacyApi):
"""Health API client"""
def __init__(self, env_config: ContxtEnvironmentConfig, **kwargs) -> None:
super().__init__(env_config=env_confi... | 35.8 | 89 | 0.724395 | 66 | 537 | 5.621212 | 0.469697 | 0.072776 | 0.070081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1527 | 537 | 14 | 90 | 38.357143 | 0.815385 | 0.031657 | 0 | 0 | 0 | 0 | 0.050584 | 0.050584 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ff817a7a0d61e3b475af75d50333c2d73e0e1890 | 560 | py | Python | mailtemplates/lib/celery_tasks.py | axant/tgapp-mailtemplates | 2656746d67fe87e4e0e47c1e079f54375799751b | [
"MIT"
] | 2 | 2017-08-07T07:59:20.000Z | 2021-01-13T07:09:06.000Z | mailtemplates/lib/celery_tasks.py | axant/tgapp-mailtemplates | 2656746d67fe87e4e0e47c1e079f54375799751b | [
"MIT"
] | 2 | 2018-05-10T14:37:11.000Z | 2020-11-30T10:27:53.000Z | mailtemplates/lib/celery_tasks.py | axant/tgapp-mailtemplates | 2656746d67fe87e4e0e47c1e079f54375799751b | [
"MIT"
] | 4 | 2017-09-11T10:21:43.000Z | 2019-12-04T17:13:08.000Z | from tgext.celery.celery import celery_app
from tgext.mailer import get_mailer
from tg import config
import logging
celery_app.config_from_object(config.get('celery_configuration_object'))
log = logging.getLogger(__name__)
@celery_app.task(name='mailtemplates_async_send_email')
def mailtemplates_async_send_email(me... | 31.111111 | 72 | 0.810714 | 75 | 560 | 5.706667 | 0.4 | 0.168224 | 0.205607 | 0.252336 | 0.158879 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103571 | 560 | 17 | 73 | 32.941176 | 0.85259 | 0.082143 | 0 | 0 | 0 | 0 | 0.257874 | 0.230315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ff87fd32c845388ef17f52500f94781af0ba2349 | 65 | py | Python | tools/common.py | Wenslauv/RekiScript | 11aaf19191bf17df78cb1b64a5a15b435e950248 | [
"MIT"
] | 1 | 2017-12-04T21:46:03.000Z | 2017-12-04T21:46:03.000Z | tools/common.py | Wenslauv/RekiScript | 11aaf19191bf17df78cb1b64a5a15b435e950248 | [
"MIT"
] | null | null | null | tools/common.py | Wenslauv/RekiScript | 11aaf19191bf17df78cb1b64a5a15b435e950248 | [
"MIT"
] | null | null | null | #!usr/bin/python
class Enviroment:
sets = []
banned = [] | 13 | 17 | 0.569231 | 7 | 65 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261538 | 65 | 5 | 18 | 13 | 0.770833 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ff9237e081bf50c3c77f72e916e665bdbbd7fa63 | 499 | py | Python | PedSimulation/example/listener.py | HDL951236874/PedSimulation | 153882289477c93306c38f9e3a41f9cfeb53f261 | [
"Apache-2.0"
] | 1 | 2018-08-15T17:42:58.000Z | 2018-08-15T17:42:58.000Z | PedSimulation/example/listener.py | HDL951236874/PedSimulation | 153882289477c93306c38f9e3a41f9cfeb53f261 | [
"Apache-2.0"
] | null | null | null | PedSimulation/example/listener.py | HDL951236874/PedSimulation | 153882289477c93306c38f9e3a41f9cfeb53f261 | [
"Apache-2.0"
] | null | null | null | from PedSimulation.scene import SceneListener
from PedSimulation.entity import Agent, RotateAgent
import math
class PedestrianEscapeListener(SceneListener):
def on_added(self):
pass
def on_begin(self):
pass
def on_stepped(self):
for agent in list(set(self.scene.entities_of_type(Ag... | 26.263158 | 120 | 0.693387 | 62 | 499 | 5.435484 | 0.483871 | 0.059347 | 0.065282 | 0.077151 | 0.154303 | 0.154303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222445 | 499 | 18 | 121 | 27.722222 | 0.868557 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.214286 | 0.214286 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ff9a64f56c0178f697af7747de45ea9964aae596 | 281 | py | Python | cupyx/fallback_mode/__init__.py | prkhrsrvstv1/cupy | ea86c8225b575af9d2855fb77a306cf86fd098ea | [
"MIT"
] | 6,180 | 2016-11-01T14:22:30.000Z | 2022-03-31T08:39:20.000Z | cupyx/fallback_mode/__init__.py | prkhrsrvstv1/cupy | ea86c8225b575af9d2855fb77a306cf86fd098ea | [
"MIT"
] | 6,281 | 2016-12-22T07:42:31.000Z | 2022-03-31T19:57:02.000Z | cupyx/fallback_mode/__init__.py | prkhrsrvstv1/cupy | ea86c8225b575af9d2855fb77a306cf86fd098ea | [
"MIT"
] | 829 | 2017-02-23T05:46:12.000Z | 2022-03-27T17:40:03.000Z | from cupy import _util
# Attributes and Methods for fallback_mode
# Auto-execute numpy method when corresponding cupy method is not found
# "NOQA" to suppress flake8 warning
from cupyx.fallback_mode.fallback import numpy # NOQA
_util.experimental('cupyx.fallback_mode.numpy')
| 25.545455 | 71 | 0.80427 | 40 | 281 | 5.525 | 0.65 | 0.162896 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.13879 | 281 | 10 | 72 | 28.1 | 0.909091 | 0.530249 | 0 | 0 | 0 | 0 | 0.19685 | 0.19685 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ff9bff7f6b6d361563d5e538e9f0bfbc7b26503b | 189 | py | Python | tools/intogen/lib/python/intogensm/command/qc.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | 1 | 2021-02-05T13:19:58.000Z | 2021-02-05T13:19:58.000Z | chapter2/intogen-mutations/master/lib/python/intogensm/command/qc.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter2/intogen-mutations/master/lib/python/intogensm/command/qc.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | from intogensm.command import RunCommand
class QcCommand(RunCommand):
cmd_name = "qc"
def execute(self):
self._wok_run(self.instance_name, self.conf_builder, "intogen-mutations:qc") | 21 | 78 | 0.777778 | 26 | 189 | 5.461538 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 189 | 9 | 78 | 21 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ffa2b28e2ebf7846566037235720550d96b101ca | 97 | py | Python | tick/solver/history/__init__.py | sumau/tick | 1b56924a35463e12f7775bc0aec182364f26f2c6 | [
"BSD-3-Clause"
] | 411 | 2017-03-30T15:22:05.000Z | 2022-03-27T01:58:34.000Z | tick/solver/history/__init__.py | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 345 | 2017-04-13T14:53:20.000Z | 2022-03-26T00:46:22.000Z | tick/solver/history/__init__.py | saurabhdash/tick | bbc561804eb1fdcb4c71b9e3e2d83a66e7b13a48 | [
"BSD-3-Clause"
] | 102 | 2017-04-25T11:47:53.000Z | 2022-02-15T11:45:49.000Z | # License: BSD 3 clause
# import tick.base
from .history import History
__all__ = ["History"]
| 12.125 | 28 | 0.71134 | 13 | 97 | 5 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.185567 | 97 | 7 | 29 | 13.857143 | 0.810127 | 0.391753 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ffa5996931310767e54ddf82ad1874e40060f092 | 133,746 | py | Python | pysnmp-with-texts/WIENER-CRATE-MIB.py | cisco-kusanagi/mibs.snmplabs.com | 48bb18954e5db428383114ff13b372b9d0cccfb2 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/WIENER-CRATE-MIB.py | copslock/cisco-kusanagi_mibs.snmplabs.com | 48bb18954e5db428383114ff13b372b9d0cccfb2 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/WIENER-CRATE-MIB.py | cisco-kusanagi/mibs.snmplabs.com | 48bb18954e5db428383114ff13b372b9d0cccfb2 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module WIENER-CRATE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///home/tin/Dev/mibs.snmplabs.com/asn1/WIENER-CRATE-MIB
# Produced by pysmi-0.3.4 at Fri Jan 31 21:36:11 2020
# On host bier platform Linux version 5.4.0-3-amd64 by user tin
# Using Python version 3.7.6 (default, Jan 19 2020, 22:34:5... | 243.617486 | 43,110 | 0.70447 | 17,402 | 133,746 | 5.414205 | 0.292782 | 0.043686 | 0.07645 | 0.008109 | 0.395508 | 0.300028 | 0.26461 | 0.238893 | 0.201819 | 0.178618 | 0 | 0.211519 | 0.115585 | 133,746 | 548 | 43,111 | 244.062044 | 0.585001 | 0.002318 | 0 | 0.005587 | 0 | 0.128492 | 0.351383 | 0.019284 | 0 | 0 | 0.00027 | 0 | 0 | 1 | 0 | false | 0.001862 | 0.011173 | 0 | 0.039106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ffada699ca513205ae6582e75081ed097268d1d4 | 373 | py | Python | gallery/sitemap.py | VasiliyBologov/i-bologova.info | 1671f67fde9d7e930fe04b97f2b633a09f812891 | [
"MIT"
] | null | null | null | gallery/sitemap.py | VasiliyBologov/i-bologova.info | 1671f67fde9d7e930fe04b97f2b633a09f812891 | [
"MIT"
] | 5 | 2021-01-27T19:42:29.000Z | 2021-01-31T23:20:25.000Z | gallery/sitemap.py | VasiliyBologov/i-bologova.info | 1671f67fde9d7e930fe04b97f2b633a09f812891 | [
"MIT"
] | null | null | null | from django.contrib.sitemaps import Sitemap
# from .models import RequestModel
# import ClientPortal.settings as set
class StaticViewSitemap(Sitemap):
changefreq = "monthly"
priority = 0.8
def items(self):
# return RequestModel.objects.all()
return ['/', '/gallery']
def location(self... | 21.941176 | 43 | 0.659517 | 41 | 373 | 6 | 0.707317 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007067 | 0.241287 | 373 | 16 | 44 | 23.3125 | 0.862191 | 0.316354 | 0 | 0 | 0 | 0 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
440a3ebd82cc9dc3e3bb13f53ef45768ad142177 | 1,044 | py | Python | qcloudsdkdfw/DescribeInstancesOfSecurityGroupRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkdfw/DescribeInstancesOfSecurityGroupRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | qcloudsdkdfw/DescribeInstancesOfSecurityGroupRequest.py | f3n9/qcloudcli | b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class DescribeInstancesOfSecurityGroupRequest(Request):
def __init__(self):
super(DescribeInstancesOfSecurityGroupRequest, self).__init__(
'dfw', 'qcloudcliV1', 'DescribeInstancesOfSecurityGroup', 'dfw.api.qcloud.com')
def... | 26.1 | 91 | 0.653257 | 125 | 1,044 | 5.232 | 0.24 | 0.045872 | 0.107034 | 0.129969 | 0.198777 | 0.198777 | 0 | 0 | 0 | 0 | 0 | 0.00243 | 0.211686 | 1,044 | 39 | 92 | 26.769231 | 0.792224 | 0.020115 | 0 | 0 | 0 | 0 | 0.115573 | 0.031342 | 0 | 0 | 0 | 0 | 0 | 1 | 0.44 | false | 0 | 0.04 | 0.2 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4444bc77c603087cc0d0c30b0c6e68952de62ec2 | 605 | py | Python | bob/pipelines/transformers/linearize.py | bioidiap/bob.pipelines | cbefdaf3b384ee11cb26a279281f007adc2d8f19 | [
"BSD-3-Clause"
] | 1 | 2020-10-13T19:58:44.000Z | 2020-10-13T19:58:44.000Z | bob/pipelines/transformers/linearize.py | bioidiap/bob.pipelines | cbefdaf3b384ee11cb26a279281f007adc2d8f19 | [
"BSD-3-Clause"
] | null | null | null | bob/pipelines/transformers/linearize.py | bioidiap/bob.pipelines | cbefdaf3b384ee11cb26a279281f007adc2d8f19 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from sklearn.preprocessing import FunctionTransformer
from ..wrappers import wrap
def linearize(X):
X = np.asarray(X)
return np.reshape(X, (X.shape[0], -1))
class Linearize(FunctionTransformer):
"""Extracts features by simply concatenating all elements of the data into
one long ... | 22.407407 | 78 | 0.700826 | 71 | 605 | 5.859155 | 0.605634 | 0.009615 | 0.076923 | 0.120192 | 0.149038 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003976 | 0.168595 | 605 | 26 | 79 | 23.269231 | 0.823062 | 0.145455 | 0 | 0 | 0 | 0 | 0.043393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.230769 | 0.153846 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4448c994afdb523624b18ad23cde93ffb835356c | 135 | py | Python | sample/django_sample/app/celery_tasks/urls.py | knroy/celery-rmq | 63220db4bc82ae7767c18713bf3d19679d44aaf8 | [
"MIT"
] | null | null | null | sample/django_sample/app/celery_tasks/urls.py | knroy/celery-rmq | 63220db4bc82ae7767c18713bf3d19679d44aaf8 | [
"MIT"
] | 4 | 2021-03-30T13:14:35.000Z | 2021-09-22T18:57:04.000Z | sample/django_sample/app/celery_tasks/urls.py | knroy/celery-rmq | 63220db4bc82ae7767c18713bf3d19679d44aaf8 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import CeleryTestView
urlpatterns = [
path('', CeleryTestView.as_view(), name='Test')
]
| 16.875 | 51 | 0.718519 | 16 | 135 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 135 | 7 | 52 | 19.285714 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4477e5597c767d973e58b76f470f5ecf886c4c66 | 724 | py | Python | 4. Algorithms - Sorting/4 - QuickSort.py | PacktPublishing/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | 25 | 2021-01-20T19:09:05.000Z | 2022-02-02T01:29:46.000Z | 4. Algorithms - Sorting/4 - QuickSort.py | EmmaMuhleman1/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | null | null | null | 4. Algorithms - Sorting/4 - QuickSort.py | EmmaMuhleman1/Data-Structures-and-Algorithms-The-Complete-Masterclass | a4f34ecaa23682df62763e3b6b54709383f45c0b | [
"MIT"
] | 23 | 2021-01-20T19:09:12.000Z | 2022-03-23T02:50:05.000Z | def quickSort(my_array):
qshelper(my_array, 0, len(my_array) - 1)
return my_array
def qshelper(my_array, start, end):
if start >= end:
return
pivot = start
left = start + 1
right = end
while right >= left:
if my_array[left] > my_array[pivot] and my_array[right] < ... | 26.814815 | 82 | 0.585635 | 103 | 724 | 3.893204 | 0.165049 | 0.401496 | 0.209476 | 0.209476 | 0.488778 | 0.431421 | 0.299252 | 0.299252 | 0 | 0 | 0 | 0.013725 | 0.29558 | 724 | 27 | 83 | 26.814815 | 0.772549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2b7da2d649e5c613d223dc135c5af32c5f4490b3 | 360 | py | Python | laa_court_data_api_app/models/hearing_events/hearing_events_result.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | 1 | 2022-01-27T14:28:40.000Z | 2022-01-27T14:28:40.000Z | laa_court_data_api_app/models/hearing_events/hearing_events_result.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | 16 | 2022-01-28T11:01:27.000Z | 2022-03-30T14:01:11.000Z | laa_court_data_api_app/models/hearing_events/hearing_events_result.py | ministryofjustice/laa-court-data-api | 2e79faac7469f0b31ecca0539906d281db08f86c | [
"MIT"
] | null | null | null | from typing import Optional
from uuid import UUID
from pydantic import BaseModel
from laa_court_data_api_app.models.hearing_events.hearing_event.result.hearing_event import HearingEvent
class HearingEventsResult(BaseModel):
hearing_id: Optional[UUID] = None
has_active_hearing: Optional[bool] = None
even... | 27.692308 | 104 | 0.811111 | 47 | 360 | 6 | 0.553191 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127778 | 360 | 12 | 105 | 30 | 0.898089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2baba38d435918672703d377ebbbf43ec6e88eab | 65 | py | Python | examples/xml_parsing/parser.py | abhiabhi94/learn-python | 448211b4b9fa828f076618624b1ff00144adfd9f | [
"MIT"
] | null | null | null | examples/xml_parsing/parser.py | abhiabhi94/learn-python | 448211b4b9fa828f076618624b1ff00144adfd9f | [
"MIT"
] | 1 | 2021-06-20T23:14:59.000Z | 2021-06-23T23:23:15.000Z | examples/xml_parsing/parser.py | abhiabhi94/learn-python | 448211b4b9fa828f076618624b1ff00144adfd9f | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as ET
tree = ET.parse('data.xml')
| 13 | 34 | 0.723077 | 11 | 65 | 4.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 65 | 4 | 35 | 16.25 | 0.839286 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2bb846055e38e40b97773a8beeb6b6d6bb5b5103 | 217 | py | Python | Stat_Calculator/Median.py | cy275/Statistics_Calculator | c98dec271df98465a87180a170a786bcf817800c | [
"MIT"
] | null | null | null | Stat_Calculator/Median.py | cy275/Statistics_Calculator | c98dec271df98465a87180a170a786bcf817800c | [
"MIT"
] | null | null | null | Stat_Calculator/Median.py | cy275/Statistics_Calculator | c98dec271df98465a87180a170a786bcf817800c | [
"MIT"
] | null | null | null | def median(a):
a = sorted(a)
list_length = len(a)
num = list_length//2
if list_length % 2 == 0:
median_num = (a[num] + a[num + 1])/2
else:
median_num = a[num]
return median_num
| 21.7 | 44 | 0.539171 | 35 | 217 | 3.171429 | 0.4 | 0.144144 | 0.189189 | 0.234234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034014 | 0.322581 | 217 | 9 | 45 | 24.111111 | 0.721088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2bb97e161145ebe296754429cb5ea92a213a12a8 | 200 | py | Python | examples/readdir.py | jorge-imperial/mongo_ftdc | d17680d50d5d622af4cad5c0cef6632799faa1c7 | [
"Apache-2.0"
] | 2 | 2021-11-01T19:16:43.000Z | 2022-01-21T23:25:41.000Z | examples/readdir.py | jorge-imperial/mongo_ftdc | d17680d50d5d622af4cad5c0cef6632799faa1c7 | [
"Apache-2.0"
] | 3 | 2021-08-09T15:30:42.000Z | 2022-01-12T19:45:41.000Z | examples/readdir.py | jorge-imperial/mongo_ftdc | d17680d50d5d622af4cad5c0cef6632799faa1c7 | [
"Apache-2.0"
] | null | null | null | import pyftdc
import datetime
p = pyftdc.FTDCParser()
start = datetime.datetime.now()
p.parse_dir('/home/jorge/diagnostic.data', lazy=False)
end = datetime.datetime.now()
t = end - start
print(t)
| 15.384615 | 54 | 0.73 | 29 | 200 | 5 | 0.62069 | 0.22069 | 0.262069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 200 | 12 | 55 | 16.666667 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.135 | 0.135 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2bb9f0e678e202b31cadb3fc884ced215b44a897 | 270 | py | Python | alex/applications/PublicTransportInfoCS/slu/dailogregclassifier/download_models.py | oplatek/alex | 73af644ec35c8a1cd0c37cd478c2afc1db717e0b | [
"Apache-2.0"
] | 184 | 2015-02-11T04:14:41.000Z | 2022-03-24T21:43:58.000Z | alex/applications/PublicTransportInfoCS/slu/dailogregclassifier/download_models.py | oplatek/alex | 73af644ec35c8a1cd0c37cd478c2afc1db717e0b | [
"Apache-2.0"
] | 69 | 2015-01-11T04:57:22.000Z | 2019-04-24T10:25:56.000Z | alex/applications/PublicTransportInfoCS/slu/dailogregclassifier/download_models.py | oplatek/alex | 73af644ec35c8a1cd0c37cd478c2afc1db717e0b | [
"Apache-2.0"
] | 61 | 2015-03-04T10:52:13.000Z | 2022-03-04T12:14:06.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
if __name__ == '__main__':
import autopath
from alex.utils.config import online_update
if __name__ == '__main__':
online_update("applications/PublicTransportInfoCS/slu/dailogregclassifier/dailogreg.nbl.model.all")
| 27 | 103 | 0.744444 | 32 | 270 | 5.71875 | 0.8125 | 0.065574 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.118519 | 270 | 9 | 104 | 30 | 0.764706 | 0.155556 | 0 | 0.4 | 0 | 0 | 0.433628 | 0.362832 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2bc0a6d9ae4358943027c34522a1d14d56cc6696 | 331 | py | Python | ormar/queryset/__init__.py | smorokin/ormar | 56444f2638219d7dc55eb875aebde7fa0c7376c8 | [
"MIT"
] | null | null | null | ormar/queryset/__init__.py | smorokin/ormar | 56444f2638219d7dc55eb875aebde7fa0c7376c8 | [
"MIT"
] | null | null | null | ormar/queryset/__init__.py | smorokin/ormar | 56444f2638219d7dc55eb875aebde7fa0c7376c8 | [
"MIT"
] | null | null | null | from ormar.queryset.filter_query import FilterQuery
from ormar.queryset.limit_query import LimitQuery
from ormar.queryset.offset_query import OffsetQuery
from ormar.queryset.order_query import OrderQuery
from ormar.queryset.queryset import QuerySet
__all__ = ["QuerySet", "FilterQuery", "LimitQuery", "OffsetQuery", "Or... | 41.375 | 80 | 0.833837 | 40 | 331 | 6.7 | 0.35 | 0.16791 | 0.317164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084592 | 331 | 7 | 81 | 47.285714 | 0.884488 | 0 | 0 | 0 | 0 | 0 | 0.151057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2bd1813d296493039e4852193d5160883c87b232 | 541 | py | Python | gammapy/spectrum/tests/test_cosmic_ray.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | 3 | 2019-01-28T12:21:14.000Z | 2019-02-10T19:58:07.000Z | gammapy/spectrum/tests/test_cosmic_ray.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | null | null | null | gammapy/spectrum/tests/test_cosmic_ray.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function, unicode_literals
from astropy.units import Quantity
from astropy.tests.helper import assert_quantity_allclose
from ...spectrum import cosmic_ray_flux
def test_cosmic_ray_flux():
energy... | 36.066667 | 82 | 0.768946 | 76 | 541 | 5.236842 | 0.644737 | 0.067839 | 0.09799 | 0.095477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017429 | 0.151571 | 541 | 14 | 83 | 38.642857 | 0.849673 | 0.201479 | 0 | 0 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0.071429 | 0.222222 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2bd2cb04bc788f882ea5018cf63f2a4ed80b9222 | 121,084 | py | Python | utils/graphUtils/graphML.py | VishnuDuttSharma/gnn_pathplanning | 57f7f46fa8ba4888e2a2044cfb0bc476ee235765 | [
"MIT"
] | 86 | 2020-04-04T17:01:20.000Z | 2022-03-21T02:28:35.000Z | utils/graphUtils/graphML.py | VishnuDuttSharma/gnn_pathplanning | 57f7f46fa8ba4888e2a2044cfb0bc476ee235765 | [
"MIT"
] | 4 | 2021-03-05T06:38:27.000Z | 2021-12-13T03:36:15.000Z | utils/graphUtils/graphML.py | VishnuDuttSharma/gnn_pathplanning | 57f7f46fa8ba4888e2a2044cfb0bc476ee235765 | [
"MIT"
] | 14 | 2020-05-06T03:59:27.000Z | 2021-08-02T20:08:56.000Z | # 2018/11/01~2018/07/12
# Fernando Gama, fgama@seas.upenn.edu.
"""
graphML.py Module for basic GSP and graph machine learning functions.
Functionals
LSIGF: Applies a linear shift-invariant graph filter
spectralGF: Applies a linear shift-invariant graph filter in spectral form
NVGF: Applies a node-variant graph filter... | 40.523427 | 128 | 0.593662 | 18,178 | 121,084 | 3.888767 | 0.04852 | 0.006819 | 0.023596 | 0.027444 | 0.723455 | 0.708134 | 0.692856 | 0.672995 | 0.663333 | 0.645848 | 0 | 0.009778 | 0.322602 | 121,084 | 2,987 | 129 | 40.536994 | 0.852064 | 0.565178 | 0 | 0.720994 | 0 | 0 | 0.032536 | 0 | 0 | 0 | 0 | 0.001004 | 0.076427 | 1 | 0.081952 | false | 0.002762 | 0.004604 | 0.001842 | 0.139963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2bd7372744ff008cb34a7c12fb5ed8ca17d97efa | 169 | py | Python | sshr/_compat.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | sshr/_compat.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | sshr/_compat.py | zhengxiaowai/sshm | af83e9c8dfc805747d978b8e9031bf57f057bebd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import six
if six.PY3:
from io import IOBase
file = (IOBase, six.StringIO)
else:
file = (file, six.StringIO)
| 15.363636 | 33 | 0.615385 | 25 | 169 | 4.16 | 0.68 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.224852 | 169 | 10 | 34 | 16.9 | 0.778626 | 0.248521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2be3ee5916e8f5c2ac55a7c16e76bb6e759a3c16 | 138 | py | Python | open_relation/hex/hex_setup.py | sx14/hierarchical-relationship | d9ed2f0c3394e435374cf3ab5afeb47a6a56ed9a | [
"MIT"
] | 1 | 2020-02-25T14:33:36.000Z | 2020-02-25T14:33:36.000Z | open_relation/hex/hex_setup.py | sx14/hierarchical-relationship | d9ed2f0c3394e435374cf3ab5afeb47a6a56ed9a | [
"MIT"
] | null | null | null | open_relation/hex/hex_setup.py | sx14/hierarchical-relationship | d9ed2f0c3394e435374cf3ab5afeb47a6a56ed9a | [
"MIT"
] | null | null | null | def hed_setup(E_h, E_e):
"""
使用理解矩阵构建HEX图
:param E_h: H-edge-mat
:param E_e: E-edge-mat
:return: G
"""
| 17.25 | 27 | 0.5 | 22 | 138 | 2.909091 | 0.5 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.355072 | 138 | 8 | 28 | 17.25 | 0.719101 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2beba62a9e0cee8f9493db9d64ca997d3d728388 | 128 | py | Python | apps/stats/urls.py | puertoricanDev/horas | 28597af13409edd088a71143d2f4c94cd7fd83f5 | [
"MIT"
] | 10 | 2015-01-18T02:39:35.000Z | 2021-11-09T22:53:10.000Z | apps/stats/urls.py | puertoricanDev/horas | 28597af13409edd088a71143d2f4c94cd7fd83f5 | [
"MIT"
] | 52 | 2015-03-02T17:46:23.000Z | 2022-02-10T13:23:11.000Z | apps/stats/urls.py | puertoricanDev/horas | 28597af13409edd088a71143d2f4c94cd7fd83f5 | [
"MIT"
] | 7 | 2015-03-02T01:23:35.000Z | 2021-11-09T22:58:39.000Z | from django.urls import re_path
from .views import StatsView
urlpatterns = [re_path("^$", StatsView.as_view(), name="stats")]
| 21.333333 | 64 | 0.734375 | 18 | 128 | 5.055556 | 0.722222 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117188 | 128 | 5 | 65 | 25.6 | 0.80531 | 0 | 0 | 0 | 0 | 0 | 0.054688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2bf980f962d85c683e4a5a92bb4fe4b362b3e624 | 137 | py | Python | python/hijack/sacrifice.py | mum-chen/funny | 551102d3ac340e6876cdc866879d2ebe3955ae39 | [
"MIT"
] | 1 | 2019-08-07T07:15:02.000Z | 2019-08-07T07:15:02.000Z | python/hijack/sacrifice.py | mum-chen/funny | 551102d3ac340e6876cdc866879d2ebe3955ae39 | [
"MIT"
] | null | null | null | python/hijack/sacrifice.py | mum-chen/funny | 551102d3ac340e6876cdc866879d2ebe3955ae39 | [
"MIT"
] | null | null | null | from kidnapper import Kidnapper, Human
@Kidnapper.ransom
class Sacrifice(Human):
def say_name(self):
print("I'm Sacrifice")
| 19.571429 | 38 | 0.715328 | 18 | 137 | 5.388889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182482 | 137 | 6 | 39 | 22.833333 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0.094891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
920ddf540885090281f353929aecf9d3ab349de1 | 2,583 | py | Python | cctbx/sgtbx/direct_space_asu/plane_group_reference_table.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | cctbx/sgtbx/direct_space_asu/plane_group_reference_table.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | cctbx/sgtbx/direct_space_asu/plane_group_reference_table.py | dperl-sol/cctbx_project | b9e390221a2bc4fd00b9122e97c3b79c632c6664 | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | from __future__ import absolute_import, division, print_function
from cctbx.sgtbx.direct_space_asu import direct_space_asu
from cctbx.sgtbx.direct_space_asu.short_cuts import *
from six.moves import range
def asu_01(): # p_1 (s.g. 1)
return (direct_space_asu('P 1')
& x0
& +x1
& y0
& +y1
& z0
... | 14.430168 | 64 | 0.487418 | 440 | 2,583 | 2.6 | 0.218182 | 0.192308 | 0.244755 | 0.297203 | 0.549825 | 0.412587 | 0.11014 | 0.06993 | 0.038462 | 0.038462 | 0 | 0.135356 | 0.336431 | 2,583 | 178 | 65 | 14.511236 | 0.532089 | 0.106078 | 0 | 0.509434 | 0 | 0 | 0.046705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.025157 | 0.113208 | 0.251572 | 0.006289 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
921bfda5daa5e5aedb5016a482cb96e480998f66 | 5,289 | py | Python | goutdotcom/flareaid/tests/test_models.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | goutdotcom/flareaid/tests/test_models.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | goutdotcom/flareaid/tests/test_models.py | Spiewart/goutdotcom | 0916155732a72fcb8c8a2fb0f4dd81efef618af8 | [
"MIT"
] | null | null | null | from decimal import *
import pytest
from .factories import FlareAidFactory
pytestmark = pytest.mark.django_db
class TestFlareAidMethods:
def test_get_absolute_url(self):
FlareAid = FlareAidFactory()
assert FlareAid.get_absolute_url() == f"/flareaid/{FlareAid.pk}/"
def test__str__(self):
... | 37.778571 | 138 | 0.687654 | 544 | 5,289 | 6.240809 | 0.145221 | 0.106922 | 0.151105 | 0.084831 | 0.805891 | 0.721649 | 0.693962 | 0.693962 | 0.668041 | 0.630044 | 0 | 0 | 0.238041 | 5,289 | 139 | 139 | 38.05036 | 0.842432 | 0.01626 | 0 | 0.45098 | 0 | 0 | 0.057444 | 0.005164 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.029412 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a6306394e78dfaf2105b04377d59dcb97286dd4c | 2,461 | py | Python | app/models.py | FrancisSakwa89/Pitch | f15c7c1edfd3cb1a6346272d619d04cf45d76ce9 | [
"MIT"
] | null | null | null | app/models.py | FrancisSakwa89/Pitch | f15c7c1edfd3cb1a6346272d619d04cf45d76ce9 | [
"MIT"
] | null | null | null | app/models.py | FrancisSakwa89/Pitch | f15c7c1edfd3cb1a6346272d619d04cf45d76ce9 | [
"MIT"
] | null | null | null | from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(UserMixin,db.Model):
__tablen... | 28.952941 | 81 | 0.686306 | 328 | 2,461 | 4.981707 | 0.253049 | 0.102815 | 0.128519 | 0.107711 | 0.480416 | 0.354345 | 0.326193 | 0.307222 | 0.226438 | 0.177479 | 0 | 0.014925 | 0.183259 | 2,461 | 84 | 82 | 29.297619 | 0.79801 | 0 | 0 | 0.214286 | 1 | 0 | 0.07561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.160714 | 0.089286 | 0.053571 | 0.839286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a63cf64b2a5d6ace86e0270e4980e19f395e411c | 843 | py | Python | scripts/initial/ssh_connection.py | zhaozhilong1993/demon | 9b5ccac3dc119d1a6c60fe202e52f9f42ab9f0e7 | [
"Apache-2.0"
] | null | null | null | scripts/initial/ssh_connection.py | zhaozhilong1993/demon | 9b5ccac3dc119d1a6c60fe202e52f9f42ab9f0e7 | [
"Apache-2.0"
] | null | null | null | scripts/initial/ssh_connection.py | zhaozhilong1993/demon | 9b5ccac3dc119d1a6c60fe202e52f9f42ab9f0e7 | [
"Apache-2.0"
] | 1 | 2021-06-06T01:42:50.000Z | 2021-06-06T01:42:50.000Z | #!/usr/bin/env python
# encoding: utf-8
import paramiko, base64
import optparse
import json
def generate_options():
p = optparse.OptionParser()
p.add_option("--address", "-a")
p.add_option("--username", "-u")
p.add_option("--password", "-p")
options, argument = p.parse_args()
return options
i... | 24.794118 | 80 | 0.655991 | 96 | 843 | 5.5625 | 0.604167 | 0.022472 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.217082 | 843 | 33 | 81 | 25.545455 | 0.80303 | 0.042705 | 0 | 0 | 1 | 0 | 0.069565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.115385 | 0.115385 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a63f684640a70017a7545761d3fed11e51096559 | 3,915 | py | Python | joecceasy/AbstractBaseClass.py | joetainment/joecceasy | ae21b4da9a40272dbb76299e68b62bbd40fa7681 | [
"MIT"
] | null | null | null | joecceasy/AbstractBaseClass.py | joetainment/joecceasy | ae21b4da9a40272dbb76299e68b62bbd40fa7681 | [
"MIT"
] | null | null | null | joecceasy/AbstractBaseClass.py | joetainment/joecceasy | ae21b4da9a40272dbb76299e68b62bbd40fa7681 | [
"MIT"
] | null | null | null | from . import Utils
Funcs = Utils.Funcs
classproperty = Utils.classproperty
class AbstractBaseClass:
"""
This class simply has some functionality we often
want on typical classes, such as ontoDict and ontoSelf
extend this as a habit when making new classes in apps etc
for init and ... | 37.285714 | 91 | 0.509068 | 335 | 3,915 | 5.922388 | 0.441791 | 0.060484 | 0.042339 | 0.052923 | 0.154234 | 0.094758 | 0.0625 | 0.0625 | 0 | 0 | 0 | 0.009123 | 0.412005 | 3,915 | 105 | 92 | 37.285714 | 0.852737 | 0.610473 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0 | 0.071429 | 0.285714 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a6505ed329561c50b318f13508b1e4e1df937816 | 318 | py | Python | test/on_yubikey/cli_piv/test_misc.py | timo-quinn/yubikey-manager | b4c49ae4da280b5c5a727840e9e25eed7fe1a469 | [
"BSD-2-Clause"
] | null | null | null | test/on_yubikey/cli_piv/test_misc.py | timo-quinn/yubikey-manager | b4c49ae4da280b5c5a727840e9e25eed7fe1a469 | [
"BSD-2-Clause"
] | 1 | 2018-05-07T07:34:23.000Z | 2018-05-07T13:44:29.000Z | test/on_yubikey/cli_piv/test_misc.py | timo-quinn/yubikey-manager | b4c49ae4da280b5c5a727840e9e25eed7fe1a469 | [
"BSD-2-Clause"
] | null | null | null | from ..util import ykman_cli
from .util import PivTestCase
class Misc(PivTestCase):
def test_info(self):
output = ykman_cli('piv', 'info')
self.assertIn('PIV version:', output)
def test_reset(self):
output = ykman_cli('piv', 'reset', '-f')
self.assertIn('Success!', output)
| 22.714286 | 48 | 0.628931 | 40 | 318 | 4.875 | 0.475 | 0.123077 | 0.14359 | 0.184615 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226415 | 318 | 13 | 49 | 24.461538 | 0.792683 | 0 | 0 | 0 | 0 | 0 | 0.116352 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a65e6044baae77db60b3bc2c3c62f3963a87b43d | 543 | py | Python | old/pepper1/src/libpepper/vals/functions/pepfunction.py | andybalaam/pepper | f0d12379c7c6e2d82003c0c1d6130bfac685e1c3 | [
"MIT"
] | 2 | 2018-12-19T16:32:46.000Z | 2019-01-10T09:00:33.000Z | old/pepper1/src/libpepper/vals/functions/pepfunction.py | andybalaam/pepper | f0d12379c7c6e2d82003c0c1d6130bfac685e1c3 | [
"MIT"
] | null | null | null | old/pepper1/src/libpepper/vals/functions/pepfunction.py | andybalaam/pepper | f0d12379c7c6e2d82003c0c1d6130bfac685e1c3 | [
"MIT"
] | null | null | null | # Copyright (C) 2011-2013 Andy Balaam and The Pepper Developers
# Released under the MIT License. See the file COPYING.txt for details.
# For just as each of us has one body with many members, and these members
# do not all have the same function, Romans 12 v4
from libpepper.values import PepValue
from pepcallable i... | 28.578947 | 74 | 0.731123 | 81 | 543 | 4.716049 | 0.740741 | 0.041885 | 0.057592 | 0.08377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025822 | 0.21547 | 543 | 18 | 75 | 30.166667 | 0.870892 | 0.565378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a6636d249a2294d9dccddc505815249b4d351f73 | 38 | py | Python | tbump/test/project/version_info.py | achary/tbump | 0d495308be4864d524069ef48fb82fc4b5dc1cd1 | [
"BSD-3-Clause"
] | 50 | 2021-03-27T04:22:09.000Z | 2022-03-29T20:45:11.000Z | tbump/test/project/version_info.py | achary/tbump | 0d495308be4864d524069ef48fb82fc4b5dc1cd1 | [
"BSD-3-Clause"
] | 38 | 2021-03-27T04:33:24.000Z | 2022-03-27T12:21:28.000Z | tbump/test/project/version_info.py | achary/tbump | 0d495308be4864d524069ef48fb82fc4b5dc1cd1 | [
"BSD-3-Clause"
] | 8 | 2021-04-03T18:24:52.000Z | 2022-01-10T13:29:39.000Z | version_info = (1, 2, 41, "alpha", 1)
| 19 | 37 | 0.578947 | 7 | 38 | 3 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 0.184211 | 38 | 1 | 38 | 38 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a66cf6d1de632f7861c7b9575e1f55f3109dc744 | 613 | py | Python | emell/computation/__init__.py | jakevoytko/emell | b26c643342ce0011fd574cb0848d2ba6182d8129 | [
"MIT"
] | 2 | 2020-02-13T05:47:47.000Z | 2020-03-06T17:38:33.000Z | emell/computation/__init__.py | jakevoytko/emell | b26c643342ce0011fd574cb0848d2ba6182d8129 | [
"MIT"
] | null | null | null | emell/computation/__init__.py | jakevoytko/emell | b26c643342ce0011fd574cb0848d2ba6182d8129 | [
"MIT"
] | null | null | null | """Pure math functions used by the ML routines."""
from emell.computation.constant import constant
from emell.computation.identity import identity
from emell.computation.l1_loss import l1_loss
from emell.computation.l2_loss import l2_loss
from emell.computation.quadratic_cost import quadratic_cost
from emell.computati... | 27.863636 | 81 | 0.768352 | 80 | 613 | 5.6125 | 0.2875 | 0.140312 | 0.311804 | 0.160356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01145 | 0.145188 | 613 | 21 | 82 | 29.190476 | 0.84542 | 0.071778 | 0 | 0 | 0 | 0 | 0.16341 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a670a32caad636895e701c144f72b994cbc8a8ed | 463 | py | Python | tutorials/overview.py | fatiando-bot/erizo | 91672f5a0183c309d679c655731ecc21bda03167 | [
"BSD-3-Clause"
] | null | null | null | tutorials/overview.py | fatiando-bot/erizo | 91672f5a0183c309d679c655731ecc21bda03167 | [
"BSD-3-Clause"
] | null | null | null | tutorials/overview.py | fatiando-bot/erizo | 91672f5a0183c309d679c655731ecc21bda03167 | [
"BSD-3-Clause"
] | null | null | null | """
.. _overview:
Overview
========
Brief description of Erizo and the main
functionality. It's a good idea to explain the package conventions.
The library
-----------
Most classes and functions are available through the :mod:`erizo` top level package.
"""
import erizo
##########################################... | 17.148148 | 84 | 0.557235 | 48 | 463 | 5.354167 | 0.708333 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005013 | 0.138229 | 463 | 26 | 85 | 17.807692 | 0.639098 | 0.704104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 3 |
a6bf990126c0ffb30b118e733c93268b58a336d4 | 2,088 | py | Python | src/python/test/test_wasserstein_distance.py | KirillErofeev/gudhi-devel | e2c58a7cf912281e1d4befba74b66b43f4923f18 | [
"MIT"
] | null | null | null | src/python/test/test_wasserstein_distance.py | KirillErofeev/gudhi-devel | e2c58a7cf912281e1d4befba74b66b43f4923f18 | [
"MIT"
] | null | null | null | src/python/test/test_wasserstein_distance.py | KirillErofeev/gudhi-devel | e2c58a7cf912281e1d4befba74b66b43f4923f18 | [
"MIT"
] | null | null | null | from gudhi.wasserstein import wasserstein_distance
import numpy as np
""" This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
Author(s): Theo Lacombe
Copyright (C) 2019 I... | 42.612245 | 103 | 0.669061 | 316 | 2,088 | 4.31962 | 0.268987 | 0.250549 | 0.311355 | 0.153846 | 0.52967 | 0.512821 | 0.353846 | 0.298901 | 0.203663 | 0.142857 | 0 | 0.107968 | 0.170498 | 2,088 | 48 | 104 | 43.5 | 0.680139 | 0.025862 | 0 | 0 | 0 | 0 | 0.023009 | 0 | 0 | 0 | 0 | 0 | 0.607143 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.107143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a6f09b24ca7257414fb79c328c463607d5eda58c | 496 | py | Python | pirates/kraken/KrakenGameFSM.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 81 | 2018-04-08T18:14:24.000Z | 2022-01-11T07:22:15.000Z | pirates/kraken/KrakenGameFSM.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 4 | 2018-09-13T20:41:22.000Z | 2022-01-08T06:57:00.000Z | pirates/kraken/KrakenGameFSM.py | Willy5s/Pirates-Online-Rewritten | 7434cf98d9b7c837d57c181e5dabd02ddf98acb7 | [
"BSD-3-Clause"
] | 26 | 2018-05-26T12:49:27.000Z | 2021-09-11T09:11:59.000Z | from direct.directnotify import DirectNotifyGlobal
from direct.fsm.FSM import FSM
class KrakenGameFSM(FSM):
notify = DirectNotifyGlobal.directNotify.newCategory('KrakenGameFSM')
def __init__(self, av):
FSM.__init__(self, 'KrakenGameFSM')
self.av = av
def enterRam(self):
pass
... | 21.565217 | 73 | 0.663306 | 53 | 496 | 6.056604 | 0.433962 | 0.074766 | 0.068536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241935 | 496 | 22 | 74 | 22.545455 | 0.853723 | 0 | 0 | 0.1875 | 0 | 0 | 0.052419 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.1875 | 0.125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5b2d84b22459ea2da20ab87f75e96c5083d7a8b4 | 1,142 | py | Python | jarviscli/tests/plugins/composed/plugin0.py | qwireq/Jarvis | 7d8aafd7e7c94ecc0eab2a09fa6484ae599606b8 | [
"MIT"
] | 1 | 2021-09-15T07:05:07.000Z | 2021-09-15T07:05:07.000Z | jarviscli/tests/plugins/composed/plugin0.py | qwireq/Jarvis | 7d8aafd7e7c94ecc0eab2a09fa6484ae599606b8 | [
"MIT"
] | null | null | null | jarviscli/tests/plugins/composed/plugin0.py | qwireq/Jarvis | 7d8aafd7e7c94ecc0eab2a09fa6484ae599606b8 | [
"MIT"
] | null | null | null | from plugin import Plugin
class Plugin0_Sub0(Plugin):
"""Doc"""
def require(self):
pass
def complete(self):
pass
def alias(self):
pass
def run(self, jarvis, s):
jarvis.say("++sub0++ " + s)
class Plugin3(Plugin):
"""Docu Plugin 3"""
def require(self):
... | 15.226667 | 35 | 0.531524 | 136 | 1,142 | 4.419118 | 0.205882 | 0.133111 | 0.183028 | 0.14975 | 0.690516 | 0.622296 | 0.622296 | 0.480865 | 0.409318 | 0.409318 | 0 | 0.025033 | 0.335377 | 1,142 | 74 | 36 | 15.432432 | 0.766798 | 0.030648 | 0 | 0.666667 | 0 | 0 | 0.070305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.422222 | false | 0.244444 | 0.022222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5b393e9dda0e3a6f26d4c13353e4051907dc10bd | 316 | py | Python | aws_managers/athena/queries/real_column_query.py | vahndi/aws-managers | bdbfb2b8a9258a53e3ea4dfbbfe5491a34113899 | [
"MIT"
] | null | null | null | aws_managers/athena/queries/real_column_query.py | vahndi/aws-managers | bdbfb2b8a9258a53e3ea4dfbbfe5491a34113899 | [
"MIT"
] | null | null | null | aws_managers/athena/queries/real_column_query.py | vahndi/aws-managers | bdbfb2b8a9258a53e3ea4dfbbfe5491a34113899 | [
"MIT"
] | null | null | null | from aws_managers.athena.queries.column_query import ColumnQuery
from aws_managers.athena.functions.aggregate import AvgMixin, \
GeometricMeanMixin, MaxMixin, MinMixin, SumMixin
class RealColumnQuery(
AvgMixin,
GeometricMeanMixin,
MaxMixin,
MinMixin,
SumMixin,
ColumnQuery
):
pass
| 19.75 | 64 | 0.756329 | 30 | 316 | 7.866667 | 0.633333 | 0.059322 | 0.127119 | 0.177966 | 0.423729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183544 | 316 | 15 | 65 | 21.066667 | 0.914729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.083333 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5b564cbe744cf89604240de71d98c52025fc0f8f | 1,793 | py | Python | src/xbase/layout/fill/tech.py | skyworksinc/xbase | fde050e928d5d89b5507c818b41f5ef3253f38cd | [
"Apache-2.0"
] | 3 | 2020-10-15T04:33:57.000Z | 2021-12-22T07:42:30.000Z | src/xbase/layout/fill/tech.py | skyworksinc/xbase | fde050e928d5d89b5507c818b41f5ef3253f38cd | [
"Apache-2.0"
] | null | null | null | src/xbase/layout/fill/tech.py | skyworksinc/xbase | fde050e928d5d89b5507c818b41f5ef3253f38cd | [
"Apache-2.0"
] | 4 | 2020-04-27T16:42:57.000Z | 2021-10-19T15:25:59.000Z | # SPDX-License-Identifier: Apache-2.0
# Copyright 2019 Blue Cheetah Analog Design 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
#
# U... | 29.883333 | 80 | 0.707195 | 244 | 1,793 | 5.065574 | 0.520492 | 0.045307 | 0.029126 | 0.02589 | 0.055016 | 0.055016 | 0.055016 | 0 | 0 | 0 | 0 | 0.007037 | 0.207474 | 1,793 | 59 | 81 | 30.389831 | 0.862773 | 0.482432 | 0 | 0.136364 | 0 | 0 | 0.059226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.227273 | 0.136364 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5bc5aa271570de4e3b19c00edc4904bb749cefe9 | 1,073 | py | Python | setup.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 5 | 2016-04-04T16:49:11.000Z | 2020-10-12T13:00:06.000Z | setup.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 3 | 2016-04-08T16:13:54.000Z | 2022-02-03T15:23:48.000Z | setup.py | dlshriver/pinq | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | null | null | null | """
pylinq setup script.
"""
from distutils.core import setup
with open("README.rst", 'r') as f:
readme = f.read()
with open("HISTORY.rst", 'r') as f:
history = f.read()
setup(
name='pinq',
version='0.1.1',
description='LINQ for python.',
long_description="%s\n\n%s" % (readme, history),
l... | 27.512821 | 52 | 0.575023 | 118 | 1,073 | 5.211864 | 0.508475 | 0.247154 | 0.325203 | 0.169106 | 0.087805 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020075 | 0.257223 | 1,073 | 38 | 53 | 28.236842 | 0.751568 | 0.018639 | 0 | 0 | 0 | 0 | 0.522488 | 0.023923 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5bd4fdd0e3f227bb5b559c761531eeb7c891c7c8 | 1,962 | py | Python | advent2017_day2.py | coandco/advent2017 | 1613b0bc4a5c857cd89c739436a7318203eebee5 | [
"MIT"
] | null | null | null | advent2017_day2.py | coandco/advent2017 | 1613b0bc4a5c857cd89c739436a7318203eebee5 | [
"MIT"
] | null | null | null | advent2017_day2.py | coandco/advent2017 | 1613b0bc4a5c857cd89c739436a7318203eebee5 | [
"MIT"
] | null | null | null | INPUT = """1919 2959 82 507 3219 239 3494 1440 3107 259 3544 683 207 562 276 2963
587 878 229 2465 2575 1367 2017 154 152 157 2420 2480 138 2512 2605 876
744 6916 1853 1044 2831 4797 213 4874 187 6051 6086 7768 5571 6203 247 285
1210 1207 1130 116 1141 563 1056 155 227 1085 697 735 192 1236 1065 156
682 883 187 307... | 47.853659 | 84 | 0.706422 | 365 | 1,962 | 3.753425 | 0.767123 | 0.030657 | 0.021898 | 0.026277 | 0.035037 | 0.035037 | 0.035037 | 0.035037 | 0 | 0 | 0 | 0.602538 | 0.237003 | 1,962 | 41 | 85 | 47.853659 | 0.312625 | 0 | 0 | 0 | 0 | 0 | 0.643266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0.029412 | 0.117647 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5be281c64e0ff632bcade997bdc5e9a4613cd240 | 172 | py | Python | pymatflow/vasp/base/intraband.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 6 | 2020-03-06T16:13:08.000Z | 2022-03-09T07:53:34.000Z | pymatflow/vasp/base/intraband.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-10-02T02:23:08.000Z | 2021-11-08T13:29:37.000Z | pymatflow/vasp/base/intraband.py | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-07-10T16:28:14.000Z | 2021-07-10T16:28:14.000Z | intraband_incharge = {
"WEIMIN": None,
"EBREAK": None,
"DEPER": None,
"TIME": None,
}
| 24.571429 | 32 | 0.319767 | 10 | 172 | 5.4 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.569767 | 172 | 6 | 33 | 28.666667 | 0.72973 | 0 | 0 | 0 | 0 | 0 | 0.126506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5bf79ed2c0025c641bbebb79d03012bfeede25fa | 886 | py | Python | proudcatowner/utils/helpers.py | cyanideph/proudcatowner | b54f060f8545c4580961a2072e0486f17d164076 | [
"MIT"
] | null | null | null | proudcatowner/utils/helpers.py | cyanideph/proudcatowner | b54f060f8545c4580961a2072e0486f17d164076 | [
"MIT"
] | null | null | null | proudcatowner/utils/helpers.py | cyanideph/proudcatowner | b54f060f8545c4580961a2072e0486f17d164076 | [
"MIT"
] | null | null | null |
import json
from functools import reduce
from base64 import b64decode
from typing import Union
import requests
def generate_device_info() -> dict:
return {
"device_id": device.deviceGenerator(),
"user_agent": "Dalvik/2.1.0 (Linux; U; Android 7.1.2; SM-G965N Build/star2ltexx-user 7.1.; com.... | 38.521739 | 137 | 0.658014 | 131 | 886 | 4.351145 | 0.480916 | 0.047368 | 0.063158 | 0.052632 | 0.094737 | 0.094737 | 0.094737 | 0 | 0 | 0 | 0 | 0.041835 | 0.163657 | 886 | 22 | 138 | 40.272727 | 0.727395 | 0 | 0 | 0 | 1 | 0.058824 | 0.238702 | 0.063731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.294118 | 0.235294 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
7508a4b9a7c53f1d836078b87e7fce403053d868 | 31,201 | py | Python | test/torch_optimizer_test.py | ymchen7/bluefog | d9c450f2bdac11ff719b7e5f5434ee5ff56499b4 | [
"Apache-2.0"
] | 1 | 2021-07-19T09:22:29.000Z | 2021-07-19T09:22:29.000Z | test/torch_optimizer_test.py | IcevorHu/bluefog | 04ca6a85e8b369119b5c7df84579cc2237a16844 | [
"Apache-2.0"
] | null | null | null | test/torch_optimizer_test.py | IcevorHu/bluefog | 04ca6a85e8b369119b5c7df84579cc2237a16844 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Bluefog Team. 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 or... | 43.455432 | 100 | 0.676196 | 3,770 | 31,201 | 5.369496 | 0.091247 | 0.042237 | 0.059132 | 0.07321 | 0.777059 | 0.740997 | 0.711802 | 0.685768 | 0.673023 | 0.659932 | 0 | 0.004683 | 0.219833 | 31,201 | 717 | 101 | 43.516039 | 0.826925 | 0.071152 | 0 | 0.671902 | 0 | 0 | 0.138956 | 0.00522 | 0 | 0 | 0 | 0.001395 | 0.019197 | 1 | 0.059337 | false | 0 | 0.019197 | 0.015707 | 0.115183 | 0.001745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7546410e79f520175f78df8d002c59f4aeb4fd2c | 174 | py | Python | app/urls.py | RegilioSpee/k_sec-filecify | 001c01d4db32fb3c134230e31465845ef6521994 | [
"MIT"
] | null | null | null | app/urls.py | RegilioSpee/k_sec-filecify | 001c01d4db32fb3c134230e31465845ef6521994 | [
"MIT"
] | null | null | null | app/urls.py | RegilioSpee/k_sec-filecify | 001c01d4db32fb3c134230e31465845ef6521994 | [
"MIT"
] | 1 | 2021-02-09T08:50:45.000Z | 2021-02-09T08:50:45.000Z | from django.urls import path,include
from . import views
urlpatterns = [
path('registration/', views.registration),
path('login/',views.user_login,name="login")
]
| 17.4 | 48 | 0.706897 | 21 | 174 | 5.809524 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149425 | 174 | 9 | 49 | 19.333333 | 0.824324 | 0 | 0 | 0 | 0 | 0 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
754fd871f13f64c62668b0a15bca87bd099678d7 | 765 | py | Python | tests/conftest.py | lumapps/changelog-generator | 01b3f0e98d353829f76c12eaef94ca666cd907dd | [
"MIT",
"Unlicense"
] | null | null | null | tests/conftest.py | lumapps/changelog-generator | 01b3f0e98d353829f76c12eaef94ca666cd907dd | [
"MIT",
"Unlicense"
] | null | null | null | tests/conftest.py | lumapps/changelog-generator | 01b3f0e98d353829f76c12eaef94ca666cd907dd | [
"MIT",
"Unlicense"
] | null | null | null | import os
import tempfile
from pathlib import Path
import pytest
from git import Repo
@pytest.fixture(scope="session", autouse=True)
def core_repo() -> Repo:
tempdir = Path(tempfile.gettempdir()) / "changelog_generator" / "core"
try:
os.makedirs(tempdir)
repo = Repo.clone_from("git@github.com... | 26.37931 | 82 | 0.682353 | 92 | 765 | 5.608696 | 0.326087 | 0.093023 | 0.116279 | 0.085271 | 0.775194 | 0.775194 | 0.775194 | 0.775194 | 0.403101 | 0.217054 | 0 | 0 | 0.197386 | 765 | 28 | 83 | 27.321429 | 0.840391 | 0 | 0 | 0.521739 | 0 | 0 | 0.180392 | 0.091503 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
75504f6fbb0bc25ed19d9548e59f74fec170b7ce | 26,125 | py | Python | pycatia/knowledge_interfaces/relations.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | pycatia/knowledge_interfaces/relations.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | pycatia/knowledge_interfaces/relations.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! usr/bin/python3.6
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... | 40.62986 | 120 | 0.452325 | 2,315 | 26,125 | 5.019438 | 0.142549 | 0.011704 | 0.01704 | 0.013769 | 0.482358 | 0.432186 | 0.402238 | 0.375043 | 0.350602 | 0.340792 | 0 | 0.02876 | 0.488919 | 26,125 | 642 | 121 | 40.693146 | 0.841447 | 0.68777 | 0 | 0 | 1 | 0 | 0.020652 | 0.007216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0.225806 | 0.016129 | 0.790323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
755fdb03c2276fbae67104574df83fd3b5e53b4c | 1,362 | py | Python | compiler/custom/write_driver.py | lekez2005/OpenRAM | 608e4b81f1763727e7efe087d591c76956869fe6 | [
"BSD-3-Clause"
] | null | null | null | compiler/custom/write_driver.py | lekez2005/OpenRAM | 608e4b81f1763727e7efe087d591c76956869fe6 | [
"BSD-3-Clause"
] | null | null | null | compiler/custom/write_driver.py | lekez2005/OpenRAM | 608e4b81f1763727e7efe087d591c76956869fe6 | [
"BSD-3-Clause"
] | null | null | null | # See LICENSE for licensing information.
#
# Copyright (c) 2016-2019 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import debug
import design
from tech import cell... | 28.978723 | 80 | 0.688693 | 194 | 1,362 | 4.695876 | 0.561856 | 0.060373 | 0.032931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012512 | 0.237151 | 1,362 | 46 | 81 | 29.608696 | 0.864293 | 0.491924 | 0 | 0.095238 | 0 | 0 | 0.043277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.142857 | 0.190476 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f33c83ae39cf5f25f39064b117ab67592e5af97f | 1,465 | py | Python | ahvl/generate/password.py | gardar/ahvl | 045b5882d94fc2d4ba7b194bf65ebfbf9d2e1d6d | [
"MIT"
] | 4 | 2019-10-12T12:11:23.000Z | 2021-12-20T13:53:28.000Z | ahvl/generate/password.py | gardar/ahvl | 045b5882d94fc2d4ba7b194bf65ebfbf9d2e1d6d | [
"MIT"
] | 2 | 2021-02-05T12:52:55.000Z | 2022-02-11T10:58:52.000Z | ahvl/generate/password.py | gardar/ahvl | 045b5882d94fc2d4ba7b194bf65ebfbf9d2e1d6d | [
"MIT"
] | 1 | 2020-08-13T07:52:27.000Z | 2020-08-13T07:52:27.000Z | #
# import modules
#
from ahvl.options.generate.password import OptionsGeneratePassword
from ahvl.helper import AhvlMsg, AhvlHelper
from passlib import pwd
#
# helper/message
#
msg = AhvlMsg()
hlp = AhvlHelper()
#
# GeneratePassword
#
class GeneratePassword:
def __init__(self, lookup_plugin):
# set look... | 29.897959 | 72 | 0.533106 | 140 | 1,465 | 5.435714 | 0.342857 | 0.115637 | 0.144547 | 0.183968 | 0.220762 | 0.170828 | 0.170828 | 0.170828 | 0.170828 | 0.170828 | 0 | 0 | 0.372014 | 1,465 | 48 | 73 | 30.520833 | 0.827174 | 0.077133 | 0 | 0.153846 | 1 | 0 | 0.076981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.269231 | 0.115385 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f36910fc3f8b59a4e2b4bca7dbdfd68f847d1652 | 437 | py | Python | easy/sum of digits in base k/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | 4 | 2021-06-03T22:19:13.000Z | 2021-10-05T18:14:12.000Z | easy/sum of digits in base k/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | null | null | null | easy/sum of digits in base k/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | null | null | null | class Solution:
def sumBase(self, n: int, k: int) -> int:
result = 0
while n > 0:
result += n % k
n = n // k
return result
s = Solution()
print(s.sumBase(34, 6))
print(s.sumBase(10, 10))
print(s.sumBase(10, 9))
print(s.sumBase(7, 2))
print(s.sumBase(255, 2))
print(s... | 20.809524 | 45 | 0.569794 | 75 | 437 | 3.32 | 0.373333 | 0.240964 | 0.522088 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111782 | 0.242563 | 437 | 20 | 46 | 21.85 | 0.640483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.166667 | 0.555556 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f370feeb4f230cf0228e838425c9a052204e009d | 447 | py | Python | tests/test_model.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | null | null | null | tests/test_model.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | null | null | null | tests/test_model.py | rychallener/TauREx3_public | eb0eeeeca8f47e5e7d64d8d70b43a3af370b7677 | [
"BSD-3-Clause"
] | null | null | null |
import unittest
import shutil
import tempfile
from os import path
from unittest.mock import patch, mock_open
from taurex.model.model import ForwardModel
from taurex.model.simplemodel import SimpleForwardModel
import numpy as np
import pickle
class ForwardModelTest(unittest.TestCase):
def test_init(self):
... | 19.434783 | 55 | 0.782998 | 55 | 447 | 6.309091 | 0.509091 | 0.057637 | 0.086455 | 0.132565 | 0.178674 | 0.178674 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161074 | 447 | 22 | 56 | 20.318182 | 0.925333 | 0 | 0 | 0.133333 | 0 | 0 | 0.008969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.6 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
f393652952bc8c62be11da51160029c34b064c65 | 57 | py | Python | books/python-3-oop-packt/Chapter10/10_10_decorator_syntax.py | phiratio/lpthw | a32240d4355fb331805d515f96e1d009914e5c47 | [
"MIT"
] | 73 | 2016-09-15T23:07:04.000Z | 2022-03-05T15:09:48.000Z | books/python-3-oop-packt/Chapter10/10_10_decorator_syntax.py | phiratio/lpthw | a32240d4355fb331805d515f96e1d009914e5c47 | [
"MIT"
] | 34 | 2019-12-16T16:53:24.000Z | 2022-01-13T02:29:30.000Z | books/python-3-oop-packt/Chapter10/10_10_decorator_syntax.py | phiratio/lpthw | a32240d4355fb331805d515f96e1d009914e5c47 | [
"MIT"
] | 51 | 2016-10-07T20:47:51.000Z | 2021-12-22T21:00:24.000Z | @log_calls
def test1(a,b,c):
print("\ttest1 called")
| 14.25 | 27 | 0.649123 | 10 | 57 | 3.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 0.157895 | 57 | 3 | 28 | 19 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f39922e36f3dae80930fea72452a2a056bd6cbcd | 527 | py | Python | Ago-Dic-2017/Enrique Castillo/Práctica1/Agencia.py | Andremm303/DAS_Sistemas | 0163505737e2b24365ea8b4e8135773a6801add4 | [
"MIT"
] | null | null | null | Ago-Dic-2017/Enrique Castillo/Práctica1/Agencia.py | Andremm303/DAS_Sistemas | 0163505737e2b24365ea8b4e8135773a6801add4 | [
"MIT"
] | null | null | null | Ago-Dic-2017/Enrique Castillo/Práctica1/Agencia.py | Andremm303/DAS_Sistemas | 0163505737e2b24365ea8b4e8135773a6801add4 | [
"MIT"
] | null | null | null | class Agencia:
def __init__(self, nomAgencia, direccion):
self.nomAgencia = nomAgencia
self.direccion = direccion
def getNomAgencia(self):
return self.nomAgencia
def setNomAgencia(self, nombrAgencia):
self.nombrAgencia = nombrAgencia
def getDireccion(self):
retu... | 29.277778 | 85 | 0.675522 | 51 | 527 | 6.901961 | 0.333333 | 0.184659 | 0.130682 | 0.142045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231499 | 527 | 17 | 86 | 31 | 0.869136 | 0 | 0 | 0.142857 | 0 | 0 | 0.053131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.214286 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f3afd97d2c98470bf3317cbda86679f28c31a184 | 185 | py | Python | hw-appium/page_object/testcase/test_self_choice.py | ZitherPeng/CodeRecord_Python | 99be14486a04a6fb924b79d1088c08a2dbf0f420 | [
"MIT"
] | null | null | null | hw-appium/page_object/testcase/test_self_choice.py | ZitherPeng/CodeRecord_Python | 99be14486a04a6fb924b79d1088c08a2dbf0f420 | [
"MIT"
] | null | null | null | hw-appium/page_object/testcase/test_self_choice.py | ZitherPeng/CodeRecord_Python | 99be14486a04a6fb924b79d1088c08a2dbf0f420 | [
"MIT"
] | null | null | null | import pytest
from page_object.page.MainPage import MainPage
class TestSelfChoice(object):
def test_price(self):
main = MainPage()
assert main.click_self_choice() | 20.555556 | 46 | 0.724324 | 23 | 185 | 5.652174 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 185 | 9 | 47 | 20.555556 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f3b0eb265f9307df027ffcfe368f6f00f63af7fb | 212 | py | Python | wagtail_advanced_form_builder/forms/widgets/side_by_side_radio_select_widget.py | octavenz/wagtail-advanced-form-builder | f9d1af8c2f45e9bd776ee36b405aa324cfe8103f | [
"BSD-3-Clause"
] | 11 | 2021-03-23T13:10:39.000Z | 2022-03-30T11:06:00.000Z | wagtail_advanced_form_builder/forms/widgets/side_by_side_radio_select_widget.py | octavenz/wagtail-advanced-form-builder | f9d1af8c2f45e9bd776ee36b405aa324cfe8103f | [
"BSD-3-Clause"
] | 2 | 2021-03-23T13:08:48.000Z | 2021-11-23T00:32:31.000Z | wagtail_advanced_form_builder/forms/widgets/side_by_side_radio_select_widget.py | octavenz/wagtail-advanced-form-builder | f9d1af8c2f45e9bd776ee36b405aa324cfe8103f | [
"BSD-3-Clause"
] | 2 | 2021-03-25T11:31:59.000Z | 2021-04-18T08:49:48.000Z | from django.forms import RadioSelect
class SideBySideRadioSelectWidget(RadioSelect):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.display_side_by_side = True
| 23.555556 | 47 | 0.712264 | 23 | 212 | 6.086957 | 0.73913 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179245 | 212 | 8 | 48 | 26.5 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f3b9317d051a22d2ce1e3abdde640eb78f33257e | 164 | py | Python | variable_and_data_type/string_demo/string_concatenation.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | variable_and_data_type/string_demo/string_concatenation.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | variable_and_data_type/string_demo/string_concatenation.py | pysga1996/python-basic-programming | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | [
"MIT"
] | null | null | null | # To concatenate, or combine, two strings you can use the + operators.
a = "Hello"
b = "World"
c = a + b
print(c)
a = "Hello"
b = "World"
c = a + " " + b
print(c)
| 14.909091 | 70 | 0.579268 | 29 | 164 | 3.275862 | 0.586207 | 0.063158 | 0.147368 | 0.252632 | 0.442105 | 0.442105 | 0.442105 | 0.442105 | 0.442105 | 0 | 0 | 0 | 0.25 | 164 | 10 | 71 | 16.4 | 0.772358 | 0.414634 | 0 | 0.75 | 0 | 0 | 0.223404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3c018212eb5cf6d437a10c7477f87a144f2d7e2 | 1,563 | py | Python | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/corpus/reader/string_category.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/corpus/reader/string_category.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/corpus/reader/string_category.py | hectormartinez/rougexstem | 32da9eab253cb88fc1882e59026e8b5b40900a25 | [
"Apache-2.0"
] | null | null | null | # Natural Language Toolkit: String Category Corpus Reader
#
# Copyright (C) 2001-2008 University of Pennsylvania
# Author: Steven Bird <sb@ldc.upenn.edu>
# Edward Loper <edloper@gradient.cis.upenn.edu>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
"""
Read tuples from a corpus consisti... | 31.26 | 79 | 0.666027 | 196 | 1,563 | 5.229592 | 0.596939 | 0.038049 | 0.029268 | 0.040976 | 0.06439 | 0.06439 | 0.06439 | 0 | 0 | 0 | 0 | 0.007608 | 0.243122 | 1,563 | 49 | 80 | 31.897959 | 0.858833 | 0.486244 | 0 | 0.105263 | 0 | 0 | 0.001335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.105263 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f3c1678df0d5f083c921c3e4037232d91a6c3555 | 4,066 | py | Python | priceRecommender/siteApp/forms.py | AirbnbPriceRecommender/FormWebsite | b17ab2dc7762dcff91e3959e22172f01efc2214e | [
"MIT"
] | null | null | null | priceRecommender/siteApp/forms.py | AirbnbPriceRecommender/FormWebsite | b17ab2dc7762dcff91e3959e22172f01efc2214e | [
"MIT"
] | null | null | null | priceRecommender/siteApp/forms.py | AirbnbPriceRecommender/FormWebsite | b17ab2dc7762dcff91e3959e22172f01efc2214e | [
"MIT"
] | null | null | null | # coding=utf-8
from django import forms
class AirbnbRequestForm(forms.Form):
#SelectorsValues
apartmentValues = [('','Select'),('1','Apartment'),('2','House'),('3','Bed and Breakfast'),('4','Townhouse'),('5','Mobile Home'),('6','Ship'),('7','Bungalow'),('8','Cottage'),('9','Chalet'),('10','Shared Bedroom'),('... | 78.192308 | 1,582 | 0.666503 | 529 | 4,066 | 5.071834 | 0.521739 | 0.069698 | 0.081998 | 0.102497 | 0.217667 | 0.217667 | 0.139396 | 0 | 0 | 0 | 0 | 0.054017 | 0.10305 | 4,066 | 51 | 1,583 | 79.72549 | 0.681656 | 0.031481 | 0 | 0 | 0 | 0 | 0.26928 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f3c35d64f97fde6b64617a9953f0c6e91ee4b2e0 | 474 | py | Python | main.py | mthompson-lab/xray_thermometer | b043f261f20c607a45485bc88cf73f3b354c8b99 | [
"BSD-3-Clause"
] | null | null | null | main.py | mthompson-lab/xray_thermometer | b043f261f20c607a45485bc88cf73f3b354c8b99 | [
"BSD-3-Clause"
] | null | null | null | main.py | mthompson-lab/xray_thermometer | b043f261f20c607a45485bc88cf73f3b354c8b99 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T20:21:32.000Z | 2021-03-08T20:21:32.000Z | import subprocess
directory = "/reg/d/psdm/mfx/mfxo1916/scratch/tmp_training/results/r0020/000_rg001/out/debug"
print set(line.strip() for line in subprocess.check_output("sh generate_hitlist.sh {}".format(directory), shell=True).split())
log_direct = '/reg/d/psdm/mfx/mfxo1916/scratch/tmp_training/results/r0020/010_r... | 29.625 | 126 | 0.765823 | 70 | 474 | 5.042857 | 0.6 | 0.022663 | 0.045326 | 0.062323 | 0.27762 | 0.27762 | 0.27762 | 0.27762 | 0.27762 | 0.27762 | 0 | 0.065116 | 0.092827 | 474 | 15 | 127 | 31.6 | 0.755814 | 0.056962 | 0 | 0 | 1 | 0.25 | 0.418919 | 0.349099 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
45f71f59fe29c58adbce99f4bef1de0c3ce72273 | 228 | py | Python | Website/forms.py | Astatine404/spiritus | 1ae04aa17e57a86970e85af2c8ae7ba69d2b6ced | [
"MIT"
] | 1 | 2018-02-10T13:07:24.000Z | 2018-02-10T13:07:24.000Z | Website/forms.py | Astatine404/spiritus | 1ae04aa17e57a86970e85af2c8ae7ba69d2b6ced | [
"MIT"
] | null | null | null | Website/forms.py | Astatine404/spiritus | 1ae04aa17e57a86970e85af2c8ae7ba69d2b6ced | [
"MIT"
] | 3 | 2018-02-27T10:27:07.000Z | 2020-09-23T13:18:04.000Z | from django import forms
from django.forms import ModelForm
from .models import Music
class MusicForm(forms.ModelForm):
video = forms.FileField(label='Video file')
class Meta:
model = Music
fields = {'video'} | 22.8 | 47 | 0.714912 | 29 | 228 | 5.62069 | 0.551724 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197368 | 228 | 10 | 48 | 22.8 | 0.89071 | 0 | 0 | 0 | 0 | 0 | 0.065502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
34052454e1ba1777069ec08ce6c7393c567b49ae | 192 | py | Python | example/issues/449_django_lazy_path/pulpsettings.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 2,293 | 2015-08-14T22:39:31.000Z | 2022-03-31T12:44:49.000Z | example/issues/449_django_lazy_path/pulpsettings.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 676 | 2015-08-20T19:29:56.000Z | 2022-03-31T13:45:51.000Z | example/issues/449_django_lazy_path/pulpsettings.py | sephiartlist/dynaconf | 9c5f60b289c1f0fa3f899f1962a8fe5712c74eab | [
"MIT"
] | 255 | 2015-12-02T21:16:33.000Z | 2022-03-20T22:03:46.000Z | REST_FRAMEWORK__DEFAULT_AUTHENTICATION_CLASSES = (
"rest_framework.authentication.SessionAuthentication",
"pulpcore.app.authentication.PulpRemoteUserAuthentication",
"foo_bar1",
)
| 32 | 63 | 0.8125 | 15 | 192 | 9.933333 | 0.733333 | 0.174497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00578 | 0.098958 | 192 | 5 | 64 | 38.4 | 0.855491 | 0 | 0 | 0 | 0 | 0 | 0.598958 | 0.557292 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
340b737c786ad67353df435b770f615c73ea8b3b | 58 | py | Python | configuration-client/configurator/thriftgen/ConfigurationService/__init__.py | manimaul/xio | cd3e24fa61f0d4bd2a3582077071ea9f0218a5fe | [
"Apache-2.0"
] | 40 | 2016-08-18T21:09:50.000Z | 2022-01-26T11:38:19.000Z | configuration-client/configurator/thriftgen/ConfigurationService/__init__.py | manimaul/xio | cd3e24fa61f0d4bd2a3582077071ea9f0218a5fe | [
"Apache-2.0"
] | 78 | 2015-01-27T05:45:46.000Z | 2021-03-31T18:47:13.000Z | configuration-client/configurator/thriftgen/ConfigurationService/__init__.py | manimaul/xio | cd3e24fa61f0d4bd2a3582077071ea9f0218a5fe | [
"Apache-2.0"
] | 29 | 2015-10-09T16:52:37.000Z | 2019-04-10T01:07:44.000Z | __all__ = ['ttypes', 'constants', 'ConfigurationService']
| 29 | 57 | 0.724138 | 4 | 58 | 9.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 58 | 1 | 58 | 58 | 0.716981 | 0 | 0 | 0 | 0 | 0 | 0.603448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
342f0bbf82da5299e86a95c4fd911e79442d5dc7 | 239 | py | Python | tests/test_util.py | D-PLACE/pydplace | 9a94a80bccd7e9d87f0aa50d40252e95fbba2a2c | [
"Apache-2.0"
] | 1 | 2020-11-17T03:50:26.000Z | 2020-11-17T03:50:26.000Z | tests/test_util.py | D-PLACE/pydplace | 9a94a80bccd7e9d87f0aa50d40252e95fbba2a2c | [
"Apache-2.0"
] | 5 | 2018-11-26T09:06:50.000Z | 2019-12-02T15:57:10.000Z | tests/test_util.py | D-PLACE/pydplace | 9a94a80bccd7e9d87f0aa50d40252e95fbba2a2c | [
"Apache-2.0"
] | null | null | null | from pydplace.util import *
def test_remove_subdirs(tmpdir):
tmpdir.join('a').mkdir()
tmpdir.join('a', 'b').mkdir()
assert tmpdir.join('a', 'b').check()
remove_subdirs(str(tmpdir))
assert not tmpdir.join('a').check()
| 23.9 | 40 | 0.644351 | 34 | 239 | 4.441176 | 0.5 | 0.264901 | 0.291391 | 0.15894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158996 | 239 | 9 | 41 | 26.555556 | 0.751244 | 0 | 0 | 0 | 0 | 0 | 0.025105 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3438a418c91239b31cb628d09add2d9ec875c051 | 164 | py | Python | src/passpredict/satellites/__init__.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null | src/passpredict/satellites/__init__.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null | src/passpredict/satellites/__init__.py | samtx/pass-predictor | 6577f75cd7d64bd3c12a9512880d4b29c2682b4c | [
"MIT"
] | null | null | null | from .base import LLH
from .sgp4 import SGP4Propagator
from .kepler import KeplerPropagator
__all__ = [
'LLH',
'SGP4Propagator',
'KeplerPropagator',
]
| 16.4 | 36 | 0.713415 | 16 | 164 | 7.0625 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.195122 | 164 | 9 | 37 | 18.222222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.20122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
343f0caabc0155ab2dd6a2ada3e7face29976e97 | 1,579 | py | Python | src/api/domain/operation/GetDataOperationJobExecutionLogList/GetDataOperationJobExecutionLogListQueryHandler.py | PythonDataIntegrator/pythondataintegrator | 6167778c36c2295e36199ac0d4d256a4a0c28d7a | [
"MIT"
] | 14 | 2020-12-19T15:06:13.000Z | 2022-01-12T19:52:17.000Z | src/api/domain/operation/GetDataOperationJobExecutionLogList/GetDataOperationJobExecutionLogListQueryHandler.py | PythonDataIntegrator/pythondataintegrator | 6167778c36c2295e36199ac0d4d256a4a0c28d7a | [
"MIT"
] | 43 | 2021-01-06T22:05:22.000Z | 2022-03-10T10:30:30.000Z | src/api/domain/operation/GetDataOperationJobExecutionLogList/GetDataOperationJobExecutionLogListQueryHandler.py | PythonDataIntegrator/pythondataintegrator | 6167778c36c2295e36199ac0d4d256a4a0c28d7a | [
"MIT"
] | 4 | 2020-12-18T23:10:09.000Z | 2021-04-02T13:03:12.000Z | from injector import inject
from domain.operation.GetDataOperationJobExecutionLogList.GetDataOperationJobExecutionLogListMapping import GetDataOperationJobExecutionLogListMapping
from domain.operation.GetDataOperationJobExecutionLogList.GetDataOperationJobExecutionLogListQuery import GetDataOperationJobExecutionLogList... | 65.791667 | 164 | 0.861305 | 96 | 1,579 | 14.0625 | 0.354167 | 0.02963 | 0.056296 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102597 | 1,579 | 23 | 165 | 68.652174 | 0.952717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
345b52e9a3187709ce947b90608d93b9509c2dbd | 1,042 | py | Python | modules/pymol/embed/epymol/__init__.py | hryknkgw/pymolwin | 4a1335e90497dbcbfa789f1285a7c1ad84a051f8 | [
"CNRI-Python"
] | 2 | 2019-05-23T22:17:29.000Z | 2020-07-03T14:36:22.000Z | modules/pymol/embed/epymol/__init__.py | hryknkgw/pymolwin | 4a1335e90497dbcbfa789f1285a7c1ad84a051f8 | [
"CNRI-Python"
] | null | null | null | modules/pymol/embed/epymol/__init__.py | hryknkgw/pymolwin | 4a1335e90497dbcbfa789f1285a7c1ad84a051f8 | [
"CNRI-Python"
] | null | null | null |
from pymol.embed import EmbeddedPyMOL
class ePyMOL(EmbeddedPyMOL):
def __init__(self):
self.ep_init()
# initial mouse position
self.lastx = self.x = 30
self.lasty = self.y = 30
def SetSize(self, width, height):
self.ep_reshape(width,height)
def OnChar(self... | 20.038462 | 46 | 0.549904 | 131 | 1,042 | 4.229008 | 0.381679 | 0.119134 | 0.054152 | 0.070397 | 0.108303 | 0.043321 | 0.043321 | 0 | 0 | 0 | 0 | 0.023055 | 0.333973 | 1,042 | 51 | 47 | 20.431373 | 0.775216 | 0.06334 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.433333 | false | 0.066667 | 0.033333 | 0.033333 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
346ec7716e3238394b690026d8ddb614babac70a | 198 | py | Python | Mod 01/04-2-List.py | SauloCav/CN | e8de20dbcf1b3ff043743728b7dde2eff1ae8f87 | [
"MIT"
] | null | null | null | Mod 01/04-2-List.py | SauloCav/CN | e8de20dbcf1b3ff043743728b7dde2eff1ae8f87 | [
"MIT"
] | null | null | null | Mod 01/04-2-List.py | SauloCav/CN | e8de20dbcf1b3ff043743728b7dde2eff1ae8f87 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import math
def f(x):
return x**3 -x -1
def phi(x):
return (x+1)**(1/3)
x = 1.5
while f(x+10**-4)*f(x-10**-4)>= 0:
x = phi(x)
print(x)
| 12.375 | 34 | 0.494949 | 43 | 198 | 2.27907 | 0.511628 | 0.061224 | 0.163265 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104575 | 0.227273 | 198 | 15 | 35 | 13.2 | 0.535948 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cacfa70b98054cd8f48fb0063bbaa3df3e4085a5 | 280 | py | Python | surefire/decoders/linear.py | jasonkriss/surefire | 55365939dbb4a7e41ec28fa40471a6c1e8dd23a1 | [
"MIT"
] | null | null | null | surefire/decoders/linear.py | jasonkriss/surefire | 55365939dbb4a7e41ec28fa40471a6c1e8dd23a1 | [
"MIT"
] | null | null | null | surefire/decoders/linear.py | jasonkriss/surefire | 55365939dbb4a7e41ec28fa40471a6c1e8dd23a1 | [
"MIT"
] | null | null | null | from torch.nn import Linear
from surefire.decoders import Decoder
class LinearDecoder(Decoder):
def __init__(self, *args, **kwargs):
super().__init__()
self._linear = Linear(*args, **kwargs)
def forward(self, x):
return self._linear(x)
| 21.538462 | 46 | 0.639286 | 33 | 280 | 5.121212 | 0.575758 | 0.094675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242857 | 280 | 12 | 47 | 23.333333 | 0.79717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cadbf8c22f1e8c4d55888f0c1a88ce08a00bc06a | 97 | py | Python | src/csv_download/__init__.py | Godan/csv_download | 739f0876017f2d480405d2e3e35ea0d1de066115 | [
"MIT"
] | null | null | null | src/csv_download/__init__.py | Godan/csv_download | 739f0876017f2d480405d2e3e35ea0d1de066115 | [
"MIT"
] | null | null | null | src/csv_download/__init__.py | Godan/csv_download | 739f0876017f2d480405d2e3e35ea0d1de066115 | [
"MIT"
] | null | null | null | from importlib.metadata import version
try:
__version__ = version(__name__)
except:
pass | 16.166667 | 38 | 0.752577 | 11 | 97 | 5.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185567 | 97 | 6 | 39 | 16.166667 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
caf56ece71dca54c6510db6cf3fd158c31027318 | 2,504 | py | Python | urchin/fs/plugin.py | kellen/urchinfs | ea47d8997b42b9b472ea16d1bc7921b988840e4b | [
"Unlicense"
] | 2 | 2021-11-08T03:11:32.000Z | 2021-11-08T08:21:24.000Z | urchin/fs/plugin.py | kellen/urchinfs | ea47d8997b42b9b472ea16d1bc7921b988840e4b | [
"Unlicense"
] | null | null | null | urchin/fs/plugin.py | kellen/urchinfs | ea47d8997b42b9b472ea16d1bc7921b988840e4b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
class Plugin(object):
"""Plugin encapsulates a set of processing classes"""
def __init__(self, indexer, matcher, extractor, merger, munger, formatter):
self.indexer = indexer
self.matcher = matcher
sel... | 30.536585 | 127 | 0.648962 | 286 | 2,504 | 5.562937 | 0.367133 | 0.030798 | 0.048397 | 0.064111 | 0.192332 | 0.192332 | 0.085481 | 0.052797 | 0.052797 | 0.052797 | 0 | 0.001617 | 0.259185 | 2,504 | 81 | 128 | 30.91358 | 0.856065 | 0.372204 | 0 | 0.4 | 0 | 0 | 0.030812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288889 | false | 0.133333 | 0.022222 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1b01e576b2b178a1530c0310c632e8b2a07bd0e4 | 767 | py | Python | is_isogram.py | brennanbrown/code-challenges | e7d0f9547ead58ee58f1365f5ea35743525a9a82 | [
"BSD-2-Clause"
] | 1 | 2021-06-14T07:36:41.000Z | 2021-06-14T07:36:41.000Z | is_isogram.py | brennanbrown/code-challenges | e7d0f9547ead58ee58f1365f5ea35743525a9a82 | [
"BSD-2-Clause"
] | null | null | null | is_isogram.py | brennanbrown/code-challenges | e7d0f9547ead58ee58f1365f5ea35743525a9a82 | [
"BSD-2-Clause"
] | null | null | null | # Function that determines whether a string that contains only letters is an isogram.
# Assume the empty string is an isogram. Ignore letter case.
def is_isogram(string):
string = string.lower()
for i in range(len(string)):
for j in range(i + 1, len(string)):
if(string[i] == string[j]): ... | 47.9375 | 86 | 0.701434 | 114 | 767 | 4.605263 | 0.394737 | 0.12 | 0.182857 | 0.205714 | 0.392381 | 0.249524 | 0 | 0 | 0 | 0 | 0 | 0.001592 | 0.181226 | 767 | 16 | 87 | 47.9375 | 0.834395 | 0.186441 | 0 | 0 | 0 | 0 | 0.215434 | 0 | 0 | 0 | 0 | 0 | 0.461538 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1b35bcc90a767860e091f98f1f242bdcf003def7 | 297 | py | Python | satchmo/apps/product/urls/category.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | 1 | 2019-10-08T16:19:59.000Z | 2019-10-08T16:19:59.000Z | satchmo/apps/product/urls/category.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | null | null | null | satchmo/apps/product/urls/category.py | predatell/satchmo | 6ced1f845aadec240c7e433c3cbf4caca96e0d92 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from product.views import CategoryView, CategoryIndexView
urlpatterns = [
url(r'^(?P<parent_slugs>([-\w]+/)*)?(?P<slug>[-\w]+)/$', CategoryView.as_view(), name='satchmo_category'),
url(r'^$', CategoryIndexView.as_view(), name='satchmo_category_index'),
] | 37.125 | 110 | 0.693603 | 37 | 297 | 5.405405 | 0.621622 | 0.04 | 0.1 | 0.17 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094276 | 297 | 8 | 111 | 37.125 | 0.743494 | 0 | 0 | 0 | 0 | 0 | 0.295302 | 0.234899 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1b366b18eaf3ba281714e76e4d3959117df30890 | 2,443 | py | Python | 5/cvicenie/sections/module_4.py | sevo/FLP-2020 | 6b5ecebc30f4a771aebdd8c147245557aa8901c8 | [
"MIT"
] | null | null | null | 5/cvicenie/sections/module_4.py | sevo/FLP-2020 | 6b5ecebc30f4a771aebdd8c147245557aa8901c8 | [
"MIT"
] | 1 | 2020-03-25T13:04:56.000Z | 2020-03-25T15:24:06.000Z | 5/cvicenie/sections/module_4.py | sevo/FLP-2020 | 6b5ecebc30f4a771aebdd8c147245557aa8901c8 | [
"MIT"
] | null | null | null | #
# Section 4: Somehow harder exercises
#
# This section covers regular expressions, input and output, the use of higher-
# order-functions and a little more advanced loops.
#
from collections import defaultdict
import random, re
# 42. Sentence Splitter
# Given a text file, this program separates its sentences based
... | 26.554348 | 83 | 0.684814 | 356 | 2,443 | 4.671348 | 0.469101 | 0.028864 | 0.012628 | 0.02285 | 0.042694 | 0.042694 | 0 | 0 | 0 | 0 | 0 | 0.015732 | 0.219402 | 2,443 | 91 | 84 | 26.846154 | 0.856319 | 0.753172 | 0 | 0.444444 | 0 | 0 | 0.124771 | 0.038532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.444444 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
1b459cf39bab7d4ce22b9b00b6d556f83ed55d57 | 821 | py | Python | lib/color.py | runblood/get_mysql_stats | 4f340259b2b65926f5e0fbbbffa2a4c04bec8b54 | [
"Apache-2.0"
] | 2 | 2021-01-07T08:59:03.000Z | 2021-01-09T01:48:28.000Z | lib/color.py | runblood/db-tools | 4f340259b2b65926f5e0fbbbffa2a4c04bec8b54 | [
"Apache-2.0"
] | null | null | null | lib/color.py | runblood/db-tools | 4f340259b2b65926f5e0fbbbffa2a4c04bec8b54 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python3.6
#-*- coding: utf-8 -*-
#Author WangJiang@2019 15810438848 634615288@qq.com
#All rights reserved
################################################################################################################
from colorama import init, Fore, Back, Style
######################################... | 32.84 | 112 | 0.442144 | 74 | 821 | 4.810811 | 0.675676 | 0.044944 | 0.073034 | 0.106742 | 0.247191 | 0.247191 | 0.247191 | 0.247191 | 0.247191 | 0 | 0 | 0.040602 | 0.190012 | 821 | 24 | 113 | 34.208333 | 0.494737 | 0.388551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
1b4f9cf3b4cb0adc0c2db1093cfe6dbc4cf038c0 | 280 | py | Python | letcon/src/utils/__init__.py | llFireHawkll/letcon2020-ml-workshop | 5f229c9aceebbdd875435901c298ca1ae35c8d0b | [
"MIT"
] | 3 | 2020-08-25T22:08:01.000Z | 2022-02-05T06:49:55.000Z | letcon/src/utils/__init__.py | llFireHawkll/letcon2020-ml-workshop | 5f229c9aceebbdd875435901c298ca1ae35c8d0b | [
"MIT"
] | null | null | null | letcon/src/utils/__init__.py | llFireHawkll/letcon2020-ml-workshop | 5f229c9aceebbdd875435901c298ca1ae35c8d0b | [
"MIT"
] | null | null | null | '''
File: __init__.py
Project: utils
File Created: Tuesday, 18th August 2020 12:26:46 am
Author: Sparsh Dutta (sparsh.dtt@gmail.com)
-----
Last Modified: Tuesday, 18th August 2020 12:26:46 am
Modified By: Sparsh Dutta (sparsh.dtt@gmail.com>)
-----
Copyright 2020 Sparsh Dutta
'''
| 23.333333 | 52 | 0.725 | 44 | 280 | 4.522727 | 0.545455 | 0.165829 | 0.170854 | 0.211055 | 0.572864 | 0.572864 | 0.291457 | 0.291457 | 0 | 0 | 0 | 0.115226 | 0.132143 | 280 | 11 | 53 | 25.454545 | 0.703704 | 0.967857 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1b5d6aa2b08ae0ef143d4cb04a6700687e262b78 | 1,701 | py | Python | src/tensorforce/tensorforce/agents/__init__.py | linus87/drl_shape_optimization | 39e6b66bd5b70dfce07e145aafe815071bc1b6fe | [
"MIT"
] | 17 | 2020-12-28T16:25:47.000Z | 2022-03-27T18:28:44.000Z | src/tensorforce/tensorforce/agents/__init__.py | linus87/drl_shape_optimization | 39e6b66bd5b70dfce07e145aafe815071bc1b6fe | [
"MIT"
] | 2 | 2021-04-18T03:40:02.000Z | 2022-01-24T08:40:10.000Z | src/tensorforce/tensorforce/agents/__init__.py | linus87/drl_shape_optimization | 39e6b66bd5b70dfce07e145aafe815071bc1b6fe | [
"MIT"
] | 8 | 2020-12-23T05:59:52.000Z | 2022-03-28T12:06:35.000Z | # Copyright 2018 Tensorforce Team. 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 la... | 40.5 | 98 | 0.758377 | 214 | 1,701 | 5.948598 | 0.434579 | 0.141398 | 0.197958 | 0.025137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005351 | 0.121105 | 1,701 | 41 | 99 | 41.487805 | 0.846154 | 0.38448 | 0 | 0 | 0 | 0 | 0.111434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1b87467a0464add8f369b2533b8b8587cfc4bf26 | 528 | py | Python | tests/test_set5.py | svkirillov/cryptopals-python3 | 199eaa0ae0345672703430904965a0a55b00e6e1 | [
"MIT"
] | null | null | null | tests/test_set5.py | svkirillov/cryptopals-python3 | 199eaa0ae0345672703430904965a0a55b00e6e1 | [
"MIT"
] | null | null | null | tests/test_set5.py | svkirillov/cryptopals-python3 | 199eaa0ae0345672703430904965a0a55b00e6e1 | [
"MIT"
] | null | null | null | class TestSet5:
def test_challenge33(self):
from cryptopals.set5.challenge33 import challenge33
assert challenge33(), "The result does not match the expected value"
def test_challenge34(self):
from cryptopals.set5.challenge34 import challenge34
assert challenge34(), "The resul... | 33 | 76 | 0.723485 | 62 | 528 | 6.112903 | 0.322581 | 0.055409 | 0.14248 | 0.174142 | 0.329815 | 0.329815 | 0.329815 | 0.329815 | 0.23219 | 0.23219 | 0 | 0.067797 | 0.217803 | 528 | 15 | 77 | 35.2 | 0.849879 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1b8fbe4bda94892611e90f8e3ba0d2388c89c2b3 | 34,996 | py | Python | tests/test_util.py | EarthObservationSimulator/orbits | b476762532f8644b9fe0723760b5202ab77a4547 | [
"Apache-2.0"
] | 4 | 2021-12-23T16:49:06.000Z | 2022-02-09T21:36:31.000Z | tests/test_util.py | EarthObservationSimulator/orbits | b476762532f8644b9fe0723760b5202ab77a4547 | [
"Apache-2.0"
] | 15 | 2022-01-14T17:28:14.000Z | 2022-02-11T02:39:25.000Z | tests/test_util.py | EarthObservationSimulator/orbits | b476762532f8644b9fe0723760b5202ab77a4547 | [
"Apache-2.0"
] | 1 | 2022-02-03T15:44:16.000Z | 2022-02-03T15:44:16.000Z | """Unit tests for orbitpy.util module.
"""
import unittest
import numpy as np
from numpy.core.numeric import tensordot
from instrupy.util import Orientation
from instrupy import Instrument
from orbitpy.util import OrbitState, SpacecraftBus, Spacecraft
import orbitpy.util
import propcov
from util.spacecrafts import sp... | 63.169675 | 209 | 0.521831 | 3,558 | 34,996 | 4.988477 | 0.070545 | 0.089583 | 0.068173 | 0.050538 | 0.816328 | 0.742239 | 0.668995 | 0.589554 | 0.559186 | 0.526001 | 0 | 0.06356 | 0.31575 | 34,996 | 553 | 210 | 63.283906 | 0.67765 | 0.029432 | 0 | 0.393701 | 0 | 0.102362 | 0.193136 | 0.024906 | 0 | 0 | 0 | 0.003617 | 0.551181 | 1 | 0.062992 | false | 0.041995 | 0.023622 | 0 | 0.104987 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bb53d71f5514f03d5743f2b3ff86a7a09f08e9e | 243 | py | Python | output/models/nist_data/list_pkg/boolean/schema_instance/nistschema_sv_iv_list_boolean_pattern_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/boolean/schema_instance/nistschema_sv_iv_list_boolean_pattern_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/boolean/schema_instance/nistschema_sv_iv_list_boolean_pattern_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.boolean.schema_instance.nistschema_sv_iv_list_boolean_pattern_3_xsd.nistschema_sv_iv_list_boolean_pattern_3 import NistschemaSvIvListBooleanPattern3
__all__ = [
"NistschemaSvIvListBooleanPattern3",
]
| 40.5 | 186 | 0.888889 | 29 | 243 | 6.758621 | 0.655172 | 0.122449 | 0.142857 | 0.183673 | 0.336735 | 0.336735 | 0.336735 | 0 | 0 | 0 | 0 | 0.017467 | 0.057613 | 243 | 5 | 187 | 48.6 | 0.838428 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bdb273019006aea24d0e36c3c82ab5d029e6141 | 2,357 | py | Python | release/stubs.min/Rhino/Geometry/__init___parts/Ellipse.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Rhino/Geometry/__init___parts/Ellipse.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Rhino/Geometry/__init___parts/Ellipse.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class Ellipse(object, IEpsilonComparable[Ellipse]):
"""
Represents the values of a plane and the two semiaxes radii in an ellipse.
Ellipse(plane: Plane,radius1: float,radius2: float)
Ellipse(center: Point3d,second: Point3d,third: Point3d)
"""
def EpsilonEquals(self, other, epsilon):
... | 22.447619 | 221 | 0.630462 | 284 | 2,357 | 4.96831 | 0.306338 | 0.063785 | 0.034018 | 0.040397 | 0.425939 | 0.425939 | 0.323884 | 0.270021 | 0.270021 | 0.270021 | 0 | 0.00919 | 0.261349 | 2,357 | 104 | 222 | 22.663462 | 0.801264 | 0.427662 | 0 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0.368421 | 0 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
9409285513793c191e45f98c91bd2ca506034d14 | 29 | py | Python | src/__init__.py | ljusto/schmoobot | be8ce0e8e140909cf0a6c0448de90393f90fd31b | [
"MIT"
] | null | null | null | src/__init__.py | ljusto/schmoobot | be8ce0e8e140909cf0a6c0448de90393f90fd31b | [
"MIT"
] | null | null | null | src/__init__.py | ljusto/schmoobot | be8ce0e8e140909cf0a6c0448de90393f90fd31b | [
"MIT"
] | null | null | null | __author__ = 'Lambert Justo'
| 14.5 | 28 | 0.758621 | 3 | 29 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9419a026bf55e923bf6197298ef92132aa740ca2 | 3,449 | py | Python | tests/test_sdds_write.py | radiasoft/rsbeams | 1a35c9222ee727a580d626b1791b2c29c1215346 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2017-11-03T18:06:27.000Z | 2022-03-02T22:03:14.000Z | tests/test_sdds_write.py | radiasoft/rsbeams | 1a35c9222ee727a580d626b1791b2c29c1215346 | [
"ECL-2.0",
"Apache-2.0"
] | 29 | 2018-01-14T16:48:28.000Z | 2022-03-25T21:17:36.000Z | tests/test_sdds_write.py | radiasoft/rsbeams | 1a35c9222ee727a580d626b1791b2c29c1215346 | [
"ECL-2.0",
"Apache-2.0"
] | 23 | 2018-01-16T19:41:20.000Z | 2020-09-18T11:17:16.000Z | import unittest
from rsbeams.rsdata.SDDS import writeSDDS, readSDDS
from subprocess import Popen, PIPE
import numpy as np
# Tests that use SDDS Tools Distribution
def read_file(filename, par=None, col=None):
call1 = Popen('sddscheck {}'.format(filename), shell=True, stdout=PIPE, stderr=PIPE)
check, err = cal... | 35.556701 | 115 | 0.62134 | 439 | 3,449 | 4.783599 | 0.248292 | 0.047143 | 0.040476 | 0.040476 | 0.741905 | 0.741905 | 0.731905 | 0.679048 | 0.660952 | 0.638095 | 0 | 0.060245 | 0.220354 | 3,449 | 97 | 116 | 35.556701 | 0.720714 | 0.140041 | 0 | 0.596774 | 0 | 0 | 0.111073 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0.145161 | false | 0 | 0.064516 | 0 | 0.306452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
94482838d40a7efda30a4e6100a29518e7acad52 | 167 | py | Python | wrex/meeting/section_kind.py | mikiTesf/wrex-py | 6098e237c75efe0e63a0bea0943d5a2d25a240b8 | [
"MIT"
] | 1 | 2020-03-20T11:31:58.000Z | 2020-03-20T11:31:58.000Z | wrex/meeting/section_kind.py | mikiTesf/wrex-py | 6098e237c75efe0e63a0bea0943d5a2d25a240b8 | [
"MIT"
] | null | null | null | wrex/meeting/section_kind.py | mikiTesf/wrex-py | 6098e237c75efe0e63a0bea0943d5a2d25a240b8 | [
"MIT"
] | null | null | null | from enum import Enum
class SectionKind(Enum):
TREASURES = "TREASURES"
IMPROVE_IN_MINISTRY = "IMPROVE_IN_MINISTRY"
CHRISTIAN_LIVING = "CHRISTIAN_LIVING"
| 20.875 | 47 | 0.754491 | 19 | 167 | 6.315789 | 0.578947 | 0.15 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173653 | 167 | 7 | 48 | 23.857143 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.263473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
946682a2e9c3b647309eab199bbe2c212771956d | 206 | py | Python | c14/p274_test1442.py | pkingpeng/-python- | f7c3269b6c13edf31449a3f21c3314c27095c984 | [
"Apache-2.0"
] | null | null | null | c14/p274_test1442.py | pkingpeng/-python- | f7c3269b6c13edf31449a3f21c3314c27095c984 | [
"Apache-2.0"
] | null | null | null | c14/p274_test1442.py | pkingpeng/-python- | f7c3269b6c13edf31449a3f21c3314c27095c984 | [
"Apache-2.0"
] | null | null | null | import json
pythonValueDic = {
'name': 'zhangsan',
'isCat': True,
'miceCaught': 0
}
data = json.dumps(pythonValueDic)
print(data)
"""
{"name": "zhangsan", "isCat": true, "miceCaught": 0}
"""
| 13.733333 | 52 | 0.601942 | 21 | 206 | 5.904762 | 0.571429 | 0.193548 | 0.274194 | 0.33871 | 0.516129 | 0.516129 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.18932 | 206 | 14 | 53 | 14.714286 | 0.730539 | 0 | 0 | 0 | 0 | 0 | 0.184932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
94862eac18fc803a6272392859b4e1fdde46db27 | 2,847 | py | Python | src/project/models/user.py | farzadghanei/flask-skel | da746fb728a19cc4969a7671591660998de582e8 | [
"0BSD"
] | null | null | null | src/project/models/user.py | farzadghanei/flask-skel | da746fb728a19cc4969a7671591660998de582e8 | [
"0BSD"
] | null | null | null | src/project/models/user.py | farzadghanei/flask-skel | da746fb728a19cc4969a7671591660998de582e8 | [
"0BSD"
] | null | null | null | '''
project.models.user
-------------------
Defines a user model class
'''
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from itsdangerous import SignatureExpired, BadSignature
from flask.ex... | 33.494118 | 99 | 0.67615 | 329 | 2,847 | 5.668693 | 0.282675 | 0.057909 | 0.037534 | 0.034316 | 0.371046 | 0.319571 | 0.319571 | 0.277748 | 0.277748 | 0.277748 | 0 | 0.007586 | 0.212856 | 2,847 | 84 | 100 | 33.892857 | 0.824632 | 0.023182 | 0 | 0.285714 | 1 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174603 | false | 0.174603 | 0.111111 | 0.079365 | 0.634921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
948c53a88cc93f098a53987b573f9ebff1c46893 | 422 | py | Python | relaxrender/rasterization.py | hefangwuwu/relaxrender | adcf3fa5dc7d38f0af8308083fadf665dd30bdb2 | [
"MIT"
] | 4 | 2018-06-08T16:42:30.000Z | 2018-06-21T19:41:58.000Z | relaxrender/rasterization.py | hefangwuwu/relaxrender | adcf3fa5dc7d38f0af8308083fadf665dd30bdb2 | [
"MIT"
] | 70 | 2018-06-15T08:46:25.000Z | 2018-06-25T10:47:16.000Z | relaxrender/rasterization.py | hefangwuwu/relaxrender | adcf3fa5dc7d38f0af8308083fadf665dd30bdb2 | [
"MIT"
] | 56 | 2018-06-08T11:46:05.000Z | 2018-06-25T04:15:17.000Z |
import numpy as np
from .points import Point, Vector, Points
from .triangle import Triangle, Triangles
class Raster:
# for OpenGL alike forward rendering.
def __init__(self, context):
self.context = context
def rasterize(self, triangles):
pass
class SimpleRaster(Raster):
def __init_... | 20.095238 | 41 | 0.680095 | 49 | 422 | 5.612245 | 0.510204 | 0.12 | 0.08 | 0.130909 | 0.261818 | 0.261818 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239336 | 422 | 20 | 42 | 21.1 | 0.856698 | 0.082938 | 0 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.153846 | 0.230769 | 0 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
948caa26c5a5bf8abf9eb35c056d69a612c83ed0 | 451 | py | Python | DataWorkflow/file_deletion/migrations/0010_remove_batch_number.py | Swiss-Polar-Institute/data-workflow | 4c7fee1d78d67512ae6710449e625fd945468dd9 | [
"MIT"
] | null | null | null | DataWorkflow/file_deletion/migrations/0010_remove_batch_number.py | Swiss-Polar-Institute/data-workflow | 4c7fee1d78d67512ae6710449e625fd945468dd9 | [
"MIT"
] | 12 | 2019-10-25T15:01:06.000Z | 2021-09-22T18:02:03.000Z | DataWorkflow/file_deletion/migrations/0010_remove_batch_number.py | Swiss-Polar-Institute/data-workflow | 4c7fee1d78d67512ae6710449e625fd945468dd9 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-30 11:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('file_deletion', '0009_filetobedeleted_batch'),
]
operations = [
migrations.RemoveField(
model_name='batch',
name='number',
... | 20.5 | 56 | 0.578714 | 43 | 451 | 5.930233 | 0.674419 | 0.164706 | 0.203922 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06129 | 0.312639 | 451 | 21 | 57 | 21.47619 | 0.76129 | 0.099778 | 0 | 0.266667 | 1 | 0 | 0.183168 | 0.064356 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84816255f7fa97afb0c1a07f0f2ca6794743e764 | 1,867 | py | Python | python-the-hard-way/27-memorizing-logic.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | python-the-hard-way/27-memorizing-logic.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | python-the-hard-way/27-memorizing-logic.py | Valka7a/python-playground | f08d4374f2cec2e8b1afec3753854b1ec10ff480 | [
"MIT"
] | null | null | null | # Exercise 27: Memorizing Logic
#The Truth Terms:
# and
# or
# not
# != (not equal)
# == (equal)
# >= (greater-than-equal)
# <= (less-than-equal)
# True
# False
# The Truth Tables
# NOT Table
#____________________________
#| NOT | TRUE? |
#----------------------------
#| not False | True |
#| not True | False ... | 33.945455 | 72 | 0.417247 | 157 | 1,867 | 3.700637 | 0.127389 | 0.123924 | 0.082616 | 0.055077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.252812 | 1,867 | 55 | 73 | 33.945455 | 0.403584 | 0.945903 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84925c7f80c8f48c7f5e21777ca37cfa86c99cfa | 165 | py | Python | quizmake/__main__.py | jnguyen1098/quizmake | 760f59b06b3c574ac176305deeaa13d077080e64 | [
"0BSD"
] | 1 | 2021-06-21T21:51:44.000Z | 2021-06-21T21:51:44.000Z | quizmake/__main__.py | jnguyen1098/quizmake | 760f59b06b3c574ac176305deeaa13d077080e64 | [
"0BSD"
] | 8 | 2020-06-19T13:30:57.000Z | 2021-04-15T20:07:33.000Z | quizmake/__main__.py | jnguyen1098/quizmake | 760f59b06b3c574ac176305deeaa13d077080e64 | [
"0BSD"
] | null | null | null | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Initialization."""
import sys
from . import core
if __name__ == "__main__":
sys.exit(core.main(sys.argv))
| 13.75 | 33 | 0.624242 | 22 | 165 | 4.318182 | 0.772727 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014599 | 0.169697 | 165 | 11 | 34 | 15 | 0.678832 | 0.363636 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
84a90506359550826086d811e9b8b8d3fb53a031 | 554 | py | Python | practicas/diccionarios.py | 7junior7/python_comands | e7a29093a626a0658ea522da414e0151ff89483f | [
"MIT"
] | 2 | 2020-05-15T13:48:45.000Z | 2020-05-18T01:06:22.000Z | practicas/diccionarios.py | 7junior7/python_comands | e7a29093a626a0658ea522da414e0151ff89483f | [
"MIT"
] | 1 | 2020-05-15T18:42:31.000Z | 2020-05-15T18:42:31.000Z | practicas/diccionarios.py | 7junior7/python_comands | e7a29093a626a0658ea522da414e0151ff89483f | [
"MIT"
] | 1 | 2020-05-15T13:48:48.000Z | 2020-05-15T13:48:48.000Z | #********************************************************DICCIONARIOS********************************************************
# Los diccionarios en python son tipos de datos muy parecidos a los archivos json, los cuales nos permiten crear una lista
# pero con identificadores definidos por nosotros.
# sintaxis dicc = {"... | 50.363636 | 125 | 0.588448 | 62 | 554 | 5.258065 | 0.709677 | 0.119632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018367 | 0.115523 | 554 | 11 | 126 | 50.363636 | 0.646939 | 0.68231 | 0 | 0.4 | 0 | 0 | 0.304094 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | null | null | 0 | 0 | null | null | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
84ae283b1acf9e1bf7a4e059280790be8eabb30e | 527 | py | Python | mobtick/models.py | proteus2171/test | dcb50e354bbe121871424e418c58e17a41d87253 | [
"Unlicense"
] | null | null | null | mobtick/models.py | proteus2171/test | dcb50e354bbe121871424e418c58e17a41d87253 | [
"Unlicense"
] | null | null | null | mobtick/models.py | proteus2171/test | dcb50e354bbe121871424e418c58e17a41d87253 | [
"Unlicense"
] | null | null | null | from django.db import models
# Create your models here.
class ticket(models.Model):
timestamp = models.DateField(auto_now_add=True,auto_now=False,)
tech = models.CharField(max_length=50,)
site = models.CharField(max_length=50,)
user = models.CharField(max_length=50,)
issue = models.CharField(max_le... | 35.133333 | 67 | 0.724858 | 70 | 527 | 5.271429 | 0.557143 | 0.203252 | 0.243902 | 0.325203 | 0.357724 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027149 | 0.16129 | 527 | 15 | 68 | 35.133333 | 0.807692 | 0.045541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.083333 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84af747ca44daf01b04612459a83225643b8b3e7 | 1,618 | py | Python | tests/derivate/linear_equation_derivate_test.py | cenkbircanoglu/clustering | 0a97fbf43e58e65e8d9eed30eecff00bcd47f093 | [
"MIT"
] | 23 | 2015-01-21T01:39:11.000Z | 2019-08-27T09:43:39.000Z | tests/derivate/linear_equation_derivate_test.py | cenkbircanoglu/clustering | 0a97fbf43e58e65e8d9eed30eecff00bcd47f093 | [
"MIT"
] | 1 | 2015-01-18T08:52:30.000Z | 2015-01-18T08:52:30.000Z | tests/derivate/linear_equation_derivate_test.py | cenkbircanoglu/clustering | 0a97fbf43e58e65e8d9eed30eecff00bcd47f093 | [
"MIT"
] | 6 | 2015-03-23T16:58:18.000Z | 2019-03-12T06:31:56.000Z | from unittest import TestCase
from similarityPy.derivate.linear_equation_derivate import LinearEquationDerivate
from tests import test_logger
__author__ = 'cenk'
class LinearEquationDerivateTest(TestCase):
def setUp(self):
pass
def test_algorithm(self):
test_logger.debug("LinearEquationDe... | 31.72549 | 82 | 0.656366 | 183 | 1,618 | 5.595628 | 0.322404 | 0.123047 | 0.193359 | 0.171875 | 0.609375 | 0.609375 | 0.503906 | 0.503906 | 0.452148 | 0.452148 | 0 | 0.032285 | 0.253399 | 1,618 | 51 | 83 | 31.72549 | 0.815397 | 0 | 0 | 0.25 | 0 | 0.03125 | 0.088683 | 0.034414 | 0 | 0 | 0 | 0 | 0.125 | 0 | null | null | 0.03125 | 0.09375 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84df19ba002399b3efb6a608e97606e85133de90 | 1,044 | py | Python | ote_sdk/ote_sdk/entities/coordinate.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | 775 | 2019-03-01T02:13:33.000Z | 2020-09-07T22:49:15.000Z | ote_sdk/ote_sdk/entities/coordinate.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | 229 | 2019-02-28T21:37:08.000Z | 2020-09-07T15:11:49.000Z | ote_sdk/ote_sdk/entities/coordinate.py | ntyukaev/training_extensions | c897d42e50828fea853ceda0795e1f0e7d6e9909 | [
"Apache-2.0"
] | 290 | 2019-02-28T20:32:11.000Z | 2020-09-07T05:51:41.000Z | """This module implements the Coordinate entity"""
# Copyright (C) 2021-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from typing import Tuple
class Coordinate:
"""
Represents a 2D-coordinate with an x-position and a y-position.
NB most coordinates are normalized (between 0.0 and 1.0)
... | 23.727273 | 70 | 0.59387 | 150 | 1,044 | 3.98 | 0.393333 | 0.050251 | 0.020101 | 0.077052 | 0.093802 | 0.093802 | 0 | 0 | 0 | 0 | 0 | 0.019841 | 0.275862 | 1,044 | 43 | 71 | 24.27907 | 0.769841 | 0.378352 | 0 | 0 | 0 | 0 | 0.06338 | 0.038732 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.0625 | 0.1875 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
84e1d08ede93d305b4e40f7c76a87c33c79ae286 | 174 | py | Python | fonty/models/font/font_format.py | jamesssooi/font-cli | c98227606ad5c6ebeab01f70d754db29b8406f44 | [
"Apache-2.0"
] | 12 | 2018-05-02T05:59:31.000Z | 2022-03-15T13:03:26.000Z | fonty/models/font/font_format.py | jamesssooi/font-cli | c98227606ad5c6ebeab01f70d754db29b8406f44 | [
"Apache-2.0"
] | null | null | null | fonty/models/font/font_format.py | jamesssooi/font-cli | c98227606ad5c6ebeab01f70d754db29b8406f44 | [
"Apache-2.0"
] | 2 | 2018-05-02T05:59:40.000Z | 2020-04-19T13:18:09.000Z | '''font_format.py'''
from enum import Enum
class FontFormat(Enum):
'''Represents a font format.'''
WOFF = 'woff'
WOFF2 = 'woff2'
TTF = 'ttf'
OTF = 'otf'
| 17.4 | 35 | 0.58046 | 22 | 174 | 4.545455 | 0.636364 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.252874 | 174 | 9 | 36 | 19.333333 | 0.753846 | 0.229885 | 0 | 0 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.