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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b7680bd286ac298c2cb2fa59c167d338ec7472bb | 33 | py | Python | _solutions/intermediate/datetime/datetime_create_b.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/intermediate/datetime/datetime_create_b.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null | _solutions/intermediate/datetime/datetime_create_b.py | sages-pl/2022-01-pythonsqlalchemy-aptiv | 1d6d856608e9dbe25b139e8968c48b7f46753b84 | [
"MIT"
] | null | null | null |
result = datetime.combine(d, t)
| 11 | 31 | 0.69697 | 5 | 33 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 33 | 2 | 32 | 16.5 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b773016b4c2aa3a12bbb5c2162ae19fd9bc36cb3 | 290 | py | Python | server.py | DJN1/Hatch_2020 | 579605b8b9e25eae3c7085f5501fbeab0a08499a | [
"Apache-2.0"
] | null | null | null | server.py | DJN1/Hatch_2020 | 579605b8b9e25eae3c7085f5501fbeab0a08499a | [
"Apache-2.0"
] | null | null | null | server.py | DJN1/Hatch_2020 | 579605b8b9e25eae3c7085f5501fbeab0a08499a | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template
app = Flask(__name__)
port = 5000
@app.route('/')
def hello_world():
return render_template("index.html")
@app.route('/pedigrees')
def pedigrees():
return render_template("pedigree.html")
app.run(port=port, debug=True)
| 17.058824 | 44 | 0.675862 | 37 | 290 | 5.081081 | 0.567568 | 0.223404 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016878 | 0.182759 | 290 | 16 | 45 | 18.125 | 0.776371 | 0 | 0 | 0 | 0 | 0 | 0.124088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
b78f56e0bc9912dc394309c2b77ca21e092f83ca | 9,465 | py | Python | molsysmt/api_forms/api_molsysmt_MolSys.py | uibcdf/MolModSAKs | 02263fb710693f0c41817f1a318459b35fd5462a | [
"MIT"
] | null | null | null | molsysmt/api_forms/api_molsysmt_MolSys.py | uibcdf/MolModSAKs | 02263fb710693f0c41817f1a318459b35fd5462a | [
"MIT"
] | null | null | null | molsysmt/api_forms/api_molsysmt_MolSys.py | uibcdf/MolModSAKs | 02263fb710693f0c41817f1a318459b35fd5462a | [
"MIT"
] | null | null | null | from molsysmt._private.exceptions import *
from molsysmt.form.molsysmt_MolSys.is_molsysmt_MolSys import is_molsysmt_MolSys as is_form
from molsysmt.form.molsysmt_MolSys.extract import extract
from molsysmt.form.molsysmt_MolSys.add import add
from molsysmt.form.molsysmt_MolSys.append_structures import append_structures... | 38.632653 | 160 | 0.805071 | 1,307 | 9,465 | 5.400153 | 0.063504 | 0.160669 | 0.090677 | 0.102012 | 0.846132 | 0.717484 | 0.645084 | 0.645084 | 0.6431 | 0.6397 | 0 | 0.000961 | 0.120444 | 9,465 | 244 | 161 | 38.790984 | 0.846847 | 0 | 0 | 0.22069 | 0 | 0 | 0.056741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.22069 | 0 | 0.496552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b7a6926a6c552fab3b4cc63c735019448d669525 | 1,049 | py | Python | webkit/tools/layout_tests/layout_package/platform_utils.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | webkit/tools/layout_tests/layout_package/platform_utils.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | webkit/tools/layout_tests/layout_package/platform_utils.py | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Platform-specific utilities and pseudo-constants
Any functions whose implementations or values differ from one platform to
another should be def... | 40.346154 | 76 | 0.77693 | 165 | 1,049 | 4.878788 | 0.636364 | 0.080745 | 0.063354 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.157293 | 1,049 | 25 | 77 | 41.96 | 0.895928 | 0.735939 | 0 | 0 | 0 | 0 | 0.166038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b7a6d84b8ea1a18e2f851f28541f9217d411f63f | 3,659 | py | Python | huey/contrib/kyototycoon.py | vb8448/huey | 345857dd01293af70a3a72dcb8052e34b38574b1 | [
"MIT"
] | 3,676 | 2015-01-02T22:43:04.000Z | 2022-03-31T05:29:02.000Z | huey/contrib/kyototycoon.py | vb8448/huey | 345857dd01293af70a3a72dcb8052e34b38574b1 | [
"MIT"
] | 542 | 2015-01-15T17:18:52.000Z | 2022-03-16T19:18:55.000Z | huey/contrib/kyototycoon.py | vb8448/huey | 345857dd01293af70a3a72dcb8052e34b38574b1 | [
"MIT"
] | 385 | 2015-01-08T05:02:58.000Z | 2022-03-17T12:27:38.000Z | from functools import partial
import time
from ukt import KT_NONE
from ukt import KyotoTycoon
from huey.api import Huey
from huey.constants import EmptyData
from huey.storage import BaseStorage
from huey.utils import decode
class KyotoTycoonStorage(BaseStorage):
priority = True
def __init__(self, name='hue... | 29.508065 | 77 | 0.638153 | 529 | 3,659 | 4.241966 | 0.196597 | 0.037433 | 0.052139 | 0.042781 | 0.245544 | 0.187166 | 0.152406 | 0.128342 | 0.128342 | 0.108734 | 0 | 0.006193 | 0.249795 | 3,659 | 123 | 78 | 29.747967 | 0.811293 | 0 | 0 | 0.068182 | 0 | 0 | 0.006013 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261364 | false | 0 | 0.090909 | 0.147727 | 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 |
b7ae088115ea54be408cf5dbeeea418028a0915a | 555 | py | Python | newsroom/search_indexes.py | onhan/free-site | f01de27a3cafd09234cddacfd4ca9705b5b9d6e7 | [
"BSD-3-Clause"
] | 19 | 2018-01-28T14:35:40.000Z | 2020-12-04T03:04:02.000Z | newsroom/search_indexes.py | groundupnews/gu | c7179ee3d058c8749d250d681032a76dc8d599d5 | [
"BSD-3-Clause"
] | 8 | 2018-06-02T14:28:28.000Z | 2021-08-06T10:22:37.000Z | newsroom/search_indexes.py | onhan/free-site | f01de27a3cafd09234cddacfd4ca9705b5b9d6e7 | [
"BSD-3-Clause"
] | 21 | 2018-02-25T14:07:48.000Z | 2020-05-28T23:10:52.000Z | import datetime
from haystack import indexes
from newsroom.models import Article
class ArticleIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
author = indexes.CharField(model_attr='cached_byline')
published = indexes.DateTimeField(model_attr='publ... | 27.75 | 74 | 0.740541 | 66 | 555 | 6.075758 | 0.590909 | 0.079801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 555 | 19 | 75 | 29.210526 | 0.862366 | 0 | 0 | 0 | 0 | 0 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.230769 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b7afa8a27cad2b0fb5955b6e1077f56ee52edbc1 | 1,887 | py | Python | python/kutulu/interfaces/bittrex.py | schurterb/kutulu | 043d6b4d87c6af3f3dacd5226346d7e7fcf71a92 | [
"Unlicense"
] | null | null | null | python/kutulu/interfaces/bittrex.py | schurterb/kutulu | 043d6b4d87c6af3f3dacd5226346d7e7fcf71a92 | [
"Unlicense"
] | null | null | null | python/kutulu/interfaces/bittrex.py | schurterb/kutulu | 043d6b4d87c6af3f3dacd5226346d7e7fcf71a92 | [
"Unlicense"
] | null | null | null | """
@auther schurterb
@date 17-12-11
@description
Bittrex exchange API wrapper
"""
from apiwrapper import ExchangeAPIWrapper
class BittrexAPI(ExchangeAPIWrapper):
def __init__(self, config, **kwargs):
pass
def __del__(self):
pass
def __connect(self):
pass
... | 20.966667 | 77 | 0.600424 | 210 | 1,887 | 5.304762 | 0.428571 | 0.088869 | 0.067325 | 0.048474 | 0.168761 | 0.05386 | 0.05386 | 0 | 0 | 0 | 0 | 0.006279 | 0.324854 | 1,887 | 90 | 78 | 20.966667 | 0.868132 | 0.039746 | 0 | 0.46875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.46875 | false | 0.46875 | 0.03125 | 0 | 0.53125 | 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 |
b7b45ade30f5f8fe1e1380a66f371f8b438050e0 | 194 | py | Python | servers/planning/src/simple_example/create_server.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 25 | 2016-07-20T04:49:14.000Z | 2021-08-25T09:05:04.000Z | servers/planning/src/simple_example/create_server.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2016-12-27T08:30:27.000Z | 2018-06-18T08:51:44.000Z | servers/planning/src/simple_example/create_server.py | arpitgogia/mars_city | 30cacd80487a8c2354bbc15b4fad211ed1cb4f9d | [
"BSD-2-Clause-FreeBSD"
] | 49 | 2016-07-20T13:08:27.000Z | 2020-06-02T18:26:12.000Z | import PyTango
dev_info = PyTango.DbDevInfo()
dev_info.server = "Publisher/test"
dev_info._class = "Publish"
dev_info.name = "test/publisher/1"
db = PyTango.Database()
db.add_device(dev_info)
| 19.4 | 34 | 0.762887 | 29 | 194 | 4.862069 | 0.551724 | 0.248227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.103093 | 194 | 9 | 35 | 21.555556 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.190722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
b7bdf489676c85f1df470f5b569f9da029e59c8a | 124 | py | Python | setup.py | cc-a/kapow | 294a78cbeec94aaed762277384b59b40fb003a88 | [
"MIT"
] | null | null | null | setup.py | cc-a/kapow | 294a78cbeec94aaed762277384b59b40fb003a88 | [
"MIT"
] | null | null | null | setup.py | cc-a/kapow | 294a78cbeec94aaed762277384b59b40fb003a88 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(name='kapow',
version='0.1',
packages=['kapow'],
ext_modules=[]
)
| 15.5 | 32 | 0.604839 | 15 | 124 | 4.933333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.225806 | 124 | 7 | 33 | 17.714286 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.104839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
b7e634572bbbe1b2313240029d60ec5c9c7c263c | 539 | py | Python | sympy/solvers/__init__.py | pernici/sympy | 5e6e3b71da777f5b85b8ca2d16f33ed020cf8a41 | [
"BSD-3-Clause"
] | null | null | null | sympy/solvers/__init__.py | pernici/sympy | 5e6e3b71da777f5b85b8ca2d16f33ed020cf8a41 | [
"BSD-3-Clause"
] | null | null | null | sympy/solvers/__init__.py | pernici/sympy | 5e6e3b71da777f5b85b8ca2d16f33ed020cf8a41 | [
"BSD-3-Clause"
] | null | null | null | """A module for solving all kinds of equations.
In [3]: solve(x**5+5*x**4+10*x**3+10*x**2+5*x+1,x)
Out[3]: [-1]
"""
from solvers import solve, solve_linear_system, solve_linear_system_LU, \
solve_undetermined_coeffs, tsolve, msolve, nsolve, solve_linear
from recurr import rsolve, rsolve_poly, rsolve_ratio, rsolve... | 31.705882 | 73 | 0.77551 | 88 | 539 | 4.5 | 0.522727 | 0.083333 | 0.085859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029598 | 0.122449 | 539 | 16 | 74 | 33.6875 | 0.807611 | 0.202226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.714286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b7ecf2108b6e5b7b420c48f253810ed9eee19711 | 164 | py | Python | 015.py | xianlinfeng/project_euler_python3 | 77eca44eb2b1d13bc70d6dc0258b737449d43a23 | [
"MIT"
] | null | null | null | 015.py | xianlinfeng/project_euler_python3 | 77eca44eb2b1d13bc70d6dc0258b737449d43a23 | [
"MIT"
] | null | null | null | 015.py | xianlinfeng/project_euler_python3 | 77eca44eb2b1d13bc70d6dc0258b737449d43a23 | [
"MIT"
] | null | null | null | def move(i, j):
if i == 20 or j == 20:
return 1
else:
return move(i+1, j) + move(i, j+1)
if __name__ == "__main__":
print(move(0, 0))
| 16.4 | 42 | 0.481707 | 29 | 164 | 2.448276 | 0.482759 | 0.211268 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0.341463 | 164 | 9 | 43 | 18.222222 | 0.574074 | 0 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 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 |
b7f9b198dfbaadc0d533badeaf57b9fd868aafe8 | 7,210 | py | Python | openprocurement/auction/esco/tests/unit/test_db.py | ProzorroUKR/openprocurement.auction.esco | 16a127ac7fc47cacaaf5f2eb708ea8b273e57e56 | [
"Apache-2.0"
] | null | null | null | openprocurement/auction/esco/tests/unit/test_db.py | ProzorroUKR/openprocurement.auction.esco | 16a127ac7fc47cacaaf5f2eb708ea8b273e57e56 | [
"Apache-2.0"
] | 3 | 2017-10-26T12:42:01.000Z | 2017-11-06T10:41:49.000Z | openprocurement/auction/esco/tests/unit/test_db.py | ProzorroUKR/openprocurement.auction.esco | 16a127ac7fc47cacaaf5f2eb708ea8b273e57e56 | [
"Apache-2.0"
] | 4 | 2017-07-10T12:03:38.000Z | 2017-09-08T10:19:46.000Z | # -*- coding: utf-8 -*-
import pytest
from constants import AUCTIONS
def test_get_auction_info(universal_auction, mocker):
mock_get_auction_info = mocker.MagicMock()
# mocker.patch('{}.get_auction_info'.format(AUCTIONS['simple']), mock_get_auction_info)
# mocker.patch('{}.get_auction_info'.format(AUCTIONS... | 49.047619 | 139 | 0.785021 | 905 | 7,210 | 5.807735 | 0.088398 | 0.15411 | 0.117199 | 0.049467 | 0.87481 | 0.817352 | 0.758752 | 0.641362 | 0.512367 | 0.494863 | 0 | 0.002486 | 0.107351 | 7,210 | 146 | 140 | 49.383562 | 0.81417 | 0.027046 | 0 | 0.514286 | 0 | 0 | 0.188418 | 0.106689 | 0 | 0 | 0 | 0 | 0.27619 | 1 | 0.066667 | false | 0 | 0.019048 | 0 | 0.104762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d02dcc2120dbde1bf18b201114ca2fd33608796 | 626 | py | Python | basic.py | LRHammond/pv4dsrl | 7053ea392f9ddbf3672a0ac348d61abe6b7264d9 | [
"MIT"
] | null | null | null | basic.py | LRHammond/pv4dsrl | 7053ea392f9ddbf3672a0ac348d61abe6b7264d9 | [
"MIT"
] | 2 | 2020-03-24T16:31:16.000Z | 2020-03-31T00:56:57.000Z | basic.py | LRHammond/pv4dsrl | 7053ea392f9ddbf3672a0ac348d61abe6b7264d9 | [
"MIT"
] | null | null | null | from pydc import HYPE
hype = HYPE("basic.pl", 500)
result = hype.plan_step(
# "[observation(posX(obj))~=(0),observation(posY(obj))~=(0),observation(posX(obj2))~=(50),observation(posY(obj2))~=(50)]",
# "[observation(posX(obj))~=(0),observation(posY(obj))~=(0)]",
"[observation(posX(obj))~=(0),observation(pos... | 39.125 | 192 | 0.65655 | 82 | 626 | 4.926829 | 0.402439 | 0.059406 | 0.222772 | 0.141089 | 0.544554 | 0.544554 | 0.544554 | 0.544554 | 0.544554 | 0.262376 | 0 | 0.051237 | 0.095847 | 626 | 15 | 193 | 41.733333 | 0.662544 | 0.298722 | 0 | 0 | 0 | 0.090909 | 0.478161 | 0.425287 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 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 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d5221e48b2034a951035dbc034f43282aab510d | 1,581 | py | Python | env/Lib/site-packages/OpenGL/raw/GLES2/EXT/texture_border_clamp.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | env/Lib/site-packages/OpenGL/raw/GLES2/EXT/texture_border_clamp.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | env/Lib/site-packages/OpenGL/raw/GLES2/EXT/texture_border_clamp.py | 5gconnectedbike/Navio2 | 8c3f2b5d8bbbcea1fc08739945183c12b206712c | [
"BSD-3-Clause"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
# End users want this...
from OpenGL.raw.GLES2._types import *
from OpenGL.raw.GLES2 import _errors
from OpenGL.constant import Constant as _C
import... | 39.525 | 127 | 0.825427 | 231 | 1,581 | 5.329004 | 0.290043 | 0.077985 | 0.045491 | 0.071487 | 0.592201 | 0.423233 | 0.423233 | 0.423233 | 0.423233 | 0.379366 | 0 | 0.010094 | 0.060089 | 1,581 | 39 | 128 | 40.538462 | 0.818304 | 0.063251 | 0 | 0.457143 | 1 | 0 | 0.073948 | 0.073948 | 0 | 0 | 0.008141 | 0 | 0 | 1 | 0.257143 | false | 0.228571 | 0.171429 | 0.028571 | 0.457143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4d5472cc0216d604496006b1162bc4c8c4a4a609 | 24 | py | Python | docmanage/docmanage/api/handlers/__init__.py | docloud/docmanage | 2e204b3a3c862715071b40088f052a5b18791a4b | [
"MIT"
] | null | null | null | docmanage/docmanage/api/handlers/__init__.py | docloud/docmanage | 2e204b3a3c862715071b40088f052a5b18791a4b | [
"MIT"
] | null | null | null | docmanage/docmanage/api/handlers/__init__.py | docloud/docmanage | 2e204b3a3c862715071b40088f052a5b18791a4b | [
"MIT"
] | null | null | null | __author__ = 'longchen'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 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 |
4d611f0bcf5db877fd494b5ab48c36c3ff86c7a1 | 454 | py | Python | order/migrations/0018_auto_20211121_2006.py | gheyderov/E-commerce-website | 9a87e8e6658a69fb017bdc3b36d6dc5417e3124e | [
"MIT"
] | null | null | null | order/migrations/0018_auto_20211121_2006.py | gheyderov/E-commerce-website | 9a87e8e6658a69fb017bdc3b36d6dc5417e3124e | [
"MIT"
] | null | null | null | order/migrations/0018_auto_20211121_2006.py | gheyderov/E-commerce-website | 9a87e8e6658a69fb017bdc3b36d6dc5417e3124e | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-11-21 20:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('order', '0017_auto_20211120_0815'),
]
operations = [
migrations.RemoveField(
model_name='billingaddress',
name='is_default',... | 20.636364 | 47 | 0.581498 | 44 | 454 | 5.840909 | 0.727273 | 0.163424 | 0.202335 | 0.233463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099042 | 0.310573 | 454 | 21 | 48 | 21.619048 | 0.722045 | 0.099119 | 0 | 0.4 | 1 | 0 | 0.189189 | 0.056511 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d78c50f0a58651ec7ea68f326604f4da29e925d | 422 | py | Python | 13_testikirjastot/matikka/tests_unittest/test_fibonacci_unittest.py | PythonVinkit/youtube-series | 7f5c6939e0e83d05798b7b86ac1683593f41288b | [
"MIT"
] | 2 | 2021-09-16T21:06:24.000Z | 2021-09-30T12:43:27.000Z | 13_testikirjastot/matikka/tests_unittest/test_fibonacci_unittest.py | PythonVinkit/youtube-series | 7f5c6939e0e83d05798b7b86ac1683593f41288b | [
"MIT"
] | null | null | null | 13_testikirjastot/matikka/tests_unittest/test_fibonacci_unittest.py | PythonVinkit/youtube-series | 7f5c6939e0e83d05798b7b86ac1683593f41288b | [
"MIT"
] | null | null | null | import unittest
from .. import fibonacci
class TestFibonacci(unittest.TestCase):
def test_correct_values_unittest(self):
self.assertEqual(fibonacci.fibonacci_of(5), 5)
self.assertEqual(fibonacci.fibonacci_of(6), 8)
self.assertEqual(fibonacci.fibonacci_of(7), 13)
def test_failed_typin... | 28.133333 | 55 | 0.718009 | 50 | 422 | 5.86 | 0.48 | 0.245734 | 0.273038 | 0.337884 | 0.358362 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023188 | 0.182464 | 422 | 14 | 56 | 30.142857 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.00237 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d81456baff501b082b2b629f96ab9792ff53979 | 593 | py | Python | Resume-Parser-JOBS/bin/jd_sectioning.py | eitrheim/Resume-Screening-and-Selection | 4ee2dd0d6ba917bcf244c704ef5042fe7596e600 | [
"MIT"
] | 14 | 2020-02-28T22:18:19.000Z | 2022-03-27T17:35:21.000Z | Resume-Parser-JOBS/bin/jd_sectioning.py | eitrheim/Resume-Screening-and-Selection | 4ee2dd0d6ba917bcf244c704ef5042fe7596e600 | [
"MIT"
] | 1 | 2020-03-30T12:47:08.000Z | 2020-03-30T12:47:08.000Z | Resume-Parser-JOBS/bin/jd_sectioning.py | eitrheim/Resume-Screening-and-Selection | 4ee2dd0d6ba917bcf244c704ef5042fe7596e600 | [
"MIT"
] | 7 | 2020-05-06T04:33:55.000Z | 2022-03-23T08:43:51.000Z | # coding: utf-8
import numpy as np
def create_columns(observations):
df = observations
df['Language'] = np.repeat("", len(df))
df['Work'] = np.repeat("", len(df))
df['Summaries'] = np.repeat("", len(df))
df['Skill'] = np.repeat("", len(df))
df['Member'] = np.repeat("", len(df))
df['Writin... | 28.238095 | 51 | 0.554806 | 81 | 593 | 4.049383 | 0.320988 | 0.268293 | 0.368902 | 0.435976 | 0.457317 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002088 | 0.192243 | 593 | 20 | 52 | 29.65 | 0.682672 | 0.021922 | 0 | 0 | 0 | 0 | 0.152249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4d8dd7be75d487c4d1803aa41b45fa9de7886848 | 2,313 | py | Python | tests/models.py | toros-astro/corral | 75474b38ff366330d33644461a902d07374a5bbc | [
"BSD-3-Clause"
] | 4 | 2015-11-19T16:04:30.000Z | 2021-05-13T06:42:27.000Z | tests/models.py | toros-astro/corral | 75474b38ff366330d33644461a902d07374a5bbc | [
"BSD-3-Clause"
] | 27 | 2015-10-20T16:28:02.000Z | 2018-08-21T20:48:45.000Z | tests/models.py | toros-astro/corral | 75474b38ff366330d33644461a902d07374a5bbc | [
"BSD-3-Clause"
] | 5 | 2015-11-20T00:03:07.000Z | 2019-07-15T00:39:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2016-2017, Cabral, Juan; Sanchez, Bruno & Berois, Martín
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of sourc... | 42.054545 | 79 | 0.650238 | 284 | 2,313 | 5.264085 | 0.570423 | 0.02408 | 0.022742 | 0.030769 | 0.123077 | 0.09097 | 0.09097 | 0.09097 | 0.09097 | 0.09097 | 0 | 0.00617 | 0.159101 | 2,313 | 54 | 80 | 42.833333 | 0.762468 | 0.817985 | 0 | 0 | 0 | 0 | 0.028205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4da6f1bbe25241aaee4aea3ffa2a8f3678cd5a38 | 180 | py | Python | 1 ano/logica-de-programacao/fatorial.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | 1 | 2021-09-24T16:26:04.000Z | 2021-09-24T16:26:04.000Z | 1 ano/logica-de-programacao/fatorial.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | null | null | null | 1 ano/logica-de-programacao/fatorial.py | ThiagoPereira232/tecnico-informatica | 6b55ecf34501b38052943acf1b37074e3472ce6e | [
"MIT"
] | null | null | null | def fatorial(n):
if n == 1:
return 1
else:
return n * fatorial(n-1)
n = int(input("Digite o número para o fatorial: "))
print(f"Fatorial: {fatorial(n)}")
| 18 | 51 | 0.566667 | 28 | 180 | 3.642857 | 0.535714 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.277778 | 180 | 9 | 52 | 20 | 0.761538 | 0 | 0 | 0 | 0 | 0 | 0.311111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 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 |
4da7d463135977395c0c408b94d24a2cd8447c6c | 108 | py | Python | module01/ex/ex016.py | LauroHBrant/python-course | 2154181ca4b684b0d1fa635706bcb1647a753bc3 | [
"MIT"
] | 2 | 2021-01-07T23:59:36.000Z | 2021-01-18T00:23:52.000Z | module01/ex/ex016.py | LauroHBrant/python-course | 2154181ca4b684b0d1fa635706bcb1647a753bc3 | [
"MIT"
] | null | null | null | module01/ex/ex016.py | LauroHBrant/python-course | 2154181ca4b684b0d1fa635706bcb1647a753bc3 | [
"MIT"
] | null | null | null | from math import trunc
n = float(input('Type a number: '))
print(f'The whole part of {n} is {trunc(n)}')
| 18 | 46 | 0.648148 | 20 | 108 | 3.5 | 0.85 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 108 | 5 | 47 | 21.6 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0.472222 | 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 |
4da915da86b6981cd5af4a53027c8f157140249c | 159 | py | Python | test.py | steckmey/shippable-fe | 5d4d0cb871ed775cfd40bb367599c6aed61f6231 | [
"Apache-2.0"
] | null | null | null | test.py | steckmey/shippable-fe | 5d4d0cb871ed775cfd40bb367599c6aed61f6231 | [
"Apache-2.0"
] | null | null | null | test.py | steckmey/shippable-fe | 5d4d0cb871ed775cfd40bb367599c6aed61f6231 | [
"Apache-2.0"
] | null | null | null | import application
import unittest
class SignupTestCase(unittest.TestCase):
def test(self):
pass
if __name__ == '__main__':
unittest.main()
| 14.454545 | 40 | 0.698113 | 17 | 159 | 6.058824 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207547 | 159 | 10 | 41 | 15.9 | 0.81746 | 0 | 0 | 0 | 0 | 0 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
4db243e1d6966c7124b7d779d861d9d6d51ce2cb | 628 | py | Python | torchmeta/datasets/__init__.py | yusufraji/siren | 9416a751f64b9d1e9816f7a05e895531e9506d8a | [
"MIT"
] | 1,245 | 2020-06-24T22:01:02.000Z | 2022-03-31T04:30:01.000Z | torchmeta/datasets/__init__.py | yusufraji/siren | 9416a751f64b9d1e9816f7a05e895531e9506d8a | [
"MIT"
] | 50 | 2020-06-25T09:16:45.000Z | 2022-02-15T14:49:07.000Z | torchmeta/datasets/__init__.py | yusufraji/siren | 9416a751f64b9d1e9816f7a05e895531e9506d8a | [
"MIT"
] | 203 | 2020-06-24T23:43:02.000Z | 2022-03-29T05:44:58.000Z | from torchmeta.datasets.triplemnist import TripleMNIST
from torchmeta.datasets.doublemnist import DoubleMNIST
from torchmeta.datasets.cub import CUB
from torchmeta.datasets.cifar100 import CIFARFS, FC100
from torchmeta.datasets.miniimagenet import MiniImagenet
from torchmeta.datasets.omniglot import Omniglot
from torch... | 26.166667 | 60 | 0.772293 | 65 | 628 | 7.4 | 0.246154 | 0.243243 | 0.392931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016822 | 0.148089 | 628 | 23 | 61 | 27.304348 | 0.882243 | 0 | 0 | 0 | 0 | 0 | 0.130573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4dd735b51b79d42cdae7540ea936c168fd9b1736 | 137 | py | Python | streaming-jobs/sort/reducer.py | jpodeszwik/hadoop-workshop-day1 | b7efbaf63acea6c7c230f191443c4449267a4f9d | [
"Apache-2.0"
] | null | null | null | streaming-jobs/sort/reducer.py | jpodeszwik/hadoop-workshop-day1 | b7efbaf63acea6c7c230f191443c4449267a4f9d | [
"Apache-2.0"
] | null | null | null | streaming-jobs/sort/reducer.py | jpodeszwik/hadoop-workshop-day1 | b7efbaf63acea6c7c230f191443c4449267a4f9d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import fileinput
for line in fileinput.input():
count, word = line.split()
print '{}\t{}'.format(word, count)
| 15.222222 | 35 | 0.671533 | 20 | 137 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145985 | 137 | 8 | 36 | 17.125 | 0.786325 | 0.145985 | 0 | 0 | 0 | 0 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4deb7a3d77419563b0da0f4f415a80d64b1d4b03 | 437 | py | Python | lib/db/temp_db_data.py | noelmcloughlin/iot-ble-gatt-server | fa21abae8ddd218d41cf41848b4f018570af0eef | [
"Apache-2.0"
] | 2 | 2019-01-03T18:02:32.000Z | 2019-04-08T22:43:11.000Z | lib/db/temp_db_data.py | noelmcloughlin/iot-ble-gatt-server | fa21abae8ddd218d41cf41848b4f018570af0eef | [
"Apache-2.0"
] | 6 | 2018-12-28T17:08:49.000Z | 2018-12-28T17:18:53.000Z | lib/db/temp_db_data.py | noelmcloughlin/iot-edge-stepping-stones | fa21abae8ddd218d41cf41848b4f018570af0eef | [
"Apache-2.0"
] | 1 | 2018-12-28T13:38:09.000Z | 2018-12-28T13:38:09.000Z | #!/usr/bin/env python
from tinydb import TinyDB, Query
import time,datetime
db = TinyDB('db.json')
temps=""
for item in db:
if "t" in item:
temps+= str(float(item['t']))
def min_temp():
return min(temps)
def max_temp():
return max(temps)
def mean_temp():
return sum(temps)/len(temps)
def te... | 18.208333 | 75 | 0.645309 | 66 | 437 | 4.212121 | 0.5 | 0.107914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196796 | 437 | 23 | 76 | 19 | 0.792023 | 0.045767 | 0 | 0 | 0 | 0 | 0.021635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.1875 | 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 |
4df0245fcbc7c8a61380fb322feba2972d470e95 | 186 | py | Python | flog/api/v1/__init__.py | rice0208/Flog | d56be0b814a0c6ca1fe4abd2c764552121698a94 | [
"MIT"
] | 14 | 2020-09-20T01:23:01.000Z | 2022-02-09T09:11:10.000Z | flog/api/v1/__init__.py | rice0208/Flog | d56be0b814a0c6ca1fe4abd2c764552121698a94 | [
"MIT"
] | 15 | 2020-12-23T13:19:46.000Z | 2022-01-22T08:38:22.000Z | flog/api/v1/__init__.py | rice0208/Flog | d56be0b814a0c6ca1fe4abd2c764552121698a94 | [
"MIT"
] | 4 | 2021-03-14T01:49:30.000Z | 2021-11-25T08:31:55.000Z | """
MIT License
Copyright(c) 2021 Andy Zhou
"""
from flask import Blueprint
from flask_cors import CORS
api_v1 = Blueprint("api_v1", __name__)
CORS(api_v1)
from . import views # noqa
| 15.5 | 38 | 0.741935 | 29 | 186 | 4.482759 | 0.586207 | 0.115385 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 0.16129 | 186 | 11 | 39 | 16.909091 | 0.788462 | 0.241935 | 0 | 0 | 0 | 0 | 0.045113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
127486a71819ad214d74f004c821817d3a20c24c | 268 | py | Python | dashboard/views/_house_management/_all_your_details.py | beta-nu-theta-chi/ox-dashboard | 842d86a381f26159b2c5bad39a95169496832023 | [
"MIT"
] | null | null | null | dashboard/views/_house_management/_all_your_details.py | beta-nu-theta-chi/ox-dashboard | 842d86a381f26159b2c5bad39a95169496832023 | [
"MIT"
] | 70 | 2016-11-16T18:49:02.000Z | 2021-04-26T00:47:18.000Z | dashboard/views/_house_management/_all_your_details.py | beta-nu-theta-chi/ox-dashboard | 842d86a381f26159b2c5bad39a95169496832023 | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import login_required
from dashboard.views._positions._non_ec._detail_manager import all_details_helper
@login_required
def all_details(request):
brother = request.user.brother
return all_details_helper(request, brother)
| 26.8 | 81 | 0.83209 | 36 | 268 | 5.861111 | 0.638889 | 0.14218 | 0.151659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104478 | 268 | 9 | 82 | 29.777778 | 0.879167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | 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 |
12815b99c26140af14a8caaf934876faa0d8161d | 105 | py | Python | basico/aula012/aula012.py | KaicPierre/Curso-de-Python3 | 6267ba92c298f0ffa103e374615f040b0db13339 | [
"MIT"
] | 1 | 2020-09-04T07:46:45.000Z | 2020-09-04T07:46:45.000Z | basico/aula012/aula012.py | KaicPierre/Curso-de-Python3 | 6267ba92c298f0ffa103e374615f040b0db13339 | [
"MIT"
] | null | null | null | basico/aula012/aula012.py | KaicPierre/Curso-de-Python3 | 6267ba92c298f0ffa103e374615f040b0db13339 | [
"MIT"
] | null | null | null | numero1 = input('Digite um número')
numero2 = input('Digite outro número')
# isnumeric isdigit isdecimal | 26.25 | 38 | 0.761905 | 13 | 105 | 6.153846 | 0.769231 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021978 | 0.133333 | 105 | 4 | 39 | 26.25 | 0.857143 | 0.257143 | 0 | 0 | 0 | 0 | 0.454545 | 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 |
12888cdbeafbad57c2ab3b6ff33ae69759c15609 | 847 | py | Python | passy_forms/forms/widgets.py | vleon1/passy | fe48ed9f932eb6df9dbe463344b034218c81567b | [
"Apache-2.0"
] | null | null | null | passy_forms/forms/widgets.py | vleon1/passy | fe48ed9f932eb6df9dbe463344b034218c81567b | [
"Apache-2.0"
] | 19 | 2017-02-18T17:53:56.000Z | 2017-03-11T22:09:06.000Z | passy_forms/forms/widgets.py | vleon1/passy | fe48ed9f932eb6df9dbe463344b034218c81567b | [
"Apache-2.0"
] | null | null | null | from django.forms import widgets
class TextInput(widgets.TextInput):
template_name = 'passy_forms/forms/widgets/text_input.html'
class PasswordInput(widgets.PasswordInput):
template_name = 'passy_forms/forms/widgets/text_input.html'
class NumberInput(widgets.TextInput):
input_type = 'text'... | 25.666667 | 68 | 0.688312 | 97 | 847 | 5.762887 | 0.381443 | 0.107335 | 0.152057 | 0.19678 | 0.42576 | 0.42576 | 0.304114 | 0.304114 | 0.186047 | 0.186047 | 0 | 0.00295 | 0.199528 | 847 | 32 | 69 | 26.46875 | 0.821534 | 0 | 0 | 0.111111 | 0 | 0 | 0.307975 | 0.263804 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.388889 | 0.055556 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
128d12da5b419f047325d449cbb9ec3a6eb6a392 | 8,478 | py | Python | jupyterlab_git/tests/test_handlers.py | elgravel/jupyterlab-git | 98a6cc96f8be48c0ea1ca52127cf1af4d0e77a4f | [
"BSD-3-Clause"
] | null | null | null | jupyterlab_git/tests/test_handlers.py | elgravel/jupyterlab-git | 98a6cc96f8be48c0ea1ca52127cf1af4d0e77a4f | [
"BSD-3-Clause"
] | null | null | null | jupyterlab_git/tests/test_handlers.py | elgravel/jupyterlab-git | 98a6cc96f8be48c0ea1ca52127cf1af4d0e77a4f | [
"BSD-3-Clause"
] | null | null | null | import json
from mock import Mock, ANY, patch
from jupyterlab_git.handlers import (
GitAllHistoryHandler,
GitBranchHandler,
GitLogHandler,
GitPushHandler,
GitUpstreamHandler,
setup_handlers
)
def test_mapping_added():
mock_web_app = Mock()
mock_web_app.settings = {
'base_url': ... | 36.230769 | 139 | 0.689314 | 986 | 8,478 | 5.539554 | 0.089249 | 0.05639 | 0.126877 | 0.152325 | 0.813072 | 0.727572 | 0.699927 | 0.666239 | 0.666239 | 0.630172 | 0 | 0.013432 | 0.183298 | 8,478 | 233 | 140 | 36.386266 | 0.775419 | 0.01498 | 0 | 0.461988 | 0 | 0 | 0.341701 | 0.207543 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.052632 | false | 0 | 0.017544 | 0 | 0.070175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
129e18a869be9998f896e0989d8a27bb8f805c10 | 5,115 | py | Python | pytorch_toolbelt/modules/encoders/wide_resnet.py | anshulrai/pytorch-toolbelt | 933d59eb5d0916170b3d467f68af615064dbf7a1 | [
"MIT"
] | null | null | null | pytorch_toolbelt/modules/encoders/wide_resnet.py | anshulrai/pytorch-toolbelt | 933d59eb5d0916170b3d467f68af615064dbf7a1 | [
"MIT"
] | null | null | null | pytorch_toolbelt/modules/encoders/wide_resnet.py | anshulrai/pytorch-toolbelt | 933d59eb5d0916170b3d467f68af615064dbf7a1 | [
"MIT"
] | null | null | null | from typing import List
from .common import EncoderModule, _take, make_n_channel_input
from ..activated_batch_norm import ABN
from ..backbone.wider_resnet import WiderResNet, WiderResNetA2
__all__ = [
"WiderResnetEncoder",
"WiderResnet16A2Encoder",
"WiderResnet16Encoder",
"WiderResnet20Encoder",
"... | 30.813253 | 106 | 0.638514 | 629 | 5,115 | 5.00318 | 0.152623 | 0.080076 | 0.088974 | 0.046711 | 0.766126 | 0.750874 | 0.721957 | 0.626629 | 0.626629 | 0.626629 | 0 | 0.066287 | 0.244966 | 5,115 | 165 | 107 | 31 | 0.748576 | 0.015836 | 0 | 0.655462 | 0 | 0 | 0.034188 | 0.013119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.033613 | 0.016807 | 0.268908 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
12a412aa48de9a36d4066e8cb277da0c5ee4a37d | 2,140 | py | Python | translate/cache.py | raojinlin/cmd-fanyi | 8d747c31bc706df5771133a7e84fb941d1b11849 | [
"MIT"
] | 1 | 2020-07-04T05:56:01.000Z | 2020-07-04T05:56:01.000Z | translate/cache.py | raojinlin/cmd-fanyi | 8d747c31bc706df5771133a7e84fb941d1b11849 | [
"MIT"
] | null | null | null | translate/cache.py | raojinlin/cmd-fanyi | 8d747c31bc706df5771133a7e84fb941d1b11849 | [
"MIT"
] | null | null | null | import abc
import os
import hashlib
import json
class CacheBase(abc.ABC):
@abc.abstractmethod
def set(self, key, content):
pass
@abc.abstractmethod
def get(self, key):
pass
@abc.abstractmethod
def delete(self, key):
pass
class CachePathNotExistsError(FileNotFoundErr... | 23.010753 | 80 | 0.606542 | 273 | 2,140 | 4.575092 | 0.245421 | 0.061649 | 0.038431 | 0.031225 | 0.221777 | 0.08807 | 0.08807 | 0.044836 | 0 | 0 | 0 | 0.004554 | 0.281776 | 2,140 | 92 | 81 | 23.26087 | 0.808068 | 0 | 0 | 0.257576 | 0 | 0 | 0.037401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0.060606 | 0.060606 | 0.045455 | 0.515152 | 0.015152 | 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 |
12aa8e2775d11e0400a590a6ec96c915c36ca2b6 | 10,719 | py | Python | tests/test_exceptions/test_validation_error.py | ni-ning/django | 2e7ba6057cfc82a15a22b6021cd60cf307152e2d | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 61,676 | 2015-01-01T00:05:13.000Z | 2022-03-31T20:37:54.000Z | tests/test_exceptions/test_validation_error.py | ni-ning/django | 2e7ba6057cfc82a15a22b6021cd60cf307152e2d | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] | 8,884 | 2015-01-01T00:12:05.000Z | 2022-03-31T19:53:11.000Z | tests/test_exceptions/test_validation_error.py | mustafa0x/django | d7394cfa13a4d1a02356e3a83e10ec100fbb9948 | [
"BSD-3-Clause",
"0BSD"
] | 33,143 | 2015-01-01T02:04:52.000Z | 2022-03-31T19:42:46.000Z | import unittest
from unittest import mock
from django.core.exceptions import ValidationError
class TestValidationError(unittest.TestCase):
def test_messages_concatenates_error_dict_values(self):
message_dict = {}
exception = ValidationError(message_dict)
self.assertEqual(sorted(exception.... | 37.479021 | 80 | 0.549585 | 918 | 10,719 | 6.352941 | 0.068627 | 0.16358 | 0.094307 | 0.080247 | 0.812929 | 0.744856 | 0.707305 | 0.595165 | 0.517661 | 0.500686 | 0 | 0.039419 | 0.299468 | 10,719 | 285 | 81 | 37.610526 | 0.737249 | 0.015953 | 0 | 0.629771 | 0 | 0 | 0.154634 | 0 | 0 | 0 | 0 | 0 | 0.28626 | 1 | 0.019084 | false | 0 | 0.01145 | 0 | 0.034351 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
12ccacf3749c3353d3b3439ec1e85361cfe778e7 | 13,558 | py | Python | src/rtmilk/sansio.py | rkhwaja/rtmilk | 3164415a83918514efcc650cfefa9cf8ddef0aa7 | [
"MIT"
] | null | null | null | src/rtmilk/sansio.py | rkhwaja/rtmilk | 3164415a83918514efcc650cfefa9cf8ddef0aa7 | [
"MIT"
] | 15 | 2021-11-24T09:11:55.000Z | 2022-03-27T05:12:52.000Z | src/rtmilk/sansio.py | rkhwaja/rtmilk | 3164415a83918514efcc650cfefa9cf8ddef0aa7 | [
"MIT"
] | null | null | null | from datetime import date, datetime
from hashlib import md5
from logging import getLogger
from pprint import pformat
from typing import List, Optional, Union
from pydantic import stricturl, validate_arguments, ValidationError # pylint: disable=no-name-in-module
from .models import AuthResponse, EchoResponse, FailStat... | 38.407932 | 318 | 0.758371 | 1,808 | 13,558 | 5.551438 | 0.168142 | 0.032281 | 0.027797 | 0.077214 | 0.577663 | 0.527648 | 0.471755 | 0.418651 | 0.375212 | 0.358773 | 0 | 0.00109 | 0.120593 | 13,558 | 352 | 319 | 38.517045 | 0.840728 | 0.09168 | 0 | 0.393939 | 0 | 0 | 0.077637 | 0.01359 | 0 | 0 | 0 | 0.002841 | 0.007576 | 1 | 0.257576 | false | 0 | 0.026515 | 0.200758 | 0.659091 | 0.003788 | 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 |
12d45cdb11c8f8603e8805025872b2fd2d253d0f | 177 | py | Python | icsmp_project/img3d/urls.py | ICSMP/icsmp | bf811f7457aa6d6e7251c209631d63496e561925 | [
"MIT"
] | null | null | null | icsmp_project/img3d/urls.py | ICSMP/icsmp | bf811f7457aa6d6e7251c209631d63496e561925 | [
"MIT"
] | 5 | 2020-10-13T01:18:27.000Z | 2020-10-15T07:00:45.000Z | icsmp_project/img3d/urls.py | ICSMP/icsmp | bf811f7457aa6d6e7251c209631d63496e561925 | [
"MIT"
] | 1 | 2020-10-13T01:17:09.000Z | 2020-10-13T01:17:09.000Z | from django.urls import path
from icsmp_project.img3d.views import Img3dListView
app_name = 'img3d'
urlpatterns = [
path('', Img3dListView.as_view(), name='lista_img'),
]
| 19.666667 | 56 | 0.740113 | 23 | 177 | 5.521739 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.135593 | 177 | 8 | 57 | 22.125 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.079096 | 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 |
12d7f9453f16a78837920d4745b4ee955d198963 | 95 | py | Python | 001113StepikPyGEK/StepikPyGEK001113сh04p02st10C04_20200409.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001113StepikPyGEK/StepikPyGEK001113сh04p02st10C04_20200409.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001113StepikPyGEK/StepikPyGEK001113сh04p02st10C04_20200409.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | num = float(input())
if num // 10 != 0 and num % 10 == 3 and num // 100 == 0:
print("YES")
| 23.75 | 56 | 0.505263 | 17 | 95 | 2.823529 | 0.647059 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 0.273684 | 95 | 3 | 57 | 31.666667 | 0.550725 | 0 | 0 | 0 | 0 | 0 | 0.031579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
12f0382bf34d4c74fbb5bb7a8c38feee3fb01345 | 704 | py | Python | FreeTAKServer/model/SQLAlchemy/CoTTables/_Group.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | null | null | null | FreeTAKServer/model/SQLAlchemy/CoTTables/_Group.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | null | null | null | FreeTAKServer/model/SQLAlchemy/CoTTables/_Group.py | logikal/FreeTakServer | c0916ce65781b5c60079d6440e52db8fc6ee0467 | [
"MIT"
] | null | null | null | #######################################################
#
# _group.py
# Python implementation of the Class _group
# Generated by Enterprise Architect
# Created on: 28-Sep-2020 10:48:10 PM
# Original author: natha
#
#######################################################
from sqlalchemy import Column, ForeignKey,... | 33.52381 | 74 | 0.627841 | 72 | 704 | 5.930556 | 0.680556 | 0.046838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019769 | 0.137784 | 704 | 21 | 75 | 33.52381 | 0.68369 | 0.271307 | 0 | 0 | 1 | 0 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
12f0862820b807211306ad3c4ef37a214ed1a606 | 594 | py | Python | apps/reviews/models/reviews.py | Haizza1/RandomCameras-Backend | b679e2c685a9f9582f5f1a6b4c79c91c2328e326 | [
"MIT"
] | 1 | 2021-06-09T01:35:59.000Z | 2021-06-09T01:35:59.000Z | apps/reviews/models/reviews.py | Haizza1/RandomCameras-Backend | b679e2c685a9f9582f5f1a6b4c79c91c2328e326 | [
"MIT"
] | null | null | null | apps/reviews/models/reviews.py | Haizza1/RandomCameras-Backend | b679e2c685a9f9582f5f1a6b4c79c91c2328e326 | [
"MIT"
] | null | null | null | """Reviews models."""
# Django
from django.db import models
# Models
from apps.utilities import RandomCamerasModel
from apps.utilities.reviews import Review
from apps.products.models import Camera, Lens
class CameraReview(RandomCamerasModel, Review):
"""Camera review model."""
product = models.ForeignKey(Ca... | 23.76 | 65 | 0.727273 | 69 | 594 | 6.115942 | 0.405797 | 0.056872 | 0.080569 | 0.113744 | 0.379147 | 0.218009 | 0.218009 | 0.218009 | 0.218009 | 0.218009 | 0 | 0 | 0.171717 | 594 | 25 | 66 | 23.76 | 0.857724 | 0.116162 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
421470711ac4b4c6b368adf6d1600afc5c6942ef | 178 | py | Python | coders/curso_python/fundamentos/lista.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2021-02-20T23:50:07.000Z | 2021-08-15T03:04:35.000Z | coders/curso_python/fundamentos/lista.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 18 | 2019-08-07T02:33:00.000Z | 2021-03-18T22:52:38.000Z | coders/curso_python/fundamentos/lista.py | flaviogf/Cursos | 2b120dbcd24a907121f58482fdcdfa01b164872c | [
"MIT"
] | 2 | 2020-09-28T13:00:09.000Z | 2021-12-30T12:21:08.000Z | lista = [1, 2, 3]
lista.insert(1, 'teste')
lista.append(10)
print(lista)
print(lista[1:-1])
print(2 in lista)
lista.reverse()
print(lista)
print('teste' not in lista)
| 16.181818 | 28 | 0.646067 | 30 | 178 | 3.833333 | 0.4 | 0.26087 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060811 | 0.168539 | 178 | 10 | 29 | 17.8 | 0.716216 | 0 | 0 | 0.222222 | 0 | 0 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
422ccc3b1cd6bf6831b292097b7f1c577a1d5ed3 | 114 | py | Python | raw/Z.py | mentix02/TheSmallProgrammingBook | 8f4574b074fb5f4f1c4e8d6cffe2f45929c76aa9 | [
"MIT"
] | 1 | 2020-02-29T22:07:02.000Z | 2020-02-29T22:07:02.000Z | raw/Z.py | mentix02/TheSmallProgrammingBook | 8f4574b074fb5f4f1c4e8d6cffe2f45929c76aa9 | [
"MIT"
] | null | null | null | raw/Z.py | mentix02/TheSmallProgrammingBook | 8f4574b074fb5f4f1c4e8d6cffe2f45929c76aa9 | [
"MIT"
] | null | null | null | from math import factorial
def Z(n):
n = int(input())
for i in range(n):
x = int(input())
print()
| 10.363636 | 26 | 0.552632 | 19 | 114 | 3.315789 | 0.789474 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289474 | 114 | 10 | 27 | 11.4 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4247ac1c6e6d6237f071e5b6bed5dd57b60dd200 | 263 | py | Python | helpers/image_downloader.py | lab-03/face_recognition | 2a2a5428917b5e53f92c1fd29d4960bbda7c2d5e | [
"MIT"
] | null | null | null | helpers/image_downloader.py | lab-03/face_recognition | 2a2a5428917b5e53f92c1fd29d4960bbda7c2d5e | [
"MIT"
] | null | null | null | helpers/image_downloader.py | lab-03/face_recognition | 2a2a5428917b5e53f92c1fd29d4960bbda7c2d5e | [
"MIT"
] | null | null | null | import urllib.request
# Download the file from `url`, save it in a temporary directory and get the
# path to it (e.g. '/tmp/tmpb48zma.txt') in the `file_name` variable:
def url_to_image(url):
file_name = urllib.request.urlretrieve(url)[0]
return file_name | 43.833333 | 76 | 0.737643 | 45 | 263 | 4.2 | 0.666667 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.155894 | 263 | 6 | 77 | 43.833333 | 0.837838 | 0.539924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
426184c809c141fffcd74e46fe9b366823f1d71e | 526 | py | Python | app/chat/controllers.py | nithesh1212/chatbotcustom | 855fb92a49ffa2e4bf60fc8483402102cf35ae41 | [
"MIT"
] | null | null | null | app/chat/controllers.py | nithesh1212/chatbotcustom | 855fb92a49ffa2e4bf60fc8483402102cf35ae41 | [
"MIT"
] | null | null | null | app/chat/controllers.py | nithesh1212/chatbotcustom | 855fb92a49ffa2e4bf60fc8483402102cf35ae41 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, redirect
from requests import request, session
from flask import request
import base64
from app.stories.models import User
import requests
chat = Blueprint('chat_blueprint', __name__,
url_prefix='/',
template_folder='templates'
... | 14.216216 | 54 | 0.65019 | 59 | 526 | 5.627119 | 0.491525 | 0.126506 | 0.090361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.231939 | 526 | 36 | 55 | 14.611111 | 0.816832 | 0 | 0 | 0 | 0 | 0 | 0.107004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
4267fe21ecbaec246eb308b6c3c458dfd4595993 | 703 | py | Python | 5.2/mail126.py | roet80736/python-study | 512226dc635db2f8903288e4b439db825979cb04 | [
"MIT"
] | null | null | null | 5.2/mail126.py | roet80736/python-study | 512226dc635db2f8903288e4b439db825979cb04 | [
"MIT"
] | null | null | null | 5.2/mail126.py | roet80736/python-study | 512226dc635db2f8903288e4b439db825979cb04 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
driver.get("http://192.168.1.120:29002/login?from=%2F")
driver.implicitly_wait(3)
# 登录
# above = driver.find_element_by_id("lbNormal")
# ActionChains(driver).move_to_element(above).perform()
# d... | 37 | 76 | 0.796586 | 109 | 703 | 4.834862 | 0.477064 | 0.132827 | 0.225806 | 0.252372 | 0.351044 | 0.271347 | 0.271347 | 0 | 0 | 0 | 0 | 0.028316 | 0.045519 | 703 | 18 | 77 | 39.055556 | 0.757079 | 0.182077 | 0 | 0 | 0 | 0 | 0.226316 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
427f24d61d83a27f3b7681b17aef2532fac5f019 | 10,681 | py | Python | tests/annotate/test_melody.py | p42ul/medleydb | 027cdaa32564eb0784dad9c879b8aac49c80b4cb | [
"MIT"
] | 125 | 2015-06-10T16:31:19.000Z | 2022-03-29T11:03:05.000Z | tests/annotate/test_melody.py | p42ul/medleydb | 027cdaa32564eb0784dad9c879b8aac49c80b4cb | [
"MIT"
] | 81 | 2015-11-09T15:51:04.000Z | 2021-11-30T12:30:55.000Z | tests/annotate/test_melody.py | p42ul/medleydb | 027cdaa32564eb0784dad9c879b8aac49c80b4cb | [
"MIT"
] | 45 | 2015-10-19T02:47:33.000Z | 2022-03-06T16:20:33.000Z | """Tests for generate_melody_annotations script"""
from __future__ import print_function
import unittest
import os
import numpy as np
from medleydb import MultiTrack
from medleydb.annotate import melody as G
from medleydb.multitrack import _MELODY1_PATH, _MELODY2_PATH, _MELODY3_PATH
HOP = 256.0
FS = 44100.0
def arr... | 30.869942 | 78 | 0.543582 | 1,406 | 10,681 | 3.97724 | 0.092461 | 0.037196 | 0.094778 | 0.082618 | 0.768956 | 0.738376 | 0.712804 | 0.678827 | 0.580472 | 0.523963 | 0 | 0.082048 | 0.314203 | 10,681 | 345 | 79 | 30.95942 | 0.681365 | 0.00646 | 0 | 0.620805 | 1 | 0 | 0.021786 | 0.017071 | 0 | 0 | 0 | 0 | 0.077181 | 1 | 0.090604 | false | 0 | 0.02349 | 0 | 0.137584 | 0.04698 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
4281fe862d9c9d0e6aba48b57c1f785fcbce2ed5 | 1,018 | py | Python | src/Player.py | justin4480/fiesta_fight | 870b563530034c10a6708f9e9370a04c96ed7f4a | [
"MIT"
] | null | null | null | src/Player.py | justin4480/fiesta_fight | 870b563530034c10a6708f9e9370a04c96ed7f4a | [
"MIT"
] | null | null | null | src/Player.py | justin4480/fiesta_fight | 870b563530034c10a6708f9e9370a04c96ed7f4a | [
"MIT"
] | null | null | null | class Player:
def __init__(self, player_name):
self.player_name = player_name
self.character = None
self.level = 1
self.hp = 100
self.mp = 1
self.win_record = {'win': 0, 'lose': 0}
self.score = 0
def get_name(self):
return self.player_name
d... | 24.829268 | 71 | 0.548134 | 129 | 1,018 | 4.139535 | 0.232558 | 0.170412 | 0.131086 | 0.033708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.332024 | 1,018 | 40 | 72 | 25.45 | 0.773529 | 0 | 0 | 0 | 0 | 0 | 0.218075 | 0.102161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0 | 0.193548 | 0.516129 | 0.032258 | 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 |
429299a1fd2ebaa74657ff14c6c5203aa9cdd165 | 13,796 | py | Python | rali/python/rali_lib.py | Reza-Najafi/MIVisionX | 8b00939cea17534f7b564439c27be1bc4d725fb6 | [
"MIT"
] | null | null | null | rali/python/rali_lib.py | Reza-Najafi/MIVisionX | 8b00939cea17534f7b564439c27be1bc4d725fb6 | [
"MIT"
] | 2 | 2019-11-06T19:55:49.000Z | 2020-03-31T22:36:38.000Z | rali/python/rali_lib.py | Reza-Najafi/MIVisionX | 8b00939cea17534f7b564439c27be1bc4d725fb6 | [
"MIT"
] | 4 | 2019-05-21T06:45:17.000Z | 2020-03-06T23:33:42.000Z | import ctypes
from numpy.ctypeslib import ndpointer
from rali_common import *
import numpy as np
class RaliLib:
def __init__(self):
self.sharedlib = RALI_LIB_NAME
self.lib = ctypes.cdll.LoadLibrary( self.sharedlib)
""" rali_api.h """
self.createPipeline = self.lib.raliCreate
... | 52.257576 | 239 | 0.731371 | 1,866 | 13,796 | 5.131297 | 0.063237 | 0.227363 | 0.202193 | 0.220574 | 0.592585 | 0.548616 | 0.35154 | 0.33953 | 0.320522 | 0.315614 | 0 | 0.001928 | 0.172731 | 13,796 | 263 | 240 | 52.456274 | 0.837028 | 0 | 0 | 0 | 0 | 0 | 0.00352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005236 | false | 0 | 0.020942 | 0 | 0.031414 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
429406f4f27b81748c79467b7d59db0cc518a219 | 100 | py | Python | ggit_platform/apps.py | girlsgoit/GirlsGoIT | 447cd15c44ebee4af9e942a079d681be8683239f | [
"MIT"
] | 1 | 2019-02-27T21:20:54.000Z | 2019-02-27T21:20:54.000Z | ggit_platform/apps.py | girlsgoit/GirlsGoIT | 447cd15c44ebee4af9e942a079d681be8683239f | [
"MIT"
] | null | null | null | ggit_platform/apps.py | girlsgoit/GirlsGoIT | 447cd15c44ebee4af9e942a079d681be8683239f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GgitPlatformConfig(AppConfig):
name = 'ggit_platform'
| 16.666667 | 36 | 0.78 | 11 | 100 | 7 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 37 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.13 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
42a4fb2f2605855a300397880821e8b529194023 | 266 | py | Python | cisco_umbrella_dns_rules/suspicious_domains.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | 4 | 2019-10-17T19:33:29.000Z | 2019-10-21T15:23:30.000Z | cisco_umbrella_dns_rules/suspicious_domains.py | jacknagz/panther-analysis | fceab78ba5624136776596ee1b25fa0dc8a02a42 | [
"Apache-2.0"
] | null | null | null | cisco_umbrella_dns_rules/suspicious_domains.py | jacknagz/panther-analysis | fceab78ba5624136776596ee1b25fa0dc8a02a42 | [
"Apache-2.0"
] | null | null | null | DOMAINS_TO_MONITOR = {"photoscape.ch"} # Sample malware domain
def rule(event):
return any(domain in event.get("domain") for domain in DOMAINS_TO_MONITOR)
def title(event):
return "Suspicious lookup to domain " + event.get("domain", "<UNKNOWN_DOMAIN>")
| 26.6 | 83 | 0.721805 | 37 | 266 | 5.054054 | 0.540541 | 0.096257 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154135 | 266 | 9 | 84 | 29.555556 | 0.831111 | 0.078947 | 0 | 0 | 0 | 0 | 0.283951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.4 | 0.8 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
42b0550a71c135de58f2b8cd0356b3ba84171e55 | 263 | py | Python | cellpack/mgl_tools/opengltk/glplus.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | null | null | null | cellpack/mgl_tools/opengltk/glplus.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | 21 | 2021-10-02T00:07:05.000Z | 2022-03-30T00:02:10.000Z | cellpack/mgl_tools/opengltk/glplus.py | mesoscope/cellpack | ec6b736fc706c1fae16392befa814b5337a3a692 | [
"MIT"
] | null | null | null | #
# copyright_notice
#
"""OpenGL utilities
"""
from opengltk.OpenGL import GL
def DrawArrays(mode, count, first=0):
"""glDrawArrays with default args
model - GLenum
count - GLsizei
first - GLint
"""
GL.glDrawArrays(mode, first, count)
| 14.611111 | 39 | 0.657795 | 30 | 263 | 5.733333 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004926 | 0.228137 | 263 | 17 | 40 | 15.470588 | 0.842365 | 0.418251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
35f28a8210ac343c40ff25e13192fbeb22413f91 | 3,374 | py | Python | scripts/gas_measure_parser.py | robotics-upo/libelium_waspmote_gas_node | a0b5992621d2f3caf5e73123816a01c61f641c5c | [
"MIT"
] | 2 | 2018-05-28T10:12:10.000Z | 2018-06-24T21:40:50.000Z | scripts/gas_measure_parser.py | robotics-upo/libelium_waspmote_gas_node | a0b5992621d2f3caf5e73123816a01c61f641c5c | [
"MIT"
] | null | null | null | scripts/gas_measure_parser.py | robotics-upo/libelium_waspmote_gas_node | a0b5992621d2f3caf5e73123816a01c61f641c5c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# license removed for brevity
import sys
import rospy
from libelium_waspmote_gas_node.msg import GasMeasure
# msg is a list of strings
class GasMeasureParser:
def __init__(self):
self.seq = 0
self.msg = GasMeasure()
self.msg.head.seq = 0
self.msg.head.frame_id = 'base_link'
... | 35.145833 | 65 | 0.641968 | 500 | 3,374 | 4.098 | 0.19 | 0.241093 | 0.298682 | 0.037579 | 0.52123 | 0.352855 | 0.111274 | 0 | 0 | 0 | 0 | 0.021348 | 0.208654 | 3,374 | 96 | 66 | 35.145833 | 0.746067 | 0.059573 | 0 | 0.123457 | 0 | 0 | 0.120265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037037 | null | null | 0.012346 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c40a9e065cdbe3656b372f84d4b9579a22fc0127 | 325 | py | Python | manage.py | Kazade/givefood | 340dc411e422d02b83dae7d5206d8c418791a50f | [
"Unlicense"
] | 2 | 2021-06-12T08:04:54.000Z | 2022-02-16T21:12:22.000Z | manage.py | Kazade/givefood | 340dc411e422d02b83dae7d5206d8c418791a50f | [
"Unlicense"
] | 198 | 2020-12-20T20:41:29.000Z | 2022-03-29T15:06:30.000Z | manage.py | Kazade/givefood | 340dc411e422d02b83dae7d5206d8c418791a50f | [
"Unlicense"
] | 2 | 2021-02-15T16:38:30.000Z | 2021-08-07T07:48:58.000Z | #!/usr/bin/env python
import os
import sys
from givefood.boot import fix_path
fix_path(include_dev_libs_path=True)
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "givefood.settings")
from djangae.core.management import execute_from_command_line
execute_from_command_line(sys.a... | 23.214286 | 72 | 0.793846 | 47 | 325 | 5.042553 | 0.659574 | 0.059072 | 0.151899 | 0.185654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116923 | 325 | 13 | 73 | 25 | 0.825784 | 0.061538 | 0 | 0 | 0 | 0 | 0.154605 | 0.072368 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c4143a3667ec0c0a55e24f63886dc919d382448f | 7,831 | py | Python | matrix/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/abstract_settings.py | nzmodbox/repo.modbox | 5a5d77089f94f2fdde755ccc2e5f93e81f54f261 | [
"Apache-2.0"
] | null | null | null | matrix/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/abstract_settings.py | nzmodbox/repo.modbox | 5a5d77089f94f2fdde755ccc2e5f93e81f54f261 | [
"Apache-2.0"
] | null | null | null | matrix/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/abstract_settings.py | nzmodbox/repo.modbox | 5a5d77089f94f2fdde755ccc2e5f93e81f54f261 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
import sys
from .. import constants
from ..logger import log_debug
class Abstract... | 31.449799 | 92 | 0.631209 | 994 | 7,831 | 4.727364 | 0.197183 | 0.056608 | 0.063631 | 0.068738 | 0.381571 | 0.269206 | 0.23388 | 0.111939 | 0.066823 | 0.056608 | 0 | 0.024724 | 0.271741 | 7,831 | 248 | 93 | 31.576613 | 0.799228 | 0.030009 | 0 | 0.177778 | 0 | 0 | 0.017569 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255556 | false | 0.005556 | 0.016667 | 0.138889 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c4200866a88bb6c214f627371fb91f4080daa3d2 | 712 | py | Python | Django/usersForum/start.py | Oluwasegun-AA/pipit | 1ea770b0833f086066ad8e3cdf256804e56a266e | [
"MIT"
] | null | null | null | Django/usersForum/start.py | Oluwasegun-AA/pipit | 1ea770b0833f086066ad8e3cdf256804e56a266e | [
"MIT"
] | 8 | 2020-04-15T04:19:31.000Z | 2021-03-19T07:21:20.000Z | Django/usersForum/start.py | Oluwasegun-AA/pipit | 1ea770b0833f086066ad8e3cdf256804e56a266e | [
"MIT"
] | null | null | null | #!/bin/sh
import os
from decouple import config
if config('ENV') == 'DEVELOPMENT':
os.system('''psql django postgres << EOF
DROP TABLE IF EXISTS "Users", "Users_groups", "Users_user_permissions", "auth_group", "auth_group_permissions", "auth_permission", "django_admin_log", "django_content_type", "django_migra... | 41.882353 | 226 | 0.730337 | 96 | 712 | 5.28125 | 0.489583 | 0.126233 | 0.147929 | 0.207101 | 0.262327 | 0.126233 | 0 | 0 | 0 | 0 | 0 | 0.007962 | 0.117978 | 712 | 16 | 227 | 44.5 | 0.799363 | 0.080056 | 0 | 0.153846 | 0 | 0.076923 | 0.715161 | 0.154671 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c42a08f4e8a3527bfa92dc7f36dec6b8251c19fb | 142 | py | Python | src/empty.py | kevindiltinero/seass3 | 7b108cdf09d2600cab4dc20b069124492feb801a | [
"BSD-2-Clause"
] | 1 | 2018-06-10T08:28:17.000Z | 2018-06-10T08:28:17.000Z | src/empty.py | kevindiltinero/seass3 | 7b108cdf09d2600cab4dc20b069124492feb801a | [
"BSD-2-Clause"
] | null | null | null | src/empty.py | kevindiltinero/seass3 | 7b108cdf09d2600cab4dc20b069124492feb801a | [
"BSD-2-Clause"
] | null | null | null | def empty_it(a, b, c, d, nested):
for i in range(a, c+1):
for j in range(b, d+1):
nested[i][j] = 0
return nested | 28.4 | 33 | 0.492958 | 28 | 142 | 2.464286 | 0.571429 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.352113 | 142 | 5 | 34 | 28.4 | 0.717391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c42adc967b3f5f1e0e300229adc0aa4e156bba8c | 544 | py | Python | {{cookiecutter.package_name}}/{{cookiecutter.package_name}}/tests/test_app.py | morepath/morepath-cookiecutter | 8d866e32c11c64d40e885af06e793e43f8ff9857 | [
"Unlicense"
] | 10 | 2016-04-14T13:08:36.000Z | 2020-09-30T20:48:03.000Z | {{cookiecutter.package_name}}/{{cookiecutter.package_name}}/tests/test_app.py | morepath/morepath-cookiecutter | 8d866e32c11c64d40e885af06e793e43f8ff9857 | [
"Unlicense"
] | 16 | 2016-04-13T08:29:52.000Z | 2020-09-02T07:24:58.000Z | {{cookiecutter.package_name}}/{{cookiecutter.package_name}}/tests/test_app.py | morepath/morepath-cookiecutter | 8d866e32c11c64d40e885af06e793e43f8ff9857 | [
"Unlicense"
] | 6 | 2016-04-20T10:44:07.000Z | 2020-09-02T03:35:16.000Z | import morepath
import {{ cookiecutter.package_name }}
from webtest import TestApp as Client
def test_root():
morepath.scan({{ cookiecutter.package_name }})
morepath.commit({{ cookiecutter.package_name }}.App)
client = Client({{ cookiecutter.package_name }}.App())
root = client.get('/')
assert ... | 25.904762 | 58 | 0.658088 | 63 | 544 | 5.587302 | 0.539683 | 0.215909 | 0.261364 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009112 | 0.193015 | 544 | 20 | 59 | 27.2 | 0.792711 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0 | null | null | 0 | 0.2 | null | null | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c45752ef248aede3bb24ebaf6c59abd8624eb377 | 121 | py | Python | test.py | avoppel/software | 6b3c8c0e28d6fef5828d24fddce05694dc115851 | [
"MIT"
] | null | null | null | test.py | avoppel/software | 6b3c8c0e28d6fef5828d24fddce05694dc115851 | [
"MIT"
] | null | null | null | test.py | avoppel/software | 6b3c8c0e28d6fef5828d24fddce05694dc115851 | [
"MIT"
] | null | null | null | import random
for i in range(0,10):
x = random.randint(0,10)
print x
#testing to add some line
#once again, testing
| 12.1 | 25 | 0.702479 | 23 | 121 | 3.695652 | 0.782609 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061856 | 0.198347 | 121 | 9 | 26 | 13.444444 | 0.814433 | 0.355372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c46392868f58df9cdb2a918ee9de2cd8368e30b2 | 28 | py | Python | sportsstats/tests/config.example.py | badfeatures/sports-stats | 1bd953d2245008774943056c2e56e44d6dedd107 | [
"MIT"
] | null | null | null | sportsstats/tests/config.example.py | badfeatures/sports-stats | 1bd953d2245008774943056c2e56e44d6dedd107 | [
"MIT"
] | null | null | null | sportsstats/tests/config.example.py | badfeatures/sports-stats | 1bd953d2245008774943056c2e56e44d6dedd107 | [
"MIT"
] | null | null | null | app_key = ''
app_secret = '' | 14 | 15 | 0.607143 | 4 | 28 | 3.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 28 | 2 | 15 | 14 | 0.652174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c46a73fdacb52e37b375e881aaf4c6b1cd0ed72c | 153 | py | Python | assignment2/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-snigdharubama-iitdu | cf91ecf4b5073aed69fd0d9ae5af71bbfd160f5c | [
"MIT"
] | null | null | null | assignment2/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-snigdharubama-iitdu | cf91ecf4b5073aed69fd0d9ae5af71bbfd160f5c | [
"MIT"
] | null | null | null | assignment2/reducer.py | IITDU-BSSE06/ads-demystifying-the-logs-snigdharubama-iitdu | cf91ecf4b5073aed69fd0d9ae5af71bbfd160f5c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
count = 0
for data in sys.stdin:
if "/assets/js/the-associates.js" == data.strip():
count += 1
print(count)
| 15.3 | 55 | 0.614379 | 24 | 153 | 3.916667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 0.222222 | 153 | 9 | 56 | 17 | 0.773109 | 0.104575 | 0 | 0 | 0 | 0 | 0.220472 | 0.220472 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6710550a8aa1abbaffa75ac90f48932bcdd1fd1a | 134 | py | Python | Aulas/Aula08B.py | Felix-xilef/Curso-de-Python | cdff7c7f3850e6326e274c8c1987b9e1a18ce910 | [
"MIT"
] | null | null | null | Aulas/Aula08B.py | Felix-xilef/Curso-de-Python | cdff7c7f3850e6326e274c8c1987b9e1a18ce910 | [
"MIT"
] | null | null | null | Aulas/Aula08B.py | Felix-xilef/Curso-de-Python | cdff7c7f3850e6326e274c8c1987b9e1a18ce910 | [
"MIT"
] | null | null | null | from os import system
import random
# num = random.random() - float de 0 a 1
num = random.randint(1, 10)
print(num)
system('pause')
| 14.888889 | 40 | 0.69403 | 23 | 134 | 4.043478 | 0.652174 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.179104 | 134 | 8 | 41 | 16.75 | 0.8 | 0.283582 | 0 | 0 | 0 | 0 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6713173854198d279b19356a41b5c83724a85fbb | 831 | py | Python | data/dataset.py | boxiangliu/enformer-pytorch | 45913901af2243524acf13696325be5891a5b064 | [
"MIT"
] | 10 | 2021-11-11T05:38:28.000Z | 2022-03-21T16:27:52.000Z | data/dataset.py | boxiangliu/enformer-pytorch | 45913901af2243524acf13696325be5891a5b064 | [
"MIT"
] | null | null | null | data/dataset.py | boxiangliu/enformer-pytorch | 45913901af2243524acf13696325be5891a5b064 | [
"MIT"
] | 1 | 2022-03-04T20:14:56.000Z | 2022-03-04T20:14:56.000Z | import os
import torch
class BasenjiDataset(torch.utils.data.Dataset):
def __init__(self, human_file, mouse_file):
self._human_file = human_file
self._mouse_file = mouse_file
self._human_data = torch.load(self._human_file)
self._mouse_data = torch.load(self._mouse_file)
@prop... | 28.655172 | 71 | 0.616125 | 100 | 831 | 4.73 | 0.22 | 0.15222 | 0.137421 | 0.071882 | 0.198732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261131 | 831 | 28 | 72 | 29.678571 | 0.770358 | 0 | 0 | 0.095238 | 0 | 0 | 0.079422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.190476 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
671b5e4f50645ea1fd89929cf7c8d5ba19857540 | 474 | py | Python | src/internal/ports/gui/event_handlers/delete_playlist.py | kaspermroz/music-player-python | 0bae77213f30d36d5394b051833cae030f89fc21 | [
"MIT"
] | null | null | null | src/internal/ports/gui/event_handlers/delete_playlist.py | kaspermroz/music-player-python | 0bae77213f30d36d5394b051833cae030f89fc21 | [
"MIT"
] | null | null | null | src/internal/ports/gui/event_handlers/delete_playlist.py | kaspermroz/music-player-python | 0bae77213f30d36d5394b051833cae030f89fc21 | [
"MIT"
] | null | null | null | from src.internal.ports.gui.event_handler import EventHandler
from src.internal.ports.gui.events import EVENT_DELETE_PLAYLIST
class DeletePlaylistHandler(EventHandler):
"""
Executes when: User clicks on Delete playlist button
Functionality: Deletes local playlist by name from library
"""
def Even... | 29.625 | 63 | 0.753165 | 58 | 474 | 6.034483 | 0.586207 | 0.12 | 0.085714 | 0.114286 | 0.131429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175105 | 474 | 15 | 64 | 31.6 | 0.895141 | 0.234177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6725bb376b9a0afd8f97fbbb8013a4678c58d2a6 | 824 | py | Python | oauth/models.py | sunguotao/DjangoMysqlBlog | 136a21007475a302a62341ac6b9ab3fbb1bfafb9 | [
"MIT"
] | null | null | null | oauth/models.py | sunguotao/DjangoMysqlBlog | 136a21007475a302a62341ac6b9ab3fbb1bfafb9 | [
"MIT"
] | 11 | 2020-02-11T23:51:47.000Z | 2022-03-11T23:17:21.000Z | oauth/models.py | sunguotao/DjangoMysqlBlog | 136a21007475a302a62341ac6b9ab3fbb1bfafb9 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
from django.conf import settings
class OAuthUser(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name='用户', blank=True, null=True)
openid = models.CharField(max_length=50)
nikename = models.CharField(max_length=50, verbos... | 35.826087 | 98 | 0.729369 | 113 | 824 | 5.150442 | 0.40708 | 0.180412 | 0.185567 | 0.247423 | 0.134021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0.162621 | 824 | 22 | 99 | 37.454545 | 0.817391 | 0.029126 | 0 | 0 | 0 | 0 | 0.013784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0.0625 | 0.875 | 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 |
672a2306d74769bbc46691f28c81186443c65aab | 226 | py | Python | classification/src/utils/__init__.py | Topology1225/benchmark_NN | eac732d789b4135e97bb636bde53171c3d193157 | [
"MIT"
] | 2 | 2021-06-04T06:38:55.000Z | 2021-09-11T07:18:25.000Z | classification/src/utils/__init__.py | Topology1225/benchmark_NN | eac732d789b4135e97bb636bde53171c3d193157 | [
"MIT"
] | null | null | null | classification/src/utils/__init__.py | Topology1225/benchmark_NN | eac732d789b4135e97bb636bde53171c3d193157 | [
"MIT"
] | 1 | 2021-10-07T12:11:28.000Z | 2021-10-07T12:11:28.000Z | from utils.general import (
read_yaml, _read_yaml, increment_path, save2json,
save_yaml, save_hostname
)
from utils.logging import setup_logger
from utils.dl_functions import initilize, get_optimizer, select_device
| 25.111111 | 70 | 0.80531 | 31 | 226 | 5.548387 | 0.677419 | 0.156977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.141593 | 226 | 8 | 71 | 28.25 | 0.881443 | 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 |
674e5ef89daa11a834d946d9cb7f10fea31b0cce | 143 | py | Python | Python 3/FLOW002.py | amanovishnu/Dejkins | 1c2b194445381a351f05a69b27eb4e42c5d0f70a | [
"Unlicense"
] | null | null | null | Python 3/FLOW002.py | amanovishnu/Dejkins | 1c2b194445381a351f05a69b27eb4e42c5d0f70a | [
"Unlicense"
] | 1 | 2018-02-08T12:54:58.000Z | 2018-02-08T12:54:58.000Z | Python 3/FLOW002.py | amanovishnu/Code-For-Fun | 1c2b194445381a351f05a69b27eb4e42c5d0f70a | [
"Unlicense"
] | null | null | null | n = int(input())
listx = []
for i in range(n):
x,y = input().split()
listx.append(int(x)%int(y))
for i in range(n):
print(listx[i]) | 20.428571 | 31 | 0.559441 | 27 | 143 | 2.962963 | 0.481481 | 0.1 | 0.15 | 0.275 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20979 | 143 | 7 | 32 | 20.428571 | 0.707965 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6750cf1f2e17cfca95f698eec99c20b40819f48c | 577 | py | Python | control/control_debug.py | mlabru/visil | 73238a1ee10ce464ce21e5e4eb000a9978c1ef58 | [
"MIT"
] | null | null | null | control/control_debug.py | mlabru/visil | 73238a1ee10ce464ce21e5e4eb000a9978c1ef58 | [
"MIT"
] | null | null | null | control/control_debug.py | mlabru/visil | 73238a1ee10ce464ce21e5e4eb000a9978c1ef58 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
control_debug
revision 0.2 2016/oct mlabru
pep8 style conventions
revision 0.1 2015/nov mlabru
initial version (Linux/Python)
"""
# < imports >--------------------------------------------------------------------------------------
# python library
import logging
# < module data >-----... | 25.086957 | 99 | 0.389948 | 44 | 577 | 4.954545 | 0.795455 | 0.082569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026923 | 0.098787 | 577 | 22 | 100 | 26.227273 | 0.392308 | 0.818024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
67775027ca74fcbe8ee5a428f1ccd5f0e67171b2 | 294 | py | Python | pickthat/__init__.py | agile-geoscience/pickthat | b89bdebbd47e7c90e45013e7f214b3768eb72c0f | [
"Apache-2.0"
] | 3 | 2016-03-01T09:57:30.000Z | 2019-04-28T06:59:35.000Z | pickthat/__init__.py | agile-geoscience/pickthat | b89bdebbd47e7c90e45013e7f214b3768eb72c0f | [
"Apache-2.0"
] | 1 | 2015-12-08T17:27:55.000Z | 2015-12-09T16:10:24.000Z | pickthat/__init__.py | agile-geoscience/pickthat | b89bdebbd47e7c90e45013e7f214b3768eb72c0f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf 8 -*-
"""
==================
pickthat
==================
"""
from .api import API
from .pick import Pick
__all__ = ['API',
'Pick',
]
__version__ = "unknown"
try:
from ._version import __version__
except ImportError:
pass
| 14 | 37 | 0.517007 | 29 | 294 | 4.793103 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.238095 | 294 | 20 | 38 | 14.7 | 0.616071 | 0.302721 | 0 | 0 | 0 | 0 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
677e9a5772b32d8bcee333ae713f08e067f9bb24 | 278 | py | Python | tests/json_body_test.py | avanov/Rhetoric | c446f6b17dc9cf614f43c1d1be3722bb42db5123 | [
"MIT"
] | 9 | 2015-04-26T20:51:39.000Z | 2021-11-05T23:35:37.000Z | tests/json_body_test.py | avanov/Rhetoric | c446f6b17dc9cf614f43c1d1be3722bb42db5123 | [
"MIT"
] | 2 | 2015-01-27T19:33:42.000Z | 2015-05-29T21:38:23.000Z | tests/json_body_test.py | avanov/Rhetoric | c446f6b17dc9cf614f43c1d1be3722bb42db5123 | [
"MIT"
] | 5 | 2015-06-06T21:39:59.000Z | 2021-11-05T23:35:41.000Z | import json
from . import BaseTestCase
class JSONBodyTest(BaseTestCase):
def test_api_version_requests(self):
response = self.client.post('/json-body', data=json.dumps({'key': 'value'}), content_type='application/json')
assert response.status_code == 200
| 27.8 | 117 | 0.715827 | 34 | 278 | 5.705882 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012766 | 0.154676 | 278 | 9 | 118 | 30.888889 | 0.812766 | 0 | 0 | 0 | 0 | 0 | 0.122302 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | 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 |
677f3fc723992c6d8982af79c7d5224791eb0a2e | 694 | py | Python | ds4se/repr/i.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | 5 | 2020-12-08T00:38:24.000Z | 2021-11-16T20:00:59.000Z | ds4se/repr/i.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | 110 | 2020-09-26T18:36:35.000Z | 2022-03-12T00:54:35.000Z | ds4se/repr/i.py | rmclanton/ds4se | d9e1cf771a66478ac99c5341dbfeddbbf0abe5b2 | [
"Apache-2.0"
] | 3 | 2020-12-09T19:23:10.000Z | 2021-02-16T12:54:16.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/2.0_repr.i.ipynb (unless otherwise specified).
__all__ = ['Vectorizor', 'BertVectorizor']
# Cell
# Imports
import numpy as np
from abc import ABC, abstractmethod
from pathlib import Path
from transformers import pipeline
# Cell
class Vectorizor(ABC):
def __init... | 21.6875 | 94 | 0.697406 | 81 | 694 | 5.814815 | 0.641975 | 0.089172 | 0.067941 | 0.084926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00365 | 0.210375 | 694 | 32 | 95 | 21.6875 | 0.855839 | 0.252161 | 0 | 0.133333 | 1 | 0 | 0.094758 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.266667 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
679e631c948c4edb65338348db67d073682c787d | 172 | py | Python | mydepot/__init__.py | deisi/mydepot | 6915991e07fca22e284728af4cb2945ece31ac43 | [
"MIT"
] | null | null | null | mydepot/__init__.py | deisi/mydepot | 6915991e07fca22e284728af4cb2945ece31ac43 | [
"MIT"
] | 2 | 2021-03-31T19:25:28.000Z | 2021-12-13T20:32:47.000Z | mydepot/__init__.py | deisi/mydepot | 6915991e07fca22e284728af4cb2945ece31ac43 | [
"MIT"
] | null | null | null | """Top-level package for MyDepot."""
__author__ = """Malte Deiseroth"""
__email__ = 'mdeiseroth88@gmail.com'
__version__ = '0.1.0'
from .core import *
from . import read
| 19.111111 | 36 | 0.697674 | 22 | 172 | 4.909091 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.139535 | 172 | 8 | 37 | 21.5 | 0.695946 | 0.174419 | 0 | 0 | 0 | 0 | 0.308824 | 0.161765 | 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 |
67e776c886a48164bbfe629ba36ee2bd4bcd79c8 | 307 | py | Python | py/codeforces/883M.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | py/codeforces/883M.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | py/codeforces/883M.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | 1 | 2022-03-09T04:52:55.000Z | 2022-03-09T04:52:55.000Z | # -*- coding: utf-8 -*-
import math
import collections
import bisect
import heapq
import time
import random
import itertools
import sys
"""
created by shhuan at 2017/10/22 12:19
"""
x1, y1 = map(int, input().split())
x2, y2 = map(int, input().split())
print(2*(2+max(abs(x1-x2), 1)+max(abs(y1-y2), 1))) | 15.35 | 50 | 0.664495 | 53 | 307 | 3.849057 | 0.641509 | 0.058824 | 0.107843 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095785 | 0.149837 | 307 | 20 | 50 | 15.35 | 0.685824 | 0.068404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.727273 | 0 | 0.727273 | 0.090909 | 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 |
67f233a3bf29215417c917f76c69ea85053359c5 | 543 | py | Python | tests/test_python_card_game.py | Evanpunked/Python-Card-Game | 84ace21637ca51d4be85afb26c33c468621d8da9 | [
"0BSD"
] | 2 | 2016-08-21T00:58:07.000Z | 2021-01-26T04:59:55.000Z | tests/test_python_card_game.py | Evanpunked/Python-Card-Game | 84ace21637ca51d4be85afb26c33c468621d8da9 | [
"0BSD"
] | 1 | 2016-01-31T14:41:32.000Z | 2016-01-31T14:41:32.000Z | tests/test_python_card_game.py | Evanpunked/Python-Card-Game | 84ace21637ca51d4be85afb26c33c468621d8da9 | [
"0BSD"
] | 3 | 2016-01-21T20:03:02.000Z | 2022-03-27T20:33:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_python_card_game
----------------------------------
Tests for `python_card_game` module.
Check-out this tutorial on Unit Testing in Python
https://cgoldberg.github.io/python-unittest-tutorial/
"""
import unittest
from python_card_game import python_card_game... | 15.083333 | 53 | 0.677716 | 72 | 543 | 4.819444 | 0.597222 | 0.115274 | 0.161383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008715 | 0.154696 | 543 | 35 | 54 | 15.514286 | 0.747277 | 0.447514 | 0 | 0.25 | 0 | 0 | 0.027586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 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 |
67fa98711a7297624658919010e033bf8b139e05 | 510 | py | Python | pytorch_ssd/data/datasets/__init__.py | piotlinski/ssd | 169e14fb949f476626617364e5a540249addf75a | [
"MIT"
] | null | null | null | pytorch_ssd/data/datasets/__init__.py | piotlinski/ssd | 169e14fb949f476626617364e5a540249addf75a | [
"MIT"
] | null | null | null | pytorch_ssd/data/datasets/__init__.py | piotlinski/ssd | 169e14fb949f476626617364e5a540249addf75a | [
"MIT"
] | null | null | null | from typing import Dict, Type
from pytorch_ssd.data.datasets.base import BaseDataset, onehot_labels
from pytorch_ssd.data.datasets.clevr import CLEVR
from pytorch_ssd.data.datasets.coco import COCODetection
from pytorch_ssd.data.datasets.mnist import MultiScaleMNIST
from pytorch_ssd.data.datasets.wider import WIDERFac... | 30 | 69 | 0.778431 | 64 | 510 | 6.03125 | 0.34375 | 0.142487 | 0.181347 | 0.233161 | 0.336788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123529 | 510 | 16 | 70 | 31.875 | 0.863535 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 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 |
db27dea26c00e519efd39f9305e85d912054dbbc | 1,438 | py | Python | flask/app/base/routes.py | SchneiderDaniel/data | 741f5d912eb9a62b77ec3cecf4fc54f21133784c | [
"MIT"
] | null | null | null | flask/app/base/routes.py | SchneiderDaniel/data | 741f5d912eb9a62b77ec3cecf4fc54f21133784c | [
"MIT"
] | null | null | null | flask/app/base/routes.py | SchneiderDaniel/data | 741f5d912eb9a62b77ec3cecf4fc54f21133784c | [
"MIT"
] | null | null | null | from flask import jsonify, render_template, redirect, request, url_for,flash
from . import blueprint
@blueprint.route('/')
def route_default():
return redirect(url_for('home_blueprint.index'))
@blueprint.route('/about')
def about():
return render_template('site_info/about.html')
@blueprint.route('/legal')
d... | 24.372881 | 76 | 0.729485 | 181 | 1,438 | 5.618785 | 0.320442 | 0.13766 | 0.176991 | 0.127827 | 0.348083 | 0.237955 | 0.198623 | 0.119961 | 0.119961 | 0.119961 | 0 | 0.026274 | 0.126565 | 1,438 | 58 | 77 | 24.793103 | 0.783439 | 0.255216 | 0 | 0 | 0 | 0 | 0.208885 | 0.020794 | 0 | 0 | 0 | 0 | 0 | 1 | 0.310345 | false | 0 | 0.068966 | 0.310345 | 0.689655 | 0.37931 | 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 |
db2e26dcb5d561de987855d0b474f5f812c12f77 | 445 | py | Python | Professor.py | mcychan/GASchedule.py | 7940364f125e76e134ec9cf341ffa42431fe3fbf | [
"MIT"
] | 4 | 2021-04-06T08:36:16.000Z | 2022-03-14T06:50:52.000Z | Professor.py | mcychan/GASchedule.py | 7940364f125e76e134ec9cf341ffa42431fe3fbf | [
"MIT"
] | null | null | null | Professor.py | mcychan/GASchedule.py | 7940364f125e76e134ec9cf341ffa42431fe3fbf | [
"MIT"
] | 5 | 2021-09-17T12:57:31.000Z | 2022-03-14T19:34:17.000Z | # Stores data about professor
class Professor:
# Initializes professor data
def __init__(self, id, name):
self.Id = id
self.Name = name
self.CourseClasses = []
# Bind professor to course
def addCourseClass(self, courseClass):
self.CourseClasses.append(courseClass)
... | 27.8125 | 61 | 0.644944 | 52 | 445 | 5.365385 | 0.557692 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276404 | 445 | 15 | 62 | 29.666667 | 0.86646 | 0.303371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
db37965def0c1d6875d11038f6156bf06419136b | 1,708 | py | Python | vee/pipeline/gem.py | immersionroom/vee | 2c6f781dc96e9028f2446777b906ca37dc2f4299 | [
"BSD-3-Clause"
] | 6 | 2017-11-05T02:44:10.000Z | 2021-07-14T19:10:56.000Z | vee/pipeline/gem.py | immersionroom/vee | 2c6f781dc96e9028f2446777b906ca37dc2f4299 | [
"BSD-3-Clause"
] | null | null | null | vee/pipeline/gem.py | immersionroom/vee | 2c6f781dc96e9028f2446777b906ca37dc2f4299 | [
"BSD-3-Clause"
] | 1 | 2017-01-31T23:10:09.000Z | 2017-01-31T23:10:09.000Z | import os
import re
from vee import log
from vee.pipeline.base import PipelineStep
from vee.subproc import call
from vee.utils import makedirs, cached_property
from vee.package import Package
class GemManager(PipelineStep):
factory_priority = 1000
@cached_property
def system_gems(self):
gems =... | 24.753623 | 83 | 0.563817 | 222 | 1,708 | 4.288288 | 0.45045 | 0.051471 | 0.046218 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007653 | 0.311475 | 1,708 | 68 | 84 | 25.117647 | 0.801871 | 0.108899 | 0 | 0.12766 | 0 | 0 | 0.059328 | 0 | 0 | 0 | 0 | 0.014706 | 0.021277 | 1 | 0.212766 | false | 0.085106 | 0.148936 | 0.021277 | 0.510638 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c034d9514aa89ffb9d86ef3c6fb597e8051f120c | 741 | py | Python | tamcolors/tam_io/__init__.py | cmcmarrow/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 29 | 2020-07-17T23:46:17.000Z | 2022-02-06T05:36:44.000Z | tamcolors/tam_io/__init__.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 42 | 2020-07-25T19:39:52.000Z | 2021-02-24T01:19:58.000Z | tamcolors/tam_io/__init__.py | sudo-nikhil/tamcolors | 65a5f2455bbe35a739b98d14af158c3df7feb786 | [
"Apache-2.0"
] | 8 | 2020-07-18T23:02:48.000Z | 2020-12-30T04:07:35.000Z | from . import any_drivers
from . import io_tam
from . import tam_surface
from . import tam_colors
from . import tam_drivers
from . import tam_identifier
from . import tam_keys
from . import uni_drivers
from . import win_drivers
from . import ansi_256_drivers
from . import ansi_true_color_drivers
from . import tcp_io
fr... | 24.7 | 37 | 0.630229 | 91 | 741 | 4.714286 | 0.21978 | 0.32634 | 0.277389 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011429 | 0.291498 | 741 | 29 | 38 | 25.551724 | 0.805714 | 0 | 0 | 0 | 0 | 0 | 0.215924 | 0.031039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fbe86d33edf46a20ca9a00fff8deeb9585dc77b1 | 43 | py | Python | tests/3rdparty/testngpp/tests/3rdparty/testngppst/scripts/testngppstgen/__init__.py | chencang1980/mockcpp | 45660e7bcf0a6cf8edce3c6a736e4b168acc016e | [
"Apache-2.0"
] | 72 | 2018-01-26T11:19:32.000Z | 2022-02-06T02:38:38.000Z | test/testngpp-1.1/scripts/testngppgen/__init__.py | mswdwk/code_test_records | 6edda193c8c19607c2021e62b96b8ff0813c7208 | [
"MIT"
] | 21 | 2021-03-17T06:41:56.000Z | 2022-02-01T12:27:28.000Z | test/testngpp-1.1/scripts/testngppgen/__init__.py | mswdwk/code_test_records | 6edda193c8c19607c2021e62b96b8ff0813c7208 | [
"MIT"
] | 27 | 2018-04-03T08:31:14.000Z | 2022-03-16T13:01:09.000Z | #!/usr/bin/python
__all__ = ["Generator"]
| 10.75 | 23 | 0.651163 | 5 | 43 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 43 | 3 | 24 | 14.333333 | 0.631579 | 0.372093 | 0 | 0 | 0 | 0 | 0.346154 | 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 |
2213d7b0c51a71115696468665143db8494ef1da | 738 | py | Python | creme/datasets/airline.py | koaning/creme | fea9594b0620b57edef0d986edc735a3a0977dc9 | [
"BSD-3-Clause"
] | 1 | 2019-08-24T00:04:19.000Z | 2019-08-24T00:04:19.000Z | creme/datasets/airline.py | koaning/creme | fea9594b0620b57edef0d986edc735a3a0977dc9 | [
"BSD-3-Clause"
] | null | null | null | creme/datasets/airline.py | koaning/creme | fea9594b0620b57edef0d986edc735a3a0977dc9 | [
"BSD-3-Clause"
] | null | null | null | import os
from .. import stream
def load_airline():
"""Returns a stream of monthly number of international airline passengers.
The data is ordered by month.
Yields:
tuple: A pair (``x``, ``y``) where ``x`` is a dict of features and ``y`` is the target.
1. `International airline passengers:... | 32.086957 | 224 | 0.659892 | 102 | 738 | 4.696078 | 0.588235 | 0.141962 | 0.187891 | 0.154489 | 0.246347 | 0.246347 | 0.246347 | 0.246347 | 0.246347 | 0 | 0 | 0.02521 | 0.193767 | 738 | 22 | 225 | 33.545455 | 0.778151 | 0.575881 | 0 | 0 | 0 | 0 | 0.196491 | 0.077193 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0.333333 | 0.222222 | 0 | 0.444444 | 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 |
2222066d1390b314b62dbb99f64dd85cfbac1bc1 | 107 | py | Python | bin/misc/utilise_racine.py | loic-yvonnet/algo-appliquee | 70676310291b1f5c72a69d82fc4b4c8a82134fba | [
"MIT"
] | null | null | null | bin/misc/utilise_racine.py | loic-yvonnet/algo-appliquee | 70676310291b1f5c72a69d82fc4b4c8a82134fba | [
"MIT"
] | 26 | 2021-08-12T20:15:30.000Z | 2022-01-27T11:25:26.000Z | bin/misc/utilise_racine.py | loic-yvonnet/algo-appliquee | 70676310291b1f5c72a69d82fc4b4c8a82134fba | [
"MIT"
] | null | null | null | import racine as rcn
cinq = rcn.racine_carree(25)
print(cinq)
trois = rcn.racine_cubique(27)
print(trois) | 15.285714 | 30 | 0.766355 | 18 | 107 | 4.444444 | 0.611111 | 0.225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.121495 | 107 | 7 | 31 | 15.285714 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2226e1d46c8f736924319f93261cd29d855c0e2f | 72 | py | Python | PackageDemo/subpkg2.py | dhamodharanrk/examples | c18b626898bc53cecdd8a6d1b5e31e78ca6e7522 | [
"MIT"
] | 1 | 2019-04-30T08:54:42.000Z | 2019-04-30T08:54:42.000Z | PackageDemo/subpkg2.py | dhamodharanrk/stackoverflow | c18b626898bc53cecdd8a6d1b5e31e78ca6e7522 | [
"MIT"
] | null | null | null | PackageDemo/subpkg2.py | dhamodharanrk/stackoverflow | c18b626898bc53cecdd8a6d1b5e31e78ca6e7522 | [
"MIT"
] | 1 | 2020-11-06T07:52:30.000Z | 2020-11-06T07:52:30.000Z | __author__ = 'dhamodharan.k'
import subpkg1
print("This is Subpkg 2") | 24 | 29 | 0.736111 | 10 | 72 | 4.9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.152778 | 72 | 3 | 30 | 24 | 0.770492 | 0 | 0 | 0 | 0 | 0 | 0.422535 | 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 |
2248929c228ea81f4c4aecee249faa842e98d823 | 23,403 | py | Python | __init__.py | zdepav/mzcr_covid_19_api | e04a4db38fafbcd435d850993c8eae645ddc4533 | [
"MIT"
] | null | null | null | __init__.py | zdepav/mzcr_covid_19_api | e04a4db38fafbcd435d850993c8eae645ddc4533 | [
"MIT"
] | null | null | null | __init__.py | zdepav/mzcr_covid_19_api | e04a4db38fafbcd435d850993c8eae645ddc4533 | [
"MIT"
] | null | null | null | from typing import Iterator as _Iterator, Optional as _Optional
from .epidemiologicke_charakteristiky.zakladni_prehled import ZakladniPrehled
from .epidemiologicke_charakteristiky.osoby import Osoby
from .epidemiologicke_charakteristiky.vyleceni import Vyleceni
from .epidemiologicke_charakteristiky.umrti import Umrti
... | 54.425581 | 116 | 0.749562 | 2,891 | 23,403 | 5.98651 | 0.24559 | 0.025885 | 0.033281 | 0.038135 | 0.51719 | 0.471717 | 0.426879 | 0.393367 | 0.35997 | 0.325417 | 0 | 0.010963 | 0.208777 | 23,403 | 429 | 117 | 54.552448 | 0.923314 | 0.66782 | 0 | 0 | 0 | 0 | 0.001348 | 0 | 0 | 0 | 0 | 0.002331 | 0 | 1 | 0.325843 | false | 0 | 0.325843 | 0 | 0.988764 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
22498ebb7a1165ccb7af508c868456820c1945cf | 1,702 | py | Python | tgtypes/models/inline_query_result_location.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | tgtypes/models/inline_query_result_location.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | tgtypes/models/inline_query_result_location.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, Optional
from pydantic import Field
from .inline_query_result import InlineQueryResult
if TYPE_CHECKING: # pragma: no cover
from .inline_keyboard_markup import InlineKeyboardMarkup
from .input_message_content import InputMessageContent
... | 36.212766 | 98 | 0.723267 | 216 | 1,702 | 5.601852 | 0.490741 | 0.020661 | 0.047107 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010933 | 0.19389 | 1,702 | 46 | 99 | 37 | 0.870991 | 0.233843 | 0 | 0 | 0 | 0 | 0.01 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.315789 | 0 | 0.947368 | 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 |
225719e6c887d1c3426baae12211c4e3d35491d1 | 1,946 | py | Python | Application/app/migrations/0001_initial.py | mercychege/Pest-Control | d738a5ff2e1d3b76b8d263dfad32ed6d5c37349e | [
"MIT"
] | null | null | null | Application/app/migrations/0001_initial.py | mercychege/Pest-Control | d738a5ff2e1d3b76b8d263dfad32ed6d5c37349e | [
"MIT"
] | null | null | null | Application/app/migrations/0001_initial.py | mercychege/Pest-Control | d738a5ff2e1d3b76b8d263dfad32ed6d5c37349e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-06-15 12:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | 38.92 | 114 | 0.57554 | 193 | 1,946 | 5.621762 | 0.331606 | 0.069124 | 0.082949 | 0.110599 | 0.726267 | 0.701382 | 0.672811 | 0.672811 | 0.632258 | 0.632258 | 0 | 0.023656 | 0.283145 | 1,946 | 49 | 115 | 39.714286 | 0.754122 | 0.035457 | 0 | 0.560976 | 1 | 0 | 0.099253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.170732 | 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 |
22616b0ac4bfb2da08cfed29c1a7c8527c45e227 | 1,966 | py | Python | resources/dot_PyCharm/system/python_stubs/-762174762/_hashlib.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | 1 | 2020-04-20T02:27:20.000Z | 2020-04-20T02:27:20.000Z | resources/dot_PyCharm/system/python_stubs/-762174762/_hashlib.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | resources/dot_PyCharm/system/python_stubs/-762174762/_hashlib.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | # encoding: utf-8
# module _hashlib
# from (pre-generated)
# by generator 1.147
# no doc
# no imports
# functions
def new(*args, **kwargs): # real signature unknown
"""
Return a new hash object using the named algorithm.
An optional string argument may be provided and will be
automatically hashed.
... | 33.896552 | 307 | 0.686673 | 252 | 1,966 | 5.285714 | 0.380952 | 0.078078 | 0.12012 | 0.120871 | 0.514264 | 0.491742 | 0.491742 | 0.320571 | 0.320571 | 0.21021 | 0 | 0.049149 | 0.192777 | 1,966 | 57 | 308 | 34.491228 | 0.79017 | 0.697864 | 0 | 0.470588 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.470588 | false | 0.529412 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
226434f6aa900511dffd957606f13e39080cd870 | 618 | py | Python | networks/context/helpers/labels/base.py | nicolay-r/attitudes-extraction-ds | 49a82843e6adbca35321aaaa08d05532e953a0fc | [
"MIT"
] | 3 | 2019-11-05T19:42:55.000Z | 2021-02-25T12:14:17.000Z | networks/context/helpers/labels/base.py | nicolay-r/attitudes-extraction-ds | 49a82843e6adbca35321aaaa08d05532e953a0fc | [
"MIT"
] | 1 | 2021-03-30T07:41:22.000Z | 2021-03-30T07:41:22.000Z | networks/context/helpers/labels/base.py | nicolay-r/attitudes-extraction-ds | 49a82843e6adbca35321aaaa08d05532e953a0fc | [
"MIT"
] | 1 | 2019-08-18T18:33:11.000Z | 2019-08-18T18:33:11.000Z |
class LabelsHelper(object):
@staticmethod
def create_label_from_uint(label_uint):
raise Exception("Not implemented")
@staticmethod
def create_label_from_relations(relation_labels, label_creation_mode):
raise Exception("Not implemented")
@staticmethod
def create_label_from_op... | 24.72 | 74 | 0.726537 | 66 | 618 | 6.484848 | 0.424242 | 0.175234 | 0.198598 | 0.261682 | 0.441589 | 0.371495 | 0.271028 | 0.271028 | 0.271028 | 0 | 0 | 0 | 0.199029 | 618 | 24 | 75 | 25.75 | 0.864646 | 0 | 0 | 0.5625 | 0 | 0 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
226a8fe6f32cfcf67c2932d1c08802a44de4b9e4 | 115 | py | Python | noncrypto/alphabet-dice-noncrypto.py | luforst/alphabet-dice | 4d0eec0dc2fc175b791885bf2c6c790af6374d26 | [
"MIT"
] | null | null | null | noncrypto/alphabet-dice-noncrypto.py | luforst/alphabet-dice | 4d0eec0dc2fc175b791885bf2c6c790af6374d26 | [
"MIT"
] | null | null | null | noncrypto/alphabet-dice-noncrypto.py | luforst/alphabet-dice | 4d0eec0dc2fc175b791885bf2c6c790af6374d26 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import random
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
print(alphabet[random.randint(0,25)])
| 23 | 39 | 0.791304 | 14 | 115 | 6.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0.069565 | 115 | 4 | 40 | 28.75 | 0.813084 | 0.182609 | 0 | 0 | 0 | 0 | 0.27957 | 0.27957 | 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 |
97d62857998a2a30c2267240f5988135509ba692 | 2,863 | py | Python | tensor_transforms.py | twice154/CIPS | 51d5e80a2666e2bd727120922e4f79d56380ba69 | [
"MIT"
] | null | null | null | tensor_transforms.py | twice154/CIPS | 51d5e80a2666e2bd727120922e4f79d56380ba69 | [
"MIT"
] | null | null | null | tensor_transforms.py | twice154/CIPS | 51d5e80a2666e2bd727120922e4f79d56380ba69 | [
"MIT"
] | null | null | null | import random
import torch
def convert_to_coord_format(b, h, w, device='cpu', integer_values=False):
if integer_values:
x_channel = torch.arange(w, dtype=torch.float, device=device).view(1, 1, 1, -1).repeat(b, 1, w, 1)
y_channel = torch.arange(h, dtype=torch.float, device=device).view(1, 1, -1, 1... | 37.671053 | 115 | 0.655257 | 488 | 2,863 | 3.616803 | 0.118852 | 0.027195 | 0.020397 | 0.05779 | 0.76034 | 0.68272 | 0.654391 | 0.63966 | 0.623229 | 0.623229 | 0 | 0.033524 | 0.208173 | 2,863 | 75 | 116 | 38.173333 | 0.745037 | 0.089067 | 0 | 0.470588 | 0 | 0 | 0.001153 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.235294 | false | 0 | 0.039216 | 0.078431 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
97dc5a45e6c5947bc9e9bac404dfc18bbe32dd4f | 802 | py | Python | src/main/apps/quiz/migrations/0006_auto_20210309_1843.py | kid7960/Uni-board | 6a9525bef972a31576fc5dc190d9fe106e701c3e | [
"MIT"
] | null | null | null | src/main/apps/quiz/migrations/0006_auto_20210309_1843.py | kid7960/Uni-board | 6a9525bef972a31576fc5dc190d9fe106e701c3e | [
"MIT"
] | null | null | null | src/main/apps/quiz/migrations/0006_auto_20210309_1843.py | kid7960/Uni-board | 6a9525bef972a31576fc5dc190d9fe106e701c3e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-09 18:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('quiz', '0005_auto_20210309_1825'),
]
operations = [
migrations.RenameField(
model_name='quiz_model',
old_name='quiz_creator'... | 23.588235 | 47 | 0.538653 | 80 | 802 | 5.1125 | 0.425 | 0.156479 | 0.254279 | 0.293399 | 0.488998 | 0.488998 | 0.488998 | 0.488998 | 0.488998 | 0 | 0 | 0.059501 | 0.350374 | 802 | 33 | 48 | 24.30303 | 0.725528 | 0.05611 | 0 | 0.444444 | 1 | 0 | 0.168212 | 0.030464 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 |
97f5e4a7907ade3cf15c2f502552d667fbc4438c | 277 | py | Python | tests/exploratory/steptext/radish/terrain.py | tuxrosi/radish | b21fa751f8dfc4309451476151c810b44975babb | [
"MIT"
] | null | null | null | tests/exploratory/steptext/radish/terrain.py | tuxrosi/radish | b21fa751f8dfc4309451476151c810b44975babb | [
"MIT"
] | null | null | null | tests/exploratory/steptext/radish/terrain.py | tuxrosi/radish | b21fa751f8dfc4309451476151c810b44975babb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from radish import before
@before.each_scenario
def init_numbers(scenario):
scenario.context.quote = None
scenario.context.database = lambda: None
setattr(scenario.context.database, "quotes", [])
scenario.context.database.quotes = []
| 23.083333 | 52 | 0.707581 | 32 | 277 | 6.0625 | 0.59375 | 0.309278 | 0.35567 | 0.298969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004292 | 0.158845 | 277 | 11 | 53 | 25.181818 | 0.828326 | 0.075812 | 0 | 0 | 0 | 0 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3f15c082749b47634d693b9f38822dbf1d89d162 | 145 | py | Python | odmTests.py | UtkarshBhatthere/OpenDownloadManager | 470a4747eaec8b5088fa0f4f0db12abc5d61a7cd | [
"Apache-2.0"
] | 1 | 2018-10-19T15:32:42.000Z | 2018-10-19T15:32:42.000Z | odmTests.py | UtkarshBhatthere/OpenDownloadManager | 470a4747eaec8b5088fa0f4f0db12abc5d61a7cd | [
"Apache-2.0"
] | null | null | null | odmTests.py | UtkarshBhatthere/OpenDownloadManager | 470a4747eaec8b5088fa0f4f0db12abc5d61a7cd | [
"Apache-2.0"
] | null | null | null | from odm import odm
size = 9080472
url = "https://files1.mp3slash.xyz/stream/a0fc6e4144b1cf3bb86fa65e84d0db23"
obj = odm(url)
obj.download()
| 14.5 | 75 | 0.758621 | 18 | 145 | 6.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204724 | 0.124138 | 145 | 9 | 76 | 16.111111 | 0.661417 | 0 | 0 | 0 | 0 | 0 | 0.465278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3f1f32f4f8e7a0824f809c7bacaa02f81bf4e954 | 629 | py | Python | server.py | andpe/minos | 1a1d8e86adb4822c7c837658b18f1261f7db01f9 | [
"BSD-3-Clause"
] | 1 | 2017-08-23T07:57:15.000Z | 2017-08-23T07:57:15.000Z | server.py | andpe/minos | 1a1d8e86adb4822c7c837658b18f1261f7db01f9 | [
"BSD-3-Clause"
] | 7 | 2017-08-18T23:46:06.000Z | 2017-10-24T14:49:54.000Z | server.py | andpe/minos | 1a1d8e86adb4822c7c837658b18f1261f7db01f9 | [
"BSD-3-Clause"
] | null | null | null | from flask import Flask, redirect, url_for, g, render_template
from minos.blueprints import music
from minos.database import db
from minos.app import create_app, app
#from werkzeug.exceptions import HTTPException
@app.before_request
def connect_db():
g.db = db
@app.route("/")
def index():
return redirect(url_... | 25.16 | 65 | 0.747218 | 90 | 629 | 5.066667 | 0.422222 | 0.092105 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016575 | 0.136725 | 629 | 25 | 66 | 25.16 | 0.823204 | 0.071542 | 0 | 0 | 0 | 0 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.263158 | 0.105263 | 0.631579 | 0.052632 | 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 |
3f1f72e298dfc16181e1058ce5a798a61c2d361b | 930 | py | Python | server/migrations/1620701530-create-db.py | yevrah/stack | 00f42b72ad8b19ca664605ad960594a4b54b8232 | [
"MIT"
] | null | null | null | server/migrations/1620701530-create-db.py | yevrah/stack | 00f42b72ad8b19ca664605ad960594a4b54b8232 | [
"MIT"
] | null | null | null | server/migrations/1620701530-create-db.py | yevrah/stack | 00f42b72ad8b19ca664605ad960594a4b54b8232 | [
"MIT"
] | 1 | 2021-05-31T03:19:00.000Z | 2021-05-31T03:19:00.000Z | """
create db
"""
from apocryphes.rider import step
__depends__ = {""}
# PW == password123
pw = (
"pbkdf2:sha256:150000$4QU8ECxW$2b65956dda981f9ff"
"eeb8aa3002e18b2569fae81cdc7d73f6dd38214fc6364af"
)
steps = [
step(
"""
create table users (
id serial primary key,
... | 23.25 | 58 | 0.554839 | 90 | 930 | 5.688889 | 0.566667 | 0.068359 | 0.050781 | 0.066406 | 0.25 | 0.148438 | 0.148438 | 0 | 0 | 0 | 0 | 0.093949 | 0.324731 | 930 | 39 | 59 | 23.846154 | 0.721338 | 0.056989 | 0 | 0.3 | 0 | 0 | 0.648438 | 0.267578 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0 | false | 0.1 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3f25a3fff488524e2717042fcc4de2c9aba6ebfe | 839 | py | Python | source/190-Classe_Foguete.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | source/190-Classe_Foguete.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | source/190-Classe_Foguete.py | FelixLuciano/DesSoft-2020.2 | a44063d63778329f1e1266881f20f7954ecb528b | [
"MIT"
] | null | null | null | # Classe Foguete
# Desenvolva em Python uma classe Foguete. Essa classe deve ser iniciada com a velocidade do foguete em km/h. Supondo agora que o foguete tem uma velocidade constante (desde a partida), crie um método atualizar() que recebe como argumento o tempo decorrido em segundos desde a última vez que este método... | 41.95 | 395 | 0.72348 | 123 | 839 | 4.902439 | 0.601626 | 0.064677 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028443 | 0.203814 | 839 | 19 | 396 | 44.157895 | 0.874252 | 0.722288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3f2fd480012fa92f8c67661e93ee6e17b3833d53 | 174 | py | Python | rucio_jupyterlab/rucio/utils.py | didithilmy/rucio-jupyterlab | ad2db1344bb433a466696cde51aa787cd3b23237 | [
"BSD-3-Clause"
] | 4 | 2020-10-14T15:01:02.000Z | 2021-09-30T14:17:26.000Z | rucio_jupyterlab/rucio/utils.py | didithilmy/rucio-jupyterlab | ad2db1344bb433a466696cde51aa787cd3b23237 | [
"BSD-3-Clause"
] | 1 | 2021-04-30T14:29:53.000Z | 2021-05-01T07:21:33.000Z | rucio_jupyterlab/rucio/utils.py | didithilmy/rucio-jupyterlab | ad2db1344bb433a466696cde51aa787cd3b23237 | [
"BSD-3-Clause"
] | 1 | 2020-07-31T19:57:24.000Z | 2020-07-31T19:57:24.000Z | import time
import calendar
def parse_timestamp(timestr):
time_struct = time.strptime(timestr, '%a, %d %b %Y %H:%M:%S %Z')
return int(calendar.timegm(time_struct))
| 21.75 | 68 | 0.695402 | 27 | 174 | 4.37037 | 0.740741 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 174 | 7 | 69 | 24.857143 | 0.802721 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3f3f82fbde860f777328c74aa90f1cc5cc6e0b01 | 896 | py | Python | tools/leetcode.082.Remove Duplicates from Sorted List II/leetcode.082.Remove Duplicates from Sorted List II.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.082.Remove Duplicates from Sorted List II/leetcode.082.Remove Duplicates from Sorted List II.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.082.Remove Duplicates from Sorted List II/leetcode.082.Remove Duplicates from Sorted List II.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param {ListNode} head
# @return {ListNode}
def deleteDuplicates(self, head):
if not head or not head.next:
return head
... | 896 | 896 | 0.419643 | 96 | 896 | 3.875 | 0.322917 | 0.053763 | 0.064516 | 0.072581 | 0.215054 | 0.112903 | 0.112903 | 0 | 0 | 0 | 0 | 0.008869 | 0.496652 | 896 | 1 | 896 | 896 | 0.815965 | 0.934152 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3f4bdf84e00ead9b9cc3d8d39af0cec33de032be | 1,267 | py | Python | longest_sub_string.py | CihatBaran/algorithm | 9473eba58273daef5961182e9d1c2eae2fa36045 | [
"MIT"
] | null | null | null | longest_sub_string.py | CihatBaran/algorithm | 9473eba58273daef5961182e9d1c2eae2fa36045 | [
"MIT"
] | null | null | null | longest_sub_string.py | CihatBaran/algorithm | 9473eba58273daef5961182e9d1c2eae2fa36045 | [
"MIT"
] | null | null | null | # Input: String="aabccbb"
# Output: 3
# Explanation: The longest substring with distinct characters is "abc".
class DistinctCharMap(dict):
def __missing__(self, v):
return 0
def find_the_longest_substring_distinct(string, k=1):
distinct_char_map = DistinctCharMap()
temp_substring = ""
longest... | 29.465116 | 105 | 0.715075 | 162 | 1,267 | 5.259259 | 0.302469 | 0.28169 | 0.245305 | 0.188967 | 0.434272 | 0.42723 | 0.253521 | 0.253521 | 0.253521 | 0.253521 | 0 | 0.006803 | 0.187845 | 1,267 | 43 | 106 | 29.465116 | 0.821186 | 0.081294 | 0 | 0 | 0 | 0 | 0.115418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.071429 | 0.285714 | 0.178571 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
58ab9efdad245456560ffb182965ca8d8d1afed6 | 375 | py | Python | codetools/execution/api.py | enthought/codetools | 20d8bb1eba68145750a1b689655b839078121474 | [
"BSD-3-Clause"
] | 29 | 2015-08-10T20:25:00.000Z | 2021-11-30T23:34:24.000Z | codetools/execution/api.py | enthought/codetools | 20d8bb1eba68145750a1b689655b839078121474 | [
"BSD-3-Clause"
] | 40 | 2015-01-05T15:01:37.000Z | 2022-03-11T13:47:06.000Z | codetools/execution/api.py | enthought/codetools | 20d8bb1eba68145750a1b689655b839078121474 | [
"BSD-3-Clause"
] | 4 | 2015-04-14T10:06:26.000Z | 2021-01-19T16:46:48.000Z | #
# (C) Copyright 2013 Enthought, Inc., Austin, TX
# All right reserved.
#
# This file is open source software distributed according to the terms in
# LICENSE.txt
#
from __future__ import absolute_import
from .interfaces import IExecutable, IExecutingContext
from .executing_context import ExecutingContext, CodeExecuta... | 26.785714 | 73 | 0.813333 | 45 | 375 | 6.622222 | 0.822222 | 0.087248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012308 | 0.133333 | 375 | 13 | 74 | 28.846154 | 0.904615 | 0.4 | 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 |
58c06c9e44f458a9e4dfaa25f2c33177457ad42c | 339 | py | Python | settings.py | MaxHillebrand/Spawn | 6fac0eeaf3a6b6ee84580b7f824c6f738d16c278 | [
"WTFPL"
] | null | null | null | settings.py | MaxHillebrand/Spawn | 6fac0eeaf3a6b6ee84580b7f824c6f738d16c278 | [
"WTFPL"
] | null | null | null | settings.py | MaxHillebrand/Spawn | 6fac0eeaf3a6b6ee84580b7f824c6f738d16c278 | [
"WTFPL"
] | null | null | null | settings = {
'launch_path': '',
'auto_generate': False,
'auto_backup': False,
'JsonRpcUser': '',
'JsonRpcPassword': '',
'observer': '',
'num_addresses': 10,
'destination': '',
}
# Info about the settings are in ... | 26.076923 | 51 | 0.451327 | 26 | 339 | 5.730769 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.41003 | 339 | 12 | 52 | 28.25 | 0.735 | 0.144543 | 0 | 0 | 1 | 0 | 0.322917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
58c44a040a181e0b2447e168a30f9f7a3e887900 | 923 | py | Python | Dynamic Programming/Best Time to Buy and Sell Stock with Cooldown.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | 3 | 2021-06-28T12:04:19.000Z | 2021-09-07T07:23:41.000Z | Dynamic Programming/Best Time to Buy and Sell Stock with Cooldown.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | null | null | null | Dynamic Programming/Best Time to Buy and Sell Stock with Cooldown.py | ikaushikpal/DS-450-python | 9466f77fb9db9e6a5bb3f20aa89ba6332f49e848 | [
"MIT"
] | 1 | 2021-06-28T15:42:55.000Z | 2021-06-28T15:42:55.000Z | from typing import *
class Solution:
def maxProfit(self, prices: List[int]) -> int:
if len(prices) <= 1 : return 0
old_sell_state_profit = 0
old_buy_state_profit = -prices[0]
old_cooldown_state_profit = 0
for i in range(1, len(prices)):
new_buy_sta... | 32.964286 | 107 | 0.657638 | 126 | 923 | 4.301587 | 0.269841 | 0.385609 | 0.193727 | 0.166052 | 0.420664 | 0.372694 | 0.250923 | 0 | 0 | 0 | 0 | 0.016296 | 0.268689 | 923 | 28 | 108 | 32.964286 | 0.786667 | 0 | 0 | 0 | 0 | 0 | 0.008919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.222222 | 0.055556 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
58c4f86f1fc09dfcd8c54b87518f2dfa2010a54e | 145 | py | Python | code/ch_09_tuples/_02_short_swap_tricks.py | NogNoa/write-pythonic-code-demos | 2f452ba232ec8d7ece5fae260623231e8ca0e373 | [
"MIT"
] | 679 | 2016-06-16T22:19:40.000Z | 2022-03-25T19:31:45.000Z | code/ch_09_tuples/_02_short_swap_tricks.py | NogNoa/write-pythonic-code-demos | 2f452ba232ec8d7ece5fae260623231e8ca0e373 | [
"MIT"
] | 11 | 2017-04-17T15:25:42.000Z | 2019-11-30T15:58:28.000Z | code/ch_09_tuples/_02_short_swap_tricks.py | NogNoa/write-pythonic-code-demos | 2f452ba232ec8d7ece5fae260623231e8ca0e373 | [
"MIT"
] | 199 | 2016-06-21T19:13:47.000Z | 2022-03-25T03:36:54.000Z | x = 7
y = 11
print("x={}, y={}".format(x, y))
# swap: nonpythonic
# temp = x
# x = y
# y = temp
y, x = x, y
print("x={}, y={}".format(x, y))
| 10.357143 | 32 | 0.455172 | 28 | 145 | 2.357143 | 0.321429 | 0.181818 | 0.212121 | 0.393939 | 0.454545 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0.027523 | 0.248276 | 145 | 13 | 33 | 11.153846 | 0.577982 | 0.282759 | 0 | 0.4 | 0 | 0 | 0.20202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.