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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7a95c509ce50bcdd7048409ca9b8c7d9c279bfa | 432 | py | Python | Dataset/Leetcode/valid/98/736.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/98/736.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/valid/98/736.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, root: TreeNode) -> bool:
stack = []
cur = root
last = float("-inf")
while cur or stack:
while cur:
stack.append(cur)
cur = cur.left
cur = stack.pop()
if cur.val > last:
... | 24 | 42 | 0.414352 | 44 | 432 | 4.068182 | 0.568182 | 0.100559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 432 | 17 | 43 | 25.411765 | 0.828704 | 0 | 0 | 0 | 0 | 0 | 0.009281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7abc4036e6849052f1ad734c829603c8746cd22 | 237 | py | Python | data/ck/check_data.py | jorgimello/meta-learning-fer | 793610ae8471f794a6837930d8bb51866c1f7c02 | [
"MIT"
] | 4 | 2020-10-10T03:33:15.000Z | 2022-01-17T08:00:32.000Z | data/ck/check_data.py | jorgimello/meta-learning-facial-expression-recognition | 793610ae8471f794a6837930d8bb51866c1f7c02 | [
"MIT"
] | null | null | null | data/ck/check_data.py | jorgimello/meta-learning-facial-expression-recognition | 793610ae8471f794a6837930d8bb51866c1f7c02 | [
"MIT"
] | null | null | null | import numpy as np
import os, cv2
imgs = np.load('test_set_ck_extended_no_resize.npy')
lbls = np.load('test_labels_ck_extended_no_resize.npy')
for i in range(imgs.shape[0]):
print (lbls[i])
cv2.imshow('img', imgs[i])
cv2.waitKey(0)
| 21.545455 | 55 | 0.734177 | 45 | 237 | 3.644444 | 0.6 | 0.073171 | 0.121951 | 0.219512 | 0.256098 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.113924 | 237 | 10 | 56 | 23.7 | 0.757143 | 0 | 0 | 0 | 0 | 0 | 0.312236 | 0.299578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7add4b7f65c543a8a0fd87ede46693f7cb004d9 | 773 | py | Python | app/db/schemas/users.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | app/db/schemas/users.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | app/db/schemas/users.py | ergo-pad/paideia-api | 7ffc78366567c72722d107f06ad37aa7557b05be | [
"MIT"
] | null | null | null | from pydantic import BaseModel
import typing as t
### SCHEMAS FOR USERS ###
class UserBase(BaseModel):
alias: str
primary_wallet_address_id: t.Optional[int]
profile_img_url: t.Optional[str]
is_active: bool = True
is_superuser: bool = False
class UserOut(UserBase):
pass
class UserCreate(U... | 14.865385 | 46 | 0.667529 | 96 | 773 | 5.229167 | 0.447917 | 0.087649 | 0.111554 | 0.143426 | 0.2251 | 0.2251 | 0.10757 | 0 | 0 | 0 | 0 | 0 | 0.256145 | 773 | 51 | 47 | 15.156863 | 0.873043 | 0.021992 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.066667 | 0 | 0.833333 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f7af40aed66aeeaae2505edaa30898f512812b45 | 329 | py | Python | Mundo 1/ex_014.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | Mundo 1/ex_014.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | Mundo 1/ex_014.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | """
Escreva um programa que converta uma temperatura,
digitando em graus Celsius e converta para graus Fahrenheit.
"""
celsius = int(input('Digite a temperatura: '))
fahrenheit = (celsius / 5) * 9 + 32
Kelvin = celsius + 273
print(f'A temperatura {celsius}°C em Fahrenheit é {fahrenheit}°F')
print(f'E em Kevin fica {Kel... | 32.9 | 66 | 0.723404 | 51 | 329 | 4.705882 | 0.607843 | 0.141667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02518 | 0.155015 | 329 | 9 | 67 | 36.555556 | 0.830935 | 0.334347 | 0 | 0 | 0 | 0 | 0.492891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7bd078884fa7f447ad7081c6426bb1a2e21941b | 625 | py | Python | forms_builder/forms/migrations/0004_auto_20180727_1256.py | maqmigh/django-forms-builder | 1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98 | [
"BSD-2-Clause"
] | null | null | null | forms_builder/forms/migrations/0004_auto_20180727_1256.py | maqmigh/django-forms-builder | 1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98 | [
"BSD-2-Clause"
] | null | null | null | forms_builder/forms/migrations/0004_auto_20180727_1256.py | maqmigh/django-forms-builder | 1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98 | [
"BSD-2-Clause"
] | null | null | null | # coding=utf-8
# Generated by Django 2.0.7 on 2018-07-27 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forms', '0003_auto_20180522_0820'),
]
operations = [
migrations.AlterField(
model_name='field',
name=... | 25 | 90 | 0.5968 | 70 | 625 | 5.185714 | 0.671429 | 0.110193 | 0.137741 | 0.15978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086667 | 0.28 | 625 | 24 | 91 | 26.041667 | 0.72 | 0.0928 | 0 | 0.235294 | 1 | 0 | 0.111702 | 0.04078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7bf187ba4675f05a89f42e9783052fe7bcd13c5 | 647 | py | Python | docs/_docs/bash/az3166_patch_binary.py | skolbin-ssi/azure-iot-developer-kit | 24035c8870e9c342d055bcd586529441078af0a0 | [
"MIT"
] | 43 | 2017-10-03T23:03:23.000Z | 2019-04-27T18:57:16.000Z | docs/_docs/bash/az3166_patch_binary.py | skolbin-ssi/azure-iot-developer-kit | 24035c8870e9c342d055bcd586529441078af0a0 | [
"MIT"
] | 114 | 2017-09-20T02:51:28.000Z | 2019-05-06T06:13:14.000Z | docs/_docs/bash/az3166_patch_binary.py | skolbin-ssi/azure-iot-developer-kit | 24035c8870e9c342d055bcd586529441078af0a0 | [
"MIT"
] | 48 | 2017-09-19T08:18:52.000Z | 2019-04-19T11:44:32.000Z | # ----------------------------------------------------------------------------
# Copyright (C) Microsoft. All rights reserved.
# Licensed under the MIT license.
# ----------------------------------------------------------------------------
import os
import binascii
import struct
import shutil
import inspect
import s... | 29.409091 | 78 | 0.482226 | 72 | 647 | 4.194444 | 0.611111 | 0.07947 | 0.033113 | 0.086093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011194 | 0.171561 | 647 | 22 | 79 | 29.409091 | 0.552239 | 0.360124 | 0 | 0 | 0 | 0 | 0.063415 | 0 | 0 | 0 | 0.014634 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.466667 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f7bfccc428289385cc22ed6c618de770f292647a | 590 | py | Python | setup.py | FireXStuff/firex-bundle-ci | 05ef1d9017b3553e8f4249da9a96e313f0ad7047 | [
"BSD-3-Clause"
] | 1 | 2021-01-08T19:50:33.000Z | 2021-01-08T19:50:33.000Z | setup.py | FireXStuff/firex-bundle-ci | 05ef1d9017b3553e8f4249da9a96e313f0ad7047 | [
"BSD-3-Clause"
] | null | null | null | setup.py | FireXStuff/firex-bundle-ci | 05ef1d9017b3553e8f4249da9a96e313f0ad7047 | [
"BSD-3-Clause"
] | null | null | null | import versioneer
from setuptools import setup
setup(name='firex-bundle-ci',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='FireX CI services',
url='https://github.com/FireXStuff/firex-bundle-ci.git',
author='Core FireX Team',
author_email='firex-... | 26.818182 | 62 | 0.60678 | 63 | 590 | 5.571429 | 0.68254 | 0.094017 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002278 | 0.255932 | 590 | 21 | 63 | 28.095238 | 0.797267 | 0 | 0 | 0 | 0 | 0 | 0.335593 | 0.037288 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7c4b93a5f9fe2cd51baa68e74a1491e4f04cbf5 | 1,535 | py | Python | nipy/labs/spatial_models/tests/test_bsa_io.py | arokem/nipy | d6b2e862c65558bb5747c36140fd6261a7e1ecfe | [
"BSD-3-Clause"
] | null | null | null | nipy/labs/spatial_models/tests/test_bsa_io.py | arokem/nipy | d6b2e862c65558bb5747c36140fd6261a7e1ecfe | [
"BSD-3-Clause"
] | null | null | null | nipy/labs/spatial_models/tests/test_bsa_io.py | arokem/nipy | d6b2e862c65558bb5747c36140fd6261a7e1ecfe | [
"BSD-3-Clause"
] | null | null | null | from __future__ import with_statement
from nose.tools import assert_true
from os.path import exists
import numpy as np
from nibabel import Nifti1Image
from numpy.testing import assert_equal
from ...utils.simul_multisubject_fmri_dataset import surrogate_3d_dataset
from ..bsa_io import make_bsa_image
from nibabel.tmpdirs... | 34.111111 | 79 | 0.699674 | 216 | 1,535 | 4.643519 | 0.430556 | 0.069791 | 0.063809 | 0.055833 | 0.089731 | 0.089731 | 0.089731 | 0 | 0 | 0 | 0 | 0.016353 | 0.203257 | 1,535 | 44 | 80 | 34.886364 | 0.803761 | 0.099023 | 0 | 0 | 0 | 0 | 0.058182 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.366667 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f7cfecaa2797756809c5e754e4b6bf4f05823087 | 1,006 | py | Python | narrative2vec/logging_instance/pose.py | code-iai/narrative2vec | 948071d09838ea41ee9749325af6804427a060d2 | [
"MIT"
] | null | null | null | narrative2vec/logging_instance/pose.py | code-iai/narrative2vec | 948071d09838ea41ee9749325af6804427a060d2 | [
"MIT"
] | null | null | null | narrative2vec/logging_instance/pose.py | code-iai/narrative2vec | 948071d09838ea41ee9749325af6804427a060d2 | [
"MIT"
] | null | null | null | from narrative2vec.logging_instance.logging_instance import LoggingInstance, _get_first_rdf_query_result
from narrative2vec.logging_instance.reasoning_task import ReasoningTask
from narrative2vec.ontology.neemNarrativeDefinitions import QUATERNION
from narrative2vec.ontology.ontologyHandler import get_knowrob_uri
cla... | 43.73913 | 104 | 0.781312 | 114 | 1,006 | 6.482456 | 0.359649 | 0.140731 | 0.064953 | 0.086604 | 0.05954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005807 | 0.144135 | 1,006 | 23 | 105 | 43.73913 | 0.852497 | 0 | 0 | 0 | 0 | 0 | 0.027805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.235294 | 0 | 0.705882 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f7d2351d64f6c5df1c1015aaa80a18aa25236a08 | 239 | py | Python | safexl/__init__.py | ThePoetCoder/safexl | d2fb91ad45d33b6f51946e99c78e7fcf7564e82e | [
"MIT"
] | 6 | 2020-08-28T16:00:28.000Z | 2022-01-17T14:48:04.000Z | safexl/__init__.py | ThePoetCoder/safexl | d2fb91ad45d33b6f51946e99c78e7fcf7564e82e | [
"MIT"
] | null | null | null | safexl/__init__.py | ThePoetCoder/safexl | d2fb91ad45d33b6f51946e99c78e7fcf7564e82e | [
"MIT"
] | null | null | null | # Copyright (c) 2020 safexl
from safexl.toolkit import *
import safexl.xl_constants as xl_constants
import safexl.colors as colors
__author__ = "Eric Smith"
__email__ = "ThePoetCoder@gmail.com"
__license__ = "MIT"
__version__ = "0.0.7"
| 19.916667 | 42 | 0.76569 | 33 | 239 | 5 | 0.69697 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033981 | 0.138075 | 239 | 11 | 43 | 21.727273 | 0.76699 | 0.104603 | 0 | 0 | 0 | 0 | 0.188679 | 0.103774 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f7d39269257b5bc266bf53edfc897cb41af5201f | 402 | py | Python | ballot_source/sources/migrations/0004_auto_20200824_1444.py | Ballot-Drop/ballot-source | 5dd9692ca5e9237a6073833a81771a17ad2c1dc9 | [
"MIT"
] | 3 | 2020-09-05T06:02:08.000Z | 2020-09-28T23:44:05.000Z | ballot_source/sources/migrations/0004_auto_20200824_1444.py | Ballot-Drop/ballot-source | 5dd9692ca5e9237a6073833a81771a17ad2c1dc9 | [
"MIT"
] | 18 | 2020-08-28T18:09:54.000Z | 2020-09-19T17:36:08.000Z | ballot_source/sources/migrations/0004_auto_20200824_1444.py | Ballot-Drop/ballot-source | 5dd9692ca5e9237a6073833a81771a17ad2c1dc9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.9 on 2020-08-24 20:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sources', '0003_sourcedetail_last_pull'),
]
operations = [
migrations.AlterField(
model_name='sourcedetail',
name='d... | 21.157895 | 58 | 0.606965 | 43 | 402 | 5.581395 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065517 | 0.278607 | 402 | 18 | 59 | 22.333333 | 0.762069 | 0.11194 | 0 | 0 | 1 | 0 | 0.140845 | 0.076056 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7d8750cdaa9ce35d0790079eee8be949cbd02ee | 1,443 | py | Python | code-buddy.py | xl3ehindTim/Code-buddy | e04b7b4327a0b3ff2790d22aef93dca6fce021f4 | [
"MIT"
] | 8 | 2019-11-29T09:20:11.000Z | 2020-11-02T10:55:35.000Z | code-buddy.py | xl3ehindTim/Code-buddy | e04b7b4327a0b3ff2790d22aef93dca6fce021f4 | [
"MIT"
] | 2 | 2019-12-02T13:48:01.000Z | 2019-12-02T17:00:56.000Z | code-buddy.py | xl3ehindTim/Code-buddy | e04b7b4327a0b3ff2790d22aef93dca6fce021f4 | [
"MIT"
] | 3 | 2019-11-29T10:03:44.000Z | 2020-10-01T10:23:55.000Z | import os
from getArgs import getArgs
from modules import python, javascript, html, php, bootstrap, cca
# from folder import file
# code-buddy.py create (file type) (directory name)
# Checks for "create"
if getArgs(1) == "create":
# Checks for which file type
projectType = getArgs(2)
# Checks for file name
... | 33.55814 | 101 | 0.644491 | 161 | 1,443 | 5.776398 | 0.310559 | 0.070968 | 0.077419 | 0.141935 | 0.327957 | 0.292473 | 0.292473 | 0.137634 | 0 | 0 | 0 | 0.009268 | 0.252252 | 1,443 | 42 | 102 | 34.357143 | 0.852641 | 0.132363 | 0 | 0.424242 | 0 | 0.030303 | 0.277331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.242424 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7e1dfd58619e2e27eaf63ac95f9bbd2215fc5c4 | 565 | py | Python | setup.py | oubiwann/myriad-worlds | bfbbab713e35c5700e37158a892c3a66a8c9f37a | [
"MIT"
] | 3 | 2015-01-29T05:24:32.000Z | 2021-05-10T01:47:36.000Z | setup.py | oubiwann/myriad-worlds | bfbbab713e35c5700e37158a892c3a66a8c9f37a | [
"MIT"
] | null | null | null | setup.py | oubiwann/myriad-worlds | bfbbab713e35c5700e37158a892c3a66a8c9f37a | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from myriad import meta
from myriad.util import dist
setup(
name=meta.display_name,
version=meta.version,
description=meta.description,
long_description=meta.long_description,
author=meta.author,
author_email=meta.author_email,
url=meta.url,
... | 21.730769 | 51 | 0.709735 | 68 | 565 | 5.705882 | 0.5 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187611 | 565 | 25 | 52 | 22.6 | 0.845316 | 0 | 0 | 0 | 0 | 0 | 0.083186 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.15 | 0 | 0.15 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f7ec17b78bb1ba2ad0135e9a1b1bf5b7c8916ff3 | 4,225 | py | Python | src/cmdsh/utils.py | kotfu/cmdsh | c9083793de9117e4c5c4dfcccdeee1b83a0be7ab | [
"MIT"
] | null | null | null | src/cmdsh/utils.py | kotfu/cmdsh | c9083793de9117e4c5c4dfcccdeee1b83a0be7ab | [
"MIT"
] | null | null | null | src/cmdsh/utils.py | kotfu/cmdsh | c9083793de9117e4c5c4dfcccdeee1b83a0be7ab | [
"MIT"
] | null | null | null | #
# -*- coding: utf-8 -*-
#
# Copyright (c) 2019 Jared Crapo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mod... | 32.5 | 89 | 0.680947 | 562 | 4,225 | 5.012456 | 0.380783 | 0.031239 | 0.018459 | 0.030884 | 0.110401 | 0.068868 | 0.068868 | 0.039049 | 0.039049 | 0.039049 | 0 | 0.00341 | 0.23645 | 4,225 | 129 | 90 | 32.751938 | 0.869808 | 0.590769 | 0 | 0.225 | 0 | 0 | 0.091882 | 0 | 0 | 0 | 0 | 0.015504 | 0 | 1 | 0.125 | false | 0 | 0.075 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7f1a1740efc36292fbb917d24b84a88544cbd25 | 40,478 | py | Python | src/legohdl/workspace.py | c-rus/legoHDL | d7d77c05514c8d6dc1070c4efe589f392307daac | [
"MIT"
] | 6 | 2021-12-16T05:40:37.000Z | 2022-02-07T15:04:39.000Z | src/legohdl/workspace.py | c-rus/legoHDL | d7d77c05514c8d6dc1070c4efe589f392307daac | [
"MIT"
] | 61 | 2021-09-28T03:05:13.000Z | 2022-01-16T00:03:14.000Z | src/legohdl/workspace.py | c-rus/legoHDL | d7d77c05514c8d6dc1070c4efe589f392307daac | [
"MIT"
] | 1 | 2021-12-16T07:03:18.000Z | 2021-12-16T07:03:18.000Z | # ------------------------------------------------------------------------------
# Project: legohdl
# Script: workspace.py
# Author: Chase Ruskin
# Description:
# The Workspace class. A Workspace object has a path and a list of available
# vendors. This is what the user keeps their work's scope within for a given
#... | 38.079022 | 186 | 0.531424 | 4,653 | 40,478 | 4.568236 | 0.147002 | 0.01242 | 0.011291 | 0.007998 | 0.234381 | 0.180514 | 0.1441 | 0.138878 | 0.123353 | 0.11719 | 0 | 0.00573 | 0.361925 | 40,478 | 1,063 | 187 | 38.079022 | 0.817253 | 0.32262 | 0 | 0.378428 | 0 | 0 | 0.070203 | 0.00186 | 0.003656 | 0 | 0 | 0.001881 | 0 | 1 | 0.053016 | false | 0.060329 | 0.016453 | 0 | 0.157221 | 0.036563 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f7f1c343e2c46298649ddf9fe556e96b2bec9514 | 3,871 | py | Python | ev_de.py | avinashmnit30/Electric-Vehicle-Optimal-Charging | 7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4 | [
"BSD-3-Clause"
] | 7 | 2018-03-09T11:19:39.000Z | 2022-01-19T13:45:20.000Z | ev_de.py | avinashmnit30/Electric-Vehicle-Optimal-Charging | 7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4 | [
"BSD-3-Clause"
] | null | null | null | ev_de.py | avinashmnit30/Electric-Vehicle-Optimal-Charging | 7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:08:52.000Z | 2022-03-03T12:08:52.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 16 18:01:24 2015
@author: Avinash
"""
import numpy as np
from numpy import *
import numpy
from math import *
import ev_charge_schedule_modification1 as ev
#import ev_charge_schedule.static as func1
#import ev_charge_schedule.dynamic as func2
import tim... | 29.105263 | 112 | 0.482046 | 641 | 3,871 | 2.836193 | 0.207488 | 0.031903 | 0.037954 | 0.028603 | 0.256876 | 0.237624 | 0.19527 | 0.109461 | 0.108361 | 0.108361 | 0 | 0.042443 | 0.348747 | 3,871 | 132 | 113 | 29.325758 | 0.678699 | 0.222681 | 0 | 0.202128 | 0 | 0 | 0.015059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074468 | null | null | 0.021277 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7f61f99b14ff05744c7eb403d860339bcd27eae | 3,970 | py | Python | auth/decorators.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | null | null | null | auth/decorators.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | null | null | null | auth/decorators.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | null | null | null | import logging
from functools import wraps
from flask import request, session
from prometheus_client import Counter
from auth.basic import validate_basic_auth
from auth.oauth import validate_bearer_auth
from auth.cookie import validate_session_cookie
from auth.signedgrant import validate_signed_grant
from util.http ... | 35.446429 | 101 | 0.668766 | 483 | 3,970 | 5.325052 | 0.333333 | 0.024495 | 0.033048 | 0.056376 | 0.18196 | 0.144246 | 0.066096 | 0 | 0 | 0 | 0 | 0.004071 | 0.257431 | 3,970 | 111 | 102 | 35.765766 | 0.868385 | 0.215365 | 0 | 0.301587 | 0 | 0 | 0.11195 | 0.011162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.063492 | 0.142857 | 0 | 0.365079 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f7fb1109bf89db5bf87c82699fc7b9493c2500d3 | 1,035 | py | Python | tests/continuous_integration.py | kfaRabi/online-judge-tools | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | [
"MIT"
] | null | null | null | tests/continuous_integration.py | kfaRabi/online-judge-tools | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | [
"MIT"
] | null | null | null | tests/continuous_integration.py | kfaRabi/online-judge-tools | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | [
"MIT"
] | null | null | null | import os
import subprocess
import sys
import unittest
# TODO: these command should be written at once, at only .travis.yml or at only here
paths = ['oj', 'onlinejudge', 'setup.py', 'tests']
class ContinuousIntegrationTest(unittest.TestCase):
"""A dummy test to run the commands same to CI on local environments"... | 39.807692 | 127 | 0.68599 | 144 | 1,035 | 4.888889 | 0.416667 | 0.051136 | 0.068182 | 0.076705 | 0.384943 | 0.384943 | 0.384943 | 0.285511 | 0.285511 | 0.285511 | 0 | 0 | 0.166184 | 1,035 | 25 | 128 | 41.4 | 0.815759 | 0.143961 | 0 | 0.1875 | 0 | 0 | 0.261364 | 0 | 0 | 0 | 0 | 0.04 | 0.0625 | 1 | 0.1875 | false | 0 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7ff646590489831f35fa9fe7ca9c0fe9f2f76be | 592 | py | Python | ProjectEuler_plus/euler_042.py | byung-u/HackerRank | 4c02fefff7002b3af774b99ebf8d40f149f9d163 | [
"MIT"
] | null | null | null | ProjectEuler_plus/euler_042.py | byung-u/HackerRank | 4c02fefff7002b3af774b99ebf8d40f149f9d163 | [
"MIT"
] | null | null | null | ProjectEuler_plus/euler_042.py | byung-u/HackerRank | 4c02fefff7002b3af774b99ebf8d40f149f9d163 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from math import sqrt
# (n * (n + 1)) / 2 -> n ** 2 + n - (2 * x)
# Solved with quadratic equation
# https://en.wikipedia.org/wiki/Quadratic_equation
for _ in range(int(input().strip())):
t = int(input().strip())
d = (sqrt(4 * 2 * t + 1) - 1)
if d.is_integer():
... | 21.925926 | 52 | 0.489865 | 86 | 592 | 3.325581 | 0.453488 | 0.027972 | 0.181818 | 0.090909 | 0.160839 | 0.160839 | 0 | 0 | 0 | 0 | 0 | 0.041872 | 0.314189 | 592 | 26 | 53 | 22.769231 | 0.662562 | 0.248311 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0.235294 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
790266e9a7bcf554bd70851b9a13216ab9f797e3 | 11,530 | py | Python | src/gdata/spreadsheets/data.py | Cloudlock/gdata-python3 | a6481a13590bfa225f91a97b2185cca9aacd1403 | [
"Apache-2.0"
] | 19 | 2017-06-09T13:38:03.000Z | 2020-12-12T07:45:48.000Z | src/gdata/spreadsheets/data.py | AlexxIT/gdata-python3 | 5cc5a83a469d87f804d1fda8760ec76bcb6050c9 | [
"Apache-1.1"
] | 11 | 2017-07-22T07:09:54.000Z | 2020-12-02T15:08:48.000Z | src/gdata/spreadsheets/data.py | AlexxIT/gdata-python3 | 5cc5a83a469d87f804d1fda8760ec76bcb6050c9 | [
"Apache-1.1"
] | 25 | 2017-07-03T11:30:39.000Z | 2020-10-01T02:21:13.000Z | #!/usr/bin/env python
#
# Copyright (C) 2009 Google Inc.
#
# Licensed under the Apache License 2.0;
# This module is used for version 2 of the Google Data APIs.
"""Provides classes and constants for the XML in the Google Spreadsheets API.
Documentation for the raw XML which these classes represent can be found he... | 31.162162 | 82 | 0.674761 | 1,646 | 11,530 | 4.63305 | 0.217497 | 0.011802 | 0.014424 | 0.019276 | 0.209546 | 0.168109 | 0.132835 | 0.098217 | 0.06845 | 0.056386 | 0 | 0.004212 | 0.238075 | 11,530 | 369 | 83 | 31.246612 | 0.863859 | 0.492454 | 0 | 0.153285 | 0 | 0 | 0.092205 | 0 | 0 | 0 | 0 | 0.00271 | 0 | 1 | 0.094891 | false | 0.014599 | 0.014599 | 0.007299 | 0.686131 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
79028a174225260b671df8c8ac4560369e16c2c8 | 710 | py | Python | tests/test_issues/test_member_example.py | hsolbrig/pyjsg | 5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429 | [
"CC0-1.0"
] | 3 | 2017-07-23T11:11:23.000Z | 2020-11-30T15:36:51.000Z | tests/test_issues/test_member_example.py | hsolbrig/pyjsg | 5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429 | [
"CC0-1.0"
] | 15 | 2018-01-05T17:18:34.000Z | 2021-12-13T17:40:25.000Z | tests/test_issues/test_member_example.py | hsolbrig/pyjsg | 5ef46d9af6a94a0cd0e91ebf8b22f61c17e78429 | [
"CC0-1.0"
] | null | null | null | import unittest
from pyjsg.validate_json import JSGPython
class MemberExampleTestCase(unittest.TestCase):
def test1(self):
x = JSGPython('''doc {
last_name : @string, # exactly one last name of type string
first_name : @string+ # array or one or more first names
... | 28.4 | 77 | 0.533803 | 73 | 710 | 5.013699 | 0.589041 | 0.065574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002169 | 0.350704 | 710 | 24 | 78 | 29.583333 | 0.791757 | 0 | 0 | 0 | 0 | 0 | 0.612676 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7918bd9392635ed706771c33b08bee283e79ec85 | 838 | py | Python | ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | null | null | null | ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | null | null | null | ExpenseTracker/grocery/migrations/0004_auto_20200908_1918.py | lennyAiko/LifeExpenses | ec345228bca00742b0b08cf3fc294dba6574b515 | [
"MIT"
] | 1 | 2020-09-01T15:38:19.000Z | 2020-09-01T15:38:19.000Z | # Generated by Django 3.1.1 on 2020-09-08 18:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('grocery', '0003_auto_202... | 31.037037 | 142 | 0.656325 | 98 | 838 | 5.469388 | 0.44898 | 0.059701 | 0.078358 | 0.123134 | 0.287313 | 0.287313 | 0.287313 | 0.287313 | 0.287313 | 0.287313 | 0 | 0.047766 | 0.225537 | 838 | 26 | 143 | 32.230769 | 0.77812 | 0.053699 | 0 | 0.2 | 1 | 0 | 0.083439 | 0.029077 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7919878f4085d6d12cdcb153170df1fa3bde8e8d | 1,035 | py | Python | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 5 | 2020-05-26T09:33:54.000Z | 2021-07-01T02:42:30.000Z | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 3 | 2019-12-26T17:34:24.000Z | 2020-02-04T03:16:23.000Z | my_hello_world_app/web_api/router.py | gsjay980/data-science-IP | 715550d1cbf67e552c0df533619460c0fee15b94 | [
"MIT"
] | 2 | 2021-12-17T00:46:03.000Z | 2022-02-26T11:04:55.000Z | from os import getenv
from typing import Optional, Dict
from flask import Flask
TestConfig = Optional[Dict[str, bool]]
def create_app(test_config: TestConfig = None) -> Flask:
""" App factory method to initialize the application with given configuration """
app: Flask = Flask(__name__)
if test_config ... | 32.34375 | 97 | 0.672464 | 149 | 1,035 | 4.557047 | 0.483221 | 0.081001 | 0.103093 | 0.064801 | 0.088365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229952 | 1,035 | 31 | 98 | 33.387097 | 0.851945 | 0.407729 | 0 | 0 | 0 | 0 | 0.164875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
791be8749fa60c1fc2eb6569f7089a3ef2f48994 | 11,259 | py | Python | SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 3 | 2019-11-12T07:55:51.000Z | 2020-04-01T11:19:18.000Z | SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 7 | 2020-06-06T01:06:19.000Z | 2022-02-10T11:15:14.000Z | SpoTwillio/lib/python3.6/site-packages/twilio/rest/api/v2010/account/call/feedback.py | Natfan/funlittlethings | 80d5378b45b5c0ead725942ee50403bd057514a6 | [
"MIT"
] | 2 | 2019-10-20T14:54:47.000Z | 2020-06-11T07:29:37.000Z | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base.... | 29.551181 | 101 | 0.606981 | 1,122 | 11,259 | 5.895722 | 0.124777 | 0.05291 | 0.04127 | 0.057143 | 0.688587 | 0.66319 | 0.636886 | 0.636886 | 0.616931 | 0.597732 | 0 | 0.015336 | 0.293454 | 11,259 | 380 | 102 | 29.628947 | 0.816216 | 0.365663 | 0 | 0.490798 | 1 | 0 | 0.12021 | 0.030094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147239 | false | 0 | 0.03681 | 0 | 0.337423 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79222572360ae305c1ba2a36f8edf19a01cdcedf | 2,410 | py | Python | tests/instrumentation/sqlite_tests.py | dsanders11/opbeat_python | 4bdfe494ed4dba12550dff86366b4402613bce92 | [
"BSD-3-Clause"
] | 99 | 2015-02-27T02:21:41.000Z | 2021-02-09T15:13:25.000Z | tests/instrumentation/sqlite_tests.py | dsanders11/opbeat_python | 4bdfe494ed4dba12550dff86366b4402613bce92 | [
"BSD-3-Clause"
] | 114 | 2015-01-16T15:06:49.000Z | 2018-04-13T20:29:18.000Z | tests/instrumentation/sqlite_tests.py | dsanders11/opbeat_python | 4bdfe494ed4dba12550dff86366b4402613bce92 | [
"BSD-3-Clause"
] | 51 | 2015-01-07T12:13:56.000Z | 2019-05-06T14:16:35.000Z | import sqlite3
import mock
import opbeat.instrumentation.control
from tests.helpers import get_tempstoreclient
from tests.utils.compat import TestCase
class InstrumentSQLiteTest(TestCase):
def setUp(self):
self.client = get_tempstoreclient()
opbeat.instrumentation.control.instrument()
@mock... | 38.253968 | 77 | 0.641494 | 265 | 2,410 | 5.773585 | 0.328302 | 0.166667 | 0.205882 | 0.104575 | 0.213072 | 0.070588 | 0.070588 | 0 | 0 | 0 | 0 | 0.01107 | 0.212863 | 2,410 | 62 | 78 | 38.870968 | 0.795467 | 0.024896 | 0 | 0 | 0 | 0 | 0.237223 | 0.017888 | 0 | 0 | 0 | 0 | 0.395349 | 1 | 0.046512 | false | 0 | 0.116279 | 0 | 0.186047 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
7923b39638368ab2ae741c772b643949cd865155 | 423 | py | Python | gaphor/RAAML/stpa/connectors.py | Texopolis/gaphor | 3b190620075fd413258af1e7a007b4b2167a7564 | [
"Apache-2.0"
] | 867 | 2018-01-09T00:19:09.000Z | 2022-03-31T02:49:23.000Z | gaphor/RAAML/stpa/connectors.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 790 | 2018-01-13T23:47:07.000Z | 2022-03-31T16:04:27.000Z | gaphor/RAAML/stpa/connectors.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 117 | 2018-01-09T02:24:49.000Z | 2022-03-23T08:07:42.000Z | from gaphor.diagram.connectors import Connector
from gaphor.diagram.presentation import Classified
from gaphor.RAAML.raaml import RelevantTo
from gaphor.RAAML.stpa import RelevantToItem
from gaphor.SysML.requirements.connectors import DirectedRelationshipPropertyPathConnect
@Connector.register(Classified, RelevantToI... | 35.25 | 88 | 0.87234 | 41 | 423 | 8.97561 | 0.487805 | 0.13587 | 0.092391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080378 | 423 | 11 | 89 | 38.454545 | 0.946015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
792592d09cfb1da8cbdd06e8e2cb4970a31ce4e6 | 553 | py | Python | data_browser/migrations/0002_auto_20200331_1842.py | me2d09/django-data-browser | 1108f714229aab8c30a27d93f264f2f26b8b0aee | [
"BSD-3-Clause"
] | null | null | null | data_browser/migrations/0002_auto_20200331_1842.py | me2d09/django-data-browser | 1108f714229aab8c30a27d93f264f2f26b8b0aee | [
"BSD-3-Clause"
] | null | null | null | data_browser/migrations/0002_auto_20200331_1842.py | me2d09/django-data-browser | 1108f714229aab8c30a27d93f264f2f26b8b0aee | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.0.13 on 2020-03-31 17:42
from django.db import migrations, models
import data_browser.models
class Migration(migrations.Migration):
dependencies = [
("data_browser", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="view",
... | 21.269231 | 51 | 0.549729 | 56 | 553 | 5.285714 | 0.75 | 0.111486 | 0.114865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061453 | 0.352622 | 553 | 25 | 52 | 22.12 | 0.765363 | 0.083183 | 0 | 0.111111 | 1 | 0 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7927bbe2f2d0526128722c38428b7bbf96221e46 | 2,389 | py | Python | armada/tests/unit/utils/test_lint.py | One-Fine-Day/armada | 9cd71c8b55173a9c9c45bfb939d19277fabd902d | [
"Apache-2.0"
] | null | null | null | armada/tests/unit/utils/test_lint.py | One-Fine-Day/armada | 9cd71c8b55173a9c9c45bfb939d19277fabd902d | [
"Apache-2.0"
] | null | null | null | armada/tests/unit/utils/test_lint.py | One-Fine-Day/armada | 9cd71c8b55173a9c9c45bfb939d19277fabd902d | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The Armada Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 29.8625 | 74 | 0.541231 | 238 | 2,389 | 5.306723 | 0.39916 | 0.057007 | 0.034838 | 0.057007 | 0.49327 | 0.473476 | 0.393508 | 0.393508 | 0.393508 | 0.393508 | 0 | 0.005479 | 0.388866 | 2,389 | 79 | 75 | 30.240506 | 0.859589 | 0.232733 | 0 | 0.767857 | 0 | 0 | 0.582188 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0.017857 | 0.053571 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 |
7927d5d5ec363318061f6e9faac288240c333204 | 7,149 | py | Python | mliv/dgps.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | 23 | 2020-12-01T22:55:40.000Z | 2022-01-26T04:11:14.000Z | mliv/dgps.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | null | null | null | mliv/dgps.py | microsoft/AdversarialGMM | 7a5cd51353c8a81e16c01220b71f77e4e1102add | [
"MIT"
] | 10 | 2020-12-05T17:12:49.000Z | 2022-01-10T23:42:37.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import numpy as np
# continuously differentiable
fn_dict_cdiff = {'2dpoly': 1, 'sigmoid': 2,
'sin': 3, 'frequent_sin': 4,
'3dpoly': 7, 'linear': 8}
# continuous but not differentiable
fn_dict_cont = {'abs': 0, '... | 40.619318 | 136 | 0.527207 | 1,100 | 7,149 | 3.322727 | 0.186364 | 0.042681 | 0.059097 | 0.039398 | 0.424624 | 0.39699 | 0.291655 | 0.242955 | 0.190971 | 0.128044 | 0 | 0.052684 | 0.299063 | 7,149 | 175 | 137 | 40.851429 | 0.676711 | 0.136942 | 0 | 0.114504 | 0 | 0 | 0.06069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183206 | false | 0 | 0.007634 | 0.145038 | 0.244275 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7928e18542e9bd6bf82dff12dad8c28ca120e4fe | 16,097 | py | Python | tests/test_definitions/test_expectations_cfe.py | OmriBromberg/great_expectations | 60eb81ebfb08fef5d37d55c316dc962928beb165 | [
"Apache-2.0"
] | 1 | 2021-11-09T05:07:43.000Z | 2021-11-09T05:07:43.000Z | tests/test_definitions/test_expectations_cfe.py | OmriBromberg/great_expectations | 60eb81ebfb08fef5d37d55c316dc962928beb165 | [
"Apache-2.0"
] | 1 | 2021-12-07T13:06:29.000Z | 2021-12-07T13:06:29.000Z | tests/test_definitions/test_expectations_cfe.py | OmriBromberg/great_expectations | 60eb81ebfb08fef5d37d55c316dc962928beb165 | [
"Apache-2.0"
] | null | null | null | import glob
import json
import os
import random
import string
import pandas as pd
import pytest
from great_expectations.execution_engine.pandas_batch_data import PandasBatchData
from great_expectations.execution_engine.sparkdf_batch_data import SparkDFBatchData
from great_expectations.execution_engine.sqlalchemy_batc... | 48.927052 | 118 | 0.391067 | 1,093 | 16,097 | 5.411711 | 0.15645 | 0.101099 | 0.132206 | 0.105495 | 0.583094 | 0.539138 | 0.515469 | 0.475571 | 0.449197 | 0.449197 | 0 | 0.002697 | 0.562341 | 16,097 | 328 | 119 | 49.07622 | 0.836906 | 0.022861 | 0 | 0.470588 | 0 | 0 | 0.049866 | 0.003435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006536 | false | 0 | 0.042484 | 0 | 0.04902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
792c98d61321846aacf5f5f89a160ce13339bfd4 | 940 | py | Python | pyqt_sql_demo/syntax_highlighter/sql.py | nshiell/pyqt-sql-demo | 9e64ba069de744f69c2ecc2eeddac5b0b9f0968a | [
"Unlicense"
] | 18 | 2018-05-14T16:27:24.000Z | 2022-02-24T06:47:45.000Z | pyqt_sql_demo/syntax_highlighter/sql.py | nshiell/pyqt-sql-demo | 9e64ba069de744f69c2ecc2eeddac5b0b9f0968a | [
"Unlicense"
] | 2 | 2020-09-11T07:56:05.000Z | 2021-03-05T14:50:36.000Z | pyqt_sql_demo/syntax_highlighter/sql.py | nshiell/pyqt-sql-demo | 9e64ba069de744f69c2ecc2eeddac5b0b9f0968a | [
"Unlicense"
] | 9 | 2019-01-16T16:03:51.000Z | 2021-03-14T01:01:55.000Z | from pygments import highlight as _highlight
from pygments.lexers import SqlLexer
from pygments.formatters import HtmlFormatter
def style():
style = HtmlFormatter().get_style_defs()
return style
def highlight(text):
# Generated HTML contains unnecessary newline at the end
# before </pre> closing tag... | 33.571429 | 76 | 0.738298 | 127 | 940 | 5.354331 | 0.566929 | 0.088235 | 0.05 | 0.061765 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003989 | 0.2 | 940 | 27 | 77 | 34.814815 | 0.900266 | 0.456383 | 0 | 0 | 0 | 0 | 0.004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
79346eb30e63c170afbf3ea69f6c87de3e761345 | 4,100 | py | Python | mc-core/mc/data_gen/gnb_status_indication_pb2.py | copslock/o-ran_ric-app_mc | 243f8671c28596b1dc70dd295029d6151c9dd778 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mc-core/mc/data_gen/gnb_status_indication_pb2.py | copslock/o-ran_ric-app_mc | 243f8671c28596b1dc70dd295029d6151c9dd778 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | mc-core/mc/data_gen/gnb_status_indication_pb2.py | copslock/o-ran_ric-app_mc | 243f8671c28596b1dc70dd295029d6151c9dd778 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-07-07T06:43:16.000Z | 2021-07-07T06:43:16.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gnb_status_indication.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from googl... | 35.652174 | 426 | 0.79439 | 446 | 4,100 | 6.939462 | 0.295964 | 0.058158 | 0.024556 | 0.031018 | 0.427787 | 0.331502 | 0.331502 | 0.310178 | 0.294023 | 0.294023 | 0 | 0.023306 | 0.1 | 4,100 | 114 | 427 | 35.964912 | 0.815447 | 0.08439 | 0 | 0.544444 | 1 | 0.011111 | 0.269621 | 0.225841 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7935bc304873f87a9dd8551b03972144b4f09bb2 | 582 | py | Python | src/pymor/vectorarrays/constructions.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/vectorarrays/constructions.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | src/pymor/vectorarrays/constructions.py | JuliaBru/pymor | 46343b527267213f4279ea36f208b542ab291c4e | [
"Unlicense"
] | null | null | null | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2016 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
def cat_arrays(vector_arrays):
"""Return a new |VectorArray| which a concatenation of the arr... | 41.571429 | 92 | 0.74055 | 85 | 582 | 4.917647 | 0.576471 | 0.200957 | 0.129187 | 0.110048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022403 | 0.156357 | 582 | 13 | 93 | 44.769231 | 0.828921 | 0.512027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
7935f670a579e41f9498d1b3fe1e3afe2409108d | 407 | py | Python | swampytodo/urls.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | null | null | null | swampytodo/urls.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | 2 | 2015-04-23T00:21:01.000Z | 2015-04-23T00:29:23.000Z | swampytodo/urls.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'swampytodo.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^monitor', 'monitor.views.monitor_view', name='monitor'),
url(r'^todo', inc... | 29.071429 | 67 | 0.643735 | 53 | 407 | 4.924528 | 0.433962 | 0.076628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142506 | 407 | 13 | 68 | 31.307692 | 0.747851 | 0.238329 | 0 | 0 | 0 | 0 | 0.215686 | 0.084967 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
793dc7d4ffbc96247a33db7d9520735900231242 | 1,283 | py | Python | pictures/tests.py | FredAtei/Photo-app | 5f9e72948af6a27b1c6c438fa22652c06fc4f6d4 | [
"MIT"
] | null | null | null | pictures/tests.py | FredAtei/Photo-app | 5f9e72948af6a27b1c6c438fa22652c06fc4f6d4 | [
"MIT"
] | null | null | null | pictures/tests.py | FredAtei/Photo-app | 5f9e72948af6a27b1c6c438fa22652c06fc4f6d4 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Image,Location,Category
# Create your tests here.
class CategoryTestClass(TestCase):
def setUp(self):
self.travel = Category(name='travel')
def test_instance(self):
self.assertTrue(isinstance(self.travel,Category))
def test_save_method... | 31.292683 | 136 | 0.683554 | 154 | 1,283 | 5.564935 | 0.279221 | 0.065344 | 0.056009 | 0.070012 | 0.315053 | 0.168028 | 0.109685 | 0.109685 | 0 | 0 | 0 | 0.002915 | 0.197974 | 1,283 | 41 | 137 | 31.292683 | 0.829932 | 0.017927 | 0 | 0.225806 | 0 | 0 | 0.020651 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 1 | 0.290323 | false | 0 | 0.064516 | 0 | 0.451613 | 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 | 0 | 0 | 0 | 0 | 1 |
f700e260a7d6b3f4dc9cdfd4df281f246d308a20 | 2,504 | py | Python | tests/test_validators.py | fakeezz/edipy | 00c125621201e7290add135240c131c22feb3a72 | [
"MIT"
] | 1 | 2018-05-15T18:27:31.000Z | 2018-05-15T18:27:31.000Z | tests/test_validators.py | fakeezz/edipy | 00c125621201e7290add135240c131c22feb3a72 | [
"MIT"
] | null | null | null | tests/test_validators.py | fakeezz/edipy | 00c125621201e7290add135240c131c22feb3a72 | [
"MIT"
] | 2 | 2020-12-25T16:37:56.000Z | 2021-06-22T13:13:18.000Z | # coding: utf-8
import pytest
from edipy import fields, validators, exceptions
@pytest.mark.parametrize('fixed_type, data', [
(fields.Integer(1, validators=[validators.Range(1, 5)]), '1'),
(fields.Integer(1, validators=[validators.MaxValue(3)]), '2'),
(fields.Integer(1, validators=[validators.MinValue(1... | 33.837838 | 76 | 0.69369 | 311 | 2,504 | 5.463023 | 0.228296 | 0.09535 | 0.091819 | 0.127134 | 0.74691 | 0.727487 | 0.58505 | 0.508534 | 0.457328 | 0.412596 | 0 | 0.025126 | 0.125799 | 2,504 | 73 | 77 | 34.30137 | 0.751028 | 0.005192 | 0 | 0.433962 | 0 | 0 | 0.087656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0 | 0.037736 | 0 | 0.169811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
f7024605869dd7788905637cfccaa41707efb6c3 | 256 | py | Python | data/scripts/reverse.py | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 43 | 2018-09-17T00:45:35.000Z | 2021-11-14T23:56:45.000Z | data/scripts/reverse.py | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 7 | 2019-11-26T10:48:14.000Z | 2021-06-13T04:49:58.000Z | data/scripts/reverse.py | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 6 | 2018-09-17T02:09:59.000Z | 2020-08-15T13:57:44.000Z | #!/usr/bin/env python
#coding: utf-8
import sys
from common import reverse_items
if len(sys.argv) != 3:
print("Reverse key and value of all pairs")
print(("Usage: ", sys.argv[0], "[input] [output]"))
exit(1)
reverse_items(sys.argv[1], sys.argv[2])
| 21.333333 | 53 | 0.671875 | 44 | 256 | 3.863636 | 0.704545 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.144531 | 256 | 11 | 54 | 23.272727 | 0.748858 | 0.128906 | 0 | 0 | 0 | 0 | 0.257919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f703531b591af3d5317bed220eaa477c0403e4d5 | 2,576 | py | Python | stock_predictions/web/template.py | abakhru/stock_prediction | bfb4483ac888bc67e2a8928fdf037d23acbf48f9 | [
"MIT"
] | 1 | 2020-07-14T09:05:56.000Z | 2020-07-14T09:05:56.000Z | stock_predictions/web/template.py | abakhru/stock_prediction | bfb4483ac888bc67e2a8928fdf037d23acbf48f9 | [
"MIT"
] | null | null | null | stock_predictions/web/template.py | abakhru/stock_prediction | bfb4483ac888bc67e2a8928fdf037d23acbf48f9 | [
"MIT"
] | null | null | null | template = """<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.3.0/milligram.min.css">
<style>
.tradingvi... | 24.533333 | 195 | 0.572593 | 284 | 2,576 | 5.165493 | 0.464789 | 0.06544 | 0.062031 | 0.090661 | 0.162236 | 0.113838 | 0.113838 | 0.0818 | 0 | 0 | 0 | 0.029882 | 0.246506 | 2,576 | 104 | 196 | 24.769231 | 0.725914 | 0 | 0 | 0.252525 | 0 | 0.030303 | 0.993012 | 0.202252 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f70ef0f412e5276c5b8da11a1ad63834bedea5f9 | 593 | py | Python | venv/lib/python3.6/site-packages/gensim/__init__.py | bopopescu/wired_cli | 844b5c2bf32c95ad2974663f0501a85ff6134bd4 | [
"MIT"
] | 2 | 2021-06-09T20:55:17.000Z | 2021-11-03T03:07:37.000Z | venv/lib/python3.6/site-packages/gensim/__init__.py | bopopescu/wired_cli | 844b5c2bf32c95ad2974663f0501a85ff6134bd4 | [
"MIT"
] | 4 | 2020-07-26T02:10:42.000Z | 2021-03-31T18:48:58.000Z | venv/lib/python3.6/site-packages/gensim/__init__.py | bopopescu/wired_cli | 844b5c2bf32c95ad2974663f0501a85ff6134bd4 | [
"MIT"
] | 1 | 2020-07-25T23:57:23.000Z | 2020-07-25T23:57:23.000Z | """This package contains interfaces and functionality to compute pair-wise document similarities within a corpus
of documents.
"""
from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils # noqa:F401
import logging
__version__ = '3.5.0'
class NullHandler(logging.Handler... | 28.238095 | 114 | 0.726813 | 77 | 593 | 5.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022133 | 0.161889 | 593 | 20 | 115 | 29.65 | 0.837022 | 0.409781 | 0 | 0 | 0 | 0 | 0.032641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.222222 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f711bbbc339573d1744df69fd2b79a94a7b3f1b9 | 2,615 | py | Python | gateway/builders/authorization_builder.py | TarlanPayments/gw-python-client | a0dd5292c877ab06bf549693a1bfc9fb06ef9d19 | [
"MIT"
] | null | null | null | gateway/builders/authorization_builder.py | TarlanPayments/gw-python-client | a0dd5292c877ab06bf549693a1bfc9fb06ef9d19 | [
"MIT"
] | null | null | null | gateway/builders/authorization_builder.py | TarlanPayments/gw-python-client | a0dd5292c877ab06bf549693a1bfc9fb06ef9d19 | [
"MIT"
] | null | null | null | # The MIT License
#
# Copyright (c) 2017 Tarlan Payments.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify... | 41.507937 | 120 | 0.728489 | 349 | 2,615 | 5.146132 | 0.372493 | 0.057906 | 0.036748 | 0.044543 | 0.238307 | 0.13363 | 0.13363 | 0.11637 | 0.11637 | 0.048998 | 0 | 0.001938 | 0.210707 | 2,615 | 62 | 121 | 42.177419 | 0.868217 | 0.521224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 |
f718b4fadc70811185014ceea7a2ac977f84aa08 | 1,472 | py | Python | src/server/core/tests/test_config.py | Freshia/masakhane-web | acf5eaef7ab8109d6f10f212765572a1dc893cd5 | [
"MIT"
] | 20 | 2021-04-09T09:08:53.000Z | 2022-03-16T09:45:36.000Z | src/server/core/tests/test_config.py | Freshia/masakhane-web | acf5eaef7ab8109d6f10f212765572a1dc893cd5 | [
"MIT"
] | 15 | 2021-04-19T07:04:56.000Z | 2022-03-12T00:57:44.000Z | src/server/core/tests/test_config.py | Freshia/masakhane-web | acf5eaef7ab8109d6f10f212765572a1dc893cd5 | [
"MIT"
] | 14 | 2021-04-19T04:39:04.000Z | 2021-10-08T22:19:58.000Z | import os
import unittest
from flask import current_app
from flask_testing import TestCase
from core import masakhane
class TestDevelopmentConfig(TestCase):
def create_app(self):
masakhane.config.from_object('core.config.DevelopmentConfig')
return masakhane
def test_app_is_development(self)... | 32 | 77 | 0.688179 | 160 | 1,472 | 6.0875 | 0.275 | 0.154004 | 0.141684 | 0.178645 | 0.63963 | 0.595483 | 0.51232 | 0.469199 | 0.376797 | 0.376797 | 0 | 0 | 0.201766 | 1,472 | 46 | 78 | 32 | 0.828936 | 0 | 0 | 0.333333 | 0 | 0 | 0.202987 | 0.116769 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.166667 | false | 0 | 0.138889 | 0 | 0.472222 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f71b9e37908dd5da30752301903bfc85504aa496 | 728 | py | Python | Examples/AcceptAllRevisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 14 | 2018-07-15T17:01:52.000Z | 2018-11-29T06:15:33.000Z | Examples/AcceptAllRevisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 1 | 2018-09-28T12:59:34.000Z | 2019-10-08T08:42:59.000Z | Examples/AcceptAllRevisions.py | aspose-words-cloud/aspose-words-cloud-python | 65c7b55fa4aac69b60d41e7f54aed231df285479 | [
"MIT"
] | 2 | 2020-12-21T07:59:17.000Z | 2022-02-16T21:41:25.000Z | import os
import asposewordscloud
import asposewordscloud.models.requests
from asposewordscloud.rest import ApiException
from shutil import copyfile
words_api = WordsApi(client_id = '####-####-####-####-####', client_secret = '##################')
file_name = 'test_doc.docx'
# Upload original document to cloud stora... | 38.315789 | 108 | 0.787088 | 91 | 728 | 6.032967 | 0.505495 | 0.058288 | 0.163934 | 0.134791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.085165 | 728 | 19 | 109 | 38.315789 | 0.815315 | 0.133242 | 0 | 0 | 0 | 0 | 0.09062 | 0.038156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f7216012bdabcc6a4f76ac1521c5236c58f42c7a | 393 | py | Python | bookitoBackend/User/urls.py | mazdakdev/Bookito | 38e18fee22aafea95429da01e9769acf2748f676 | [
"MIT"
] | 10 | 2021-12-09T04:39:03.000Z | 2022-02-07T05:42:29.000Z | bookitoBackend/User/urls.py | mazdakdev/Bookito | 38e18fee22aafea95429da01e9769acf2748f676 | [
"MIT"
] | 2 | 2022-02-07T18:12:54.000Z | 2022-02-10T10:27:37.000Z | bookitoBackend/User/urls.py | mazdakdev/Bookito | 38e18fee22aafea95429da01e9769acf2748f676 | [
"MIT"
] | null | null | null | from django.urls import path
from .api import *
from knox import views as knox_views
urlpatterns = [
#domain.dn/api/v1/register/ | POST
path('register/' , SignUpAPI.as_view() , name='register'),
#domain.dn/api/v1/register/ | POST
path('login/' , SignInAPI.as_view() , name='login'),
#domain.dn/ap... | 21.833333 | 62 | 0.64631 | 55 | 393 | 4.545455 | 0.418182 | 0.096 | 0.132 | 0.156 | 0.232 | 0.232 | 0.232 | 0 | 0 | 0 | 0 | 0.009317 | 0.180662 | 393 | 18 | 63 | 21.833333 | 0.767081 | 0.236641 | 0 | 0 | 0 | 0 | 0.124161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f72d2d7694c02f9baefa28ab714fa7d648759fe9 | 8,778 | py | Python | groupbunk.py | shine-jayakumar/groupbunk-fb | ddf3d66cd902343e419dd2cf0c86f42850315f08 | [
"MIT"
] | 1 | 2022-02-11T05:31:48.000Z | 2022-02-11T05:31:48.000Z | groupbunk.py | shine-jayakumar/groupbunk-fb | ddf3d66cd902343e419dd2cf0c86f42850315f08 | [
"MIT"
] | null | null | null | groupbunk.py | shine-jayakumar/groupbunk-fb | ddf3d66cd902343e419dd2cf0c86f42850315f08 | [
"MIT"
] | null | null | null | """
GroupBunk v.1.2
Leave your Facebook groups quietly
Author: Shine Jayakumar
Github: https://github.com/shine-jayakumar
LICENSE: MIT
"""
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions imp... | 35.97541 | 127 | 0.670084 | 1,111 | 8,778 | 5.133213 | 0.273627 | 0.04033 | 0.025075 | 0.016658 | 0.205331 | 0.147817 | 0.092934 | 0.070139 | 0.049097 | 0.033666 | 0 | 0.009004 | 0.190248 | 8,778 | 244 | 128 | 35.97541 | 0.793331 | 0.124288 | 0 | 0.096154 | 0 | 0.012821 | 0.323309 | 0.037163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0.051282 | 0.076923 | 0 | 0.096154 | 0.00641 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f72d949d658d47131c4a502292aadd093d90b245 | 212 | py | Python | test-examples/million_points.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | test-examples/million_points.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | test-examples/million_points.py | tlambert03/image-demos | a2974bcc7f040fd4d14e659c4cbfeabcf726c707 | [
"BSD-3-Clause"
] | null | null | null | """Test converting an image to a pyramid.
"""
import numpy as np
import napari
points = np.random.randint(100, size=(50_000, 2))
with napari.gui_qt():
viewer = napari.view_points(points, face_color='red')
| 19.272727 | 57 | 0.712264 | 34 | 212 | 4.323529 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.150943 | 212 | 10 | 58 | 21.2 | 0.766667 | 0.179245 | 0 | 0 | 0 | 0 | 0.017964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f7367b85ef33529c5c360e68d214cb8e6a80a38f | 4,752 | py | Python | dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py | njalloul90/Genomics_Oncology_Platform | 9bf6d0edca5df783f4e371fa1bc46b7b1576fe70 | [
"MIT"
] | 6 | 2021-07-26T14:21:25.000Z | 2021-07-26T14:32:01.000Z | dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py | njalloul90/Genomics_Oncology_Platform | 9bf6d0edca5df783f4e371fa1bc46b7b1576fe70 | [
"MIT"
] | 9 | 2021-03-18T23:10:27.000Z | 2022-03-11T23:43:55.000Z | dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py | njalloul90/Genomics_Oncology_Platform | 9bf6d0edca5df783f4e371fa1bc46b7b1576fe70 | [
"MIT"
] | 2 | 2019-03-11T05:06:49.000Z | 2019-03-22T21:48:49.000Z | """
PyColourChooser
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
This file is part of PyColourChooser.
This version of PyColourChooser is open source; you can redistribute it
and/or modify it under the licensed terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRA... | 32.547945 | 71 | 0.643729 | 620 | 4,752 | 4.9 | 0.414516 | 0.020737 | 0.024687 | 0.0237 | 0.078341 | 0.025016 | 0.025016 | 0 | 0 | 0 | 0 | 0.01006 | 0.267887 | 4,752 | 145 | 72 | 32.772414 | 0.863179 | 0.494739 | 0 | 0.035088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.017544 | 0.017544 | 0 | 0.298246 | 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 | 0 | 0 | 0 | 0 | 1 |
f7387b7a0fda396aca3fe13d2312bd4427223bec | 1,317 | py | Python | nasbench/scripts/generate-all-graphs.py | bkj/nasbench | a238cf26d843aaffbe037569528ef96d3e37eb04 | [
"Apache-2.0"
] | null | null | null | nasbench/scripts/generate-all-graphs.py | bkj/nasbench | a238cf26d843aaffbe037569528ef96d3e37eb04 | [
"Apache-2.0"
] | null | null | null | nasbench/scripts/generate-all-graphs.py | bkj/nasbench | a238cf26d843aaffbe037569528ef96d3e37eb04 | [
"Apache-2.0"
] | 1 | 2021-07-25T16:36:34.000Z | 2021-07-25T16:36:34.000Z | #!/usr/bin/env python
"""
generate-all-graphs.py
python generate-all-graphs.py | gzip -c > all-graphs.gz
"""
import sys
import json
import itertools
import numpy as np
from tqdm import tqdm
from nasbench.lib import graph_util
from joblib import delayed, Parallel
max_vertices = 7
num_ops = 3
max_edges ... | 24.388889 | 98 | 0.642369 | 189 | 1,317 | 4.359788 | 0.433862 | 0.054612 | 0.041262 | 0.055825 | 0.06068 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015702 | 0.226272 | 1,317 | 54 | 99 | 24.388889 | 0.792934 | 0.07593 | 0 | 0.057143 | 1 | 0 | 0.024917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.2 | 0 | 0.314286 | 0.028571 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f738e084271100fae4934591514291316a9bafdd | 1,500 | py | Python | ui/mext.py | szymonkaliski/nott | fa85e64b570f71733ea199dddbd0bc0f013a613b | [
"MIT"
] | 25 | 2019-07-01T14:58:48.000Z | 2021-11-13T17:00:44.000Z | ui/mext.py | szymonkaliski/nott | fa85e64b570f71733ea199dddbd0bc0f013a613b | [
"MIT"
] | 6 | 2019-12-30T02:50:19.000Z | 2021-05-10T16:41:47.000Z | ui/mext.py | szymonkaliski/nott | fa85e64b570f71733ea199dddbd0bc0f013a613b | [
"MIT"
] | 2 | 2020-01-05T13:02:07.000Z | 2020-05-21T15:54:57.000Z | # FIXME: fix all "happy paths coding" issues
import liblo
from threading import Thread
class Mext(object):
device = None
def __init__(self, device_port=5000):
self.device_receiver = liblo.ServerThread(device_port)
self.device_receiver.add_method("/monome/grid/key", "iii", self.on_grid_key)
... | 26.315789 | 85 | 0.544 | 175 | 1,500 | 4.44 | 0.337143 | 0.10296 | 0.092664 | 0.073359 | 0.262548 | 0.14157 | 0.14157 | 0.14157 | 0.14157 | 0.14157 | 0 | 0.015337 | 0.348 | 1,500 | 56 | 86 | 26.785714 | 0.779141 | 0.028 | 0 | 0.195122 | 0 | 0 | 0.078984 | 0.035714 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.146341 | false | 0 | 0.04878 | 0 | 0.243902 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f73ea882b3c478b64d849ace9aad77a4fd64c642 | 504 | py | Python | trees.py | dmancevo/trees | a76a8d9c8e11c67042e3d947d58a84fee83ad6b5 | [
"Apache-2.0"
] | null | null | null | trees.py | dmancevo/trees | a76a8d9c8e11c67042e3d947d58a84fee83ad6b5 | [
"Apache-2.0"
] | null | null | null | trees.py | dmancevo/trees | a76a8d9c8e11c67042e3d947d58a84fee83ad6b5 | [
"Apache-2.0"
] | null | null | null | from ctypes import *
class Node(Structure): pass
Node._fields_ = [
("leaf", c_int),
("g", c_float),
("min_samples", c_int),
("split_ind", c_int),
("split", c_float),
("left", POINTER(Node)),
("right", POINTER(Node))]
trees = CDLL("./trees.so")
trees.get_root.argtypes = (c_int, )
trees.get... | 21 | 47 | 0.621032 | 69 | 504 | 4.144928 | 0.521739 | 0.055944 | 0.125874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002463 | 0.194444 | 504 | 23 | 48 | 21.913043 | 0.70197 | 0 | 0 | 0 | 0 | 0 | 0.113095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.055556 | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f73f526fb320491a4e8c361c6ccf86f4cd4462be | 8,080 | py | Python | purity_fb/purity_fb_1dot12/models/multi_protocol_rule.py | tlewis-ps/purity_fb_python_client | 652835cbd485c95a86da27f8b661679727ec6ea0 | [
"Apache-2.0"
] | 5 | 2017-09-08T20:47:22.000Z | 2021-06-29T02:11:05.000Z | purity_fb/purity_fb_1dot12/models/multi_protocol_rule.py | tlewis-ps/purity_fb_python_client | 652835cbd485c95a86da27f8b661679727ec6ea0 | [
"Apache-2.0"
] | 16 | 2017-11-27T20:57:48.000Z | 2021-11-23T18:46:43.000Z | purity_fb/purity_fb_1dot12/models/multi_protocol_rule.py | tlewis-ps/purity_fb_python_client | 652835cbd485c95a86da27f8b661679727ec6ea0 | [
"Apache-2.0"
] | 22 | 2017-10-13T15:33:05.000Z | 2021-11-08T19:56:21.000Z | # coding: utf-8
"""
Pure Storage FlashBlade REST 1.12 Python SDK
Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions 1.0 - 1.12. Developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/... | 53.509934 | 1,242 | 0.688738 | 1,146 | 8,080 | 4.754799 | 0.191972 | 0.057258 | 0.079281 | 0.033034 | 0.699211 | 0.656267 | 0.636998 | 0.6069 | 0.55423 | 0.525601 | 0 | 0.010154 | 0.244307 | 8,080 | 150 | 1,243 | 53.866667 | 0.882247 | 0.628094 | 0 | 0.060606 | 0 | 0 | 0.051793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.045455 | 0 | 0.378788 | 0.030303 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f747c5f4148789ffa72b834beacbd044a5cb6421 | 2,468 | py | Python | linear_error_analysis/src/main.py | spacesys-finch/Science | 623c9d77de6a52e87571debf7970cea7af591f2a | [
"MIT"
] | null | null | null | linear_error_analysis/src/main.py | spacesys-finch/Science | 623c9d77de6a52e87571debf7970cea7af591f2a | [
"MIT"
] | null | null | null | linear_error_analysis/src/main.py | spacesys-finch/Science | 623c9d77de6a52e87571debf7970cea7af591f2a | [
"MIT"
] | 1 | 2021-10-09T19:35:26.000Z | 2021-10-09T19:35:26.000Z | """
main.py
Main driver for the Linear Error Analysis program.
Can be run using `lea.sh`.
Can choose which plots to see by toggling on/off `show_fig` param.
Author(s): Adyn Miles, Shiqi Xu, Rosie Liang
"""
import os
import matplotlib.pyplot as plt
import numpy as np
import config
import libs.gta_xch4 as gta_xch4
i... | 28.697674 | 87 | 0.687601 | 366 | 2,468 | 4.314208 | 0.398907 | 0.034199 | 0.045598 | 0.075997 | 0.037999 | 0.037999 | 0.037999 | 0.037999 | 0.037999 | 0 | 0 | 0.012821 | 0.209887 | 2,468 | 85 | 88 | 29.035294 | 0.796923 | 0.286872 | 0 | 0 | 0 | 0 | 0.039125 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0 | false | 0 | 0.204082 | 0 | 0.204082 | 0.040816 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f74b1a4debef16881b74152eff013915a6f5da94 | 8,550 | py | Python | user_chainload.py | Phidica/sublime-execline | a3c1b76de0c9a420ae73467c28f445b698f7f508 | [
"MIT"
] | 2 | 2020-08-28T16:04:37.000Z | 2020-08-28T20:06:21.000Z | user_chainload.py | Phidica/sublime-execline | a3c1b76de0c9a420ae73467c28f445b698f7f508 | [
"MIT"
] | null | null | null | user_chainload.py | Phidica/sublime-execline | a3c1b76de0c9a420ae73467c28f445b698f7f508 | [
"MIT"
] | null | null | null | import logging
import os
import re
import sublime
# external dependencies (see dependencies.json)
import jsonschema
import yaml # pyyaml
# This plugin generates a hidden syntax file containing rules for additional
# chainloading commands defined by the user. The syntax is stored in the cache
# directory to avoid the... | 31.090909 | 109 | 0.68 | 1,061 | 8,550 | 5.408106 | 0.310085 | 0.015859 | 0.017776 | 0.010457 | 0.106483 | 0.027536 | 0.012199 | 0 | 0 | 0 | 0 | 0.001177 | 0.205029 | 8,550 | 274 | 110 | 31.20438 | 0.843019 | 0.227251 | 0 | 0.144444 | 1 | 0 | 0.232034 | 0.074909 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.033333 | 0.005556 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f74f0070abe0b831d8cd12d2943b6e264b00e54d | 215 | py | Python | arc/arc009/arc009b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | arc/arc009/arc009b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | arc/arc009/arc009b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | def conv(x):
return int(''.join(t[c] for c in x))
b = input().split()
N = int(input())
a = [input() for _ in range(N)]
t = {b[i]: str(i) for i in range(10)}
a.sort(key = lambda x: conv(x))
print(*a, sep='\n')
| 19.545455 | 40 | 0.548837 | 45 | 215 | 2.6 | 0.533333 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011561 | 0.195349 | 215 | 10 | 41 | 21.5 | 0.66474 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
f75197db0d5043fe351ad2be154d400c859209b0 | 965 | py | Python | setup.py | refnode/spartakiade-2021-session-effective-python | 6b1a25c4ec79261de4ed6385a81b6a31a06d6b58 | [
"Apache-2.0"
] | 1 | 2021-06-04T14:05:31.000Z | 2021-06-04T14:05:31.000Z | setup.py | refnode/spartakiade-2021-session-effective-python | 6b1a25c4ec79261de4ed6385a81b6a31a06d6b58 | [
"Apache-2.0"
] | null | null | null | setup.py | refnode/spartakiade-2021-session-effective-python | 6b1a25c4ec79261de4ed6385a81b6a31a06d6b58 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open("README.adoc") as fh_readme:
readme = fh_readme.read()
install_reqs = []
setup(
author="Sven Wilhelm",
author_email='refnode@gmail.com',
python_requires='>=3.8',
classifiers=[
'Developmen... | 28.382353 | 79 | 0.675648 | 111 | 965 | 5.756757 | 0.603604 | 0.093897 | 0.137715 | 0.194053 | 0.231612 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031726 | 0.18342 | 965 | 33 | 80 | 29.242424 | 0.779188 | 0.039378 | 0 | 0 | 0 | 0 | 0.444083 | 0.089034 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f75630cbc7b1eef703d5e902537d65487d1b7612 | 4,126 | py | Python | sim/pid.py | jmagine/rf-selection | ba9dcb5ca550916873ce68baa71da983f2dd4be5 | [
"MIT"
] | 1 | 2020-05-06T01:28:06.000Z | 2020-05-06T01:28:06.000Z | sim/pid.py | jmagine/multiuav-rf | ba9dcb5ca550916873ce68baa71da983f2dd4be5 | [
"MIT"
] | null | null | null | sim/pid.py | jmagine/multiuav-rf | ba9dcb5ca550916873ce68baa71da983f2dd4be5 | [
"MIT"
] | null | null | null | '''*-----------------------------------------------------------------------*---
Author: Jason Ma
Date : Oct 18 2018
TODO
File Name : pid.py
Description: TODO
---... | 25.469136 | 127 | 0.537082 | 666 | 4,126 | 3.205706 | 0.217718 | 0.061827 | 0.016862 | 0.030913 | 0.250117 | 0.223888 | 0.200468 | 0.174239 | 0.078689 | 0.055269 | 0 | 0.047895 | 0.246001 | 4,126 | 161 | 128 | 25.627329 | 0.63838 | 0.26127 | 0 | 0.046512 | 0 | 0 | 0.003953 | 0 | 0 | 0 | 0 | 0.012422 | 0.011628 | 1 | 0.093023 | false | 0.011628 | 0.069767 | 0.023256 | 0.22093 | 0.011628 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f75c066d3ec31ec2f99d70612e1572ff45c4ae07 | 930 | py | Python | Regression/multiple_linear_regression.py | Rupii/Machine-Learning | 2b00698815efb04346d5cb980b68af76f27a5ca6 | [
"MIT"
] | null | null | null | Regression/multiple_linear_regression.py | Rupii/Machine-Learning | 2b00698815efb04346d5cb980b68af76f27a5ca6 | [
"MIT"
] | null | null | null | Regression/multiple_linear_regression.py | Rupii/Machine-Learning | 2b00698815efb04346d5cb980b68af76f27a5ca6 | [
"MIT"
] | 1 | 2019-09-04T05:43:31.000Z | 2019-09-04T05:43:31.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 24 23:18:54 2018
@author: Rupesh
"""
# Multiple Linear Regression
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
plt.style.use("ggplot")
# loading dependies
df = pd.read_csv("50_Startups.csv")
df.head()
X = df.iloc[:, :-... | 19.787234 | 74 | 0.731183 | 147 | 930 | 4.47619 | 0.52381 | 0.050152 | 0.06383 | 0.045593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028858 | 0.143011 | 930 | 47 | 75 | 19.787234 | 0.796738 | 0.198925 | 0 | 0 | 0 | 0 | 0.028689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f761849b5a4f4a9a3e0e3b79a8c5c9b1f726ae8e | 3,444 | py | Python | projects/ide/sublime/src/Bolt/api/inspect/highlighting.py | boltjs/bolt | c2666c876b34b1a61486a432eef3141ca8d1e411 | [
"BSD-3-Clause"
] | 11 | 2015-09-29T19:19:34.000Z | 2020-11-20T09:14:46.000Z | projects/ide/sublime/src/Bolt/api/inspect/highlighting.py | boltjs/bolt | c2666c876b34b1a61486a432eef3141ca8d1e411 | [
"BSD-3-Clause"
] | null | null | null | projects/ide/sublime/src/Bolt/api/inspect/highlighting.py | boltjs/bolt | c2666c876b34b1a61486a432eef3141ca8d1e411 | [
"BSD-3-Clause"
] | null | null | null | import sublime
from ui.read import settings as read_settings
from ui.write import write, highlight as write_highlight
from lookup import file_type as lookup_file_type
from ui.read import x as ui_read
from ui.read import spots as read_spots
from ui.read import regions as ui_regions
from core.read import read as core_rea... | 29.689655 | 116 | 0.654472 | 433 | 3,444 | 5.018476 | 0.258661 | 0.029452 | 0.018408 | 0.029452 | 0.135297 | 0.045099 | 0.045099 | 0.045099 | 0 | 0 | 0 | 0.006518 | 0.242741 | 3,444 | 115 | 117 | 29.947826 | 0.826687 | 0 | 0 | 0.117647 | 0 | 0 | 0.068235 | 0.006969 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152941 | null | null | 0.035294 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7639fdfd1c81876235b0d816ccef91c2a2888bb | 903 | py | Python | spellingcorrector/utils/count.py | NazcaLines/spelling-corrector | ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b | [
"MIT"
] | null | null | null | spellingcorrector/utils/count.py | NazcaLines/spelling-corrector | ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b | [
"MIT"
] | null | null | null | spellingcorrector/utils/count.py | NazcaLines/spelling-corrector | ae315a3988e94ee46f60ff4ac7d2ee7609ebc24b | [
"MIT"
] | null | null | null | import os
import functools
CORPUS_DIR = str(os.getcwd())[:str(os.getcwd()).index('spellingcorrector/')] \
+ 'data/corpus.txt'
NWORD = {}
def checkCorpus(fn):
@functools.wraps(fn)
def new_func(*args, **kwargs):
t = os.path.isfile(CORPUS_DIR)
if t == False:
raise IOEr... | 19.630435 | 78 | 0.572536 | 113 | 903 | 4.442478 | 0.469027 | 0.089641 | 0.043825 | 0.071713 | 0.151394 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007776 | 0.287929 | 903 | 45 | 79 | 20.066667 | 0.772939 | 0.035437 | 0 | 0.066667 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f76d62143b8e1fa514207d6381b4adbf58120f1a | 2,889 | py | Python | skos/method.py | edmondchuc/voc-view | 57bd965facacc77f40f218685c88e8b858d4925c | [
"MIT"
] | 3 | 2021-07-31T16:23:26.000Z | 2022-01-24T01:28:17.000Z | skos/method.py | edmondchuc/voc-view | 57bd965facacc77f40f218685c88e8b858d4925c | [
"MIT"
] | null | null | null | skos/method.py | edmondchuc/voc-view | 57bd965facacc77f40f218685c88e8b858d4925c | [
"MIT"
] | 1 | 2019-08-07T06:02:52.000Z | 2019-08-07T06:02:52.000Z | from pyldapi.renderer import Renderer
from pyldapi.view import View
from flask import render_template, Response
from rdflib import Graph, URIRef, BNode
import skos
from skos.common_properties import CommonPropertiesMixin
from config import Config
class Method(CommonPropertiesMixin):
def __init__(self, uri):
... | 40.125 | 128 | 0.602631 | 343 | 2,889 | 4.941691 | 0.326531 | 0.037168 | 0.046018 | 0.016519 | 0.035398 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0.001474 | 0.295604 | 2,889 | 71 | 129 | 40.690141 | 0.83145 | 0.116303 | 0 | 0.072727 | 0 | 0 | 0.080879 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.072727 | false | 0 | 0.127273 | 0 | 0.309091 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7836ff545709d136c298d62a1c6e262234ad38c | 2,692 | py | Python | Python/Activies/Classroom10-1.py | FranciscoMends/Python_Codes | fd0b33443d67b56b092beeea0e778285be6a42a9 | [
"MIT"
] | null | null | null | Python/Activies/Classroom10-1.py | FranciscoMends/Python_Codes | fd0b33443d67b56b092beeea0e778285be6a42a9 | [
"MIT"
] | null | null | null | Python/Activies/Classroom10-1.py | FranciscoMends/Python_Codes | fd0b33443d67b56b092beeea0e778285be6a42a9 | [
"MIT"
] | null | null | null | '''
nome = input('Insira seu nome: ')
if nome == 'Mendes':
print('Que nome lindo você tem!')
else:
print('Seu nome é tão normal!')
print('Bom dia {}!'.format(nome))
'''
#DESAFIO_28
'''
from random import randint
from time import sleep
x = randint(0,5)
y = int(input('Digite um número de 0 à 5: '))
print('Loading... | 24.697248 | 84 | 0.643759 | 408 | 2,692 | 4.203431 | 0.355392 | 0.037318 | 0.032653 | 0.026239 | 0.052478 | 0.052478 | 0 | 0 | 0 | 0 | 0 | 0.041364 | 0.182764 | 2,692 | 109 | 85 | 24.697248 | 0.738182 | 0.094354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
f78374a6b9c098ca930042e6331630796196647c | 4,902 | py | Python | temp logger complete.py | nevillethenev/Beer | a8fae43e7b2f846e208daad4a9b025703f0acb2a | [
"Unlicense"
] | null | null | null | temp logger complete.py | nevillethenev/Beer | a8fae43e7b2f846e208daad4a9b025703f0acb2a | [
"Unlicense"
] | null | null | null | temp logger complete.py | nevillethenev/Beer | a8fae43e7b2f846e208daad4a9b025703f0acb2a | [
"Unlicense"
] | null | null | null | #/usr/bin/python
import serial
import time
import matplotlib.pyplot as plt
import numpy as np
import os
"""""""""""""""""""""""""""""""""""
"""""""NEVS BEER SCRIPT""""""""""""
"""""""""""""""""""""""""""""""""""
###need to add exception handler for serial disconnection
## SETUP SERIAL PORT
try:
... | 29.178571 | 104 | 0.563035 | 587 | 4,902 | 4.688245 | 0.301533 | 0.026163 | 0.043605 | 0.055233 | 0.304869 | 0.272529 | 0.234012 | 0.234012 | 0.220203 | 0.205669 | 0 | 0.032569 | 0.279682 | 4,902 | 167 | 105 | 29.353293 | 0.746814 | 0.342513 | 0 | 0.395349 | 0 | 0 | 0.265201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05814 | null | null | 0.127907 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f788b1d1658062d96ad83c42b9cd26071a4b8418 | 374 | py | Python | my_spotless_app/migrations/0002_alter_service_picture_url.py | AntociM/Spotless | 8cd2d7f76eccee046d42f7a836cf91af04527186 | [
"ADSL"
] | null | null | null | my_spotless_app/migrations/0002_alter_service_picture_url.py | AntociM/Spotless | 8cd2d7f76eccee046d42f7a836cf91af04527186 | [
"ADSL"
] | 29 | 2022-01-22T19:05:56.000Z | 2022-03-01T08:57:14.000Z | my_spotless_app/migrations/0002_alter_service_picture_url.py | AntociM/Project-4 | 8cd2d7f76eccee046d42f7a836cf91af04527186 | [
"ADSL"
] | 1 | 2022-03-02T11:00:59.000Z | 2022-03-02T11:00:59.000Z | # Generated by Django 3.2 on 2022-02-27 11:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_spotless_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='service',
name='picture_url',
... | 19.684211 | 45 | 0.590909 | 39 | 374 | 5.538462 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068441 | 0.296791 | 374 | 18 | 46 | 20.777778 | 0.752852 | 0.114973 | 0 | 0 | 1 | 0 | 0.136778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f78d23bb7041a7dd86f556d3f4cd134329c150dd | 2,604 | py | Python | tests/utils_tests/testing_tests/assertions_tests/test_assert_is_bbox_dataset.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | 1 | 2018-12-27T03:47:45.000Z | 2018-12-27T03:47:45.000Z | tests/utils_tests/testing_tests/assertions_tests/test_assert_is_bbox_dataset.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | null | null | null | tests/utils_tests/testing_tests/assertions_tests/test_assert_is_bbox_dataset.py | souravsingh/chainercv | 8f76510472bc95018c183e72f37bc6c34a89969c | [
"MIT"
] | 2 | 2019-12-16T02:20:26.000Z | 2022-01-17T02:00:49.000Z | import numpy as np
import unittest
from chainer.dataset import DatasetMixin
from chainer import testing
from chainercv.utils import assert_is_bbox_dataset
from chainercv.utils import generate_random_bbox
class BboxDataset(DatasetMixin):
def __init__(self, options=(), empty_bbox=False):
self.options = o... | 28.304348 | 78 | 0.656298 | 302 | 2,604 | 5.480132 | 0.228477 | 0.066465 | 0.065257 | 0.061631 | 0.306344 | 0.273112 | 0.227795 | 0.174018 | 0.138973 | 0.138973 | 0 | 0.023164 | 0.220814 | 2,604 | 91 | 79 | 28.615385 | 0.792509 | 0 | 0 | 0.222222 | 1 | 0 | 0.039171 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.142857 | false | 0 | 0.095238 | 0.015873 | 0.460317 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f78da1263e700a0f21ebec44c019c94ee9c11482 | 3,002 | py | Python | seahub/utils/http.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | seahub/utils/http.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | seahub/utils/http.py | Xandersoft/seahub | f75f238b3e0a907e8a8003f419e367fa36e992e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012-2016 Seafile Ltd.
from __future__ import unicode_literals
import unicodedata
import urlparse
import json
from functools import wraps
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden
class _HTTPException(Exception):
def __init__(self, message=''):
se... | 35.317647 | 103 | 0.676549 | 396 | 3,002 | 5.005051 | 0.414141 | 0.024723 | 0.018163 | 0.024218 | 0.027245 | 0.019173 | 0 | 0 | 0 | 0 | 0 | 0.017016 | 0.236509 | 3,002 | 84 | 104 | 35.738095 | 0.847731 | 0.24517 | 0 | 0.181818 | 0 | 0 | 0.026958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.036364 | 0.109091 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7904ac31330990ac63a4b3068ea84654cf9b168 | 6,172 | py | Python | pextant/sextant.py | norheim/pextant | f4235719279c0e6f178ae1e0f8b1ea3346533915 | [
"MIT"
] | null | null | null | pextant/sextant.py | norheim/pextant | f4235719279c0e6f178ae1e0f8b1ea3346533915 | [
"MIT"
] | 1 | 2019-12-03T03:52:41.000Z | 2019-12-04T14:50:36.000Z | pextant/sextant.py | norheim/pextant | f4235719279c0e6f178ae1e0f8b1ea3346533915 | [
"MIT"
] | 1 | 2019-12-03T02:37:57.000Z | 2019-12-03T02:37:57.000Z | from flask_settings import GEOTIFF_FULL_PATH
import sys
import traceback
sys.path.append('../')
import numpy as np
import json
from datetime import timedelta
from functools import update_wrapper
from pextant.EnvironmentalModel import GDALMesh
from pextant.explorers import Astronaut
from pextant.analysis.loadWaypoints... | 38.098765 | 121 | 0.638043 | 707 | 6,172 | 5.373409 | 0.24611 | 0.056857 | 0.039484 | 0.026323 | 0.392735 | 0.367465 | 0.305344 | 0.254277 | 0.214004 | 0.201632 | 0 | 0.004091 | 0.24757 | 6,172 | 162 | 122 | 38.098765 | 0.813953 | 0.026572 | 0 | 0.24812 | 0 | 0 | 0.085124 | 0.017491 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007519 | 0.105263 | null | null | 0.097744 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f79637ff2082c4edbb504887dfd73b4aed28edc7 | 37,112 | py | Python | bitten/model.py | dokipen/bitten | d4d2829c63eec84bcfab05ec7035a23e85d90c00 | [
"BSD-3-Clause"
] | 1 | 2016-08-28T03:13:03.000Z | 2016-08-28T03:13:03.000Z | bitten/model.py | dokipen/bitten | d4d2829c63eec84bcfab05ec7035a23e85d90c00 | [
"BSD-3-Clause"
] | null | null | null | bitten/model.py | dokipen/bitten | d4d2829c63eec84bcfab05ec7035a23e85d90c00 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de>
# Copyright (C) 2007 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://bitte... | 37.000997 | 148 | 0.551304 | 4,518 | 37,112 | 4.430279 | 0.06795 | 0.004596 | 0.004496 | 0.01214 | 0.659223 | 0.613609 | 0.571942 | 0.530975 | 0.463279 | 0.406175 | 0 | 0.003432 | 0.332588 | 37,112 | 1,002 | 149 | 37.037924 | 0.804675 | 0.016302 | 0 | 0.506631 | 0 | 0 | 0.158794 | 0.018643 | 0.006631 | 0 | 0 | 0 | 0.037135 | 0 | null | null | 0 | 0.007958 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f7979a1edf5e664d9fd5011a9f7390b351722d3b | 834 | py | Python | tests/profiles/fontval_test.py | kennethormandy/fontbakery | ec569215cd7919e125089bd6f65346afa9e75546 | [
"Apache-2.0"
] | null | null | null | tests/profiles/fontval_test.py | kennethormandy/fontbakery | ec569215cd7919e125089bd6f65346afa9e75546 | [
"Apache-2.0"
] | null | null | null | tests/profiles/fontval_test.py | kennethormandy/fontbakery | ec569215cd7919e125089bd6f65346afa9e75546 | [
"Apache-2.0"
] | 1 | 2020-06-14T17:13:59.000Z | 2020-06-14T17:13:59.000Z | import os
import pytest
from fontbakery.utils import TEST_FILE
from fontbakery.checkrunner import ERROR
def test_check_fontvalidator():
""" MS Font Validator checks """
from fontbakery.profiles.fontval import com_google_fonts_check_fontvalidator as check
font = TEST_FILE("mada/Mada-Regular.ttf")
# we want t... | 28.758621 | 87 | 0.732614 | 119 | 834 | 5.02521 | 0.579832 | 0.070234 | 0.065217 | 0.056856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001458 | 0.177458 | 834 | 28 | 88 | 29.785714 | 0.870262 | 0.279377 | 0 | 0 | 0 | 0 | 0.055932 | 0.035593 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.375 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
f797a2004904bea8641ef96760d4f8b68d968963 | 3,662 | py | Python | app/views.py | sinantan/TechRSS | f07d21b5553534ef6ecb6da6dc89524a8bbdb505 | [
"MIT"
] | 3 | 2019-10-26T13:31:21.000Z | 2020-02-26T20:46:35.000Z | app/views.py | sinantan/TechRSS | f07d21b5553534ef6ecb6da6dc89524a8bbdb505 | [
"MIT"
] | null | null | null | app/views.py | sinantan/TechRSS | f07d21b5553534ef6ecb6da6dc89524a8bbdb505 | [
"MIT"
] | null | null | null | from run import app
from functools import wraps
from flask import render_template,flash,redirect,logging,session,url_for,request
from .models.database import user_register, user_login, get_feed, get_user_info, update_feed, change_password
#kullanıcı giriş decorator'u. bu yapı tüm decoratorlarda aynı.
def lo... | 34.87619 | 176 | 0.706445 | 466 | 3,662 | 5.396996 | 0.266094 | 0.06998 | 0.067594 | 0.079523 | 0.310934 | 0.271571 | 0.147913 | 0.120875 | 0.093042 | 0.093042 | 0 | 0 | 0.159203 | 3,662 | 105 | 177 | 34.87619 | 0.816824 | 0.057073 | 0 | 0.4 | 0 | 0 | 0.206515 | 0.006575 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094118 | false | 0.105882 | 0.047059 | 0 | 0.341176 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f799698de0ff8776338f8a1ec460edf6e103c58f | 703 | py | Python | tests/test_core.py | emauton/aoc2015 | f321571b623a0e7acaa173be57506e64bd32765f | [
"MIT"
] | null | null | null | tests/test_core.py | emauton/aoc2015 | f321571b623a0e7acaa173be57506e64bd32765f | [
"MIT"
] | null | null | null | tests/test_core.py | emauton/aoc2015 | f321571b623a0e7acaa173be57506e64bd32765f | [
"MIT"
] | null | null | null | from aoc2015.core import dispatch
def test_dispatch_fail(capsys):
'''Dispatch fails properly when passed a bad day'''
# capsys is a pytest fixture that allows asserts agains stdout/stderr
# https://docs.pytest.org/en/stable/capture.html
dispatch(['204'])
captured = capsys.readouterr()
assert '... | 35.15 | 73 | 0.702703 | 95 | 703 | 5.157895 | 0.515789 | 0.028571 | 0.061224 | 0.061224 | 0.416327 | 0.416327 | 0.416327 | 0.416327 | 0.416327 | 0.416327 | 0 | 0.037931 | 0.174964 | 703 | 19 | 74 | 37 | 0.806897 | 0.450925 | 0 | 0.222222 | 0 | 0 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 |
f79b68b39e1d3fc6804f9e60df51a84aec79e5e5 | 6,016 | py | Python | Utility.py | psarkozy/HWTester | 2553398f4ac8645a897b4f41bd36a21d54d2b177 | [
"MIT"
] | null | null | null | Utility.py | psarkozy/HWTester | 2553398f4ac8645a897b4f41bd36a21d54d2b177 | [
"MIT"
] | null | null | null | Utility.py | psarkozy/HWTester | 2553398f4ac8645a897b4f41bd36a21d54d2b177 | [
"MIT"
] | 2 | 2019-11-11T12:44:17.000Z | 2020-11-20T11:08:53.000Z | import os
from StringIO import StringIO
from zipfile import ZipFile
import subprocess
import shutil
import fcntl
import time
import signal
import imp
import sys,traceback
def dir_clean_error(function,path,excinfo):
print 'WARNING: Ran into issues trying to remove directory:',path,str(function),str(excinfo)
def cle... | 39.064935 | 223 | 0.636137 | 742 | 6,016 | 5.021563 | 0.301887 | 0.019324 | 0.02818 | 0.016103 | 0.279388 | 0.240472 | 0.208803 | 0.180354 | 0.117016 | 0.074074 | 0 | 0.013274 | 0.24867 | 6,016 | 153 | 224 | 39.320261 | 0.811062 | 0.041556 | 0 | 0.158333 | 0 | 0.05 | 0.121523 | 0.014604 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033333 | 0.083333 | null | null | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f79bf4e8cdd9d2e6fe7f0243351b84e61c125647 | 1,432 | py | Python | wagtailsharing/tests/test_urls.py | mikiec84/wagtail-sharing | e3c338dae3327d955f058b5eb2f311d4dc0cbbf7 | [
"CC0-1.0"
] | 1 | 2019-02-25T21:56:56.000Z | 2019-02-25T21:56:56.000Z | wagtailsharing/tests/test_urls.py | mikiec84/wagtail-sharing | e3c338dae3327d955f058b5eb2f311d4dc0cbbf7 | [
"CC0-1.0"
] | null | null | null | wagtailsharing/tests/test_urls.py | mikiec84/wagtail-sharing | e3c338dae3327d955f058b5eb2f311d4dc0cbbf7 | [
"CC0-1.0"
] | null | null | null | from __future__ import absolute_import, unicode_literals
try:
from importlib import reload
except ImportError:
pass
from django.conf.urls import url
from django.test import TestCase
from mock import patch
try:
import wagtail.core.urls as wagtail_core_urls
except ImportError: # pragma: no cover; fallback... | 28.078431 | 76 | 0.657821 | 170 | 1,432 | 5.352941 | 0.358824 | 0.082418 | 0.065934 | 0.131868 | 0.213187 | 0.094505 | 0.094505 | 0 | 0 | 0 | 0 | 0.00545 | 0.231145 | 1,432 | 50 | 77 | 28.64 | 0.821072 | 0.041899 | 0 | 0.157895 | 0 | 0 | 0.06355 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.131579 | false | 0.052632 | 0.263158 | 0 | 0.421053 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
f7a103da5061022bae213f777c49b0abb01710f8 | 656 | py | Python | LeapYearFinderClass.py | MichaelWiciak/LeapYearFinderClass | 1bc1326f60115bddc1639ff50256888448dd9645 | [
"MIT"
] | null | null | null | LeapYearFinderClass.py | MichaelWiciak/LeapYearFinderClass | 1bc1326f60115bddc1639ff50256888448dd9645 | [
"MIT"
] | null | null | null | LeapYearFinderClass.py | MichaelWiciak/LeapYearFinderClass | 1bc1326f60115bddc1639ff50256888448dd9645 | [
"MIT"
] | null | null | null | class LeapYearFinder(object):
def __init__(self):
pass
def findLeapYear(self, startYear, endYear):
leapYearRecord = []
for i in range(int(startYear),int(endYear)):
year = i
print(year,end = "\t")
#If year is divisible by 4... | 31.238095 | 88 | 0.492378 | 74 | 656 | 4.310811 | 0.554054 | 0.08464 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044271 | 0.414634 | 656 | 21 | 89 | 31.238095 | 0.786458 | 0.109756 | 0 | 0 | 0 | 0 | 0.060498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.071429 | 0 | 0 | 0.285714 | 0.214286 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e38ad8911f43a8dc1cf2caa5fecf9c3fdcb3062c | 1,916 | py | Python | parsetab.py | UVG-Teams/analizador-lexico-sintactico | 71ac98e11fc63c6fcba36e94d9d40f0e59b6d55f | [
"MIT"
] | null | null | null | parsetab.py | UVG-Teams/analizador-lexico-sintactico | 71ac98e11fc63c6fcba36e94d9d40f0e59b6d55f | [
"MIT"
] | null | null | null | parsetab.py | UVG-Teams/analizador-lexico-sintactico | 71ac98e11fc63c6fcba36e94d9d40f0e59b6d55f | [
"MIT"
] | null | null | null |
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'leftIMPLIESSIMPLIESleftANDORleftRPARENLPARENrightNEGATIONALPHABET AND IMPLIES LPAREN NEGATION OR PREDICATE RPAREN SIMPLIESexpr : expr AND exprexpr : ALPHABETexpr : expr... | 50.421053 | 538 | 0.601775 | 383 | 1,916 | 2.827676 | 0.198433 | 0.016621 | 0.022161 | 0.051708 | 0.245614 | 0.186519 | 0.156971 | 0.131117 | 0.11819 | 0.062789 | 0 | 0.135056 | 0.111169 | 1,916 | 37 | 539 | 51.783784 | 0.500881 | 0.043841 | 0 | 0.074074 | 1 | 0.037037 | 0.344828 | 0.035577 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e38f485bd754322f09d50cbe4ef3dae03d97f83a | 417 | py | Python | th_watchdog/failure_email.py | hwjeremy/th-watchdog | c32682f838fffa3396cabc3d83eeb4960c765fc9 | [
"MIT"
] | null | null | null | th_watchdog/failure_email.py | hwjeremy/th-watchdog | c32682f838fffa3396cabc3d83eeb4960c765fc9 | [
"MIT"
] | null | null | null | th_watchdog/failure_email.py | hwjeremy/th-watchdog | c32682f838fffa3396cabc3d83eeb4960c765fc9 | [
"MIT"
] | null | null | null | """
Thornleigh Farm - VPN Watchdog
Failure Email Module
author: hugh@blinkybeach.com
"""
from th_watchdog.email import Email
class FailureEmail(Email):
"""
An email notifying the administrator of a failed state
"""
SUBJECT = 'Starport VPN connection lost'
BODY = 'Starport has lost connection to th... | 21.947368 | 58 | 0.690647 | 52 | 417 | 5.365385 | 0.692308 | 0.057348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220624 | 417 | 18 | 59 | 23.166667 | 0.858462 | 0.323741 | 0 | 0 | 0 | 0 | 0.258687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3a03a276ee7eba66fe85aa5ecec8c492d7bc5fa | 950 | py | Python | demo.py | ademilly/sqs-service | cd6cb1e7ca904472376eafb8682621675c310f2e | [
"MIT"
] | null | null | null | demo.py | ademilly/sqs-service | cd6cb1e7ca904472376eafb8682621675c310f2e | [
"MIT"
] | null | null | null | demo.py | ademilly/sqs-service | cd6cb1e7ca904472376eafb8682621675c310f2e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import sqs_service
"""Usage:
python demo.py
Expected set environment variables:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- AWS_SESSION_TOKEN for IAM roles
- AWS_SECURITY_TOKEN for IAM roles
Send 'Hello World' to queue 'TEST', listen to the queue and
print... | 22.093023 | 76 | 0.678947 | 128 | 950 | 4.710938 | 0.53125 | 0.119403 | 0.036484 | 0.053068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005326 | 0.209474 | 950 | 42 | 77 | 22.619048 | 0.797603 | 0.022105 | 0 | 0 | 0 | 0 | 0.145768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.117647 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3a19136ac88239183f6ccc7f508189df0b1db51 | 675 | py | Python | utils/sys_utils.py | machine2learn/galaina | 47ea16dd99687b38307674dd16ab7b7e99453910 | [
"BSD-3-Clause"
] | 3 | 2019-05-04T16:46:27.000Z | 2021-03-05T14:37:05.000Z | utils/sys_utils.py | machine2learn/galaina | 47ea16dd99687b38307674dd16ab7b7e99453910 | [
"BSD-3-Clause"
] | 2 | 2019-08-08T13:01:32.000Z | 2019-08-19T13:32:22.000Z | utils/sys_utils.py | machine2learn/galaina | 47ea16dd99687b38307674dd16ab7b7e99453910 | [
"BSD-3-Clause"
] | null | null | null | import os
import shutil
def delete_configs(config, dataset, username):
if config != 'all':
paths = [os.path.join('user_data', username, dataset, config)]
else:
paths = [os.path.join('user_data', username, dataset, d) for d in
os.listdir(os.path.join('user_data', username, data... | 33.75 | 115 | 0.631111 | 93 | 675 | 4.483871 | 0.333333 | 0.086331 | 0.119904 | 0.275779 | 0.345324 | 0.345324 | 0.345324 | 0.266187 | 0 | 0 | 0 | 0 | 0.222222 | 675 | 19 | 116 | 35.526316 | 0.794286 | 0 | 0 | 0.133333 | 0 | 0 | 0.105185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.266667 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3a354a397453e432d52c1cd363a4b2592457f4b | 1,150 | py | Python | pycam/pycam/Utils/progress.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | pycam/pycam/Utils/progress.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | pycam/pycam/Utils/progress.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | from pycam.Utils.events import get_event_handler, get_mainloop
class ProgressContext:
def __init__(self, title):
self._title = title
self._progress = get_event_handler().get("progress")
def __enter__(self):
if self._progress:
self._progress.update(text=self._title, percen... | 28.75 | 71 | 0.616522 | 131 | 1,150 | 5.091603 | 0.366412 | 0.233883 | 0.104948 | 0.107946 | 0.185907 | 0.107946 | 0.107946 | 0 | 0 | 0 | 0 | 0.001232 | 0.293913 | 1,150 | 39 | 72 | 29.487179 | 0.820197 | 0.049565 | 0 | 0.3 | 0 | 0 | 0.007333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.033333 | 0 | 0.4 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3aad4147f45eb6d3a2f6a2928f807f8445336c7 | 1,171 | py | Python | helper/storageHelper.py | LHGames-2018/DCI5espaces | 8f71ca3b6cf2bae78822d8a4a8546b5482eaa627 | [
"MIT"
] | null | null | null | helper/storageHelper.py | LHGames-2018/DCI5espaces | 8f71ca3b6cf2bae78822d8a4a8546b5482eaa627 | [
"MIT"
] | null | null | null | helper/storageHelper.py | LHGames-2018/DCI5espaces | 8f71ca3b6cf2bae78822d8a4a8546b5482eaa627 | [
"MIT"
] | 5 | 2017-10-07T14:54:28.000Z | 2018-09-27T20:16:59.000Z | import json
import os.path
class StorageHelper:
__document = None
__path = None
@staticmethod
def write(key, data):
StorageHelper.__init()
StorageHelper.__document[key] = json.dumps(data)
StorageHelper.__store()
@staticmethod
def read(key):
StorageHelper.__ini... | 27.880952 | 85 | 0.599488 | 115 | 1,171 | 5.756522 | 0.313043 | 0.222054 | 0.072508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309991 | 1,171 | 41 | 86 | 28.560976 | 0.819307 | 0 | 0 | 0.235294 | 0 | 0 | 0.052092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.323529 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3ab35bc88f90fb1279165d05f8411f9b2a64d26 | 12,383 | py | Python | ddot/cx_services_old-8-31-17/align.py | pupster90/ddot2 | 1952bff30383b35dff72b332592e1471201d40f3 | [
"MIT"
] | 1 | 2018-11-08T14:41:43.000Z | 2018-11-08T14:41:43.000Z | ddot/cx_services_old-8-31-17/align.py | pupster90/ddot2 | 1952bff30383b35dff72b332592e1471201d40f3 | [
"MIT"
] | null | null | null | ddot/cx_services_old-8-31-17/align.py | pupster90/ddot2 | 1952bff30383b35dff72b332592e1471201d40f3 | [
"MIT"
] | null | null | null | import ndex.client as nc
from ndex.networkn import NdexGraph
import io
import json
from IPython.display import HTML
from time import sleep
import os, time, tempfile
import sys
import time
import logging
import grpc
import networkx as nx
import cx_pb2
import cx_pb2_grpc
import numpy as np
import inspect
from concurre... | 36.313783 | 128 | 0.562868 | 1,406 | 12,383 | 4.726174 | 0.174964 | 0.019865 | 0.024831 | 0.012641 | 0.338149 | 0.317983 | 0.287434 | 0.268473 | 0.225132 | 0.193228 | 0 | 0.015077 | 0.341194 | 12,383 | 340 | 129 | 36.420588 | 0.799461 | 0.134782 | 0 | 0.17284 | 0 | 0 | 0.078347 | 0.002161 | 0 | 0 | 0 | 0 | 0.00823 | 0 | null | null | 0.028807 | 0.102881 | null | null | 0.032922 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3b3a2b9c400072459039396551edf7edb2673da | 5,552 | py | Python | Lessons/source/bases.py | ericanaglik/cs13 | 6dc2dd41e0b82a43999145b226509d8fc0adb366 | [
"MIT"
] | null | null | null | Lessons/source/bases.py | ericanaglik/cs13 | 6dc2dd41e0b82a43999145b226509d8fc0adb366 | [
"MIT"
] | 8 | 2019-04-26T06:29:56.000Z | 2019-08-17T01:48:07.000Z | Lessons/source/bases.py | ericanaglik/cs13 | 6dc2dd41e0b82a43999145b226509d8fc0adb366 | [
"MIT"
] | null | null | null | #!python
import string
# Hint: Use these string constants to encode/decode hexadecimal digits and more
# string.digits is '0123456789'
# string.hexdigits is '0123456789abcdefABCDEF'
# string.ascii_lowercase is 'abcdefghijklmnopqrstuvwxyz'
# string.ascii_uppercase is 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
# string.ascii_letters ... | 36.287582 | 328 | 0.600865 | 818 | 5,552 | 4.031785 | 0.234719 | 0.026683 | 0.040024 | 0.043663 | 0.26228 | 0.205882 | 0.201637 | 0.177683 | 0.115525 | 0.115525 | 0 | 0.068991 | 0.255944 | 5,552 | 152 | 329 | 36.526316 | 0.729363 | 0.445245 | 0 | 0.063492 | 0 | 0 | 0.101615 | 0 | 0 | 0 | 0 | 0.019737 | 0.079365 | 1 | 0.095238 | false | 0.015873 | 0.031746 | 0 | 0.206349 | 0.063492 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3b3eb4f092c715b7640f0a297086182d40badaa | 3,667 | py | Python | ecl/provider_connectivity/v2/address_assignment.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | null | null | null | ecl/provider_connectivity/v2/address_assignment.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | null | null | null | ecl/provider_connectivity/v2/address_assignment.py | keiichi-hikita/eclsdk | c43afb982fd54eb1875cdc22d46044644d804c4a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from ecl.provider_connectivity import provider_connectivity_service
from ecl import resource2
from ecl.network.v2 import network
from ecl.network.v2 import subnet
import hashlib
class AddressAssignment(resource2.Resource):
resources_key = "address_assignments"
resource_key = "address_... | 32.166667 | 79 | 0.648487 | 405 | 3,667 | 5.595062 | 0.308642 | 0.120035 | 0.11165 | 0.110327 | 0.338041 | 0.314651 | 0.289497 | 0.289497 | 0.289497 | 0.289497 | 0 | 0.008557 | 0.266976 | 3,667 | 113 | 80 | 32.451327 | 0.834449 | 0.154895 | 0 | 0.371429 | 0 | 0 | 0.148294 | 0.105315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.071429 | 0 | 0.657143 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3b455062720d39836f878d513bb8f75e9ad6e80 | 675 | py | Python | tests/test_gifGenerator.py | wmokrogulski/gifGenerator | fa2b36d082e32f310583935a361d7b7a2bf29fe6 | [
"MIT"
] | null | null | null | tests/test_gifGenerator.py | wmokrogulski/gifGenerator | fa2b36d082e32f310583935a361d7b7a2bf29fe6 | [
"MIT"
] | 2 | 2021-12-23T11:01:14.000Z | 2022-03-12T01:01:15.000Z | tests/test_gifGenerator.py | wmokrogulski/gifGenerator | fa2b36d082e32f310583935a361d7b7a2bf29fe6 | [
"MIT"
] | null | null | null | import unittest
from unittest import TestCase
from src.gifGenerator import GifGenerator
class TestGifGenerator(TestCase):
def setUp(self) -> None:
self.gg = GifGenerator()
def test_set_text_position(self):
position = (50, 90)
self.gg.setTextPosition(position)
self.assertEqua... | 20.454545 | 57 | 0.666667 | 80 | 675 | 5.3875 | 0.425 | 0.081207 | 0.167053 | 0.153132 | 0.192575 | 0.134571 | 0 | 0 | 0 | 0 | 0 | 0.007737 | 0.234074 | 675 | 32 | 58 | 21.09375 | 0.825919 | 0.022222 | 0 | 0.2 | 0 | 0 | 0.012158 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.3 | false | 0 | 0.15 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 1 |
e3b8997cfd0dae36bdb5f953799806c281136e2c | 9,915 | py | Python | PSP/GAME/Python/python/bsddb/test/test_dbshelve.py | TheMindVirus/pspy | e9d1bba4f6b7486c3010bede93d88afdfc036492 | [
"MIT"
] | 7 | 2015-04-06T15:17:13.000Z | 2020-10-21T04:57:00.000Z | PSP/GAME/Python/python/bsddb/test/test_dbshelve.py | TheMindVirus/pspy | e9d1bba4f6b7486c3010bede93d88afdfc036492 | [
"MIT"
] | 1 | 2021-04-11T15:01:12.000Z | 2021-04-11T15:01:12.000Z | PSP/GAME/Python/python/bsddb/test/test_dbshelve.py | TheMindVirus/pspy | e9d1bba4f6b7486c3010bede93d88afdfc036492 | [
"MIT"
] | 4 | 2016-05-16T17:53:08.000Z | 2020-11-28T17:18:50.000Z | """
TestCases for checking dbShelve objects.
"""
import sys, os, string
import tempfile, random
from pprint import pprint
from types import *
import unittest
try:
# For Pythons w/distutils pybsddb
from bsddb3 import db, dbshelve
except ImportError:
# For Python 2.3
from bsddb import db, dbshelve
from... | 27.618384 | 79 | 0.558548 | 1,201 | 9,915 | 4.512073 | 0.200666 | 0.019192 | 0.018454 | 0.053515 | 0.32423 | 0.305407 | 0.258166 | 0.209079 | 0.162392 | 0.108138 | 0 | 0.01194 | 0.290469 | 9,915 | 358 | 80 | 27.695531 | 0.758351 | 0.092688 | 0 | 0.349594 | 0 | 0 | 0.044419 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 0 | null | null | 0.00813 | 0.04065 | null | null | 0.060976 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3cd17e1ce16cc51bbf2c4408a071cf80ad1dcea | 851 | py | Python | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | 2 | 2019-11-15T19:15:36.000Z | 2022-03-14T12:53:18.000Z | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | null | null | null | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | null | null | null | #!/usr/bin/env python
#==============================================================================================
# Copyright (c) 2009 Kotys LLC. Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# Author: Ciceron... | 31.518519 | 95 | 0.551116 | 97 | 851 | 4.649485 | 0.608247 | 0.088692 | 0.099778 | 0.053215 | 0.066519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015048 | 0.141011 | 851 | 26 | 96 | 32.730769 | 0.601915 | 0.638073 | 0 | 0 | 0 | 0 | 0.057432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3d014948574aa9afc4263cc074b784b2bb1665c | 1,538 | py | Python | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 6 | 2019-03-20T15:15:31.000Z | 2022-02-23T20:11:24.000Z | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 1 | 2021-11-20T00:25:48.000Z | 2021-11-20T00:25:48.000Z | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 8 | 2019-11-22T05:56:40.000Z | 2021-12-04T17:38:38.000Z | import time
import json
import sqlite3
import os
conn = sqlite3.connect('configs/Database.db')
c = conn.cursor()
start_time = time.time()
with open('configs/config.json') as json_data:
config = json.load(json_data)
server_config_raw = c.execute("SELECT * FROM ServerConfig").fetchall()
server_config = {}
def serve... | 27.464286 | 80 | 0.737321 | 235 | 1,538 | 4.587234 | 0.297872 | 0.204082 | 0.108534 | 0.09462 | 0.22449 | 0.185529 | 0.137291 | 0.137291 | 0.137291 | 0 | 0 | 0.016739 | 0.106632 | 1,538 | 55 | 81 | 27.963636 | 0.767831 | 0 | 0 | 0.045455 | 0 | 0 | 0.121586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.090909 | 0 | 0.204545 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3d0ea8dfddd487de8fd53ee32a9b4f750e83af2 | 4,749 | py | Python | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | null | null | null | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | 1 | 2022-02-06T08:21:56.000Z | 2022-02-06T15:48:26.000Z | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | null | null | null | '''
日付モジュール
'''
import calendar
from datetime import date, datetime, timedelta
from typing import Iterator
from zoneinfo import ZoneInfo
from dateutil.relativedelta import relativedelta
def get_first_date_of_this_month(base_date: date) -> date:
'''
今月初日取得
Args:
base_date (d... | 24.863874 | 90 | 0.606443 | 564 | 4,749 | 4.739362 | 0.150709 | 0.143659 | 0.112233 | 0.16835 | 0.712682 | 0.681631 | 0.647961 | 0.578376 | 0.520015 | 0.520015 | 0 | 0.003942 | 0.305538 | 4,749 | 190 | 91 | 24.994737 | 0.806549 | 0.222573 | 0 | 0.516129 | 0 | 0 | 0.025616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145161 | false | 0 | 0.080645 | 0 | 0.354839 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3d2b660c79791266d30c8a38f66f8ca7ec0c0c0 | 682 | py | Python | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from .serializers import ModelDataSerializer
from .optimisation.model import run_model
class RunModel(APIView):
"""Cons... | 31 | 78 | 0.758065 | 84 | 682 | 6.047619 | 0.511905 | 0.047244 | 0.100394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005329 | 0.174487 | 682 | 21 | 79 | 32.47619 | 0.89698 | 0.082111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.5 | 0 | 0.785714 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e3db1939642019da218fde1bd068b8be2f4606ff | 3,811 | py | Python | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.http.response import HttpResponseRedirect, HttpResponseBadRequest
from django.urls.base import reverse
from django.utils import timezone
from django.views.generic import (
CreateView,
DayArchiveView,
DetailView,
RedirectView,
Templ... | 26.282759 | 78 | 0.708738 | 447 | 3,811 | 5.885906 | 0.268456 | 0.020525 | 0.042569 | 0.019384 | 0.315849 | 0.291144 | 0.190422 | 0.190422 | 0.190422 | 0.141771 | 0 | 0 | 0.178693 | 3,811 | 144 | 79 | 26.465278 | 0.840575 | 0.01968 | 0 | 0.314815 | 0 | 0 | 0.066369 | 0.013664 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.083333 | 0.064815 | 0.537037 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3e0c634baf400be713a2f06ce7ace7a4e212de8 | 2,071 | py | Python | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | import logging
import time
import os
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
format = "%(asctime)s %(levelname)-10s %(message)s"
id = time.strftime("%Y%m%d-%H%M%S")
#These are the sequences need to get colored ouput
RESET_SEQ = "\033[0m"
COLOR_SEQ = "\033[1;%dm"
BOLD_SEQ = "\033[1m"
def for... | 27.25 | 84 | 0.713182 | 270 | 2,071 | 5.32963 | 0.37037 | 0.033357 | 0.025017 | 0.036136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010832 | 0.153066 | 2,071 | 75 | 85 | 27.613333 | 0.809578 | 0.072912 | 0 | 0 | 0 | 0 | 0.087728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.072727 | 0.054545 | 0.018182 | 0.218182 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3e15e7f00bea2796ee5bd52b11a09a192eae24f | 4,485 | py | Python | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 974 | 2015-01-01T08:37:37.000Z | 2022-03-29T16:41:11.000Z | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 45 | 2015-05-04T15:57:26.000Z | 2022-03-22T14:40:24.000Z | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 414 | 2015-01-05T14:43:01.000Z | 2022-03-28T18:30:58.000Z | from ethereum import tester as t
from ethereum import utils
def test():
s = t.state()
test_company = s.abi_contract('company.se', ADMIN_ACCOUNT=utils.decode_int(t.a0))
order_book = s.abi_contract('orders.se')
test_currency = s.abi_contract('currency.se', sender=t.k0)
assert test_company.getAdmin() ... | 50.965909 | 85 | 0.716611 | 626 | 4,485 | 5.004792 | 0.246006 | 0.101819 | 0.086818 | 0.107245 | 0.546122 | 0.442387 | 0.30865 | 0.298755 | 0.298755 | 0.266199 | 0 | 0.068402 | 0.194872 | 4,485 | 87 | 86 | 51.551724 | 0.799225 | 0.230769 | 0 | 0.137931 | 0 | 0 | 0.011981 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.017241 | false | 0 | 0.034483 | 0 | 0.051724 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3e6303d7750f26636e0532318d99a61631c9c10 | 17,884 | py | Python | EXOSIMS/Completeness/BrownCompleteness.py | dgarrett622/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | null | null | null | EXOSIMS/Completeness/BrownCompleteness.py | dgarrett622/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | 2 | 2016-08-13T18:39:39.000Z | 2020-06-26T00:18:37.000Z | EXOSIMS/Completeness/BrownCompleteness.py | douglase/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import numpy as np
from scipy import interpolate
import astropy.units as u
import astropy.constants as const
import os, inspect
try:
import cPickle as pickle
except:
import pickle
import hashlib
from EXOSIMS.Prototypes.Completeness import Completeness
from EXOSIM... | 42.08 | 109 | 0.537575 | 2,087 | 17,884 | 4.581696 | 0.1931 | 0.062748 | 0.038486 | 0.008785 | 0.315938 | 0.270446 | 0.199017 | 0.19201 | 0.158126 | 0.142021 | 0 | 0.021249 | 0.352662 | 17,884 | 424 | 110 | 42.179245 | 0.804699 | 0.104004 | 0 | 0.180952 | 0 | 0 | 0.044877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e3e858c279c7da79f073153068c7d9c2b91c90b3 | 736 | py | Python | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2020-07-25T23:23:04.000Z | 2020-07-25T23:23:04.000Z | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2018-10-04T01:43:25.000Z | 2018-11-28T17:59:12.000Z | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2020-07-25T23:23:06.000Z | 2020-07-25T23:23:06.000Z | import numpy as np
def apply_tikhonov_regularization(u,s,v,usetikparam,vector):
#alpha = usetikparam*np.sqrt(u.shape[0]/v.shape[1]) # Tikhonov parameter interpreted as scaled by sqrt(matrix rows/matrix cols) so that it is directly interpretable as NETD/NESI (noise equivalent temperature difference over no... | 36.8 | 319 | 0.716033 | 120 | 736 | 4.375 | 0.575 | 0.028571 | 0.022857 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011647 | 0.183424 | 736 | 19 | 320 | 38.736842 | 0.861897 | 0.694293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3f69e5b14024599fb273e979ccbc45a1c411ded | 8,652 | py | Python | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 34 | 2020-03-12T15:40:49.000Z | 2022-02-28T07:13:47.000Z | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 104 | 2020-01-06T20:32:19.000Z | 2022-01-02T00:20:14.000Z | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 10 | 2020-09-02T20:24:00.000Z | 2022-02-24T16:10:07.000Z | import unittest
import spydrnet as sdn
class TestEdifNamespace(unittest.TestCase):
original_default = None
@classmethod
def setUpClass(cls) -> None:
cls.original_default = sdn.namespace_manager.default
sdn.namespace_manager.default = "EDIF"
@classmethod
def tearDownClass(cls) -> N... | 33.66537 | 66 | 0.592811 | 972 | 8,652 | 5.079218 | 0.087449 | 0.221187 | 0.113429 | 0.068868 | 0.686854 | 0.58335 | 0.531902 | 0.488151 | 0.449868 | 0.416852 | 0 | 0.041984 | 0.270458 | 8,652 | 256 | 67 | 33.796875 | 0.740177 | 0.007628 | 0 | 0.626087 | 0 | 0 | 0.173832 | 0 | 0 | 0 | 0 | 0.003906 | 0.008696 | 1 | 0.095652 | false | 0 | 0.008696 | 0 | 0.126087 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
e3fdd8b8cbc3926690972bd648e3656a84878e8f | 1,457 | py | Python | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 3 | 2020-04-01T10:51:17.000Z | 2021-08-05T18:35:23.000Z | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | null | null | null | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 1 | 2020-07-05T12:06:30.000Z | 2020-07-05T12:06:30.000Z |
import avalon.api
class UpdateNamespace(avalon.api.InventoryAction):
"""Update container imprinted namespace
Sometimes artist may import loaded subsets from other scene, which
may prefixing an extra namespace on top of those subsets but the
namespace attribute in the container did not update hence a... | 29.734694 | 75 | 0.671929 | 161 | 1,457 | 6.049689 | 0.552795 | 0.030801 | 0.032854 | 0.045175 | 0.12731 | 0.075975 | 0 | 0 | 0 | 0 | 0 | 0.005505 | 0.251887 | 1,457 | 48 | 76 | 30.354167 | 0.888073 | 0.264242 | 0 | 0.24 | 0 | 0 | 0.148792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5408f0d69dd4b712a3e36a300e74e57a1812c78d | 4,433 | py | Python | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | null | null | null | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | null | null | null | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | 1 | 2020-03-17T06:40:25.000Z | 2020-03-17T06:40:25.000Z | # This DAG is for running python scripts to generate static visualisation data
# from syncthing every month end
import airflow
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.operators.dummy_operator import Dumm... | 39.230088 | 98 | 0.676291 | 571 | 4,433 | 4.865149 | 0.295972 | 0.058315 | 0.038877 | 0.043197 | 0.24658 | 0.199424 | 0.12923 | 0.114471 | 0.086393 | 0.048956 | 0 | 0.007048 | 0.167832 | 4,433 | 112 | 99 | 39.580357 | 0.746002 | 0.309046 | 0 | 0.090909 | 1 | 0 | 0.103721 | 0.024695 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
540df69177e6fb46fc901283c03665c416fc9242 | 24,887 | py | Python | src/OFS/CopySupport.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | 1 | 2018-12-07T21:19:58.000Z | 2018-12-07T21:19:58.000Z | src/OFS/CopySupport.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | src/OFS/CopySupport.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 33.952251 | 79 | 0.571704 | 2,830 | 24,887 | 4.89682 | 0.187986 | 0.022225 | 0.018473 | 0.023091 | 0.380214 | 0.350411 | 0.313321 | 0.289652 | 0.279622 | 0.257902 | 0 | 0.006481 | 0.336642 | 24,887 | 732 | 80 | 33.998634 | 0.83294 | 0.104553 | 0 | 0.454373 | 0 | 0 | 0.133835 | 0.007006 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005703 | 0.077947 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
541c51e665974394ae0ab412789deb2f54ac881a | 1,879 | py | Python | python/rhinoscripts/example_csv_loading.py | tasbolat1/hmv-s16 | 7863c66ed645b463b72aef98a5c484a18cc9f396 | [
"BSD-3-Clause"
] | 1 | 2020-10-10T21:27:30.000Z | 2020-10-10T21:27:30.000Z | python/rhinoscripts/example_csv_loading.py | tasbolat1/hmv-s16 | 7863c66ed645b463b72aef98a5c484a18cc9f396 | [
"BSD-3-Clause"
] | null | null | null | python/rhinoscripts/example_csv_loading.py | tasbolat1/hmv-s16 | 7863c66ed645b463b72aef98a5c484a18cc9f396 | [
"BSD-3-Clause"
] | null | null | null | """Example code for importing a single rigid body trajectory into Rhino from a Optitrack CSV file.
Copyright (c) 2016, Garth Zeglin. All rights reserved. Licensed under the terms
of the BSD 3-clause license as included in LICENSE.
Example code for generating a path of Rhino 'planes' (e.g. coordinate frame)
from a tr... | 36.134615 | 98 | 0.734433 | 304 | 1,879 | 4.486842 | 0.473684 | 0.026393 | 0.028592 | 0.021994 | 0.043988 | 0.043988 | 0.043988 | 0 | 0 | 0 | 0 | 0.011796 | 0.187866 | 1,879 | 51 | 99 | 36.843137 | 0.882045 | 0.283662 | 0 | 0 | 0 | 0 | 0.055346 | 0.031447 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5421063007f16d8c808280360658d8af84912272 | 524 | py | Python | Projects/project04/pop_shrink.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | 2 | 2019-02-13T17:49:18.000Z | 2020-09-30T04:51:53.000Z | Projects/project04/pop_shrink.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | null | null | null | Projects/project04/pop_shrink.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | null | null | null | from Stack import Stack
def main():
stack = Stack()
stack.push(0)
stack.push(1)
stack.push(2)
stack.push(3)
assert stack.data == [0, 1, 2, 3]
assert stack.capacity == 4
assert stack.size == 4
popped = stack.pop()
assert popped == 3
popped = stack.pop()
assert popped =... | 17.466667 | 48 | 0.564885 | 73 | 524 | 4.054795 | 0.287671 | 0.222973 | 0.081081 | 0.108108 | 0.290541 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.274809 | 524 | 30 | 49 | 17.466667 | 0.728947 | 0 | 0 | 0.095238 | 0 | 0 | 0.072381 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 1 | 0.047619 | false | 0 | 0.047619 | 0 | 0.095238 | 0.142857 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
5423d564159a63ea1cc7a476c45ce6fae5bb3b4a | 1,670 | py | Python | bender/tests/test_predict_pipeline.py | otovo/bender | b64f0656658287b932ce44d52e6035682652fe33 | [
"Apache-2.0"
] | 2 | 2021-12-17T15:45:40.000Z | 2021-12-18T14:15:43.000Z | bender/tests/test_predict_pipeline.py | otovo/bender | b64f0656658287b932ce44d52e6035682652fe33 | [
"Apache-2.0"
] | 2 | 2022-03-30T14:31:12.000Z | 2022-03-31T14:25:25.000Z | bender/tests/test_predict_pipeline.py | otovo/bender | b64f0656658287b932ce44d52e6035682652fe33 | [
"Apache-2.0"
] | 1 | 2021-12-19T17:16:38.000Z | 2021-12-19T17:16:38.000Z | import numpy as np
import pytest
from pandas.core.frame import DataFrame
from bender.importers import DataImporters
from bender.model_loaders import ModelLoaders
from bender.model_trainer.decision_tree import DecisionTreeClassifierTrainer
from bender.split_strategies import SplitStrategies
pytestmark = pytest.mark.as... | 27.833333 | 116 | 0.640719 | 179 | 1,670 | 5.832402 | 0.49162 | 0.038314 | 0.028736 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012422 | 0.228743 | 1,670 | 59 | 117 | 28.305085 | 0.798137 | 0.006587 | 0 | 0 | 0 | 0 | 0.019737 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0 | false | 0 | 0.473684 | 0 | 0.473684 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
542466b53c52821ceb40707c73e0ab32ca5a0262 | 8,707 | py | Python | ptf/lib/runner.py | opennetworkinglab/tassen | 6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09 | [
"Apache-2.0"
] | 4 | 2020-07-08T22:04:35.000Z | 2020-07-14T15:09:37.000Z | ptf/lib/runner.py | opennetworkinglab/tassen | 6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09 | [
"Apache-2.0"
] | 1 | 2020-07-07T08:12:40.000Z | 2020-07-07T08:12:41.000Z | ptf/lib/runner.py | opennetworkinglab/tassen | 6e42ba79f83caa1bd6ecb40fd9bd1e9f8768ec09 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# Copyright 2013-present Barefoot Networks, Inc.
# SPDX-FileCopyrightText: 2018-present Open Networking Foundation
#
# SPDX-License-Identifier: Apache-2.0
import Queue
import argparse
import json
import logging
import os
import re
import subprocess
import sys
import threading
import time
from c... | 31.547101 | 91 | 0.605949 | 1,062 | 8,707 | 4.788136 | 0.270245 | 0.022026 | 0.020452 | 0.014946 | 0.134907 | 0.053294 | 0.032448 | 0.032448 | 0.032448 | 0.015339 | 0 | 0.014549 | 0.289537 | 8,707 | 275 | 92 | 31.661818 | 0.807468 | 0.06535 | 0 | 0.168317 | 0 | 0 | 0.112462 | 0.003454 | 0 | 0 | 0 | 0.003636 | 0 | 0 | null | null | 0.004951 | 0.069307 | null | null | 0.004951 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.