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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
423f200f8346a97be5eb36c1bf5e07b4b200cdb8 | 120 | py | Python | jigsaw/datasets/__init__.py | alexvishnevskiy/jigsaw | 7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3 | [
"MIT"
] | null | null | null | jigsaw/datasets/__init__.py | alexvishnevskiy/jigsaw | 7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3 | [
"MIT"
] | null | null | null | jigsaw/datasets/__init__.py | alexvishnevskiy/jigsaw | 7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3 | [
"MIT"
] | null | null | null | from .dataloaders import get_paired_loader, get_regression_loader
from .datasets import PairedDataset, RegressionDataset | 60 | 65 | 0.891667 | 14 | 120 | 7.357143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 120 | 2 | 66 | 60 | 0.927928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
426678e9b7ed85af96d3b5d6b6d33ec70c60e2dd | 3,525 | py | Python | tests/response/unmarshal_response_test.py | Timothyyung/bravado-core | baaef12d2908f803deed4e220e6bdaec4ee6e029 | [
"BSD-3-Clause"
] | null | null | null | tests/response/unmarshal_response_test.py | Timothyyung/bravado-core | baaef12d2908f803deed4e220e6bdaec4ee6e029 | [
"BSD-3-Clause"
] | null | null | null | tests/response/unmarshal_response_test.py | Timothyyung/bravado-core | baaef12d2908f803deed4e220e6bdaec4ee6e029 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import msgpack
import pytest
from mock import Mock
from mock import patch
from bravado_core.content_type import APP_JSON
from bravado_core.content_type import APP_MSGPACK
from bravado_core.response import IncomingResponse
from bravado_core.response import unmarshal_response
@pytest.fixture
de... | 32.638889 | 76 | 0.690496 | 435 | 3,525 | 5.291954 | 0.183908 | 0.095569 | 0.097307 | 0.069505 | 0.827976 | 0.788445 | 0.743267 | 0.69331 | 0.674631 | 0.674631 | 0 | 0.007609 | 0.217021 | 3,525 | 107 | 77 | 32.943925 | 0.826449 | 0.005957 | 0 | 0.505882 | 0 | 0 | 0.162764 | 0.091947 | 0 | 0 | 0 | 0 | 0.070588 | 1 | 0.082353 | false | 0 | 0.094118 | 0.011765 | 0.188235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
42899ec66e011c19f37eef2e3d850d11a91ee85f | 291 | py | Python | setup.py | andres-jordan/PyARoME | 9cf60eb0afcf5026c0ee3f8b1ae3b5c1bc6ebb89 | [
"MIT"
] | null | null | null | setup.py | andres-jordan/PyARoME | 9cf60eb0afcf5026c0ee3f8b1ae3b5c1bc6ebb89 | [
"MIT"
] | null | null | null | setup.py | andres-jordan/PyARoME | 9cf60eb0afcf5026c0ee3f8b1ae3b5c1bc6ebb89 | [
"MIT"
] | null | null | null | from distutils.core import setup, Extension
import numpy.distutils.misc_util
setup(
ext_modules=[Extension("pyarome", ["pyarome.c"],library_dirs=['/usr/local/lib/'], libraries=['arome'])],
include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs() + ['/usr/local/include/'],
)
| 36.375 | 108 | 0.738832 | 38 | 291 | 5.447368 | 0.578947 | 0.135266 | 0.173913 | 0.21256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082474 | 291 | 7 | 109 | 41.571429 | 0.775281 | 0 | 0 | 0 | 0 | 0 | 0.189003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
42add9c908e1cb3037bebbce218123e48eab6123 | 12 | py | Python | python/testData/testRunner/env/createConfigurationTest/tests_package/test_tools.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/testRunner/env/createConfigurationTest/tests_package/test_tools.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/testRunner/env/createConfigurationTest/tests_package/test_tools.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | ANSWER = 42 | 12 | 12 | 0.666667 | 2 | 12 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 0.25 | 12 | 1 | 12 | 12 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
35fce163d8479bd36084f5d7f023414627fcd092 | 34 | py | Python | wx.py | XinnWang/MultiplayerTest | 1c8c0dab99f4c399e0784de8a37c5f891ce9dc27 | [
"MIT"
] | null | null | null | wx.py | XinnWang/MultiplayerTest | 1c8c0dab99f4c399e0784de8a37c5f891ce9dc27 | [
"MIT"
] | null | null | null | wx.py | XinnWang/MultiplayerTest | 1c8c0dab99f4c399e0784de8a37c5f891ce9dc27 | [
"MIT"
] | null | null | null | wx = 1
xw = -1
print(wx)
print(xw) | 8.5 | 9 | 0.588235 | 8 | 34 | 2.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.205882 | 34 | 4 | 10 | 8.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
c410e2cb43fff2c5e9aeb6a296903930e03b5e8e | 176 | py | Python | business_rules/__init__.py | hpersonsz/business-rules | c6e1fac6e726436ed6cd613765ed98be72e46112 | [
"MIT"
] | 10 | 2020-03-19T18:19:55.000Z | 2020-07-13T16:18:28.000Z | business_rules/__init__.py | hpersonsz/business-rules | c6e1fac6e726436ed6cd613765ed98be72e46112 | [
"MIT"
] | 1 | 2020-12-15T23:46:17.000Z | 2020-12-15T23:46:17.000Z | business_rules/__init__.py | hpersonsz/business-rules | c6e1fac6e726436ed6cd613765ed98be72e46112 | [
"MIT"
] | 2 | 2019-10-11T16:32:51.000Z | 2019-11-04T20:44:46.000Z | __version__ = '1.0.1'
from .engine import run, run_all
from .utils import export_rule_data
# Appease pyflakes by "using" these exports
assert run_all
assert export_rule_data
| 19.555556 | 43 | 0.795455 | 29 | 176 | 4.482759 | 0.655172 | 0.092308 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0.142045 | 176 | 8 | 44 | 22 | 0.84106 | 0.232955 | 0 | 0 | 0 | 0 | 0.037594 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c419071e0dc4ad21e2cf4d057b952dd70d50d839 | 846 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/shader_pixel_local_storage.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/shader_pixel_local_storage.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/shader_pixel_local_storage.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
# End users want this...
from OpenGL.raw.GLES2._types import *
from OpenGL.raw.GLES2 import _errors
from OpenGL.constant import Constant as _C
... | 47 | 134 | 0.833333 | 133 | 846 | 4.781955 | 0.383459 | 0.138365 | 0.201258 | 0.289308 | 0.537736 | 0.421384 | 0.235849 | 0.235849 | 0.180818 | 0 | 0 | 0.02356 | 0.096927 | 846 | 17 | 135 | 49.764706 | 0.808901 | 0.118203 | 0 | 0 | 1 | 0 | 0.269071 | 0.269071 | 0 | 0 | 0.024965 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.5 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c422115eed6da2fe7e221812a846f20626abfb32 | 755 | py | Python | PySRCG/src/Tabs/notebook_tab.py | apampuch/PySRCG | bb3777aed3517b473e5860336c015e2e8d0905e9 | [
"MIT"
] | null | null | null | PySRCG/src/Tabs/notebook_tab.py | apampuch/PySRCG | bb3777aed3517b473e5860336c015e2e8d0905e9 | [
"MIT"
] | null | null | null | PySRCG/src/Tabs/notebook_tab.py | apampuch/PySRCG | bb3777aed3517b473e5860336c015e2e8d0905e9 | [
"MIT"
] | null | null | null | from tkinter import ttk
import src.app_data as app_data
import abc
class NotebookTab(ttk.Frame):
"""Base tab that other tabs inherit from"""
def __init__(self, parent):
super().__init__(parent)
self.parent = parent
@property
def character(self):
return app_data.app_character
... | 20.405405 | 47 | 0.634437 | 91 | 755 | 5.087912 | 0.395604 | 0.095032 | 0.090713 | 0.099352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272848 | 755 | 36 | 48 | 20.972222 | 0.843352 | 0.113907 | 0 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0.08 | 0.12 | 0.16 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
c42502a2c343eb23d7f5a2f46276012a8555068a | 10,771 | py | Python | civis/tests/test_utils.py | mcoirad-gmmb/civis-python | 4286da93496cc7d15d876c9001ea3aa1ad359972 | [
"BSD-3-Clause"
] | 31 | 2016-11-14T14:26:24.000Z | 2021-11-19T15:43:45.000Z | civis/tests/test_utils.py | mcoirad-gmmb/civis-python | 4286da93496cc7d15d876c9001ea3aa1ad359972 | [
"BSD-3-Clause"
] | 296 | 2016-11-11T20:52:59.000Z | 2022-02-23T13:34:37.000Z | civis/tests/test_utils.py | mcoirad-gmmb/civis-python | 4286da93496cc7d15d876c9001ea3aa1ad359972 | [
"BSD-3-Clause"
] | 40 | 2016-11-11T20:48:13.000Z | 2021-04-22T17:47:09.000Z | from unittest import mock
from requests import Request
from requests import ConnectionError, ConnectTimeout
from datetime import datetime
from math import floor
from civis._utils import camel_to_snake, to_camelcase, maybe_get_random_name
from civis._utils import retry
from civis._utils import retry_request
from civi... | 32.838415 | 77 | 0.671525 | 1,298 | 10,771 | 5.218798 | 0.113251 | 0.10127 | 0.06643 | 0.056687 | 0.789489 | 0.753174 | 0.733392 | 0.703425 | 0.669472 | 0.627842 | 0 | 0.008838 | 0.222635 | 10,771 | 327 | 78 | 32.938838 | 0.800191 | 0 | 0 | 0.636364 | 0 | 0 | 0.112524 | 0.018568 | 0 | 0 | 0 | 0 | 0.079051 | 1 | 0.086957 | false | 0.003953 | 0.039526 | 0 | 0.13834 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c42d6f43684008f287d7ce4b35bff396556f9fdb | 56 | py | Python | enthought/traits/protocols/protocols.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/traits/protocols/protocols.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/traits/protocols/protocols.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from traits.protocols.protocols import *
| 18.666667 | 40 | 0.803571 | 7 | 56 | 6.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 56 | 2 | 41 | 28 | 0.918367 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c475148a8b59e359497aeafc3aaf19bac9216463 | 345 | py | Python | bob/bio/base/script/vulnerability.py | bioidiap/bob.bio.base | 44b8d192e957eb328591c8110cf0113f602292ef | [
"BSD-3-Clause"
] | 16 | 2016-04-06T20:37:55.000Z | 2019-10-19T08:06:25.000Z | bob/bio/base/script/vulnerability.py | bioidiap/bob.bio.base | 44b8d192e957eb328591c8110cf0113f602292ef | [
"BSD-3-Clause"
] | 25 | 2015-07-04T17:41:40.000Z | 2016-08-08T20:36:01.000Z | bob/bio/base/script/vulnerability.py | bioidiap/bob.bio.base | 44b8d192e957eb328591c8110cf0113f602292ef | [
"BSD-3-Clause"
] | 7 | 2015-08-07T17:21:02.000Z | 2018-08-13T15:51:54.000Z | """The main entry for bob.vuln
"""
import click
import pkg_resources
from click_plugins import with_plugins
from bob.extension.scripts.click_helper import AliasedGroup
@with_plugins(pkg_resources.iter_entry_points("bob.vuln.cli"))
@click.group(cls=AliasedGroup)
def vulnerability():
"""Vulnerability analysis relat... | 24.642857 | 62 | 0.791304 | 46 | 345 | 5.76087 | 0.608696 | 0.05283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107246 | 345 | 13 | 63 | 26.538462 | 0.86039 | 0.197101 | 0 | 0 | 0 | 0 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0.125 | 0.5 | 0 | 0.625 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
672b29247bdb23c1b5d7ff44c526e73b3f317b73 | 258 | py | Python | nff/nn/activations.py | torchmd/mdgrad | 77bd7685b74b41acf54a9483546e1e8cb545eb01 | [
"MIT"
] | 54 | 2021-03-10T18:35:49.000Z | 2022-03-28T13:54:47.000Z | nff/nn/activations.py | wwang2/torchmd | 77bd7685b74b41acf54a9483546e1e8cb545eb01 | [
"MIT"
] | 1 | 2021-03-17T07:01:02.000Z | 2021-03-17T07:01:02.000Z | nff/nn/activations.py | torchmd/mdgrad | 77bd7685b74b41acf54a9483546e1e8cb545eb01 | [
"MIT"
] | 5 | 2021-06-08T02:44:35.000Z | 2021-12-17T11:50:08.000Z | import numpy as np
import torch
import torch.nn.functional as F
class shifted_softplus(torch.nn.Module):
def __init__(self):
super(shifted_softplus, self).__init__()
def forward(self, input):
return F.softplus(input) - np.log(2.0)
| 21.5 | 48 | 0.697674 | 38 | 258 | 4.473684 | 0.578947 | 0.129412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.193798 | 258 | 11 | 49 | 23.454545 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
677835a10b20e16b04a4bd32546a25db85469aaa | 317 | py | Python | backend/appengine/routes/trabalheconosco/home.py | Joaohigor/JCUsinagem | c0e48129a9d1607fb896fe9d66975182b9402933 | [
"MIT"
] | null | null | null | backend/appengine/routes/trabalheconosco/home.py | Joaohigor/JCUsinagem | c0e48129a9d1607fb896fe9d66975182b9402933 | [
"MIT"
] | null | null | null | backend/appengine/routes/trabalheconosco/home.py | Joaohigor/JCUsinagem | c0e48129a9d1607fb896fe9d66975182b9402933 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from config.template_middleware import TemplateResponse
from gaecookie.decorator import no_csrf
from gaepermission.decorator import login_not_required
@login_not_required
@no_csrf
def index():
return TemplateResponse()
| 26.416667 | 57 | 0.794953 | 38 | 317 | 6.289474 | 0.631579 | 0.125523 | 0.133891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003676 | 0.141956 | 317 | 11 | 58 | 28.818182 | 0.875 | 0.066246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.5 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
678339361c98cc10642007d7c1d7f3cd2aaa14a8 | 164 | py | Python | implicit/gpu/__init__.py | r-yanyo/implicit | 47260275193a258cf5215d3a0cf1a201c4351817 | [
"MIT"
] | null | null | null | implicit/gpu/__init__.py | r-yanyo/implicit | 47260275193a258cf5215d3a0cf1a201c4351817 | [
"MIT"
] | null | null | null | implicit/gpu/__init__.py | r-yanyo/implicit | 47260275193a258cf5215d3a0cf1a201c4351817 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
try:
import cupy # noqa
from ._cuda import * # noqa
HAS_CUDA = True
except ImportError:
HAS_CUDA = False
| 16.4 | 38 | 0.689024 | 21 | 164 | 5 | 0.619048 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262195 | 164 | 9 | 39 | 18.222222 | 0.867769 | 0.054878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
678405ea012035ea0333925c235b4c9089c225c0 | 96 | py | Python | research/utils/__init__.py | ZviBaratz/pylabber | 35337284f3d0615249f642743b993b7dad407390 | [
"Apache-2.0"
] | 3 | 2020-08-28T21:33:07.000Z | 2021-07-19T17:52:17.000Z | research/utils/__init__.py | TheLabbingProject/pylabber | 27d6073e7bde871c16912a8ea5e0e389711bbd9f | [
"Apache-2.0"
] | 74 | 2019-09-04T11:40:16.000Z | 2022-01-03T19:43:04.000Z | research/utils/__init__.py | ZviBaratz/pylabber | 35337284f3d0615249f642743b993b7dad407390 | [
"Apache-2.0"
] | 3 | 2019-05-07T07:09:05.000Z | 2019-08-30T15:40:47.000Z | from research.utils.utils import get_measurement_model, get_subject_model
# flake8: noqa: F401
| 24 | 73 | 0.833333 | 14 | 96 | 5.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.104167 | 96 | 3 | 74 | 32 | 0.837209 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6792ab9177e5f849432e7e1487362888318a09f4 | 92 | py | Python | 2014/11/student-debt/graphic_config.py | nprapps/graphics-archive | 97b0ef326b46a959df930f5522d325e537f7a655 | [
"FSFAP"
] | 14 | 2015-05-08T13:41:51.000Z | 2021-02-24T12:34:55.000Z | 2014/11/student-debt/graphic_config.py | nprapps/graphics-archive | 97b0ef326b46a959df930f5522d325e537f7a655 | [
"FSFAP"
] | null | null | null | 2014/11/student-debt/graphic_config.py | nprapps/graphics-archive | 97b0ef326b46a959df930f5522d325e537f7a655 | [
"FSFAP"
] | 7 | 2015-04-04T04:45:54.000Z | 2021-02-18T11:12:48.000Z | #!/usr/bin/env python
COPY_GOOGLE_DOC_KEY = '14muD-D_AKwFCTeXRSoWx8pmbFXwQRdQjUFC6S0Uu_FA'
| 23 | 68 | 0.836957 | 12 | 92 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 0.065217 | 92 | 3 | 69 | 30.666667 | 0.77907 | 0.217391 | 0 | 0 | 0 | 0 | 0.619718 | 0.619718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6797464b23377b7e21a8c42f7536e614dac9de93 | 250 | py | Python | evaluate/forms.py | mohilkhare1708/descriptiveAnswerChecker | 839404e807f884afd8b59e6f2eebfbc8b1189e83 | [
"MIT"
] | 2 | 2021-02-15T20:50:47.000Z | 2022-02-14T18:31:30.000Z | evaluate/forms.py | mohilkhare1708/descriptiveAnswerChecker | 839404e807f884afd8b59e6f2eebfbc8b1189e83 | [
"MIT"
] | null | null | null | evaluate/forms.py | mohilkhare1708/descriptiveAnswerChecker | 839404e807f884afd8b59e6f2eebfbc8b1189e83 | [
"MIT"
] | 1 | 2022-01-11T15:10:50.000Z | 2022-01-11T15:10:50.000Z | from django import forms
from evaluate.models import Test
class TestCreateForm(forms.ModelForm):
class Meta:
model = Test
fields = ('test_name', 'total_marks', 'passing_marks', 'no_of_ans', 'model_answer_key', 'response_sheet', ) | 35.714286 | 115 | 0.712 | 32 | 250 | 5.3125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176 | 250 | 7 | 115 | 35.714286 | 0.825243 | 0 | 0 | 0 | 0 | 0 | 0.286853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
67ac01198bc767cf744a6c219eb6fa8b2830b927 | 3,506 | py | Python | active_directory_ldap/komand_active_directory_ldap/connection/connection.py | emartin-merrill-r7/insightconnect-plugins | a589745dbcc9f01d3e601431e77ab7221a84c117 | [
"MIT"
] | 6 | 2020-11-10T03:07:00.000Z | 2022-02-24T18:07:57.000Z | active_directory_ldap/komand_active_directory_ldap/connection/connection.py | OSSSP/insightconnect-plugins | 846758dab745170cf1a8c146211a8bea9592e8ff | [
"MIT"
] | 17 | 2020-01-21T16:02:04.000Z | 2022-01-12T15:11:26.000Z | active_directory_ldap/komand_active_directory_ldap/connection/connection.py | OSSSP/insightconnect-plugins | 846758dab745170cf1a8c146211a8bea9592e8ff | [
"MIT"
] | 2 | 2020-12-26T11:33:23.000Z | 2021-09-30T22:22:43.000Z | import komand
from komand.exceptions import ConnectionTestException
from .schema import ConnectionSchema
# Custom imports below
import ldap3
from ldap3.core import exceptions
class Connection(komand.Connection):
def __init__(self):
super(self.__class__, self).__init__(input=ConnectionSchema())
def c... | 43.283951 | 98 | 0.582145 | 315 | 3,506 | 6.368254 | 0.244444 | 0.202393 | 0.118644 | 0.198903 | 0.651545 | 0.651545 | 0.614158 | 0.614158 | 0.614158 | 0.614158 | 0 | 0.006846 | 0.333428 | 3,506 | 80 | 99 | 43.825 | 0.851519 | 0.010553 | 0 | 0.507692 | 0 | 0 | 0.120464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046154 | false | 0.092308 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
67dc18f58485017ab38a2770f0766ad69656a146 | 470 | py | Python | prpl/apis/hl/com/__init__.py | prplfoundation/prpl-ssi-api-parser | 1811825ee2c852db8d5945dfb0748cfa3e57c0ee | [
"BSD-2-Clause-Patent"
] | null | null | null | prpl/apis/hl/com/__init__.py | prplfoundation/prpl-ssi-api-parser | 1811825ee2c852db8d5945dfb0748cfa3e57c0ee | [
"BSD-2-Clause-Patent"
] | 1 | 2019-05-14T05:48:10.000Z | 2019-05-14T05:48:10.000Z | prpl/apis/hl/com/__init__.py | prplfoundation/prpl-ssi-api-parser | 1811825ee2c852db8d5945dfb0748cfa3e57c0ee | [
"BSD-2-Clause-Patent"
] | 1 | 2019-07-01T14:32:51.000Z | 2019-07-01T14:32:51.000Z |
from prpl.apis.hl.com.version import Version
from prpl.apis.hl.com.event import Event
from prpl.apis.hl.com.field import Field
from prpl.apis.hl.com.procedure import Procedure
from prpl.apis.hl.com.instance import Instance
from prpl.apis.hl.com.object import Object
from prpl.apis.hl.com.response_code import Res... | 39.166667 | 98 | 0.759574 | 74 | 470 | 4.756757 | 0.22973 | 0.181818 | 0.272727 | 0.318182 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117021 | 470 | 11 | 99 | 42.727273 | 0.848193 | 0 | 0 | 0 | 0 | 0 | 0.120087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
67e4b64fdc3bb595a4919a74a36572afa702c47b | 130 | py | Python | python/testData/inspections/PyUnresolvedReferencesInspection/MetaClassMembersInStubs/b.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/MetaClassMembersInStubs/b.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyUnresolvedReferencesInspection/MetaClassMembersInStubs/b.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class GenericMeta(type):
def __getitem__(self, args):
pass
class Generic(object):
__metaclass__ = GenericMeta
| 13 | 32 | 0.676923 | 13 | 130 | 6.153846 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238462 | 130 | 9 | 33 | 14.444444 | 0.808081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
67e7ead417921385479bf056a2783b3e64b40b1b | 2,669 | py | Python | sknetwork/hierarchy/tests/test_metrics.py | altana-tech/scikit-network | dedc9d3e694c7106e4709aae22dffb5142c15859 | [
"BSD-3-Clause"
] | 1 | 2020-09-14T11:06:13.000Z | 2020-09-14T11:06:13.000Z | sknetwork/hierarchy/tests/test_metrics.py | altana-tech/scikit-network | dedc9d3e694c7106e4709aae22dffb5142c15859 | [
"BSD-3-Clause"
] | 2 | 2020-10-17T08:21:38.000Z | 2020-10-21T09:13:30.000Z | sknetwork/hierarchy/tests/test_metrics.py | altana-tech/scikit-network | dedc9d3e694c7106e4709aae22dffb5142c15859 | [
"BSD-3-Clause"
] | 1 | 2020-06-19T09:39:11.000Z | 2020-06-19T09:39:11.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on March 2019
@author: Thomas Bonald <bonald@enst.fr>
"""
import unittest
from sknetwork.data.test_graphs import *
from sknetwork.hierarchy import Paris, LouvainHierarchy, dasgupta_cost, dasgupta_score, tree_sampling_divergence
# noinspection PyMissingOrEmp... | 47.660714 | 112 | 0.738854 | 295 | 2,669 | 6.515254 | 0.264407 | 0.185744 | 0.12487 | 0.108221 | 0.707076 | 0.703954 | 0.703954 | 0.703954 | 0.581165 | 0.35744 | 0 | 0.039661 | 0.159236 | 2,669 | 55 | 113 | 48.527273 | 0.816845 | 0.053953 | 0 | 0.230769 | 0 | 0 | 0.005169 | 0 | 0 | 0 | 0 | 0 | 0.435897 | 1 | 0.128205 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
67eef06692cdce258c971fb6e8bdb51600387542 | 866 | py | Python | lib/systems/nitrobenzene.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/nitrobenzene.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/nitrobenzene.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | import pulsar as psr
def load_ref_system():
""" Returns nitrobenzene as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
C 1.1584 2.3244 0.0000
C 1.9309 1.1623 0.0000
C 1.32... | 39.363636 | 68 | 0.426097 | 127 | 866 | 2.88189 | 0.488189 | 0.191257 | 0.081967 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.466667 | 0.48037 | 866 | 21 | 69 | 41.238095 | 0.346667 | 0.125866 | 0 | 0 | 0 | 0 | 0.886024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | true | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
67ef10fd5c5b99395ceddac4e1ac2213d1745f29 | 333 | py | Python | tests/test_day12.py | khwilson/advent2021 | 6499b883f1b6d7366f3fe75dc229d646154a4cf8 | [
"MIT"
] | null | null | null | tests/test_day12.py | khwilson/advent2021 | 6499b883f1b6d7366f3fe75dc229d646154a4cf8 | [
"MIT"
] | null | null | null | tests/test_day12.py | khwilson/advent2021 | 6499b883f1b6d7366f3fe75dc229d646154a4cf8 | [
"MIT"
] | null | null | null | from pathlib import Path
from advent.solutions import day12
def test_part1(fixtures_path: Path):
solution = day12.Day12(fixtures_path / "test_input12.txt")
assert solution.part1() == 10
def test_part2(fixtures_path: Path):
solution = day12.Day12(fixtures_path / "test_input12.txt")
assert solution.p... | 23.785714 | 62 | 0.735736 | 45 | 333 | 5.266667 | 0.4 | 0.202532 | 0.135021 | 0.202532 | 0.624473 | 0.624473 | 0.624473 | 0.624473 | 0.624473 | 0.624473 | 0 | 0.078571 | 0.159159 | 333 | 13 | 63 | 25.615385 | 0.767857 | 0 | 0 | 0.25 | 0 | 0 | 0.096096 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
67f05f43a6ae5f830b624f1ca2eeb939adf04c55 | 626 | py | Python | tests/test_inrepo.py | minrk/repo2docker-checker | 3cb3f231c032388c374929bbefd79366d64ad767 | [
"BSD-3-Clause"
] | null | null | null | tests/test_inrepo.py | minrk/repo2docker-checker | 3cb3f231c032388c374929bbefd79366d64ad767 | [
"BSD-3-Clause"
] | 3 | 2020-07-02T06:55:11.000Z | 2020-07-20T13:40:24.000Z | tests/test_inrepo.py | minrk/repo2docker-checker | 3cb3f231c032388c374929bbefd79366d64ad767 | [
"BSD-3-Clause"
] | null | null | null | import os
import pytest
from repo2docker_checker import inrepo
def test_import_fails():
with pytest.raises(ImportError):
inrepo.import_test("nosuchmod")
def test_import_ok():
inrepo.import_test("sys")
def test_notebook_fails(tmpdir, here):
output_dir = str(tmpdir.mkdir("out"))
nb = os.pa... | 21.586207 | 43 | 0.707668 | 88 | 626 | 4.829545 | 0.375 | 0.105882 | 0.061176 | 0.089412 | 0.376471 | 0.376471 | 0.244706 | 0.244706 | 0.244706 | 0.244706 | 0 | 0.001923 | 0.169329 | 626 | 28 | 44 | 22.357143 | 0.815385 | 0 | 0 | 0.222222 | 0 | 0 | 0.065495 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.222222 | false | 0.055556 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
e1fe1403d469c0e383f9e1004c0a638bff223eed | 1,177 | py | Python | angrmanagement/logic/disassembly/jump_history.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 2 | 2022-01-23T21:43:54.000Z | 2022-02-02T08:20:20.000Z | angrmanagement/logic/disassembly/jump_history.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 1 | 2021-12-04T01:11:46.000Z | 2021-12-04T01:11:46.000Z | angrmanagement/logic/disassembly/jump_history.py | Kyle-Kyle/angr-management | 6ea65f19d813be510a38f06510b2b2148a6b5000 | [
"BSD-2-Clause"
] | 1 | 2021-05-17T05:46:19.000Z | 2021-05-17T05:46:19.000Z |
class JumpHistory(object):
def __init__(self):
self._history = [ ]
self._pos = 0
def __len__(self):
return len(self._history)
def jump_to(self, addr):
if self._pos != len(self._history) - 1:
self.trim()
if not self._history or self._history[-1] != ad... | 24.020408 | 58 | 0.536109 | 145 | 1,177 | 4.055172 | 0.17931 | 0.355442 | 0.190476 | 0.166667 | 0.646259 | 0.57483 | 0.57483 | 0.57483 | 0.534014 | 0.534014 | 0 | 0.015564 | 0.344945 | 1,177 | 48 | 59 | 24.520833 | 0.747082 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0 | 0.029412 | 0.382353 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c00e36d0aed2b6f3af2d49b889dbb204d52d5183 | 92 | py | Python | type_page/apps.py | dumel93/project- | f9ad52d9c8449953e2151fd1c13b39631113eea7 | [
"MIT"
] | null | null | null | type_page/apps.py | dumel93/project- | f9ad52d9c8449953e2151fd1c13b39631113eea7 | [
"MIT"
] | null | null | null | type_page/apps.py | dumel93/project- | f9ad52d9c8449953e2151fd1c13b39631113eea7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TypePageConfig(AppConfig):
name = 'type_page'
| 15.333333 | 33 | 0.76087 | 11 | 92 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c0566b70caae576cf3eb4870977c7d4a8aebf82d | 108 | py | Python | Baekjoon/Python/1026.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | 2 | 2020-05-23T01:55:38.000Z | 2020-07-07T15:59:00.000Z | Baekjoon/Python/1026.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | null | null | null | Baekjoon/Python/1026.py | KHJcode/Algorithm-study | fa08d3c752fcb3557fd45fb394157926afc0de4a | [
"MIT"
] | null | null | null | N,A,B= eval("map(int,input().split()),"*3)
print(sum(a*b for a,b in zip(sorted(A, reverse=True),sorted(B)))) | 54 | 65 | 0.638889 | 24 | 108 | 2.875 | 0.708333 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.064815 | 108 | 2 | 65 | 54 | 0.673267 | 0 | 0 | 0 | 0 | 0 | 0.229358 | 0.229358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
22385d0163f80633bb0715925b569051531f3461 | 46 | py | Python | tests/conftest.py | Chavithra/investments-toolkit | d78ddc843ccc178d6a3b2eab35e2512e634bc9d4 | [
"Apache-2.0"
] | 3 | 2021-08-23T16:47:22.000Z | 2021-11-19T12:41:19.000Z | tests/conftest.py | Chavithra/investments-toolkit | d78ddc843ccc178d6a3b2eab35e2512e634bc9d4 | [
"Apache-2.0"
] | 14 | 2021-08-28T14:17:50.000Z | 2021-11-28T20:12:54.000Z | tests/conftest.py | Chavithra/investments-toolkit | d78ddc843ccc178d6a3b2eab35e2512e634bc9d4 | [
"Apache-2.0"
] | 1 | 2021-11-04T06:51:32.000Z | 2021-11-04T06:51:32.000Z | pytest_plugins = ["_fixtures.fixture_barset"]
| 23 | 45 | 0.804348 | 5 | 46 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 1 | 46 | 46 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0.521739 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
226b014ee4a3a406f55be3e030266df128bdc73b | 412 | py | Python | Reading/tmt/models.py | SnowmanZhang/CharacterTest | c4936174557594fca93a747b3a9893446e9afd67 | [
"MIT"
] | null | null | null | Reading/tmt/models.py | SnowmanZhang/CharacterTest | c4936174557594fca93a747b3a9893446e9afd67 | [
"MIT"
] | null | null | null | Reading/tmt/models.py | SnowmanZhang/CharacterTest | c4936174557594fca93a747b3a9893446e9afd67 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class Question(models.Model):
question_text = models.CharField(max_length=200)
attribute = models.CharField(max_length=12)
project = models.CharField(max_length=32,default ="")
project_id = models.CharField(max_length=12... | 29.428571 | 56 | 0.769417 | 56 | 412 | 5.375 | 0.553571 | 0.199336 | 0.239203 | 0.318937 | 0.172757 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.114078 | 412 | 13 | 57 | 31.692308 | 0.79726 | 0.11165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
97e999f6dd05902f61a79580463ecec8ecb3f6df | 117 | py | Python | matt_site/home/views/homeview.py | hamtamtots/website | 1b69aae7d543942ea87cc4d2370f58a3f5977b89 | [
"MIT"
] | null | null | null | matt_site/home/views/homeview.py | hamtamtots/website | 1b69aae7d543942ea87cc4d2370f58a3f5977b89 | [
"MIT"
] | null | null | null | matt_site/home/views/homeview.py | hamtamtots/website | 1b69aae7d543942ea87cc4d2370f58a3f5977b89 | [
"MIT"
] | null | null | null | from django.views.generic import TemplateView
class HomeView(TemplateView):
template_name = 'home/index.html'
| 19.5 | 46 | 0.777778 | 15 | 117 | 6.066667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 117 | 5 | 47 | 23.4 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.12931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3f0070b187cd40ca85b27363886cc31e6aec8822 | 255 | py | Python | sponge-integration-tests/examples/core/kb_file_order_1.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 9 | 2017-12-16T21:48:57.000Z | 2022-01-06T12:22:24.000Z | sponge-integration-tests/examples/core/kb_file_order_1.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 3 | 2020-12-18T11:56:46.000Z | 2022-03-31T18:37:10.000Z | sponge-integration-tests/examples/core/kb_file_order_1.py | mnpas/sponge | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | [
"Apache-2.0"
] | 2 | 2019-12-29T16:08:32.000Z | 2020-06-15T14:05:34.000Z | """
Sponge Knowledge Base
Knowledge base file order
"""
from java.util import ArrayList
def onInit():
# Variables for assertions only
sponge.setVariable("order", ArrayList())
def onStartup():
sponge.getVariable("order").add(1)
| 18.214286 | 45 | 0.67451 | 29 | 255 | 5.931034 | 0.724138 | 0.151163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.207843 | 255 | 13 | 46 | 19.615385 | 0.846535 | 0.305882 | 0 | 0 | 0 | 0 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | true | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3f00eab3eae546524b6fb53929062a39b28da98c | 108 | py | Python | tgstats/main.py | Ensenasty/Chat-Analytics | b2c061f101b5c47a4dfb882866e4f5b03f37b5c6 | [
"BSD-3-Clause"
] | null | null | null | tgstats/main.py | Ensenasty/Chat-Analytics | b2c061f101b5c47a4dfb882866e4f5b03f37b5c6 | [
"BSD-3-Clause"
] | null | null | null | tgstats/main.py | Ensenasty/Chat-Analytics | b2c061f101b5c47a4dfb882866e4f5b03f37b5c6 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
## ts = ddf
# ts.reindex(ts["date"])
# daily = ts.resample("D")
# daily.agg(sum)
| 13.5 | 26 | 0.527778 | 16 | 108 | 3.5625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.185185 | 108 | 7 | 27 | 15.428571 | 0.636364 | 0.87037 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3f1a7a8126eb0dbcff8197d73836c0de94f5756f | 5,068 | py | Python | tmp_copyApp73HCMLCLfiles2Git.py | judysu1983/PythonMBSi | 9481bf1409a888c3f8511bcd05718ea81a063fa1 | [
"bzip2-1.0.6"
] | null | null | null | tmp_copyApp73HCMLCLfiles2Git.py | judysu1983/PythonMBSi | 9481bf1409a888c3f8511bcd05718ea81a063fa1 | [
"bzip2-1.0.6"
] | null | null | null | tmp_copyApp73HCMLCLfiles2Git.py | judysu1983/PythonMBSi | 9481bf1409a888c3f8511bcd05718ea81a063fa1 | [
"bzip2-1.0.6"
] | null | null | null | import os, shutil,stat
#Copy files from sd to git folder structure by C:\Depots\MBSI\Projects\OOB\UI\OOBAppsTest.eol:
#e.g. from C:\Depots\MBSI\Projects\OOB\UI\ar\HcmApp\HCM.en-US.label.txt.lcl
# to C:\GitProjects\HCM\source\Translation\LCL\ar\HCM.en-US.label.txt.lcl
#f= Accounting Foundation\source\metadata\... | 95.622642 | 926 | 0.732242 | 721 | 5,068 | 5.133148 | 0.269071 | 0.08214 | 0.184815 | 0.24642 | 0.460416 | 0.24615 | 0.166982 | 0.152391 | 0.152391 | 0.152391 | 0 | 0.003629 | 0.07577 | 5,068 | 52 | 927 | 97.461538 | 0.786507 | 0.282163 | 0 | 0 | 0 | 0 | 0.638274 | 0.580555 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.107143 | 0.107143 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3f615488f020ce199b4caf906ee1c315ba88ce6a | 4,368 | py | Python | data_visualization/queries.py | danielrenes/car-data-visualization | 9fb18c7bc8ec3e796793178acab350f0b5e7ef5b | [
"MIT"
] | null | null | null | data_visualization/queries.py | danielrenes/car-data-visualization | 9fb18c7bc8ec3e796793178acab350f0b5e7ef5b | [
"MIT"
] | null | null | null | data_visualization/queries.py | danielrenes/car-data-visualization | 9fb18c7bc8ec3e796793178acab350f0b5e7ef5b | [
"MIT"
] | null | null | null | from .models import Category, Sensor, Data, Subview, View, ChartConfig, User, PredefinedConfiguration, PreconfiguredView
from .decorators import success_or_abort
@success_or_abort
def query_all_categories(user_id):
return Category.query.join(User, User.id==Category.user_id).filter(User.id==user_id).order_by(Catego... | 43.68 | 154 | 0.765339 | 688 | 4,368 | 4.600291 | 0.079942 | 0.140284 | 0.092891 | 0.107425 | 0.766825 | 0.715008 | 0.679937 | 0.660979 | 0.582306 | 0.479937 | 0 | 0 | 0.09272 | 4,368 | 99 | 155 | 44.121212 | 0.798637 | 0.015797 | 0 | 0.384615 | 0 | 0 | 0.003258 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.25641 | false | 0 | 0.025641 | 0.230769 | 0.551282 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
3f62626f2f84f7a8aed1f7fff5e2be58bfa05eef | 582 | py | Python | tests/json_placeholder_client.py | QualiSystemsLab/abstract-requests-client | eb8281082cdfbd54b78451e907b9e7eef21b718a | [
"MIT"
] | 1 | 2021-12-08T20:54:40.000Z | 2021-12-08T20:54:40.000Z | tests/json_placeholder_client.py | QualiSystemsLab/abstract-requests-client | eb8281082cdfbd54b78451e907b9e7eef21b718a | [
"MIT"
] | null | null | null | tests/json_placeholder_client.py | QualiSystemsLab/abstract-requests-client | eb8281082cdfbd54b78451e907b9e7eef21b718a | [
"MIT"
] | null | null | null | from abstract_http_client.http_clients.requests_client import RequestsClient
class JsonPlaceholderApiClient(RequestsClient):
def __init__(self, host):
super().__init__(host=host, use_https=True)
def get_posts(self):
return self.rest_service.request_get("/posts").json()
def add_post(self)... | 30.631579 | 88 | 0.709622 | 76 | 582 | 5.092105 | 0.421053 | 0.103359 | 0.144703 | 0.186047 | 0.361757 | 0.361757 | 0.27907 | 0 | 0 | 0 | 0 | 0.004107 | 0.16323 | 582 | 18 | 89 | 32.333333 | 0.790554 | 0 | 0 | 0 | 0 | 0 | 0.06701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0.333333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
58d94207018b26eb7606dc88f01f641019560424 | 56 | py | Python | solutions/filter_min.py | lbasora/back2python | 76e825049579ebf52e3b3e88003a1c2f53d2062b | [
"MIT"
] | null | null | null | solutions/filter_min.py | lbasora/back2python | 76e825049579ebf52e3b3e88003a1c2f53d2062b | [
"MIT"
] | null | null | null | solutions/filter_min.py | lbasora/back2python | 76e825049579ebf52e3b3e88003a1c2f53d2062b | [
"MIT"
] | null | null | null | carburant[carburant['prix'] == carburant['prix'].min()]
| 28 | 55 | 0.678571 | 6 | 56 | 6.333333 | 0.5 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 56 | 1 | 56 | 56 | 0.716981 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
58df8a4d174fdfaf10050cbe1a0c037f96449889 | 4,339 | py | Python | DailyProgrammer/DP20150605.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20150605.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20150605.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[2015-06-05] Challenge #217 [Practical Exercise] TeXSCII
https://www.reddit.com/r/dailyprogrammer/comments/38nhgx/20150605_challenge_217_practical_exercise_texscii/
# [](#PEIcon) _(Practical Exercise)_: TeXSCII
LaTeX is a typesetting utility based on the TeX typesetting and macro system which can be used to outpu... | 45.197917 | 118 | 0.555428 | 594 | 4,339 | 3.757576 | 0.397306 | 0.007168 | 0.007168 | 0.014337 | 0.110215 | 0.067204 | 0.067204 | 0.060932 | 0.060932 | 0.060932 | 0 | 0.061131 | 0.294999 | 4,339 | 95 | 119 | 45.673684 | 0.665577 | 0.98018 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
58e17351b70266ac4e02137b17bf13bfe4aae177 | 188 | py | Python | workflow/rules/__paths__.py | welfare-state-analytics/pyriksprot_tagger | 769cc3460e0bbd23d3c3276dfeb76a2a8cd7a081 | [
"MIT"
] | null | null | null | workflow/rules/__paths__.py | welfare-state-analytics/pyriksprot_tagger | 769cc3460e0bbd23d3c3276dfeb76a2a8cd7a081 | [
"MIT"
] | 8 | 2021-03-13T13:23:39.000Z | 2021-08-17T07:13:49.000Z | workflow/rules/__paths__.py | welfare-state-analytics/pyriksprot_tagger | 769cc3460e0bbd23d3c3276dfeb76a2a8cd7a081 | [
"MIT"
] | null | null | null | import os
import sys
def find_root(d: str) -> str:
return os.path.join(os.getcwd().split(d)[0], d)
def fix_path():
sys.path.insert(0, find_root("westac_parlaclarin_pipeline"))
| 17.090909 | 64 | 0.68617 | 32 | 188 | 3.875 | 0.59375 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.148936 | 188 | 10 | 65 | 18.8 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0.143617 | 0.143617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
45127d3805bac881ef06b35f5af36073e671e78f | 148 | py | Python | test_txt.py | hanshantong/DataAnalysisLearning | 182bf705c9138ff6e239492304162c544c83141f | [
"Apache-2.0"
] | null | null | null | test_txt.py | hanshantong/DataAnalysisLearning | 182bf705c9138ff6e239492304162c544c83141f | [
"Apache-2.0"
] | null | null | null | test_txt.py | hanshantong/DataAnalysisLearning | 182bf705c9138ff6e239492304162c544c83141f | [
"Apache-2.0"
] | null | null | null |
with open('test.txt', 'r+') as f:
f.seek(15)
print(f.readline())
with open('test.txt') as f:
data = []
for d in f:
data.append(d)
print(data) | 16.444444 | 33 | 0.601351 | 29 | 148 | 3.068966 | 0.551724 | 0.179775 | 0.269663 | 0.337079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.175676 | 148 | 9 | 34 | 16.444444 | 0.713115 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
45144f726c2649b602d095b321e91620854fae92 | 89 | py | Python | deberes/apps.py | MonkeyAndres/AlexioProject | 561fdbbfb561bb2ee40c6e90696ba4759029959d | [
"MIT"
] | null | null | null | deberes/apps.py | MonkeyAndres/AlexioProject | 561fdbbfb561bb2ee40c6e90696ba4759029959d | [
"MIT"
] | null | null | null | deberes/apps.py | MonkeyAndres/AlexioProject | 561fdbbfb561bb2ee40c6e90696ba4759029959d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DeberesConfig(AppConfig):
name = 'deberes'
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
188bf3fc1c42e1ea75d3bc79aebdae9558fec5da | 475 | py | Python | test/test_body59.py | pygitee/pygitee | 7622314a4dbb08cf2f729b6cdd0a2887b96e394e | [
"MIT"
] | null | null | null | test/test_body59.py | pygitee/pygitee | 7622314a4dbb08cf2f729b6cdd0a2887b96e394e | [
"MIT"
] | null | null | null | test/test_body59.py | pygitee/pygitee | 7622314a4dbb08cf2f729b6cdd0a2887b96e394e | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
import unittest
class TestBody59(unittest.TestCase):
"""Body59 unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testBody59(self):
"""Test Body59"""
# FIXME: construct object with mandatory... | 17.592593 | 79 | 0.633684 | 53 | 475 | 5.433962 | 0.679245 | 0.055556 | 0.076389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.267368 | 475 | 26 | 80 | 18.269231 | 0.781609 | 0.355789 | 0 | 0.272727 | 0 | 0 | 0.027397 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.272727 | false | 0.272727 | 0.181818 | 0 | 0.545455 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
188bf77028e1263d11cb5550cb6bea6b3822f7c5 | 730 | py | Python | Day 58/qubit.py | AN3223/code-a-day | dd98713159a921c1266dabff2a9c298509dfbe54 | [
"MIT"
] | null | null | null | Day 58/qubit.py | AN3223/code-a-day | dd98713159a921c1266dabff2a9c298509dfbe54 | [
"MIT"
] | null | null | null | Day 58/qubit.py | AN3223/code-a-day | dd98713159a921c1266dabff2a9c298509dfbe54 | [
"MIT"
] | null | null | null | from random import randrange
class Qubit:
"""Quick and dirty representation of a qubit"""
def __init__(self, x=0, y=0, z=-1):
self.x = x
self.y = y
self.z = z
def __repr__(self):
return f'Qubit(x={self.x}, y={self.y}, z={self.z})'
def measure(self):
if self.x... | 19.210526 | 59 | 0.505479 | 123 | 730 | 2.934959 | 0.252033 | 0.055402 | 0.121884 | 0.188366 | 0.32133 | 0.32133 | 0.257618 | 0.257618 | 0.257618 | 0.257618 | 0 | 0.034765 | 0.330137 | 730 | 37 | 60 | 19.72973 | 0.703476 | 0.056164 | 0 | 0 | 0 | 0 | 0.060029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.043478 | 0.217391 | 0.73913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
189a358017c39ba49badb36ef706dd2df2c787f5 | 85 | py | Python | script/utils.py | jayeolasegun/Term-Deposit-Classification | e1ce928814f26712813f600bc704183d5a9e603d | [
"CC0-1.0"
] | null | null | null | script/utils.py | jayeolasegun/Term-Deposit-Classification | e1ce928814f26712813f600bc704183d5a9e603d | [
"CC0-1.0"
] | null | null | null | script/utils.py | jayeolasegun/Term-Deposit-Classification | e1ce928814f26712813f600bc704183d5a9e603d | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 30 18:07:30 2020
@author: user
"""
| 9.444444 | 35 | 0.552941 | 14 | 85 | 3.357143 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19697 | 0.223529 | 85 | 8 | 36 | 10.625 | 0.515152 | 0.858824 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
18b208b6ce2ae6c4d2e55c57e3ca86e6aa8fd179 | 119 | py | Python | controledefornecedores/apps.py | brendo1806/Estudos1 | b3db0d622a1b80c98a3a14800852de7c822f4cc0 | [
"Apache-2.0"
] | null | null | null | controledefornecedores/apps.py | brendo1806/Estudos1 | b3db0d622a1b80c98a3a14800852de7c822f4cc0 | [
"Apache-2.0"
] | null | null | null | controledefornecedores/apps.py | brendo1806/Estudos1 | b3db0d622a1b80c98a3a14800852de7c822f4cc0 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class ControledefornecedoresConfig(AppConfig):
name = 'controledefornecedores'
| 19.833333 | 46 | 0.815126 | 10 | 119 | 9.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12605 | 119 | 5 | 47 | 23.8 | 0.932692 | 0 | 0 | 0 | 0 | 0 | 0.184874 | 0.184874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
18bd147bc5abe998fb09aeb24e3efec8d27502f3 | 82 | py | Python | src/data/preprocess.py | juliazam/healthcare_ASEAN | 3cc451f723124f18b2d11c79ff80a6c5a9354c6e | [
"MIT"
] | 25 | 2016-04-24T14:00:36.000Z | 2021-01-07T07:26:00.000Z | src/data/preprocess.py | shikhakhanna19/healthcare_ASEAN | 3f89ec67fde825bf3b6275cee0e8f13812533c1e | [
"MIT"
] | 25 | 2016-06-24T07:04:39.000Z | 2020-10-03T23:01:41.000Z | src/data/preprocess.py | shikhakhanna19/healthcare_ASEAN | 3f89ec67fde825bf3b6275cee0e8f13812533c1e | [
"MIT"
] | 112 | 2016-06-24T01:41:00.000Z | 2020-10-03T00:33:22.000Z | # Script to process the data into processed folder for visualization and analysis
| 41 | 81 | 0.829268 | 12 | 82 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 82 | 1 | 82 | 82 | 0.985507 | 0.963415 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
18be98673f773636e73d9e2c5d4b717bcb6352a6 | 266 | py | Python | ding/utils/data/__init__.py | davide97l/DI-engine | d48c93bcd5c07c29f2ce4ac1b7756b8bc255c423 | [
"Apache-2.0"
] | 1 | 2022-03-21T16:15:39.000Z | 2022-03-21T16:15:39.000Z | ding/utils/data/__init__.py | jiaruonan/DI-engine | 268d77db3cb54401b2cfc83e2bc3ec87c31e7b83 | [
"Apache-2.0"
] | null | null | null | ding/utils/data/__init__.py | jiaruonan/DI-engine | 268d77db3cb54401b2cfc83e2bc3ec87c31e7b83 | [
"Apache-2.0"
] | null | null | null | from .collate_fn import diff_shape_collate, default_collate, default_decollate, timestep_collate, ttorch_collate
from .dataloader import AsyncDataLoader
from .dataset import NaiveRLDataset, D4RLDataset, HDF5Dataset, create_dataset, hdf5_save, offline_data_save_type
| 66.5 | 112 | 0.87594 | 33 | 266 | 6.69697 | 0.666667 | 0.126697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.078947 | 266 | 3 | 113 | 88.666667 | 0.889796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
18d66e70073f23269425c2478f78b85369b8f142 | 194 | py | Python | cdc/streams/types.py | getsentry/cdc | 8643ee7a5bf491755c46169c6841131521d34b6c | [
"Apache-2.0"
] | 4 | 2021-06-25T07:51:59.000Z | 2022-01-13T11:31:13.000Z | cdc/streams/types.py | getsentry/cdc | 8643ee7a5bf491755c46169c6841131521d34b6c | [
"Apache-2.0"
] | 4 | 2021-04-05T23:24:27.000Z | 2021-05-17T21:36:17.000Z | cdc/streams/types.py | getsentry/cdc | 8643ee7a5bf491755c46169c6841131521d34b6c | [
"Apache-2.0"
] | null | null | null | from typing import Mapping, NamedTuple, NewType, Optional
from cdc.types import Payload
class StreamMessage(NamedTuple):
payload: Payload
metadata: Optional[Mapping[str, str]] = None
| 21.555556 | 57 | 0.762887 | 23 | 194 | 6.434783 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159794 | 194 | 8 | 58 | 24.25 | 0.907975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
18e9ef25ce58e9b7ebdbf6ed818e94cbbc41710e | 348 | py | Python | tests/test_qtile.py | edwardoughton/itmlogic | 1e454e3b4b3c8e24c4bc74ec6c076a2f97d86d23 | [
"MIT"
] | 24 | 2019-12-05T17:46:10.000Z | 2022-03-24T07:29:00.000Z | tests/test_qtile.py | edwardoughton/itmlogic | 1e454e3b4b3c8e24c4bc74ec6c076a2f97d86d23 | [
"MIT"
] | 9 | 2019-12-05T16:20:58.000Z | 2021-09-09T16:34:32.000Z | tests/test_qtile.py | edwardoughton/itmlogic | 1e454e3b4b3c8e24c4bc74ec6c076a2f97d86d23 | [
"MIT"
] | 9 | 2019-07-09T14:42:30.000Z | 2021-08-25T16:54:26.000Z | import pytest
from itmlogic.misc.qtile import qtile
def test_qtile(setup_a):
"""
Test the routine for returning the ith entry of a given vector after sorting in
descending order, to obtain user-defined quantile values.
"""
assert qtile(setup_a, 5) == 100
assert qtile(setup_a, 8) == 40
asse... | 26.769231 | 83 | 0.695402 | 54 | 348 | 4.388889 | 0.685185 | 0.168776 | 0.185654 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04059 | 0.221264 | 348 | 12 | 84 | 29 | 0.833948 | 0.393678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
18fc9ffc5603cd013e01f8c438e8739e6c8f8e56 | 65 | py | Python | gatenlp/lang/de/__init__.py | joancf/python-gatenlp | 21441d72ded19e9348052e99ac5bc1fc6af7ab6e | [
"Apache-2.0"
] | 30 | 2020-04-18T12:28:15.000Z | 2022-02-18T21:31:18.000Z | gatenlp/lang/de/__init__.py | joancf/python-gatenlp | 21441d72ded19e9348052e99ac5bc1fc6af7ab6e | [
"Apache-2.0"
] | 133 | 2019-10-16T07:41:59.000Z | 2022-03-31T07:27:07.000Z | gatenlp/lang/de/__init__.py | joancf/python-gatenlp | 21441d72ded19e9348052e99ac5bc1fc6af7ab6e | [
"Apache-2.0"
] | 4 | 2021-01-20T08:12:19.000Z | 2021-10-21T13:29:44.000Z | """
Subpackage for German language resources and annotators.
"""
| 16.25 | 56 | 0.753846 | 7 | 65 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 65 | 3 | 57 | 21.666667 | 0.875 | 0.861538 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e13a98ae3b2a269ba6464e7d4710d4312a1b153a | 248 | py | Python | python/ray/serve/pipeline/conftest.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 22 | 2018-05-08T05:52:34.000Z | 2020-04-01T10:09:55.000Z | python/ray/serve/pipeline/conftest.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 73 | 2021-09-25T07:11:39.000Z | 2022-03-26T07:10:59.000Z | python/ray/serve/pipeline/conftest.py | mgelbart/ray | 4cec2286572e368a4bd64aae467751a384eff62d | [
"Apache-2.0"
] | 10 | 2018-04-27T10:50:59.000Z | 2020-02-24T02:41:43.000Z | import pytest
import ray
from ray.serve.tests.conftest import _shared_serve_instance, serve_instance # noqa
@pytest.fixture(scope="session")
def shared_ray_instance():
yield ray.init(num_cpus=36, _system_config={"task_retry_delay_ms": 50})
| 24.8 | 83 | 0.790323 | 37 | 248 | 4.972973 | 0.702703 | 0.141304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0.104839 | 248 | 9 | 84 | 27.555556 | 0.810811 | 0.016129 | 0 | 0 | 0 | 0 | 0.107438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e1449dbf416adb70fd23f08a8926f9af413892ab | 86 | py | Python | Solutions/7kyu/7kyu_complementary_dna.py | citrok25/Codewars-1 | dc641c5079e2e8b5955eb027fd15427e5bdb2e26 | [
"MIT"
] | 46 | 2017-08-24T09:27:57.000Z | 2022-02-25T02:24:33.000Z | Solutions/7kyu/7kyu_complementary_dna.py | abbhishek971/Codewars | 9e761811db724da1e8aae44594df42b4ee879a16 | [
"MIT"
] | null | null | null | Solutions/7kyu/7kyu_complementary_dna.py | abbhishek971/Codewars | 9e761811db724da1e8aae44594df42b4ee879a16 | [
"MIT"
] | 35 | 2017-08-01T22:09:48.000Z | 2022-02-18T17:21:37.000Z | DNA_strand = lambda dna: dna.translate(__import__('string').maketrans('ATCG','TAGC'))
| 43 | 85 | 0.744186 | 11 | 86 | 5.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 86 | 1 | 86 | 86 | 0.728395 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e16049da0f62a4624cbfba93dbc58f37f459f03b | 149 | py | Python | python/testData/testRunner/env/unit/relativeImports/relative_imports/tests/test_imps.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | null | null | null | python/testData/testRunner/env/unit/relativeImports/relative_imports/tests/test_imps.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | null | null | null | python/testData/testRunner/env/unit/relativeImports/relative_imports/tests/test_imps.py | teddywest32/intellij-community | e0268d7a1da1d318b441001448cdd3e8929b2f29 | [
"Apache-2.0"
] | null | null | null | import unittest
from ..utils import util
class MyTest(unittest.TestCase):
def test_multiply(self):
self.assertEquals(4, util.multiply(2, 2))
| 18.625 | 45 | 0.744966 | 21 | 149 | 5.238095 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.14094 | 149 | 7 | 46 | 21.285714 | 0.835938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e1719f7848d9020b288aafa772ca6db8b1e1217b | 34 | py | Python | python/testData/copyPaste/EmptyBranchBlock.src.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/copyPaste/EmptyBranchBlock.src.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/copyPaste/EmptyBranchBlock.src.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | <selection>x = 1
y = 2</selection> | 17 | 17 | 0.647059 | 6 | 34 | 3.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0.147059 | 34 | 2 | 17 | 17 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e17b7a7559962418087621ff9785dbf678267fef | 208 | py | Python | EPL21232/apps/accounts/views.py | nverbois/TFE21-232 | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | [
"MIT"
] | null | null | null | EPL21232/apps/accounts/views.py | nverbois/TFE21-232 | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | [
"MIT"
] | null | null | null | EPL21232/apps/accounts/views.py | nverbois/TFE21-232 | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | [
"MIT"
] | null | null | null | from django.views.generic.base import TemplateView
from django.contrib.auth.mixins import LoginRequiredMixin
class ProfileView(LoginRequiredMixin, TemplateView):
template_name = "accounts/profil.html"
| 26 | 57 | 0.826923 | 23 | 208 | 7.434783 | 0.782609 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100962 | 208 | 7 | 58 | 29.714286 | 0.914439 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e1922afc3ab942f928093455f5791bfbc190b2a1 | 51 | py | Python | All_Source_Code/GatherData/GatherData_16.py | APMonitor/pds | fa9a7ec920802de346dcdf7f5dd92d752142c16f | [
"MIT"
] | 11 | 2021-01-21T09:46:29.000Z | 2022-03-16T19:33:10.000Z | All_Source_Code/GatherData/GatherData_16.py | the-mahapurush/pds | 7cb4087dd8e75cb1e9b2a4283966c798175f61f7 | [
"MIT"
] | 1 | 2022-03-16T19:47:09.000Z | 2022-03-16T20:11:50.000Z | All_Source_Code/GatherData/GatherData_16.py | the-mahapurush/pds | 7cb4087dd8e75cb1e9b2a4283966c798175f61f7 | [
"MIT"
] | 12 | 2021-02-08T21:11:11.000Z | 2022-03-20T12:42:49.000Z | dx = dx.set_index('Time')
dy = dy.set_index('Time') | 25.5 | 25 | 0.666667 | 10 | 51 | 3.2 | 0.5 | 0.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 51 | 2 | 26 | 25.5 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e1a939e6920718718e508282d7f30594ef54ad13 | 120 | py | Python | traffic/core/types.py | amirdib/traffic | d4af963e8f9aaff64be58b8407c527fe5a616d1c | [
"MIT"
] | 209 | 2018-06-29T10:55:27.000Z | 2022-03-31T19:30:06.000Z | traffic/core/types.py | amirdib/traffic | d4af963e8f9aaff64be58b8407c527fe5a616d1c | [
"MIT"
] | 151 | 2018-10-05T12:47:53.000Z | 2022-02-20T14:47:57.000Z | traffic/core/types.py | amirdib/traffic | d4af963e8f9aaff64be58b8407c527fe5a616d1c | [
"MIT"
] | 68 | 2018-12-19T13:42:34.000Z | 2022-03-11T15:33:41.000Z | from typing import Callable, Iterable, TypeVar
T = TypeVar("T")
ProgressbarType = Callable[[Iterable[T]], Iterable[T]]
| 24 | 54 | 0.741667 | 15 | 120 | 5.933333 | 0.533333 | 0.359551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 120 | 4 | 55 | 30 | 0.839623 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e1b9bcdaf3b6cd460df780c92a4b742cbb8a51d0 | 317 | py | Python | rochambeau/opponents.py | kkarrancsu/rl_course | 8dff4f36a4c4bb6426c69a8e18f55f72807cc8b2 | [
"Apache-2.0"
] | null | null | null | rochambeau/opponents.py | kkarrancsu/rl_course | 8dff4f36a4c4bb6426c69a8e18f55f72807cc8b2 | [
"Apache-2.0"
] | null | null | null | rochambeau/opponents.py | kkarrancsu/rl_course | 8dff4f36a4c4bb6426c69a8e18f55f72807cc8b2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import numpy as np
from numpy.random import RandomState
class UniformRandomOpponent:
def __init__(self, num_actions, seed):
self.num_actions = num_actions
self.random_state = RandomState(seed)
def act(self):
return self.random_state.randint(self.num_actions)
| 22.642857 | 58 | 0.722397 | 42 | 317 | 5.214286 | 0.547619 | 0.182648 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195584 | 317 | 13 | 59 | 24.384615 | 0.858824 | 0.063091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e1c791d605c6a332cd26b2cc1a7da129ef8bdde0 | 103 | py | Python | asu/index.py | greenHandLjj/PythonStudy | 3a9a5454876a3021863b157f3c7c1abdef494adb | [
"MulanPSL-1.0"
] | 2 | 2021-01-11T01:19:13.000Z | 2021-01-12T10:02:04.000Z | asu/index.py | greenHandLjj/PythonStudy | 3a9a5454876a3021863b157f3c7c1abdef494adb | [
"MulanPSL-1.0"
] | 1 | 2021-01-11T09:52:32.000Z | 2021-01-11T09:55:00.000Z | asu/index.py | greenHandLjj/PythonStudy | 3a9a5454876a3021863b157f3c7c1abdef494adb | [
"MulanPSL-1.0"
] | null | null | null | # print('adas')
import sys
sys.path.append('..')
from test import multify
multify.multi(1, 5) | 12.875 | 25 | 0.640777 | 15 | 103 | 4.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024096 | 0.194175 | 103 | 8 | 26 | 12.875 | 0.771084 | 0.126214 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e1c86d85627b68ffd17858e75073eb25c0a161ad | 148 | py | Python | tests/urls.py | drewbrew/drf-nested-routers | 520b2df3206c4d23a2169361488ce8b129f68026 | [
"Apache-2.0"
] | null | null | null | tests/urls.py | drewbrew/drf-nested-routers | 520b2df3206c4d23a2169361488ce8b129f68026 | [
"Apache-2.0"
] | null | null | null | tests/urls.py | drewbrew/drf-nested-routers | 520b2df3206c4d23a2169361488ce8b129f68026 | [
"Apache-2.0"
] | 1 | 2020-11-05T09:42:57.000Z | 2020-11-05T09:42:57.000Z | from django.conf.urls import url, include
from tests.serializers.urls import urlpatterns as serializers_urls
urlpatterns = [
] + serializers_urls
| 21.142857 | 66 | 0.810811 | 19 | 148 | 6.210526 | 0.578947 | 0.381356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128378 | 148 | 6 | 67 | 24.666667 | 0.914729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e1c8f0816b63e9fd25ba488d6334a185e70b7d5e | 603 | py | Python | src/pipeline.py | avbatchelor/insight-articles-project | 852b338b786cb5b9c281fcec2e378aed8d3dc617 | [
"MIT"
] | null | null | null | src/pipeline.py | avbatchelor/insight-articles-project | 852b338b786cb5b9c281fcec2e378aed8d3dc617 | [
"MIT"
] | null | null | null | src/pipeline.py | avbatchelor/insight-articles-project | 852b338b786cb5b9c281fcec2e378aed8d3dc617 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 18 22:05:23 2018
@author: Alex
Pipeline
"""
#%% Import packages
import os
os.chdir('C:\\Users\\Alex\\Documents\\GitHub\\insight-articles-project\\src\\scraping\\')
#%%
'''
Input = local HTML
Output = Save article strings and document sentences
'''
import read_and... | 15.461538 | 96 | 0.693201 | 78 | 603 | 5.25641 | 0.615385 | 0.095122 | 0.039024 | 0.063415 | 0.278049 | 0.278049 | 0.278049 | 0.278049 | 0.278049 | 0.278049 | 0 | 0.025 | 0.137645 | 603 | 39 | 97 | 15.461538 | 0.763462 | 0.280265 | 0 | 0 | 0 | 0.142857 | 0.506329 | 0.471519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
befcb77a1215260286d6db07785f539135585918 | 179 | py | Python | tests/test_version.py | quadio-media/acru-l-toolkit | 6702e6b8261adc57f328b0d16fb5992bd3dedde6 | [
"MIT"
] | null | null | null | tests/test_version.py | quadio-media/acru-l-toolkit | 6702e6b8261adc57f328b0d16fb5992bd3dedde6 | [
"MIT"
] | null | null | null | tests/test_version.py | quadio-media/acru-l-toolkit | 6702e6b8261adc57f328b0d16fb5992bd3dedde6 | [
"MIT"
] | 1 | 2020-12-30T19:43:49.000Z | 2020-12-30T19:43:49.000Z | import toml
from acrul_toolkit import __version__
def test_version():
version = toml.load("./pyproject.toml")["tool"]["poetry"]["version"]
assert __version__ == version
| 22.375 | 72 | 0.715084 | 21 | 179 | 5.619048 | 0.619048 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139665 | 179 | 7 | 73 | 25.571429 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0.184358 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8308e9458cd04d38209d25cb6497de9afc018892 | 363 | py | Python | selia_admin/admin/types.py | CONABIO-audio/selia-admin | 0fe3326d63de7904f86f3040cb613801737880f7 | [
"BSD-4-Clause"
] | null | null | null | selia_admin/admin/types.py | CONABIO-audio/selia-admin | 0fe3326d63de7904f86f3040cb613801737880f7 | [
"BSD-4-Clause"
] | 9 | 2020-02-06T02:10:46.000Z | 2022-01-13T01:53:53.000Z | selia_admin/admin/types.py | CONABIO-audio/selia-admin | 0fe3326d63de7904f86f3040cb613801737880f7 | [
"BSD-4-Clause"
] | null | null | null | from django.contrib import admin
class EventTypeAdmin(admin.ModelAdmin):
search_fields = ['name']
autocomplete_fields = ['should_imply']
class TermTypeAdmin(admin.ModelAdmin):
search_fields = ['name']
class AnnotationTypeAdmin(admin.ModelAdmin):
search_fields = ['name']
class ItemTypeAdmin(admin... | 19.105263 | 44 | 0.732782 | 37 | 363 | 7.027027 | 0.459459 | 0.230769 | 0.323077 | 0.415385 | 0.515385 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 363 | 18 | 45 | 20.166667 | 0.844156 | 0 | 0 | 0.4 | 0 | 0 | 0.077135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
8361b08be26b785dfcd46227a7a5699f6dde1827 | 6,102 | py | Python | cogs/utils/permission_checks.py | quiprr/gir | c6910f3f61d15d52da7b12e57d1d4f159c61689b | [
"MIT"
] | null | null | null | cogs/utils/permission_checks.py | quiprr/gir | c6910f3f61d15d52da7b12e57d1d4f159c61689b | [
"MIT"
] | null | null | null | cogs/utils/permission_checks.py | quiprr/gir | c6910f3f61d15d52da7b12e57d1d4f159c61689b | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
import cogs.utils.context as context
class PermissionsFailure(commands.BadArgument):
def __init__(self, message):
super().__init__(message)
class ModsAndAboveMember(commands.Converter):
async def convert(self, ctx: context.Context, argument):
u... | 34.089385 | 113 | 0.61783 | 728 | 6,102 | 5.09478 | 0.171703 | 0.027501 | 0.052844 | 0.064707 | 0.761661 | 0.755729 | 0.735239 | 0.707738 | 0.639256 | 0.639256 | 0 | 0.002474 | 0.271386 | 6,102 | 179 | 114 | 34.089385 | 0.831309 | 0.006391 | 0 | 0.612403 | 0 | 0 | 0.128666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.100775 | false | 0 | 0.023256 | 0 | 0.364341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
55ed58c5a3b65b6c9cf7b94806ac24c08de88575 | 148 | py | Python | czsc/Save/__init__.py | newlyedward/czsc | 7b87298a09d2f317afbd9552b001a433f8954c78 | [
"MIT"
] | null | null | null | czsc/Save/__init__.py | newlyedward/czsc | 7b87298a09d2f317afbd9552b001a433f8954c78 | [
"MIT"
] | null | null | null | czsc/Save/__init__.py | newlyedward/czsc | 7b87298a09d2f317afbd9552b001a433f8954c78 | [
"MIT"
] | null | null | null | # coding :utf-8
import pymongo
ASCENDING = pymongo.ASCENDING
DESCENDING = pymongo.DESCENDING
from czsc.Save.save_tdx import save_financial_files
| 16.444444 | 51 | 0.817568 | 20 | 148 | 5.9 | 0.65 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.121622 | 148 | 8 | 52 | 18.5 | 0.9 | 0.087838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3612960b0d1e5d2bb6e4f88fb5d5205e0b9cd75f | 71 | py | Python | search_views/search.py | inmagik/django-search-views | 315cbe8e6cac158884ced02069aa945bc7438dba | [
"MIT"
] | 31 | 2016-10-01T15:41:02.000Z | 2022-02-12T18:44:20.000Z | search_views/search.py | bianchimro/django-search-views | 315cbe8e6cac158884ced02069aa945bc7438dba | [
"MIT"
] | 8 | 2016-10-01T12:19:05.000Z | 2019-09-30T09:33:47.000Z | search_views/search.py | bianchimro/django-search-views | 315cbe8e6cac158884ced02069aa945bc7438dba | [
"MIT"
] | 6 | 2015-01-18T05:49:16.000Z | 2016-09-03T22:33:32.000Z | #this file is here for backward compat optionally
from .views import *
| 23.666667 | 49 | 0.788732 | 11 | 71 | 5.090909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 71 | 2 | 50 | 35.5 | 0.949153 | 0.676056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
361cf9d5fd819918d1d9ff0d726c0bb2ef826c81 | 1,105 | py | Python | src/arpSpoofing_test.py | Cloudxtreme/NetDefense | 2e6cd3ea1f61cb8c449d79a0cafdd807849e1d32 | [
"MIT"
] | 2 | 2019-12-04T16:13:29.000Z | 2020-03-18T10:40:40.000Z | src/arpSpoofing_test.py | Cloudxtreme/NetDefense | 2e6cd3ea1f61cb8c449d79a0cafdd807849e1d32 | [
"MIT"
] | null | null | null | src/arpSpoofing_test.py | Cloudxtreme/NetDefense | 2e6cd3ea1f61cb8c449d79a0cafdd807849e1d32 | [
"MIT"
] | 2 | 2020-07-08T11:01:52.000Z | 2021-03-14T08:54:32.000Z | #encoding: UTF-8
from arpSpoofing import ArpSpoofing
ACTIVE_MIN = 1 #Temps en que s'executa la defença de ARP Spoofing (minuts)
CHECK_PERIOD = 10 #Temps d'espera per comprobar si hi ha un atac (segons)
test = ArpSpoofing(ACTIVE_MIN, CHECK_PERIOD)
def stopThread_test():
assert(test.getState() == True)
test.stopThre... | 31.571429 | 116 | 0.685068 | 198 | 1,105 | 3.772727 | 0.308081 | 0.21419 | 0.240964 | 0.21419 | 0.455154 | 0.455154 | 0.452477 | 0.452477 | 0.452477 | 0.452477 | 0 | 0.215726 | 0.102262 | 1,105 | 34 | 117 | 32.5 | 0.537298 | 0.167421 | 0 | 0.272727 | 0 | 0 | 0.318381 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 1 | 0.136364 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
36362e42ed64d87f93fc1ff7737f6dd7c64ca8a2 | 97 | py | Python | Tutorials/01. 10 Days of Statistics/006. Day 4 - Binomial Distribution I.py | stonehengee/HackerrankPractice | ec052e7447391e40d1919cf0b641ff5023da3da3 | [
"MIT"
] | null | null | null | Tutorials/01. 10 Days of Statistics/006. Day 4 - Binomial Distribution I.py | stonehengee/HackerrankPractice | ec052e7447391e40d1919cf0b641ff5023da3da3 | [
"MIT"
] | null | null | null | Tutorials/01. 10 Days of Statistics/006. Day 4 - Binomial Distribution I.py | stonehengee/HackerrankPractice | ec052e7447391e40d1919cf0b641ff5023da3da3 | [
"MIT"
] | null | null | null | # Problem: https://www.hackerrank.com/challenges/s10-binomial-distribution-1/problem
# Score: 30
| 32.333333 | 84 | 0.783505 | 13 | 97 | 5.846154 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054945 | 0.061856 | 97 | 2 | 85 | 48.5 | 0.78022 | 0.948454 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3665f001293e8abe2d81c2e58c6d39f9757dc273 | 89 | py | Python | officialWebsite/podcast/apps.py | NUMBART/officialWebsite | 2eed541fde1fcc792f29b89a3837fe13fd0d610f | [
"MIT"
] | 34 | 2019-11-20T14:13:47.000Z | 2022-02-07T06:46:42.000Z | officialWebsite/podcast/apps.py | NUMBART/officialWebsite | 2eed541fde1fcc792f29b89a3837fe13fd0d610f | [
"MIT"
] | 399 | 2020-02-02T13:40:06.000Z | 2022-03-12T01:07:41.000Z | officialWebsite/podcast/apps.py | NUMBART/officialWebsite | 2eed541fde1fcc792f29b89a3837fe13fd0d610f | [
"MIT"
] | 95 | 2019-11-20T14:03:38.000Z | 2022-02-01T11:02:34.000Z | from django.apps import AppConfig
class PodcastConfig(AppConfig):
name = "podcast"
| 14.833333 | 33 | 0.752809 | 10 | 89 | 6.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 5 | 34 | 17.8 | 0.905405 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
366cc5e2e1246ee2a1008bf22075e292f82d8e5f | 127 | py | Python | venv/lib/python3.8/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py | liuzhongning/python_learn | 47d471e40e6c25271faab549dfa235849264c3b4 | [
"MIT"
] | 6,263 | 2017-01-20T17:41:36.000Z | 2022-02-15T20:48:57.000Z | env/Lib/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py | aammjian/cotton | f72b814f795f79a4054688e465c8b0ae5560f3b7 | [
"Apache-2.0"
] | 1,242 | 2015-01-22T14:56:46.000Z | 2022-03-31T18:02:38.000Z | env/Lib/site-packages/pip/_vendor/resolvelib/compat/collections_abc.py | aammjian/cotton | f72b814f795f79a4054688e465c8b0ae5560f3b7 | [
"Apache-2.0"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | __all__ = ["Sequence"]
try:
from collections.abc import Sequence
except ImportError:
from collections import Sequence
| 18.142857 | 40 | 0.755906 | 14 | 127 | 6.571429 | 0.642857 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181102 | 127 | 6 | 41 | 21.166667 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
36781d197098db55bc69bbe8cca410aceca2cccf | 8,742 | py | Python | atom/proton/python/proton_api/__init__.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 11 | 2019-04-16T02:11:17.000Z | 2021-12-16T22:51:40.000Z | atom/proton/python/proton_api/__init__.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 81 | 2019-11-19T23:24:28.000Z | 2022-03-28T11:35:47.000Z | atom/proton/python/proton_api/__init__.py | AbhiGupta03/SDK | f3a61aae7a847f07f0c22a154ca88dc378e9d25e | [
"Apache-2.0"
] | 11 | 2020-07-08T02:29:56.000Z | 2022-03-28T10:05:33.000Z | # coding: utf-8
# flake8: noqa
"""
Hydrogen Proton API
Financial engineering module of Hydrogen Atom # noqa: E501
OpenAPI spec version: 1.9.2
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# impor... | 69.380952 | 121 | 0.916609 | 1,007 | 8,742 | 7.620655 | 0.253227 | 0.123143 | 0.176179 | 0.215403 | 0.287334 | 0.126271 | 0 | 0 | 0 | 0 | 0 | 0.002182 | 0.056394 | 8,742 | 125 | 122 | 69.936 | 0.928113 | 0.035919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3678e7cd1a3365121a1e3909a3ba6854106bb030 | 2,701 | gyp | Python | gyp/SimpleiOSApp.gyp | Frankie-666/color-emoji.skia | f1634a9952086155b9069d49ab91f1fa43b5ec6a | [
"BSD-3-Clause"
] | 2 | 2017-05-19T08:53:12.000Z | 2017-08-28T11:59:26.000Z | gyp/SimpleiOSApp.gyp | Frankie-666/color-emoji.skia | f1634a9952086155b9069d49ab91f1fa43b5ec6a | [
"BSD-3-Clause"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | gyp/SimpleiOSApp.gyp | Frankie-666/color-emoji.skia | f1634a9952086155b9069d49ab91f1fa43b5ec6a | [
"BSD-3-Clause"
] | 2 | 2017-08-09T09:03:23.000Z | 2020-05-26T09:14:49.000Z | {
'conditions' : [
[ 'skia_os != "ios"', {
'error': '<!(set GYP_DEFINES=\"skia_os=\'ios\'\")'
}],
],
'targets': [
{
'target_name': 'SimpleiOSApp',
'type': 'executable',
'mac_bundle' : 1,
'include_dirs' : [
'../experimental/iOSSampleApp/Shared',
],
'sou... | 37.513889 | 87 | 0.621622 | 237 | 2,701 | 6.978903 | 0.35443 | 0.086457 | 0.133011 | 0.199516 | 0.387545 | 0.106409 | 0.106409 | 0.106409 | 0.106409 | 0.106409 | 0 | 0.001872 | 0.208812 | 2,701 | 71 | 88 | 38.042254 | 0.77211 | 0.044798 | 0 | 0.15625 | 0 | 0 | 0.705517 | 0.594794 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3696e68de63daf9a3f0eca3facd40c0061bac257 | 396 | py | Python | slixmpp/features/feature_rosterver/__init__.py | marconfus/slixmpp | bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa | [
"BSD-3-Clause"
] | null | null | null | slixmpp/features/feature_rosterver/__init__.py | marconfus/slixmpp | bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa | [
"BSD-3-Clause"
] | null | null | null | slixmpp/features/feature_rosterver/__init__.py | marconfus/slixmpp | bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa | [
"BSD-3-Clause"
] | null | null | null | """
Slixmpp: The Slick XMPP Library
Copyright (C) 2012 Nathanael C. Fritz
This file is part of Slixmpp.
See the file LICENSE for copying permission.
"""
from slixmpp.plugins.base import register_plugin
from slixmpp.features.feature_rosterver.rosterver import FeatureRosterVer
from slixmpp.features.fe... | 24.75 | 73 | 0.790404 | 50 | 396 | 6.18 | 0.62 | 0.106796 | 0.122977 | 0.168285 | 0.226537 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01194 | 0.15404 | 396 | 15 | 74 | 26.4 | 0.910448 | 0.368687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
36bfdb83f851957c2c6255a8b2b7f16a2eb1dde0 | 278 | py | Python | src/cache/messaging/__init__.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 4 | 2021-10-17T11:17:59.000Z | 2022-02-28T16:58:40.000Z | src/cache/messaging/__init__.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 17 | 2021-10-05T21:44:06.000Z | 2022-03-31T16:58:40.000Z | src/cache/messaging/__init__.py | moibenko/enstore | 6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9 | [
"Intel",
"Unlicense"
] | 8 | 2021-09-02T18:55:49.000Z | 2022-03-09T21:05:28.000Z | ###############################################################################
#
# $Id$
#
###############################################################################
__all__ = ["client","constants","file_list","enq_message","messages","md_client","mw_client","pe_client"]
| 34.75 | 105 | 0.284173 | 15 | 278 | 4.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035971 | 278 | 7 | 106 | 39.714286 | 0.261194 | 0.014388 | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
36cbc4f123a81cddc0f19fc0a0c9d6b3516f8f55 | 420 | py | Python | __init__.py | Amazeryogo/stunning-broccoli | fe8248a6afb2668b722ec7acddaf1b157de31be9 | [
"MIT"
] | null | null | null | __init__.py | Amazeryogo/stunning-broccoli | fe8248a6afb2668b722ec7acddaf1b157de31be9 | [
"MIT"
] | null | null | null | __init__.py | Amazeryogo/stunning-broccoli | fe8248a6afb2668b722ec7acddaf1b157de31be9 | [
"MIT"
] | null | null | null | import os
def make_user(username,password,email,aboutme):
x = input("THIS WILL CREATE A NEW USER, ARE YOU SURE?(y/n)")
if x == "y" or x == "Y":
string = 'http POST http://www.amazeryogo.in/api/users username={} password={} email={} "about_me={}"'.format(username,password,email,aboutme)
os.syste... | 30 | 150 | 0.62619 | 60 | 420 | 4.333333 | 0.683333 | 0.246154 | 0.242308 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211905 | 420 | 13 | 151 | 32.307692 | 0.785498 | 0 | 0 | 0.181818 | 0 | 0.090909 | 0.345238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.454545 | 0.090909 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
36d1c391410ea62d1e9b70b95d4f7b81347dc59f | 603 | py | Python | pricers/__init__.py | exleym/simpaq | 0f076424a953a4168e36560439db1dfd8c861fef | [
"MIT"
] | 8 | 2018-10-22T11:21:42.000Z | 2021-07-04T16:42:01.000Z | simpaq-master/pricers/__init__.py | ArvydasA/javafun | 3b0218194bb9351c568c5074746c486c53a8b6f7 | [
"MIT"
] | null | null | null | simpaq-master/pricers/__init__.py | ArvydasA/javafun | 3b0218194bb9351c568c5074746c486c53a8b6f7 | [
"MIT"
] | 2 | 2017-03-24T01:40:11.000Z | 2019-12-03T18:16:00.000Z |
class Pricer(object):
def __init__(self):
pass
def price(self, asset, underlying, greeks, save=False):
""" Header / layout for primary API to the Pricer class.
:param asset: instance of Asset class or a derivative
:param underlying: instance of Asset class or a derivative
... | 27.409091 | 66 | 0.661692 | 71 | 603 | 5.507042 | 0.549296 | 0.051151 | 0.076726 | 0.102302 | 0.194373 | 0.194373 | 0.194373 | 0.194373 | 0 | 0 | 0 | 0 | 0.26534 | 603 | 21 | 67 | 28.714286 | 0.882619 | 0.40796 | 0 | 0 | 0 | 0 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.222222 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
36deea8305772a928ff42c67890fee2ccc86c057 | 186 | py | Python | src/helpers/errors.py | henryvalbuena/mothership-v2 | 24e7afa73bdfd7f58e1845478338628b1b2a09c8 | [
"MIT"
] | null | null | null | src/helpers/errors.py | henryvalbuena/mothership-v2 | 24e7afa73bdfd7f58e1845478338628b1b2a09c8 | [
"MIT"
] | null | null | null | src/helpers/errors.py | henryvalbuena/mothership-v2 | 24e7afa73bdfd7f58e1845478338628b1b2a09c8 | [
"MIT"
] | null | null | null | """Custom errors goes here"""
class Error(Exception):
"""Base error class"""
pass
class InvalidUserInput(Error):
"""Exception raised for invalid user input"""
pass
| 13.285714 | 49 | 0.650538 | 21 | 186 | 5.761905 | 0.714286 | 0.231405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22043 | 186 | 13 | 50 | 14.307692 | 0.834483 | 0.430108 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
36e1ca0056a2ec1c41b278858bfbd04b6fd87bd2 | 125 | py | Python | Semana2/par.py | BrayanTorres2/Algoritmosyprogramaci-n-Grupo2Ciclo4- | ad64b5a3d3d129efaa297617748a74872522d7a1 | [
"MIT"
] | 4 | 2021-09-27T17:20:56.000Z | 2021-09-28T23:12:49.000Z | Semana2/par.py | BrayanTorres2/Algoritmosyprogramaci-n-Grupo2Ciclo4- | ad64b5a3d3d129efaa297617748a74872522d7a1 | [
"MIT"
] | null | null | null | Semana2/par.py | BrayanTorres2/Algoritmosyprogramaci-n-Grupo2Ciclo4- | ad64b5a3d3d129efaa297617748a74872522d7a1 | [
"MIT"
] | 1 | 2021-11-19T02:26:18.000Z | 2021-11-19T02:26:18.000Z | numero=int(input("Digite numero: "))
if(numero%2==0):
print("el numero es par")
else:
print("el numero es impar")
| 20.833333 | 36 | 0.624 | 20 | 125 | 3.9 | 0.65 | 0.179487 | 0.333333 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.192 | 125 | 5 | 37 | 25 | 0.752475 | 0 | 0 | 0 | 0 | 0 | 0.392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
36f4682424cd24cde1e6d7832f62f9c375b3bdb2 | 2,699 | py | Python | Crawler/github_osori_api.py | bees1114/Osori_level_meter | 6af9b06e91fc4935be75e8293879e2bf881beefe | [
"MIT"
] | 1 | 2017-11-04T21:27:59.000Z | 2017-11-04T21:27:59.000Z | Crawler/github_osori_api.py | bees1114/Osori_level_meter | 6af9b06e91fc4935be75e8293879e2bf881beefe | [
"MIT"
] | null | null | null | Crawler/github_osori_api.py | bees1114/Osori_level_meter | 6af9b06e91fc4935be75e8293879e2bf881beefe | [
"MIT"
] | null | null | null | import requests
import json
def get_osori_commit_counts_all():
list_osori_repo_url = 'https://api.github.com/orgs/HyOsori/repos?\
access_token=6a49e18d2cf83edf2d8717b42517fccec77d1e6f'
# GET
response = requests.get(list_osori_repo_url)
repo_infos = json.loads(response.text)
commit_counts = ... | 30.670455 | 102 | 0.623564 | 281 | 2,699 | 5.736655 | 0.202847 | 0.156328 | 0.07072 | 0.039702 | 0.797767 | 0.769231 | 0.769231 | 0.722084 | 0.633995 | 0.633995 | 0 | 0.047256 | 0.270841 | 2,699 | 87 | 103 | 31.022989 | 0.77185 | 0.07299 | 0 | 0.678571 | 0 | 0 | 0.05014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.107143 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
36fcc31f8291f2d43c816c1a33ee07438680aeb4 | 27,621 | py | Python | src/dataops/tests/test_views.py | ShizhuZhang/ontask_b | acbf05ff9b18dae0a41c67d1e41774e54a890c40 | [
"MIT"
] | null | null | null | src/dataops/tests/test_views.py | ShizhuZhang/ontask_b | acbf05ff9b18dae0a41c67d1e41774e54a890c40 | [
"MIT"
] | null | null | null | src/dataops/tests/test_views.py | ShizhuZhang/ontask_b | acbf05ff9b18dae0a41c67d1e41774e54a890c40 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import os
import time
from django.conf import settings
from django.shortcuts import reverse
from django.utils.html import escape
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
... | 37.325676 | 80 | 0.616632 | 3,377 | 27,621 | 4.762511 | 0.100977 | 0.104458 | 0.089722 | 0.151589 | 0.787229 | 0.752347 | 0.729901 | 0.712554 | 0.67817 | 0.633775 | 0 | 0.010932 | 0.268129 | 27,621 | 739 | 81 | 37.376184 | 0.784665 | 0.13211 | 0 | 0.606452 | 0 | 0.004301 | 0.175161 | 0.084172 | 0 | 0 | 0 | 0 | 0.058065 | 1 | 0.030108 | false | 0 | 0.027957 | 0 | 0.086022 | 0.002151 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7fdfacb11ca13d24468cdbe6cbc2f902dee9070e | 657 | py | Python | src/othello/stone.py | upnt/othello-python | 1b7d73006ef25b6d52f7d2b1a42e90e9d99521ee | [
"Apache-2.0"
] | null | null | null | src/othello/stone.py | upnt/othello-python | 1b7d73006ef25b6d52f7d2b1a42e90e9d99521ee | [
"Apache-2.0"
] | null | null | null | src/othello/stone.py | upnt/othello-python | 1b7d73006ef25b6d52f7d2b1a42e90e9d99521ee | [
"Apache-2.0"
] | null | null | null | from enum import Enum, auto
class Stone:
def __init__(self, color):
self.__color = color
@property
def color(self):
return self.__color
def reverse(self):
if self.__color == Color.BLACK:
self.__color = Color.WHITE
return
if self.__color == Col... | 18.771429 | 39 | 0.543379 | 75 | 657 | 4.426667 | 0.28 | 0.243976 | 0.295181 | 0.192771 | 0.463855 | 0.150602 | 0 | 0 | 0 | 0 | 0 | 0 | 0.354642 | 657 | 34 | 40 | 19.323529 | 0.775943 | 0 | 0 | 0.32 | 0 | 0 | 0.004566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.04 | 0.08 | 0.68 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7feecf1607edb440c280da99f884666d58d662cf | 226 | py | Python | tournaments/forms.py | JonnyFunFun/pyParty | 972690881c88d27139b076d2acb50b69275759b8 | [
"MIT"
] | 1 | 2017-03-23T18:07:33.000Z | 2017-03-23T18:07:33.000Z | tournaments/forms.py | JonnyFunFun/pyParty | 972690881c88d27139b076d2acb50b69275759b8 | [
"MIT"
] | null | null | null | tournaments/forms.py | JonnyFunFun/pyParty | 972690881c88d27139b076d2acb50b69275759b8 | [
"MIT"
] | null | null | null | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Submit, Field
from crispy_forms.bootstrap import FormActions, TabHolder, Tab
from admin.settings import get_setting
| 28.25 | 62 | 0.849558 | 32 | 226 | 5.875 | 0.5625 | 0.159574 | 0.239362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115044 | 226 | 7 | 63 | 32.285714 | 0.94 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3d225c37053121a964037f87b164258f226d70e6 | 234 | py | Python | encryption/lib/ope_encrypt_String.py | dongy6/type-inference | 90d002a1e2d0a3d160ab204084da9d5be5fdd971 | [
"Apache-2.0"
] | 1 | 2019-12-07T16:13:03.000Z | 2019-12-07T16:13:03.000Z | encryption/lib/ope_encrypt_String.py | dongy6/type-inference | 90d002a1e2d0a3d160ab204084da9d5be5fdd971 | [
"Apache-2.0"
] | null | null | null | encryption/lib/ope_encrypt_String.py | dongy6/type-inference | 90d002a1e2d0a3d160ab204084da9d5be5fdd971 | [
"Apache-2.0"
] | null | null | null | import sys
from pyope.ope import OPE, ValueRange
cipher = OPE(b'key goes here' * 2, in_range=ValueRange(-2**31, 2**31-1), out_range=ValueRange(-2**53, 2**53-1))
input = list(sys.argv[1])
for c in input:
print cipher.encrypt(ord(c))
| 29.25 | 111 | 0.696581 | 45 | 234 | 3.577778 | 0.577778 | 0.186335 | 0.198758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078049 | 0.123932 | 234 | 7 | 112 | 33.428571 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.055794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3d348fdac33a12fa640bce45eff3efaa9194f380 | 184 | py | Python | fisswrapper/fisswrapper.py | cbirger/firecloud-ws-stats | 03963a2eadcb26940ee542339cb10ae12c002bde | [
"MIT"
] | null | null | null | fisswrapper/fisswrapper.py | cbirger/firecloud-ws-stats | 03963a2eadcb26940ee542339cb10ae12c002bde | [
"MIT"
] | null | null | null | fisswrapper/fisswrapper.py | cbirger/firecloud-ws-stats | 03963a2eadcb26940ee542339cb10ae12c002bde | [
"MIT"
] | null | null | null | from firecloud import fiss
def list_workspaces(project=project):
class MyInputParams(object):
project=project
args=MyInputParams()
return (fiss.space_list(args))
| 20.444444 | 37 | 0.728261 | 21 | 184 | 6.285714 | 0.666667 | 0.212121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184783 | 184 | 8 | 38 | 23 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
3d4bce0bffa9c1a6439b639ba0d48bcff5157858 | 446 | py | Python | servicer/image_servicer/image_servicer.py | kkd1510/python_grpc_base | ceef5bcf6c6428437a07cba115c7df1c38a21526 | [
"MIT"
] | null | null | null | servicer/image_servicer/image_servicer.py | kkd1510/python_grpc_base | ceef5bcf6c6428437a07cba115c7df1c38a21526 | [
"MIT"
] | null | null | null | servicer/image_servicer/image_servicer.py | kkd1510/python_grpc_base | ceef5bcf6c6428437a07cba115c7df1c38a21526 | [
"MIT"
] | null | null | null | import logging
import api.space_telescope_pb2
import api.space_telescope_pb2_grpc
from servicer.image_servicer.search import ImageSearch
from google.protobuf import json_format
logger = logging.getLogger(__name__)
class ImageServicer(api.space_telescope_pb2_grpc.ImageServicer):
def GetImageInformation(self, r... | 26.235294 | 64 | 0.807175 | 55 | 446 | 6.254545 | 0.527273 | 0.093023 | 0.197674 | 0.232558 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.121076 | 446 | 16 | 65 | 27.875 | 0.867347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.5 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e9f35d7bf3b34d604ee409832b159bbb01f1a9d1 | 104,869 | py | Python | backend/api_ien.py | tec-csf/tc3041-t1-primavera-2020-equipo7 | 2d7f82b5df072ccc556a467fede668335ee6973a | [
"Apache-2.0"
] | null | null | null | backend/api_ien.py | tec-csf/tc3041-t1-primavera-2020-equipo7 | 2d7f82b5df072ccc556a467fede668335ee6973a | [
"Apache-2.0"
] | null | null | null | backend/api_ien.py | tec-csf/tc3041-t1-primavera-2020-equipo7 | 2d7f82b5df072ccc556a467fede668335ee6973a | [
"Apache-2.0"
] | null | null | null | #API using flask and a db2 connection
"""
Equipo 7:
Roberto Gervacio
Alejandra Nissan
Isaac Harari
Yann Le Lorier
"""
from flask import Flask, jsonify, redirect, request, url_for, make_response #request handler, getting url in a function
from flask_db2 import DB2
import locale, time
from flask_cors import CORS #pip3 in... | 60.547921 | 929 | 0.422575 | 8,620 | 104,869 | 4.841995 | 0.032831 | 0.024294 | 0.02336 | 0.030572 | 0.786621 | 0.750683 | 0.725119 | 0.700129 | 0.672529 | 0.655302 | 0 | 0.01547 | 0.47484 | 104,869 | 1,731 | 930 | 60.5829 | 0.742396 | 0.015085 | 0 | 0.565649 | 0 | 0.032647 | 0.228302 | 0.054712 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020582 | false | 0.00071 | 0.003549 | 0 | 0.066004 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1823eb67bdc2bddedc66af9552227161f0b35eee | 247 | py | Python | src/trates/__init__.py | Kobie-Kirven/TTSIM | afdf06888ae1af7a176848c1ffdf169471076082 | [
"MIT"
] | 1 | 2021-03-25T21:51:36.000Z | 2021-03-25T21:51:36.000Z | src/trates/__init__.py | Kobie-Kirven/trates | afdf06888ae1af7a176848c1ffdf169471076082 | [
"MIT"
] | null | null | null | src/trates/__init__.py | Kobie-Kirven/trates | afdf06888ae1af7a176848c1ffdf169471076082 | [
"MIT"
] | null | null | null | from .seqSlice import Slicer
from .structureBuilder import Structure
from .vmd_prep import PrepPSF, EditStructure, createConfigFile
from .rmsd import RMSD
from .smooth import Smooth
from .nativeContacts import NativeContacts
from .plot import Plot | 35.285714 | 62 | 0.846154 | 31 | 247 | 6.709677 | 0.483871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117409 | 247 | 7 | 63 | 35.285714 | 0.954128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
18414a642e840ab8218a8ba9443432018dca04e1 | 13,899 | py | Python | clifford/tools/g3c/model_matching.py | rotu/clifford | 7a0a0e83be9e2b67da2681d66e8cb4ede912fa51 | [
"BSD-3-Clause"
] | null | null | null | clifford/tools/g3c/model_matching.py | rotu/clifford | 7a0a0e83be9e2b67da2681d66e8cb4ede912fa51 | [
"BSD-3-Clause"
] | null | null | null | clifford/tools/g3c/model_matching.py | rotu/clifford | 7a0a0e83be9e2b67da2681d66e8cb4ede912fa51 | [
"BSD-3-Clause"
] | null | null | null |
from .object_clustering import assign_measurements_to_objects_matrix, compare_labels
from .rotor_estimation import estimate_rotor_objects, estimate_rotor_objects_subsample, \
sequential_object_rotor_estimation, \
estimate_rotor_objects_subsample_sequential
from .rotor_parameterisation import interpolate_TR_rot... | 48.093426 | 128 | 0.608029 | 1,738 | 13,899 | 4.563867 | 0.098389 | 0.026727 | 0.012859 | 0.015129 | 0.790721 | 0.743696 | 0.729324 | 0.722895 | 0.696546 | 0.69352 | 0 | 0.012757 | 0.328873 | 13,899 | 288 | 129 | 48.260417 | 0.837586 | 0.097921 | 0 | 0.666667 | 0 | 0 | 0.017864 | 0 | 0 | 0 | 0 | 0 | 0.023474 | 1 | 0.032864 | false | 0 | 0.046948 | 0 | 0.13615 | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
187cc0c1865ec7d6574cb073437374fce5c0ebfe | 206 | py | Python | mknotebooks/extra_args_execute_preprocessor.py | lgeiger/mknotebooks | 2a177167b231a8373a7305d4fc86c9f0034c3ba8 | [
"MIT"
] | 105 | 2018-10-30T15:55:12.000Z | 2022-03-31T07:50:30.000Z | mknotebooks/extra_args_execute_preprocessor.py | lgeiger/mknotebooks | 2a177167b231a8373a7305d4fc86c9f0034c3ba8 | [
"MIT"
] | 659 | 2020-09-15T10:30:10.000Z | 2022-03-31T17:38:48.000Z | mknotebooks/extra_args_execute_preprocessor.py | lgeiger/mknotebooks | 2a177167b231a8373a7305d4fc86c9f0034c3ba8 | [
"MIT"
] | 20 | 2019-03-26T18:12:50.000Z | 2021-12-15T22:29:13.000Z | from nbconvert.preprocessors import ExecutePreprocessor
from traitlets import List, Unicode
class ExtraArgsExecutePreprocessor(ExecutePreprocessor):
extra_arguments = List(Unicode()).tag(config=True)
| 29.428571 | 56 | 0.834951 | 20 | 206 | 8.55 | 0.75 | 0.128655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097087 | 206 | 6 | 57 | 34.333333 | 0.919355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
43ee4e18c5c692c105a2d5e5517703c451b585ec | 127 | py | Python | C_Tut/contact/urls.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | C_Tut/contact/urls.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | C_Tut/contact/urls.py | jaydeep11/C-tutorial-web-application | 3ec0225efda834fe93a678d887044906124de59b | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name='contact'
urlpatterns=[
path('',views.contact,name='contact'),
] | 18.142857 | 42 | 0.724409 | 17 | 127 | 5.352941 | 0.588235 | 0.241758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125984 | 127 | 7 | 43 | 18.142857 | 0.81982 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a1014904cadf6ccdc196457c2c7ab52e13ff7ccd | 55 | py | Python | test_func.py | DrewRust/lambdata-drewrust | 7543b8a0a3937091646c43ee3648b2cec3669222 | [
"MIT"
] | null | null | null | test_func.py | DrewRust/lambdata-drewrust | 7543b8a0a3937091646c43ee3648b2cec3669222 | [
"MIT"
] | null | null | null | test_func.py | DrewRust/lambdata-drewrust | 7543b8a0a3937091646c43ee3648b2cec3669222 | [
"MIT"
] | null | null | null | from ds_util import enlarge
y = 5
print(y, enlarge(y)) | 13.75 | 27 | 0.727273 | 11 | 55 | 3.545455 | 0.727273 | 0.410256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.163636 | 55 | 4 | 28 | 13.75 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a10aee7ff4388768aad60f84fb16e44d55540a4a | 169 | py | Python | lib/stats.py | mtfuller/CS4242-project | a77f03b8786c2e7d2913ff15b75e09364195b314 | [
"MIT"
] | null | null | null | lib/stats.py | mtfuller/CS4242-project | a77f03b8786c2e7d2913ff15b75e09364195b314 | [
"MIT"
] | null | null | null | lib/stats.py | mtfuller/CS4242-project | a77f03b8786c2e7d2913ff15b75e09364195b314 | [
"MIT"
] | null | null | null | import numpy as np
def calculate_stats(dataset):
return (
np.mean(dataset),
np.std(dataset),
np.min(dataset),
np.max(dataset)
)
| 16.9 | 29 | 0.56213 | 21 | 169 | 4.47619 | 0.619048 | 0.287234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.319527 | 169 | 9 | 30 | 18.777778 | 0.817391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 0 | 1 | 0 | 0 | null | 1 | 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 | 1 | 0 | 0 | 0 | 4 |
a1536825fc17c0c6e6a27a117f25bf137018b909 | 274 | py | Python | operations_api/exceptions.py | Mirantis/python-operations-api | 65cc9bfe04037f2b70d272a33d9729219ecdc116 | [
"Apache-2.0"
] | null | null | null | operations_api/exceptions.py | Mirantis/python-operations-api | 65cc9bfe04037f2b70d272a33d9729219ecdc116 | [
"Apache-2.0"
] | null | null | null | operations_api/exceptions.py | Mirantis/python-operations-api | 65cc9bfe04037f2b70d272a33d9729219ecdc116 | [
"Apache-2.0"
] | 1 | 2018-10-04T16:46:25.000Z | 2018-10-04T16:46:25.000Z | class ImproperlyConfigured(Exception):
""" Raised in the event ``operations-api`` has not been properly configured
"""
pass
class HTTPError(Exception):
""" Raised in the event ``operations-api`` was not able to get data from remote server
"""
pass
| 24.909091 | 90 | 0.678832 | 34 | 274 | 5.470588 | 0.705882 | 0.16129 | 0.182796 | 0.215054 | 0.408602 | 0.408602 | 0.408602 | 0 | 0 | 0 | 0 | 0 | 0.218978 | 274 | 10 | 91 | 27.4 | 0.869159 | 0.580292 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a158a279a173e44b42baaf8fc97d4c1e34724db5 | 4,540 | py | Python | gwlfe/Output/AvAnimalNSum/AnimalN.py | mudkipmaster/gwlf-e | 9e058445537dd32d1916f76c4b73ca64261771cd | [
"Apache-2.0"
] | null | null | null | gwlfe/Output/AvAnimalNSum/AnimalN.py | mudkipmaster/gwlf-e | 9e058445537dd32d1916f76c4b73ca64261771cd | [
"Apache-2.0"
] | 6 | 2018-07-24T22:46:28.000Z | 2018-07-29T19:13:09.000Z | gwlfe/Output/AvAnimalNSum/AnimalN.py | mudkipmaster/gwlf-e | 9e058445537dd32d1916f76c4b73ca64261771cd | [
"Apache-2.0"
] | 1 | 2018-07-24T18:22:01.000Z | 2018-07-24T18:22:01.000Z | from numpy import repeat
from numpy import reshape
from numpy import zeros
from gwlfe.AFOS.GrazingAnimals.Losses.GRLossN import GRLossN
from gwlfe.AFOS.GrazingAnimals.Losses.GRLossN import GRLossN_f
from gwlfe.AFOS.GrazingAnimals.Losses.GRLostBarnN import GRLostBarnN
from gwlfe.AFOS.GrazingAnimals.Losses.GRLostBarnN i... | 66.764706 | 120 | 0.700881 | 458 | 4,540 | 6.748908 | 0.141921 | 0.06341 | 0.108703 | 0.158525 | 0.881915 | 0.861857 | 0.851828 | 0.808476 | 0.489809 | 0.489809 | 0 | 0.006005 | 0.229736 | 4,540 | 67 | 121 | 67.761194 | 0.877895 | 0 | 0 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.258065 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a1a54133900a8abc30ecdffed4ba6706381c08fc | 75 | py | Python | main.py | s-gabor/star-wars | e54405b2fb1b253a1b796f87b5b7b607cbdd89d1 | [
"MIT"
] | null | null | null | main.py | s-gabor/star-wars | e54405b2fb1b253a1b796f87b5b7b607cbdd89d1 | [
"MIT"
] | null | null | null | main.py | s-gabor/star-wars | e54405b2fb1b253a1b796f87b5b7b607cbdd89d1 | [
"MIT"
] | null | null | null | import swapi
luke = swapi.get_person(1)
print(luke.name, type(luke.name))
| 15 | 33 | 0.746667 | 13 | 75 | 4.230769 | 0.692308 | 0.290909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.106667 | 75 | 4 | 34 | 18.75 | 0.80597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a1a81b56a8eedd60a256e419de3a6363aacd9f18 | 75 | py | Python | transfer_learning/__init__.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 27 | 2019-10-31T15:16:13.000Z | 2022-03-29T03:56:57.000Z | transfer_learning/__init__.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 4 | 2020-03-25T14:18:04.000Z | 2022-02-10T00:34:58.000Z | transfer_learning/__init__.py | YifanQie/Deep_Learning_for_Manufacturing | 9ba19e41f69c561b04b8573ab9c52c0969f45bfd | [
"MIT"
] | 7 | 2020-02-23T22:12:37.000Z | 2021-12-08T20:14:41.000Z | """
A Libraray to initilize the avaiable modules and data structures
"""
| 12.5 | 64 | 0.733333 | 10 | 75 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186667 | 75 | 5 | 65 | 15 | 0.901639 | 0.853333 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a1ac6003d596821c2afa24b925ff530735092711 | 130 | py | Python | src/router.py | seven48/hubot-mongo-bridge | 5e8dcaf22c120cc03a6cf9bc150adf3153434775 | [
"Apache-2.0"
] | null | null | null | src/router.py | seven48/hubot-mongo-bridge | 5e8dcaf22c120cc03a6cf9bc150adf3153434775 | [
"Apache-2.0"
] | 8 | 2019-07-01T15:17:09.000Z | 2019-07-04T08:13:04.000Z | src/router.py | seven48/hubot-mongo-bridge | 5e8dcaf22c120cc03a6cf9bc150adf3153434775 | [
"Apache-2.0"
] | 1 | 2019-08-26T18:49:00.000Z | 2019-08-26T18:49:00.000Z | """ Module for routing """
from aiohttp import web
from src.views import get_locale
ROUTER = [web.get('/locale', get_locale), ]
| 18.571429 | 43 | 0.707692 | 19 | 130 | 4.736842 | 0.631579 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 130 | 6 | 44 | 21.666667 | 0.818182 | 0.138462 | 0 | 0 | 0 | 0 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a1ae22f1402fb69031314f96842f954c646ecc1a | 932 | py | Python | omcp/diagnoses/models.py | shutogeorgio/omcp-service | 4d4c2943d3393c77019a780a0caa1457e14b7d8d | [
"MIT"
] | null | null | null | omcp/diagnoses/models.py | shutogeorgio/omcp-service | 4d4c2943d3393c77019a780a0caa1457e14b7d8d | [
"MIT"
] | 8 | 2020-12-04T16:22:41.000Z | 2020-12-09T12:29:39.000Z | omcp/diagnoses/models.py | shutogeorgio/omcp-service | 4d4c2943d3393c77019a780a0caa1457e14b7d8d | [
"MIT"
] | null | null | null | from django.db import models
from .register_status import RegisterStatus
from .diagnosis_type import DiagnosisType
from users.doctor import Doctor
from users.patient import Patient
class Diagnosis(models.Model):
doctor = models.ForeignKey(Doctor, on_delete=models.CASCADE)
patient = models.ForeignKey(Patient,... | 46.6 | 103 | 0.770386 | 119 | 932 | 5.92437 | 0.403361 | 0.12766 | 0.153191 | 0.204255 | 0.187234 | 0.187234 | 0 | 0 | 0 | 0 | 0 | 0.018226 | 0.116953 | 932 | 19 | 104 | 49.052632 | 0.838396 | 0 | 0 | 0 | 0 | 0 | 0.032189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.3125 | 0 | 1 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
a1b46e78d42327eab52cca338140e1c29891ebae | 403 | py | Python | elements/helpers.py | philsupertramp/wik | 0650ae181926a5ccad8af70b8ae9a572a423e6f6 | [
"MIT"
] | null | null | null | elements/helpers.py | philsupertramp/wik | 0650ae181926a5ccad8af70b8ae9a572a423e6f6 | [
"MIT"
] | 19 | 2021-02-09T18:01:05.000Z | 2021-08-25T04:50:44.000Z | elements/helpers.py | philsupertramp/wiki | b30ee58d63e55588ced06af4f6588c8dd6baba7e | [
"MIT"
] | null | null | null | from django.contrib.auth.models import Group
from django.shortcuts import render
from elements.models import Tag
def render_with_tags(request, template, context):
context.update({'tags': Tag.objects.all()})
return render(request, template, context=context)
def is_mod_user(user) -> bool:
mod_group = Gro... | 26.866667 | 59 | 0.751861 | 59 | 403 | 5 | 0.559322 | 0.067797 | 0.149153 | 0.19661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002865 | 0.133995 | 403 | 14 | 60 | 28.785714 | 0.842407 | 0 | 0 | 0 | 0 | 0 | 0.019851 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a1cc356e824f61c68561ffb09ed2563925b9cfbb | 43 | py | Python | swapcase.py | RahulSinghazm/Python_Programs | 98a7b78a1c274d006a9fa98fe0e8e8656a6d5892 | [
"bzip2-1.0.6"
] | 1 | 2018-10-21T08:11:52.000Z | 2018-10-21T08:11:52.000Z | swapcase.py | RahulSinghazm/Python_Programs | 98a7b78a1c274d006a9fa98fe0e8e8656a6d5892 | [
"bzip2-1.0.6"
] | null | null | null | swapcase.py | RahulSinghazm/Python_Programs | 98a7b78a1c274d006a9fa98fe0e8e8656a6d5892 | [
"bzip2-1.0.6"
] | null | null | null | mystr='Hell World'
print(mystr.swapcase())
| 14.333333 | 23 | 0.744186 | 6 | 43 | 5.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 43 | 2 | 24 | 21.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
b80c3ecf598d72a6b607171267843920f546e175 | 245 | py | Python | vdl/core/file_parser.py | christianwaldmann/vdl | 4d10fba7223cc4356e20cc4e6db62db6d56a22df | [
"MIT"
] | null | null | null | vdl/core/file_parser.py | christianwaldmann/vdl | 4d10fba7223cc4356e20cc4e6db62db6d56a22df | [
"MIT"
] | null | null | null | vdl/core/file_parser.py | christianwaldmann/vdl | 4d10fba7223cc4356e20cc4e6db62db6d56a22df | [
"MIT"
] | null | null | null | class FileParser:
def __init__(self, filepath):
self.filepath = filepath
def GetNonEmptyLinesAsList(self):
with open(self.filepath, "r") as f:
return [line for line in f.readlines() if line and line != "\n"]
| 30.625 | 76 | 0.628571 | 31 | 245 | 4.83871 | 0.645161 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261224 | 245 | 7 | 77 | 35 | 0.828729 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.