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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
340f0c88d7b5d26db2a6fd1f8411a98f923e5dfe | 12,813 | py | Python | pysnmp/H3C-VOSIP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/H3C-VOSIP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/H3C-VOSIP-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module H3C-VOSIP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-VOSIP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:11:30 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 124.398058 | 1,827 | 0.758448 | 1,457 | 12,813 | 6.668497 | 0.137268 | 0.011116 | 0.014512 | 0.017291 | 0.409325 | 0.32606 | 0.262762 | 0.25597 | 0.21583 | 0.21583 | 0 | 0.10489 | 0.085538 | 12,813 | 102 | 1,828 | 125.617647 | 0.724332 | 0.024975 | 0 | 0 | 0 | 0 | 0.131608 | 0.016261 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.053191 | 0.085106 | 0 | 0.117021 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3431cf49cf1241f6e5c332489103c250dedf5e70 | 496 | py | Python | LabelBinarizerPipelineFriendly.py | GowthamSiddarth/HandsOnML | 46cfe2716d570ebbcbfd030f463df3c0c23f9d63 | [
"MIT"
] | null | null | null | LabelBinarizerPipelineFriendly.py | GowthamSiddarth/HandsOnML | 46cfe2716d570ebbcbfd030f463df3c0c23f9d63 | [
"MIT"
] | null | null | null | LabelBinarizerPipelineFriendly.py | GowthamSiddarth/HandsOnML | 46cfe2716d570ebbcbfd030f463df3c0c23f9d63 | [
"MIT"
] | null | null | null | from sklearn.preprocessing import LabelBinarizer
class LabelBinarizerPipelineFriendly(LabelBinarizer):
def fit(self, X, y=None):
"""this would allow us to fit the model based on the X input."""
super(LabelBinarizerPipelineFriendly, self).fit(X)
def transform(self, X, y=None):
return s... | 35.428571 | 78 | 0.72379 | 59 | 496 | 6.067797 | 0.440678 | 0.041899 | 0.050279 | 0.083799 | 0.488827 | 0.357542 | 0.357542 | 0.357542 | 0.357542 | 0 | 0 | 0 | 0.175403 | 496 | 13 | 79 | 38.153846 | 0.875306 | 0.116935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
344ba8b904a4906eb652bf0eaa9f69ae15c6382d | 1,524 | py | Python | Connector/eth/utils.py | swapper-pegasus/NodeChain | e1f7c6b372b1e5032fbeb2767503c1d2e878aa9c | [
"MIT"
] | 4 | 2021-05-05T18:34:03.000Z | 2022-01-05T06:41:02.000Z | Connector/eth/utils.py | swapper-pegasus/NodeChain | e1f7c6b372b1e5032fbeb2767503c1d2e878aa9c | [
"MIT"
] | 94 | 2021-05-05T18:38:10.000Z | 2022-03-31T23:00:59.000Z | Connector/eth/utils.py | swapper-pegasus/NodeChain | e1f7c6b372b1e5032fbeb2767503c1d2e878aa9c | [
"MIT"
] | 4 | 2021-05-03T14:44:43.000Z | 2022-01-21T19:56:04.000Z | #!/usr/bin/python3
from logger import logger
from .constants import *
def ensureHash(hashAddr):
if isinstance(hashAddr, str):
if hashAddr.startswith('0x'):
return hashAddr.lower()
else:
return '0x' + hashAddr.lower()
else:
return hashAddr.lower()
def getMethod... | 26.736842 | 102 | 0.737533 | 162 | 1,524 | 6.790123 | 0.388889 | 0.054545 | 0.058182 | 0.072727 | 0.28 | 0.28 | 0.28 | 0.28 | 0.28 | 0.28 | 0 | 0.006369 | 0.175853 | 1,524 | 56 | 103 | 27.214286 | 0.869427 | 0.011155 | 0 | 0.121212 | 0 | 0 | 0.031209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.060606 | 0.242424 | 0.787879 | 0.030303 | 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 |
3457745974a018241af47c3306f4ad38e459594d | 437 | py | Python | crispy/kvy/__init__.py | thegreathippo/crispy | e648a25ff8ec24a3fac3931ba28660b8e22f3020 | [
"MIT"
] | null | null | null | crispy/kvy/__init__.py | thegreathippo/crispy | e648a25ff8ec24a3fac3931ba28660b8e22f3020 | [
"MIT"
] | null | null | null | crispy/kvy/__init__.py | thegreathippo/crispy | e648a25ff8ec24a3fac3931ba28660b8e22f3020 | [
"MIT"
] | null | null | null | import kivy
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.scatterlayout import ScatterLayout
from kivy.uix.image import Image
from kivy.graphics.transformation import Matrix
from kivy.properties import StringProperty
from .functions import *
from .customwidgets import KeyboardWidge... | 27.3125 | 58 | 0.82151 | 61 | 437 | 5.852459 | 0.442623 | 0.156863 | 0.092437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007653 | 0.102975 | 437 | 15 | 59 | 29.133333 | 0.903061 | 0 | 0 | 0 | 0 | 0 | 0.094253 | 0.05977 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
345c072769bccda9c06fc17001024c70d7f04f9d | 1,963 | py | Python | phangsPipeline/print_uv_ranges.py | astrojysun/phangs_imaging_scripts | e82f303b5d79a29d9269bce69ddb7456e08e3a9d | [
"MIT"
] | 21 | 2021-04-24T19:10:11.000Z | 2022-02-08T14:17:49.000Z | phangsPipeline/print_uv_ranges.py | astrojysun/phangs_imaging_scripts | e82f303b5d79a29d9269bce69ddb7456e08e3a9d | [
"MIT"
] | 35 | 2021-04-14T15:58:38.000Z | 2022-02-25T12:11:31.000Z | phangsPipeline/print_uv_ranges.py | astrojysun/phangs_imaging_scripts | e82f303b5d79a29d9269bce69ddb7456e08e3a9d | [
"MIT"
] | 6 | 2021-04-28T08:19:11.000Z | 2021-09-15T13:25:12.000Z | import glob
fname_list = [
'ic5332_7m_co21.ms',
'ic5332_12m_co21.ms',
'ngc0628_7m_co21.ms',
'ngc0628_12m_co21.ms',
'ngc1087_7m_co21.ms',
'ngc1300_7m_co21.ms',
'ngc1385_7m_co21.ms',
'ngc1433_7m_co21.ms',
'ngc1512_7m_co21.ms',
'ngc1566_7m_co21.ms',
'ngc1672_7m_co21.ms',
'n... | 27.263889 | 65 | 0.623535 | 311 | 1,963 | 3.543408 | 0.234727 | 0.217786 | 0.166969 | 0.040835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225723 | 0.207845 | 1,963 | 71 | 66 | 27.647887 | 0.482958 | 0 | 0 | 0 | 0 | 0 | 0.516047 | 0.106979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.014925 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 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 |
caa71cd1adbf4ce881bbbb86eda14b683d99dca4 | 117 | py | Python | khmernltk/sentence_tokenize/features.py | VietHoang1710/khmer_nltk | 1e04dfc6e3aa107fa2f875c6feada6eb19aa38f5 | [
"Apache-2.0"
] | 18 | 2021-04-08T07:12:32.000Z | 2022-02-12T02:22:12.000Z | khmernltk/sentence_tokenize/features.py | VietHoang1710/khmer_nltk | 1e04dfc6e3aa107fa2f875c6feada6eb19aa38f5 | [
"Apache-2.0"
] | null | null | null | khmernltk/sentence_tokenize/features.py | VietHoang1710/khmer_nltk | 1e04dfc6e3aa107fa2f875c6feada6eb19aa38f5 | [
"Apache-2.0"
] | 5 | 2021-04-07T03:53:24.000Z | 2022-01-07T03:58:25.000Z | # End of sentence signs etc.
SENTENCE_SEPARATOR = ["◌៓", "។", "៕", "៖", "ៗ", "៘", "៙", "៚", "៛", "ៜ", "៝", "?", "!"]
| 39 | 87 | 0.350427 | 18 | 117 | 2.777778 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 117 | 2 | 88 | 58.5 | 0.416667 | 0.222222 | 0 | 0 | 0 | 0 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
caa9942978dc8c36c35dbc90317c370d64055ef5 | 43,961 | py | Python | src/beanmachine/ppl/compiler/bmg_nodes.py | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | 1 | 2021-12-22T13:19:14.000Z | 2021-12-22T13:19:14.000Z | src/beanmachine/ppl/compiler/bmg_nodes.py | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | null | null | null | src/beanmachine/ppl/compiler/bmg_nodes.py | horizon-blue/beanmachine-1 | b13e4e3e28ffb860947eb8046863b0cabb581222 | [
"MIT"
] | null | null | null | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from abc import ABC, ABCMeta
from typing import Any, Iterable, List
import beanmachine.ppl.compiler.bmg_types as bt
import torch
from beanm... | 30.634843 | 87 | 0.670094 | 5,555 | 43,961 | 5.10423 | 0.138434 | 0.055865 | 0.038795 | 0.030719 | 0.436199 | 0.386506 | 0.368308 | 0.344537 | 0.319955 | 0.30941 | 0 | 0.005463 | 0.229635 | 43,961 | 1,434 | 88 | 30.656206 | 0.831778 | 0.391256 | 0 | 0.566285 | 0 | 0 | 0.040587 | 0.022153 | 0 | 0 | 0 | 0.006974 | 0.03437 | 1 | 0.337152 | false | 0 | 0.00982 | 0.165303 | 0.705401 | 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 |
cab23227576d7e96b19cd5fab214f82e07335871 | 619 | py | Python | src/sendfox/endpoints/me.py | knyazz/python-sendfox-api | 7a75f5c5d2ea0c1ae1a6894725f2b45fd79c458e | [
"MIT"
] | 1 | 2021-07-28T06:04:00.000Z | 2021-07-28T06:04:00.000Z | src/sendfox/endpoints/me.py | knyazz/python-sendfox-api | 7a75f5c5d2ea0c1ae1a6894725f2b45fd79c458e | [
"MIT"
] | null | null | null | src/sendfox/endpoints/me.py | knyazz/python-sendfox-api | 7a75f5c5d2ea0c1ae1a6894725f2b45fd79c458e | [
"MIT"
] | null | null | null | """
The API Me endpoint
Documentation: https://sendfox.helpscoutdocs.com/article/135-endpoints
"""
from sendfox.api import BaseApi
class Me(BaseApi):
"""
Gets information for authenticated user.
"""
def __init__(self, *args, **kwargs):
"""
Initialize the endpoint
"""
... | 22.925926 | 71 | 0.615509 | 64 | 619 | 5.765625 | 0.609375 | 0.081301 | 0.097561 | 0.168022 | 0.189702 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006522 | 0.256866 | 619 | 26 | 72 | 23.807692 | 0.795652 | 0.394184 | 0 | 0 | 0 | 0 | 0.006711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 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 |
cac9be14c67a761ac20e5ddbf58be7b9fe9717a9 | 981 | py | Python | parser/tools/read.py | anirudh-ramesh/delhi-electricity-parser | a7cc36872db2462ad0ae8da696b0f3042431c517 | [
"MIT"
] | null | null | null | parser/tools/read.py | anirudh-ramesh/delhi-electricity-parser | a7cc36872db2462ad0ae8da696b0f3042431c517 | [
"MIT"
] | null | null | null | parser/tools/read.py | anirudh-ramesh/delhi-electricity-parser | a7cc36872db2462ad0ae8da696b0f3042431c517 | [
"MIT"
] | null | null | null | from arrow import get, utcnow
def datetime_from_span_content(html, span_content, format):
return get(html.find('span', {'id': span_content}).text + ' Asia/Kolkata', format + ' ZZZ')
def text_from_span_content(html, span_content):
return html.find('span', {'id': span_content}).text
def value_from_span_content(html,... | 32.7 | 92 | 0.746177 | 155 | 981 | 4.516129 | 0.303226 | 0.157143 | 0.085714 | 0.108571 | 0.342857 | 0.282857 | 0.24 | 0 | 0 | 0 | 0 | 0.010345 | 0.11315 | 981 | 29 | 93 | 33.827586 | 0.794253 | 0 | 0 | 0 | 0 | 0 | 0.049949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0.173913 | 0.608696 | 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 |
cad4a976124c410538c9cf62643ece0400122c13 | 503 | py | Python | podhub/website/views/api/__init__.py | podhub-io/website | 4a1a91b5564160715ecb27354104733673c0c039 | [
"Apache-2.0"
] | null | null | null | podhub/website/views/api/__init__.py | podhub-io/website | 4a1a91b5564160715ecb27354104733673c0c039 | [
"Apache-2.0"
] | null | null | null | podhub/website/views/api/__init__.py | podhub-io/website | 4a1a91b5564160715ecb27354104733673c0c039 | [
"Apache-2.0"
] | null | null | null | from flask import jsonify, render_template
from flask.views import View
from .. import app
class ApiBase(View):
methods = []
@property
def template(self):
raise NotImplementedError()
def get_objects(self):
raise NotImplementedError()
def render_template(self, context):
r... | 22.863636 | 58 | 0.677932 | 55 | 503 | 6.090909 | 0.454545 | 0.125373 | 0.167164 | 0.185075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222664 | 503 | 21 | 59 | 23.952381 | 0.856777 | 0 | 0 | 0.133333 | 0 | 0 | 0.013917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.066667 | 0.733333 | 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 |
cadde5082b4e36b8a164fed0fd2d3c54af8ea1f8 | 1,552 | py | Python | shapex/alphabet/sinc_letter.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | 2 | 2021-08-14T17:59:50.000Z | 2021-12-13T15:49:49.000Z | shapex/alphabet/sinc_letter.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | null | null | null | shapex/alphabet/sinc_letter.py | figlerg/ShapEx | 8d148f93d8345d82dd98509cf9f90fe2ed98c1fd | [
"BSD-3-Clause"
] | null | null | null | from shapex.alphabet.letter import Letter
from shapex.alphabet.letter_type import LetterType
class SincLetter(Letter):
def __init__(self, a, b, c, d, length='undefined'):
# the atomic shape sine is of the form f(x) = (a * sin(b * x + c) + d) / (b * x + c)
self.a = a
self.b = b
self... | 21.555556 | 92 | 0.541881 | 218 | 1,552 | 3.697248 | 0.220183 | 0.055831 | 0.086849 | 0.037221 | 0.112903 | 0.112903 | 0.112903 | 0.112903 | 0.074442 | 0.074442 | 0 | 0.000964 | 0.33183 | 1,552 | 71 | 93 | 21.859155 | 0.776278 | 0.07732 | 0 | 0.096154 | 0 | 0 | 0.014696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288462 | false | 0 | 0.038462 | 0.134615 | 0.538462 | 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 |
cafc2740816ff9446f3924e9c381a92202c421f4 | 2,179 | py | Python | misc/mp/threads_test.py | kr-g/thonny | 8aec29b6920482ba131bb03aab36ae2765e17d0d | [
"MIT"
] | null | null | null | misc/mp/threads_test.py | kr-g/thonny | 8aec29b6920482ba131bb03aab36ae2765e17d0d | [
"MIT"
] | null | null | null | misc/mp/threads_test.py | kr-g/thonny | 8aec29b6920482ba131bb03aab36ae2765e17d0d | [
"MIT"
] | null | null | null | import time
import pyboard
thread_script = """
import machine
from machine import Pin
import time
import _thread
thread_done = False
def ltask(blinks,delay):
global thread_done
#led = Pin(25, Pin.OUT)
for i in range(blinks):
#led.high()
#time.sleep(delay)
#led.low()
print... | 24.211111 | 79 | 0.694814 | 371 | 2,179 | 3.994609 | 0.210243 | 0.124157 | 0.139676 | 0.201754 | 0.697706 | 0.697706 | 0.595142 | 0.595142 | 0.595142 | 0.595142 | 0 | 0.009508 | 0.17944 | 2,179 | 89 | 80 | 24.483146 | 0.819351 | 0.046352 | 0 | 0.630137 | 0 | 0 | 0.836145 | 0.026024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.013699 | 0.136986 | 0 | 0.136986 | 0.410959 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
1b09e82b4e424e6e1e7550fee6ade42eaf950022 | 7,991 | py | Python | snapper/SnapperConnection.py | Wanket/DeSnapper | a321e6ce9ae493dfe4345b6b103e10050e380636 | [
"MIT"
] | null | null | null | snapper/SnapperConnection.py | Wanket/DeSnapper | a321e6ce9ae493dfe4345b6b103e10050e380636 | [
"MIT"
] | null | null | null | snapper/SnapperConnection.py | Wanket/DeSnapper | a321e6ce9ae493dfe4345b6b103e10050e380636 | [
"MIT"
] | null | null | null | from typing import List, Dict, Callable
from dbus import SystemBus, Interface
from snapper.BaseHandler import BaseHandler, FunctionType
from snapper.types.Config import Config
from snapper.types.File import File
from snapper.types.Snapshot import Snapshot
class SnapperConnection:
r"""
Documentation of this ... | 43.429348 | 118 | 0.692654 | 896 | 7,991 | 5.952009 | 0.231027 | 0.090006 | 0.057754 | 0.070129 | 0.384212 | 0.301144 | 0.258016 | 0.198762 | 0.146072 | 0.102569 | 0 | 0.007827 | 0.216619 | 7,991 | 183 | 119 | 43.666667 | 0.844089 | 0.142535 | 0 | 0.105882 | 0 | 0 | 0.022847 | 0.003242 | 0 | 0 | 0 | 0.005464 | 0 | 1 | 0.294118 | false | 0 | 0.070588 | 0.258824 | 0.705882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1b0ecf574711ad9a68f2d65999f112fa86a33c2e | 299 | py | Python | In Class Code/2-26-19/bottle_hello_server.py | hamie96/CS-4720-Internet-Programming | ac998ffe6af5604fd985ebce0dfc226e58b074f5 | [
"BSD-Source-Code"
] | null | null | null | In Class Code/2-26-19/bottle_hello_server.py | hamie96/CS-4720-Internet-Programming | ac998ffe6af5604fd985ebce0dfc226e58b074f5 | [
"BSD-Source-Code"
] | null | null | null | In Class Code/2-26-19/bottle_hello_server.py | hamie96/CS-4720-Internet-Programming | ac998ffe6af5604fd985ebce0dfc226e58b074f5 | [
"BSD-Source-Code"
] | null | null | null |
from bottle import route, run
@route('/hello/<name>')
def hello_handler(name):
return "<h1>Hello {}</h1>".format(name)
@route("/goodbye/<code:int>")
def goodbye_handler(code):
return "<h1>Goodbye!! {}</h1>".format(code)
run(host='localhost', port=8080, debug=True)
| 16.611111 | 48 | 0.615385 | 39 | 299 | 4.666667 | 0.538462 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0.180602 | 299 | 17 | 49 | 17.588235 | 0.710204 | 0 | 0 | 0 | 0 | 0 | 0.282143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 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 |
1b1d9be59ac1c3be88d2ec6d7378e108541b32a0 | 298 | py | Python | globalbaz.py | pbevan1/Skin-Deep-Unlearning | b8802db8bd61bbf3fdeb10c9899a4117ae38e89c | [
"MIT"
] | 3 | 2021-09-10T21:51:01.000Z | 2022-03-29T15:16:03.000Z | globalbaz.py | pbevan1/Skin-Deep-Unlearning | b8802db8bd61bbf3fdeb10c9899a4117ae38e89c | [
"MIT"
] | null | null | null | globalbaz.py | pbevan1/Skin-Deep-Unlearning | b8802db8bd61bbf3fdeb10c9899a4117ae38e89c | [
"MIT"
] | null | null | null | from arguments import parse_args
import os
import torch
'''
This file is used import pseudo global variables into other modules
'''
args = parse_args()
os.environ['CUDA_VISIBLE_DEVICES'] = args.CUDA_VISIBLE_DEVICES
DP = len(os.environ['CUDA_VISIBLE_DEVICES']) > 1
device = torch.device('cuda')
| 19.866667 | 67 | 0.765101 | 44 | 298 | 5 | 0.568182 | 0.15 | 0.245455 | 0.181818 | 0.245455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.130872 | 298 | 14 | 68 | 21.285714 | 0.84556 | 0 | 0 | 0 | 0 | 0 | 0.197309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1b335a6204c799300ee75394f01959cb21c42015 | 405 | py | Python | Rosehip/apps/tools/background image/__init__.py | donno2048/Rosehip-pypi | d98c0b9eec77f5a2e9d9163b4632bd46416d4ef2 | [
"MIT"
] | 2 | 2020-08-28T05:48:45.000Z | 2020-10-27T14:12:09.000Z | apps/tools/background image/__init__.py | donno2048/Rosehip-L | 0c60603a00a7cec14bb44107caae44f43bc94026 | [
"MIT"
] | 1 | 2020-11-08T13:37:03.000Z | 2021-11-22T18:19:05.000Z | apps/tools/background image/__init__.py | donno2048/Rosehip-L | 0c60603a00a7cec14bb44107caae44f43bc94026 | [
"MIT"
] | null | null | null | def load(manager, params):
pos = (30, 30);import pygame;import pygame_gui;import os
if params is not None and len(params) > 0:pos = params[0]
pygame_gui.windows.UIFileDialog(rect=pygame.Rect(pos, (600, 400)),manager=manager,window_title="Set Background Image",initial_file_path='\\'.join(os.path.dirname(os.p... | 81 | 254 | 0.723457 | 61 | 405 | 4.622951 | 0.639344 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035422 | 0.093827 | 405 | 4 | 255 | 101.25 | 0.73297 | 0 | 0 | 0 | 0 | 0 | 0.120988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1b3a51bd2cea6bc0e5fa97f9fca8a587b51c1fbe | 422 | py | Python | backend/user/models.py | cffnpwr/calendar-from-stream | df6fae3edc71aa1b25a4f7c7527d7194808c9f1c | [
"MIT"
] | null | null | null | backend/user/models.py | cffnpwr/calendar-from-stream | df6fae3edc71aa1b25a4f7c7527d7194808c9f1c | [
"MIT"
] | null | null | null | backend/user/models.py | cffnpwr/calendar-from-stream | df6fae3edc71aa1b25a4f7c7527d7194808c9f1c | [
"MIT"
] | null | null | null | from django.db import models
class User(models.Model):
id = models.CharField(max_length=32, primary_key=True, unique=True)
accessToken = models.CharField(max_length=256)
refreshToken = models.CharField(max_length=128)
expiryDate = models.DateTimeField()
calendarId = models.CharField(max_length=256... | 28.133333 | 71 | 0.727488 | 51 | 422 | 5.901961 | 0.627451 | 0.199336 | 0.239203 | 0.318937 | 0.179402 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031609 | 0.175355 | 422 | 14 | 72 | 30.142857 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 0.909091 | 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 |
1b4a3bfbbdea960b31ffd5bfb55258b3d193c50e | 550 | py | Python | confme/annotation.py | iwanbolzern/ConfMe | 2b91dac318e499b7e25a40fb2abaf0f15a604301 | [
"MIT"
] | 21 | 2020-03-04T07:40:12.000Z | 2022-03-25T15:35:29.000Z | confme/annotation.py | iwanbolzern/ConfMe | 2b91dac318e499b7e25a40fb2abaf0f15a604301 | [
"MIT"
] | 9 | 2020-03-05T12:38:40.000Z | 2021-12-22T14:37:33.000Z | confme/annotation.py | iwanbolzern/ConfMe | 2b91dac318e499b7e25a40fb2abaf0f15a604301 | [
"MIT"
] | null | null | null | # module of all supported annotations
import pydantic
from pydantic import Field
def Secret(env_var: str):
return Field(..., env=env_var)
def OpenRange(gt: float = None, lt: float = None) -> Field:
return Field(..., gt=gt, lt=lt)
def ClosedRange(ge: float = None, le: float = None):
return Field(..., ... | 22.916667 | 87 | 0.66 | 81 | 550 | 4.358025 | 0.296296 | 0.203966 | 0.062323 | 0.090652 | 0.263456 | 0.175637 | 0.175637 | 0 | 0 | 0 | 0 | 0 | 0.189091 | 550 | 23 | 88 | 23.913043 | 0.79148 | 0.063636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.181818 | 0.363636 | 0.909091 | 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 | 1 | 0 | 0 | 0 | 3 |
1b567f1e4d43647f1b1144d710246d8ea15541f4 | 267 | py | Python | collection/admin.py | sohdas/sohdas.github.io | ea8ca4c32f07ec9855792253f92fa77d0922ab65 | [
"MIT"
] | 2 | 2018-11-06T03:28:52.000Z | 2018-11-08T03:35:28.000Z | collection/admin.py | sohdas/sohdas.github.io | ea8ca4c32f07ec9855792253f92fa77d0922ab65 | [
"MIT"
] | 12 | 2018-11-27T04:45:21.000Z | 2019-03-23T00:53:56.000Z | collection/admin.py | sohdas/sohdas.github.io | ea8ca4c32f07ec9855792253f92fa77d0922ab65 | [
"MIT"
] | 1 | 2020-02-01T16:13:24.000Z | 2020-02-01T16:13:24.000Z | from django.contrib import admin
from .models import Shelf, Movie
class MovieInline(admin.TabularInline):
model = Movie
extra = 3
class ShelfAdmin(admin.ModelAdmin):
fieldsets =[
##TODO
]
admin.site.register(Shelf, ShelfAdmin) | 19.071429 | 40 | 0.670412 | 29 | 267 | 6.172414 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.243446 | 267 | 14 | 41 | 19.071429 | 0.881188 | 0.014981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.777778 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1b8793149e1f229540c586a32f9877bbfda13e07 | 319 | py | Python | comentarios/api/serializers.py | rodrigolampier/projeto-django_REST_framework | 3712fab166e41b5a87a8f0052ac8ddadc9b68c23 | [
"MIT"
] | null | null | null | comentarios/api/serializers.py | rodrigolampier/projeto-django_REST_framework | 3712fab166e41b5a87a8f0052ac8ddadc9b68c23 | [
"MIT"
] | null | null | null | comentarios/api/serializers.py | rodrigolampier/projeto-django_REST_framework | 3712fab166e41b5a87a8f0052ac8ddadc9b68c23 | [
"MIT"
] | null | null | null | from rest_framework.serializers import ModelSerializer
from comentarios.models import Comentario
# Apenas serializa os registros, filtrando os campos desejados
class ComentarioSerializer(ModelSerializer):
class Meta:
model = Comentario
fields = ('id', 'usuario', 'comentario', 'data', 'aprovado')
| 31.9 | 68 | 0.752351 | 32 | 319 | 7.46875 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166144 | 319 | 9 | 69 | 35.444444 | 0.898496 | 0.188088 | 0 | 0 | 0 | 0 | 0.120623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1bab6c56561a3f05453b8cd5c3e31508507c8e24 | 1,043 | py | Python | janggoCompany/board/models.py | jangheeseung/janggo_system | d251ad88483aa4a4ca43183cdb5d72ff98213540 | [
"MIT"
] | null | null | null | janggoCompany/board/models.py | jangheeseung/janggo_system | d251ad88483aa4a4ca43183cdb5d72ff98213540 | [
"MIT"
] | null | null | null | janggoCompany/board/models.py | jangheeseung/janggo_system | d251ad88483aa4a4ca43183cdb5d72ff98213540 | [
"MIT"
] | null | null | null | from django.db import models
import datetime
# Create your models here.
class Board(models.Model):
title = models.CharField(max_length=125)
post_type = models.CharField(max_length=125, default="question")
content = models.TextField()
author = models.CharField(max_length=125, null=True)
password = ... | 37.25 | 81 | 0.716203 | 140 | 1,043 | 5.157143 | 0.435714 | 0.087258 | 0.149584 | 0.199446 | 0.378116 | 0.225762 | 0.15928 | 0 | 0 | 0 | 0 | 0.026775 | 0.176414 | 1,043 | 28 | 82 | 37.25 | 0.813737 | 0.048897 | 0 | 0.086957 | 0 | 0 | 0.020284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0.043478 | 0.086957 | 0.130435 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1bb09de1f96228ad183b36296f63da4802ae3a86 | 1,039 | py | Python | abstract/graph_style/LoopStylist.py | idin/abstract | b86172dc9e0ddb03335e5b0e2e5ea6d7a7620f6c | [
"MIT"
] | 2 | 2021-01-26T22:46:26.000Z | 2021-03-01T18:49:29.000Z | abstract/graph_style/LoopStylist.py | idin/abstract | b86172dc9e0ddb03335e5b0e2e5ea6d7a7620f6c | [
"MIT"
] | 1 | 2021-01-26T23:17:22.000Z | 2021-01-26T23:17:22.000Z | abstract/graph_style/LoopStylist.py | idin/abstract | b86172dc9e0ddb03335e5b0e2e5ea6d7a7620f6c | [
"MIT"
] | null | null | null | from .StyleMaster import NodeStylist, EdgeStylist, StyleMaster
from .NodeStyle import NodeStyle
from .EdgeStyle import EdgeStyle
class LoopNodeStylist(NodeStylist):
def __init__(self, style=None):
style = style or NodeStyle(fill_colour='yellow', border_colour='red', colour='red', shape='circle')
super().__init__... | 32.46875 | 101 | 0.776708 | 139 | 1,039 | 5.374101 | 0.251799 | 0.072289 | 0.044177 | 0.068273 | 0.353414 | 0.353414 | 0.227577 | 0.227577 | 0.141901 | 0.141901 | 0 | 0 | 0.102984 | 1,039 | 31 | 102 | 33.516129 | 0.801502 | 0 | 0 | 0.318182 | 0 | 0 | 0.020212 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.136364 | 0.136364 | 0.681818 | 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 |
1bb2bba8caf1d2f340d97e5f6d3caa027bc4c36b | 5,831 | py | Python | convertmusic/tools/cli_output.py | groboclown/music-uploader | d73ad811324027f2d1d4292eaa599709f3600b56 | [
"MIT"
] | null | null | null | convertmusic/tools/cli_output.py | groboclown/music-uploader | d73ad811324027f2d1d4292eaa599709f3600b56 | [
"MIT"
] | null | null | null | convertmusic/tools/cli_output.py | groboclown/music-uploader | d73ad811324027f2d1d4292eaa599709f3600b56 | [
"MIT"
] | null | null | null | import json
class Output:
def __init__(self, writer):
self._writer = writer
def start(self):
raise NotImplementedError()
def end(self):
raise NotImplementedError()
def dict_section(self, name, key_values):
self.dict_start(name)
for k,v in key_values.items():
... | 27.899522 | 106 | 0.585834 | 746 | 5,831 | 4.16622 | 0.079088 | 0.125483 | 0.065637 | 0.038932 | 0.811133 | 0.676963 | 0.538288 | 0.516088 | 0.46686 | 0.425354 | 0 | 0.017068 | 0.266507 | 5,831 | 208 | 107 | 28.033654 | 0.70961 | 0.004116 | 0 | 0.737179 | 0 | 0 | 0.029974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.314103 | false | 0.012821 | 0.00641 | 0 | 0.346154 | 0.00641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1bb979f1854fd35fff714ae8212a8d5fe7608089 | 6,868 | py | Python | bin/pwgen.py | bbengfort/toolkit | c9f200972eae949b78ff4ae471b39a4aaac9e803 | [
"MIT"
] | null | null | null | bin/pwgen.py | bbengfort/toolkit | c9f200972eae949b78ff4ae471b39a4aaac9e803 | [
"MIT"
] | 7 | 2016-03-07T22:46:23.000Z | 2016-03-07T22:48:51.000Z | bin/pwgen.py | bbengfort/toolkit | c9f200972eae949b78ff4ae471b39a4aaac9e803 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# pwgen
# Generates unique, long, reproducible passwords.
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: A while ago (see blog post)
#
# Copyright (C) 2016 Bengfort.com
# Licensed as Open Source under an MIT License.
#
# ID: pwgen.py [] benjamin@bengfort.com $
"""
Generates u... | 29.350427 | 87 | 0.525044 | 649 | 6,868 | 5.503852 | 0.360555 | 0.011758 | 0.019037 | 0.026036 | 0.051512 | 0.017917 | 0 | 0 | 0 | 0 | 0 | 0.00609 | 0.258882 | 6,868 | 233 | 88 | 29.476395 | 0.695678 | 0.158125 | 0 | 0.083333 | 1 | 0 | 0.180343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.275 | 0.091667 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1bdb362a5c25b23120ce44f0d18b839c312f802a | 262 | py | Python | aiotinder/controllers/exceptions.py | faruken/aio-tinder | a8cd9d76d3fa911c4569170e4f00b33f4c47e48d | [
"MIT"
] | 3 | 2019-01-07T10:50:28.000Z | 2022-01-09T06:07:33.000Z | aiotinder/controllers/exceptions.py | faruken/aio-tinder | a8cd9d76d3fa911c4569170e4f00b33f4c47e48d | [
"MIT"
] | null | null | null | aiotinder/controllers/exceptions.py | faruken/aio-tinder | a8cd9d76d3fa911c4569170e4f00b33f4c47e48d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Exceptions.
"""
class TinderException(Exception):
"""
"""
pass
class TinderAuthenticationException(TinderException):
"""
"""
pass
class TinderConnectionException(TinderException):
"""
"""
pass
| 11.909091 | 53 | 0.591603 | 16 | 262 | 9.6875 | 0.625 | 0.116129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005051 | 0.244275 | 262 | 21 | 54 | 12.47619 | 0.777778 | 0.129771 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
59ff6f1f6eb6cc6f26e6e29a5ea4a0e6cf9d1eae | 378 | py | Python | patterns.py | Glenn-Po/LearningPython | 96b12999d13b55216a3da6cf6b9248a8e86cbe0b | [
"Apache-2.0"
] | null | null | null | patterns.py | Glenn-Po/LearningPython | 96b12999d13b55216a3da6cf6b9248a8e86cbe0b | [
"Apache-2.0"
] | null | null | null | patterns.py | Glenn-Po/LearningPython | 96b12999d13b55216a3da6cf6b9248a8e86cbe0b | [
"Apache-2.0"
] | null | null | null | #patterns in programming
print('PATTERNS DISPLAY')
print('Pattern 1: Left aligned Right Angled Rriangle(R.A.T)')
h=eval(input('Enter the height of the RAT: '))
for i in range(h):
print('%-*s'%( h, '*'*(i+1)))
print('Pattern 2: Right aligned Right Angled Rriangle(R.A.T)')
h=eval(input('Enter the height of the RAT... | 29.076923 | 62 | 0.634921 | 66 | 378 | 3.636364 | 0.424242 | 0.1 | 0.15 | 0.216667 | 0.683333 | 0.683333 | 0.683333 | 0.683333 | 0.683333 | 0.683333 | 0 | 0.0125 | 0.153439 | 378 | 12 | 63 | 31.5 | 0.7375 | 0.060847 | 0 | 0.444444 | 0 | 0 | 0.536723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
94060fd32d2e0a29f233af9abd31815d05393803 | 181 | py | Python | 08-functions/make_complex.py | johnehunt/PythonCleanCode | b0ade446cc98cdc1379f06ad20cc3c6de772a2bb | [
"Apache-2.0"
] | 1 | 2020-05-11T13:58:29.000Z | 2020-05-11T13:58:29.000Z | 08-functions/make_complex.py | johnehunt/PythonCleanCode | b0ade446cc98cdc1379f06ad20cc3c6de772a2bb | [
"Apache-2.0"
] | null | null | null | 08-functions/make_complex.py | johnehunt/PythonCleanCode | b0ade446cc98cdc1379f06ad20cc3c6de772a2bb | [
"Apache-2.0"
] | null | null | null | def make_complex1(*args):
x, y = args
return dict(**locals())
def make_complex2(x, y):
return {'x': x, 'y': y}
print(make_complex1(5, 6))
print(make_complex2(5, 6))
| 15.083333 | 27 | 0.607735 | 30 | 181 | 3.533333 | 0.433333 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055172 | 0.198895 | 181 | 11 | 28 | 16.454545 | 0.675862 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.571429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
941ccb0b0171d99f02619b4617634083434ff44b | 606 | py | Python | baseDataType/List.py | lizhuxian020/ZXPythonPratice | 7f313a06cc1756fe2ddb1888ae7ec19ef04f2ef5 | [
"MIT"
] | null | null | null | baseDataType/List.py | lizhuxian020/ZXPythonPratice | 7f313a06cc1756fe2ddb1888ae7ec19ef04f2ef5 | [
"MIT"
] | null | null | null | baseDataType/List.py | lizhuxian020/ZXPythonPratice | 7f313a06cc1756fe2ddb1888ae7ec19ef04f2ef5 | [
"MIT"
] | null | null | null | # coding: utf-8
# Extend: 在a的基础上拼接
a = [1, 2, 3]
b = [4, 5, 6]
print a + b # 这个会生成新的List, 增大内存
a.extend(b)
print a
# insert: 在a的基础上直接插入b
a = [1, 2, 3]
b = [4, 5, 6]
a.insert(2, b)
print a
# append: 在a的末尾直接insert
a = [1, 2, 3]
b = [4, 5, 6]
a.append(b)
print a
# 列表推导式
# .得到1-10列表
print [x for x in range(1, 11)]
... | 17.823529 | 56 | 0.579208 | 130 | 606 | 2.7 | 0.307692 | 0.159544 | 0.102564 | 0.188034 | 0.401709 | 0.367521 | 0.330484 | 0.330484 | 0.193732 | 0.14245 | 0 | 0.107066 | 0.229373 | 606 | 34 | 56 | 17.823529 | 0.64454 | 0.249175 | 0 | 0.473684 | 0 | 0 | 0.013544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.526316 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9435679c968c9069aae459acdf9ab2764eebe0c3 | 5,000 | py | Python | test/test_bytecode_tracer_bytecode_tracer.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | test/test_bytecode_tracer_bytecode_tracer.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | test/test_bytecode_tracer_bytecode_tracer.py | h4ck3rm1k3/pythoscope | 0cefb34b86e2e81e29c0b93d27e3d4657db79912 | [
"MIT"
] | null | null | null | import unittest
class TestValueStack(unittest.TestCase):
def test___init__(self):
# value_stack = ValueStack(frame, bcode)
assert False # TODO: implement your test here
def test_bottom(self):
# value_stack = ValueStack(frame, bcode)
# self.assertEqual(expected, value_stack.bo... | 39.68254 | 82 | 0.7102 | 572 | 5,000 | 5.965035 | 0.134615 | 0.049238 | 0.10551 | 0.168816 | 0.746776 | 0.690504 | 0.621336 | 0.621336 | 0.534877 | 0.44109 | 0 | 0.003535 | 0.208 | 5,000 | 125 | 83 | 40 | 0.858081 | 0.526 | 0 | 0.47619 | 0 | 0 | 0.003465 | 0 | 0 | 0 | 0 | 0.008 | 0.380952 | 1 | 0.380952 | false | 0 | 0.015873 | 0 | 0.587302 | 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 |
944a2fc1fa14a5cf279851b1fde90c9ef911b207 | 178 | py | Python | lpproj/__init__.py | chlorochrule/lpproj | 9c9042b0c2d16c153b53dcc0a759c7fe8c272176 | [
"BSD-3-Clause"
] | 88 | 2016-01-12T01:52:02.000Z | 2021-12-02T03:16:47.000Z | lpproj/__init__.py | chlorochrule/lpproj | 9c9042b0c2d16c153b53dcc0a759c7fe8c272176 | [
"BSD-3-Clause"
] | 4 | 2016-01-14T16:32:59.000Z | 2020-08-26T19:26:42.000Z | lpproj/__init__.py | chlorochrule/lpproj | 9c9042b0c2d16c153b53dcc0a759c7fe8c272176 | [
"BSD-3-Clause"
] | 23 | 2016-01-13T19:24:56.000Z | 2021-10-03T23:27:29.000Z | """Python implementation of Locality Preserving Projections"""
from __future__ import absolute_import
from .lpproj import LocalityPreservingProjection
__version__ = '0.2.dev0'
| 25.428571 | 62 | 0.825843 | 19 | 178 | 7.263158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.106742 | 178 | 6 | 63 | 29.666667 | 0.849057 | 0.314607 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9454eb1bbc6ede6a3350afcd58c977379534abcc | 503 | py | Python | test_app/models/test_models.py | Grusinator/django-generic-serializer | 5a44651c64a0d036a532701d90e79aca243152e5 | [
"MIT"
] | null | null | null | test_app/models/test_models.py | Grusinator/django-generic-serializer | 5a44651c64a0d036a532701d90e79aca243152e5 | [
"MIT"
] | 1 | 2020-06-05T20:15:25.000Z | 2020-06-05T20:15:25.000Z | test_app/models/test_models.py | Grusinator/django-generic-serializer | 5a44651c64a0d036a532701d90e79aca243152e5 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
from generic_serializer import SerializableModel
class TestModel3(models.Model, SerializableModel):
text = models.TextField()
class TestModel2(models.Model, SerializableModel):
text = models.TextField()
test_model3 = models.ForeignKey(TestModel3, ... | 26.473684 | 73 | 0.781312 | 56 | 503 | 6.928571 | 0.446429 | 0.085052 | 0.216495 | 0.247423 | 0.384021 | 0.384021 | 0.262887 | 0 | 0 | 0 | 0 | 0.016018 | 0.131213 | 503 | 18 | 74 | 27.944444 | 0.871854 | 0.047714 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
94551c53e514a9960741dd3b7cd1160c90d885f9 | 272 | py | Python | cc/forms.py | limpbrains/django-cc | 3af391ebac929c46f24e6ea6019e5edb3e410e61 | [
"MIT"
] | 127 | 2015-02-16T06:51:26.000Z | 2022-03-15T03:22:54.000Z | cc/forms.py | kcyeu/django-cc | 100771a707f37eca5e5eb106a6cf4eaffdfde460 | [
"MIT"
] | 25 | 2017-06-19T22:32:06.000Z | 2021-02-10T08:28:48.000Z | cc/forms.py | kcyeu/django-cc | 100771a707f37eca5e5eb106a6cf4eaffdfde460 | [
"MIT"
] | 50 | 2015-05-09T22:00:05.000Z | 2022-01-19T09:42:48.000Z | from __future__ import absolute_import
from django import forms
from .models import Wallet
class WalletAdminForm(forms.ModelForm):
class Meta:
model = Wallet
exclude = []
def clean_label(self):
return self.cleaned_data['label'] or None
| 19.428571 | 49 | 0.698529 | 33 | 272 | 5.545455 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 272 | 13 | 50 | 20.923077 | 0.879808 | 0 | 0 | 0 | 0 | 0 | 0.018382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
9458f9fb3a25e37e122de52db05ed88a29bafda4 | 415 | py | Python | tests/test_information_extraction_runner.py | ht-loefflad/hidden_pdfs_heilbronn | 662edefc42256ee661095ea1a525decf543bd75d | [
"CC-BY-4.0"
] | null | null | null | tests/test_information_extraction_runner.py | ht-loefflad/hidden_pdfs_heilbronn | 662edefc42256ee661095ea1a525decf543bd75d | [
"CC-BY-4.0"
] | 3 | 2022-03-16T15:20:16.000Z | 2022-03-22T08:43:34.000Z | tests/test_information_extraction_runner.py | ht-loefflad/hidden_pdfs_heilbronn | 662edefc42256ee661095ea1a525decf543bd75d | [
"CC-BY-4.0"
] | null | null | null | import pytest
from src.information_extraction.runner import InformationExtractionEngineRunner
from tests.test_config import TestConfig
class TestInformationExtractionEngineRunner(TestConfig):
@pytest.fixture
def iee_runner(self):
return InformationExtractionEngineRunner(self.result_dirpath)
def ... | 29.642857 | 79 | 0.816867 | 46 | 415 | 7.086957 | 0.565217 | 0.082822 | 0.067485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13012 | 415 | 13 | 80 | 31.923077 | 0.903047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
947079b3e4288df41606753d304b51c4244edd55 | 143 | py | Python | test/test_rom_patcher.py | henriquegemignani/Super-Duper-Metroid | 045791f84c75abea4e64616f9fa35d40eb1e27bb | [
"MIT"
] | null | null | null | test/test_rom_patcher.py | henriquegemignani/Super-Duper-Metroid | 045791f84c75abea4e64616f9fa35d40eb1e27bb | [
"MIT"
] | null | null | null | test/test_rom_patcher.py | henriquegemignani/Super-Duper-Metroid | 045791f84c75abea4e64616f9fa35d40eb1e27bb | [
"MIT"
] | null | null | null | from SuperDuperMetroid import ROM_Patcher
def test_genVanillaGame():
result = ROM_Patcher.genVanillaGame()
assert len(result) == 100
| 20.428571 | 41 | 0.762238 | 16 | 143 | 6.625 | 0.75 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.160839 | 143 | 6 | 42 | 23.833333 | 0.858333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 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 |
947f88070163770b43decbe23c41bc0d45f8e481 | 149 | py | Python | ProgrammingBasicWithPython-KCL/Chapter-2/Finding-Minimun-Number.py | mrmyothet/IPND | 204e010f815fa10951daf38669a9323cb6b13147 | [
"MIT"
] | 1 | 2020-07-04T14:00:48.000Z | 2020-07-04T14:00:48.000Z | ProgrammingBasicWithPython-KCL/Chapter-2/Finding-Minimun-Number.py | mrmyothet/IPND | 204e010f815fa10951daf38669a9323cb6b13147 | [
"MIT"
] | 20 | 2020-06-01T04:32:16.000Z | 2020-09-14T07:18:54.000Z | ProgrammingBasicWithPython-KCL/Chapter-2/Finding-Minimun-Number.py | mrmyothet/ipnd | 204e010f815fa10951daf38669a9323cb6b13147 | [
"MIT"
] | null | null | null | list = [50,100,150,200,250,300]
mininumber = list[0]
for x in list:
if mininumber > x:
mininumber = x
print("mininumber is ",mininumber)
| 21.285714 | 34 | 0.651007 | 23 | 149 | 4.217391 | 0.652174 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.214765 | 149 | 6 | 35 | 24.833333 | 0.675214 | 0 | 0 | 0 | 0 | 0 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 |
948e60ad01020d73c1f72cb318803b49b7b6a035 | 328 | py | Python | AirbnbViz/tests/generate_listings.py | wangbeiqi199159/AirbnbViz | 874c7d0683015c6ef6304b0bb5e52446fa2ab0f2 | [
"MIT"
] | null | null | null | AirbnbViz/tests/generate_listings.py | wangbeiqi199159/AirbnbViz | 874c7d0683015c6ef6304b0bb5e52446fa2ab0f2 | [
"MIT"
] | null | null | null | AirbnbViz/tests/generate_listings.py | wangbeiqi199159/AirbnbViz | 874c7d0683015c6ef6304b0bb5e52446fa2ab0f2 | [
"MIT"
] | null | null | null | def generate_listings():
"""
This model read home listing information then transform it into .js formate
It generates listings.js under html/js
"""
data1 = pd.read_csv("../../data/listings.csv")
listing = data1.to_json(orient='records')
file = open("../../html/js/listings.js", "w")
file.write( "var listings = " + l... | 32.8 | 75 | 0.698171 | 47 | 328 | 4.808511 | 0.659574 | 0.088496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.128049 | 328 | 9 | 76 | 36.444444 | 0.783217 | 0 | 0 | 0 | 1 | 0 | 0.34466 | 0.23301 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8474c89a2adc6e8d57224aebc43cce162c6cd09e | 727 | py | Python | zhtools/utils/storage.py | Linusp/zhtools | ee4254206f4b522108dea6fe70fcde4d848b38b7 | [
"MIT"
] | 3 | 2019-07-16T12:55:06.000Z | 2019-12-19T07:24:33.000Z | zhtools/utils/storage.py | Linusp/zhtools | ee4254206f4b522108dea6fe70fcde4d848b38b7 | [
"MIT"
] | null | null | null | zhtools/utils/storage.py | Linusp/zhtools | ee4254206f4b522108dea6fe70fcde4d848b38b7 | [
"MIT"
] | 2 | 2019-01-03T13:30:49.000Z | 2021-07-03T15:42:24.000Z | from copy import deepcopy
from abc import ABC, abstractmethod
class Storage(ABC):
def __init__(self, *args, **kwargs):
pass
@abstractmethod
def get_by_id(self, uuid):
pass
@abstractmethod
def add_document(self, document):
pass
class MemoryDocumentStorage(Storage):
... | 19.131579 | 48 | 0.621733 | 88 | 727 | 4.886364 | 0.352273 | 0.093023 | 0.090698 | 0.046512 | 0.204651 | 0.083721 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287483 | 727 | 37 | 49 | 19.648649 | 0.830116 | 0 | 0 | 0.375 | 0 | 0 | 0.005502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.083333 | 0.041667 | 0.583333 | 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 |
848d3a7eea66b7e909d1f57c06a603ff2c42278c | 315 | py | Python | youpy/examples/SimpleBasketBall/Hand/Hand.py | youpy-org/youpy | 0b3b31043d0c517615c99eaf02d3464c50d59cb4 | [
"BSD-3-Clause"
] | null | null | null | youpy/examples/SimpleBasketBall/Hand/Hand.py | youpy-org/youpy | 0b3b31043d0c517615c99eaf02d3464c50d59cb4 | [
"BSD-3-Clause"
] | null | null | null | youpy/examples/SimpleBasketBall/Hand/Hand.py | youpy-org/youpy | 0b3b31043d0c517615c99eaf02d3464c50d59cb4 | [
"BSD-3-Clause"
] | 1 | 2020-12-08T08:08:52.000Z | 2020-12-08T08:08:52.000Z | from youpy.code.english.everything import *
def when_backdrop_switches_to_InGame():
go_to(0, -160)
show()
def when_right_arrow_key_pressed():
move(10)
def when_left_arrow_key_pressed():
move(-10)
def when_backdrop_switches_to_GameOver():
hide()
# stop_others()
stop()
run(locals())
| 16.578947 | 43 | 0.704762 | 45 | 315 | 4.533333 | 0.644444 | 0.137255 | 0.147059 | 0.22549 | 0.485294 | 0.27451 | 0.27451 | 0 | 0 | 0 | 0 | 0.030769 | 0.174603 | 315 | 18 | 44 | 17.5 | 0.753846 | 0.04127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.083333 | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
849455620a49e9599ae3df244e8d940d92eff073 | 619 | py | Python | pyorbit/classes/dummy.py | lucaborsato/PyORBIT | 700146d59674dae77983da979af39cef7c77f408 | [
"MIT"
] | null | null | null | pyorbit/classes/dummy.py | lucaborsato/PyORBIT | 700146d59674dae77983da979af39cef7c77f408 | [
"MIT"
] | null | null | null | pyorbit/classes/dummy.py | lucaborsato/PyORBIT | 700146d59674dae77983da979af39cef7c77f408 | [
"MIT"
] | null | null | null | def pytrades():
pass
def DiffEvol():
pass
def PyPolyChord():
pass
def PolyChord():
pass
def celerite():
pass
def ttvfast():
pass
def george():
pass
def batman():
pass
def dynesty():
pass
## absurd workaround to fix the lack of celerite in the system
def Celerite_QuasiPeriodi... | 13.456522 | 62 | 0.612278 | 83 | 619 | 4.349398 | 0.433735 | 0.155125 | 0.091413 | 0.083102 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.281099 | 619 | 45 | 63 | 13.755556 | 0.8 | 0.135703 | 0 | 0.413793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0.344828 | 0 | 0 | 0.551724 | 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 |
84c652e3a4263c2616b068a7e71276df3a8d6f84 | 1,087 | py | Python | aiotdlib/api/types/added_reaction.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | null | null | null | aiotdlib/api/types/added_reaction.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | null | null | null | aiotdlib/api/types/added_reaction.py | mostafa-arshadi/aiotdlib | 59f430a65dfb424fc69d471a0d7bcd77ad7acf08 | [
"MIT"
] | null | null | null | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 32.939394 | 83 | 0.486661 | 87 | 1,087 | 5.977011 | 0.551724 | 0.046154 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306348 | 1,087 | 32 | 84 | 33.96875 | 0.689655 | 0.589696 | 0 | 0 | 1 | 0 | 0.046036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0.090909 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
84d287cd0a27a2bb78f555b6497934e2b1d8c5e3 | 1,032 | py | Python | androidHelper/SketchDipCalculator.py | soumikmohianuta/Doodle2App | 384d4e66124b510370ed01edd00881746d987afd | [
"BSD-3-Clause"
] | 2 | 2020-03-27T22:15:35.000Z | 2020-12-23T15:32:42.000Z | androidHelper/SketchDipCalculator.py | soumikmohianuta/Doodle2App | 384d4e66124b510370ed01edd00881746d987afd | [
"BSD-3-Clause"
] | null | null | null | androidHelper/SketchDipCalculator.py | soumikmohianuta/Doodle2App | 384d4e66124b510370ed01edd00881746d987afd | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 28 00:08:24 2017
@author: soumi
"""
## scale canvas pixels to android screen pixel
class SketchDipCalculator:
def __init__(self, width, height):
self.mHeightPx=height
self.mWidthPx = width
## default screen size consid... | 24.571429 | 66 | 0.622093 | 112 | 1,032 | 5.696429 | 0.473214 | 0.056426 | 0.025078 | 0.047022 | 0.147335 | 0.147335 | 0 | 0 | 0 | 0 | 0 | 0.026207 | 0.297481 | 1,032 | 41 | 67 | 25.170732 | 0.853793 | 0.264535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0.25 | 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 |
84d98d089003b61bebc22ccfcce2a5fba8635584 | 574 | py | Python | polls/models.py | ginttone/multi_django | 3f5f899cf8c835f53423b87a26fb812884b4ef1d | [
"Apache-2.0"
] | null | null | null | polls/models.py | ginttone/multi_django | 3f5f899cf8c835f53423b87a26fb812884b4ef1d | [
"Apache-2.0"
] | null | null | null | polls/models.py | ginttone/multi_django | 3f5f899cf8c835f53423b87a26fb812884b4ef1d | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class Question(models.Model):
question_text = models.CharField(max_length=100)#column(변수),datatype
public_date = models.CharField(max_length=100) #DateTimeField
votes = models.DecimalField(max_digits=20,decimal_places=10) #BigIntegerField
class Econo... | 47.833333 | 81 | 0.777003 | 81 | 574 | 5.382716 | 0.617284 | 0.172018 | 0.206422 | 0.275229 | 0.327982 | 0.142202 | 0 | 0 | 0 | 0 | 0 | 0.038076 | 0.130662 | 574 | 12 | 82 | 47.833333 | 0.835671 | 0.280488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
84da35a43c66b1c8fb3b7fb7b67c6696eda6da0a | 204 | py | Python | scripts/collector.py | nicolamasotti/tunnel-runner | 35c5e92a3c71936f45307c8be219c99b19c4d614 | [
"MIT"
] | null | null | null | scripts/collector.py | nicolamasotti/tunnel-runner | 35c5e92a3c71936f45307c8be219c99b19c4d614 | [
"MIT"
] | null | null | null | scripts/collector.py | nicolamasotti/tunnel-runner | 35c5e92a3c71936f45307c8be219c99b19c4d614 | [
"MIT"
] | null | null | null | from bge import logic
def collect(cont):
collision_sensor = cont.sensors['Collision']
hit_list = collision_sensor.hitObjectList
for game_object in hit_list:
game_object.endObject()
| 20.4 | 48 | 0.730392 | 26 | 204 | 5.5 | 0.692308 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196078 | 204 | 9 | 49 | 22.666667 | 0.871951 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
84dadb3307bb132c1515da1b4353fa79545d2158 | 3,673 | py | Python | constances.py | nkamkheaw/Early-Signal-Platform | 71ef1b6eb65b362825c1f2dc218e1f136c79ff28 | [
"BSD-2-Clause"
] | null | null | null | constances.py | nkamkheaw/Early-Signal-Platform | 71ef1b6eb65b362825c1f2dc218e1f136c79ff28 | [
"BSD-2-Clause"
] | null | null | null | constances.py | nkamkheaw/Early-Signal-Platform | 71ef1b6eb65b362825c1f2dc218e1f136c79ff28 | [
"BSD-2-Clause"
] | null | null | null | from typing import Any, Dict, List
APP_NAME: str = "Early Signal Platform"
ESP_OVERRIDE_STRING: str = "ESPOVERRIDE"
CHECK_RUN_TITLE: str = "Test Results"
CHECK_RUN_STATUS_IN_PROGRESS: str = "in_progress"
CHECK_RUN_STATUS_COMPLETED: str = "completed"
CHECK_STATUS_RUNNING: str = "in_progress" # Run status:... | 51.013889 | 137 | 0.641165 | 491 | 3,673 | 4.678208 | 0.232179 | 0.067044 | 0.057466 | 0.078363 | 0.649108 | 0.58424 | 0.58424 | 0.58424 | 0.545929 | 0.545929 | 0 | 0.170375 | 0.180234 | 3,673 | 72 | 138 | 51.013889 | 0.592494 | 0.049551 | 0 | 0.215385 | 0 | 0.215385 | 0.617613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.015385 | 0 | 0.015385 | 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 |
84e773c18424550c6483a2eb1bbfa04759642f5d | 87 | py | Python | grease/controller/__init__.py | Beliaar/bGrease | 24a0e3f2ed9ba57c8e3e83e16d16409ca2551c44 | [
"MIT"
] | 1 | 2018-07-17T03:53:43.000Z | 2018-07-17T03:53:43.000Z | grease/controller/__init__.py | Beliaar/bGrease | 24a0e3f2ed9ba57c8e3e83e16d16409ca2551c44 | [
"MIT"
] | null | null | null | grease/controller/__init__.py | Beliaar/bGrease | 24a0e3f2ed9ba57c8e3e83e16d16409ca2551c44 | [
"MIT"
] | null | null | null |
__all__ = ('EulerMovement',)
from bGrease.controller.integrator import EulerMovement
| 17.4 | 55 | 0.804598 | 8 | 87 | 8.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 87 | 4 | 56 | 21.75 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.151163 | 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 |
ca22fed4bec1623fd8c0af7d8c562843ea23487a | 1,855 | py | Python | results.py | mingye-fsu/Python-code-of-Morris-Sensitivity-Analysis-for-a-single-model | 75c69d15522376052cfe9109ff936eda823207bb | [
"MIT"
] | 2 | 2020-06-18T15:19:46.000Z | 2020-06-18T15:21:07.000Z | results.py | mingye-fsu/Python-code-of-Morris-Sensitivity-Analysis-for-a-single-model | 75c69d15522376052cfe9109ff936eda823207bb | [
"MIT"
] | null | null | null | results.py | mingye-fsu/Python-code-of-Morris-Sensitivity-Analysis-for-a-single-model | 75c69d15522376052cfe9109ff936eda823207bb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 26 14:56:47 2019
@author: Jing Yang (jyang7@fsu.edu) and Ming Ye (mye@fsu.edu). This program was modified from the python codes
available at https://salib.readthedocs.io/en/latest/api.html.
The MIT License (MIT)
Copyright (c) 2019 Jing Yang and Ming Ye
Permission is h... | 51.527778 | 158 | 0.738005 | 284 | 1,855 | 4.788732 | 0.59507 | 0.064706 | 0.013235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011968 | 0.189218 | 1,855 | 36 | 159 | 51.527778 | 0.892287 | 0.815633 | 0 | 0 | 0 | 0 | 0.032051 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ca58ac6c552b3121a69854909420bfafe2b343bb | 83 | py | Python | Chapter16/Ex16-2.1.py | MJC-code/thinkpython | c92702b64a174e85294b17d8bed870977007842b | [
"Unlicense"
] | null | null | null | Chapter16/Ex16-2.1.py | MJC-code/thinkpython | c92702b64a174e85294b17d8bed870977007842b | [
"Unlicense"
] | null | null | null | Chapter16/Ex16-2.1.py | MJC-code/thinkpython | c92702b64a174e85294b17d8bed870977007842b | [
"Unlicense"
] | null | null | null | import datetime
today = datetime.date.today()
print(today, today.strftime("%A"))
| 13.833333 | 34 | 0.722892 | 11 | 83 | 5.454545 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108434 | 83 | 5 | 35 | 16.6 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 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 |
048d7fd4302b66e7626f468d9b3a5376057d1ba7 | 9,910 | py | Python | server/processes/migrations/0001_initial.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | server/processes/migrations/0001_initial.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | 6 | 2021-11-01T01:35:40.000Z | 2022-02-11T03:33:06.000Z | server/processes/migrations/0001_initial.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | # Generated by Django 2.2.2 on 2019-06-10 05:32
from django.conf import settings
import django.contrib.postgres.fields
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = Tr... | 69.788732 | 165 | 0.633703 | 1,071 | 9,910 | 5.615313 | 0.159664 | 0.047888 | 0.093116 | 0.111739 | 0.818257 | 0.744097 | 0.621383 | 0.585467 | 0.570336 | 0.519122 | 0 | 0.020483 | 0.231483 | 9,910 | 141 | 166 | 70.283688 | 0.76917 | 0.004541 | 0 | 0.373134 | 1 | 0 | 0.178873 | 0.07375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044776 | 0 | 0.074627 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
0493db52a1fd2a26cf83e4eec01bfae409633ec2 | 19 | py | Python | MakeMatter/__init__.py | FoamyGuy/MatterMaker | 89b2400b419bd73154cc7c3728201f64857aad40 | [
"Unlicense"
] | null | null | null | MakeMatter/__init__.py | FoamyGuy/MatterMaker | 89b2400b419bd73154cc7c3728201f64857aad40 | [
"Unlicense"
] | null | null | null | MakeMatter/__init__.py | FoamyGuy/MatterMaker | 89b2400b419bd73154cc7c3728201f64857aad40 | [
"Unlicense"
] | null | null | null | __author__ = 'o_O'
| 9.5 | 18 | 0.684211 | 3 | 19 | 2.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 1 | 19 | 19 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 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 |
0495a6851e5c94de151f4c0155b417936e8576e3 | 1,590 | py | Python | gateway/can/control/matcher.py | aceofwings/Cantactular | a6eb8d7128fd1388d3e75c1a8415123d1d5930e1 | [
"MIT"
] | 3 | 2017-01-26T01:37:42.000Z | 2018-07-22T02:42:52.000Z | gateway/can/control/matcher.py | aceofwings/Cantactular | a6eb8d7128fd1388d3e75c1a8415123d1d5930e1 | [
"MIT"
] | 1 | 2017-07-07T18:02:20.000Z | 2017-07-07T18:02:20.000Z | gateway/can/control/matcher.py | aceofwings/Evt-Gateway | a6eb8d7128fd1388d3e75c1a8415123d1d5930e1 | [
"MIT"
] | null | null | null | from gateway.can.controllers.base import OPENCAN
from gateway.can.traffic.message import CanMessage
from gateway.can.control.notices import NewConnection
###Matcher Constants###
ALL = "*"
class Matcher(object):
"""
Responsible for matching messages with their respected handlers.
Depending on the protocol t... | 24.461538 | 90 | 0.678616 | 186 | 1,590 | 5.66129 | 0.451613 | 0.031339 | 0.039886 | 0.032289 | 0.053181 | 0.053181 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240881 | 1,590 | 64 | 91 | 24.84375 | 0.872411 | 0.289937 | 0 | 0.137931 | 0 | 0 | 0.026214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.068966 | 0.103448 | 0.068966 | 0.689655 | 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 |
04bfefe88b9e532748e94796d63a657218c4b4d7 | 240 | py | Python | 10-scnd-list-comprehension.py | xoempire/Python-Challanges | 81160fae87426fe54a30c510d99e284e850a17ad | [
"MIT"
] | null | null | null | 10-scnd-list-comprehension.py | xoempire/Python-Challanges | 81160fae87426fe54a30c510d99e284e850a17ad | [
"MIT"
] | null | null | null | 10-scnd-list-comprehension.py | xoempire/Python-Challanges | 81160fae87426fe54a30c510d99e284e850a17ad | [
"MIT"
] | null | null | null | flist=[1, 23543145, 12452346, 32465234, 234123, 213132, 3534, 11, 234, 22, 22, 2534, 2351234, 23452345]
slist=[2342345, 23453456, 12, 22, 23452346, 2346235762457, 2222, 2345,22]
new_list=[i for i in flist if i in slist]
print(set(new_list)) | 60 | 103 | 0.729167 | 40 | 240 | 4.325 | 0.75 | 0.080925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.569378 | 0.129167 | 240 | 4 | 104 | 60 | 0.258373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
04e70cedc48bae4ab0f057ac8a703eab5828ac45 | 3,556 | py | Python | pyefun/timeBase.py | liguoqing-byte/pyefun | 773b89944aae5beb060d75f21cf1553bb359660a | [
"Apache-2.0"
] | null | null | null | pyefun/timeBase.py | liguoqing-byte/pyefun | 773b89944aae5beb060d75f21cf1553bb359660a | [
"Apache-2.0"
] | null | null | null | pyefun/timeBase.py | liguoqing-byte/pyefun | 773b89944aae5beb060d75f21cf1553bb359660a | [
"Apache-2.0"
] | null | null | null | """
.. Hint::
日期时间操作 符合中国人思维逻辑的日期时间操作实用函数
.. literalinclude:: ../../../pyefun/timeBase_test.py
:language: python
:caption: 代码示例
:linenos:
"""
import time
import pendulum
import copy
from .stringBase import *
def 时间_设置语言包(名称="zh"):
pendulum.set_locale(名称)
# 文档
# https://pendulum.eustace.io/d... | 21.04142 | 88 | 0.547244 | 465 | 3,556 | 4.107527 | 0.28172 | 0.068063 | 0.092147 | 0.117801 | 0.079581 | 0.042932 | 0 | 0 | 0 | 0 | 0 | 0.004085 | 0.311586 | 3,556 | 168 | 89 | 21.166667 | 0.776144 | 0.092238 | 0 | 0.076923 | 0 | 0 | 0.02756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0.009615 | 0.038462 | 0.192308 | 0.653846 | 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 |
04fafeef5db0ffcdba2eef5c54c73cf0d72745f8 | 1,724 | py | Python | updateme/models.py | Faihope/UpdateMe | 395650eeca0ffa8b27762f187aaa8d5b4ce04d1c | [
"MIT"
] | null | null | null | updateme/models.py | Faihope/UpdateMe | 395650eeca0ffa8b27762f187aaa8d5b4ce04d1c | [
"MIT"
] | null | null | null | updateme/models.py | Faihope/UpdateMe | 395650eeca0ffa8b27762f187aaa8d5b4ce04d1c | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models.deletion import CASCADE
# Create your models here.
class Admin(models.Model):
name=models.CharField(max_length=100)
def __str__(self):
return self.name
def save_admin(self):
self.save()
def delete_admin(self):
self.delete()
... | 22.684211 | 79 | 0.689675 | 219 | 1,724 | 5.246575 | 0.214612 | 0.05483 | 0.078329 | 0.104439 | 0.554395 | 0.504787 | 0.504787 | 0.430809 | 0.228024 | 0.228024 | 0 | 0.013168 | 0.207077 | 1,724 | 76 | 80 | 22.684211 | 0.827359 | 0.013921 | 0 | 0.510204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.306122 | false | 0.102041 | 0.040816 | 0.081633 | 0.77551 | 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 |
b6c2f1079ed167eb9eaeaf17020ce6c9b9aeb603 | 118 | py | Python | forms-flow-api/src/formsflow_api/__init__.py | sreehari-aot/forms-flow-ai | 11e2fdd6da792aaa9dd46c0cec38564fe5916b58 | [
"Apache-2.0"
] | null | null | null | forms-flow-api/src/formsflow_api/__init__.py | sreehari-aot/forms-flow-ai | 11e2fdd6da792aaa9dd46c0cec38564fe5916b58 | [
"Apache-2.0"
] | null | null | null | forms-flow-api/src/formsflow_api/__init__.py | sreehari-aot/forms-flow-ai | 11e2fdd6da792aaa9dd46c0cec38564fe5916b58 | [
"Apache-2.0"
] | null | null | null | """The forms flow API service."""
from formsflow_api.app import create_app, setup_jwt_manager
__version__ = "4.0.5"
| 19.666667 | 59 | 0.754237 | 19 | 118 | 4.263158 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029126 | 0.127119 | 118 | 5 | 60 | 23.6 | 0.757282 | 0.228814 | 0 | 0 | 0 | 0 | 0.058824 | 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 |
8e13f96cb332aa7c1640432d391af44f063dcfc2 | 6,849 | py | Python | tests/test_error_functions.py | jwsiegel2510/ESPEI | cb72f676138c96d560d8b83cea6b7ca2da100078 | [
"MIT"
] | null | null | null | tests/test_error_functions.py | jwsiegel2510/ESPEI | cb72f676138c96d560d8b83cea6b7ca2da100078 | [
"MIT"
] | null | null | null | tests/test_error_functions.py | jwsiegel2510/ESPEI | cb72f676138c96d560d8b83cea6b7ca2da100078 | [
"MIT"
] | null | null | null | """
Test different error functions as isolated units.
"""
import numpy as np
from tinydb import where
from pycalphad import Database
from espei.paramselect import generate_parameters
from espei.error_functions import calculate_activity_error, calculate_thermochemical_error, calculate_zpf_error, get_thermochemical_da... | 37.839779 | 150 | 0.652358 | 866 | 6,849 | 4.909931 | 0.209007 | 0.056444 | 0.027516 | 0.027987 | 0.742239 | 0.705786 | 0.6865 | 0.642286 | 0.624647 | 0.614064 | 0 | 0.031583 | 0.218718 | 6,849 | 180 | 151 | 38.05 | 0.763035 | 0.157541 | 0 | 0.623077 | 1 | 0 | 0.121021 | 0.049318 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.053846 | false | 0 | 0.061538 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e44d698a180b701a833e5e05f2df150b8bc0d74 | 503 | py | Python | avishan/migrations/0013_auto_20200622_1536.py | Afshari9978/django-avishan | 67b997e1063a1f2cf17699eaa292a98844aa0fe9 | [
"MIT"
] | 1 | 2021-05-09T09:55:54.000Z | 2021-05-09T09:55:54.000Z | avishan/migrations/0013_auto_20200622_1536.py | Afshari9978/django-avishan | 67b997e1063a1f2cf17699eaa292a98844aa0fe9 | [
"MIT"
] | null | null | null | avishan/migrations/0013_auto_20200622_1536.py | Afshari9978/django-avishan | 67b997e1063a1f2cf17699eaa292a98844aa0fe9 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-22 15:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('avishan', '0012_delete_requesttrackexecinfo'),
]
operations = [
migrations.RenameField(
model_name='email',
old_name='addres... | 20.958333 | 56 | 0.554672 | 49 | 503 | 5.530612 | 0.693878 | 0.154982 | 0.191882 | 0.221402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056548 | 0.332008 | 503 | 23 | 57 | 21.869565 | 0.75 | 0.089463 | 0 | 0.352941 | 1 | 0 | 0.149123 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f3efbc06f30a2a11000487edf9c8b6dc51dc8c5a | 294 | py | Python | reservoirpy/pvtpy/black_oil/__init__.py | scuervo91/reservoirpy | a4db620baf3ff66a85c7f61b1919713a8642e6fc | [
"MIT"
] | 16 | 2020-05-07T01:57:04.000Z | 2021-11-27T12:45:59.000Z | reservoirpy/pvtpy/black_oil/__init__.py | scuervo91/reservoirpy | a4db620baf3ff66a85c7f61b1919713a8642e6fc | [
"MIT"
] | null | null | null | reservoirpy/pvtpy/black_oil/__init__.py | scuervo91/reservoirpy | a4db620baf3ff66a85c7f61b1919713a8642e6fc | [
"MIT"
] | 5 | 2020-05-12T07:28:24.000Z | 2021-12-10T21:24:59.000Z | from .pvt import Pvt, Oil, Water, properties_df,Chromatography, Gas
from .correlations import n2_correction, co2_correction, h2s_correction, pb, rs, \
bo, rho_oil, co, muod, muo,rsw, bw, cw, muw, rhow, rhog, z_factor, bg, eg, critical_properties,\
critical_properties_correction, cg | 73.5 | 100 | 0.748299 | 43 | 294 | 4.906977 | 0.767442 | 0.170616 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.14966 | 294 | 4 | 101 | 73.5 | 0.832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f3fef6df132bee59da60734f14dbf62f1f4d04c7 | 418 | py | Python | tests/test_odapi.py | PederHA/odherogrid | 3e9a5eb0949dc677961e86bf52c838a066f4b5fb | [
"MIT"
] | 5 | 2020-08-01T19:45:51.000Z | 2021-05-17T20:40:42.000Z | tests/test_odapi.py | PederHA/odherogrid | 3e9a5eb0949dc677961e86bf52c838a066f4b5fb | [
"MIT"
] | 3 | 2020-08-02T00:00:39.000Z | 2021-06-02T00:24:56.000Z | tests/test_odapi.py | PederHA/odherogrid | 3e9a5eb0949dc677961e86bf52c838a066f4b5fb | [
"MIT"
] | 2 | 2020-08-17T18:15:08.000Z | 2021-04-02T16:54:20.000Z | def test_opendota_api_type(heroes):
# Ensure data returned by fetch_hero_stats() is a list
assert isinstance(heroes, list)
def test_opendota_api_count(heroes, N_HEROES):
# Ensure all heroes are included
assert len(heroes) == N_HEROES
def test_opendota_api_contents(heroes, N_HEROES):
# Verify tha... | 29.857143 | 58 | 0.753589 | 64 | 418 | 4.703125 | 0.5 | 0.069767 | 0.149502 | 0.179402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179426 | 418 | 13 | 59 | 32.153846 | 0.877551 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d023872fa80861f0372b47091757b94266301ae | 525 | py | Python | lego/apps/restricted/exceptions.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 45 | 2017-10-24T12:09:06.000Z | 2021-11-03T21:21:03.000Z | lego/apps/restricted/exceptions.py | ollfkaih/lego | b15aacaf09efe90e7f984d25b0e7bddbe12647e8 | [
"MIT"
] | 980 | 2017-10-24T12:29:07.000Z | 2022-03-31T04:04:31.000Z | lego/apps/restricted/exceptions.py | wahello/lego | a0b02f3abc997fe96326e9c9c05b49847170041b | [
"MIT"
] | 23 | 2018-04-11T16:34:22.000Z | 2021-11-23T12:28:30.000Z | class ParserException(Exception):
"""
Base exception for the email parser.
"""
pass
class ParseEmailException(ParserException):
"""
Raised when the parser can't create a email.message.Message object of the raw string or bytes.
"""
pass
class MessageIDNotExistException(ParserExcepti... | 16.935484 | 98 | 0.670476 | 56 | 525 | 6.285714 | 0.553571 | 0.076705 | 0.213068 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247619 | 525 | 30 | 99 | 17.5 | 0.891139 | 0.422857 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
6d1c44d0ff37531078f2b1d155e0f8fa4d75c2f9 | 280 | py | Python | project_based_programming/ch10/file_writer.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | project_based_programming/ch10/file_writer.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | project_based_programming/ch10/file_writer.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | filename = 'programming.txt'
with open(filename, 'w') as file_obj:
file_obj.write("I love programming.\n")
file_obj.write("I love creating new games.\n")
# 附加到文件
with open(filename, 'a') as file_obj:
file_obj.write("I also love finding meaning in large datasets.\n") | 31.111111 | 70 | 0.707143 | 46 | 280 | 4.195652 | 0.521739 | 0.181347 | 0.186529 | 0.202073 | 0.336788 | 0.227979 | 0.227979 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 280 | 9 | 70 | 31.111111 | 0.817797 | 0.017857 | 0 | 0 | 0 | 0 | 0.416058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d2b69f0a0da63b395372c04b15f38ecd8c01ae9 | 284 | py | Python | clients/python/tests/test_backend.py | WeLogix/marquez | b5909ef3d772f649840d5c82161c4efdb8a556c7 | [
"Apache-2.0"
] | 13 | 2019-01-26T02:09:38.000Z | 2020-11-27T18:01:51.000Z | clients/python/tests/test_backend.py | WeLogix/marquez | b5909ef3d772f649840d5c82161c4efdb8a556c7 | [
"Apache-2.0"
] | 96 | 2019-02-19T17:39:46.000Z | 2020-12-04T17:42:26.000Z | clients/python/tests/test_backend.py | WeLogix/marquez | b5909ef3d772f649840d5c82161c4efdb8a556c7 | [
"Apache-2.0"
] | 16 | 2019-03-13T18:34:00.000Z | 2020-10-31T23:26:31.000Z | import pytest
from marquez_client.backend import Backend
def test_put():
with pytest.raises(NotImplementedError):
Backend().put(path='', headers='', payload='')
def test_post():
with pytest.raises(NotImplementedError):
Backend().post(path='', headers='')
| 20.285714 | 54 | 0.679577 | 31 | 284 | 6.129032 | 0.516129 | 0.073684 | 0.168421 | 0.368421 | 0.442105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 284 | 13 | 55 | 21.846154 | 0.805085 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d34760660fec196e127f3f150fc07281d3e29e2 | 45,421 | py | Python | guimotoman.py | Jilermo/GUI-for-the-control-of-differen-robots | 0aebef1e84b9a5a217b985700706da6fe6b3e058 | [
"MIT"
] | null | null | null | guimotoman.py | Jilermo/GUI-for-the-control-of-differen-robots | 0aebef1e84b9a5a217b985700706da6fe6b3e058 | [
"MIT"
] | null | null | null | guimotoman.py | Jilermo/GUI-for-the-control-of-differen-robots | 0aebef1e84b9a5a217b985700706da6fe6b3e058 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
import numpy as np
from matplotlib.widgets import Slider,CheckButtons,Button
from robolink import *
fig, ax = plt.subplots()
plt.subplots_adjust(left=0,bottom=0.28,right=1,top=1)
ax = plt.axes(projection = "3d")
def mmatrix(*matrices):
n=... | 27.100835 | 100 | 0.496797 | 8,242 | 45,421 | 2.734288 | 0.053749 | 0.025737 | 0.061679 | 0.098687 | 0.747382 | 0.699681 | 0.675852 | 0.666889 | 0.662141 | 0.635605 | 0 | 0.219564 | 0.269215 | 45,421 | 1,675 | 101 | 27.117015 | 0.459374 | 0.006231 | 0 | 0.662846 | 0 | 0 | 0.014204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03439 | false | 0 | 0.003372 | 0 | 0.046527 | 0.025624 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 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 |
6d5ade9cf6482cba40a36a6a4062028e0e1dd03b | 2,628 | py | Python | School/classes.py | shanmuk184/SchoolDjango | 18638ad5a3861d7149fdbffe24694181e9da6cec | [
"MIT"
] | null | null | null | School/classes.py | shanmuk184/SchoolDjango | 18638ad5a3861d7149fdbffe24694181e9da6cec | [
"MIT"
] | 7 | 2020-06-05T20:45:11.000Z | 2021-09-22T18:28:34.000Z | School/classes.py | shanmuk184/SchoolDjango | 18638ad5a3861d7149fdbffe24694181e9da6cec | [
"MIT"
] | null | null | null | classes = [
{
'name': 'science-1',
'subjects': [
{
'name': 'Math',
'taughtBy': 'Turing',
'duration': 60
},
{
'name': 'English',
'taughtBy': 'Adele',
'duration': 60
... | 23.256637 | 51 | 0.278919 | 123 | 2,628 | 5.95935 | 0.268293 | 0.218281 | 0.286494 | 0.085948 | 0.506139 | 0.245566 | 0.133697 | 0.133697 | 0.133697 | 0 | 0 | 0.031646 | 0.579148 | 2,628 | 112 | 52 | 23.464286 | 0.631103 | 0 | 0 | 0.375 | 0 | 0 | 0.267123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6d61b8fd347c77253dbe3bf7710d3849091815ac | 921 | py | Python | tests/testCreateCacheSchemaCommand.py | agrc/AutomatedCaching | 7e0edc4bda3b2bbe2b8c8f18f779be4e33f0f383 | [
"MIT"
] | 1 | 2015-04-22T18:38:54.000Z | 2015-04-22T18:38:54.000Z | tests/testCreateCacheSchemaCommand.py | agrc/AutomatedCaching | 7e0edc4bda3b2bbe2b8c8f18f779be4e33f0f383 | [
"MIT"
] | null | null | null | tests/testCreateCacheSchemaCommand.py | agrc/AutomatedCaching | 7e0edc4bda3b2bbe2b8c8f18f779be4e33f0f383 | [
"MIT"
] | null | null | null | from unittest import TestCase
from agrc.caching.commands import cache
class testCreateCacheSchemaCommand(TestCase):
def test_schema_gets_default_values(self):
command = cache.CreateCacheSchemaCommand("terrain")
self.assertEqual(command.tile_origin, "-5120900 9998100", "orgin")
self... | 54.176471 | 103 | 0.70684 | 102 | 921 | 6.245098 | 0.490196 | 0.235479 | 0.345369 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035111 | 0.165038 | 921 | 17 | 104 | 54.176471 | 0.793238 | 0 | 0 | 0 | 0 | 0 | 0.137744 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ed8d7f58baa24ef07b859bd927aa0a927aad95ab | 161 | py | Python | cicu/urls.py | DOOMer/clean-image-crop-uploader-v3 | 6d096f2a3855ee720f1bcd4551120d52ecf2b5b9 | [
"BSD-3-Clause"
] | null | null | null | cicu/urls.py | DOOMer/clean-image-crop-uploader-v3 | 6d096f2a3855ee720f1bcd4551120d52ecf2b5b9 | [
"BSD-3-Clause"
] | null | null | null | cicu/urls.py | DOOMer/clean-image-crop-uploader-v3 | 6d096f2a3855ee720f1bcd4551120d52ecf2b5b9 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url
from.views import *
urlpatterns = [
url(r'^$', upload, name='ajax-upload'),
url(r'^crop/$', crop, name='cicu-crop'),
]
| 20.125 | 44 | 0.627329 | 23 | 161 | 4.391304 | 0.608696 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161491 | 161 | 7 | 45 | 23 | 0.748148 | 0 | 0 | 0 | 0 | 0 | 0.180124 | 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 |
edb5b48af52c77a5217914b6ed9e1967ba0abb64 | 170 | py | Python | DSA/tests/list_add.py | RohanMiraje/DSAwithPython | ea4884afcac9d6cc2817a93e918c829dd10cef5d | [
"MIT"
] | 2 | 2020-02-12T03:00:03.000Z | 2020-07-06T17:27:03.000Z | DSA/tests/list_add.py | RohanMiraje/DSAwithPython | ea4884afcac9d6cc2817a93e918c829dd10cef5d | [
"MIT"
] | null | null | null | DSA/tests/list_add.py | RohanMiraje/DSAwithPython | ea4884afcac9d6cc2817a93e918c829dd10cef5d | [
"MIT"
] | null | null | null | # # list_test = list()
#
# list_test[0] = 12
#
# print(list_test)
#
from enum import Enum
class MessageSendResult(Enum):
Ok = 1
print(type(MessageSendResult.Ok)) | 11.333333 | 33 | 0.670588 | 23 | 170 | 4.826087 | 0.565217 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.188235 | 170 | 15 | 33 | 11.333333 | 0.775362 | 0.311765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
edc967d487d8d20e4ad77722a143e5f65a972812 | 149 | py | Python | toontown/estate/MailboxGlobals.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 99 | 2019-11-02T22:25:00.000Z | 2022-02-03T03:48:00.000Z | toontown/estate/MailboxGlobals.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 42 | 2019-11-03T05:31:08.000Z | 2022-03-16T22:50:32.000Z | toontown/estate/MailboxGlobals.py | TheFamiliarScoot/open-toontown | 678313033174ea7d08e5c2823bd7b473701ff547 | [
"BSD-3-Clause"
] | 57 | 2019-11-03T07:47:37.000Z | 2022-03-22T00:41:49.000Z | MAILBOX_MOVIE_CLEAR = 2
MAILBOX_MOVIE_EMPTY = 3
MAILBOX_MOVIE_WAITING = 4
MAILBOX_MOVIE_READY = 5
MAILBOX_MOVIE_NOT_OWNER = 6
MAILBOX_MOVIE_EXIT = 7
| 21.285714 | 27 | 0.838926 | 25 | 149 | 4.48 | 0.6 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0.120805 | 149 | 6 | 28 | 24.833333 | 0.80916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
edee0a890c33bf0d2294ebef2411797f840ec15f | 265 | py | Python | src/pytest_pyramid/__init__.py | fizyk/pytest_pyramid | 09464607f4a41675bbf729a1ebf9a73319a783e8 | [
"MIT"
] | 9 | 2015-01-10T21:35:49.000Z | 2018-03-22T14:41:18.000Z | src/pytest_pyramid/__init__.py | fizyk/pytest_pyramid | 09464607f4a41675bbf729a1ebf9a73319a783e8 | [
"MIT"
] | 226 | 2016-04-25T19:20:26.000Z | 2022-03-29T04:10:12.000Z | src/pytest_pyramid/__init__.py | fizyk/pytest_pyramid | 09464607f4a41675bbf729a1ebf9a73319a783e8 | [
"MIT"
] | 5 | 2016-04-25T19:02:12.000Z | 2020-10-07T19:31:19.000Z | # Copyright (c) 2013 by pytest_pyramid authors and contributors
#
# This module is part of pytest_pyramid and is released under
# the MIT License (MIT): http://opensource.org/licenses/MIT
"""pytest_pyramid main module."""
__version__ = "1.0.1" # pragma: no cover
| 33.125 | 63 | 0.743396 | 40 | 265 | 4.75 | 0.75 | 0.205263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030973 | 0.14717 | 265 | 7 | 64 | 37.857143 | 0.809735 | 0.849057 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6105d829a63d62da46917be574ff9d4347be35fe | 3,523 | py | Python | data/transcoder_evaluation_gfg/python/LONGEST_COMMON_SUBSTRING.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/LONGEST_COMMON_SUBSTRING.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/LONGEST_COMMON_SUBSTRING.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( X , Y , m , n ) :
LCSuff = [ [ 0 for k in range ( n + 1 ) ] for l in range ( m + 1 ) ]
result = 0
for i... | 85.926829 | 485 | 0.278172 | 632 | 3,523 | 1.523734 | 0.150316 | 0.122534 | 0.158879 | 0.19107 | 0.125649 | 0.120457 | 0.120457 | 0.120457 | 0.120457 | 0.120457 | 0 | 0.121581 | 0.252909 | 3,523 | 41 | 486 | 85.926829 | 0.244301 | 0.052512 | 0 | 0.064516 | 0 | 0 | 0.150705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0 | 0 | 0.064516 | 0.032258 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
61098cd935de3cf44ad763ca79ee8213d3bf4f22 | 152 | py | Python | python_basics/Method_ function/function_basic.py | alok8765/basic_python_practicse | 9bd61f0b03fc1e703a75df39862a24692bb3fdb7 | [
"MIT"
] | null | null | null | python_basics/Method_ function/function_basic.py | alok8765/basic_python_practicse | 9bd61f0b03fc1e703a75df39862a24692bb3fdb7 | [
"MIT"
] | null | null | null | python_basics/Method_ function/function_basic.py | alok8765/basic_python_practicse | 9bd61f0b03fc1e703a75df39862a24692bb3fdb7 | [
"MIT"
] | null | null | null | #Simple declaration of Funtion
'''def say_hello():
print('hello')
say_hello()
'''
def greeting(name):
print(f'Hello {name}')
greeting('raj') | 19 | 30 | 0.644737 | 20 | 152 | 4.8 | 0.6 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164474 | 152 | 8 | 31 | 19 | 0.755906 | 0.506579 | 0 | 0 | 0 | 0 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
610b493c66d4b699f9938ddb888bc3eca3101553 | 2,624 | py | Python | backend/backend/server/backend/intelligence/api.py | ppeetteerrs/LivingWater | 8ce1cac05dd623b3f86ef87a227c36881311dbb7 | [
"MIT"
] | null | null | null | backend/backend/server/backend/intelligence/api.py | ppeetteerrs/LivingWater | 8ce1cac05dd623b3f86ef87a227c36881311dbb7 | [
"MIT"
] | 5 | 2021-01-28T19:42:47.000Z | 2022-03-25T18:37:12.000Z | backend/backend/server/backend/intelligence/api.py | ppeetteerrs/LivingWater | 8ce1cac05dd623b3f86ef87a227c36881311dbb7 | [
"MIT"
] | null | null | null | import json
from backend.tools import DebugTools
from .calculations import Calculations
from ..restful.restful import Restful
DebugTools.logging.unmute()
class API:
@classmethod
def get_rankings(cls, sentence: str, no_of_verses=30):
print("new version")
timer = DebugTools.timer()
time... | 33.641026 | 120 | 0.665777 | 307 | 2,624 | 5.433225 | 0.234528 | 0.101918 | 0.033573 | 0.034173 | 0.18705 | 0.153477 | 0.117506 | 0.117506 | 0.117506 | 0.067146 | 0 | 0.00247 | 0.228659 | 2,624 | 77 | 121 | 34.077922 | 0.82164 | 0 | 0 | 0.278689 | 0 | 0 | 0.064024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0.065574 | 0.131148 | 0.508197 | 0.04918 | 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 |
6117fefcefbf582fd541274b6d98aaedc7a37956 | 120 | py | Python | iniciante/python/1078-tabuada.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | iniciante/python/1078-tabuada.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | iniciante/python/1078-tabuada.py | tfn10/beecrowd | 1ebf19ca9a253eb326160f03145d20be33064969 | [
"MIT"
] | null | null | null | def tabuada(numero):
for i in range(1, 11):
print(f'{i} x {numero} = {i * numero}')
tabuada(int(input()))
| 17.142857 | 47 | 0.55 | 19 | 120 | 3.473684 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.241667 | 120 | 6 | 48 | 20 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0.241667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
612d064866c69ae37677e0c103532d897ccc6e68 | 95 | py | Python | modules/2.79/bpy/types/RadarSensor.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/RadarSensor.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/RadarSensor.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | class RadarSensor:
angle = None
axis = None
distance = None
property = None
| 10.555556 | 19 | 0.6 | 10 | 95 | 5.7 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.347368 | 95 | 8 | 20 | 11.875 | 0.919355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
b66517917685739ba6200e8120af126d9a1c6e9f | 2,511 | py | Python | DictionaryOfNewZealandEnglish/headword/attribute/models.py | eResearchSandpit/DictionaryOfNewZealandEnglish | cf3cec34aafc7a9a8bd0413883f5eeb314d46a48 | [
"BSD-3-Clause"
] | null | null | null | DictionaryOfNewZealandEnglish/headword/attribute/models.py | eResearchSandpit/DictionaryOfNewZealandEnglish | cf3cec34aafc7a9a8bd0413883f5eeb314d46a48 | [
"BSD-3-Clause"
] | null | null | null | DictionaryOfNewZealandEnglish/headword/attribute/models.py | eResearchSandpit/DictionaryOfNewZealandEnglish | cf3cec34aafc7a9a8bd0413883f5eeb314d46a48 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime as dt
from DictionaryOfNewZealandEnglish.database import (
Column,
db,
Model,
SurrogatePK,
)
###################################
# superclass for attributes #
class Secondary_values():
name = Column(db.String(50), nullable=False, unique=True)
... | 26.712766 | 86 | 0.626045 | 258 | 2,511 | 5.546512 | 0.27907 | 0.115304 | 0.181691 | 0.216632 | 0.333333 | 0.11181 | 0.054507 | 0 | 0 | 0 | 0 | 0.002647 | 0.24771 | 2,511 | 93 | 87 | 27 | 0.754897 | 0.031063 | 0 | 0.126984 | 0 | 0 | 0.081995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.031746 | 0.079365 | 0.793651 | 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 |
b68782e3af57d97b670bb54da719c2f8f1784797 | 428 | py | Python | tradingmate/model/broker/__init__.py | ilcardella/TradingMate | 124dbc4d4e057bc9e1395102f6f9030885eaba91 | [
"MIT"
] | 3 | 2019-03-22T10:19:14.000Z | 2021-06-24T20:15:10.000Z | tradingmate/model/broker/__init__.py | ilcardella/TradingMate | 124dbc4d4e057bc9e1395102f6f9030885eaba91 | [
"MIT"
] | 107 | 2019-01-26T09:47:45.000Z | 2022-03-31T03:03:41.000Z | tradingmate/model/broker/__init__.py | ilcardella/TradingMate | 124dbc4d4e057bc9e1395102f6f9030885eaba91 | [
"MIT"
] | 3 | 2019-10-26T16:12:58.000Z | 2020-02-09T16:00:17.000Z | from .stocks_interface import ( # NOQA # isort:skip
StocksInterface,
SyncSingleton,
)
from .alpha_vantage_interface import ( # NOQA # isort:skip
AlphaVantageInterface,
AVInterval,
AVJSONData,
)
from .yfinance_interface import ( # NOQA # isort:skip
YFinanceInterface,
YFInterval,
)
from .st... | 23.777778 | 60 | 0.724299 | 39 | 428 | 7.794872 | 0.512821 | 0.131579 | 0.197368 | 0.25 | 0.276316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198598 | 428 | 17 | 61 | 25.176471 | 0.886297 | 0.156542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b68d25aa2ba16168ca10824d93eed23855fb8f9c | 608 | py | Python | cdc_kafka/metric_reporting/stdout_reporter.py | woodlee/sqlserver-cdc-to-kafka | 602c17432a87c1aaee94dc6c971cde8496314fda | [
"MIT"
] | 10 | 2020-04-09T09:32:54.000Z | 2021-10-04T09:20:59.000Z | cdc_kafka/metric_reporting/stdout_reporter.py | woodlee/sqlserver-cdc-to-kafka | 602c17432a87c1aaee94dc6c971cde8496314fda | [
"MIT"
] | 4 | 2019-10-04T14:15:32.000Z | 2020-05-13T18:48:58.000Z | cdc_kafka/metric_reporting/stdout_reporter.py | woodlee/sqlserver-cdc-to-kafka | 602c17432a87c1aaee94dc6c971cde8496314fda | [
"MIT"
] | 6 | 2019-11-11T18:01:00.000Z | 2021-06-09T09:49:57.000Z | import argparse
import json
import logging
from . import reporter_base
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .metrics import Metrics
logger = logging.getLogger(__name__)
class StdoutReporter(reporter_base.ReporterBase):
def emit(self, metrics: 'Metrics') -> None:
logger.info('Metr... | 25.333333 | 80 | 0.726974 | 73 | 608 | 5.876712 | 0.589041 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185855 | 608 | 23 | 81 | 26.434783 | 0.866667 | 0 | 0 | 0.125 | 0 | 0 | 0.072368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.125 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
fcc354a0f3b2bc45f2c3ac7a5e065f7fa8a33820 | 636 | py | Python | rcmemoize/request.py | baranbartu/rcmemoize | eb921b2cead1842f428ce9bc85cf1af76b624514 | [
"MIT"
] | 11 | 2016-12-26T05:36:24.000Z | 2017-07-19T11:02:00.000Z | rcmemoize/request.py | baranbartu/rcmemoize | eb921b2cead1842f428ce9bc85cf1af76b624514 | [
"MIT"
] | null | null | null | rcmemoize/request.py | baranbartu/rcmemoize | eb921b2cead1842f428ce9bc85cf1af76b624514 | [
"MIT"
] | null | null | null | import uuid
from threading import current_thread
class RequestContext(object):
def __init__(self):
self.registry = {}
def set_request(self, request):
request_id = str(uuid.uuid4())
setattr(request, 'request_id', request_id)
self.registry[current_thread()] = request
ret... | 23.555556 | 51 | 0.677673 | 74 | 636 | 5.567568 | 0.364865 | 0.131068 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00202 | 0.221698 | 636 | 26 | 52 | 24.461538 | 0.830303 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.111111 | 0.111111 | 0.611111 | 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 |
fcc8cf052ea7a530575d83c8f5c5cbf609919a99 | 269 | py | Python | changes/signals.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | null | null | null | changes/signals.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | 126 | 2016-07-12T19:39:44.000Z | 2022-03-24T13:39:38.000Z | changes/signals.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | 3 | 2016-09-28T13:16:11.000Z | 2020-11-07T15:32:37.000Z | def psh_validate_implement(sender, instance, created, **kwargs):
""" Post save hook to fire Change validation task
"""
if created:
from .tasks import validate_implement
validate_implement.apply_async(kwargs={"change_id": str(instance.id)})
| 33.625 | 78 | 0.702602 | 33 | 269 | 5.545455 | 0.727273 | 0.278689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193309 | 269 | 7 | 79 | 38.428571 | 0.843318 | 0.167286 | 0 | 0 | 0 | 0 | 0.042453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
fce08ce40469c5d113d54f76ea3876b6a116fd0f | 287 | py | Python | setup.py | BACtaki/tfx-addons-feast-examplegen | 411b3781506443caefd6396d0381653e492a4d48 | [
"Apache-2.0"
] | null | null | null | setup.py | BACtaki/tfx-addons-feast-examplegen | 411b3781506443caefd6396d0381653e492a4d48 | [
"Apache-2.0"
] | 5 | 2021-10-15T18:33:39.000Z | 2022-01-14T00:44:16.000Z | setup.py | BACtaki/tfx-addons-feast-examplegen | 411b3781506443caefd6396d0381653e492a4d48 | [
"Apache-2.0"
] | null | null | null | import setuptools
setuptools.setup(name='feast_examplegen',
version='0.1',
description='Feast Example Gen',
install_requires=['feast', 'tfx>=1.0'],
packages=setuptools.find_packages(),
zip_safe=False)
| 31.888889 | 56 | 0.543554 | 27 | 287 | 5.62963 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.337979 | 287 | 8 | 57 | 35.875 | 0.778947 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 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 |
1e17c0f32b9fc0a8d6304acfa618b5dba1f8d27d | 249 | py | Python | utils/utils.py | konker/cloudwatch-thing | 1daf3478f05a7b0a98990e404c57f7430a4d0f8e | [
"0BSD"
] | null | null | null | utils/utils.py | konker/cloudwatch-thing | 1daf3478f05a7b0a98990e404c57f7430a4d0f8e | [
"0BSD"
] | null | null | null | utils/utils.py | konker/cloudwatch-thing | 1daf3478f05a7b0a98990e404c57f7430a4d0f8e | [
"0BSD"
] | null | null | null | #
# cloudwatch-thing general utils
#
# Author: Konrad Markus <konker@iki.fi>
#
#------------------------------------------------------------------------
import os
def is_rpi():
uname = os.uname()
return uname.machine.startswith('armv6')
| 16.6 | 73 | 0.473896 | 23 | 249 | 5.086957 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.136546 | 249 | 14 | 74 | 17.785714 | 0.539535 | 0.562249 | 0 | 0 | 0 | 0 | 0.049505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1e3d2d78a62a36d668fa9778316709ba9e6c192e | 8,439 | py | Python | lammps_interface/generic_raspa.py | zmzeng/lammps_interface | 07da45c444cadcab06683f3fea0fe4a781377365 | [
"MIT"
] | 74 | 2016-10-19T23:42:21.000Z | 2022-03-31T08:05:54.000Z | lammps_interface/generic_raspa.py | zmzeng/lammps_interface | 07da45c444cadcab06683f3fea0fe4a781377365 | [
"MIT"
] | 44 | 2017-01-22T02:25:12.000Z | 2021-12-08T03:25:51.000Z | lammps_interface/generic_raspa.py | mwitman1/lammps_interface | 4ebea5493df9e7f2381b7cad3cd5b6b2ae698a27 | [
"MIT"
] | 46 | 2016-08-10T09:22:41.000Z | 2022-03-01T03:33:14.000Z | #! /usr/bin/env python
"""
RASPA file format and default parameters.
"""
GENERIC_PSEUDO_ATOMS_HEADER = [
['# of pseudo atoms'],
['29'],
['#type ', 'print ', 'as ', 'chem ', 'oxidation ', 'mass ', 'charge ', 'polarization ', 'B-factor radii ', 'connectivity ', 'anisotropic ', 'anisotropic-type ', 'tinker-typ... | 101.674699 | 186 | 0.246593 | 826 | 8,439 | 2.457627 | 0.213075 | 0.110345 | 0.047291 | 0.057143 | 0.383744 | 0.3133 | 0.294581 | 0.200493 | 0.187685 | 0.187685 | 0 | 0.175421 | 0.521744 | 8,439 | 82 | 187 | 102.914634 | 0.327552 | 0.007465 | 0 | 0 | 0 | 0 | 0.400454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013514 | 0 | 0.013514 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1e508910c9942396b3ef18a191ad2b92244d3d13 | 3,878 | py | Python | pyanon/pyZcash/rpc/ZDaemon.py | Palem1988/anon-faucet | 235583fe853e5e0c6609a4a448c762e9b2013d0f | [
"MIT"
] | null | null | null | pyanon/pyZcash/rpc/ZDaemon.py | Palem1988/anon-faucet | 235583fe853e5e0c6609a4a448c762e9b2013d0f | [
"MIT"
] | null | null | null | pyanon/pyZcash/rpc/ZDaemon.py | Palem1988/anon-faucet | 235583fe853e5e0c6609a4a448c762e9b2013d0f | [
"MIT"
] | 2 | 2018-08-30T15:00:02.000Z | 2019-10-02T23:14:22.000Z | import requests
import json
from pyanon.pyZcash.settings import *
class ZDaemon(object):
id_count = 0
def __init__(self, network=NETWORK, user=RPCUSER, password=RPCPASSWORD, timeout=TIMEOUT):
#TODO: check utf safety
self.network = network
self.user = user.encode('utf8')
self.password = password.encode('ut... | 27.118881 | 102 | 0.714286 | 495 | 3,878 | 5.488889 | 0.29899 | 0.067722 | 0.103055 | 0.059625 | 0.095326 | 0.01693 | 0 | 0 | 0 | 0 | 0 | 0.00792 | 0.15343 | 3,878 | 142 | 103 | 27.309859 | 0.819677 | 0.099794 | 0 | 0 | 0 | 0 | 0.141748 | 0.006613 | 0 | 0 | 0 | 0.007042 | 0 | 1 | 0.27957 | false | 0.032258 | 0.032258 | 0.215054 | 0.591398 | 0.021505 | 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 |
1e738bcb23f3723aa6163df8ca3d1bad85e08530 | 393 | py | Python | db.py | Neufund/subkey-authentication-server | 37094695f6dcb3289d6311db750168aaf42045f6 | [
"MIT"
] | null | null | null | db.py | Neufund/subkey-authentication-server | 37094695f6dcb3289d6311db750168aaf42045f6 | [
"MIT"
] | null | null | null | db.py | Neufund/subkey-authentication-server | 37094695f6dcb3289d6311db750168aaf42045f6 | [
"MIT"
] | null | null | null | import json
def read():
from server import app
with open(app.config["DB_NAME"], "r") as f:
return json.loads(f.read())
def write(data):
from server import app
with open(app.config["DB_NAME"], "w") as f:
f.write(json.dumps(data, indent=2))
def get(key):
return read()[key]
def ... | 16.375 | 47 | 0.59542 | 62 | 393 | 3.741935 | 0.435484 | 0.086207 | 0.137931 | 0.163793 | 0.362069 | 0.362069 | 0.362069 | 0.362069 | 0.362069 | 0.362069 | 0 | 0.00339 | 0.249364 | 393 | 23 | 48 | 17.086957 | 0.783051 | 0 | 0 | 0.133333 | 0 | 0 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.066667 | 0.6 | 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 |
1eb0f76db9dd3442a5247b54e4e7cd3ed49eff55 | 270 | py | Python | app/__init__.py | mikechumba/news | e474501685c8513948f42a6f432274357cfcafd8 | [
"Unlicense"
] | null | null | null | app/__init__.py | mikechumba/news | e474501685c8513948f42a6f432274357cfcafd8 | [
"Unlicense"
] | null | null | null | app/__init__.py | mikechumba/news | e474501685c8513948f42a6f432274357cfcafd8 | [
"Unlicense"
] | null | null | null | from flask import Flask
from scss import Scss
from scss import Compiler
Compiler().compile_string("a { color: red + green; }")
app = Flask(__name__)
if __name__=='__main__':
app.run(debug=True)
from app import error
from app import main
from app import models | 18 | 54 | 0.737037 | 41 | 270 | 4.536585 | 0.487805 | 0.112903 | 0.209677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174074 | 270 | 15 | 55 | 18 | 0.834081 | 0 | 0 | 0 | 0 | 0 | 0.121771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1eb510dc15fc1bf0839220eb4d110d51cfa4e225 | 825 | py | Python | test/test_lvm.py | LionCoder4ever/pylua | f4e4f5312a5bb405d64cb51378a0e81485345b3a | [
"Apache-2.0"
] | null | null | null | test/test_lvm.py | LionCoder4ever/pylua | f4e4f5312a5bb405d64cb51378a0e81485345b3a | [
"Apache-2.0"
] | null | null | null | test/test_lvm.py | LionCoder4ever/pylua | f4e4f5312a5bb405d64cb51378a0e81485345b3a | [
"Apache-2.0"
] | null | null | null | import unittest
from test.testHelper import TestHelper
# TODO fix unittest failure
class TestLuaVMApi(unittest.TestCase, TestHelper):
@classmethod
def setUpClass(cls):
cls.setUpFuncForVm('loop.out')
def test_loopresult(self):
self.assertEqual(self.getValueInStack(-1), 2550)
class TestL... | 23.571429 | 61 | 0.710303 | 86 | 825 | 6.686047 | 0.418605 | 0.083478 | 0.135652 | 0.193043 | 0.568696 | 0.568696 | 0.365217 | 0.365217 | 0.365217 | 0 | 0 | 0.014771 | 0.179394 | 825 | 34 | 62 | 24.264706 | 0.834564 | 0.030303 | 0 | 0.272727 | 0 | 0 | 0.053885 | 0 | 0 | 0 | 0 | 0.029412 | 0.136364 | 1 | 0.272727 | false | 0 | 0.090909 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ed4f339e477903048a3ce15c961e61bd0ae65e7 | 388 | py | Python | documental/book/__init__.py | DennisMerkus/documental | 9d97359c68274937647ed80158b67054d0e53d05 | [
"MIT"
] | null | null | null | documental/book/__init__.py | DennisMerkus/documental | 9d97359c68274937647ed80158b67054d0e53d05 | [
"MIT"
] | 1 | 2020-08-10T14:43:49.000Z | 2020-08-10T14:43:49.000Z | documental/book/__init__.py | DennisMerkus/documental | 9d97359c68274937647ed80158b67054d0e53d05 | [
"MIT"
] | null | null | null | from ..document import RootDocument, ParentDocument
class Book(RootDocument):
def __init__(self):
super().__init__()
self.type = "Book"
def __str__(self):
return super().__str__()
class Chapter(ParentDocument):
def __init__(self):
super().__init__()
self.type =... | 17.636364 | 51 | 0.613402 | 39 | 388 | 5.282051 | 0.384615 | 0.15534 | 0.106796 | 0.15534 | 0.504854 | 0.504854 | 0.271845 | 0 | 0 | 0 | 0 | 0 | 0.260309 | 388 | 21 | 52 | 18.47619 | 0.71777 | 0 | 0 | 0.615385 | 0 | 0 | 0.028351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.153846 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1ed8d52efe671bea0d2fa4b6b7d71ac1b43ac9c9 | 117 | py | Python | dashboard/overview/urls.py | colinspear/music-dashboard | 35a7c082a8a6dab4637152adce5e9921a2984a97 | [
"FTL"
] | null | null | null | dashboard/overview/urls.py | colinspear/music-dashboard | 35a7c082a8a6dab4637152adce5e9921a2984a97 | [
"FTL"
] | 5 | 2020-03-24T17:21:56.000Z | 2021-03-17T21:23:28.000Z | dashboard/overview/urls.py | colinspear/music-dashboard | 35a7c082a8a6dab4637152adce5e9921a2984a97 | [
"FTL"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.i_exist, name='i_exist')
]
| 14.625 | 47 | 0.65812 | 16 | 117 | 4.6875 | 0.625 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213675 | 117 | 7 | 48 | 16.714286 | 0.815217 | 0 | 0 | 0 | 0 | 0 | 0.059829 | 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 |
94b2599ff20adcfd069ff8dc2a869952b443b748 | 578 | py | Python | ibis/expr/types/inet.py | rtpsw/ibis | d7318fdf87121cd8fadbcf0369a2b217aab3053a | [
"Apache-2.0"
] | 1 | 2022-03-22T10:39:37.000Z | 2022-03-22T10:39:37.000Z | ibis/expr/types/inet.py | marlenezw/ibis | 14b9baf3e1021e8698e7f0ae3c0ae5747543431c | [
"Apache-2.0"
] | null | null | null | ibis/expr/types/inet.py | marlenezw/ibis | 14b9baf3e1021e8698e7f0ae3c0ae5747543431c | [
"Apache-2.0"
] | null | null | null | from public import public
from ibis.expr.types.strings import StringColumn, StringScalar, StringValue
@public
class MACADDRValue(StringValue):
pass # noqa: E701,E302
@public
class MACADDRScalar(StringScalar, MACADDRValue):
pass # noqa: E701,E302
@public
class MACADDRColumn(StringColumn, MACADDRValue):
... | 17 | 75 | 0.740484 | 65 | 578 | 6.584615 | 0.323077 | 0.154206 | 0.168224 | 0.224299 | 0.502336 | 0.422897 | 0.359813 | 0 | 0 | 0 | 0 | 0.075157 | 0.17128 | 578 | 33 | 76 | 17.515152 | 0.818372 | 0.16436 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.3 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
94bdd046da0225901bb584f982c7eaf5ec720b7b | 244 | py | Python | setup.py | kcha/gopro_renamer | 711103abf62ae4b585900ddcbed688b5a1ded9de | [
"MIT"
] | 21 | 2015-04-16T22:13:59.000Z | 2022-02-11T03:06:10.000Z | setup.py | kcha/gopro_renamer | 711103abf62ae4b585900ddcbed688b5a1ded9de | [
"MIT"
] | 4 | 2015-04-17T20:05:53.000Z | 2018-09-03T17:14:16.000Z | setup.py | kcha/gopro_renamer | 711103abf62ae4b585900ddcbed688b5a1ded9de | [
"MIT"
] | 7 | 2015-04-16T22:21:24.000Z | 2021-06-13T02:31:57.000Z | from setuptools import setup
setup(
name = 'gopro_renamer',
author = 'Kevin Ha',
version = '0.3.3',
py_modules = ['gopro_renamer'],
entry_points = {
'console_scripts': ['gopro_renamer = gopro_renamer:main']
}
)
| 20.333333 | 65 | 0.614754 | 28 | 244 | 5.107143 | 0.714286 | 0.335664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.245902 | 244 | 11 | 66 | 22.181818 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
94c7cf8c4f208cff9884bd897034f1b6de705b80 | 714 | py | Python | pyformlang/pda/symbol.py | IlyaEp/pyformlang | eef239844beff5e9da3be4a4a240440ece81c10b | [
"MIT"
] | 15 | 2020-06-25T14:38:27.000Z | 2022-03-09T17:55:07.000Z | pyformlang/pda/symbol.py | IlyaEp/pyformlang | eef239844beff5e9da3be4a4a240440ece81c10b | [
"MIT"
] | 11 | 2020-09-23T09:48:35.000Z | 2021-08-24T08:37:47.000Z | pyformlang/pda/symbol.py | YaccConstructor/pyformlang | df640e13524c5d835ddcdedf25d8246fc73d7b88 | [
"MIT"
] | 5 | 2020-03-08T19:00:17.000Z | 2021-08-15T12:38:05.000Z | """ A Symbol in a pushdown automaton """
class Symbol:
""" A Symbol in a pushdown automaton
Parameters
----------
value : any
The value of the state
"""
def __init__(self, value):
self._value = value
def __hash__(self):
return hash(str(self._value))
@proper... | 18.789474 | 49 | 0.528011 | 78 | 714 | 4.564103 | 0.333333 | 0.151685 | 0.050562 | 0.05618 | 0.151685 | 0.151685 | 0 | 0 | 0 | 0 | 0 | 0 | 0.351541 | 714 | 37 | 50 | 19.297297 | 0.768898 | 0.285714 | 0 | 0 | 0 | 0 | 0.018735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
94c9a559fdc1ec63007242b6ef7c42ad878b47cf | 377 | py | Python | src_rnn_kfac/static.py | icdm2021submission/Continual-Neural-Network-Model-Retraining | 7a84f211c7750b862fa5e31293d22d4d0dabed23 | [
"MIT"
] | null | null | null | src_rnn_kfac/static.py | icdm2021submission/Continual-Neural-Network-Model-Retraining | 7a84f211c7750b862fa5e31293d22d4d0dabed23 | [
"MIT"
] | null | null | null | src_rnn_kfac/static.py | icdm2021submission/Continual-Neural-Network-Model-Retraining | 7a84f211c7750b862fa5e31293d22d4d0dabed23 | [
"MIT"
] | null | null | null |
loss_fns = ['retrain_regu_mas', 'retrain_regu_mine', 'retrain_regu_minen', 'retrain_regu_fisher', 'retrain_regu_fishern',\
'retrain', 'retrain_regu', 'retrain_regu_selfless']#'retrain_regu_mine3', 'cnn'
model_log_map = {'fishern': 'EWCN', 'mine': 'Arms', 'minen': 'ArmsN', 'regu': 'RetrainRegu', \
'fisher': 'EWC', '... | 47.125 | 122 | 0.692308 | 46 | 377 | 5.282609 | 0.434783 | 0.36214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002899 | 0.084881 | 377 | 8 | 123 | 47.125 | 0.701449 | 0.071618 | 0 | 0 | 0 | 0 | 0.631124 | 0.060519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
94e9cb995e4174f7a038f707d3a3f2c490b29270 | 234 | py | Python | app/schema/aftale_patch_schema.py | kirkenskorshaer/of2mscrm | af36db6f5012a80486f59a3d54f7539870a27cff | [
"Unlicense"
] | null | null | null | app/schema/aftale_patch_schema.py | kirkenskorshaer/of2mscrm | af36db6f5012a80486f59a3d54f7539870a27cff | [
"Unlicense"
] | null | null | null | app/schema/aftale_patch_schema.py | kirkenskorshaer/of2mscrm | af36db6f5012a80486f59a3d54f7539870a27cff | [
"Unlicense"
] | null | null | null | def get_schema():
return {
'type': 'object',
'properties':
{
'aftale_id': {'type': 'string'},
'state': {'type': 'string'},
'gateway_fejlkode': {'type': 'string'}
},
'required': ['aftale_id', 'gateway_fejlkode']
}
| 19.5 | 47 | 0.564103 | 23 | 234 | 5.521739 | 0.608696 | 0.23622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183761 | 234 | 11 | 48 | 21.272727 | 0.664921 | 0 | 0 | 0 | 0 | 0 | 0.482906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0 | 0.090909 | 0.181818 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
94f56b450c0579360235e32d940ed50df3617f6f | 699 | py | Python | quicktext/imports.py | ramaneswaran/quickTextCassifier | 34ffcae3047e130456d9337dfe9d6a01181549e0 | [
"MIT"
] | 3 | 2020-11-21T12:24:02.000Z | 2020-12-25T08:08:31.000Z | quicktext/imports.py | ramaneswaran/quickTextCassifier | 34ffcae3047e130456d9337dfe9d6a01181549e0 | [
"MIT"
] | 12 | 2020-11-07T11:39:38.000Z | 2020-11-11T17:14:38.000Z | quicktext/imports.py | ramaneswaran/quickTextCassifier | 34ffcae3047e130456d9337dfe9d6a01181549e0 | [
"MIT"
] | 2 | 2020-11-12T11:49:37.000Z | 2020-11-12T14:36:38.000Z | # General imports
import os
import random
import logging
# Utility imports
from tqdm import tqdm
import pickle
import yaml
import zipfile
from pathlib import Path
from easydict import EasyDict
from collections import Counter
# Machine Learning libraries
import numpy as np
import pandas as pd
from sklearn.model_select... | 19.416667 | 65 | 0.829757 | 102 | 699 | 5.637255 | 0.480392 | 0.067826 | 0.045217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144492 | 699 | 35 | 66 | 19.971429 | 0.961538 | 0.148784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a211fddb515cffba899ec4e3e327c8348c67de1f | 596 | py | Python | NSI/Chapitre 3/pile.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | NSI/Chapitre 3/pile.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | NSI/Chapitre 3/pile.py | S-c-r-a-t-c-h-y/coding-projects | cad33aedb72720c3e3a37c7529e55abd3edb291a | [
"MIT"
] | null | null | null | class Pile:
"""Classe modélisant une Pile"""
# Constructeur
def __init__(self, iterable=None):
if iterable is None:
iterable = []
self.__elements = list(iterable)
def est_vide(self):
return len(self.__elements) == 0
def sommet(self):
return s... | 23.84 | 40 | 0.563758 | 65 | 596 | 4.815385 | 0.476923 | 0.268371 | 0.089457 | 0.140575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004988 | 0.327181 | 596 | 25 | 41 | 23.84 | 0.775561 | 0.067114 | 0 | 0 | 0 | 0 | 0.030853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.411765 | false | 0 | 0 | 0.235294 | 0.705882 | 0.058824 | 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 | 1 | 0 | 0 | 0 | 3 |
a21d5005f2a6fb2a6ca5a054a7e494712c784686 | 6,643 | py | Python | tests/ucopy_test.py | Insolita/ucopy | 7191357c26b86e3a751c4470eca58a8385323cb5 | [
"MIT"
] | 1 | 2020-02-15T10:47:14.000Z | 2020-02-15T10:47:14.000Z | tests/ucopy_test.py | Insolita/ucopy | 7191357c26b86e3a751c4470eca58a8385323cb5 | [
"MIT"
] | null | null | null | tests/ucopy_test.py | Insolita/ucopy | 7191357c26b86e3a751c4470eca58a8385323cb5 | [
"MIT"
] | null | null | null | import mock
import os
import unittest
from ucopy import ucopy
class UcopyTest(unittest.TestCase):
def test__split_ext(self):
self.assertEqual(ucopy._split_ext('image.jpg'), ('image', '.jpg'))
self.assertEqual(ucopy._split_ext('archive.tar.gz'), ('archive', '.tar.gz'))
self.assertEqual(ucop... | 45.190476 | 124 | 0.621707 | 855 | 6,643 | 4.577778 | 0.098246 | 0.06745 | 0.053143 | 0.069494 | 0.769801 | 0.734032 | 0.684466 | 0.654573 | 0.651507 | 0.618549 | 0 | 0.009308 | 0.191329 | 6,643 | 146 | 125 | 45.5 | 0.719285 | 0 | 0 | 0.451613 | 0 | 0 | 0.178082 | 0.028602 | 0 | 0 | 0 | 0 | 0.451613 | 1 | 0.040323 | false | 0 | 0.032258 | 0 | 0.080645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf4599581ed99509c6ba330230ebb124180d42c0 | 145 | py | Python | health_activity/apps.py | prabinrs/surveilance-system | 1a9f118737d1043133dbb7247573b4616a680c2d | [
"BSD-3-Clause"
] | null | null | null | health_activity/apps.py | prabinrs/surveilance-system | 1a9f118737d1043133dbb7247573b4616a680c2d | [
"BSD-3-Clause"
] | 2 | 2020-06-05T21:39:21.000Z | 2021-06-10T21:40:18.000Z | health_activity/apps.py | prabinrs/surveilance-system | 1a9f118737d1043133dbb7247573b4616a680c2d | [
"BSD-3-Clause"
] | 1 | 2020-02-26T15:06:32.000Z | 2020-02-26T15:06:32.000Z | from __future__ import unicode_literals
from django.apps import AppConfig
class HealthActivityConfig(AppConfig):
name = 'health_activity'
| 18.125 | 39 | 0.813793 | 16 | 145 | 7 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 145 | 7 | 40 | 20.714286 | 0.896 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 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 |
bf568d2b4496da7eb52fab9f854d27fa055d0bde | 1,399 | py | Python | dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_ornery.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_ornery.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | dkr-py310/docker-student-portal-310/course_files/begin_advanced/py_ornery.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# py_ornery.py
"""
This type of object gets along with nobody!
or·ner·y
ˈôrn(ə)rē/
adjective North American informal
adjective: ornery
bad-tempered and combative.
"some hogs are just mean and ornery"
synonyms: grouchy, grumpy, cranky, crotchety, cantankerous,
bad-tempered, ill... | 25.436364 | 66 | 0.64832 | 201 | 1,399 | 4.258706 | 0.606965 | 0.037383 | 0.023364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001892 | 0.24446 | 1,399 | 55 | 67 | 25.436364 | 0.806055 | 0.496069 | 0 | 0 | 0 | 0 | 0.286744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0 | 0.227273 | 0.590909 | 0.227273 | 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 |
bf7b693124d3eb34d59010ba30e71015014af595 | 119 | py | Python | input/constants.py | danmohedano/opus_magnum_bot | 9e04a50179e02bfcb2183138353ea3796082e33e | [
"MIT"
] | null | null | null | input/constants.py | danmohedano/opus_magnum_bot | 9e04a50179e02bfcb2183138353ea3796082e33e | [
"MIT"
] | null | null | null | input/constants.py | danmohedano/opus_magnum_bot | 9e04a50179e02bfcb2183138353ea3796082e33e | [
"MIT"
] | null | null | null | CELL_DIM = 46
NEXT_CELL_DISTANCE = 66
NEXT_ROW_DISTANCE_V = 57
NEXT_ROW_DISTANCE_H = 33
INITIAL_V = 44
INITIAL_H = 230
| 17 | 24 | 0.798319 | 23 | 119 | 3.652174 | 0.608696 | 0.166667 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128713 | 0.151261 | 119 | 6 | 25 | 19.833333 | 0.70297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bf8f7dcf6e462036a48349f3c64c6b80a67f6b65 | 826 | py | Python | _updated/app/controllers/pages.py | LinuzLimz/3103_CraigLim | 7ebf7e92835135f877018f1b04ebde2cca24de63 | [
"Apache-2.0"
] | null | null | null | _updated/app/controllers/pages.py | LinuzLimz/3103_CraigLim | 7ebf7e92835135f877018f1b04ebde2cca24de63 | [
"Apache-2.0"
] | null | null | null | _updated/app/controllers/pages.py | LinuzLimz/3103_CraigLim | 7ebf7e92835135f877018f1b04ebde2cca24de63 | [
"Apache-2.0"
] | 2 | 2021-07-27T18:13:13.000Z | 2021-08-11T06:25:22.000Z | from flask import render_template, Blueprint, request
from app.forms import *
blueprint = Blueprint('pages', __name__)
################
#### routes ####
################
@blueprint.route('/')
def home():
return render_template('pages/placeholder.home.html')
@blueprint.route('/about')
def abo... | 21.736842 | 61 | 0.651332 | 90 | 826 | 5.866667 | 0.288889 | 0.159091 | 0.189394 | 0.130682 | 0.439394 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16707 | 826 | 37 | 62 | 22.324324 | 0.767442 | 0.007264 | 0 | 0 | 0 | 0 | 0.190283 | 0.074224 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.095238 | 0.571429 | 0.333333 | 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 |
bf8fba0eec9321bc9f9c5a630ead4ec36840b4aa | 196 | py | Python | class4/C4_Exercises/updateCursor2Template.py | wontgruber/python-for-gis | 09e85a4d2f31395c37f75ea6648646d9e621c081 | [
"MIT"
] | null | null | null | class4/C4_Exercises/updateCursor2Template.py | wontgruber/python-for-gis | 09e85a4d2f31395c37f75ea6648646d9e621c081 | [
"MIT"
] | null | null | null | class4/C4_Exercises/updateCursor2Template.py | wontgruber/python-for-gis | 09e85a4d2f31395c37f75ea6648646d9e621c081 | [
"MIT"
] | null | null | null | """
In Central_Phila.gdb
Use an UpdateCursor to update any Parks 'ADDRESS' records ending in PWY or BLD to PKWY or BLVD
"""
# Import modules
# Set variables
# Execute operation
| 14 | 95 | 0.683673 | 28 | 196 | 4.75 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255102 | 196 | 13 | 96 | 15.076923 | 0.910959 | 0.831633 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.