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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
50a542e240eb30e949ddb96bbfca7531ffe28b05 | 279 | py | Python | mypackage/test_mypackage.py | github-travis-travis/python1 | c112aa185bf0f674ac0c4d67fba34d2a359a9657 | [
"MIT"
] | 30 | 2017-03-27T15:39:07.000Z | 2021-08-29T05:30:59.000Z | mypackage/test_mypackage.py | github-travis-travis/python1 | c112aa185bf0f674ac0c4d67fba34d2a359a9657 | [
"MIT"
] | 1 | 2018-12-29T13:48:49.000Z | 2018-12-29T13:48:49.000Z | mypackage/test_mypackage.py | github-travis-travis/python1 | c112aa185bf0f674ac0c4d67fba34d2a359a9657 | [
"MIT"
] | 25 | 2017-03-31T21:12:42.000Z | 2021-09-21T16:19:39.000Z | """Some simple tests"""
from numpy.testing import assert_allclose
def test_addition():
assert 5 + 4 == 9
def test_subtraction():
assert 5 - 4 == 1
def test_multiplication():
assert 5 * 4 == 20
def test_floating_addition():
assert_allclose(0.1 + 0.2, 0.3)
| 14.684211 | 41 | 0.655914 | 42 | 279 | 4.190476 | 0.547619 | 0.159091 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 0.218638 | 279 | 18 | 42 | 15.5 | 0.733945 | 0.060932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.444444 | true | 0 | 0.111111 | 0 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
50b2b37436f5bc79c5323c9545666375bb1f80dd | 1,573 | py | Python | 1. numeric_range/test_numeric_range.py | jeury301/python-morsels | fdbe0b1c80120e2d1388808816538fea5dab8892 | [
"MIT"
] | 2 | 2018-08-21T10:29:57.000Z | 2019-04-17T07:05:17.000Z | 1. numeric_range/test_numeric_range.py | jeury301/python-morsels | fdbe0b1c80120e2d1388808816538fea5dab8892 | [
"MIT"
] | null | null | null | 1. numeric_range/test_numeric_range.py | jeury301/python-morsels | fdbe0b1c80120e2d1388808816538fea5dab8892 | [
"MIT"
] | null | null | null | import unittest
from numeric_range import numeric_range
class NumericRangeTests(unittest.TestCase):
"""Tests for numeric_range."""
def test_ordered_numbers(self):
self.assertEqual(numeric_range([0, 1, 2, 3, 4]), 4)
def test_with_out_of_order_numbers(self):
self.assertEqual(numeric_rang... | 32.770833 | 77 | 0.663064 | 229 | 1,573 | 4.327511 | 0.310044 | 0.193744 | 0.266398 | 0.326942 | 0.556004 | 0.407669 | 0.264379 | 0.264379 | 0.264379 | 0.264379 | 0 | 0.059904 | 0.204069 | 1,573 | 48 | 78 | 32.770833 | 0.731629 | 0.139224 | 0 | 0 | 0 | 0 | 0.006686 | 0 | 0 | 0 | 0 | 0 | 0.464286 | 1 | 0.321429 | false | 0 | 0.071429 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
50d44439d42f551800ef7c6bf941d4e84051829f | 1,104 | py | Python | library/garter.py | kausalyamahadevan/knitout-frontend-py | 1a0414a88db698383dda7e9b45ec1293948b369b | [
"MIT"
] | null | null | null | library/garter.py | kausalyamahadevan/knitout-frontend-py | 1a0414a88db698383dda7e9b45ec1293948b369b | [
"MIT"
] | null | null | null | library/garter.py | kausalyamahadevan/knitout-frontend-py | 1a0414a88db698383dda7e9b45ec1293948b369b | [
"MIT"
] | null | null | null | def garterKnit(k,beg,end,length,c,side='l', knitsettings=[4,400,400], xfersettings=[2,0,300]):
if side == 'l':
start=1
else:
start=2
length=length+1
for b in range(start,length+1):
if b%2==1:
k.stitchNumber(xfersettings[0])
k.rollerAdvance(xfersetti... | 29.052632 | 94 | 0.503623 | 140 | 1,104 | 3.971429 | 0.221429 | 0.02518 | 0.107914 | 0.05036 | 0.705036 | 0.705036 | 0.705036 | 0.705036 | 0.679856 | 0.679856 | 0 | 0.048847 | 0.332428 | 1,104 | 37 | 95 | 29.837838 | 0.705563 | 0 | 0 | 0.413793 | 0 | 0 | 0.009058 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
50dc3dfc7974718385a1734283bb777260dab527 | 99 | py | Python | allennlp_overrides/data/token_indexers/__init__.py | allenai/sledgehammer | 03982da9cd0c543a76832a903033c2d97dbfb113 | [
"Apache-2.0"
] | 47 | 2020-04-14T18:10:05.000Z | 2022-02-16T05:17:03.000Z | allennlp_overrides/data/token_indexers/__init__.py | yardenTal1/sledgehammer | 842a48023451a81c83cdf29cdd7c601b1114a207 | [
"Apache-2.0"
] | 1 | 2020-05-04T19:35:06.000Z | 2020-06-08T02:53:53.000Z | allennlp_overrides/data/token_indexers/__init__.py | yardenTal1/sledgehammer | 842a48023451a81c83cdf29cdd7c601b1114a207 | [
"Apache-2.0"
] | 9 | 2020-04-12T17:31:12.000Z | 2022-03-19T21:23:59.000Z | from allennlp_overrides.data.token_indexers.wordpiece_indexer import NoDebugPretrainedBertIndexer
| 33 | 97 | 0.919192 | 10 | 99 | 8.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050505 | 99 | 2 | 98 | 49.5 | 0.93617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
50fb1f2ae5892ad8cef3e1166a6a5ce0413049e7 | 710 | py | Python | pabiana/zmqs/runner.py | kankiri/pabiana | 792af9bc254bbdf9e87c92baeb69a9722881d722 | [
"MIT"
] | null | null | null | pabiana/zmqs/runner.py | kankiri/pabiana | 792af9bc254bbdf9e87c92baeb69a9722881d722 | [
"MIT"
] | 8 | 2019-05-21T14:47:06.000Z | 2019-09-27T17:16:12.000Z | pabiana/zmqs/runner.py | kankiri/pabiana | 792af9bc254bbdf9e87c92baeb69a9722881d722 | [
"MIT"
] | 1 | 2022-01-06T08:05:44.000Z | 2022-01-06T08:05:44.000Z | from typing import Any, Dict
import zmq
from .extensions import Publisher, Pusher
from .utils import Context
from ..abcs import Node
from ..utils import Interfaces
class Runner(Node):
"""Abstract class to implement Pabiana Nodes with the ability to publish messages and call Triggers based on ZMQ."""
def __init__(... | 32.272727 | 117 | 0.738028 | 100 | 710 | 5.13 | 0.48 | 0.040936 | 0.05848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146479 | 710 | 21 | 118 | 33.809524 | 0.846535 | 0.176056 | 0 | 0 | 0 | 0 | 0.005181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0.142857 | 0.428571 | 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 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
0fc06f9c5ca9591d3289d2d9a4a37c24247ba9fc | 486,904 | py | Python | data/facebook.py | bycrueltr/turkishacks | 6fc085f29a619382f6d3fb35c7385ed5664d2f1c | [
"BSD-3-Clause"
] | 63 | 2019-10-09T15:11:10.000Z | 2022-03-20T11:08:36.000Z | data/facebook.py | bycrueltr/turkishacks | 6fc085f29a619382f6d3fb35c7385ed5664d2f1c | [
"BSD-3-Clause"
] | 4 | 2020-05-31T05:06:36.000Z | 2021-11-07T01:36:39.000Z | data/facebook.py | bycrueltr/turkishacks | 6fc085f29a619382f6d3fb35c7385ed5664d2f1c | [
"BSD-3-Clause"
] | 46 | 2019-06-02T21:57:31.000Z | 2022-03-24T17:49:31.000Z |
# _\__o__ __o/ o o o o__ __o o o/ o__ __o__/_ o__ __o
# v |/ <|> <|> <|> /v v\ <|> /v <| v <| v\
# / < > < > / \ /> <\ / > /> < > /... | 109.049048 | 75,167 | 0.686591 | 56,297 | 486,904 | 5.734817 | 0.139794 | 0.012842 | 0.017677 | 0.021756 | 0.544728 | 0.519571 | 0.493949 | 0.479952 | 0.466147 | 0.453826 | 0 | 0.13383 | 0.093068 | 486,904 | 4,465 | 75,168 | 109.049048 | 0.597252 | 0.036235 | 0 | 0.694351 | 0 | 0.122517 | 0.998804 | 0.441967 | 0.000516 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.023214 | 0.002063 | 0 | 0.002321 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ff93f87012b0b5fb8d3df8bae5773131a88c391 | 127 | py | Python | server.py | Stuff-for-CodeCool/overengineered-flask-example | c002cb4ec29f4e9a05b176b7bd9ac96248446b62 | [
"MIT"
] | null | null | null | server.py | Stuff-for-CodeCool/overengineered-flask-example | c002cb4ec29f4e9a05b176b7bd9ac96248446b62 | [
"MIT"
] | null | null | null | server.py | Stuff-for-CodeCool/overengineered-flask-example | c002cb4ec29f4e9a05b176b7bd9ac96248446b62 | [
"MIT"
] | null | null | null | """The example server, simply imports app"""
from app import app
# Run application
if __name__ == "__main__":
app.run()
| 18.142857 | 44 | 0.677165 | 17 | 127 | 4.588235 | 0.764706 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19685 | 127 | 6 | 45 | 21.166667 | 0.764706 | 0.448819 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ba0b927e663e1ecbd47da4be4c751d329ba041c0 | 27 | py | Python | tests/__init__.py | joshs85/bond-api | 1d4aaacd16718780482b91633b6ee2695789bdd0 | [
"MIT"
] | null | null | null | tests/__init__.py | joshs85/bond-api | 1d4aaacd16718780482b91633b6ee2695789bdd0 | [
"MIT"
] | null | null | null | tests/__init__.py | joshs85/bond-api | 1d4aaacd16718780482b91633b6ee2695789bdd0 | [
"MIT"
] | null | null | null | """bond-api unit tests."""
| 13.5 | 26 | 0.592593 | 4 | 27 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.666667 | 0.740741 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ba20a8fbccd146d3325621affc64b55f6b0bf708 | 119 | py | Python | response_operations_social_ui/user.py | ONSdigital/response-operations-social-ui | 9b34f8e3261e30d732a32438e67b288e0042ed7c | [
"MIT"
] | null | null | null | response_operations_social_ui/user.py | ONSdigital/response-operations-social-ui | 9b34f8e3261e30d732a32438e67b288e0042ed7c | [
"MIT"
] | 27 | 2018-09-26T08:46:07.000Z | 2021-04-21T07:09:53.000Z | response_operations_social_ui/user.py | ONSdigital/response-operations-social-ui | 9b34f8e3261e30d732a32438e67b288e0042ed7c | [
"MIT"
] | 1 | 2021-04-11T08:02:48.000Z | 2021-04-11T08:02:48.000Z | from flask_login import UserMixin
class User(UserMixin):
def __init__(self, user_id):
self.id = user_id
| 14.875 | 33 | 0.697479 | 17 | 119 | 4.470588 | 0.647059 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226891 | 119 | 7 | 34 | 17 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ba2622c04a56fa8524bb2de5a4d8b5a2b4d3074b | 153 | py | Python | vctl/describe/cmd.py | GMH501/vctl-vsphere-cli | eaa26b79e13917ce06cf3a23f19a1c4b6761dffa | [
"Apache-2.0"
] | 1 | 2020-07-12T14:27:34.000Z | 2020-07-12T14:27:34.000Z | vctl/describe/cmd.py | GMH501/vctl-vsphere-cli | eaa26b79e13917ce06cf3a23f19a1c4b6761dffa | [
"Apache-2.0"
] | 3 | 2021-03-25T23:59:37.000Z | 2021-06-02T02:28:17.000Z | vctl/describe/cmd.py | GMH501/vctl-vsphere-cli | eaa26b79e13917ce06cf3a23f19a1c4b6761dffa | [
"Apache-2.0"
] | null | null | null | import click
from vctl.describe.subcmds import host, vm
@click.group()
def describe():
pass
describe.add_command(host)
describe.add_command(vm)
| 11.769231 | 42 | 0.751634 | 22 | 153 | 5.136364 | 0.590909 | 0.19469 | 0.318584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143791 | 153 | 12 | 43 | 12.75 | 0.862595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0.142857 | 0.285714 | 0 | 0.428571 | 0 | 1 | 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 | 4 |
ba29afc98a50a798a28ba785fd06337f4a00829e | 287 | py | Python | tworaven_apps/configurations/migrations/0013_merge_20190125_1217.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 20 | 2017-12-11T07:26:06.000Z | 2021-11-22T16:16:20.000Z | tworaven_apps/configurations/migrations/0013_merge_20190125_1217.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 849 | 2017-10-20T18:21:18.000Z | 2022-02-18T02:45:44.000Z | tworaven_apps/configurations/migrations/0013_merge_20190125_1217.py | TwoRavens/TwoRavens | e5f820557d6646df525ceed15e17d79f4159cf0a | [
"Apache-2.0"
] | 1 | 2020-05-18T06:02:13.000Z | 2020-05-18T06:02:13.000Z | # Generated by Django 2.1.3 on 2019-01-25 17:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('configurations', '0012_auto_20190125_0024'),
('configurations', '0012_auto_20190125_1213'),
]
operations = [
]
| 19.133333 | 54 | 0.665505 | 33 | 287 | 5.606061 | 0.757576 | 0.194595 | 0.237838 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209821 | 0.219512 | 287 | 14 | 55 | 20.5 | 0.616071 | 0.156794 | 0 | 0 | 1 | 0 | 0.308333 | 0.191667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
e84c8f393582a3aa2ce158b50864ff9e9e4ff28c | 961 | py | Python | asgard/services/agents.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | 3 | 2020-01-10T02:16:09.000Z | 2020-02-19T18:42:37.000Z | asgard/services/agents.py | pabarros/asgard-api | 3c10d5f99f584df5e8011558cf42e8b201d567e9 | [
"MIT"
] | 13 | 2020-01-15T18:22:35.000Z | 2021-03-31T19:21:54.000Z | asgard/services/agents.py | rockerbacon/asgard-api | 1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a | [
"MIT"
] | 6 | 2020-03-07T09:49:19.000Z | 2021-07-25T03:14:10.000Z | from typing import List, Optional
from asgard.backends.base import Orchestrator
from asgard.models.account import Account
from asgard.models.agent import Agent
from asgard.models.app import App
from asgard.models.user import User
class AgentsService:
async def get_agents(
self, user: User, account: Accou... | 34.321429 | 110 | 0.71384 | 129 | 961 | 5.178295 | 0.356589 | 0.07485 | 0.095808 | 0.094311 | 0.188623 | 0.122754 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209157 | 961 | 27 | 111 | 35.592593 | 0.878947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | 1 | 0 | true | 0 | 0.315789 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e87965e500e6f447555203284e54edb3bb07dd29 | 536 | py | Python | plugwise/__init__.py | middelink/python-plugwise | fa87f8a1136780c1b675e754dc79ca5b0aebdb73 | [
"MIT"
] | 1 | 2019-11-02T08:01:02.000Z | 2019-11-02T08:01:02.000Z | plugwise/__init__.py | middelink/python-plugwise | fa87f8a1136780c1b675e754dc79ca5b0aebdb73 | [
"MIT"
] | 2 | 2020-03-28T13:25:11.000Z | 2021-08-10T20:31:15.000Z | plugwise/__init__.py | middelink/python-plugwise | fa87f8a1136780c1b675e754dc79ca5b0aebdb73 | [
"MIT"
] | 3 | 2015-09-22T19:57:06.000Z | 2021-01-20T15:09:00.000Z | """
Library for communicating with Plugwise Circle and Circle+ smartplugs.
There's no official documentation available about these things so this implementation is based
on partial reverse engineering by Maarten Damen (http://www.maartendamen.com/downloads/?did=5)
and several other sources.
Usage example:
>>> fr... | 26.8 | 94 | 0.705224 | 74 | 536 | 5.054054 | 0.77027 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020179 | 0.16791 | 536 | 19 | 95 | 28.210526 | 0.818386 | 0.94403 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e88ffe46e19efc238d9accf5fdfdf86dc03fe9ba | 25,596 | py | Python | tests/test_component.py | jnbellinger/lta | b7cb3c65e0f167e56abb67f8283083aafd700e42 | [
"MIT"
] | null | null | null | tests/test_component.py | jnbellinger/lta | b7cb3c65e0f167e56abb67f8283083aafd700e42 | [
"MIT"
] | null | null | null | tests/test_component.py | jnbellinger/lta | b7cb3c65e0f167e56abb67f8283083aafd700e42 | [
"MIT"
] | null | null | null | # test_component.py
"""Unit tests for lta/picker.py."""
from asyncio import Future
from unittest.mock import call, MagicMock
from uuid import uuid1
import pytest # type: ignore
import requests
from tornado.web import HTTPError # type: ignore
from lta.component import patch_status_heartbeat, status_loop, work_loop
... | 41.755302 | 198 | 0.689131 | 3,317 | 25,596 | 5.07356 | 0.114863 | 0.021748 | 0.019787 | 0.026264 | 0.793095 | 0.748648 | 0.722443 | 0.705865 | 0.662844 | 0.638244 | 0 | 0.059298 | 0.190928 | 25,596 | 612 | 199 | 41.823529 | 0.753344 | 0.05411 | 0 | 0.54375 | 0 | 0.008333 | 0.336317 | 0.22871 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.01875 | false | 0.004167 | 0.01875 | 0 | 0.039583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e89beb5d0f46675b30f5be9e984e049c2233ff2b | 197 | py | Python | frappe/patches/v7_0/create_private_file_folder.py | Nxweb-in/frappe | 56b3eb52bf56dd71bee29fde3ed28ed9c6d15947 | [
"MIT"
] | 1 | 2021-06-03T07:04:48.000Z | 2021-06-03T07:04:48.000Z | frappe/patches/v7_0/create_private_file_folder.py | Nxweb-in/frappe | 56b3eb52bf56dd71bee29fde3ed28ed9c6d15947 | [
"MIT"
] | null | null | null | frappe/patches/v7_0/create_private_file_folder.py | Nxweb-in/frappe | 56b3eb52bf56dd71bee29fde3ed28ed9c6d15947 | [
"MIT"
] | null | null | null |
import frappe, os
def execute():
if not os.path.exists(os.path.join(frappe.local.site_path, 'private', 'files')):
frappe.create_folder(os.path.join(frappe.local.site_path, 'private', 'files')) | 32.833333 | 81 | 0.730964 | 31 | 197 | 4.548387 | 0.516129 | 0.12766 | 0.141844 | 0.22695 | 0.58156 | 0.58156 | 0.58156 | 0.58156 | 0.58156 | 0 | 0 | 0 | 0.086294 | 197 | 6 | 82 | 32.833333 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e8afdf07d9b3b7b305513a5795d256d321339d06 | 187 | py | Python | metaphor/google_directory/__main__.py | MetaphorData/connectors | e195f58ee0660b278bd72d16173937fae279eef2 | [
"Apache-2.0"
] | 5 | 2021-08-24T17:46:48.000Z | 2022-01-21T03:42:31.000Z | metaphor/google_directory/__main__.py | MetaphorData/connectors | e195f58ee0660b278bd72d16173937fae279eef2 | [
"Apache-2.0"
] | 142 | 2021-09-02T22:16:54.000Z | 2022-03-31T15:23:34.000Z | metaphor/google_directory/__main__.py | MetaphorData/connectors | e195f58ee0660b278bd72d16173937fae279eef2 | [
"Apache-2.0"
] | null | null | null | from metaphor.common.cli import cli_main
from .extractor import GoogleDirectoryExtractor
if __name__ == "__main__":
cli_main("Google directory connector", GoogleDirectoryExtractor)
| 26.714286 | 68 | 0.812834 | 20 | 187 | 7.1 | 0.65 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 187 | 6 | 69 | 31.166667 | 0.860606 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e8c6b2e867e8b0e4a6924f107bb33ae6fcd83497 | 225 | py | Python | webu/gas_strategies/rpc.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | webu/gas_strategies/rpc.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | webu/gas_strategies/rpc.py | happyuc-project/webu.py | 5a01124fc84d74df09a33d9dabe88b704cd5b6c6 | [
"MIT"
] | null | null | null | def rpc_gas_price_strategy(webu, transaction_params=None):
"""
A simple gas price strategy deriving it's value from the eth_gasPrice JSON-RPC call.
"""
return webu.manager.request_blocking("eth_gasPrice", [])
| 37.5 | 88 | 0.733333 | 32 | 225 | 4.9375 | 0.78125 | 0.101266 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164444 | 225 | 5 | 89 | 45 | 0.840426 | 0.373333 | 0 | 0 | 0 | 0 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fa02312d703057aaa6f24431a968ab33a6fa55d9 | 306 | py | Python | t99/api_resources/quotes.py | 1099policy/ten99policy-python | 168106808350e2d524aa6f00880c72e111ab6167 | [
"MIT"
] | null | null | null | t99/api_resources/quotes.py | 1099policy/ten99policy-python | 168106808350e2d524aa6f00880c72e111ab6167 | [
"MIT"
] | null | null | null | t99/api_resources/quotes.py | 1099policy/ten99policy-python | 168106808350e2d524aa6f00880c72e111ab6167 | [
"MIT"
] | null | null | null | from t99.api_resources.abstract import CreateableAPIResource
from t99.api_resources.abstract import ListableAPIResource
from t99.api_resources.abstract import UpdateableAPIResource
class Quotes(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
OBJECT_NAME = "quotes"
| 25.5 | 60 | 0.823529 | 29 | 306 | 8.551724 | 0.448276 | 0.084677 | 0.120968 | 0.229839 | 0.399194 | 0.399194 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.127451 | 306 | 11 | 61 | 27.818182 | 0.906367 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fa24117e325bf5257a5d79e72058505458f69cb6 | 205 | py | Python | phonebox_plugin/admin.py | Xeizzeth/phonebox_plugin | b4e2f6ac04203b25e78292ad2bc98a490645ff47 | [
"MIT"
] | 38 | 2021-02-07T20:54:12.000Z | 2022-02-21T19:18:17.000Z | phonebox_plugin/admin.py | Xeizzeth/phonebox_plugin | b4e2f6ac04203b25e78292ad2bc98a490645ff47 | [
"MIT"
] | 13 | 2021-04-19T15:25:31.000Z | 2022-03-12T18:04:38.000Z | phonebox_plugin/admin.py | Xeizzeth/phonebox_plugin | b4e2f6ac04203b25e78292ad2bc98a490645ff47 | [
"MIT"
] | 15 | 2021-02-22T11:26:30.000Z | 2022-03-23T12:37:27.000Z | from django.contrib import admin
from .models import Number
@admin.register(Number)
class NumPlanAdmin(admin.ModelAdmin):
list_display = ("number", "tenant", "description", "provider", "forward_to")
| 25.625 | 80 | 0.75122 | 24 | 205 | 6.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117073 | 205 | 7 | 81 | 29.285714 | 0.839779 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fa313dfda40b691ef58e86f5a57119c9d25a6c44 | 122 | py | Python | src/syft/lib/python/primitive_interface.py | chinmayshah99/PySyft | c26c7c9478df37da7d0327a67a5987c2dfd91cbe | [
"MIT"
] | 2 | 2020-03-06T15:51:52.000Z | 2020-03-08T13:14:24.000Z | src/syft/lib/python/primitive_interface.py | chinmayshah99/PySyft | c26c7c9478df37da7d0327a67a5987c2dfd91cbe | [
"MIT"
] | 5 | 2020-12-03T21:06:20.000Z | 2020-12-31T03:46:57.000Z | src/syft/lib/python/primitive_interface.py | chinmayshah99/PySyft | c26c7c9478df37da7d0327a67a5987c2dfd91cbe | [
"MIT"
] | 1 | 2020-09-29T06:21:17.000Z | 2020-09-29T06:21:17.000Z | # syft relative
from ...core.common import UID
class PyPrimitive:
def __init__(self) -> None:
self._id: UID
| 15.25 | 31 | 0.655738 | 16 | 122 | 4.6875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237705 | 122 | 7 | 32 | 17.428571 | 0.806452 | 0.106557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fa5442e9850b15c64aee870bba2224e04604c4f3 | 55 | py | Python | 04 Operators/membership_1.py | gitter-badger/survival-python | c9c7f336ecd0b8196934386d334f53cd79cb7284 | [
"MIT"
] | 1 | 2020-12-19T04:41:50.000Z | 2020-12-19T04:41:50.000Z | 04 Operators/membership_1.py | gitter-badger/survival-python | c9c7f336ecd0b8196934386d334f53cd79cb7284 | [
"MIT"
] | null | null | null | 04 Operators/membership_1.py | gitter-badger/survival-python | c9c7f336ecd0b8196934386d334f53cd79cb7284 | [
"MIT"
] | 3 | 2020-01-08T00:34:24.000Z | 2021-07-08T23:06:52.000Z | items = [1, 2, 3, 4]
print('4 in items?', 4 in items)
| 13.75 | 32 | 0.545455 | 12 | 55 | 2.5 | 0.583333 | 0.2 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.236364 | 55 | 3 | 33 | 18.333333 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
fa6743e8bf08645d6e929d8063917543f03f16f2 | 624 | py | Python | core/utils.py | Xeuz-x/FingerPrint | 5f9e526c1b30e1808e1f27f1e3245cb83f778f63 | [
"MIT"
] | 1 | 2021-02-24T21:14:05.000Z | 2021-02-24T21:14:05.000Z | core/utils.py | Xeuz-x/PassMan | 5f9e526c1b30e1808e1f27f1e3245cb83f778f63 | [
"MIT"
] | null | null | null | core/utils.py | Xeuz-x/PassMan | 5f9e526c1b30e1808e1f27f1e3245cb83f778f63 | [
"MIT"
] | null | null | null | import pyperclip as clip
import string
import secrets
def generate_specialString(password_length):
choices = string.ascii_letters + string.digits + string.punctuation
generated_string = "".join([secrets.choice(choices) for i in range(password_length)]).replace("|", "#").replace(":", "*")
return generated_... | 28.363636 | 125 | 0.722756 | 73 | 624 | 6 | 0.369863 | 0.127854 | 0.09589 | 0.123288 | 0.69863 | 0.69863 | 0.69863 | 0.69863 | 0.465753 | 0.465753 | 0 | 0 | 0.136218 | 624 | 21 | 126 | 29.714286 | 0.812616 | 0 | 0 | 0.307692 | 1 | 0 | 0.012862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.307692 | 0.230769 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
d7159309fb2b0dadef793b8ff620781f35889c90 | 268 | py | Python | django/axf/utils/serializers.py | zhang15780/web_project | 820708ae68f4d1bc06cdde4a86e40a5457c11df8 | [
"Apache-2.0"
] | null | null | null | django/axf/utils/serializers.py | zhang15780/web_project | 820708ae68f4d1bc06cdde4a86e40a5457c11df8 | [
"Apache-2.0"
] | null | null | null | django/axf/utils/serializers.py | zhang15780/web_project | 820708ae68f4d1bc06cdde4a86e40a5457c11df8 | [
"Apache-2.0"
] | null | null | null | from app.models import Goods, Foodtype
from rest_framework import serializers
class goodsserializers(serializers.ModelSerializer):
class Meta:
model = Goods
fields = ['productid', 'productimg', 'price', 'marketprice', 'categoryid', 'productnum']
| 29.777778 | 96 | 0.723881 | 26 | 268 | 7.423077 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171642 | 268 | 8 | 97 | 33.5 | 0.869369 | 0 | 0 | 0 | 0 | 0 | 0.205224 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d730be506aea6c95bdfc21079b8e7aba5b70c46d | 231 | py | Python | latent_with_splitseqs/base/wrapper_base.py | fgitmichael/SelfSupevisedSkillDiscovery | 60eee11cfd67046190dd2784bf40e97bdbed9d40 | [
"MIT"
] | null | null | null | latent_with_splitseqs/base/wrapper_base.py | fgitmichael/SelfSupevisedSkillDiscovery | 60eee11cfd67046190dd2784bf40e97bdbed9d40 | [
"MIT"
] | 6 | 2021-02-02T23:00:02.000Z | 2022-01-13T03:13:51.000Z | latent_with_splitseqs/base/wrapper_base.py | fgitmichael/SelfSupevisedSkillDiscovery | 60eee11cfd67046190dd2784bf40e97bdbed9d40 | [
"MIT"
] | null | null | null | class WrapperBase(object):
def __init__(self, instance_to_wrap):
self.wrapped = instance_to_wrap
def __getattr__(self, item):
assert item not in dir(self)
return self.wrapped.__getattribute__(item) | 28.875 | 50 | 0.69697 | 29 | 231 | 5 | 0.62069 | 0.137931 | 0.193103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220779 | 231 | 8 | 50 | 28.875 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d760254edc38c95b10cb7aedf874ed3e63659679 | 301 | py | Python | app.py | alexpulver/aws-cdk-project-structure-python-simple | 2397b9bc8762b294c26a85913007b139fb656a92 | [
"MIT"
] | 6 | 2021-08-03T06:44:41.000Z | 2022-03-21T05:26:19.000Z | app.py | alexpulver/aws-cdk-project-structure-python-simple | 2397b9bc8762b294c26a85913007b139fb656a92 | [
"MIT"
] | null | null | null | app.py | alexpulver/aws-cdk-project-structure-python-simple | 2397b9bc8762b294c26a85913007b139fb656a92 | [
"MIT"
] | null | null | null | import aws_cdk as cdk
import constants
from deployment import UuidGeneratorBackend
app = cdk.App()
# Development
UuidGeneratorBackend(app, f"{constants.APP_NAME}-Dev", env=constants.DEV_ENV)
# Production
UuidGeneratorBackend(app, f"{constants.APP_NAME}-Prod", env=constants.PROD_ENV)
app.synth()
| 20.066667 | 79 | 0.79402 | 40 | 301 | 5.85 | 0.425 | 0.294872 | 0.205128 | 0.282051 | 0.34188 | 0.34188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096346 | 301 | 14 | 80 | 21.5 | 0.860294 | 0.07309 | 0 | 0 | 0 | 0 | 0.177536 | 0.177536 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
d766e2591dfc55b04736c1bd9f9bdee58c7e87af | 87,385 | py | Python | icons/icons.py | uname/blepi | 78d0f44064b90a334096d29b6628b05dc1290174 | [
"Apache-2.0"
] | null | null | null | icons/icons.py | uname/blepi | 78d0f44064b90a334096d29b6628b05dc1290174 | [
"Apache-2.0"
] | null | null | null | icons/icons.py | uname/blepi | 78d0f44064b90a334096d29b6628b05dc1290174 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt4 (Qt v4.8.7)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = b"\
\x00\x00\x0e\xd6\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\... | 64.348306 | 97 | 0.715535 | 20,781 | 87,385 | 3.007988 | 0.014148 | 0.030812 | 0.028652 | 0.021501 | 0.043818 | 0.042666 | 0.041034 | 0.038922 | 0.035947 | 0.033307 | 0 | 0.315339 | 0.031642 | 87,385 | 1,357 | 98 | 64.395726 | 0.423363 | 0.001728 | 0 | 0.022338 | 0 | 0.959047 | 0 | 0 | 0 | 1 | 0.000093 | 0 | 0 | 1 | 0.001489 | false | 0 | 0.000745 | 0 | 0.002234 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d7831375598632062914d4093fb4e277f43693ff | 73 | py | Python | pypy/module/_hpy_universal/test/_vendored/debug/__init__.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/module/_hpy_universal/test/_vendored/debug/__init__.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | pypy/module/_hpy_universal/test/_vendored/debug/__init__.py | olliemath/pypy | 8b873bd0b8bf76075aba3d915c260789f26f5788 | [
"Apache-2.0",
"OpenSSL"
] | 1 | 2022-03-30T11:42:37.000Z | 2022-03-30T11:42:37.000Z | # AUTOMATICALLY CREATED BY pypy/module/_hpy_universal/update_vendored.sh
| 36.5 | 72 | 0.863014 | 10 | 73 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 73 | 1 | 73 | 73 | 0.882353 | 0.958904 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ad19286b8eea1a156bd3c739fab6071cf9f0a22c | 84 | py | Python | AtCoder/ABC/A/page-3/086A.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | AtCoder/ABC/A/page-3/086A.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | AtCoder/ABC/A/page-3/086A.py | Nishi05/Competitive-programming | e59a6755b706d9d5c1f359f4511d92c114e6a94e | [
"MIT"
] | null | null | null | a, b = map(int, input().split())
print("Odd") if (a*b) % 2 == 1 else print("Even")
| 21 | 49 | 0.535714 | 16 | 84 | 2.8125 | 0.8125 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.178571 | 84 | 3 | 50 | 28 | 0.623188 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ad280905a8bd28f4b32b4133aaf77e2fb4aef98b | 34,487 | py | Python | src/nntm/datasets/_numerai_main_meta.py | suud/nntm | 48ba15f3ec07d8787f86d8cf043481fa9f9cc328 | [
"BSD-3-Clause"
] | 1 | 2021-12-19T17:09:51.000Z | 2021-12-19T17:09:51.000Z | src/nntm/datasets/_numerai_main_meta.py | suud/nntm | 48ba15f3ec07d8787f86d8cf043481fa9f9cc328 | [
"BSD-3-Clause"
] | null | null | null | src/nntm/datasets/_numerai_main_meta.py | suud/nntm | 48ba15f3ec07d8787f86d8cf043481fa9f9cc328 | [
"BSD-3-Clause"
] | null | null | null | """Numerai main tournament metadata.
Convenience module defining some of the more static variables of the
Numerai main tournament.
The tournament is constantly evolving. Metadata from this module might
be outdated. Retrieving the most recent information using the `fetch_`
functions of the `nntm.datasets` module shoul... | 42.315337 | 70 | 0.813698 | 3,219 | 34,487 | 7.986642 | 0.427773 | 0.003112 | 0.003151 | 0.004551 | 0.816679 | 0.011436 | 0.011436 | 0.011436 | 0.011436 | 0 | 0 | 0.001706 | 0.11616 | 34,487 | 814 | 71 | 42.367322 | 0.841737 | 0.013744 | 0 | 0.792191 | 0 | 0 | 0.806446 | 0.797389 | 0 | 0 | 0 | 0 | 0.001259 | 1 | 0 | false | 0.006297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ad3b5c024571c81a924da1a93b58dc3d96fe5932 | 366 | py | Python | comments/forms.py | sunilsm7/django_resto | b7698653093af7e6f26dd0d0c7b8d6046b402ea4 | [
"MIT"
] | 1 | 2017-08-03T01:40:12.000Z | 2017-08-03T01:40:12.000Z | comments/forms.py | sunilsm7/django_resto | b7698653093af7e6f26dd0d0c7b8d6046b402ea4 | [
"MIT"
] | null | null | null | comments/forms.py | sunilsm7/django_resto | b7698653093af7e6f26dd0d0c7b8d6046b402ea4 | [
"MIT"
] | null | null | null | from django import forms
class CommentForm(forms.Form):
content_type = forms.CharField(widget=forms.HiddenInput)
object_id = forms.IntegerField(widget=forms.HiddenInput)
#parent_id = forms.IntegerField(widget=forms.HiddenInput, required=False)
content = forms.CharField(label='', widget=forms.Textarea(attrs={'rows... | 45.75 | 117 | 0.778689 | 47 | 366 | 6 | 0.617021 | 0.156028 | 0.234043 | 0.177305 | 0.29078 | 0.29078 | 0 | 0 | 0 | 0 | 0 | 0.002985 | 0.084699 | 366 | 8 | 117 | 45.75 | 0.838806 | 0.196721 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ad8f20966e4447a0047d6db141984b3c5e21eb97 | 361 | py | Python | app/forms.py | GitauHarrison/video-conferencing-app-using-flask-and-twilio | 131f62bd5f5ecc2a169f4fb2aa49643b9d9cb0d6 | [
"MIT"
] | null | null | null | app/forms.py | GitauHarrison/video-conferencing-app-using-flask-and-twilio | 131f62bd5f5ecc2a169f4fb2aa49643b9d9cb0d6 | [
"MIT"
] | null | null | null | app/forms.py | GitauHarrison/video-conferencing-app-using-flask-and-twilio | 131f62bd5f5ecc2a169f4fb2aa49643b9d9cb0d6 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
class JoinForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()],
render_kw={"placeholder": "Username"})
submit = SubmitField('Join Call'... | 36.1 | 76 | 0.714681 | 35 | 361 | 7.285714 | 0.542857 | 0.086275 | 0.14902 | 0.211765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177285 | 361 | 9 | 77 | 40.111111 | 0.858586 | 0 | 0 | 0 | 0 | 0 | 0.152355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ad9e7c5752f68c363c906c637f50b5d7ff806ae4 | 332 | py | Python | test/_mock_data/url/external_url.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | 2 | 2022-02-20T10:03:19.000Z | 2022-03-22T11:17:10.000Z | test/_mock_data/url/external_url.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | test/_mock_data/url/external_url.py | jakob-bagterp/browserist | 76bd916dd217b7da3759fd6ec3374191002dc091 | [
"Apache-2.0"
] | null | null | null | AMAZON_COM: str = "https://www.amazon.com/"
DBA_DK: str = "https://www.dba.dk/"
EXAMPLE_COM: str = "http://example.com/"
GOOGLE_COM: str = "https://www.google.com/"
JYLLANDSPOSTEN_DK: str = "https://jyllands-posten.dk/"
IANA_ORG: str = "https://www.iana.org/domains/reserved"
W3SCHOOLS_COM: str = "https://www.w3sc... | 23.714286 | 55 | 0.686747 | 50 | 332 | 4.42 | 0.36 | 0.217195 | 0.248869 | 0.190045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.10241 | 332 | 13 | 56 | 25.538462 | 0.734899 | 0 | 0 | 0 | 0 | 0 | 0.524096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a8df207bb50b00d2ec2e28f336d81b9c195a3b5e | 380 | py | Python | buzzni/ai/reco/mlserving/health/health_handler.py | BuzzniAILab/mlserving | 8b8add9dbe5cdd6392e0c87ee789492de0a1c70e | [
"MIT"
] | 13 | 2020-08-23T17:35:53.000Z | 2022-02-10T14:14:03.000Z | mlserving/health/health_handler.py | orlevi111/ganesha | 137cc388806fc98f7768298da01ebeddf03f9464 | [
"MIT"
] | 3 | 2020-08-20T21:09:01.000Z | 2021-06-25T15:33:54.000Z | mlserving/health/health_handler.py | orlevi111/ganesha | 137cc388806fc98f7768298da01ebeddf03f9464 | [
"MIT"
] | 3 | 2021-04-12T01:56:22.000Z | 2021-10-05T12:50:12.000Z | from abc import abstractmethod
from .status import HealthStatus, Healthy
class HealthHandler:
@abstractmethod
def health_check(self) -> HealthStatus:
"""
@return: HealthStatus of your application / models / etc...
"""
pass
class DefaultHealthHandler(HealthHandler):
def h... | 21.111111 | 67 | 0.671053 | 35 | 380 | 7.228571 | 0.6 | 0.071146 | 0.110672 | 0.142292 | 0.284585 | 0.284585 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244737 | 380 | 17 | 68 | 22.352941 | 0.881533 | 0.155263 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.222222 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
d10e3062da39ea27a3697042b085c1a94e3fcce5 | 147 | py | Python | math_and_algorithm/008.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | math_and_algorithm/008.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | math_and_algorithm/008.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | N, S = map(int, input().split())
ans = 0
for i in range(1, N+1):
for j in range(1, N+1):
if i + j <= S:
ans += 1
print(ans) | 21 | 32 | 0.455782 | 30 | 147 | 2.233333 | 0.533333 | 0.208955 | 0.238806 | 0.268657 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.346939 | 147 | 7 | 33 | 21 | 0.635417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d118452fa6c6faa864528225f94b6aff17efee78 | 429 | py | Python | aioweb/core/model/__init__.py | kreopt/aioweb | 85a9de73d7e6c6951717744c8ef2963062a7e579 | [
"MIT"
] | 3 | 2017-05-04T05:46:44.000Z | 2017-10-04T07:35:24.000Z | aioweb/core/model/__init__.py | kreopt/aioweb | 85a9de73d7e6c6951717744c8ef2963062a7e579 | [
"MIT"
] | null | null | null | aioweb/core/model/__init__.py | kreopt/aioweb | 85a9de73d7e6c6951717744c8ef2963062a7e579 | [
"MIT"
] | null | null | null | class Model(object):
__db = None
__cache_engine = None
@classmethod
def set_db(cls, db):
cls.__db = db\
@classmethod
def get_db(cls):
return cls.__db
@property
def db(self):
return self.__db
@classmethod
def set_cache_engine(cls, cache_engine):
... | 15.888889 | 44 | 0.608392 | 53 | 429 | 4.490566 | 0.283019 | 0.277311 | 0.142857 | 0.159664 | 0.163866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.310023 | 429 | 26 | 45 | 16.5 | 0.804054 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0 | 0.166667 | 0.611111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
d12e7f786b9881a3de2fc2a01bdc1e480748ae16 | 193 | py | Python | natch/rules/any.py | ertgl/natch | 5729725c6eed1596071ac984e3ddfdc21a15af0a | [
"MIT"
] | 2 | 2020-05-24T23:41:00.000Z | 2020-05-25T09:18:08.000Z | natch/rules/any.py | ertgl/natch | 5729725c6eed1596071ac984e3ddfdc21a15af0a | [
"MIT"
] | null | null | null | natch/rules/any.py | ertgl/natch | 5729725c6eed1596071ac984e3ddfdc21a15af0a | [
"MIT"
] | null | null | null | from natch.abstract import Rule
class Any(Rule):
def __init__(self, *args, **kwargs):
super(Any, self).__init__()
def does_match(self, *args, **kwargs):
return True
| 17.545455 | 42 | 0.626943 | 25 | 193 | 4.48 | 0.68 | 0.142857 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238342 | 193 | 10 | 43 | 19.3 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
d15d6f5346c38d4adf92d1249e28f2fb187b6426 | 137 | py | Python | python/actorcore/__init__.py | sdss/actorcore | e683dc8a80c4838887d54da6eca4a3945e85868d | [
"BSD-3-Clause"
] | null | null | null | python/actorcore/__init__.py | sdss/actorcore | e683dc8a80c4838887d54da6eca4a3945e85868d | [
"BSD-3-Clause"
] | null | null | null | python/actorcore/__init__.py | sdss/actorcore | e683dc8a80c4838887d54da6eca4a3945e85868d | [
"BSD-3-Clause"
] | null | null | null | from sdsstools import get_package_version
NAME = "sdss-actorcore"
__version__ = get_package_version(path=__file__, package_name=NAME)
| 19.571429 | 67 | 0.824818 | 18 | 137 | 5.555556 | 0.611111 | 0.2 | 0.34 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10219 | 137 | 6 | 68 | 22.833333 | 0.813008 | 0 | 0 | 0 | 0 | 0 | 0.10219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
66f33b6bc66994a03279d68ef0acff71001daa85 | 177 | py | Python | geoinfo/apps.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | geoinfo/apps.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | 11 | 2020-03-24T15:29:46.000Z | 2022-03-11T23:14:48.000Z | geoinfo/apps.py | stewardshiptools/stewardshiptools | ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GeoInfoConfig(AppConfig):
name = 'geoinfo'
verbose_name = 'Spatial Tools'
def ready(self):
import geoinfo.signals
| 17.7 | 34 | 0.694915 | 20 | 177 | 6.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225989 | 177 | 9 | 35 | 19.666667 | 0.890511 | 0 | 0 | 0 | 0 | 0 | 0.112994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0f03b9f07d8eddfb0a0a02b07823e2168c6f74cb | 478 | py | Python | calrissian/version.py | pymonger/calrissian | 6428fa28ae1da23a40ed3e7e5c169f4eeea68d62 | [
"MIT"
] | 25 | 2019-02-24T15:11:08.000Z | 2021-11-12T16:11:18.000Z | calrissian/version.py | pymonger/calrissian | 6428fa28ae1da23a40ed3e7e5c169f4eeea68d62 | [
"MIT"
] | 87 | 2019-01-09T16:45:52.000Z | 2022-03-28T12:45:46.000Z | calrissian/version.py | pymonger/calrissian | 6428fa28ae1da23a40ed3e7e5c169f4eeea68d62 | [
"MIT"
] | 9 | 2019-01-23T14:36:27.000Z | 2020-12-07T15:35:18.000Z | import pkg_resources # part of setuptools
def package_version(package_name):
try:
pkg = pkg_resources.require(package_name)
return pkg[0].version
except pkg_resources.DistributionNotFound:
return 'unknown'
def cwltool_version():
return package_version('cwltool')
def calrissian... | 21.727273 | 87 | 0.715481 | 52 | 478 | 6.346154 | 0.384615 | 0.109091 | 0.121212 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002558 | 0.182008 | 478 | 21 | 88 | 22.761905 | 0.841432 | 0.037657 | 0 | 0 | 0 | 0 | 0.10917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0f0c795dbd175d123fc3eaf47c762f20e4224fee | 225 | py | Python | cycy/exceptions.py | Magnetic/cycy | 494282a37b5f7d1eaa17b8d01796df8302da2a81 | [
"MIT"
] | 26 | 2015-03-25T15:34:20.000Z | 2019-03-22T09:26:30.000Z | cycy/exceptions.py | DeloitteHux/cycy | 494282a37b5f7d1eaa17b8d01796df8302da2a81 | [
"MIT"
] | 1 | 2017-05-21T14:00:08.000Z | 2017-05-21T14:44:42.000Z | cycy/exceptions.py | Magnetic/cycy | 494282a37b5f7d1eaa17b8d01796df8302da2a81 | [
"MIT"
] | 4 | 2016-12-05T12:59:49.000Z | 2018-11-02T05:59:43.000Z | class CyCyError(Exception):
"""
Base class for non-runtime internal errors.
"""
def rstr(self):
name = self.__class__.__name__
return "%s\n%s\n\n%s" % (name, "-" * len(name), self.__str__())
| 22.5 | 71 | 0.573333 | 29 | 225 | 4.034483 | 0.62069 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 225 | 9 | 72 | 25 | 0.696429 | 0.191111 | 0 | 0 | 0 | 0 | 0.078788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0f0f0c7e163a3ada7251972922c908d020cd36bc | 214 | py | Python | smd/data/postprocessing/__init__.py | qlemaire22/speech-music-detection | 386106d4d794535c0272b939e64ebe02f91ea3a0 | [
"MIT"
] | 71 | 2018-10-17T14:12:36.000Z | 2022-03-29T10:10:29.000Z | smd/data/postprocessing/__init__.py | yagyapandeya/speech-music-detection | 386106d4d794535c0272b939e64ebe02f91ea3a0 | [
"MIT"
] | 11 | 2020-01-28T22:30:36.000Z | 2022-02-10T00:07:50.000Z | smd/data/postprocessing/__init__.py | yagyapandeya/speech-music-detection | 386106d4d794535c0272b939e64ebe02f91ea3a0 | [
"MIT"
] | 13 | 2019-12-04T08:30:34.000Z | 2022-03-23T11:09:48.000Z | """Module for audio postprocessing"""
from __future__ import absolute_import
from .smoothing import smooth_output
from .threshold import apply_threshold
__all__ = ['smooth_output',
'apply_threshold']
| 21.4 | 38 | 0.766355 | 24 | 214 | 6.291667 | 0.583333 | 0.15894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158879 | 214 | 9 | 39 | 23.777778 | 0.838889 | 0.14486 | 0 | 0 | 0 | 0 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0f5eb697cc8411568e8a7904888eaba28c4dd3b0 | 262 | py | Python | legb.py | rajatpuri25/python | 8e01e150ce72aedd7d206242753bb8468a014a1c | [
"bzip2-1.0.6"
] | null | null | null | legb.py | rajatpuri25/python | 8e01e150ce72aedd7d206242753bb8468a014a1c | [
"bzip2-1.0.6"
] | null | null | null | legb.py | rajatpuri25/python | 8e01e150ce72aedd7d206242753bb8468a014a1c | [
"bzip2-1.0.6"
] | null | null | null | """ local enclosing local enclosing local ,global,builtin (legb)"""
name = 'rajat puri'# global
def greet():
name = 'rajat' #local
def hello():
print("hello"+name) #enclosing local
hello()
greet()
len(hello()) #builtin
| 21.833333 | 68 | 0.580153 | 29 | 262 | 5.241379 | 0.448276 | 0.276316 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270992 | 262 | 11 | 69 | 23.818182 | 0.795812 | 0.362595 | 0 | 0 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.125 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0f7c97492e41b8b0f98cadbe661ff9b96529105f | 1,025 | py | Python | Python-ML/PP03/code/util/mlExceptions.py | JasonFil/Python-ML | 74a4b127b24c186d1a62ee8c458f79aaf2eee89b | [
"AFL-3.0"
] | 4 | 2017-06-04T01:06:57.000Z | 2019-11-14T20:05:30.000Z | Python-ML/PP03/code/util/mlExceptions.py | jasonfilippou/Python-ML | 74a4b127b24c186d1a62ee8c458f79aaf2eee89b | [
"AFL-3.0"
] | null | null | null | Python-ML/PP03/code/util/mlExceptions.py | jasonfilippou/Python-ML | 74a4b127b24c186d1a62ee8c458f79aaf2eee89b | [
"AFL-3.0"
] | 5 | 2016-05-27T19:00:07.000Z | 2018-10-30T13:49:38.000Z | '''
Created on Sep 22, 2012
@author: Jason
'''
class DatasetError(Exception):
'''
I will use this class to raise dataset-related exceptions.
Common errors: Empty datasets provided, datasets with wrong
number of features, datasets lacking some feature or labels, etc
Used the ready-baked ... | 26.973684 | 89 | 0.601951 | 109 | 1,025 | 5.513761 | 0.669725 | 0.14975 | 0.036606 | 0.073211 | 0.312812 | 0.312812 | 0.312812 | 0.312812 | 0.312812 | 0.312812 | 0 | 0.011396 | 0.315122 | 1,025 | 38 | 90 | 26.973684 | 0.844729 | 0.465366 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
7e27dbc9ba47bcca71065baedf74aa31aacd22ed | 342 | py | Python | Patterns/rishabhjainfinal.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 229 | 2021-09-10T13:24:47.000Z | 2022-03-18T16:54:29.000Z | Patterns/rishabhjainfinal.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 164 | 2021-09-10T12:04:39.000Z | 2021-10-29T21:20:42.000Z | Patterns/rishabhjainfinal.py | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 567 | 2021-09-10T17:35:27.000Z | 2021-12-11T12:45:43.000Z | length = 21
for i in range(length):
for j in range(length):
if (i == j):
print('*', end="")
elif (i == length-1-j):
print('*', end="")
elif (j == length//2 and i > length//10 and i < 0.9*length ):
print('*', end="")
else:
print(' ', e... | 24.428571 | 69 | 0.397661 | 43 | 342 | 3.162791 | 0.418605 | 0.235294 | 0.191176 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.391813 | 342 | 13 | 70 | 26.307692 | 0.615385 | 0 | 0 | 0.25 | 0 | 0 | 0.01462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 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 | 1 | 0 | 4 |
7e293f9a1faef5f4c8376e7414a6d905d3b7a948 | 182 | py | Python | Chapter 01/1.01.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 120 | 2018-03-04T07:17:00.000Z | 2022-01-25T08:09:57.000Z | Chapter 01/1.01.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 3 | 2019-03-24T09:32:43.000Z | 2020-07-28T07:35:49.000Z | Chapter 01/1.01.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 81 | 2018-04-18T06:51:46.000Z | 2022-03-30T01:31:35.000Z | """
Code illustration: 1.01
Your first GUI application - the top level window
Tkinter GUI Application Development Blueprints
"""
import tkinter as tk
root = tk.Tk()
root.mainloop()
| 18.2 | 49 | 0.758242 | 26 | 182 | 5.307692 | 0.769231 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019481 | 0.153846 | 182 | 9 | 50 | 20.222222 | 0.876623 | 0.659341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7e4131c4d58c1fccc02b495af34b80b6c80b9dc5 | 68 | py | Python | tic-tac-toe/tests/test_game.py | tijimathew/sideProjects | 5e247ea997916e6b1649f685e11b4d2f0e1be61f | [
"MIT"
] | null | null | null | tic-tac-toe/tests/test_game.py | tijimathew/sideProjects | 5e247ea997916e6b1649f685e11b4d2f0e1be61f | [
"MIT"
] | null | null | null | tic-tac-toe/tests/test_game.py | tijimathew/sideProjects | 5e247ea997916e6b1649f685e11b4d2f0e1be61f | [
"MIT"
] | null | null | null | import pytest
from game import *
from unittest.mock import Mock
| 13.6 | 31 | 0.764706 | 10 | 68 | 5.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 68 | 4 | 32 | 17 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7e75d99f09f10f343550656ffefec0ec1048ad66 | 196 | py | Python | stories/serializers.py | parth-singh71/readcount | 3f975eaf3d2d514b622e8112c055023fe246f4ea | [
"MIT"
] | null | null | null | stories/serializers.py | parth-singh71/readcount | 3f975eaf3d2d514b622e8112c055023fe246f4ea | [
"MIT"
] | null | null | null | stories/serializers.py | parth-singh71/readcount | 3f975eaf3d2d514b622e8112c055023fe246f4ea | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import StoryView
class StoryViewSerializer(serializers.ModelSerializer):
class Meta:
model = StoryView
fields = '__all__'
| 21.777778 | 55 | 0.744898 | 19 | 196 | 7.421053 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 196 | 8 | 56 | 24.5 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7ead51bbd965c1715b9fb9528151914980160168 | 37,957 | py | Python | sdk/python/pulumi_azure_native/devtestlab/v20150521preview/virtual_machine_resource.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/devtestlab/v20150521preview/virtual_machine_resource.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/devtestlab/v20150521preview/virtual_machine_resource.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | 44.394152 | 604 | 0.653213 | 4,408 | 37,957 | 5.341878 | 0.045599 | 0.096233 | 0.092751 | 0.092496 | 0.857561 | 0.807279 | 0.722767 | 0.649722 | 0.630314 | 0.564446 | 0 | 0.001699 | 0.240193 | 37,957 | 854 | 605 | 44.446136 | 0.814771 | 0.222594 | 0 | 0.448211 | 1 | 0 | 0.136001 | 0.074815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158192 | false | 0.028249 | 0.013183 | 0 | 0.27307 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0e385bac3432798957afc0b4bf4bfefa54034ea0 | 92 | py | Python | record/apps.py | hhdMrLion/django-crm | 9f6f021e0cddc323c88280b733144366a0cb9fa6 | [
"Apache-2.0"
] | 1 | 2021-06-18T03:03:43.000Z | 2021-06-18T03:03:43.000Z | record/apps.py | hhdMrLion/django-crm | 9f6f021e0cddc323c88280b733144366a0cb9fa6 | [
"Apache-2.0"
] | null | null | null | record/apps.py | hhdMrLion/django-crm | 9f6f021e0cddc323c88280b733144366a0cb9fa6 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class RecordConfig(AppConfig):
name = 'record'
| 15.333333 | 34 | 0.706522 | 10 | 92 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 92 | 5 | 35 | 18.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0e549334d3fe23e0ae69cff55f6f861bd3aac602 | 370 | py | Python | sakurajima/db/models/__init__.py | jefersonmontalvao/Sakurajima-BOT | 0e34739f884c601edab4cd9720dba87395ab638a | [
"MIT"
] | null | null | null | sakurajima/db/models/__init__.py | jefersonmontalvao/Sakurajima-BOT | 0e34739f884c601edab4cd9720dba87395ab638a | [
"MIT"
] | null | null | null | sakurajima/db/models/__init__.py | jefersonmontalvao/Sakurajima-BOT | 0e34739f884c601edab4cd9720dba87395ab638a | [
"MIT"
] | null | null | null | from .models import Model, EnumField, IntegerField, SetField, DateField, DateTimeField,\
CharacterField, TextField, RealField, TimeField, BooleanField
__all__ = ['Model', 'IntegerField', 'RealField',
'BooleanField', 'DateField', 'TimeField',
'DateTimeField', 'CharacterField', ... | 41.111111 | 88 | 0.651351 | 26 | 370 | 9.115385 | 0.576923 | 0.227848 | 0.303797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221622 | 370 | 8 | 89 | 46.25 | 0.822917 | 0 | 0 | 0 | 0 | 0 | 0.295393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0e72998764450bebe3056d32a3338981ec2ed285 | 46 | py | Python | wikimedia_thumbor/engine/stl/__init__.py | wikimedia/operations-software-thumbor-plugins | b30f1594e05118a1d2ed77a886d270866206d08a | [
"MIT"
] | 2 | 2017-06-14T15:14:50.000Z | 2018-02-19T12:38:00.000Z | wikimedia_thumbor/engine/stl/__init__.py | wikimedia/operations-debs-python-thumbor-wikimedia | 555f99fd500a95e00778fa740ac08e41dc6ff896 | [
"MIT"
] | null | null | null | wikimedia_thumbor/engine/stl/__init__.py | wikimedia/operations-debs-python-thumbor-wikimedia | 555f99fd500a95e00778fa740ac08e41dc6ff896 | [
"MIT"
] | null | null | null | from .stl import Engine
__all__ = ['Engine']
| 11.5 | 23 | 0.695652 | 6 | 46 | 4.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 46 | 3 | 24 | 15.333333 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
0e7f75727201b9dc7c1e0643c9459e2a024b8a77 | 202 | py | Python | multitenancy/models/__init__.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | multitenancy/models/__init__.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | multitenancy/models/__init__.py | cmalek/django-site-multitenancy | 1b943f63c0d6247529805e05dcced68ceffa2a69 | [
"Apache-2.0"
] | null | null | null | from .tenant import Tenant, SiteAlias # noqa:F401
from .mixins import TenantSpecificModel # noqa:F401
from .auth import ( # noqa:F401
AbstractTenantUser,
TenantGroup,
TenantMembership,
)
| 25.25 | 52 | 0.737624 | 21 | 202 | 7.095238 | 0.571429 | 0.161074 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054878 | 0.188119 | 202 | 7 | 53 | 28.857143 | 0.853659 | 0.143564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0ea80f71224d4b8fbdae714bb0f7973c015c02fb | 78 | py | Python | tests/maker.py | olopost/l18n | c6ef71a94f32537d5c072b493b94d35ee06d9bf4 | [
"MIT"
] | 3 | 2020-06-22T17:43:48.000Z | 2022-03-04T17:09:12.000Z | tests/maker.py | olopost/l18n | c6ef71a94f32537d5c072b493b94d35ee06d9bf4 | [
"MIT"
] | 6 | 2020-10-28T13:47:45.000Z | 2021-11-12T16:28:58.000Z | tests/maker.py | olopost/l18n | c6ef71a94f32537d5c072b493b94d35ee06d9bf4 | [
"MIT"
] | 4 | 2020-09-04T08:10:12.000Z | 2021-08-19T04:13:21.000Z | __tests__ = False
def build():
import l18n_maker
l18n_maker.build()
| 11.142857 | 22 | 0.679487 | 10 | 78 | 4.7 | 0.7 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.230769 | 78 | 6 | 23 | 13 | 0.716667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7ebe0b2c76854b1a155b09bf8b80e17998a163ff | 315 | py | Python | tests/openbb_terminal/forex/test_forex_api.py | tehcoderer/GamestonkTerminal | 54a1b6f545a0016c576e9e00eef5c003d229dacf | [
"MIT"
] | 255 | 2022-03-29T16:43:51.000Z | 2022-03-31T23:57:08.000Z | tests/openbb_terminal/forex/test_forex_api.py | tehcoderer/GamestonkTerminal | 54a1b6f545a0016c576e9e00eef5c003d229dacf | [
"MIT"
] | 14 | 2022-03-29T14:20:33.000Z | 2022-03-31T23:39:20.000Z | tests/openbb_terminal/forex/test_forex_api.py | tehcoderer/GamestonkTerminal | 54a1b6f545a0016c576e9e00eef5c003d229dacf | [
"MIT"
] | 24 | 2022-03-29T15:28:56.000Z | 2022-03-31T23:54:15.000Z | # IMPORTATION STANDARD
# IMPORTATION THIRDPARTY
# IMPORTATION INTERNAL
from openbb_terminal.helper_classes import ModelsNamespace as _models
from openbb_terminal.forex import forex_api
def test_models():
assert isinstance(forex_api.oanda.models, _models)
assert isinstance(forex_api.ta.models, _models)
| 24.230769 | 69 | 0.819048 | 39 | 315 | 6.358974 | 0.538462 | 0.096774 | 0.145161 | 0.217742 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12381 | 315 | 12 | 70 | 26.25 | 0.898551 | 0.203175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7eda38e4756ea09915a4e8e420a31450835186e4 | 175 | py | Python | utils/img_util.py | anupamme/CheXpert-Federated | afef9d4b477716c289a23b80d7e59b6f36da72a1 | [
"MIT"
] | null | null | null | utils/img_util.py | anupamme/CheXpert-Federated | afef9d4b477716c289a23b80d7e59b6f36da72a1 | [
"MIT"
] | null | null | null | utils/img_util.py | anupamme/CheXpert-Federated | afef9d4b477716c289a23b80d7e59b6f36da72a1 | [
"MIT"
] | null | null | null | import cv2
WIDTH = 224
HEIGHT = 224
def convert_image(image_path):
img = cv2.imread(image_path)
img = cv2.resize(img, (WIDTH, HEIGHT), cv2.INTER_AREA)
return img | 19.444444 | 58 | 0.697143 | 27 | 175 | 4.37037 | 0.555556 | 0.152542 | 0.20339 | 0.254237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070922 | 0.194286 | 175 | 9 | 59 | 19.444444 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7d2c20f882a199dca0ad13d82c739cc317b78988 | 139 | py | Python | output/models/sun_data/stype/st_base_td/st_base_td00301m/st_base_td00301m_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/sun_data/stype/st_base_td/st_base_td00301m/st_base_td00301m_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/sun_data/stype/st_base_td/st_base_td00301m/st_base_td00301m_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.sun_data.stype.st_base_td.st_base_td00301m.st_base_td00301m_xsd.st_base_td00301m import Test
__all__ = [
"Test",
]
| 23.166667 | 111 | 0.805755 | 23 | 139 | 4.26087 | 0.608696 | 0.244898 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.100719 | 139 | 5 | 112 | 27.8 | 0.664 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7d37a2f02eb458eedd92c761f735f2a43f6567a7 | 171 | py | Python | cngi/__init__.py | FedeMPouzols/cngi_prototype | 421a99c460f4092b79120f5bec122de7ce9b8b96 | [
"Apache-2.0"
] | null | null | null | cngi/__init__.py | FedeMPouzols/cngi_prototype | 421a99c460f4092b79120f5bec122de7ce9b8b96 | [
"Apache-2.0"
] | null | null | null | cngi/__init__.py | FedeMPouzols/cngi_prototype | 421a99c460f4092b79120f5bec122de7ce9b8b96 | [
"Apache-2.0"
] | null | null | null | """
CNGI Package
Module functions with blank descriptions have not been completed yet. As each function is completed, its description will be populated.
"""
#__init__.py
| 24.428571 | 135 | 0.783626 | 24 | 171 | 5.416667 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152047 | 171 | 6 | 136 | 28.5 | 0.896552 | 0.94152 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7d3aed514cbd5f2a4a6d0b4874e4f87d41582286 | 187 | py | Python | 09_organizing_larger_programs/demo_reader_namespace/tests/test_multireader.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | 09_organizing_larger_programs/demo_reader_namespace/tests/test_multireader.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | 09_organizing_larger_programs/demo_reader_namespace/tests/test_multireader.py | bluehenry/python.best.practices | 99fde3557b0c423d3050e988e82a641ccd75b644 | [
"MIT"
] | null | null | null | import unittest
import demo_reader.multireader
class TestMultireader(unittest.TestCase):
def test_initialization(self):
demo_reader.multireader.MultiReader('test_file.txt')
| 23.375 | 60 | 0.796791 | 21 | 187 | 6.904762 | 0.666667 | 0.137931 | 0.289655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122995 | 187 | 7 | 61 | 26.714286 | 0.884146 | 0 | 0 | 0 | 0 | 0 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7d4fc36b99bd359456066363dbe8914eac067653 | 83 | py | Python | limb/apps.py | jzftran/InterMetalDB | e823e274aea51f62a4acd7f8c4b1363615d85a26 | [
"MIT"
] | 1 | 2021-02-14T22:39:02.000Z | 2021-02-14T22:39:02.000Z | limb/apps.py | jzftran/InterMetalDB | e823e274aea51f62a4acd7f8c4b1363615d85a26 | [
"MIT"
] | null | null | null | limb/apps.py | jzftran/InterMetalDB | e823e274aea51f62a4acd7f8c4b1363615d85a26 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class LimbConfig(AppConfig):
name = 'limb'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ada907e1aea234376f6f1d91b850dcb07a9191d9 | 104 | py | Python | _data_source/process.py | ThomasSugar/asurobotics | 5e71ad743adc6813b08f26c83ee8fc6e6398074a | [
"MIT"
] | null | null | null | _data_source/process.py | ThomasSugar/asurobotics | 5e71ad743adc6813b08f26c83ee8fc6e6398074a | [
"MIT"
] | null | null | null | _data_source/process.py | ThomasSugar/asurobotics | 5e71ad743adc6813b08f26c83ee8fc6e6398074a | [
"MIT"
] | 1 | 2022-02-01T21:47:06.000Z | 2022-02-01T21:47:06.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 9 15:09:36 2016
@author: daukes
"""
import pic_scaling | 13 | 35 | 0.625 | 17 | 104 | 3.764706 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.192308 | 104 | 8 | 36 | 13 | 0.619048 | 0.721154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ada924681c65794fb71029fc726ad5e5c9c28da5 | 3,365 | py | Python | src/utils/optim/schedulers.py | andompesta/omnitext | da6467b6cd9086b2278f7a1560596261f125800e | [
"MIT"
] | null | null | null | src/utils/optim/schedulers.py | andompesta/omnitext | da6467b6cd9086b2278f7a1560596261f125800e | [
"MIT"
] | null | null | null | src/utils/optim/schedulers.py | andompesta/omnitext | da6467b6cd9086b2278f7a1560596261f125800e | [
"MIT"
] | null | null | null | from torch.optim.lr_scheduler import LambdaLR
from torch.optim.optimizer import Optimizer
import math
def get_constant_scheduler(optim: Optimizer, last_epoch=-1):
"""
get a constant scheduler of the lr
"""
return LambdaLR(optim, lr_lambda=lambda _: 1., last_epoch=last_epoch)
def get_constant_scheduler... | 46.736111 | 117 | 0.601486 | 421 | 3,365 | 4.52019 | 0.142518 | 0.099317 | 0.129795 | 0.080399 | 0.731477 | 0.71361 | 0.711508 | 0.678928 | 0.678928 | 0.604834 | 0 | 0.017264 | 0.311441 | 3,365 | 72 | 118 | 46.736111 | 0.804057 | 0.168202 | 0 | 0.586957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195652 | false | 0 | 0.065217 | 0 | 0.565217 | 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 | 1 | 0 | 0 | 4 |
adac4b3c8b343361c28286eea1e4646a8013e8e3 | 681 | py | Python | sebex/release/git.py | membraneframework/sebex | e24cb0319c55dabdbe7337f23e797f59f83b803e | [
"Apache-2.0"
] | 1 | 2021-08-29T00:33:40.000Z | 2021-08-29T00:33:40.000Z | sebex/release/git.py | membraneframework/sebex | e24cb0319c55dabdbe7337f23e797f59f83b803e | [
"Apache-2.0"
] | 11 | 2020-06-05T14:47:39.000Z | 2021-11-24T15:53:46.000Z | sebex/release/git.py | membraneframework/sebex | e24cb0319c55dabdbe7337f23e797f59f83b803e | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from github.PullRequest import PullRequest
from sebex.release.state import ProjectState
def release_branch_name(project: ProjectState) -> str:
return f'release/{release_tag_name(project)}'
def release_tag_name(project: ProjectState) -> str:
return f'v{project.to_version}'
def... | 29.608696 | 90 | 0.723935 | 82 | 681 | 5.804878 | 0.341463 | 0.092437 | 0.138655 | 0.176471 | 0.313025 | 0.228992 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182085 | 681 | 22 | 91 | 30.954545 | 0.854578 | 0 | 0 | 0 | 0 | 0 | 0.151248 | 0.113069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.25 | 0.333333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
adbb79250532c91fb4e44108733f1236465f6350 | 969 | py | Python | auths/models.py | chenbin743/OpsSystem | 7427627aef8c3886b7d5bd8f2d8fc9215c0a1a19 | [
"MIT"
] | 1 | 2018-11-30T09:06:32.000Z | 2018-11-30T09:06:32.000Z | auths/models.py | chenbin743/OpsSystem | 7427627aef8c3886b7d5bd8f2d8fc9215c0a1a19 | [
"MIT"
] | null | null | null | auths/models.py | chenbin743/OpsSystem | 7427627aef8c3886b7d5bd8f2d8fc9215c0a1a19 | [
"MIT"
] | 1 | 2018-11-30T09:06:34.000Z | 2018-11-30T09:06:34.000Z | from __future__ import unicode_literals
from django.db import models
class DatabaseAuthInfoModel(models.Model):
username=models.CharField(max_length=50)
accesshost=models.CharField(max_length=100)
accessdb=models.CharField(max_length=100)
accessauth=models.CharField(max_length=200)
owner=models.C... | 29.363636 | 47 | 0.78225 | 124 | 969 | 5.895161 | 0.314516 | 0.287278 | 0.344733 | 0.459644 | 0.716826 | 0.451436 | 0.451436 | 0.451436 | 0.328317 | 0.328317 | 0 | 0.042204 | 0.119711 | 969 | 32 | 48 | 30.28125 | 0.814771 | 0 | 0 | 0.333333 | 0 | 0 | 0.035197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
adc169bf56e4a4df1dd9757dc79860e106341329 | 239 | py | Python | gamefixes/700600.py | manueliglesiasgarcia/protonfixes | d676b6bf39f6e4268b4791d3d71c6d74e2127121 | [
"BSD-2-Clause"
] | 54 | 2019-06-21T22:03:45.000Z | 2022-03-20T19:24:36.000Z | gamefixes/700600.py | manueliglesiasgarcia/protonfixes | d676b6bf39f6e4268b4791d3d71c6d74e2127121 | [
"BSD-2-Clause"
] | 21 | 2020-06-13T22:49:18.000Z | 2022-03-20T08:28:39.000Z | gamefixes/700600.py | manueliglesiasgarcia/protonfixes | d676b6bf39f6e4268b4791d3d71c6d74e2127121 | [
"BSD-2-Clause"
] | 53 | 2019-09-11T15:23:25.000Z | 2022-03-20T08:18:49.000Z | """ Game fix for Evil Genius 2
"""
#pylint: disable=C0103
from protonfixes import util
def main():
""" Launcher workaround
"""
# Fixes the startup process.
util.replace_command('eg2.exe', '../bin/evilgenius_vulkan.exe')
| 18.384615 | 67 | 0.665272 | 30 | 239 | 5.233333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031088 | 0.192469 | 239 | 12 | 68 | 19.916667 | 0.782383 | 0.41841 | 0 | 0 | 0 | 0 | 0.282258 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ade118d6d2e3673ca39d8f7acff2b44ca637b476 | 105 | py | Python | practicity/progressTracker/apps.py | pkhurt/practicity | e638a67f091696de15d2852d26f310e3556bdf79 | [
"MIT"
] | null | null | null | practicity/progressTracker/apps.py | pkhurt/practicity | e638a67f091696de15d2852d26f310e3556bdf79 | [
"MIT"
] | null | null | null | practicity/progressTracker/apps.py | pkhurt/practicity | e638a67f091696de15d2852d26f310e3556bdf79 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ProgresstrackerConfig(AppConfig):
name = 'progressTracker'
| 17.5 | 39 | 0.790476 | 10 | 105 | 8.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 40 | 21 | 0.922222 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
bc317ba55b6337dc5a1a7d9376784c7c54d02056 | 161 | py | Python | VENV/entorno_virtual/Lib/site-packages/heroku/compat.py | jsaavedra132/Proyecto-Analisis-de-algoritmos | b06b82091337989989b1123641ce94867c5b2283 | [
"MIT"
] | 29 | 2015-06-10T14:47:04.000Z | 2022-03-24T05:30:13.000Z | VENV/entorno_virtual/Lib/site-packages/heroku/compat.py | jsaavedra132/Proyecto-Analisis-de-algoritmos | b06b82091337989989b1123641ce94867c5b2283 | [
"MIT"
] | 11 | 2019-12-26T17:21:03.000Z | 2022-03-21T22:17:07.000Z | VENV/entorno_virtual/Lib/site-packages/heroku/compat.py | jsaavedra132/Proyecto-Analisis-de-algoritmos | b06b82091337989989b1123641ce94867c5b2283 | [
"MIT"
] | 23 | 2015-02-16T03:14:47.000Z | 2021-09-03T09:26:36.000Z | # -*- coding: utf-8 -*-
"""
heroku.compat
~~~~~~~~~~~~~
Compatiblity for heroku.py.
"""
try:
import json
except ImportError:
import simplejson as json | 12.384615 | 29 | 0.602484 | 18 | 161 | 5.388889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.192547 | 161 | 13 | 29 | 12.384615 | 0.738462 | 0.490683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
70b7a096aca40bbce6fd1672a8d25e53bbf8ecbd | 45 | py | Python | store/api/handlers/base/__init__.py | alexadastra/backendschool2021 | 9b51c70f1f7a9b5bec032c8b62ff35a33f614c67 | [
"MIT"
] | null | null | null | store/api/handlers/base/__init__.py | alexadastra/backendschool2021 | 9b51c70f1f7a9b5bec032c8b62ff35a33f614c67 | [
"MIT"
] | null | null | null | store/api/handlers/base/__init__.py | alexadastra/backendschool2021 | 9b51c70f1f7a9b5bec032c8b62ff35a33f614c67 | [
"MIT"
] | null | null | null | from .base import BaseView
BASE = (BaseView)
| 15 | 26 | 0.755556 | 6 | 45 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 45 | 2 | 27 | 22.5 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
70c701130f5764cc349bb52031cdb7d9b8aa2c00 | 69 | py | Python | data/make_plot.py | pcdshub/motor_watch | 2bcfb271ec7f05dbd2c79af5426be8edfe1f591b | [
"BSD-3-Clause-LBNL"
] | null | null | null | data/make_plot.py | pcdshub/motor_watch | 2bcfb271ec7f05dbd2c79af5426be8edfe1f591b | [
"BSD-3-Clause-LBNL"
] | null | null | null | data/make_plot.py | pcdshub/motor_watch | 2bcfb271ec7f05dbd2c79af5426be8edfe1f591b | [
"BSD-3-Clause-LBNL"
] | 2 | 2019-06-04T17:17:30.000Z | 2019-06-04T23:56:49.000Z | from status_plotter import status_plotter
plotter = status_plotter()
| 23 | 41 | 0.855072 | 9 | 69 | 6.222222 | 0.444444 | 0.696429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 69 | 2 | 42 | 34.5 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
70c8c310b0174a473ef925186f6e7225d2cc49b4 | 391 | py | Python | mysayhello/forms.py | chyuhung/sayhello | 12c1d6ba7ba707a3d126b0e598eb2319fb93b116 | [
"MIT"
] | null | null | null | mysayhello/forms.py | chyuhung/sayhello | 12c1d6ba7ba707a3d126b0e598eb2319fb93b116 | [
"MIT"
] | null | null | null | mysayhello/forms.py | chyuhung/sayhello | 12c1d6ba7ba707a3d126b0e598eb2319fb93b116 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import ValuesView
from flask_wtf import FlaskForm
from wtforms import StringField,SubmitField,TextField
from wtforms.validators import DataRequired,Length
class hello(FlaskForm):
name=StringField('Name',validators=[DataRequired(),Length(1,20)])
body=TextField('Message',vali... | 35.545455 | 71 | 0.769821 | 46 | 391 | 6.521739 | 0.565217 | 0.18 | 0.186667 | 0.193333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.099744 | 391 | 11 | 72 | 35.545455 | 0.829545 | 0.053708 | 0 | 0 | 0 | 0 | 0.04607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
70e20a70074d1a197fbabf550f87d82644af3a55 | 4,828 | py | Python | dynamics_functions.py | jonnyhyman/SuccessiveConvexification | 985f87abb9a26eaaad7826b7d7de34f1e6ae3944 | [
"MIT"
] | 6 | 2019-02-03T18:47:48.000Z | 2021-05-02T20:27:27.000Z | dynamics_functions.py | GuodongZhu/SuccessiveConvexification | 985f87abb9a26eaaad7826b7d7de34f1e6ae3944 | [
"MIT"
] | null | null | null | dynamics_functions.py | GuodongZhu/SuccessiveConvexification | 985f87abb9a26eaaad7826b7d7de34f1e6ae3944 | [
"MIT"
] | 6 | 2019-02-03T18:47:50.000Z | 2022-02-25T08:59:59.000Z | """ This was generated by dynamics_generation.py """
from numpy import sqrt
import numpy as np
class Dynamics:
def set_parameters(self, parms):
for name, val in parms.items():
setattr(self, name, val)
def A(self, x, u, s):
m, r0, r1, r2, v0, v1, v2, q0, q1, q2, q3, w0, w1, w2 = x... | 38.015748 | 127 | 0.416114 | 1,224 | 4,828 | 1.637255 | 0.064542 | 0.035928 | 0.017964 | 0.017964 | 0.641717 | 0.522455 | 0.452595 | 0.429142 | 0.402196 | 0.401198 | 0 | 0.265734 | 0.289147 | 4,828 | 126 | 128 | 38.31746 | 0.318182 | 0.009114 | 0 | 0.159292 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035398 | false | 0 | 0.017699 | 0 | 0.088496 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cb45b204a7491a0ea91fb63f1717f7425fbc1a2c | 144 | py | Python | msgvis/apps/datatable/__init__.py | hds-lab/textvis-drg | bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe | [
"MIT"
] | 10 | 2015-12-04T07:43:11.000Z | 2021-01-23T00:44:56.000Z | msgvis/apps/datatable/__init__.py | hds-lab/textvis-drg | bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe | [
"MIT"
] | 200 | 2015-02-11T05:41:57.000Z | 2015-11-13T03:47:25.000Z | msgvis/apps/datatable/__init__.py | hds-lab/textvis-drg | bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe | [
"MIT"
] | 6 | 2015-10-02T18:01:09.000Z | 2021-01-23T00:44:58.000Z | """
The Datatable app is responsible for generating and returning
visualization data for specific configurations of dimensions and filters.
"""
| 28.8 | 73 | 0.8125 | 18 | 144 | 6.5 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 144 | 4 | 74 | 36 | 0.943548 | 0.9375 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cb5f0edff4bc58a62b07292aaf3ad10fc296dfdb | 613 | py | Python | tensorflow/test/test_all.py | Bhaskers-Blu-Org2/O-CNN | dec3734e5a6cf83a0284645f57434b89188d1e47 | [
"MIT"
] | null | null | null | tensorflow/test/test_all.py | Bhaskers-Blu-Org2/O-CNN | dec3734e5a6cf83a0284645f57434b89188d1e47 | [
"MIT"
] | null | null | null | tensorflow/test/test_all.py | Bhaskers-Blu-Org2/O-CNN | dec3734e5a6cf83a0284645f57434b89188d1e47 | [
"MIT"
] | 1 | 2020-07-30T11:58:37.000Z | 2020-07-30T11:58:37.000Z | import os
import tensorflow as tf
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
from test_octree2col import Octree2ColTest
from test_octree_conv import OctreeConvTest
from test_octree_deconv import OctreeDeconvTest
from test_octree_property import OctreePropertyTest
from test_octree_search import Octr... | 34.055556 | 62 | 0.862969 | 82 | 613 | 6.109756 | 0.487805 | 0.143713 | 0.223553 | 0.067864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008993 | 0.092985 | 613 | 18 | 63 | 34.055556 | 0.892086 | 0 | 0 | 0 | 0 | 0 | 0.047231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.733333 | 0 | 0.733333 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cb7ee997dd459d8fd2544957d37ae4820f23a06e | 1,731 | py | Python | main/models.py | WenGeYJ/Mail-Master-in-School | 040585569e5fe0bea9b6f93d6e4f5ed14e78da62 | [
"MIT"
] | null | null | null | main/models.py | WenGeYJ/Mail-Master-in-School | 040585569e5fe0bea9b6f93d6e4f5ed14e78da62 | [
"MIT"
] | null | null | null | main/models.py | WenGeYJ/Mail-Master-in-School | 040585569e5fe0bea9b6f93d6e4f5ed14e78da62 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
from django.db import models
import django.utils.timezone as timezone
class Book(models.Model):
bookID = models.BigIntegerField()
bookName = models.CharField(max_length=100)
pictureUrl... | 32.660377 | 67 | 0.734835 | 202 | 1,731 | 6.188119 | 0.361386 | 0.204 | 0.2448 | 0.3264 | 0.4576 | 0.232 | 0.144 | 0.144 | 0.0928 | 0 | 0 | 0.028689 | 0.154246 | 1,731 | 53 | 68 | 32.660377 | 0.825137 | 0.070479 | 0 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cbacb87aa4ca21122307693781644da1a4d00e0a | 373 | py | Python | refdata/repo/__init__.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | null | null | null | refdata/repo/__init__.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | 5 | 2021-01-27T22:17:19.000Z | 2021-12-14T17:13:58.000Z | refdata/repo/__init__.py | Aahbree/reference-data-repository | f318c0532aaf941ec4f00c8375c9dea45c56f186 | [
"MIT"
] | 5 | 2021-12-08T02:33:44.000Z | 2021-12-13T03:21:51.000Z | # This file is part of the Reference Data Repository (refdata).
#
# Copyright (C) 2021 New York University.
#
# refdata is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.
from refdata.repo.manager import RepositoryManager # noqa: F401
fr... | 37.3 | 78 | 0.766756 | 57 | 373 | 5.017544 | 0.736842 | 0.034965 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.168901 | 373 | 9 | 79 | 41.444444 | 0.890323 | 0.699732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cbc2de4936eaeaf879ceafd86adcd7699d621eec | 198 | py | Python | glacier_lengths/__init__.py | erikmannerfelt/glacier_lengths | bb0e443b5df5461720e87ab7ba54e925654dfdb9 | [
"Apache-2.0"
] | null | null | null | glacier_lengths/__init__.py | erikmannerfelt/glacier_lengths | bb0e443b5df5461720e87ab7ba54e925654dfdb9 | [
"Apache-2.0"
] | 1 | 2021-03-03T08:59:12.000Z | 2021-03-03T08:59:12.000Z | glacier_lengths/__init__.py | erikmannerfelt/glacier_lengths | bb0e443b5df5461720e87ab7ba54e925654dfdb9 | [
"Apache-2.0"
] | null | null | null | """Tools to statistically measure glacier lengths."""
from glacier_lengths.core import (buffer_centerline, cut_centerlines,
measure_lengths)
__version__ = "0.0.4"
| 33 | 69 | 0.661616 | 21 | 198 | 5.857143 | 0.761905 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.252525 | 198 | 5 | 70 | 39.6 | 0.810811 | 0.237374 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cbd28fb5ad6366e4af1bba54070cfde92ff5ab3f | 128 | py | Python | src/asm/workflow/interfaces.py | ctheune/assembly-cms | 20e000373fc30d9a14cb5dc882499b5eed1d86ee | [
"ZPL-2.1"
] | null | null | null | src/asm/workflow/interfaces.py | ctheune/assembly-cms | 20e000373fc30d9a14cb5dc882499b5eed1d86ee | [
"ZPL-2.1"
] | null | null | null | src/asm/workflow/interfaces.py | ctheune/assembly-cms | 20e000373fc30d9a14cb5dc882499b5eed1d86ee | [
"ZPL-2.1"
] | null | null | null |
class PublishedEvent(object):
def __init__(self, draft, public):
self.draft = draft
self.public = public
| 16 | 38 | 0.632813 | 14 | 128 | 5.5 | 0.571429 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273438 | 128 | 7 | 39 | 18.285714 | 0.827957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1db79c0d06feb0cef8251ec4424a67bc49edaa27 | 10,807 | py | Python | 40_Modeling_blood_cell_line.py | amacaluso/Bioinformatics_Machine_Learning | d9f4a447c657ad5ea0b83fbd60e9f953f835117f | [
"Apache-2.0"
] | null | null | null | 40_Modeling_blood_cell_line.py | amacaluso/Bioinformatics_Machine_Learning | d9f4a447c657ad5ea0b83fbd60e9f953f835117f | [
"Apache-2.0"
] | null | null | null | 40_Modeling_blood_cell_line.py | amacaluso/Bioinformatics_Machine_Learning | d9f4a447c657ad5ea0b83fbd60e9f953f835117f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 30 11:27:55 2017
@author: Antonio
"""
exec(open("Utils.py").read(), globals())
exec(open("01_Importazione_dati_e_moduli.py").read(), globals())
# exec(open('03_Descriptive.py').read(), globals())
# exec(open("05_hypothesis_test.py").read(), globals())
exec(open("10_PCA.p... | 30.103064 | 89 | 0.478209 | 1,149 | 10,807 | 4.240209 | 0.173194 | 0.022578 | 0.039409 | 0.04803 | 0.771141 | 0.740353 | 0.703612 | 0.703612 | 0.679598 | 0.679598 | 0 | 0.017949 | 0.319515 | 10,807 | 358 | 90 | 30.187151 | 0.644547 | 0.087166 | 0 | 0.688776 | 0 | 0 | 0.07943 | 0.017094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015306 | 0 | 0.015306 | 0.056122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1dbb3c3d9a90bee5420ac17b80a9d6b692b95f35 | 35 | py | Python | tests/feeds/__init__.py | tellor-io/telliot-feed-examples | 3f825c90ad372f42c89eee0f5b54250f22ec0728 | [
"MIT"
] | 7 | 2021-11-10T21:14:57.000Z | 2022-03-26T07:27:23.000Z | tests/feeds/__init__.py | tellor-io/telliot-feed-examples | 3f825c90ad372f42c89eee0f5b54250f22ec0728 | [
"MIT"
] | 86 | 2021-11-09T13:12:58.000Z | 2022-03-31T17:28:56.000Z | tests/feeds/__init__.py | tellor-io/telliot-feed-examples | 3f825c90ad372f42c89eee0f5b54250f22ec0728 | [
"MIT"
] | 2 | 2021-11-27T12:51:22.000Z | 2022-03-12T16:38:00.000Z | """Tests for example datafeeds."""
| 17.5 | 34 | 0.685714 | 4 | 35 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.774194 | 0.8 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1dcb7dff884795064755cc9619deccf4d5788d12 | 172 | py | Python | aula07/ex018.py | avacorreia/Exercicio-Curso-em-Video-Pyton-Modulo1 | f04a3b0bc360318b1420b23df3325908220773aa | [
"MIT"
] | null | null | null | aula07/ex018.py | avacorreia/Exercicio-Curso-em-Video-Pyton-Modulo1 | f04a3b0bc360318b1420b23df3325908220773aa | [
"MIT"
] | null | null | null | aula07/ex018.py | avacorreia/Exercicio-Curso-em-Video-Pyton-Modulo1 | f04a3b0bc360318b1420b23df3325908220773aa | [
"MIT"
] | null | null | null | dias = int(input('Quantos dias: '))
km = float(input('Quantos km: '))
preco = dias * 60 + km * 0.15
if(dias == 0){
print('O valor a pagar é de : {:.2f} '.format(preco))
}
| 21.5 | 53 | 0.581395 | 29 | 172 | 3.448276 | 0.689655 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05036 | 0.19186 | 172 | 7 | 54 | 24.571429 | 0.669065 | 0 | 0 | 0 | 0 | 0 | 0.327485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1dcf6669971acb0928ef69251447a709810a9f66 | 97 | py | Python | django_html_demo/info_sys/info_sys/apps/Information/apps.py | RandolphCYG/husky_pywork | 25616d071bcd489fed40584bf63cf9aa12f4f435 | [
"BSD-3-Clause"
] | null | null | null | django_html_demo/info_sys/info_sys/apps/Information/apps.py | RandolphCYG/husky_pywork | 25616d071bcd489fed40584bf63cf9aa12f4f435 | [
"BSD-3-Clause"
] | null | null | null | django_html_demo/info_sys/info_sys/apps/Information/apps.py | RandolphCYG/husky_pywork | 25616d071bcd489fed40584bf63cf9aa12f4f435 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class InformationConfig(AppConfig):
name = 'Information'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1ddaf21e25807a90b5966b4623719e288cc73888 | 106 | py | Python | friendly_captcha/apps.py | dev-love/django-friendly-captcha | 9da5534ce2120b048777ed058adff2892fb9c015 | [
"BSD-3-Clause"
] | 1 | 2021-05-03T14:32:40.000Z | 2021-05-03T14:32:40.000Z | friendly_captcha/apps.py | FriendlyCaptcha/django-friendly-captcha | 6b85d4582bce4e588d3cee106aac07814c78f71f | [
"BSD-3-Clause"
] | 1 | 2021-03-10T13:52:52.000Z | 2021-03-10T14:15:46.000Z | friendly_captcha/apps.py | FriendlyCaptcha/django-friendly-captcha | 6b85d4582bce4e588d3cee106aac07814c78f71f | [
"BSD-3-Clause"
] | 1 | 2021-05-03T14:29:53.000Z | 2021-05-03T14:29:53.000Z | from django.apps import AppConfig
class FriendlyCaptchaConfig(AppConfig):
name = 'friendly_captcha'
| 17.666667 | 39 | 0.792453 | 11 | 106 | 7.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 106 | 5 | 40 | 21.2 | 0.912088 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1ddc08ede96a741ee9aef89a5da5e134a46f2868 | 342 | py | Python | DatastructureAndAlgorithms/12_Trees/1_binary_tree_implementation.py | sabyasachisome/DatastructureAndAlgorithms | 5c810bc1b1f31a856d9331673305c0021453c572 | [
"MIT"
] | null | null | null | DatastructureAndAlgorithms/12_Trees/1_binary_tree_implementation.py | sabyasachisome/DatastructureAndAlgorithms | 5c810bc1b1f31a856d9331673305c0021453c572 | [
"MIT"
] | null | null | null | DatastructureAndAlgorithms/12_Trees/1_binary_tree_implementation.py | sabyasachisome/DatastructureAndAlgorithms | 5c810bc1b1f31a856d9331673305c0021453c572 | [
"MIT"
] | null | null | null | class Node:
def __init__(self, data):
self.data= data
self.left= None
self.right= None
"""
4
/ \
5 6
/ \ / \
7 None None None
/ \
None None
"""
root= Node(4)
root.left=5
root.rig... | 19 | 30 | 0.380117 | 37 | 342 | 3.405405 | 0.378378 | 0.253968 | 0.285714 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048485 | 0.517544 | 342 | 18 | 31 | 19 | 0.715152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1df49021937d058f4c33644aff8649cd80c9ee16 | 43 | py | Python | order-matching-engine/v0/order_matching_engine/config.py | prajwaldp/microservices-system-design | 4c705226592ed0a6e0bf6e68d024bf151b67d9cd | [
"MIT"
] | 2 | 2020-12-28T09:13:26.000Z | 2020-12-31T13:38:51.000Z | order-matching-engine/v0/order_matching_engine/config.py | prajwaldp/microservices-system-design | 4c705226592ed0a6e0bf6e68d024bf151b67d9cd | [
"MIT"
] | null | null | null | order-matching-engine/v0/order_matching_engine/config.py | prajwaldp/microservices-system-design | 4c705226592ed0a6e0bf6e68d024bf151b67d9cd | [
"MIT"
] | null | null | null | PRICE_POINT_MIN = 1
PRICE_POINT_MAX = 65535 | 21.5 | 23 | 0.837209 | 8 | 43 | 4 | 0.75 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.116279 | 43 | 2 | 23 | 21.5 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
381db67c87b2137aa9eb12cf4219861f89550e7d | 198 | py | Python | xcx_interface/urls.py | linjingheng-dev/python_service | c44d92a4c82f52228617dbabdbb1a57b6ad6de57 | [
"Apache-2.0"
] | 8 | 2021-08-08T07:47:31.000Z | 2021-08-17T12:09:32.000Z | xcx_interface/urls.py | linjingheng-dev/python_service | c44d92a4c82f52228617dbabdbb1a57b6ad6de57 | [
"Apache-2.0"
] | 1 | 2021-07-31T10:16:19.000Z | 2021-07-31T10:16:19.000Z | xcx_interface/urls.py | linjingheng-dev/python_service | c44d92a4c82f52228617dbabdbb1a57b6ad6de57 | [
"Apache-2.0"
] | 1 | 2021-12-01T15:32:47.000Z | 2021-12-01T15:32:47.000Z | from django.urls import include, path
urlpatterns = [
# 系统逻辑
path('system/', include('xcx_interface.route.system_r')),
# 菜单业务
path('menu/', include('xcx_interface.route.menu_r'))
]
| 22 | 61 | 0.666667 | 25 | 198 | 5.12 | 0.6 | 0.15625 | 0.296875 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171717 | 198 | 8 | 62 | 24.75 | 0.780488 | 0.045455 | 0 | 0 | 0 | 0 | 0.354839 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
38307b0e278f18873245fbd388c7858a43570287 | 93 | py | Python | tradingdb/ipfs/apps.py | vaporyorg/pm-trading-db | 097f94c630a41da2f9015fd29f05a433fb0dacb0 | [
"MIT"
] | 11 | 2017-06-23T15:35:10.000Z | 2018-04-27T06:11:25.000Z | tradingdb/ipfs/apps.py | vaporyorg/pm-trading-db | 097f94c630a41da2f9015fd29f05a433fb0dacb0 | [
"MIT"
] | 42 | 2018-01-17T15:46:33.000Z | 2018-05-08T08:13:17.000Z | tradingdb/ipfs/apps.py | vaporyorg/pm-trading-db | 097f94c630a41da2f9015fd29f05a433fb0dacb0 | [
"MIT"
] | 12 | 2017-07-03T15:51:41.000Z | 2018-03-25T17:31:54.000Z | from django.apps import AppConfig
class IpfsConfig(AppConfig):
name = 'tradingdb.ipfs'
| 15.5 | 33 | 0.752688 | 11 | 93 | 6.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
697611acaf8b4ce6ecf2807f642f13399e1c2bec | 170 | py | Python | hata/discord/sticker/__init__.py | Multiface24111/hata | cd28f9ef158e347363669cc8d1d49db0ff41aba0 | [
"0BSD"
] | 173 | 2019-06-14T20:25:00.000Z | 2022-03-21T19:36:10.000Z | hata/discord/sticker/__init__.py | Tari-dev/hata | a5c3199c845858f997af3b0b2c18770fdc691897 | [
"0BSD"
] | 52 | 2020-01-03T17:05:14.000Z | 2022-03-31T11:39:50.000Z | hata/discord/sticker/__init__.py | Tari-dev/hata | a5c3199c845858f997af3b0b2c18770fdc691897 | [
"0BSD"
] | 47 | 2019-11-09T08:46:45.000Z | 2022-03-31T14:33:34.000Z | from .preinstanced import *
from .sticker import *
from .sticker_pack import *
__all__ = (
*sticker.__all__,
*sticker_pack.__all__,
*preinstanced.__all__,
)
| 17 | 27 | 0.705882 | 18 | 170 | 5.666667 | 0.333333 | 0.196078 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188235 | 170 | 9 | 28 | 18.888889 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
699265dd153fa839b75bbed4626d3638c131802e | 522 | py | Python | Experiments/Nate/DjangoRewrite/DjangoRewrite/song/views.py | ntuckertriplet/CS309 | fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5 | [
"Apache-2.0"
] | 2 | 2020-04-27T20:20:53.000Z | 2020-04-27T22:18:53.000Z | Experiments/Nate/DjangoRewrite/DjangoRewrite/song/views.py | ntuckertriplet/CS309 | fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5 | [
"Apache-2.0"
] | 7 | 2021-03-19T02:32:03.000Z | 2021-09-22T18:56:37.000Z | Experiments/Nate/DjangoRewrite/DjangoRewrite/song/views.py | ntuckertriplet/CS309 | fa0160d26d7ee9c78074dc86e13d7f9fd835e8c5 | [
"Apache-2.0"
] | 1 | 2020-04-27T20:21:59.000Z | 2020-04-27T20:21:59.000Z | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
# Create your views here.
from django.views import View
class DefaultView(View):
def get(self):
pass
@login_required
class SearchBySongView(View):
def get(self):
pass
@login_required
class Search... | 15.352941 | 57 | 0.699234 | 65 | 522 | 5.538462 | 0.384615 | 0.180556 | 0.138889 | 0.194444 | 0.45 | 0.4 | 0.4 | 0.4 | 0 | 0 | 0 | 0 | 0.222222 | 522 | 34 | 58 | 15.352941 | 0.8867 | 0.044061 | 0 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0.227273 | 0.136364 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
699cd66d4dc7c71c052e8331b4bf504341310305 | 112 | py | Python | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/python/Exercicio-8-Positivo-Negativo-Nulo.py | Ramo-UERJ/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | null | null | null | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/python/Exercicio-8-Positivo-Negativo-Nulo.py | Ramo-UERJ/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | 1 | 2020-07-29T13:23:25.000Z | 2020-07-29T13:23:25.000Z | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/python/Exercicio-8-Positivo-Negativo-Nulo.py | ieee-uerj/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | null | null | null | x = int(input())
if (x > 0):
print("positivo")
elif (x < 0):
print("negativo")
else:
print("nulo")
| 12.444444 | 21 | 0.517857 | 16 | 112 | 3.625 | 0.6875 | 0.068966 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.25 | 112 | 8 | 22 | 14 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
69d4b044cd72edf447bcbf2855c51643ac369483 | 168 | py | Python | test/data/python/class.py | Submitty/tree-analyzer | 1d96305fc41a1fb860386dbcb7b98666ba2bd3ac | [
"BSD-3-Clause"
] | null | null | null | test/data/python/class.py | Submitty/tree-analyzer | 1d96305fc41a1fb860386dbcb7b98666ba2bd3ac | [
"BSD-3-Clause"
] | null | null | null | test/data/python/class.py | Submitty/tree-analyzer | 1d96305fc41a1fb860386dbcb7b98666ba2bd3ac | [
"BSD-3-Clause"
] | null | null | null | from __future__ import barry_as_FLUFL
class Foo:
def __init__(self):
pass
def bar(self):
pass
@staticmethod
def baz():
pass
def foo():
pass
| 9.333333 | 37 | 0.636905 | 23 | 168 | 4.217391 | 0.652174 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279762 | 168 | 17 | 38 | 9.882353 | 0.801653 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0.363636 | 0.090909 | 0 | 0.545455 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
69f11f56d4c3dee6a1d4e4ee4e7025c66fde8f92 | 107 | py | Python | gemtown/advertisings/apps.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | null | null | null | gemtown/advertisings/apps.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | 5 | 2020-09-04T20:13:39.000Z | 2022-02-17T22:03:33.000Z | gemtown/advertisings/apps.py | doramong0926/gemtown | 2c39284e3c68f0cc11994bed0ee2abaad0ea06b6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AdvertisingsConfig(AppConfig):
name = 'gemtown.advertisings'
| 17.833333 | 36 | 0.785047 | 11 | 107 | 7.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140187 | 107 | 5 | 37 | 21.4 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0.186916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
385ddace29417a054cc636acb1eb3275ffdc810b | 4,726 | py | Python | tests/test_construct.py | yyyyyp/libplf | fb73e3c55277e3e94c63e596513b188fedadcf35 | [
"MIT"
] | 2 | 2020-06-10T11:38:50.000Z | 2020-06-11T10:22:39.000Z | tests/test_construct.py | yyyyyp/libplf | fb73e3c55277e3e94c63e596513b188fedadcf35 | [
"MIT"
] | null | null | null | tests/test_construct.py | yyyyyp/libplf | fb73e3c55277e3e94c63e596513b188fedadcf35 | [
"MIT"
] | 3 | 2020-06-11T10:25:02.000Z | 2020-06-12T03:01:34.000Z | from pytest import raises
from libplf import plf
from libplf import piece
from libplf import point
from libplf import vector
class Test:
def test(self):
with raises(AssertionError):
plf(*self.args())
def args(self):
return []
class Test_1_1(Test):
def args(self):
ret... | 20.547826 | 57 | 0.391452 | 698 | 4,726 | 2.491404 | 0.067335 | 0.063255 | 0.048304 | 0.234618 | 0.759632 | 0.717079 | 0.682001 | 0.642323 | 0.641748 | 0.577918 | 0 | 0.139268 | 0.410495 | 4,726 | 229 | 58 | 20.637555 | 0.484925 | 0 | 0 | 0.468571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005714 | 1 | 0.165714 | false | 0 | 0.028571 | 0.16 | 0.497143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
38e3c27270a4f94a82dfeee43d740c0a99c25d5a | 253 | py | Python | bank_backend/core/admin.py | Pablo1785/wbb | fc7b665669a40740b65307f8c9d3061532aded52 | [
"BSD-3-Clause"
] | null | null | null | bank_backend/core/admin.py | Pablo1785/wbb | fc7b665669a40740b65307f8c9d3061532aded52 | [
"BSD-3-Clause"
] | null | null | null | bank_backend/core/admin.py | Pablo1785/wbb | fc7b665669a40740b65307f8c9d3061532aded52 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import Wallet, SubAccount, BankDeposit, Transaction
# Register your models here.
admin.site.register(Wallet)
admin.site.register(SubAccount)
admin.site.register(BankDeposit)
admin.site.register(Transaction) | 31.625 | 64 | 0.83004 | 32 | 253 | 6.5625 | 0.4375 | 0.171429 | 0.32381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079051 | 253 | 8 | 65 | 31.625 | 0.901288 | 0.102767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c7f9f8825068f4a69db010db2e341b7b17fdb12b | 143 | py | Python | runners/cpp/main.py | MBRUN138/open-contest | 2d0f4f0db3da5b59a6e50c8ee3775fba1bf6297c | [
"Apache-2.0"
] | null | null | null | runners/cpp/main.py | MBRUN138/open-contest | 2d0f4f0db3da5b59a6e50c8ee3775fba1bf6297c | [
"Apache-2.0"
] | 49 | 2019-04-02T09:35:40.000Z | 2021-03-20T17:15:12.000Z | runners/cpp/main.py | MBRUN138/open-contest | 2d0f4f0db3da5b59a6e50c8ee3775fba1bf6297c | [
"Apache-2.0"
] | 22 | 2019-03-29T18:07:06.000Z | 2021-02-24T19:49:50.000Z | import sys
import runner
runner.runCode(
int(sys.argv[1]),
int(sys.argv[2]),
"g++ -std=c++17 -O2 code.cpp -o code",
"./code"
) | 15.888889 | 42 | 0.566434 | 24 | 143 | 3.375 | 0.666667 | 0.148148 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044643 | 0.216783 | 143 | 9 | 43 | 15.888889 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0.284722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a0a3f9d0bbf56f3f1dd379bc62b811f5be3a0ea | 19,901 | py | Python | models.py | msf235/network_analysis | 650498a7ac882bc8c7a9dcad05c3576f38129ade | [
"MIT"
] | null | null | null | models.py | msf235/network_analysis | 650498a7ac882bc8c7a9dcad05c3576f38129ade | [
"MIT"
] | null | null | null | models.py | msf235/network_analysis | 650498a7ac882bc8c7a9dcad05c3576f38129ade | [
"MIT"
] | null | null | null | from typing import Union, List, Callable, Optional
import torch
from torch import Tensor
from torch import nn
import math
class FeedForward(nn.Module):
"""
Class for feedforward neural network model. Takes a list of pytorch tensors holding the weight initializations and
ties these together into a trainable... | 44.923251 | 124 | 0.637355 | 2,343 | 19,901 | 5.254802 | 0.093043 | 0.032407 | 0.025016 | 0.013645 | 0.768681 | 0.739441 | 0.723034 | 0.711745 | 0.695906 | 0.644331 | 0 | 0.005331 | 0.274207 | 19,901 | 442 | 125 | 45.024887 | 0.847065 | 0.227074 | 0 | 0.65371 | 0 | 0 | 0.022457 | 0 | 0 | 0 | 0 | 0.004525 | 0 | 1 | 0.084806 | false | 0 | 0.017668 | 0.014134 | 0.194346 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a3e7aed5b77ee9e599695f3f40be6e57a8350be | 100 | py | Python | hex_api_integration/geoapi_airbus/apps.py | hexgis/hex_api_integration | 29c31d67be258211c08fa31cec9dd74cbf178200 | [
"MIT"
] | null | null | null | hex_api_integration/geoapi_airbus/apps.py | hexgis/hex_api_integration | 29c31d67be258211c08fa31cec9dd74cbf178200 | [
"MIT"
] | null | null | null | hex_api_integration/geoapi_airbus/apps.py | hexgis/hex_api_integration | 29c31d67be258211c08fa31cec9dd74cbf178200 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GeoapiAirbusConfig(AppConfig):
name = 'geoapi_airbus'
| 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 | 1 | 0 | 0 | 4 |
2a70251f8953bf90dce20b0d724a38ada012797d | 115 | py | Python | infosystem/database.py | objetorelacional/infosystem | 07140b88db0edee2d5f66db4f13e7285a4f28bfa | [
"Apache-2.0"
] | 2 | 2020-06-25T16:53:28.000Z | 2020-10-07T18:11:05.000Z | infosystem/database.py | objetorelacional/infosystem | 07140b88db0edee2d5f66db4f13e7285a4f28bfa | [
"Apache-2.0"
] | 67 | 2020-05-18T13:16:34.000Z | 2021-11-27T12:32:11.000Z | infosystem/database.py | objetorelacional/infosystem | 07140b88db0edee2d5f66db4f13e7285a4f28bfa | [
"Apache-2.0"
] | null | null | null | import flask_sqlalchemy
import flask_migrate
db = flask_sqlalchemy.SQLAlchemy()
migrate = flask_migrate.Migrate()
| 19.166667 | 34 | 0.834783 | 14 | 115 | 6.571429 | 0.357143 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095652 | 115 | 5 | 35 | 23 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2a7eb0562350bfb52e3b231926201467e60c552f | 4,085 | py | Python | jogos/forca.py | mmunhoz/python | 185561cc9c7dafcd1c644ef48ff3d4f98d36f918 | [
"MIT"
] | null | null | null | jogos/forca.py | mmunhoz/python | 185561cc9c7dafcd1c644ef48ff3d4f98d36f918 | [
"MIT"
] | null | null | null | jogos/forca.py | mmunhoz/python | 185561cc9c7dafcd1c644ef48ff3d4f98d36f918 | [
"MIT"
] | null | null | null | import random
def apresentar():
print("*******************************")
print("Bem vindo ao jogo de forca")
print("*******************************")
def carregarPalavra():
with open("palavras.txt", "r") as arquivo:
palavras = [p.strip() for p in arquivo]
idx = random.randrange(0, len(pa... | 27.233333 | 77 | 0.385557 | 288 | 4,085 | 5.163194 | 0.302083 | 0.289173 | 0.292535 | 0.255548 | 0.203093 | 0.184936 | 0.075992 | 0.033625 | 0.033625 | 0 | 0 | 0.005709 | 0.442595 | 4,085 | 149 | 78 | 27.416107 | 0.647343 | 0 | 0 | 0.302521 | 0 | 0 | 0.34541 | 0.015177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067227 | false | 0 | 0.008403 | 0.008403 | 0.10084 | 0.596639 | 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 | 1 | 0 | 4 |
2a82f272cd287c141962e4835108cddf9af33979 | 172 | py | Python | 2588/solution.py | bossm0n5t3r/BOJ | 03132388a0c76ef66d6b0dec2053aeca65c4aee6 | [
"MIT"
] | 2 | 2020-01-14T07:27:25.000Z | 2020-02-12T07:49:58.000Z | 2588/solution.py | bossm0n5t3r/BOJ | 03132388a0c76ef66d6b0dec2053aeca65c4aee6 | [
"MIT"
] | 1 | 2020-01-14T07:29:30.000Z | 2021-11-28T11:29:08.000Z | 2588/solution.py | bossm0n5t3r/BOJ | 03132388a0c76ef66d6b0dec2053aeca65c4aee6 | [
"MIT"
] | null | null | null | def sol():
a = input()
b = input()
for i in range(3):
print( int(a) * int(b[2 - i]) )
print(int(a) * int(b))
if __name__ == "__main__":
sol()
| 15.636364 | 39 | 0.459302 | 27 | 172 | 2.62963 | 0.592593 | 0.225352 | 0.253521 | 0.338028 | 0.366197 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.331395 | 172 | 10 | 40 | 17.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 1 | 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 | 4 |
2a843dd8f046e187cce9dc08c7095da44da13750 | 173 | py | Python | backend/app/app/schemas/msg.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | 7 | 2021-01-06T15:44:58.000Z | 2022-02-12T05:07:10.000Z | backend/app/app/schemas/msg.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | null | null | null | backend/app/app/schemas/msg.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | 2 | 2022-03-09T23:20:06.000Z | 2022-03-11T02:48:08.000Z | # -*- coding: utf-8 -*-
# @File : msg.py
# @Author : zhkuo
# @Time : 2021/1/10 1:15 上午
# @Desc :
from pydantic import BaseModel
class Msg(BaseModel):
msg: str
| 14.416667 | 30 | 0.578035 | 25 | 173 | 4 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085271 | 0.254335 | 173 | 11 | 31 | 15.727273 | 0.689922 | 0.531792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2a8771901abf9aeae715d4b860b9f08716e8c31f | 93 | py | Python | sample/cluster_version.py | austingarrigus/rubrik-sdk-for-python | 4a9c7f2239282681af951d918d8e9530c65ec1dd | [
"MIT"
] | 4 | 2018-09-06T23:34:32.000Z | 2018-10-08T15:04:22.000Z | sample/cluster_version.py | austingarrigus/rubrik-sdk-for-python | 4a9c7f2239282681af951d918d8e9530c65ec1dd | [
"MIT"
] | 1 | 2018-09-05T22:20:12.000Z | 2018-09-06T04:57:23.000Z | sample/cluster_version.py | austingarrigus/rubrik-sdk-for-python | 4a9c7f2239282681af951d918d8e9530c65ec1dd | [
"MIT"
] | 3 | 2018-10-01T14:49:47.000Z | 2018-10-03T15:41:12.000Z | import rubrik_cdm
rubrik = rubrik_cdm.Connect()
cluster_version = rubrik.cluster_version()
| 15.5 | 42 | 0.806452 | 12 | 93 | 5.916667 | 0.5 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 93 | 5 | 43 | 18.6 | 0.855422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.