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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5aea8436ae897e1ab23449a77aaea3e89936e911 | 200 | py | Python | egs/vwm/tts1/loadXvector.py | mapledxf/espnet | 585bbe243157d7d088aa44045ad84251e84746b8 | [
"Apache-2.0"
] | null | null | null | egs/vwm/tts1/loadXvector.py | mapledxf/espnet | 585bbe243157d7d088aa44045ad84251e84746b8 | [
"Apache-2.0"
] | null | null | null | egs/vwm/tts1/loadXvector.py | mapledxf/espnet | 585bbe243157d7d088aa44045ad84251e84746b8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
import kaldiio
x=kaldiio.load_mat("/home/zlj/dxf/espnet/egs/vwm/tts1/decode/tts/xvectors/xvector.1.ark:4")
spemb = torch.FloatTensor(x).to(device)
print(str(x))
| 22.222222 | 91 | 0.74 | 36 | 200 | 4.083333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02139 | 0.065 | 200 | 8 | 92 | 25 | 0.764706 | 0.165 | 0 | 0 | 0 | 0.25 | 0.420732 | 0.420732 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5aeb63790fe25a1d120cd60d3f2c9be45aa5396b | 294 | py | Python | core/src/main/python/wlsdeploy/aliases/__init__.py | CarolynRountree/weblogic-deploy-tooling | 69c618d57a4f26d6a82da497419a733a9af7a2b1 | [
"MIT"
] | null | null | null | core/src/main/python/wlsdeploy/aliases/__init__.py | CarolynRountree/weblogic-deploy-tooling | 69c618d57a4f26d6a82da497419a733a9af7a2b1 | [
"MIT"
] | null | null | null | core/src/main/python/wlsdeploy/aliases/__init__.py | CarolynRountree/weblogic-deploy-tooling | 69c618d57a4f26d6a82da497419a733a9af7a2b1 | [
"MIT"
] | null | null | null | """
Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0
This package provides the WLST knowledge base used by the rest of the code to understand how to perform
their work across WebLogic versions and WLST modes.
"""
| 36.75 | 103 | 0.77551 | 47 | 294 | 4.851064 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04065 | 0.163265 | 294 | 7 | 104 | 42 | 0.886179 | 0.969388 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
5aec9f00ebbd0ebb1cdb552923aa25b29e51990b | 908 | py | Python | armulator/armv6/memory_types.py | matan1008/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 16 | 2018-01-22T14:36:49.000Z | 2021-12-17T15:39:52.000Z | armulator/armv6/memory_types.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 3 | 2019-02-19T17:51:47.000Z | 2022-03-31T20:45:21.000Z | armulator/armv6/memory_types.py | AhmedMounir/armulator | 04d24dcec6ab42326018f5e09331e5b4738d6b52 | [
"MIT"
] | 4 | 2020-06-18T23:51:03.000Z | 2022-02-09T17:43:13.000Z | from abc import ABCMeta, abstractmethod
class MemoryType(object):
__metaclass__ = ABCMeta
@abstractmethod
def __init__(self, size):
self.size = size
def __getitem__(self, (address, size)):
return self.read(address, size)
def __setitem__(self, address_size, value):
self.w... | 21.619048 | 59 | 0.645374 | 107 | 908 | 5.17757 | 0.28972 | 0.218412 | 0.162455 | 0.108303 | 0.34296 | 0.220217 | 0 | 0 | 0 | 0 | 0 | 0.002933 | 0.248899 | 908 | 41 | 60 | 22.146341 | 0.809384 | 0 | 0 | 0.392857 | 0 | 0 | 0.003304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.071429 | 0.035714 | null | null | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
850b2a003fe9664cb0700faffb9524aa87956514 | 168 | py | Python | terminusdb_client/woqldataframe/__init__.py | KarenImmanuel/terminusdb-client-python | b96212dbe5c72a0d6ffefdcc6994b2078c05b31d | [
"Apache-2.0"
] | 1 | 2020-10-05T15:41:22.000Z | 2020-10-05T15:41:22.000Z | terminusdb_client/woqldataframe/__init__.py | KarenImmanuel/terminusdb-client-python | b96212dbe5c72a0d6ffefdcc6994b2078c05b31d | [
"Apache-2.0"
] | null | null | null | terminusdb_client/woqldataframe/__init__.py | KarenImmanuel/terminusdb-client-python | b96212dbe5c72a0d6ffefdcc6994b2078c05b31d | [
"Apache-2.0"
] | null | null | null | from .woqlDataframe import ( # noqa
EmptyException,
extract_column,
extract_header,
query_to_df,
result_to_df,
type_map,
type_value_map,
)
| 16.8 | 36 | 0.678571 | 20 | 168 | 5.25 | 0.75 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255952 | 168 | 9 | 37 | 18.666667 | 0.84 | 0.02381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
851ccb6c108b7ef2fd1d12012324343de93a2b2a | 32,229 | py | Python | pycaption/scc/translator.py | vpaul-dev/pycaption-github-release-notes | d265389807f76330196093e5231d2bf5c699619d | [
"Apache-2.0"
] | 183 | 2015-01-26T00:28:48.000Z | 2022-03-29T19:51:55.000Z | pycaption/scc/translator.py | vpaul-dev/pycaption-github-release-notes | d265389807f76330196093e5231d2bf5c699619d | [
"Apache-2.0"
] | 132 | 2015-01-06T08:11:11.000Z | 2022-03-31T19:30:57.000Z | pycaption/scc/translator.py | vpaul-dev/pycaption-github-release-notes | d265389807f76330196093e5231d2bf5c699619d | [
"Apache-2.0"
] | 150 | 2015-01-16T18:03:59.000Z | 2022-03-16T01:11:10.000Z | from pycaption.scc.constants import CHARACTERS, SPECIAL_CHARS, EXTENDED_CHARS
ALL_CHARACTERS = {**CHARACTERS, **SPECIAL_CHARS, **EXTENDED_CHARS}
COMMAND_LABELS = {
"9420": "Resume Caption Loading",
"9429": "Resume Direct Captioning",
"9425": "Roll-Up Captions--2 Rows",
"9426": "Roll-Up Captions--3 Rows... | 55.759516 | 77 | 0.632195 | 4,742 | 32,229 | 4.29186 | 0.146984 | 0.106132 | 0.159198 | 0.119399 | 0.805179 | 0.725973 | 0.132665 | 0.098762 | 0 | 0 | 0 | 0.143855 | 0.218561 | 32,229 | 577 | 78 | 55.856153 | 0.664245 | 0.015731 | 0 | 0 | 0 | 0 | 0.771929 | 0.001263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001789 | false | 0 | 0.001789 | 0 | 0.005367 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8523944434de0b45fde3d8d5be804713ce2e5a01 | 942 | py | Python | python_qt_client/widgets/menu_bar.py | rhedgeco/hyper_visualizer_clientserver | 90b2e76c601c2224d362934c55e4c27a9855bb1c | [
"MIT"
] | null | null | null | python_qt_client/widgets/menu_bar.py | rhedgeco/hyper_visualizer_clientserver | 90b2e76c601c2224d362934c55e4c27a9855bb1c | [
"MIT"
] | null | null | null | python_qt_client/widgets/menu_bar.py | rhedgeco/hyper_visualizer_clientserver | 90b2e76c601c2224d362934c55e4c27a9855bb1c | [
"MIT"
] | null | null | null | from PySide2.QtCore import QCoreApplication
from PySide2.QtWidgets import QMenuBar, QMenu
def _quit():
QCoreApplication.quit()
class MenuBar(QMenuBar):
def __init__(self):
super().__init__()
file_action = self.addMenu(QMenu('File'))
file_action.menu().addAction('New Project')
... | 31.4 | 69 | 0.658174 | 104 | 942 | 5.721154 | 0.336538 | 0.201681 | 0.287395 | 0.193277 | 0.216807 | 0.164706 | 0.164706 | 0.164706 | 0 | 0 | 0 | 0.002639 | 0.195329 | 942 | 29 | 70 | 32.482759 | 0.782322 | 0 | 0 | 0.090909 | 0 | 0 | 0.07431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5192d85c5757bd66c6f1d67947de232e3a472413 | 68 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/P/proton mass energy equivalent in MeV.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/P/proton mass energy equivalent in MeV.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/P/proton mass energy equivalent in MeV.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["proton mass energy equivalent in MeV"] | 68 | 68 | 0.852941 | 9 | 68 | 6.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 68 | 1 | 68 | 68 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
51a4351845807efe2f7230d1a996564e1c9bcb5c | 190 | py | Python | mysite/polls/urls.py | Predator01/potential-adventure | d4877e44f4b7487f5b4dc858812c00883731e22d | [
"MIT"
] | null | null | null | mysite/polls/urls.py | Predator01/potential-adventure | d4877e44f4b7487f5b4dc858812c00883731e22d | [
"MIT"
] | null | null | null | mysite/polls/urls.py | Predator01/potential-adventure | d4877e44f4b7487f5b4dc858812c00883731e22d | [
"MIT"
] | null | null | null | from django.conf.urls import include, url, patterns
from polls import views
urlpatterns = [
url(r'^home/$', views.home, name='home'),
url(r'^about/$', views.about, name='about'),
]
| 23.75 | 51 | 0.663158 | 27 | 190 | 4.666667 | 0.555556 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152632 | 190 | 7 | 52 | 27.142857 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
51c48f38ed00adfa6d6c3bdda4307d2b2f665ce5 | 21,294 | py | Python | os_net_config/tests/test_cli.py | openstack/os-net-conf | c9a3764c7c27b957b2d8fb1eee3867ef0d1dfa90 | [
"Apache-2.0"
] | null | null | null | os_net_config/tests/test_cli.py | openstack/os-net-conf | c9a3764c7c27b957b2d8fb1eee3867ef0d1dfa90 | [
"Apache-2.0"
] | null | null | null | os_net_config/tests/test_cli.py | openstack/os-net-conf | c9a3764c7c27b957b2d8fb1eee3867ef0d1dfa90 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2014 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 46.903084 | 79 | 0.529774 | 2,280 | 21,294 | 4.703509 | 0.120175 | 0.067139 | 0.02984 | 0.046251 | 0.779094 | 0.721279 | 0.700019 | 0.668687 | 0.661507 | 0.639314 | 0 | 0.015128 | 0.360524 | 21,294 | 453 | 80 | 47.006623 | 0.772417 | 0.028975 | 0 | 0.572152 | 0 | 0 | 0.194811 | 0.074295 | 0 | 0 | 0 | 0 | 0.174684 | 1 | 0.081013 | false | 0.002532 | 0.03038 | 0.022785 | 0.15443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cf9a00b9d05eb565521c5cb1b87c09a0de683a4d | 103 | py | Python | Chess/main.py | jlefkoff/GridBoard | 9ceb6f99f72110dccf1b8a6ac9765df02c21049d | [
"MIT"
] | 1 | 2021-04-05T20:31:18.000Z | 2021-04-05T20:31:18.000Z | Chess/main.py | jlefkoff/GridBoard | 9ceb6f99f72110dccf1b8a6ac9765df02c21049d | [
"MIT"
] | 22 | 2021-03-19T17:04:42.000Z | 2021-04-18T04:45:57.000Z | Chess/main.py | gsalaman/GridBoard | adecb482256198e27bfedf3e0e1d0d0595357614 | [
"MIT"
] | 1 | 2021-09-15T16:01:05.000Z | 2021-09-15T16:01:05.000Z | import ChessFuntions
import pprint
game = ChessFuntions.Chessgame()
game.setup()
game.wereToMove(2, 1) | 17.166667 | 32 | 0.796117 | 13 | 103 | 6.307692 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.097087 | 103 | 6 | 33 | 17.166667 | 0.860215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
cfa5de8c17b9f1a8b4ee12fdc20dc7bbfdb56dcb | 205 | py | Python | Exercicios/PythonExercicios/ex041 - 050/ex047.py | sggrilo/Curso-em-Video-Python | a0e6f3d80d89eb8709345a38e207d81a77891192 | [
"MIT"
] | null | null | null | Exercicios/PythonExercicios/ex041 - 050/ex047.py | sggrilo/Curso-em-Video-Python | a0e6f3d80d89eb8709345a38e207d81a77891192 | [
"MIT"
] | null | null | null | Exercicios/PythonExercicios/ex041 - 050/ex047.py | sggrilo/Curso-em-Video-Python | a0e6f3d80d89eb8709345a38e207d81a77891192 | [
"MIT"
] | null | null | null | # CONTAGEM DE PARES — Crie um programa que mostre na tela todos os números pares entre 1 e 50.
from time import sleep
print('NÚMEROS PARES ENTRE 2 E 50\n')
sleep(1)
for i in range(2, 51, 2):
print(i)
| 25.625 | 94 | 0.707317 | 42 | 205 | 3.47619 | 0.714286 | 0.164384 | 0.232877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067901 | 0.209756 | 205 | 7 | 95 | 29.285714 | 0.82716 | 0.44878 | 0 | 0 | 0 | 0 | 0.252252 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
cfae1989f17754522a659ed36b2b1a3215f9346a | 173 | py | Python | wiki/forms.py | Jeromeschmidt/makewiki_v2 | 97ed1a8e24240bc078de2dd561fd8fa69c88aac5 | [
"MIT"
] | null | null | null | wiki/forms.py | Jeromeschmidt/makewiki_v2 | 97ed1a8e24240bc078de2dd561fd8fa69c88aac5 | [
"MIT"
] | 1 | 2019-12-13T21:51:31.000Z | 2019-12-13T21:51:31.000Z | wiki/forms.py | Jeromeschmidt/makewiki_v2 | 97ed1a8e24240bc078de2dd561fd8fa69c88aac5 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from wiki.models import Page
class PageForm(ModelForm):
""" Render and process a form based on the Page model. """
model = Page
| 21.625 | 62 | 0.722543 | 25 | 173 | 5 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202312 | 173 | 7 | 63 | 24.714286 | 0.905797 | 0.289017 | 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 | 0 | 0 | 0 | 3 |
cfb7ef565c88636638e809c70f721953f375acbd | 789 | py | Python | personal_context_builder/test/test_API_models.py | InternetOfUs/personal-context-builder | 89e7388d622bc0efbf708542566fdcdca667a4e5 | [
"Apache-2.0"
] | null | null | null | personal_context_builder/test/test_API_models.py | InternetOfUs/personal-context-builder | 89e7388d622bc0efbf708542566fdcdca667a4e5 | [
"Apache-2.0"
] | null | null | null | personal_context_builder/test/test_API_models.py | InternetOfUs/personal-context-builder | 89e7388d622bc0efbf708542566fdcdca667a4e5 | [
"Apache-2.0"
] | null | null | null | """ Test for the API that handle models
Copyright (c) 2021 Idiap Research Institute, https://www.idiap.ch/
Written by William Droz <william.droz@idiap.ch>,
"""
import unittest
from fastapi.testclient import TestClient # type: ignore
from personal_context_builder import config
from personal_context_builder.wenet_fas... | 31.56 | 81 | 0.740177 | 102 | 789 | 5.54902 | 0.529412 | 0.053004 | 0.067138 | 0.091873 | 0.268551 | 0.268551 | 0.268551 | 0.268551 | 0.268551 | 0.268551 | 0 | 0.006006 | 0.155894 | 789 | 24 | 82 | 32.875 | 0.843844 | 0.210393 | 0 | 0.153846 | 0 | 0 | 0.055285 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
cfe7d6e54618123c3d7cd104a5c15da03bf46caa | 115 | py | Python | Ejercicios/Filtro.py | dannieldev/Fundamentos-de-Python | 63bf92c7256b373b631cae3ae9a80a3a5071f61d | [
"MIT"
] | null | null | null | Ejercicios/Filtro.py | dannieldev/Fundamentos-de-Python | 63bf92c7256b373b631cae3ae9a80a3a5071f61d | [
"MIT"
] | null | null | null | Ejercicios/Filtro.py | dannieldev/Fundamentos-de-Python | 63bf92c7256b373b631cae3ae9a80a3a5071f61d | [
"MIT"
] | null | null | null | def filtro(elem):
return(elem > 0)
l = [1,-3,2,-7,-8,-9,10]
lr = filter(filtro,l)
print(l)
print(lr)
| 12.777778 | 25 | 0.530435 | 22 | 115 | 2.772727 | 0.727273 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102273 | 0.234783 | 115 | 8 | 26 | 14.375 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.166667 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
cfec4f0b396ce528dd46a99beae09a13b0cc834f | 1,642 | py | Python | project_euler/problem_112/sol1.py | kadirbaytin/Python | ee3031fb9faa9a0bc393ac42b4e2da0e88117c9f | [
"MIT"
] | null | null | null | project_euler/problem_112/sol1.py | kadirbaytin/Python | ee3031fb9faa9a0bc393ac42b4e2da0e88117c9f | [
"MIT"
] | null | null | null | project_euler/problem_112/sol1.py | kadirbaytin/Python | ee3031fb9faa9a0bc393ac42b4e2da0e88117c9f | [
"MIT"
] | null | null | null | """
Problem:
Working from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number; for example, 134468.
Similarly if no digit is exceeded by the digit to its right it is called a decreasing number; for example, 66420.
We shall call a positive integer that is neither increasing... | 33.510204 | 227 | 0.704629 | 274 | 1,642 | 4.164234 | 0.430657 | 0.039439 | 0.042068 | 0.055215 | 0.26468 | 0.26468 | 0.236635 | 0.236635 | 0.236635 | 0.236635 | 0 | 0.034928 | 0.197929 | 1,642 | 48 | 228 | 34.208333 | 0.831435 | 0.535323 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.041667 | 0.166667 | 0.541667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cffa6a5c5e19e381a7a72ccae740e3a742d4c310 | 9,294 | py | Python | mcenter_client/parallelm/mcenter_client/client.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 7 | 2019-04-08T02:31:55.000Z | 2021-11-15T14:40:49.000Z | mcenter_client/parallelm/mcenter_client/client.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 31 | 2019-02-22T22:23:26.000Z | 2021-08-02T17:17:06.000Z | mcenter_client/parallelm/mcenter_client/client.py | lisapm/mlpiper | 74ad5ae343d364682cc2f8aaa007f2e8a1d84929 | [
"Apache-2.0"
] | 8 | 2019-03-15T23:46:08.000Z | 2020-02-06T09:16:02.000Z | #! /usr/bin/python3
from __future__ import print_function
import time
import collections
import copy
import sys
import traceback
from . import rest_api
from .rest_api.rest import ApiException
class _REST(object):
def __init__(self, client):
self._client = client
self.token = None
self.a... | 26.554286 | 78 | 0.603508 | 1,148 | 9,294 | 4.498258 | 0.13676 | 0.071263 | 0.046088 | 0.045314 | 0.295314 | 0.187258 | 0.147173 | 0.126259 | 0.048412 | 0.030984 | 0 | 0.002116 | 0.288143 | 9,294 | 349 | 79 | 26.630372 | 0.778416 | 0.001937 | 0 | 0.208835 | 0 | 0 | 0.029326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236948 | false | 0 | 0.032129 | 0.124498 | 0.570281 | 0.004016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
321eb7821d562d98472d9d681fe60d521803a832 | 218 | py | Python | poly2.py | peter-koufalis/quadratic_equation_solver | a2709ee83ff11e13f7b833072d1dd445c4c349a4 | [
"MIT"
] | null | null | null | poly2.py | peter-koufalis/quadratic_equation_solver | a2709ee83ff11e13f7b833072d1dd445c4c349a4 | [
"MIT"
] | null | null | null | poly2.py | peter-koufalis/quadratic_equation_solver | a2709ee83ff11e13f7b833072d1dd445c4c349a4 | [
"MIT"
] | null | null | null | import math
def poly2(a,b,c):
''' solves quadratic equations of the
form ax^2 + bx + c = 0 '''
x1 = (-b + math.sqrt(b**2 - 4*a*c))/(2*a)
x2 = (-b - math.sqrt(b**2 - 4*a*c))/(2*a)
return x1, x2
| 24.222222 | 45 | 0.490826 | 43 | 218 | 2.488372 | 0.511628 | 0.093458 | 0.168224 | 0.186916 | 0.299065 | 0.299065 | 0.299065 | 0.299065 | 0.299065 | 0.299065 | 0 | 0.082803 | 0.279817 | 218 | 8 | 46 | 27.25 | 0.598726 | 0.256881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
5c4ee5d816a7fbff003f09458eec5faf7a10335b | 252 | py | Python | clubhub/main/templatetags/add_class.py | geosir/clubhub | fbb00ca60fee4c6d7563966a290bddbd2715df3a | [
"MIT"
] | null | null | null | clubhub/main/templatetags/add_class.py | geosir/clubhub | fbb00ca60fee4c6d7563966a290bddbd2715df3a | [
"MIT"
] | 1 | 2021-06-08T19:01:53.000Z | 2021-06-08T19:01:53.000Z | clubhub/main/templatetags/add_class.py | geosir/clubhub | fbb00ca60fee4c6d7563966a290bddbd2715df3a | [
"MIT"
] | 2 | 2015-11-22T20:11:11.000Z | 2019-08-13T16:09:05.000Z | # add_class - A template tag to add the given classes to a DOM object's classes.
from django import template
register = template.Library()
@register.filter(name='add_class')
def addclass(value, arg):
return value.as_widget(attrs={'class': arg})
| 25.2 | 80 | 0.742063 | 39 | 252 | 4.717949 | 0.692308 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146825 | 252 | 9 | 81 | 28 | 0.855814 | 0.309524 | 0 | 0 | 0 | 0 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.6 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5c60aa52bee259e45c14fb196166fadb9ac69417 | 176 | py | Python | utils/wfuzzbasicauthbrute/wfuzz/framework/core/myexception.py | ismailbozkurt/kubebot | 3558ddc593c861a9805731052c1ac5e71879fdf5 | [
"MIT"
] | 171 | 2017-07-11T08:27:49.000Z | 2022-02-20T17:42:51.000Z | utils/wfuzzbasicauthbrute/wfuzz/framework/core/myexception.py | STEALTH-Z/kubebot | 3558ddc593c861a9805731052c1ac5e71879fdf5 | [
"MIT"
] | 2 | 2017-07-11T17:50:16.000Z | 2019-12-01T21:35:18.000Z | utils/wfuzzbasicauthbrute/wfuzz/framework/core/myexception.py | STEALTH-Z/kubebot | 3558ddc593c861a9805731052c1ac5e71879fdf5 | [
"MIT"
] | 36 | 2017-07-11T08:33:31.000Z | 2022-03-11T04:56:02.000Z |
class FuzzException(Exception):
FATAL, SIGCANCEL = range(2)
def __init__(self, etype, msg):
self.etype = etype
self.msg = msg
Exception.__init__(self, msg)
| 19.555556 | 37 | 0.670455 | 22 | 176 | 5 | 0.545455 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.215909 | 176 | 8 | 38 | 22 | 0.789855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
5c84fa51881a742f5e33a4860e5c17185e37a358 | 84 | py | Python | examples/optimizers/swarm/create_ffoa.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 528 | 2018-10-01T20:00:09.000Z | 2022-03-27T11:15:31.000Z | examples/optimizers/swarm/create_ffoa.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 17 | 2019-10-30T00:47:03.000Z | 2022-03-21T11:39:28.000Z | examples/optimizers/swarm/create_ffoa.py | anukaal/opytimizer | 5f1ccc0da80e6a4cabd99578fa24cf4f6466f9b9 | [
"Apache-2.0"
] | 35 | 2018-10-01T20:03:23.000Z | 2022-03-20T03:54:15.000Z | from opytimizer.optimizers.swarm import FFOA
# Creates a FFOA optimizer
o = FFOA()
| 16.8 | 44 | 0.77381 | 12 | 84 | 5.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 84 | 4 | 45 | 21 | 0.915493 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5c895c4a9b1b8ec72ae6037b6affb206ec5611cd | 54 | py | Python | minical/__init__.py | grimpy/minical | d8e72933cd77cec6d6bd30843baf23791da30394 | [
"MIT"
] | null | null | null | minical/__init__.py | grimpy/minical | d8e72933cd77cec6d6bd30843baf23791da30394 | [
"MIT"
] | null | null | null | minical/__init__.py | grimpy/minical | d8e72933cd77cec6d6bd30843baf23791da30394 | [
"MIT"
] | null | null | null | from .minical import Calendar
__all__ = ["Calendar"]
| 13.5 | 29 | 0.740741 | 6 | 54 | 6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 54 | 3 | 30 | 18 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5c92fa956e4b7999249ee8f74d185e1a4d8fca5b | 2,081 | py | Python | localutils/timetools.py | maxmouchet/rtt | a1694f0ecaf418149d7eb6076da2623d3c253a73 | [
"MIT"
] | 5 | 2018-01-12T19:31:08.000Z | 2021-04-10T03:01:56.000Z | localutils/timetools.py | maxmouchet/rtt | a1694f0ecaf418149d7eb6076da2623d3c253a73 | [
"MIT"
] | null | null | null | localutils/timetools.py | maxmouchet/rtt | a1694f0ecaf418149d7eb6076da2623d3c253a73 | [
"MIT"
] | 4 | 2018-01-12T19:31:51.000Z | 2021-04-10T03:02:06.000Z | """
timetools.py provides functions that perform conversion among these types: second since epoch, string, datetime
"""
import datetime
import pytz
from dateutil.parser import parse
epoch = datetime.datetime.utcfromtimestamp(0)
epoch = epoch.replace(tzinfo=pytz.UTC)
TIME_FORMAT = '%Y-%m-%d %H:%M:%S %z'
# TODO: take ... | 23.647727 | 111 | 0.67852 | 280 | 2,081 | 4.939286 | 0.267857 | 0.080983 | 0.065076 | 0.066522 | 0.321764 | 0.299349 | 0.253073 | 0.115691 | 0 | 0 | 0 | 0.000632 | 0.239308 | 2,081 | 88 | 112 | 23.647727 | 0.873026 | 0.551177 | 0 | 0 | 0 | 0 | 0.026178 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 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 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5c96439aa48fb5c3ac12dcd618b8c6aa38ea58ae | 2,195 | py | Python | pyorient/ogm/vertex.py | spy7/pyorient | ac2547287f9299f4eec350666da3b19797872f20 | [
"Apache-2.0"
] | 142 | 2015-01-12T06:34:59.000Z | 2022-01-19T10:34:30.000Z | data/train/python/5c96439aa48fb5c3ac12dcd618b8c6aa38ea58aevertex.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 238 | 2015-01-04T21:05:41.000Z | 2021-04-12T17:45:53.000Z | data/train/python/5c96439aa48fb5c3ac12dcd618b8c6aa38ea58aevertex.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 107 | 2015-01-03T03:33:17.000Z | 2021-12-07T16:48:48.000Z | from .element import GraphElement
from .broker import VertexBroker
class Vertex(GraphElement):
Broker = VertexBroker
# TODO
# Edge information is carried in vertexes retrieved from database,
# as OrientBinaryObject. Can likely optimise these traversals
# when we know how to parse these.
def ou... | 33.257576 | 76 | 0.630524 | 290 | 2,195 | 4.537931 | 0.268966 | 0.100304 | 0.082067 | 0.072948 | 0.427052 | 0.323708 | 0.287234 | 0.287234 | 0.141337 | 0 | 0 | 0.001265 | 0.279727 | 2,195 | 65 | 77 | 33.769231 | 0.83112 | 0.166287 | 0 | 0.186047 | 0 | 0 | 0.011732 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.209302 | false | 0 | 0.046512 | 0 | 0.55814 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5c9bf7ae45ea5dc7b45ac4b69f54534535280ab4 | 180 | py | Python | stores/api/urls.py | ryan-blunden/restful-coffee | 5b1d6ae979a3966539f9570c7af28551df9e19c8 | [
"MIT"
] | null | null | null | stores/api/urls.py | ryan-blunden/restful-coffee | 5b1d6ae979a3966539f9570c7af28551df9e19c8 | [
"MIT"
] | null | null | null | stores/api/urls.py | ryan-blunden/restful-coffee | 5b1d6ae979a3966539f9570c7af28551df9e19c8 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from stores.api.views import ClosestStoresList
urlpatterns = [
url(r'^closest/$', ClosestStoresList.as_view(), name='api-closest-stores'),
]
| 22.5 | 79 | 0.744444 | 23 | 180 | 5.782609 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 180 | 7 | 80 | 25.714286 | 0.836478 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5ca79bad02630882b6e32a8578df8b57200860e8 | 514 | py | Python | anemoi/__init__.py | davidkyle210/anemoi | e6257cd5399e059c42001d9ef5aad50b9fa72242 | [
"MIT"
] | 18 | 2017-02-22T19:54:39.000Z | 2022-03-18T17:25:25.000Z | anemoi/__init__.py | davidkyle210/anemoi | e6257cd5399e059c42001d9ef5aad50b9fa72242 | [
"MIT"
] | 7 | 2018-05-08T17:16:37.000Z | 2021-07-22T10:34:15.000Z | anemoi/__init__.py | davidkyle210/anemoi | e6257cd5399e059c42001d9ef5aad50b9fa72242 | [
"MIT"
] | 3 | 2018-11-15T19:04:26.000Z | 2021-04-03T12:13:40.000Z | from ._version import __version__
from anemoi.mast import MetMast
import anemoi
import anemoi.io.database
import anemoi.io.read_data
import anemoi.io.write_data
import anemoi.io.references
import anemoi.utils.mast_data
import anemoi.utils.gis
import anemoi.analysis.weibull
import anemoi.analysis.wind_rose
im... | 28.555556 | 34 | 0.83463 | 71 | 514 | 5.915493 | 0.295775 | 0.428571 | 0.133333 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107004 | 514 | 17 | 35 | 30.235294 | 0.915033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5cb7aa156c9ee36dc6bb604023cf47ed2603ce69 | 976 | py | Python | tests/test_module_path_finder.py | swinkels/skempy | e5a56f43569f6e51737cb4be491c8839d2811f81 | [
"MIT"
] | null | null | null | tests/test_module_path_finder.py | swinkels/skempy | e5a56f43569f6e51737cb4be491c8839d2811f81 | [
"MIT"
] | null | null | null | tests/test_module_path_finder.py | swinkels/skempy | e5a56f43569f6e51737cb4be491c8839d2811f81 | [
"MIT"
] | null | null | null | import unittest
from skempy.module_path_finder import ModulePathFinder
from utils import get_abs_path
class TestModulePathFinder(unittest.TestCase):
def test_python_file_in_non_package_directory(self):
test_file_path = get_abs_path("source_code.py", __file__)
module_path = ModulePathFinder().fi... | 39.04 | 75 | 0.742828 | 125 | 976 | 5.256 | 0.24 | 0.106545 | 0.109589 | 0.077626 | 0.794521 | 0.715373 | 0.715373 | 0.715373 | 0.665145 | 0.561644 | 0 | 0 | 0.178279 | 976 | 24 | 76 | 40.666667 | 0.819202 | 0 | 0 | 0.176471 | 0 | 0 | 0.134221 | 0.089139 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5cc12a0d866f007494d16485bcfe31d38db98d77 | 568 | py | Python | tests/test_middleware.py | TheNeonProject/trivia-game-dialogflow | 094b02080b7d99d97ba98b366879c232e77488ff | [
"MIT"
] | null | null | null | tests/test_middleware.py | TheNeonProject/trivia-game-dialogflow | 094b02080b7d99d97ba98b366879c232e77488ff | [
"MIT"
] | 2 | 2021-03-22T09:56:24.000Z | 2021-03-22T09:58:40.000Z | tests/test_middleware.py | TheNeonProject/trivia-game-dialogflow | 094b02080b7d99d97ba98b366879c232e77488ff | [
"MIT"
] | null | null | null | import os
import unittest
from middleware import is_token_valid
class MiddlewareTestCase(unittest.TestCase):
def setUp(self):
os.environ.setdefault('TOKEN', 'token')
def test_is_token_valid_empty_token(self):
is_valid = is_token_valid(None)
self.assertFalse(is_valid)
def test_i... | 22.72 | 50 | 0.71831 | 77 | 568 | 4.909091 | 0.311688 | 0.12963 | 0.222222 | 0.111111 | 0.526455 | 0.47619 | 0.365079 | 0.216931 | 0.216931 | 0 | 0 | 0 | 0.198944 | 568 | 24 | 51 | 23.666667 | 0.830769 | 0 | 0 | 0.133333 | 0 | 0 | 0.049296 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.266667 | false | 0 | 0.2 | 0 | 0.533333 | 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 | 0 | 1 | 0 | 0 | 3 |
5ce1726dadf1cb433e8b8b05632913ee6bc6d4f9 | 40 | py | Python | pyble/const/characteristic/body_sensor_location.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 14 | 2015-03-30T23:11:36.000Z | 2020-04-07T00:57:12.000Z | pyble/const/characteristic/body_sensor_location.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 3 | 2016-05-17T06:11:07.000Z | 2017-05-15T16:43:09.000Z | pyble/const/characteristic/body_sensor_location.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 11 | 2016-03-11T08:53:03.000Z | 2019-03-11T21:32:13.000Z | NAME="Body Sensor Location"
UUID=0x2A38
| 13.333333 | 27 | 0.8 | 6 | 40 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.1 | 40 | 2 | 28 | 20 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0.15 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ce829cbcbb0d5c7f2a6f36943fb2671f83dd397 | 1,080 | py | Python | src/pyasys/__init__.py | heewoonkim2020/pyasys | ee0e55bbfe1956c7f3cba4c0384b2c6e770658cb | [
"MIT"
] | null | null | null | src/pyasys/__init__.py | heewoonkim2020/pyasys | ee0e55bbfe1956c7f3cba4c0384b2c6e770658cb | [
"MIT"
] | null | null | null | src/pyasys/__init__.py | heewoonkim2020/pyasys | ee0e55bbfe1956c7f3cba4c0384b2c6e770658cb | [
"MIT"
] | null | null | null | """
The official Pyasys Python library!
Please check README.md for more information on how to set up Pyasys for your next project.
"""
class Pyasys:
def __init__(self, import_name, author):
"""
Sets up a basic project class where project data can be stored.
:param import_name: The... | 33.75 | 117 | 0.641667 | 134 | 1,080 | 5.007463 | 0.425373 | 0.101341 | 0.026826 | 0.083458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289815 | 1,080 | 32 | 118 | 33.75 | 0.874837 | 0.409259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7a315f955ed0850a79af83a07c2369310a76a68c | 1,786 | py | Python | wp/setup_posts.py | positiondev/offset | 9e6fad6824e500b5b8dc082ceeda07c203ff611d | [
"BSD-3-Clause"
] | 3 | 2017-03-19T06:50:44.000Z | 2019-08-30T22:39:42.000Z | wp/setup_posts.py | positiondev/offset | 9e6fad6824e500b5b8dc082ceeda07c203ff611d | [
"BSD-3-Clause"
] | 13 | 2016-09-14T14:46:36.000Z | 2020-03-17T19:11:23.000Z | wp/setup_posts.py | dbp/snaplet-wordpress | 9e6fad6824e500b5b8dc082ceeda07c203ff611d | [
"BSD-3-Clause"
] | 1 | 2020-02-09T13:57:58.000Z | 2020-02-09T13:57:58.000Z | from subprocess import check_output
from os import system
system ("wp post delete 1")
system("wp post create --post_title='A first post' --post_status=publish --post_date='2014-10-01 07:00:00' --post_content=\"This is the content\" --post_author=1")
system("wp post create --post_title='A second post' --post_status=pu... | 71.44 | 191 | 0.718925 | 308 | 1,786 | 4.032468 | 0.243506 | 0.109501 | 0.125604 | 0.062802 | 0.667472 | 0.667472 | 0.630435 | 0.611111 | 0.388084 | 0.288245 | 0 | 0.06801 | 0.110862 | 1,786 | 24 | 192 | 74.416667 | 0.714106 | 0 | 0 | 0 | 0 | 0.3 | 0.703807 | 0.165733 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.05 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a78d95b2f4fada455148b6b45a4174f72b124b8 | 223 | py | Python | configs/bead/cascade_mask_rcnn_r50_fpn_1x_coco_type_6.py | anley1/Swin-Transformer-Object-Detection | 0f26c7979ee2360acd359a5789cd8d52527e0d64 | [
"Apache-2.0"
] | null | null | null | configs/bead/cascade_mask_rcnn_r50_fpn_1x_coco_type_6.py | anley1/Swin-Transformer-Object-Detection | 0f26c7979ee2360acd359a5789cd8d52527e0d64 | [
"Apache-2.0"
] | null | null | null | configs/bead/cascade_mask_rcnn_r50_fpn_1x_coco_type_6.py | anley1/Swin-Transformer-Object-Detection | 0f26c7979ee2360acd359a5789cd8d52527e0d64 | [
"Apache-2.0"
] | null | null | null | _base_ = [
'./cascade_mask_rcnn_r50_fpn.py',
'../_base_/datasets/bead_cropped_type_6_mask.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
#checkpoint_config = dict(max_keep_ckpts=4)
| 27.875 | 72 | 0.717489 | 31 | 223 | 4.483871 | 0.774194 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025126 | 0.107623 | 223 | 7 | 73 | 31.857143 | 0.673367 | 0.188341 | 0 | 0 | 0 | 0 | 0.766667 | 0.766667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
7a8b72d3b6b06cc3941a79066fe5699e21e750c3 | 65,599 | py | Python | src/network_utils_test.py | omid55/dynamic_sparse_balance_theory | b9de708e9f1e9be6f1a3f7d80e60b4716858a35f | [
"MIT"
] | null | null | null | src/network_utils_test.py | omid55/dynamic_sparse_balance_theory | b9de708e9f1e9be6f1a3f7d80e60b4716858a35f | [
"MIT"
] | null | null | null | src/network_utils_test.py | omid55/dynamic_sparse_balance_theory | b9de708e9f1e9be6f1a3f7d80e60b4716858a35f | [
"MIT"
] | null | null | null | # Omid55
# Test module for network_utils.
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import networkx as nx
import pandas as pd
import numpy as np
import unittest
import datetime
import re
from parameterized import parameterized
import utils
import net... | 37.420993 | 79 | 0.433604 | 7,467 | 65,599 | 3.613098 | 0.052498 | 0.029949 | 0.024797 | 0.018681 | 0.792135 | 0.755662 | 0.700656 | 0.666185 | 0.636458 | 0.607584 | 0 | 0.08077 | 0.340752 | 65,599 | 1,752 | 80 | 37.442352 | 0.543079 | 0.194591 | 0 | 0.665447 | 0 | 0 | 0.054149 | 0.001048 | 0 | 0 | 0 | 0 | 0.060761 | 1 | 0.048316 | false | 0 | 0.008785 | 0 | 0.057833 | 0.000732 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7a93b102fecc7cc430c7f84af2f1d15c106b7af0 | 294 | py | Python | liczeniedoszesciu.py | SoGreeno/pygamethingidunno | c69953513078649949e93f0a6a4e607a26714a8b | [
"MIT"
] | null | null | null | liczeniedoszesciu.py | SoGreeno/pygamethingidunno | c69953513078649949e93f0a6a4e607a26714a8b | [
"MIT"
] | 2 | 2021-02-01T14:36:27.000Z | 2021-02-04T20:29:48.000Z | liczeniedoszesciu.py | SoGreeno/pygamethingidunno | c69953513078649949e93f0a6a4e607a26714a8b | [
"MIT"
] | 1 | 2021-02-03T09:45:12.000Z | 2021-02-03T09:45:12.000Z | import time
c = 1
print(c)
c += 1
print(c)
time.sleep(1)
c += 1
print(c)
time.sleep(1)
c += 1
print(c)
time.sleep(1)
c += 1
print(c)
time.sleep(1)
c += 1
print(c)
time.sleep(1)
print("jak by co")
time.sleep(0.5)
print("to kod jest z książki")
time.sleep(3)
print("nie kradziony")
time.sleep(2)
| 11.76 | 30 | 0.646259 | 64 | 294 | 2.96875 | 0.3125 | 0.378947 | 0.221053 | 0.252632 | 0.473684 | 0.473684 | 0.473684 | 0.473684 | 0.473684 | 0.473684 | 0 | 0.06 | 0.14966 | 294 | 24 | 31 | 12.25 | 0.7 | 0 | 0 | 0.666667 | 0 | 0 | 0.146259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0.375 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7aa961e43017d5a653742f76747efb46e18d6900 | 1,194 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/explicit_uniform_location.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/explicit_uniform_location.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/explicit_uniform_location.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''OpenGL extension ARB.explicit_uniform_location
This module customises the behaviour of the
OpenGL.raw.GL.ARB.explicit_uniform_location to provide a more
Python-friendly API
Overview (from the spec)
This extension provides a method to pre-assign uniform locations to
uniform variables in the default u... | 38.516129 | 76 | 0.803183 | 153 | 1,194 | 6.163399 | 0.522876 | 0.063627 | 0.09544 | 0.137858 | 0.138918 | 0.138918 | 0.138918 | 0.099682 | 0.099682 | 0 | 0 | 0 | 0.146566 | 1,194 | 31 | 77 | 38.516129 | 0.925417 | 0.654941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8fa6e5c913c8830456babad89eca330ecc2cc68d | 11,067 | py | Python | tests/test_gpsampler.py | tupui/batman | 559e1c4574865694e47f52bb202c560fc6252d2d | [
"BSD-3-Clause"
] | null | null | null | tests/test_gpsampler.py | tupui/batman | 559e1c4574865694e47f52bb202c560fc6252d2d | [
"BSD-3-Clause"
] | null | null | null | tests/test_gpsampler.py | tupui/batman | 559e1c4574865694e47f52bb202c560fc6252d2d | [
"BSD-3-Clause"
] | null | null | null | # coding: utf8
import os
from mock import patch
import pytest
import numpy as np
import numpy.testing as npt
from batman.space.gp_sampler import GpSampler
import sys
# a simple class with a write method
class WritableObject:
def __init__(self):
self.content = []
def write(self, string):
self.... | 37.771331 | 88 | 0.513509 | 1,735 | 11,067 | 3.155043 | 0.15562 | 0.052612 | 0.040921 | 0.056266 | 0.760504 | 0.747351 | 0.705882 | 0.691999 | 0.666788 | 0.600658 | 0 | 0.13562 | 0.315081 | 11,067 | 292 | 89 | 37.900685 | 0.586544 | 0.036505 | 0 | 0.6 | 0 | 0.004167 | 0.106083 | 0.006196 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.066667 | false | 0 | 0.029167 | 0 | 0.104167 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8fae0eb88c078445a9b76dd4e3e7e57f66f76ce0 | 7,905 | py | Python | tests/test_backend.py | seeq12/seeq-udf-ui | 96a7151abc46ad18b6faae78be27a420ddbd1a48 | [
"Apache-2.0"
] | null | null | null | tests/test_backend.py | seeq12/seeq-udf-ui | 96a7151abc46ad18b6faae78be27a420ddbd1a48 | [
"Apache-2.0"
] | 5 | 2022-03-01T00:32:22.000Z | 2022-03-23T21:14:15.000Z | tests/test_backend.py | seeq12/seeq-udf-ui | 96a7151abc46ad18b6faae78be27a420ddbd1a48 | [
"Apache-2.0"
] | null | null | null | from seeq import spy
import pytest
import time
@pytest.mark.system
class TestCreate:
def test_create_package_and_function(self, instantiate_ui_create_function_and_package):
ui = instantiate_ui_create_function_and_package('testPackage', 'testFunction')
assert 'testPackage' in ui.backend.fetch_udf_p... | 48.496933 | 112 | 0.672992 | 924 | 7,905 | 5.437229 | 0.112554 | 0.054737 | 0.04379 | 0.071656 | 0.812898 | 0.796975 | 0.726513 | 0.658041 | 0.606688 | 0.543392 | 0 | 0.002896 | 0.213789 | 7,905 | 162 | 113 | 48.796296 | 0.805471 | 0.010753 | 0 | 0.415929 | 0 | 0 | 0.171293 | 0.016886 | 0.00885 | 0 | 0 | 0 | 0.168142 | 1 | 0.079646 | false | 0 | 0.026549 | 0 | 0.132743 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8fb5c91e07bbf6a1a0664ab9dec52754ac7cb63f | 594 | py | Python | objects/enemy.py | elgrandt/ShooterInc | 0552e563d9ea81b0e0a0c4be1648412aa52c56e6 | [
"MIT"
] | null | null | null | objects/enemy.py | elgrandt/ShooterInc | 0552e563d9ea81b0e0a0c4be1648412aa52c56e6 | [
"MIT"
] | null | null | null | objects/enemy.py | elgrandt/ShooterInc | 0552e563d9ea81b0e0a0c4be1648412aa52c56e6 | [
"MIT"
] | null | null | null | import OGL
import pywavefront
from OpenGL.GL import *
class BasicEnemy(OGL.Cube):
def __init__(self,x,y,z):
OGL.Cube.__init__(self,3,8,2,x,y,z)
self.model = pywavefront.Wavefront("Handgun_obj.obj","models/")
self.model.onload = self.onload
#self.model = OGL.OBJ("Man.obj",Fse,10)
... | 31.263158 | 71 | 0.622896 | 86 | 594 | 4.174419 | 0.465116 | 0.200557 | 0.016713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028322 | 0.227273 | 594 | 19 | 72 | 31.263158 | 0.753813 | 0.217172 | 0 | 0 | 0 | 0 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8fc7a673081712ccf34ff176fc4746e3dc648e49 | 140 | py | Python | code/actions/compile.py | michaelbrockus/meson-ui- | 302d16f0ff15ac3f446dcc7c00513c600ef66832 | [
"Apache-2.0"
] | null | null | null | code/actions/compile.py | michaelbrockus/meson-ui- | 302d16f0ff15ac3f446dcc7c00513c600ef66832 | [
"Apache-2.0"
] | null | null | null | code/actions/compile.py | michaelbrockus/meson-ui- | 302d16f0ff15ac3f446dcc7c00513c600ef66832 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# file: compile.py
# author: Michael Brockus
# gmail: <michaelbrockus@gmail.com>
#
class MesonCompile:
pass
| 11.666667 | 35 | 0.692857 | 17 | 140 | 5.705882 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.171429 | 140 | 11 | 36 | 12.727273 | 0.827586 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8fd555c5e2bde985b6e4d8e4f7302c67682a4ba4 | 196 | py | Python | sample/tool/__init__.py | Jeanhwea/python-project-template | 064d67b7de6f8c8bd041f11697f51a45e4cb70f8 | [
"MIT"
] | null | null | null | sample/tool/__init__.py | Jeanhwea/python-project-template | 064d67b7de6f8c8bd041f11697f51a45e4cb70f8 | [
"MIT"
] | null | null | null | sample/tool/__init__.py | Jeanhwea/python-project-template | 064d67b7de6f8c8bd041f11697f51a45e4cb70f8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__all__ = ()
# https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
| 28 | 80 | 0.744898 | 25 | 196 | 5.52 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.071429 | 196 | 6 | 81 | 32.666667 | 0.747253 | 0.505102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8fe6298f4183a2f5c2c53bf9eead3d2569b2d5fa | 293 | py | Python | dedalus/Tag.py | xzoert/dedalus | 8df4c0812b026191e98f5d32317588c5dead256d | [
"MIT"
] | null | null | null | dedalus/Tag.py | xzoert/dedalus | 8df4c0812b026191e98f5d32317588c5dead256d | [
"MIT"
] | null | null | null | dedalus/Tag.py | xzoert/dedalus | 8df4c0812b026191e98f5d32317588c5dead256d | [
"MIT"
] | null | null | null | class Tag:
ASSIGNED=1
NOT_ASSIGNED=0
INHERITED=2
def __init__(self,name):
self.name=name.strip()
self.key=name
def __hash__(self):
return hash(self.name)
def __eq__(self, other):
return self.name == other.name
def __ne__(self, other):
return not(self == other)
| 13.318182 | 32 | 0.672355 | 44 | 293 | 4.090909 | 0.431818 | 0.177778 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.201365 | 293 | 21 | 33 | 13.952381 | 0.75641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0 | 0.230769 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8fe9c28b6f418299403fd8dfc58c5922263c41d0 | 55 | py | Python | src/testproject/sdk/internal/reporter/__init__.py | bbornhau/python-opensdk | f6f6baf202598c9d234b3314f8e44fbd10a0f427 | [
"Apache-2.0"
] | 38 | 2021-02-04T06:38:13.000Z | 2022-03-25T05:41:28.000Z | src/testproject/sdk/internal/reporter/__init__.py | bbornhau/python-opensdk | f6f6baf202598c9d234b3314f8e44fbd10a0f427 | [
"Apache-2.0"
] | 47 | 2020-07-08T05:13:03.000Z | 2021-02-01T10:17:58.000Z | src/testproject/sdk/internal/reporter/__init__.py | bbornhau/python-opensdk | f6f6baf202598c9d234b3314f8e44fbd10a0f427 | [
"Apache-2.0"
] | 17 | 2021-02-28T23:46:17.000Z | 2022-01-26T05:02:59.000Z | from .reporter import Reporter
__all__ = ["Reporter"]
| 13.75 | 30 | 0.745455 | 6 | 55 | 6.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 55 | 3 | 31 | 18.333333 | 0.787234 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8916be48645ba1a7d0bc6a63a581986df08e84ff | 696 | py | Python | src/tweet.py | fesanlu/Datos-COVID19 | 0b34c40e4aff9398fd51b4598314a26747b5972f | [
"MIT"
] | 2 | 2020-07-27T13:49:03.000Z | 2020-11-12T12:53:46.000Z | src/tweet.py | fesanlu/Datos-COVID19 | 0b34c40e4aff9398fd51b4598314a26747b5972f | [
"MIT"
] | null | null | null | src/tweet.py | fesanlu/Datos-COVID19 | 0b34c40e4aff9398fd51b4598314a26747b5972f | [
"MIT"
] | null | null | null | import sys
import tweepy
def tweeting(consumer_key, consumer_secret, my_access_token, my_access_token_secret, message):
# Authentication
my_auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
my_auth.set_access_token(my_access_token, my_access_token_secret)
my_api = tweepy.API(my_auth)
my_... | 29 | 101 | 0.727011 | 100 | 696 | 4.6 | 0.3 | 0.215217 | 0.226087 | 0.165217 | 0.465217 | 0.23913 | 0.23913 | 0.169565 | 0 | 0 | 0 | 0.010582 | 0.185345 | 696 | 23 | 102 | 30.26087 | 0.800705 | 0.020115 | 0 | 0 | 0 | 0 | 0.011765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
64edd8b663a74ae1f0b67a1158229d12c5b9be08 | 96 | py | Python | wrappers/arlexecute/calibration/__init__.py | ska-telescope/algorithm-reference-library | 1b2c8d6079249202864abf8c60cdea40f0f123cb | [
"Apache-2.0"
] | 22 | 2016-12-14T11:20:07.000Z | 2021-08-13T15:23:41.000Z | wrappers/arlexecute/calibration/__init__.py | ska-telescope/algorithm-reference-library | 1b2c8d6079249202864abf8c60cdea40f0f123cb | [
"Apache-2.0"
] | 30 | 2017-06-27T09:15:38.000Z | 2020-09-11T18:16:37.000Z | processing_components/calibration/__init__.py | SKA-ScienceDataProcessor/algorithm-reference-library | 1b2c8d6079249202864abf8c60cdea40f0f123cb | [
"Apache-2.0"
] | 20 | 2017-07-02T03:45:49.000Z | 2019-12-11T17:19:01.000Z |
__all__ = ['calibration', 'calibration_control', 'iterators', 'operations', 'pointing', 'rcal'] | 48 | 95 | 0.708333 | 8 | 96 | 7.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 96 | 2 | 95 | 48 | 0.715909 | 0 | 0 | 0 | 0 | 0 | 0.635417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f0721b372f65a131e6e0af6c8bd0b95e2215c7e | 655 | py | Python | untitled/VectorialIndex/VectorialIndex.py | Miky91/Python | 09513f1d81508d7b3a06d66511bfaf60aec1a5fe | [
"MIT"
] | null | null | null | untitled/VectorialIndex/VectorialIndex.py | Miky91/Python | 09513f1d81508d7b3a06d66511bfaf60aec1a5fe | [
"MIT"
] | null | null | null | untitled/VectorialIndex/VectorialIndex.py | Miky91/Python | 09513f1d81508d7b3a06d66511bfaf60aec1a5fe | [
"MIT"
] | null | null | null | # Insertar aqui la cabecera
import string
# Dada una linea de texto, devuelve una lista de palabras no vacias
# convirtiendo a minusculas y eliminando signos de puntuacion por los extremos
# Ejemplo:
# > extrae_palabras("Hi! What is your name? John.")
# ['hi', 'what', 'is', 'your', 'name', 'john']
def extrae_pala... | 26.2 | 78 | 0.679389 | 88 | 655 | 4.965909 | 0.670455 | 0.064073 | 0.036613 | 0.05492 | 0.091533 | 0.091533 | 0 | 0 | 0 | 0 | 0 | 0.00381 | 0.198473 | 655 | 24 | 79 | 27.291667 | 0.828571 | 0.421374 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.272727 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8f2a322e5eaac2fef136da97729d3f4c09787a46 | 166 | py | Python | specs/steps/calculator_with_regexes.py | hltbra/pycukes | 7eca6d9bf6577f6bc735a3893a3b1d7c0af950f1 | [
"MIT"
] | 1 | 2018-05-22T07:10:39.000Z | 2018-05-22T07:10:39.000Z | specs/steps/calculator_with_regexes.py | hugobr/pycukes | 7eca6d9bf6577f6bc735a3893a3b1d7c0af950f1 | [
"MIT"
] | 1 | 2016-08-24T01:17:34.000Z | 2016-08-24T01:17:34.000Z | specs/steps/calculator_with_regexes.py | hugobr/pycukes | 7eca6d9bf6577f6bc735a3893a3b1d7c0af950f1 | [
"MIT"
] | null | null | null | from pycukes import *
@When('I sum $left and $right')
def sum_two_numbers(context, left, right):
context._sum = int(left) + int(right)
#Then I have 2 as result
| 20.75 | 42 | 0.692771 | 28 | 166 | 4 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007353 | 0.180723 | 166 | 7 | 43 | 23.714286 | 0.816176 | 0.138554 | 0 | 0 | 0 | 0 | 0.156028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f39c033cd910612c24e7460c603fc970f8cba93 | 2,757 | py | Python | hardware/interface/battery_log.py | osnas/epidose | 061d4aff6386d571b1940d2f18359eef99dc2ea5 | [
"Apache-2.0"
] | 40 | 2020-05-08T17:22:15.000Z | 2020-06-18T13:21:25.000Z | hardware/interface/battery_log.py | osnas/epidose | 061d4aff6386d571b1940d2f18359eef99dc2ea5 | [
"Apache-2.0"
] | 50 | 2020-06-27T08:34:13.000Z | 2021-04-20T10:18:25.000Z | epidose/hardware/interface/battery_log.py | dspinellis/reference_implementation | 416cc0305141746d9fe39e3e8698cb152bb3124f | [
"Apache-2.0"
] | 10 | 2020-07-05T19:55:24.000Z | 2021-02-04T14:55:46.000Z | #!/usr/bin/python3
#Copyright 2020 Konstantinos Papafotis, Konstantinos Asimakopoulos, Paul P. Sotiriadis
#
#Licensed under the Apache License, Version 2.0 (the "License");
#you may not use this file except in compliance with the License.
#You may obtain a copy of the License at
#
# http://www.apache.org/licenses/L... | 43.761905 | 1,180 | 0.686253 | 531 | 2,757 | 3.536723 | 0.645951 | 0.031949 | 0.013845 | 0.017039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316773 | 0.087414 | 2,757 | 62 | 1,181 | 44.467742 | 0.42965 | 0.249909 | 0 | 0 | 0 | 0 | 0.039512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.216216 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f462a817a66a90cbfd921839b3562eaa81ac1dc | 3,200 | py | Python | l5kit/l5kit/tests/planning/common_test.py | cdicle-motional/l5kit | 4dc4ee5391479bb71f0b373f39c316f9eef5a961 | [
"Apache-2.0"
] | 1 | 2021-12-04T17:48:53.000Z | 2021-12-04T17:48:53.000Z | l5kit/l5kit/tests/planning/common_test.py | cdicle-motional/l5kit | 4dc4ee5391479bb71f0b373f39c316f9eef5a961 | [
"Apache-2.0"
] | null | null | null | l5kit/l5kit/tests/planning/common_test.py | cdicle-motional/l5kit | 4dc4ee5391479bb71f0b373f39c316f9eef5a961 | [
"Apache-2.0"
] | 1 | 2021-11-19T08:13:46.000Z | 2021-11-19T08:13:46.000Z | import torch
def mock_vectorizer_data(batch_size: int, num_steps: int, num_history: int, num_agents: int, num_lanes: int,
num_crosswalks: int, num_points_per_element: int, TYPE_MAX: int) -> dict:
return {
"extent": torch.rand(batch_size, 3),
"type": torch.randint(0, TYPE_M... | 66.666667 | 108 | 0.691875 | 459 | 3,200 | 4.446623 | 0.12854 | 0.180794 | 0.260657 | 0.33513 | 0.752572 | 0.708476 | 0.631063 | 0.533562 | 0.358648 | 0.254777 | 0 | 0.023619 | 0.179688 | 3,200 | 47 | 109 | 68.085106 | 0.753905 | 0 | 0 | 0 | 0 | 0 | 0.224375 | 0.140625 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.022222 | 0.022222 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f4fba5444c9b34f4d08c43308a662be8ef5c51b | 536 | py | Python | core/app/utils/tests/test_date.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 2 | 2021-04-29T19:28:59.000Z | 2021-04-29T21:20:32.000Z | core/app/utils/tests/test_date.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 101 | 2020-06-26T19:51:24.000Z | 2021-03-28T09:35:55.000Z | core/app/utils/tests/test_date.py | mxmaxime/mx-tech-house | f6b66b8390b348e48d4c6ea0da51e409f3845fd6 | [
"MIT"
] | null | null | null | from datetime import timedelta
from unittest import TestCase
from django.utils import timezone
from freezegun import freeze_time
from utils.date import is_time_newer_than
class UtilsDateTestCase(TestCase):
def setUp(self) -> None:
pass
@freeze_time("2020-12-21 03:21:00")
def test_is_less_old_th... | 25.52381 | 51 | 0.714552 | 77 | 536 | 4.779221 | 0.506494 | 0.048913 | 0.089674 | 0.122283 | 0.25 | 0.097826 | 0 | 0 | 0 | 0 | 0 | 0.050808 | 0.192164 | 536 | 20 | 52 | 26.8 | 0.799076 | 0 | 0 | 0 | 0 | 0 | 0.035448 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0.071429 | 0.357143 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
8f57995478ca9df12498c51ee0718fd036519f50 | 219 | py | Python | Q7.py | devasheeshG/Project-file-XII_21-22 | 9ef06a09c36197a2a1a13305a745578c8cbf3578 | [
"MIT"
] | null | null | null | Q7.py | devasheeshG/Project-file-XII_21-22 | 9ef06a09c36197a2a1a13305a745578c8cbf3578 | [
"MIT"
] | null | null | null | Q7.py | devasheeshG/Project-file-XII_21-22 | 9ef06a09c36197a2a1a13305a745578c8cbf3578 | [
"MIT"
] | null | null | null | # Q7. Write a programs to find the sum of the following series :
a)1/x + 1/x2+ 1/x3+................. 1/xn
b)1 + 1/2! + 1/3! +.......................1/n!
c)1 –2 + 3 –4 + 5 -...................... n | 54.75 | 65 | 0.342466 | 38 | 219 | 2.026316 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 0.251142 | 219 | 4 | 66 | 54.75 | 0.347561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8f57d8a448462030ed397291a581ca23e9d5a014 | 184 | py | Python | lab-taxi/main.py | aopina1/DRLND-Course | 1140e101221cfcee16a24d146b4f86cd79d53832 | [
"MIT"
] | null | null | null | lab-taxi/main.py | aopina1/DRLND-Course | 1140e101221cfcee16a24d146b4f86cd79d53832 | [
"MIT"
] | 7 | 2019-12-16T22:13:37.000Z | 2022-02-10T01:05:42.000Z | lab-taxi/main.py | aopina1/DRLND-Course | 1140e101221cfcee16a24d146b4f86cd79d53832 | [
"MIT"
] | null | null | null | from agent import Agent
from monitor import interact
import gym
import numpy as np
env = gym.make('Taxi-v3')
agent = Agent()
avg_rewards, best_avg_reward = interact(env, agent) | 23 | 51 | 0.744565 | 29 | 184 | 4.62069 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.173913 | 184 | 8 | 51 | 23 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.039326 | 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 | 0 | 0 | 0 | 3 |
8f6e958bc4a05d843812d375072b72bb35941257 | 231 | py | Python | core/preprocessing/voice.py | ArnolFokam/dna-gate-backend | 1501a3a1d1a18645a309c012c8210045c61274c9 | [
"Apache-2.0"
] | null | null | null | core/preprocessing/voice.py | ArnolFokam/dna-gate-backend | 1501a3a1d1a18645a309c012c8210045c61274c9 | [
"Apache-2.0"
] | null | null | null | core/preprocessing/voice.py | ArnolFokam/dna-gate-backend | 1501a3a1d1a18645a309c012c8210045c61274c9 | [
"Apache-2.0"
] | null | null | null | import noisereduce as nr
def remove_noise(data, rate):
return nr.reduce_noise(y=data,
sr=rate,
thresh_n_mult_nonstationary=2,
stationary=False)
| 25.666667 | 57 | 0.510823 | 24 | 231 | 4.708333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.428571 | 231 | 8 | 58 | 28.875 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
8f6f9187f221ea9be3adac17ab5457639784847d | 284 | py | Python | sip/tango_control/tango_interactive_client/check_tango_host.py | SKA-ScienceDataProcessor/integration-prototype | 5875dc0489f707232534ce75daf3707f909bcd15 | [
"BSD-3-Clause"
] | 3 | 2016-11-08T02:27:05.000Z | 2018-01-22T13:26:11.000Z | sip/tango_control/tango_interactive_client/check_tango_host.py | SKA-ScienceDataProcessor/integration-prototype | 5875dc0489f707232534ce75daf3707f909bcd15 | [
"BSD-3-Clause"
] | 87 | 2016-11-24T11:09:01.000Z | 2021-03-25T22:23:59.000Z | sip/tango_control/tango_interactive_client/check_tango_host.py | SKA-ScienceDataProcessor/integration-prototype | 5875dc0489f707232534ce75daf3707f909bcd15 | [
"BSD-3-Clause"
] | 10 | 2016-05-18T09:41:36.000Z | 2019-07-04T10:19:24.000Z | # coding: utf-8
"""."""
from tango import Database
# Get reference to tango database
DB = Database()
print('=' * 80)
print('Database info:')
print('=' * 80)
print(DB.get_info())
print('=' * 80)
print('Server list:')
print('=' * 80)
print(DB.get_server_list().value_string)
print('')
| 17.75 | 40 | 0.647887 | 40 | 284 | 4.5 | 0.45 | 0.155556 | 0.266667 | 0.177778 | 0.188889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036437 | 0.130282 | 284 | 15 | 41 | 18.933333 | 0.692308 | 0.169014 | 0 | 0.363636 | 0 | 0 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.818182 | 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 | 0 | 0 | 1 | 0 | 3 |
8f71e54419c2dc058f08a2f6870a9f79cc61503e | 447 | py | Python | utils/resource_path.py | MAPL-UFU/palms-ftp | 60f7bebe61fc8aa80f49f5728010b6c1bbee7a4b | [
"MIT"
] | null | null | null | utils/resource_path.py | MAPL-UFU/palms-ftp | 60f7bebe61fc8aa80f49f5728010b6c1bbee7a4b | [
"MIT"
] | 1 | 2020-03-18T08:27:18.000Z | 2020-03-18T08:27:53.000Z | utils/resource_path.py | MAPL-UFU/palms | 04699330f480cd9dd0763b4d388663c55f1b20c9 | [
"MIT"
] | 1 | 2021-02-03T16:21:49.000Z | 2021-02-03T16:21:49.000Z |
# You need to use this script every time you want to rebuild pyinstaller under the pyQ5 MainWindow.py
#-------------------------------------------------------------
import os
import sys
def resource_path(relative_path):
if hasattr(sys, '_MEIPASS'):
return os.path.join(sys._MEIPASS, relative_path)
... | 34.384615 | 101 | 0.514541 | 48 | 447 | 4.666667 | 0.604167 | 0.160714 | 0.107143 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002564 | 0.127517 | 447 | 13 | 102 | 34.384615 | 0.571795 | 0.510067 | 0 | 0 | 0 | 0 | 0.04186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.333333 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
8f80f02e93029047c097c7fd0a4e327f5abde815 | 16,611 | py | Python | dingtalk/python/alibabacloud_dingtalk/trade_1_0/models.py | aliyun/dingtalk-sdk | ab4f856b8cfe94f6b69f10a0730a2e5a7d4901c5 | [
"Apache-2.0"
] | 15 | 2020-08-27T04:10:26.000Z | 2022-03-07T06:25:42.000Z | dingtalk/python/alibabacloud_dingtalk/trade_1_0/models.py | aliyun/dingtalk-sdk | ab4f856b8cfe94f6b69f10a0730a2e5a7d4901c5 | [
"Apache-2.0"
] | 1 | 2020-09-27T01:30:46.000Z | 2021-12-29T09:15:34.000Z | dingtalk/python/alibabacloud_dingtalk/trade_1_0/models.py | aliyun/dingtalk-sdk | ab4f856b8cfe94f6b69f10a0730a2e5a7d4901c5 | [
"Apache-2.0"
] | 5 | 2020-08-27T04:07:44.000Z | 2021-12-03T02:55:20.000Z | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
from typing import Dict
class QueryTradeOrderHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
se... | 31.579848 | 84 | 0.584251 | 2,161 | 16,611 | 4.270245 | 0.064322 | 0.051474 | 0.092653 | 0.06827 | 0.714564 | 0.668942 | 0.662007 | 0.65052 | 0.65052 | 0.619419 | 0 | 0.000441 | 0.317741 | 16,611 | 525 | 85 | 31.64 | 0.813818 | 0.020589 | 0 | 0.749415 | 1 | 0 | 0.086598 | 0.014967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103045 | false | 0.018735 | 0.004684 | 0 | 0.210773 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
56f6c35c35db651a7fd271bf8e64a0f3523b8763 | 166 | py | Python | tknb/queue_message.py | TimonLukas/tknb | 2de5ddfd4e31619ef72403ae85bf855ca09daad7 | [
"MIT"
] | null | null | null | tknb/queue_message.py | TimonLukas/tknb | 2de5ddfd4e31619ef72403ae85bf855ca09daad7 | [
"MIT"
] | null | null | null | tknb/queue_message.py | TimonLukas/tknb | 2de5ddfd4e31619ef72403ae85bf855ca09daad7 | [
"MIT"
] | null | null | null | from enum import Enum
from typing import Tuple, Any
class MessageType(Enum):
METHOD_CALL = 0
CUSTOM_EVENT = 1
QueueMessage = Tuple[MessageType, str, Any]
| 15.090909 | 43 | 0.728916 | 23 | 166 | 5.173913 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.204819 | 166 | 10 | 44 | 16.6 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
56f8e2c647c9c4ebecd622aa39ca660646e160d0 | 199 | py | Python | gokart/utils.py | ujiuji1259/gokart | 904268ff32feb42847df7ae898b0e2e454f787b5 | [
"MIT"
] | null | null | null | gokart/utils.py | ujiuji1259/gokart | 904268ff32feb42847df7ae898b0e2e454f787b5 | [
"MIT"
] | null | null | null | gokart/utils.py | ujiuji1259/gokart | 904268ff32feb42847df7ae898b0e2e454f787b5 | [
"MIT"
] | null | null | null | import os
import luigi
def add_config(file_path: str):
_, ext = os.path.splitext(file_path)
luigi.configuration.core.parser = ext
assert luigi.configuration.add_config_path(file_path)
| 19.9 | 57 | 0.753769 | 29 | 199 | 4.931034 | 0.517241 | 0.167832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155779 | 199 | 9 | 58 | 22.111111 | 0.85119 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
853d9e5a69fac51d3563a7008036ba609bd36374 | 126 | py | Python | main.py | devashishupadhyay/ml-covid-19 | b739073b71094a4d0dc08a050da5065bef0d6214 | [
"MIT"
] | 1 | 2021-04-06T06:55:11.000Z | 2021-04-06T06:55:11.000Z | main.py | devashishupadhyay/ml-covid-19 | b739073b71094a4d0dc08a050da5065bef0d6214 | [
"MIT"
] | null | null | null | main.py | devashishupadhyay/ml-covid-19 | b739073b71094a4d0dc08a050da5065bef0d6214 | [
"MIT"
] | null | null | null | from core.covid import pred
model = pred('Model/model.sav','covid19-features-df/covid_19_strain.pkl')
print(model.predict()) | 25.2 | 73 | 0.769841 | 20 | 126 | 4.75 | 0.75 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0.071429 | 126 | 5 | 74 | 25.2 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.425197 | 0.307087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
85537656bb6af25f0d050875f0bce3f4bdb8491a | 147 | py | Python | cmr_localization/scripts/generate_db_name.py | MarvinStuede/cmr_localization | 25392ed993242ba48a61ece19490d73be97ba2e2 | [
"BSD-3-Clause"
] | null | null | null | cmr_localization/scripts/generate_db_name.py | MarvinStuede/cmr_localization | 25392ed993242ba48a61ece19490d73be97ba2e2 | [
"BSD-3-Clause"
] | null | null | null | cmr_localization/scripts/generate_db_name.py | MarvinStuede/cmr_localization | 25392ed993242ba48a61ece19490d73be97ba2e2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import time
import sys
millis = int(round(time.time() * 1000))
sys.stdout.write("~/.ros/rtabmap_test_" + str(millis)+ '.db')
| 24.5 | 61 | 0.687075 | 23 | 147 | 4.304348 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.102041 | 147 | 5 | 62 | 29.4 | 0.719697 | 0.136054 | 0 | 0 | 0 | 0 | 0.18254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
855cb45290b6ab1095113c3fc2f1f823cc49fb7a | 463 | py | Python | string_algorithms/utils.py | mhozza/string_algorithms | 88a77f9633ab899afd8738f083ce9690fe8897ea | [
"MIT"
] | 6 | 2016-10-10T08:44:16.000Z | 2021-08-24T17:34:41.000Z | string_algorithms/utils.py | mhozza/string_algorithms | 88a77f9633ab899afd8738f083ce9690fe8897ea | [
"MIT"
] | null | null | null | string_algorithms/utils.py | mhozza/string_algorithms | 88a77f9633ab899afd8738f083ce9690fe8897ea | [
"MIT"
] | 3 | 2016-05-12T02:50:12.000Z | 2018-07-01T04:34:31.000Z | from math import floor, log2
from operator import itemgetter
def argmin(*args):
if len(args) == 1:
iterable = args[0]
else:
iterable = args
return min((j, i) for i, j in enumerate(iterable))[1]
def greatest_pow2(n):
return 2 ** floor(log2(n))
def inverse_index(a):
return {v: k ... | 17.807692 | 57 | 0.598272 | 75 | 463 | 3.64 | 0.466667 | 0.120879 | 0.10989 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.274298 | 463 | 25 | 58 | 18.52 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.117647 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8577f09ad3db2f72fccd2cf32298f86e2ca0f911 | 370 | py | Python | lib/gstreamer/util.py | yefengxx/vaapi-fits | 51513e51bacc89877350690eb47c83b00a715b59 | [
"BSD-3-Clause"
] | null | null | null | lib/gstreamer/util.py | yefengxx/vaapi-fits | 51513e51bacc89877350690eb47c83b00a715b59 | [
"BSD-3-Clause"
] | null | null | null | lib/gstreamer/util.py | yefengxx/vaapi-fits | 51513e51bacc89877350690eb47c83b00a715b59 | [
"BSD-3-Clause"
] | 1 | 2021-07-15T02:07:26.000Z | 2021-07-15T02:07:26.000Z | ###
### Copyright (C) 2021 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
from ...lib.common import memoize, try_call
@memoize
def have_gst():
return try_call("which gst-launch-1.0") and try_call("which gst-inspect-1.0")
@memoize
def have_gst_element(element):
result = try_call("gst-inspect-... | 21.764706 | 79 | 0.708108 | 56 | 370 | 4.553571 | 0.553571 | 0.109804 | 0.109804 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033846 | 0.121622 | 370 | 16 | 80 | 23.125 | 0.750769 | 0.2 | 0 | 0.25 | 0 | 0 | 0.210714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8580da068f1ec8a4eb9133a80477e63e906c27bb | 1,418 | py | Python | benchmarks/query_benchmarks/query_delete_related/benchmark.py | deepakdinesh1123/actions | 859455c8582f6e3fc4d65b7266163f4276d04127 | [
"MIT"
] | null | null | null | benchmarks/query_benchmarks/query_delete_related/benchmark.py | deepakdinesh1123/actions | 859455c8582f6e3fc4d65b7266163f4276d04127 | [
"MIT"
] | null | null | null | benchmarks/query_benchmarks/query_delete_related/benchmark.py | deepakdinesh1123/actions | 859455c8582f6e3fc4d65b7266163f4276d04127 | [
"MIT"
] | null | null | null | from ...utils import bench_setup
from .models import Artist, Song
class QueryDeleteRel:
def setup(self):
bench_setup(migrate=True)
self.a1 = Artist.objects.create(name="abc")
self.a2 = Artist.objects.create(name="abc")
self.a3 = Artist.objects.create(name="abc")
self.a4 = A... | 44.3125 | 65 | 0.618477 | 204 | 1,418 | 4.27451 | 0.196078 | 0.298165 | 0.21789 | 0.263761 | 0.752294 | 0.691514 | 0.381881 | 0.381881 | 0.381881 | 0 | 0 | 0.021583 | 0.215797 | 1,418 | 31 | 66 | 45.741935 | 0.76259 | 0 | 0 | 0 | 0 | 0 | 0.070522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
858433acc28825bd63805cf516b89da5b5ad8c66 | 173 | py | Python | examples/text_scroll.py | paddywwoof/python-sense-hat | bdbbc8f20797c132fed00299d9c21461cb07c0d4 | [
"BSD-3-Clause"
] | 104 | 2019-08-11T13:15:25.000Z | 2022-03-21T14:57:48.000Z | examples/text_scroll.py | paddywwoof/python-sense-hat | bdbbc8f20797c132fed00299d9c21461cb07c0d4 | [
"BSD-3-Clause"
] | 18 | 2020-01-30T09:27:21.000Z | 2021-10-16T14:49:26.000Z | examples/text_scroll.py | paddywwoof/python-sense-hat | bdbbc8f20797c132fed00299d9c21461cb07c0d4 | [
"BSD-3-Clause"
] | 70 | 2019-07-27T00:20:34.000Z | 2022-03-27T07:51:16.000Z | #!/usr/bin/python
from sense_hat import SenseHat
sense = SenseHat()
sense.set_rotation(180)
red = (255, 0, 0)
sense.show_message("One small step for Pi!", text_colour=red)
| 21.625 | 61 | 0.739884 | 29 | 173 | 4.275862 | 0.793103 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.121387 | 173 | 7 | 62 | 24.714286 | 0.763158 | 0.092486 | 0 | 0 | 0 | 0 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 3 |
8591de17c5b198dbe0943f36a7252277411ca7c8 | 214 | py | Python | Examen/pandas_example - copia.py | jansforte/Inteligencia-Artificial | f5bf8f11f5e58b4a8b7becf049479534e48c75a5 | [
"MIT"
] | null | null | null | Examen/pandas_example - copia.py | jansforte/Inteligencia-Artificial | f5bf8f11f5e58b4a8b7becf049479534e48c75a5 | [
"MIT"
] | null | null | null | Examen/pandas_example - copia.py | jansforte/Inteligencia-Artificial | f5bf8f11f5e58b4a8b7becf049479534e48c75a5 | [
"MIT"
] | 1 | 2021-04-04T14:53:13.000Z | 2021-04-04T14:53:13.000Z | import pandas as pd
Datos = pd.DataFrame({"hora": ["0.29 [0.15-0.48]", "6.586 [0.15-0.48]", "9800 [10-200]", "3 [10-200]", "6.586 [0.15-0.48]"]})
Datos["hora"] = Datos["hora"].str.extract(r"(.*\d\s)")
print(Datos) | 42.8 | 125 | 0.565421 | 43 | 214 | 2.813953 | 0.534884 | 0.07438 | 0.099174 | 0.14876 | 0.165289 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0.227979 | 0.098131 | 214 | 5 | 126 | 42.8 | 0.398964 | 0 | 0 | 0 | 0 | 0 | 0.432558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
85968d961cdd0eca499b0d70c233a25a679b4b86 | 255 | py | Python | BoManifolds/pymanopt_addons/tools/autodiff/__init__.py | NoemieJaquier/GaBOtorch | 8753ddd0f7de5cc49d68cec88f2ce5e3192f72ca | [
"MIT"
] | 21 | 2020-06-18T20:35:33.000Z | 2022-03-29T16:46:08.000Z | pymanopt/tools/autodiff/__init__.py | leonbottou/pymanopt | 7d8c46f4513c3746234ba804604694b11db62d0a | [
"BSD-3-Clause"
] | null | null | null | pymanopt/tools/autodiff/__init__.py | leonbottou/pymanopt | 7d8c46f4513c3746234ba804604694b11db62d0a | [
"BSD-3-Clause"
] | 3 | 2021-03-30T09:08:57.000Z | 2022-03-24T07:53:21.000Z | from ._theano import TheanoBackend
from ._autograd import AutogradBackend
from ._tensorflow import TensorflowBackend
from ._pytorch import PytorchBackend
__all__ = ["AutogradBackend", "PytorchBackend",
"TensorflowBackend", "TheanoBackend"]
| 23.181818 | 48 | 0.784314 | 21 | 255 | 9.142857 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145098 | 255 | 10 | 49 | 25.5 | 0.880734 | 0 | 0 | 0 | 0 | 0 | 0.231373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
85b2abbd1cf29e081e61c09e9a6ea6b0da4a2b63 | 3,458 | py | Python | ut.py | michaelpdu/adversary_ml | 6adec09ae5b8e30b9b58df7e8d9476793b4228bf | [
"Apache-2.0"
] | 1 | 2021-09-24T19:30:44.000Z | 2021-09-24T19:30:44.000Z | ut.py | michaelpdu/adversary_ml | 6adec09ae5b8e30b9b58df7e8d9476793b4228bf | [
"Apache-2.0"
] | null | null | null | ut.py | michaelpdu/adversary_ml | 6adec09ae5b8e30b9b58df7e8d9476793b4228bf | [
"Apache-2.0"
] | 1 | 2018-03-13T02:50:37.000Z | 2018-03-13T02:50:37.000Z | import os, sys
import unittest
import tlsh
from logging import *
sys.path.append(os.path.join(os.path.dirname(__file__),'UT'))
# from ut_trendx_predictor import TrendXPredictorTestCase
from ut_dna_manager import DNAManagerTestCase
from ut_housecallx_report import HouseCallXReportTestCase
from ut_trendx_wrappe... | 44.909091 | 161 | 0.735107 | 361 | 3,458 | 6.703601 | 0.252078 | 0.14876 | 0.152893 | 0.169421 | 0.467355 | 0.446694 | 0.282645 | 0.049587 | 0.035537 | 0.035537 | 0 | 0.001035 | 0.161943 | 3,458 | 76 | 162 | 45.5 | 0.834023 | 0.631868 | 0 | 0 | 0 | 0.045455 | 0.098604 | 0.064572 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.045455 | 0.5 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a4153c4c8a2932bf38090a782ee19b79e4c956f0 | 1,838 | py | Python | src/abstract_factory2.py | MrRezoo/design-patterns-python | 8f8e2501ad8e05f1a75ce5be659d926c0ec99698 | [
"MIT"
] | 6 | 2021-03-21T08:39:34.000Z | 2021-06-08T13:05:34.000Z | src/abstract_factory2.py | MrRezoo/design-patterns-python | 8f8e2501ad8e05f1a75ce5be659d926c0ec99698 | [
"MIT"
] | null | null | null | src/abstract_factory2.py | MrRezoo/design-patterns-python | 8f8e2501ad8e05f1a75ce5be659d926c0ec99698 | [
"MIT"
] | 1 | 2021-12-26T16:59:19.000Z | 2021-12-26T16:59:19.000Z | """
Creational:
abstract factory
Car => Benz, Bmw => Suv, Coupe
benz suv => gla, glc
bmw suv => x1, x2
benz coupe => cls, E-class
bmw coupe => m2, m4
"""
from abc import ABC, abstractmethod
class Car(ABC):
@abstractmethod
def call_suv(self):
pass
@abstractmeth... | 18.948454 | 63 | 0.45049 | 186 | 1,838 | 4.333333 | 0.193548 | 0.052109 | 0.064516 | 0.074442 | 0.320099 | 0.265509 | 0.208437 | 0.208437 | 0.208437 | 0.208437 | 0 | 0.006974 | 0.219804 | 1,838 | 96 | 64 | 19.145833 | 0.555091 | 0.366159 | 0 | 0.416667 | 0 | 0 | 0.101766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0.083333 | 0.020833 | 0.083333 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a41f9ef338e87589dba4db19887e616fe54e6d0a | 67 | py | Python | python/testData/codeInsight/smartEnter/methodParameterStaticMethod_after.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/codeInsight/smartEnter/methodParameterStaticMethod_after.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 2 | 2022-02-19T09:45:05.000Z | 2022-02-27T20:32:55.000Z | python/testData/codeInsight/smartEnter/methodParameterStaticMethod_after.py | tgodzik/intellij-community | f5ef4191fc30b69db945633951fb160c1cfb7b6f | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class MyClass:
@staticmethod
def method():
<caret> | 13.4 | 17 | 0.567164 | 6 | 67 | 6.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328358 | 67 | 5 | 18 | 13.4 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
a4254da2a5cf486d844d76ec405a07741c5a72a3 | 202 | py | Python | problems/problem25.py | phanghos/euler-solutions | cc0e19badbb2a4def602c2a5ffdf274c7846e0b2 | [
"MIT"
] | 1 | 2018-02-16T13:13:31.000Z | 2018-02-16T13:13:31.000Z | problems/problem25.py | phanghos/euler-solutions | cc0e19badbb2a4def602c2a5ffdf274c7846e0b2 | [
"MIT"
] | null | null | null | problems/problem25.py | phanghos/euler-solutions | cc0e19badbb2a4def602c2a5ffdf274c7846e0b2 | [
"MIT"
] | null | null | null | def digits(n):
c = 0
while n > 0:
c += 1
n //= 10
return c
fib1 = fib2 = 1
fib3 = fib1 + fib2
c = 3
while digits(fib3) != 1000:
fib1, fib2 = fib2, fib3
fib3 = fib1 + fib2
c += 1
print(c)
| 11.882353 | 27 | 0.539604 | 37 | 202 | 2.945946 | 0.405405 | 0.293578 | 0.220183 | 0.238532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179856 | 0.311881 | 202 | 16 | 28 | 12.625 | 0.604317 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 0.071429 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a429996c79941c747c90ac278daf41eb3917203e | 294 | py | Python | accounts/urls.py | imuno/Diploma | 8d41dd8e09492900b72339fb5a1c753334deb1bc | [
"MIT"
] | 3 | 2019-09-07T15:01:53.000Z | 2020-01-15T09:17:47.000Z | accounts/urls.py | imuno/Diploma | 8d41dd8e09492900b72339fb5a1c753334deb1bc | [
"MIT"
] | 22 | 2020-06-05T22:53:41.000Z | 2022-03-11T23:58:42.000Z | accounts/urls.py | imuno/Diploma | 8d41dd8e09492900b72339fb5a1c753334deb1bc | [
"MIT"
] | 2 | 2020-01-15T09:14:33.000Z | 2020-10-25T19:02:53.000Z | from django.contrib import admin
from django.urls import path, include
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('/', views.login, name='login'),
] + static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
| 29.4 | 67 | 0.768707 | 41 | 294 | 5.439024 | 0.463415 | 0.179372 | 0.125561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129252 | 294 | 9 | 68 | 32.666667 | 0.871094 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a443280b120d315b916aa23bd1680fdd438c01e3 | 426 | py | Python | compileman/Compile_Result.py | danilocgsilva/CompileMan | 26ea6cdd40f2bcbf3562da53da33f0dfe5e3fb92 | [
"MIT"
] | null | null | null | compileman/Compile_Result.py | danilocgsilva/CompileMan | 26ea6cdd40f2bcbf3562da53da33f0dfe5e3fb92 | [
"MIT"
] | null | null | null | compileman/Compile_Result.py | danilocgsilva/CompileMan | 26ea6cdd40f2bcbf3562da53da33f0dfe5e3fb92 | [
"MIT"
] | null | null | null | class Compile_Result:
def __init__(self):
self.success = None
self.message = None
def setSuccess(self):
self.success = True
return self
def setError(self, message: str):
self.success = False
self.message = message
return self
def getResult(self... | 20.285714 | 37 | 0.596244 | 47 | 426 | 5.297872 | 0.382979 | 0.176707 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323944 | 426 | 20 | 38 | 21.3 | 0.864583 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.133333 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a44381d6d9f63bd7d5bd93116ad28664fdf25607 | 140 | py | Python | dict.py | jlogans/vampy2017cs | 070746426c64da04f2f3dbdaf9a1dba6cf509e62 | [
"MIT"
] | 1 | 2017-07-13T20:42:50.000Z | 2017-07-13T20:42:50.000Z | dict.py | jlogans2004/vampy2017cs | 070746426c64da04f2f3dbdaf9a1dba6cf509e62 | [
"MIT"
] | null | null | null | dict.py | jlogans2004/vampy2017cs | 070746426c64da04f2f3dbdaf9a1dba6cf509e62 | [
"MIT"
] | null | null | null | d1 = {"key1":1, "key2":2, "key3":3, "key4":4, "key5":5}
sorted_keys = sorted(d1)
print(sorted_keys)
for key in sorted_keys:
print(d1[key])
| 23.333333 | 55 | 0.65 | 26 | 140 | 3.384615 | 0.653846 | 0.340909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105691 | 0.121429 | 140 | 5 | 56 | 28 | 0.609756 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
a45dfede0addaa4ae82c094ea2ef887db14e7a1a | 668 | py | Python | ubxlib/cid.py | albard00/ubxlib | cfad25461e680bbb527e4ce74e6b699da6065bea | [
"MIT"
] | 3 | 2020-05-03T17:12:21.000Z | 2021-01-16T13:45:07.000Z | ubxlib/cid.py | albard00/ubxlib | cfad25461e680bbb527e4ce74e6b699da6065bea | [
"MIT"
] | 35 | 2020-08-29T09:35:15.000Z | 2022-03-18T19:42:34.000Z | ubxlib/cid.py | albard00/ubxlib | cfad25461e680bbb527e4ce74e6b699da6065bea | [
"MIT"
] | 4 | 2020-04-24T03:29:07.000Z | 2021-01-13T15:52:53.000Z |
class UbxCID(object):
# UBX Class IDs
CLASS_NAV = 0x01
CLASS_ACK = 0x05
CLASS_CFG = 0x06
CLASS_UPD = 0x09
CLASS_MON = 0x0A
CLASS_ESF = 0x10
CLASS_MGA = 0x13
def __init__(self, cls, id):
super().__init__()
self.__cls = cls
self.__id = id
@property
de... | 20.242424 | 68 | 0.586826 | 90 | 668 | 3.788889 | 0.377778 | 0.123167 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.305389 | 668 | 32 | 69 | 20.875 | 0.68319 | 0.019461 | 0 | 0.083333 | 0 | 0 | 0.059816 | 0 | 0 | 0 | 0.042945 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.208333 | 0.791667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a4a5cb72f963ffca312c8d1e57c59e67a707cb65 | 169 | py | Python | sqlite_dissect/carving/__init__.py | Defense-Cyber-Crime-Center/sqlite-dissect | e1a6c19928bc092bf7aeaff71072634f77a452ea | [
"MIT"
] | 12 | 2021-10-21T21:23:51.000Z | 2022-03-13T03:01:53.000Z | sqlite_dissect/carving/__init__.py | hartescout/sqlite-dissect | c4cd1047837a8bc6bbfa69f448149d046a7cc703 | [
"MIT"
] | 21 | 2021-09-13T17:00:33.000Z | 2022-03-31T12:56:56.000Z | sqlite_dissect/carving/__init__.py | hartescout/sqlite-dissect | c4cd1047837a8bc6bbfa69f448149d046a7cc703 | [
"MIT"
] | 1 | 2021-10-21T22:00:07.000Z | 2021-10-21T22:00:07.000Z |
"""
__init__.py
This init script will initialize any needed logic for this package.
This package will control signature generation and carving of SQLite files.
"""
| 15.363636 | 75 | 0.769231 | 24 | 169 | 5.25 | 0.791667 | 0.174603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177515 | 169 | 10 | 76 | 16.9 | 0.906475 | 0.928994 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f10b6ffa10e7a77f1f1629a7884322deb2c57f6d | 565 | py | Python | dateflix_api/views/me.py | pythrick/dateflix-api | 7051cd67ac5a8cf88b85254f27966b0e78fff8fc | [
"MIT"
] | 8 | 2020-07-01T12:13:51.000Z | 2020-08-24T12:46:46.000Z | dateflix_api/views/me.py | pythrick/dateflix-api | 7051cd67ac5a8cf88b85254f27966b0e78fff8fc | [
"MIT"
] | null | null | null | dateflix_api/views/me.py | pythrick/dateflix-api | 7051cd67ac5a8cf88b85254f27966b0e78fff8fc | [
"MIT"
] | 2 | 2020-11-21T04:34:27.000Z | 2020-11-21T04:57:20.000Z | from rest_framework import mixins, response, viewsets
from dateflix_api.models import User
from dateflix_api.serializers import ProfileSerializer
class MeViewSet(mixins.ListModelMixin, viewsets.GenericViewSet):
"""
API endpoint that allows current profile to be viewed.
"""
serializer_class = Profile... | 31.388889 | 77 | 0.753982 | 66 | 565 | 6.378788 | 0.69697 | 0.057007 | 0.071259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171681 | 565 | 17 | 78 | 33.235294 | 0.899573 | 0.217699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
f1120847f105071a5263e8e8850321a5bca4a855 | 16,841 | py | Python | test/test_missing_feature_extraction.py | cbrewitt/GRIT-OpenDrive | d8f8898e8fc360f4247aebcc91a855cd2659325f | [
"MIT"
] | null | null | null | test/test_missing_feature_extraction.py | cbrewitt/GRIT-OpenDrive | d8f8898e8fc360f4247aebcc91a855cd2659325f | [
"MIT"
] | null | null | null | test/test_missing_feature_extraction.py | cbrewitt/GRIT-OpenDrive | d8f8898e8fc360f4247aebcc91a855cd2659325f | [
"MIT"
] | null | null | null | import numpy as np
from igp2 import AgentState, plot_map
from igp2.data import ScenarioConfig, InDScenario
from igp2.opendrive.map import Map
import matplotlib.pyplot as plt
from shapely.ops import unary_union
from grit.core.data_processing import get_episode_frames
from grit.core.feature_extraction import FeatureExt... | 37.675615 | 109 | 0.594561 | 2,111 | 16,841 | 4.454761 | 0.104216 | 0.049128 | 0.037431 | 0.04211 | 0.765313 | 0.74564 | 0.725968 | 0.696193 | 0.695342 | 0.681306 | 0 | 0.052774 | 0.30016 | 16,841 | 446 | 110 | 37.76009 | 0.745121 | 0.050235 | 0 | 0.595469 | 0 | 0 | 0.009055 | 0.00698 | 0 | 0 | 0 | 0 | 0.042071 | 1 | 0.058252 | false | 0 | 0.032362 | 0 | 0.100324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f11693be13eac518bd175b71fc505e77e7584aa0 | 281 | py | Python | setup.py | yanggangthu/FVS_cython | 17a5118badb404571523e8ed3693b39bff45932e | [
"Unlicense",
"MIT"
] | 1 | 2018-10-12T15:38:56.000Z | 2018-10-12T15:38:56.000Z | setup.py | yanggangthu/FVS_cython | 17a5118badb404571523e8ed3693b39bff45932e | [
"Unlicense",
"MIT"
] | null | null | null | setup.py | yanggangthu/FVS_cython | 17a5118badb404571523e8ed3693b39bff45932e | [
"Unlicense",
"MIT"
] | null | null | null | from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("FVS_localsearch_10_cython.pyx")
)
'''
setup(
ext_modules = cythonize("FVS_localsearch_8_cython.pyx",
#sources=[""], #add additional source file
language = "c++"))
'''
| 20.071429 | 60 | 0.718861 | 35 | 281 | 5.542857 | 0.628571 | 0.082474 | 0.154639 | 0.247423 | 0.391753 | 0.391753 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.145907 | 281 | 13 | 61 | 21.615385 | 0.795833 | 0 | 0 | 0 | 0 | 0 | 0.205674 | 0.205674 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
f151b5179d80201c4b245933a39e1bcf6c362411 | 262 | py | Python | venv/lib/python2.7/site-packages/image/video_field.py | deandunbar/html2bwml | 32c06a93c8daf6a26c89c0de58fd39859d1ddb1e | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/image/video_field.py | deandunbar/html2bwml | 32c06a93c8daf6a26c89c0de58fd39859d1ddb1e | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/image/video_field.py | deandunbar/html2bwml | 32c06a93c8daf6a26c89c0de58fd39859d1ddb1e | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models.fields.files import FieldFile
# A video field is exactly a file field with a different signature
class VideoFieldFile(FieldFile):
pass
class VideoField(models.FileField):
attr_class = VideoFieldFile
| 21.833333 | 66 | 0.790076 | 36 | 262 | 5.722222 | 0.638889 | 0.097087 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156489 | 262 | 11 | 67 | 23.818182 | 0.932127 | 0.244275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
f160e688ee51bbc268fe094c6c00b0b38225c7ed | 29 | py | Python | pyble/const/characteristic/date_time.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 14 | 2015-03-30T23:11:36.000Z | 2020-04-07T00:57:12.000Z | pyble/const/characteristic/date_time.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 3 | 2016-05-17T06:11:07.000Z | 2017-05-15T16:43:09.000Z | pyble/const/characteristic/date_time.py | bgromov/PyBLEWrapper | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | [
"MIT"
] | 11 | 2016-03-11T08:53:03.000Z | 2019-03-11T21:32:13.000Z | NAME="Date Time"
UUID=0x2A08
| 9.666667 | 16 | 0.758621 | 5 | 29 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.103448 | 29 | 2 | 17 | 14.5 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 0 | 0 | 0 | 0.206897 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
74afe6d702c5ebf822717b975b44fec4ce85fa7f | 456 | py | Python | yah/types/device.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | yah/types/device.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | yah/types/device.py | sunsx0/yah | c073015dfa1fb2b5232c3ec4a9b9dbae571f7053 | [
"MIT"
] | null | null | null | import typing
import dataclasses as dc
from .capability import CapabilityBase
from .properties import PropertyBase
@dc.dataclass
class Device:
id: str
name: str
type: str
icon_url: str = ''
capabilities: typing.List[CapabilityBase] = dc.field(default_factory=list)
properties: typing.List[Pro... | 24 | 78 | 0.730263 | 58 | 456 | 5.655172 | 0.465517 | 0.091463 | 0.128049 | 0.192073 | 0.228659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173246 | 456 | 18 | 79 | 25.333333 | 0.870027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.928571 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
74b06a1874a0d458cd480ae63ecc9755c15d76e2 | 137 | py | Python | settings.py | AtleMichaelSelberg/3dpav-desktop | 5429a00bd1c7ee531c145e436b48c0055198fd6b | [
"MIT"
] | null | null | null | settings.py | AtleMichaelSelberg/3dpav-desktop | 5429a00bd1c7ee531c145e436b48c0055198fd6b | [
"MIT"
] | null | null | null | settings.py | AtleMichaelSelberg/3dpav-desktop | 5429a00bd1c7ee531c145e436b48c0055198fd6b | [
"MIT"
] | 1 | 2020-08-14T03:02:00.000Z | 2020-08-14T03:02:00.000Z | INCHES_TO_CENIMETERS = 2.54
class Reading():
def __init__(self, value, stamp):
self.value = value
self.stamp = stamp | 22.833333 | 37 | 0.642336 | 18 | 137 | 4.555556 | 0.666667 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.255474 | 137 | 6 | 38 | 22.833333 | 0.77451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 3 |
74bd5b00c01b59529ac253d8fe0748f6fd58a43e | 381 | py | Python | events/admin.py | NyntoFive/big-peach | a68742196c3edeb594723724a60ea00764d84aba | [
"MIT"
] | 4 | 2020-06-05T19:52:41.000Z | 2021-09-05T05:25:59.000Z | events/admin.py | NyntoFive/big-peach | a68742196c3edeb594723724a60ea00764d84aba | [
"MIT"
] | 38 | 2020-01-30T05:14:22.000Z | 2021-09-22T18:44:34.000Z | events/admin.py | NyntoFive/big-peach | a68742196c3edeb594723724a60ea00764d84aba | [
"MIT"
] | 9 | 2020-05-08T23:09:54.000Z | 2021-11-18T03:26:36.000Z | from django.contrib import admin
from events.models import Location, Event
class EventAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
list_display = ('name', 'start', 'location')
class LocationAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
admin.site.register(Loc... | 23.8125 | 48 | 0.732283 | 42 | 381 | 6.571429 | 0.52381 | 0.108696 | 0.195652 | 0.23913 | 0.297101 | 0.297101 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125984 | 381 | 15 | 49 | 25.4 | 0.828829 | 0 | 0 | 0.222222 | 0 | 0 | 0.086614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.777778 | 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 | 0 | 1 | 0 | 0 | 3 |
74bf8fedfc89bdad7b71036f3a06f0e700a976ab | 1,399 | py | Python | tests/documents.py | macrat/macracoin | a5267c4b3b9f812378af059562676dc5e7cb320e | [
"MIT"
] | null | null | null | tests/documents.py | macrat/macracoin | a5267c4b3b9f812378af059562676dc5e7cb320e | [
"MIT"
] | null | null | null | tests/documents.py | macrat/macracoin | a5267c4b3b9f812378af059562676dc5e7cb320e | [
"MIT"
] | null | null | null | import doctest
import unittest
import core.block
import core.chain
import core.errors
import core.message
import core.user
import peer.chainmanager
import peer.client
import peer.endpoint
import peer.peer
class DocTest(unittest.TestCase):
def test_doctest_core_block(self):
failure, _ = doctest.testmod(co... | 27.431373 | 55 | 0.70193 | 170 | 1,399 | 5.564706 | 0.129412 | 0.066596 | 0.133192 | 0.237844 | 0.622622 | 0.346723 | 0.346723 | 0.346723 | 0 | 0 | 0 | 0.008094 | 0.205147 | 1,399 | 50 | 56 | 27.98 | 0.842626 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.230769 | false | 0 | 0.282051 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
74ce25090d36c0305f45adbd3d6e42289c08547b | 125 | py | Python | al/model/model_zoo/image_classification.py | kili-technology/active-learning | 72dce7d91b988264dd7fa1a972d9af45e9648c4c | [
"Apache-2.0"
] | 3 | 2020-09-11T07:30:54.000Z | 2021-04-17T07:45:05.000Z | al/model/model_zoo/image_classification.py | kili-technology/active-learning | 72dce7d91b988264dd7fa1a972d9af45e9648c4c | [
"Apache-2.0"
] | null | null | null | al/model/model_zoo/image_classification.py | kili-technology/active-learning | 72dce7d91b988264dd7fa1a972d9af45e9648c4c | [
"Apache-2.0"
] | null | null | null | import torchvision.models as models
resnet18 = models.resnet18()
mobilenet = models.mobilenet_v2()
vgg16 = models.vgg16() | 15.625 | 35 | 0.768 | 15 | 125 | 6.333333 | 0.533333 | 0.294737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 0.128 | 125 | 8 | 36 | 15.625 | 0.788991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 3 |
74cf208b06e53e85ca0c8279f776c0352789a56c | 601 | py | Python | crawler/admin.py | mental689/paddict | 493268b62531c698687d42416edf61c602250133 | [
"MIT"
] | 1 | 2019-06-22T10:28:21.000Z | 2019-06-22T10:28:21.000Z | crawler/admin.py | mental689/paddict | 493268b62531c698687d42416edf61c602250133 | [
"MIT"
] | 4 | 2020-09-05T01:48:18.000Z | 2022-03-02T04:29:25.000Z | crawler/admin.py | mental689/paddict | 493268b62531c698687d42416edf61c602250133 | [
"MIT"
] | null | null | null | from django.contrib import admin
from crawler.models import Author, Document, Event, Tag, TagAssignment, Comment
# Register your models here.
class MembershipInline(admin.TabularInline):
model = Document.authors.through
class DocumentAdmin(admin.ModelAdmin):
inlines = [MembershipInline]
exclude = ['autho... | 25.041667 | 79 | 0.787022 | 67 | 601 | 7.059701 | 0.41791 | 0.114165 | 0.215645 | 0.160677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111481 | 601 | 23 | 80 | 26.130435 | 0.885768 | 0.043261 | 0 | 0.133333 | 0 | 0 | 0.012216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.6 | 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 | 0 | 1 | 0 | 0 | 3 |
74d6aa79d5f0852a18befeebd773c3864fa8d771 | 196 | py | Python | app/pg_pipeline/retweeter_details.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 5 | 2020-04-02T12:03:57.000Z | 2020-10-18T19:29:15.000Z | app/pg_pipeline/retweeter_details.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 22 | 2020-03-31T02:00:34.000Z | 2021-06-30T17:59:01.000Z | app/pg_pipeline/retweeter_details.py | s2t2/tweet-analyzer-py | 0a398fc47101a2d602d8c4116c970f1076a58f27 | [
"MIT"
] | 3 | 2020-04-04T16:08:08.000Z | 2020-10-20T01:32:46.000Z |
from app.pg_pipeline import Pipeline
if __name__ == "__main__":
pipeline = Pipeline()
pipeline.download_retweeter_details() # takes about 16 minutes for 2.7M users in batches of 2500
| 19.6 | 100 | 0.739796 | 27 | 196 | 4.962963 | 0.851852 | 0.238806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050314 | 0.188776 | 196 | 9 | 101 | 21.777778 | 0.792453 | 0.285714 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 3 |
74dad25d2a60670ef1318c1fdca94586bc2fe76e | 483 | py | Python | pysparkling/fileio/codec/codec.py | lyle-nel/pysparkling | c3aa6690c314517b82d954193e485c7d3aed3711 | [
"Apache-2.0"
] | null | null | null | pysparkling/fileio/codec/codec.py | lyle-nel/pysparkling | c3aa6690c314517b82d954193e485c7d3aed3711 | [
"Apache-2.0"
] | null | null | null | pysparkling/fileio/codec/codec.py | lyle-nel/pysparkling | c3aa6690c314517b82d954193e485c7d3aed3711 | [
"Apache-2.0"
] | null | null | null | import logging
log = logging.getLogger(__name__)
class Codec(object):
"""Codec."""
def __init__(self):
pass
def compress(self, stream):
"""Compress.
:param io.BytesIO stream: Uncompressed input stream.
:rtype: io.BytesIO
"""
return stream
def decompr... | 18.576923 | 60 | 0.575569 | 48 | 483 | 5.625 | 0.479167 | 0.133333 | 0.103704 | 0.148148 | 0.274074 | 0.274074 | 0.274074 | 0 | 0 | 0 | 0 | 0 | 0.3147 | 483 | 25 | 61 | 19.32 | 0.81571 | 0.356108 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
2d305edc560c85dbc69724e4b14f84729b700210 | 1,252 | py | Python | src/Solu9.py | wsdmakeup/codePractice | b722bd85dc064662ba2ddf1ab4ccb01039e478eb | [
"MIT"
] | null | null | null | src/Solu9.py | wsdmakeup/codePractice | b722bd85dc064662ba2ddf1ab4ccb01039e478eb | [
"MIT"
] | null | null | null | src/Solu9.py | wsdmakeup/codePractice | b722bd85dc064662ba2ddf1ab4ccb01039e478eb | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
'''
Determine whether an integer is a palindrome. Do this without extra space.
'''
'''
不可以使用转换str的方法。
将自然对比转换为每次对比最左边和最右边,然后掐头去尾,就是数字除以100,
'''
class Solution(object):
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if x < 0:
re... | 17.885714 | 74 | 0.464856 | 166 | 1,252 | 3.457831 | 0.36747 | 0.020906 | 0.200348 | 0.209059 | 0.226481 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088117 | 0.401757 | 1,252 | 70 | 75 | 17.885714 | 0.678238 | 0.015974 | 0 | 0.208333 | 0 | 0 | 0.007752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.145833 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2d3efc94322830a41a0e099f984e62b6761df411 | 97 | py | Python | lang/Python/loops-for-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/loops-for-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/Python/loops-for-1.py | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | import sys
for i in range(5):
for j in range(i+1):
sys.stdout.write("*")
print()
| 16.166667 | 29 | 0.546392 | 17 | 97 | 3.117647 | 0.705882 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.28866 | 97 | 5 | 30 | 19.4 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 | 0 | 0 | 0 | 3 |
740f92aaf199741fd42b8882f993d48b456f7e1c | 146 | py | Python | closure/2.py | janusnic/py-21v | 6c90bf2f144e4903cb2fa97b3b80c4b39852b93b | [
"MIT"
] | null | null | null | closure/2.py | janusnic/py-21v | 6c90bf2f144e4903cb2fa97b3b80c4b39852b93b | [
"MIT"
] | null | null | null | closure/2.py | janusnic/py-21v | 6c90bf2f144e4903cb2fa97b3b80c4b39852b93b | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
def attribution(name):
return lambda x: x + ' -- ' + name
pp = attribution('John')
print pp('Dinner is in the fridge') | 20.857143 | 37 | 0.609589 | 21 | 146 | 4.238095 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.19863 | 146 | 7 | 38 | 20.857143 | 0.752137 | 0.136986 | 0 | 0 | 0 | 0 | 0.248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
741fb0a3944a541caf41226ba3cdf161d7ac8e06 | 389 | py | Python | python_basics/string_manipulation.py | Cristobalz2/pythonLearning | 01b39c157651d7de3ab078f9a1d20c6fcc65c0b6 | [
"MIT"
] | null | null | null | python_basics/string_manipulation.py | Cristobalz2/pythonLearning | 01b39c157651d7de3ab078f9a1d20c6fcc65c0b6 | [
"MIT"
] | null | null | null | python_basics/string_manipulation.py | Cristobalz2/pythonLearning | 01b39c157651d7de3ab078f9a1d20c6fcc65c0b6 | [
"MIT"
] | null | null | null | # print("var=10\nif var > 10:\vprint('la casa esta vacia')\nfin del programa" )
def mix_up(a, b):
# +++your code here+++\
# a[0] = b[0]
strA = a.replace(a[:2],b[:2])
strB = b.replace(b[:2],a[:2])
return strA + " " + strB
a= 'mix'
b= 'pod'
print(mix_up(a,b))
def fix_start(s):
# +++your code here+++
... | 21.611111 | 79 | 0.544987 | 71 | 389 | 2.929577 | 0.450704 | 0.048077 | 0.057692 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041401 | 0.192802 | 389 | 18 | 80 | 21.611111 | 0.621019 | 0.40874 | 0 | 0 | 0 | 0 | 0.035556 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
7442cb12545ca49dcb78d58cf2cfbb9eb84cecf5 | 389 | py | Python | 1 Scripto/01.py | peterszerzo/rhino-pythonscript-tutorials | 880861eecc4e7dd5897695aae532e81c9bcacf94 | [
"MIT"
] | 2 | 2019-10-26T17:25:57.000Z | 2020-12-29T14:52:45.000Z | 1 Scripto/01.py | peterszerzo/rhino-pythonscript-tutorials | 880861eecc4e7dd5897695aae532e81c9bcacf94 | [
"MIT"
] | 1 | 2019-04-23T02:17:35.000Z | 2019-04-23T10:24:51.000Z | 1 Scripto/01.py | peterszerzo/rhino-pythonscript-tutorials | 880861eecc4e7dd5897695aae532e81c9bcacf94 | [
"MIT"
] | null | null | null | """
Rhino Python Script Tutorial
Exercise 01
Draw point at origin.
Important note: Python is very sensitive to indentation.
Notice how the rs.AddPoint statement is indented inwards.
This means that it is part of the Main method.
All this will be clear in due time.
"""
import rhinoscriptsyntax a... | 17.681818 | 60 | 0.696658 | 59 | 389 | 4.59322 | 0.779661 | 0.073801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016892 | 0.239075 | 389 | 22 | 61 | 17.681818 | 0.898649 | 0.691517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
747c2ff176e8869aa2b58dc7b2b15d596e1ac39b | 481 | py | Python | networks/load_ckpt_unstrict.py | bigvideoresearch/SCC | f26cdb6aaf248b5112812dbdac1f1b5086aebccc | [
"MIT"
] | 5 | 2021-09-15T21:48:55.000Z | 2022-03-22T11:21:58.000Z | networks/load_ckpt_unstrict.py | bigvideoresearch/SCC | f26cdb6aaf248b5112812dbdac1f1b5086aebccc | [
"MIT"
] | null | null | null | networks/load_ckpt_unstrict.py | bigvideoresearch/SCC | f26cdb6aaf248b5112812dbdac1f1b5086aebccc | [
"MIT"
] | 1 | 2021-08-20T08:40:15.000Z | 2021-08-20T08:40:15.000Z | import torch
from runner_master import runner
def load_ckpt_unstrict(network, ckpt, network_name='main'):
state_dict = torch.load(ckpt, map_location='cuda:{}'.format(torch.cuda.current_device()))
if 'network' in state_dict:
state_dict = state_dict['network']
if network_name in state_dict:
s... | 34.357143 | 93 | 0.758836 | 69 | 481 | 4.942029 | 0.376812 | 0.237537 | 0.205279 | 0.26393 | 0.211144 | 0.211144 | 0.211144 | 0.211144 | 0 | 0 | 0 | 0 | 0.139293 | 481 | 13 | 94 | 37 | 0.823672 | 0 | 0 | 0 | 0 | 0 | 0.089583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
748218a48514f260e324c45ff1455e8de9da5cbc | 200 | py | Python | team.py | maxwilliams94/ultimatePy | 1582f1666f05d75b103a0fd4913c115157cd462d | [
"MIT"
] | 1 | 2020-01-26T15:21:29.000Z | 2020-01-26T15:21:29.000Z | team.py | maxwilliams94/ultimatePy | 1582f1666f05d75b103a0fd4913c115157cd462d | [
"MIT"
] | null | null | null | team.py | maxwilliams94/ultimatePy | 1582f1666f05d75b103a0fd4913c115157cd462d | [
"MIT"
] | null | null | null | """
Hold references to fixtures, win/loss record, name, group affiliation of a Team
"""
class Team(object):
def __init__(self, team_id, name):
self.id = team_id
self.name = name
| 20 | 79 | 0.65 | 29 | 200 | 4.275862 | 0.655172 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24 | 200 | 9 | 80 | 22.222222 | 0.815789 | 0.395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
74a9645b8325685b794d7eea272f09c26b0291ed | 1,041 | py | Python | src/masonite/commands/__init__.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 1,816 | 2018-02-14T01:59:51.000Z | 2022-03-31T17:09:20.000Z | src/masonite/commands/__init__.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 340 | 2018-02-11T00:27:26.000Z | 2022-03-21T12:00:24.000Z | src/masonite/commands/__init__.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 144 | 2018-03-18T00:08:16.000Z | 2022-02-26T01:51:58.000Z | from .CommandCapsule import CommandCapsule
from .AuthCommand import AuthCommand
from .TinkerCommand import TinkerCommand
from .KeyCommand import KeyCommand
from .ServeCommand import ServeCommand
from .QueueWorkCommand import QueueWorkCommand
from .QueueRetryCommand import QueueRetryCommand
from .QueueTableCommand impor... | 43.375 | 56 | 0.889529 | 92 | 1,041 | 10.065217 | 0.271739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088377 | 1,041 | 23 | 57 | 45.26087 | 0.975764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
77686e3a383711718aadc4b7c0ca14e97d18b54d | 95 | py | Python | tests/__init__.py | tdidechkin/rethinkdb-sessions | d7f01bd4ac65016fd547d10f53d052464a8359f1 | [
"MIT"
] | 5 | 2015-05-05T21:53:16.000Z | 2021-03-16T03:23:16.000Z | tests/__init__.py | tdidechkin/rethinkdb-sessions | d7f01bd4ac65016fd547d10f53d052464a8359f1 | [
"MIT"
] | null | null | null | tests/__init__.py | tdidechkin/rethinkdb-sessions | d7f01bd4ac65016fd547d10f53d052464a8359f1 | [
"MIT"
] | null | null | null | from django.conf import settings
settings.configure(
SESSION_ENGINE='rdb_session.main'
)
| 13.571429 | 37 | 0.778947 | 12 | 95 | 6 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 95 | 6 | 38 | 15.833333 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
777af9be276f1ce182f64659191125d7cbe34f23 | 38 | py | Python | CONSTANT.py | sotolatopiga/scrape-server | 83b1d131b443eb3cbc923ec53ecec906e7fc539c | [
"MIT"
] | null | null | null | CONSTANT.py | sotolatopiga/scrape-server | 83b1d131b443eb3cbc923ec53ecec906e7fc539c | [
"MIT"
] | null | null | null | CONSTANT.py | sotolatopiga/scrape-server | 83b1d131b443eb3cbc923ec53ecec906e7fc539c | [
"MIT"
] | null | null | null | OUTPUT_PICKLE_FILENAME = "data.pickle" | 38 | 38 | 0.842105 | 5 | 38 | 6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 38 | 1 | 38 | 38 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
77856e2cd5740f3cc4ae9d73bc419491ecc7a022 | 131 | py | Python | evaluation/matthews_corrcoef_evaluation.py | AghilasSini/AT-Annotator | 532c6de0fe143e2b6ace0d382cc79f1f0f2cf941 | [
"Apache-2.0"
] | null | null | null | evaluation/matthews_corrcoef_evaluation.py | AghilasSini/AT-Annotator | 532c6de0fe143e2b6ace0d382cc79f1f0f2cf941 | [
"Apache-2.0"
] | null | null | null | evaluation/matthews_corrcoef_evaluation.py | AghilasSini/AT-Annotator | 532c6de0fe143e2b6ace0d382cc79f1f0f2cf941 | [
"Apache-2.0"
] | null | null | null | from sklearn.metrics import matthews_corrcoef
y_true = [+1, +1, +1, -1]
y_pred = [+1, -1, +1, +1]
matthews_corrcoef(y_true, y_pred) | 32.75 | 45 | 0.687023 | 24 | 131 | 3.5 | 0.416667 | 0.142857 | 0.142857 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070175 | 0.129771 | 131 | 4 | 46 | 32.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
77b237e86a3ff755ba16c0454da6529e94aae812 | 180 | py | Python | dbus_async/__init__.py | hugosenari/dbus_async | 50c1a4fef64db99f0de462e27a6b4358b8088ce2 | [
"0BSD"
] | 1 | 2016-02-03T06:27:12.000Z | 2016-02-03T06:27:12.000Z | dbus_async/__init__.py | hugosenari/dbus_async | 50c1a4fef64db99f0de462e27a6b4358b8088ce2 | [
"0BSD"
] | null | null | null | dbus_async/__init__.py | hugosenari/dbus_async | 50c1a4fef64db99f0de462e27a6b4358b8088ce2 | [
"0BSD"
] | null | null | null | __author__ = 'Hugo Ribeiro'
__email__ = 'hugosenari@gmail.com'
__version__ = '0.1.0'
from .core import Session, System, Bus
from .client import Object
from .service import Service | 25.714286 | 38 | 0.766667 | 25 | 180 | 5.04 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.133333 | 180 | 7 | 39 | 25.714286 | 0.788462 | 0 | 0 | 0 | 0 | 0 | 0.20442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
77b3e39c82a715cb6662ae7b6e5b726f03241b83 | 255 | py | Python | tests/data/e2e_latency_replacements.py | FrNecas/requre | 110ad5c42b6bbb087a28bcaf7d7b7834825ec65a | [
"MIT"
] | 4 | 2019-09-11T10:39:19.000Z | 2020-01-26T14:46:04.000Z | tests/data/e2e_latency_replacements.py | FrNecas/requre | 110ad5c42b6bbb087a28bcaf7d7b7834825ec65a | [
"MIT"
] | 134 | 2020-08-04T06:56:25.000Z | 2022-03-28T19:59:10.000Z | tests/data/e2e_latency_replacements.py | FrNecas/requre | 110ad5c42b6bbb087a28bcaf7d7b7834825ec65a | [
"MIT"
] | 8 | 2019-09-11T09:52:01.000Z | 2020-05-15T07:49:20.000Z | # Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
from requre.import_system import UpgradeImportSystem
from requre.simple_object import Simple
FILTERS = UpgradeImportSystem().decorate("time.sleep", Simple.decorator_plain())
| 31.875 | 80 | 0.823529 | 30 | 255 | 6.9 | 0.766667 | 0.096618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 255 | 7 | 81 | 36.428571 | 0.896104 | 0.290196 | 0 | 0 | 0 | 0 | 0.05618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
77b5d17f7b5ee26d71f022fe434df20ca1137796 | 656 | py | Python | DjangoPractice/DjangoPractice/serializers.py | UVA-DSI-2019-Capstones/ARL | 74d43bf975db90da70696d4b68002d6971164840 | [
"MIT"
] | 1 | 2018-09-05T17:55:19.000Z | 2018-09-05T17:55:19.000Z | DjangoPractice/DjangoPractice/serializers.py | UVA-DSI-2019-Capstones/ARL | 74d43bf975db90da70696d4b68002d6971164840 | [
"MIT"
] | 5 | 2018-08-29T13:32:18.000Z | 2018-12-04T14:37:35.000Z | DjangoPractice/DjangoPractice/serializers.py | UVA-DSI-2019-Capstones/ARL | 74d43bf975db90da70696d4b68002d6971164840 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from .models import TraineeResponseModel, MediaModel
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'first_name', 'last_name', 'email')
class TraineeSerializer(seriali... | 32.8 | 80 | 0.734756 | 65 | 656 | 7.292308 | 0.538462 | 0.164557 | 0.196203 | 0.221519 | 0.253165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153963 | 656 | 20 | 81 | 32.8 | 0.854054 | 0 | 0 | 0.125 | 0 | 0 | 0.193303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.5625 | 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 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.