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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72e52480ffabdc893888dacc9be29a86d24e83e3 | 615 | py | Python | hipims_io/__init__.py | mingxiaodong/hipims_io_python | 10452b2e2e92b5587e89ee211f0e92d150e48f3c | [
"MIT"
] | 1 | 2022-03-14T12:27:14.000Z | 2022-03-14T12:27:14.000Z | hipims_io/__init__.py | mingxiaodong/hipims_io_python | 10452b2e2e92b5587e89ee211f0e92d150e48f3c | [
"MIT"
] | 1 | 2020-07-02T09:27:37.000Z | 2020-07-02T09:35:51.000Z | hipims_io/__init__.py | mingxiaodong/hipims_io_python | 10452b2e2e92b5587e89ee211f0e92d150e48f3c | [
"MIT"
] | 1 | 2020-06-30T13:11:37.000Z | 2020-06-30T13:11:37.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
init
To do:
initialize a package
Created on Wed Apr 1 14:56:15 2020
@author: Xiaodong Ming
"""
import numpy as np
from .demo_functions import demo_input
from .demo_functions import demo_output
from .demo_functions import demo_raster
from .demo_functions import ge... | 30.75 | 85 | 0.814634 | 92 | 615 | 5.195652 | 0.554348 | 0.188285 | 0.142259 | 0.192469 | 0.169456 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025926 | 0.121951 | 615 | 20 | 86 | 30.75 | 0.859259 | 0.227642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
72f1e571f7744c6865ca805874da9f3f4f542a85 | 169 | py | Python | src/gbkfit/fitting/fitters/dynesty/__init__.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 6 | 2016-06-26T16:52:25.000Z | 2022-03-22T06:37:13.000Z | src/gbkfit/fitting/fitters/dynesty/__init__.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 4 | 2016-07-30T08:11:20.000Z | 2021-02-12T08:33:42.000Z | src/gbkfit/fitting/fitters/dynesty/__init__.py | bek0s/gbkf | 2ef56e8554fdf7ee8136141bc16d59bd34efa6c8 | [
"BSD-3-Clause"
] | 2 | 2015-05-18T03:21:56.000Z | 2015-09-21T06:16:18.000Z |
try:
import dynesty
except ModuleNotFoundError:
raise ModuleNotFoundError(
"to use the dynesty fitter, please install dynesty")
from .dynesty import *
| 18.777778 | 60 | 0.727811 | 18 | 169 | 6.833333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218935 | 169 | 8 | 61 | 21.125 | 0.931818 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 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 |
f40a84500549635a3113c223f7baff67aa5cb1c3 | 161 | py | Python | flask_blog/util/__init__.py | paciFIST-Studios/web | 993503b86dd81de0fb5b854cd4d95f9cd7a80160 | [
"MIT"
] | null | null | null | flask_blog/util/__init__.py | paciFIST-Studios/web | 993503b86dd81de0fb5b854cd4d95f9cd7a80160 | [
"MIT"
] | 1 | 2022-03-12T01:02:31.000Z | 2022-03-12T01:02:31.000Z | flask_blog/util/__init__.py | paciFIST-Studios/web | 993503b86dd81de0fb5b854cd4d95f9cd7a80160 | [
"MIT"
] | null | null | null | import os
import json
def load_json(path):
if os.path.isfile(path):
with open(path) as infile:
return json.load(infile)
return None
| 17.888889 | 36 | 0.63354 | 24 | 161 | 4.208333 | 0.583333 | 0.237624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279503 | 161 | 8 | 37 | 20.125 | 0.87069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f415f1e34b760fd1539c2935b4ec24f262315299 | 66 | py | Python | Section 22/4.2.Document-working_with_oops.py | airbornum/-Complete-Python-Scripting-for-Automation | bc053444f8786259086269ca1713bdb10144dd74 | [
"MIT"
] | 18 | 2020-04-13T03:14:06.000Z | 2022-03-09T18:54:41.000Z | Section 22/4.2.Document-working_with_oops.py | airbornum/-Complete-Python-Scripting-for-Automation | bc053444f8786259086269ca1713bdb10144dd74 | [
"MIT"
] | null | null | null | Section 22/4.2.Document-working_with_oops.py | airbornum/-Complete-Python-Scripting-for-Automation | bc053444f8786259086269ca1713bdb10144dd74 | [
"MIT"
] | 22 | 2020-04-29T21:12:42.000Z | 2022-03-17T18:19:54.000Z | class emp:
count=1
emp.count=emp.count+1
print(emp.count) | 11 | 22 | 0.666667 | 12 | 66 | 3.666667 | 0.416667 | 0.727273 | 0.409091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.19697 | 66 | 6 | 23 | 11 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.5 | 0.25 | 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 |
f43436e85f3ee23ece922eea93e19bb5e247be30 | 626 | py | Python | models.py | mhanna15/playlist-creator | fc8f6af329fb10defe77b759a53de692215f23af | [
"MIT"
] | null | null | null | models.py | mhanna15/playlist-creator | fc8f6af329fb10defe77b759a53de692215f23af | [
"MIT"
] | null | null | null | models.py | mhanna15/playlist-creator | fc8f6af329fb10defe77b759a53de692215f23af | [
"MIT"
] | null | null | null | from google.appengine.ext import ndb
class Song(ndb.Model):
mood = ndb.StringProperty(repeated = True)
genre = ndb.StringProperty(required = True)
song = ndb.StringProperty(required = True)
artist = ndb.StringProperty(required = True)
album = ndb.StringProperty(required = True)
url = ndb.St... | 39.125 | 54 | 0.71246 | 70 | 626 | 6.371429 | 0.342857 | 0.381166 | 0.392377 | 0.455157 | 0.147982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182109 | 626 | 16 | 54 | 39.125 | 0.871094 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 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 |
f4537105b7ce1e48bc7eaaf94152648a28bbaef7 | 70,476 | py | Python | venv/Lib/site-packages/PyQt4/examples/widgets/stylesheet/stylesheet_rc3.py | prateekfxtd/ns_Startup | 095a62b3a8c7bf0ff7b767355d57d993bbd2423d | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyQt4/examples/widgets/stylesheet/stylesheet_rc3.py | prateekfxtd/ns_Startup | 095a62b3a8c7bf0ff7b767355d57d993bbd2423d | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyQt4/examples/widgets/stylesheet/stylesheet_rc3.py | prateekfxtd/ns_Startup | 095a62b3a8c7bf0ff7b767355d57d993bbd2423d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: Wed Mar 20 13:51:48 2013
# by: The Resource Compiler for PyQt (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = b"\
\x00\x00\x08\xc7\
\x2e\
\x51\x57\x69\x64\x67\x65\x74\x20\x7b\x0a\x20\x20\... | 57.531429 | 129 | 0.724459 | 16,959 | 70,476 | 3.009552 | 0.017808 | 0.091695 | 0.069829 | 0.024217 | 0.399577 | 0.390172 | 0.374361 | 0.363604 | 0.340857 | 0.325692 | 0 | 0.359642 | 0.018233 | 70,476 | 1,224 | 130 | 57.578431 | 0.378012 | 0.002568 | 0 | 0.219189 | 0 | 0.826303 | 0 | 0 | 0 | 1 | 0.000114 | 0 | 0 | 1 | 0.001654 | false | 0 | 0.000827 | 0 | 0.002481 | 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 |
f473109c10c0a8910ed7cc4205471b3e5264199b | 571 | py | Python | torchelie/models/__init__.py | Vermeille/Torchelie | 43957d83238372ae6436aac90127865c2040b76c | [
"MIT"
] | 117 | 2019-07-14T20:39:48.000Z | 2021-10-17T19:16:48.000Z | torchelie/models/__init__.py | Vermeille/Torchelie | 43957d83238372ae6436aac90127865c2040b76c | [
"MIT"
] | 41 | 2019-12-06T23:56:44.000Z | 2021-08-02T09:13:30.000Z | torchelie/models/__init__.py | Vermeille/Torchelie | 43957d83238372ae6436aac90127865c2040b76c | [
"MIT"
] | 13 | 2019-09-22T00:46:54.000Z | 2021-04-09T15:53:15.000Z | from .classifier import ClassificationHead, ProjectionDiscr
from .vgg import *
from .resnet import *
from .patchgan import *
from .pixcnn import *
from .perceptualnet import *
from .unet import *
from .pix2pix import *
from .pix2pixhd import *
from .autogan import AutoGAN, autogan_32, autogan_64, autogan_128
from .snre... | 31.722222 | 65 | 0.810858 | 67 | 571 | 6.850746 | 0.447761 | 0.217865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032193 | 0.129597 | 571 | 17 | 66 | 33.588235 | 0.891348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
be5e6b05300e202ae01431d6b0b1ad2d66fcb8d4 | 3,019 | py | Python | pycalphad/constraints.py | anilkunwar/pycalphad | eb3a074d5285b0bd76feddd1529e7edc6208c278 | [
"MIT"
] | 1 | 2021-05-27T16:18:46.000Z | 2021-05-27T16:18:46.000Z | pycalphad/constraints.py | anilkunwar/pycalphad | eb3a074d5285b0bd76feddd1529e7edc6208c278 | [
"MIT"
] | null | null | null | pycalphad/constraints.py | anilkunwar/pycalphad | eb3a074d5285b0bd76feddd1529e7edc6208c278 | [
"MIT"
] | null | null | null | """
The constraints module contains definitions for equilibrium constraints and
their Jacobian.
"""
import pycalphad.variables as v
import numpy as np
# An index range is a list of (ordered pairs of indices).
def sitefrac_cons(input_x, idx_range):
"""
Accepts input vector and index range and returns
site ... | 35.940476 | 75 | 0.632329 | 362 | 3,019 | 5.069061 | 0.229282 | 0.035967 | 0.071935 | 0.075204 | 0.740055 | 0.740055 | 0.700817 | 0.700817 | 0.66485 | 0.613624 | 0 | 0.006484 | 0.284863 | 3,019 | 83 | 76 | 36.373494 | 0.843446 | 0.191123 | 0 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.039216 | 0 | 0.196078 | 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 |
be6cbdc1597ec46e6a07b008390f6976261ef71d | 5,799 | py | Python | tests/erica_legacy/test_config.py | digitalservice4germany/erica | 7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2 | [
"MIT"
] | 3 | 2022-01-31T15:17:17.000Z | 2022-03-01T16:15:47.000Z | tests/erica_legacy/test_config.py | digitalservice4germany/erica | 7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2 | [
"MIT"
] | 59 | 2022-01-31T14:04:20.000Z | 2022-03-31T20:08:47.000Z | tests/erica_legacy/test_config.py | digitalservice4germany/erica | 7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2 | [
"MIT"
] | 1 | 2022-03-10T09:24:28.000Z | 2022-03-10T09:24:28.000Z | import os
import unittest
from unittest.mock import patch
import pytest
from erica.config import Settings, DevelopmentSettings, StagingSettings, TestingSettings, get_settings, UnknownEricaEnvironment
from tests.erica_legacy.utils import missing_cert, missing_pyeric_lib
class TestGetCertPath(unittest.TestCase):
... | 50.868421 | 127 | 0.72547 | 774 | 5,799 | 5.158915 | 0.126615 | 0.046081 | 0.064112 | 0.092161 | 0.800651 | 0.761583 | 0.705985 | 0.66291 | 0.654145 | 0.654145 | 0 | 0 | 0.176755 | 5,799 | 113 | 128 | 51.318584 | 0.836406 | 0.027419 | 0 | 0.516484 | 0 | 0 | 0.238247 | 0.043995 | 0 | 0 | 0 | 0 | 0.10989 | 1 | 0.153846 | false | 0 | 0.065934 | 0 | 0.252747 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
be7323b5ecf1338f0619a174eb6d3ae6b157a7b2 | 1,938 | py | Python | code/python/FundsAPIforDigitalPortals/v2/fds/sdk/FundsAPIforDigitalPortals/__init__.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 6 | 2022-02-07T16:34:18.000Z | 2022-03-30T08:04:57.000Z | code/python/FundsAPIforDigitalPortals/v2/fds/sdk/FundsAPIforDigitalPortals/__init__.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | 2 | 2022-02-07T05:25:57.000Z | 2022-03-07T14:18:04.000Z | code/python/FundsAPIforDigitalPortals/v2/fds/sdk/FundsAPIforDigitalPortals/__init__.py | factset/enterprise-sdk | 3fd4d1360756c515c9737a0c9a992c7451d7de7e | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
"""
Funds API For Digital Portals
Search for mutual funds and ETFs using one single consolidated API, including a criteria-based screener. The API provides also base data, key figures, and holdings. A separate endpoint returns the possible values and value range for the parameters that the end... | 69.214286 | 1,125 | 0.828689 | 260 | 1,938 | 6.157692 | 0.492308 | 0.034978 | 0.049969 | 0.174891 | 0.191131 | 0.191131 | 0 | 0 | 0 | 0 | 0 | 0.005351 | 0.132095 | 1,938 | 27 | 1,126 | 71.777778 | 0.946492 | 0.674407 | 0 | 0 | 0 | 0 | 0.009934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.888889 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
be7a2b8fa460b5a0e13fc41fae8f4ef0b717e060 | 141 | py | Python | pinax/teams/__init__.py | hamzamgit/pinax-teams | 8ee93336fc7b03d385aaa5ab9d01e5875b3d17ef | [
"MIT"
] | null | null | null | pinax/teams/__init__.py | hamzamgit/pinax-teams | 8ee93336fc7b03d385aaa5ab9d01e5875b3d17ef | [
"MIT"
] | null | null | null | pinax/teams/__init__.py | hamzamgit/pinax-teams | 8ee93336fc7b03d385aaa5ab9d01e5875b3d17ef | [
"MIT"
] | 1 | 2020-06-29T04:18:26.000Z | 2020-06-29T04:18:26.000Z | import pkg_resources
__version__ = pkg_resources.get_distribution("pinax-teams").version
default_app_config = "pinax.teams.apps.AppConfig"
| 23.5 | 67 | 0.829787 | 18 | 141 | 6 | 0.722222 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070922 | 141 | 5 | 68 | 28.2 | 0.824427 | 0 | 0 | 0 | 0 | 0 | 0.262411 | 0.184397 | 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 |
be7b61bb2b6deba96c9ca7f255c9c678afadd410 | 143 | py | Python | 3rdParty/pytz/pytz-2016.10/build.py | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | 3rdParty/pytz/pytz-2016.10/build.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | 3rdParty/pytz/pytz-2016.10/build.py | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | from askapdev.rbuild.builders import Setuptools as Builder
builder = Builder()
builder.remote_archive = "pytz-2016.10.tar.gz"
builder.build()
| 23.833333 | 58 | 0.79021 | 20 | 143 | 5.6 | 0.8 | 0.375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.097902 | 143 | 5 | 59 | 28.6 | 0.821705 | 0 | 0 | 0 | 0 | 0 | 0.132867 | 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 |
be7d48870e230e807abf9d4a8e882198c841b871 | 974 | py | Python | pbpstats/resources/enhanced_pbp/live/violation.py | bahalbach/pbpstats | 6a9f602764edb7a3ee0e880fffbb5aa34990d6e9 | [
"MIT"
] | null | null | null | pbpstats/resources/enhanced_pbp/live/violation.py | bahalbach/pbpstats | 6a9f602764edb7a3ee0e880fffbb5aa34990d6e9 | [
"MIT"
] | null | null | null | pbpstats/resources/enhanced_pbp/live/violation.py | bahalbach/pbpstats | 6a9f602764edb7a3ee0e880fffbb5aa34990d6e9 | [
"MIT"
] | null | null | null | from pbpstats.resources.enhanced_pbp import Violation
from pbpstats.resources.enhanced_pbp.live.enhanced_pbp_item import LiveEnhancedPbpItem
class LiveViolation(Violation, LiveEnhancedPbpItem):
"""
Class for violation events
"""
action_type = "violation"
def __init__(self, *args):
super(... | 25.631579 | 86 | 0.708419 | 111 | 974 | 5.855856 | 0.351351 | 0.101538 | 0.12 | 0.203077 | 0.447692 | 0.349231 | 0.304615 | 0.129231 | 0 | 0 | 0 | 0 | 0.205339 | 974 | 37 | 87 | 26.324324 | 0.839793 | 0.026694 | 0 | 0.25 | 0 | 0 | 0.077253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.083333 | 0.25 | 0.708333 | 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 |
bea862cf78a6ddee4f94e445dc401e4254348613 | 2,202 | py | Python | tools/src/test/python/dlpx/virtualization/_internal/fake_plugin/staged/successful.py | crystalplumage/virtualization-sdk | ddff908408812decfade475a47abc10b829a3028 | [
"Apache-2.0"
] | 10 | 2020-01-08T22:34:20.000Z | 2022-02-24T17:19:54.000Z | tools/src/test/python/dlpx/virtualization/_internal/fake_plugin/staged/successful.py | crystalplumage/virtualization-sdk | ddff908408812decfade475a47abc10b829a3028 | [
"Apache-2.0"
] | 298 | 2019-12-18T00:20:13.000Z | 2022-03-30T04:36:57.000Z | tools/src/test/python/dlpx/virtualization/_internal/fake_plugin/staged/successful.py | crystalplumage/virtualization-sdk | ddff908408812decfade475a47abc10b829a3028 | [
"Apache-2.0"
] | 30 | 2019-12-13T19:53:38.000Z | 2022-03-05T14:54:54.000Z | #
# Copyright (c) 2019 by Delphix. All rights reserved.
#
# flake8: noqa
from __future__ import print_function
import logging
from dlpx.virtualization.platform import Plugin
logger = logging.getLogger()
logger.setLevel(logging.NOTSET)
staged = Plugin()
@staged.discovery.repository()
def repository_discovery(sourc... | 20.971429 | 66 | 0.771571 | 264 | 2,202 | 6.185606 | 0.215909 | 0.088181 | 0.134721 | 0.085732 | 0.410288 | 0.358849 | 0.327618 | 0.216779 | 0.153092 | 0 | 0 | 0.011047 | 0.136694 | 2,202 | 104 | 67 | 21.173077 | 0.847975 | 0.029064 | 0 | 0.290323 | 0 | 0 | 0.009376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0.112903 | 0.048387 | 0.177419 | 0.516129 | 0.016129 | 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 |
fe2bdc51cb9ea56f1bac3040b7cde53c433275e1 | 2,610 | py | Python | game/templatetags/app_filters.py | lhy0807/industry_simulator | 75daadcce3d2c14f8cc226d5c92f310dff46dbf6 | [
"MIT"
] | null | null | null | game/templatetags/app_filters.py | lhy0807/industry_simulator | 75daadcce3d2c14f8cc226d5c92f310dff46dbf6 | [
"MIT"
] | null | null | null | game/templatetags/app_filters.py | lhy0807/industry_simulator | 75daadcce3d2c14f8cc226d5c92f310dff46dbf6 | [
"MIT"
] | null | null | null | from django import template
from django.apps import apps
register = template.Library()
@register.filter(name='get_machine_purchased')
def get_machine_purchased(record, turn):
return record.get(turn=turn).machine_purchased
@register.filter(name='get_to_own')
def get_to_own(record, turn):
return record.get(turn... | 33.461538 | 91 | 0.756705 | 405 | 2,610 | 4.637037 | 0.135802 | 0.089457 | 0.138445 | 0.181044 | 0.538871 | 0.463259 | 0.428115 | 0.384452 | 0.300319 | 0.168264 | 0 | 0.00345 | 0.111494 | 2,610 | 78 | 91 | 33.461538 | 0.806382 | 0 | 0 | 0.032258 | 0 | 0 | 0.095366 | 0.008043 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.032258 | 0.193548 | 0.580645 | 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 |
fe436d2bdb4a7ff4381122c5a622c36da3d9fe8a | 102 | py | Python | motorcycles.3.py | Datapotomus/python_crash_course | 05cdcb40e623227f5efe1a20089330410ee0b738 | [
"Apache-2.0"
] | null | null | null | motorcycles.3.py | Datapotomus/python_crash_course | 05cdcb40e623227f5efe1a20089330410ee0b738 | [
"Apache-2.0"
] | null | null | null | motorcycles.3.py | Datapotomus/python_crash_course | 05cdcb40e623227f5efe1a20089330410ee0b738 | [
"Apache-2.0"
] | null | null | null | motorcycles = ['honda', 'yamaha', 'suzuki']
print(motorcycles)
del motorcycles[1]
print(motorcycles) | 17 | 43 | 0.735294 | 11 | 102 | 6.818182 | 0.636364 | 0.426667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.098039 | 102 | 6 | 44 | 17 | 0.804348 | 0 | 0 | 0.5 | 0 | 0 | 0.165049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
fe4fcd81ae7a83bc31ae83415976889f28838d13 | 38 | py | Python | xfClock/modules/__init__.py | fhansa/xfClock | 4f52be03fec90bfdcd00db0c7492627f1be33bcf | [
"MIT"
] | null | null | null | xfClock/modules/__init__.py | fhansa/xfClock | 4f52be03fec90bfdcd00db0c7492627f1be33bcf | [
"MIT"
] | 2 | 2021-02-08T20:41:13.000Z | 2021-04-30T21:12:52.000Z | xfClock/modules/__init__.py | fhansa/xfClock | 4f52be03fec90bfdcd00db0c7492627f1be33bcf | [
"MIT"
] | null | null | null | #
# xfClock, a smart bedroom clock
# | 12.666667 | 34 | 0.657895 | 5 | 38 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236842 | 38 | 3 | 35 | 12.666667 | 0.862069 | 0.789474 | 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 |
fe52b08ade6853b68a53cae738d81adaf060d69e | 30 | py | Python | imagesecrets/core/__init__.py | kucera-lukas/ImageSecrets | d7720886b215c5a40b94d4f06cb10d3c106dfcde | [
"MIT"
] | null | null | null | imagesecrets/core/__init__.py | kucera-lukas/ImageSecrets | d7720886b215c5a40b94d4f06cb10d3c106dfcde | [
"MIT"
] | 74 | 2021-08-09T11:50:51.000Z | 2022-03-30T21:23:24.000Z | imagesecrets/core/__init__.py | kucera-lukas/imagesecrets | d7720886b215c5a40b94d4f06cb10d3c106dfcde | [
"MIT"
] | null | null | null | """Files used for backend."""
| 15 | 29 | 0.633333 | 4 | 30 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 30 | 1 | 30 | 30 | 0.730769 | 0.766667 | 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 |
fe68c3ef8c783c82021e598e3e41d6e3f1c044d8 | 1,282 | py | Python | exporter/ecju_queries/services.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 1 | 2021-10-16T16:36:58.000Z | 2021-10-16T16:36:58.000Z | exporter/ecju_queries/services.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 45 | 2020-08-11T14:37:46.000Z | 2022-03-29T17:03:02.000Z | exporter/ecju_queries/services.py | django-doctor/lite-frontend | 330ff9575fd22d7c4c42698ac2d653244e6180d6 | [
"MIT"
] | 3 | 2021-02-01T06:26:19.000Z | 2022-02-21T23:02:46.000Z | from core import client
def get_ecju_query(request, pk, query_pk):
data = client.get(request, f"/cases/{pk}/ecju-queries/{query_pk}").json()["ecju_query"]
return data
def put_ecju_query(request, pk, query_pk, json):
data = client.put(request, f"/cases/{pk}/ecju-queries/{query_pk}/", json)
return dat... | 34.648649 | 96 | 0.724649 | 188 | 1,282 | 4.707447 | 0.143617 | 0.094915 | 0.094915 | 0.108475 | 0.80565 | 0.754802 | 0.698305 | 0.661017 | 0.60904 | 0.516384 | 0 | 0 | 0.120905 | 1,282 | 36 | 97 | 35.611111 | 0.785271 | 0.00624 | 0 | 0.26087 | 0 | 0 | 0.232704 | 0.211478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.043478 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
22816be88e6b1f33543787b858de50af002001b2 | 1,180 | py | Python | Settings.py | rogerrain/twitchbotpy | a59011bb179cd42bbf3cf26e4269437cce5e2633 | [
"MIT"
] | 1 | 2018-04-16T20:27:34.000Z | 2018-04-16T20:27:34.000Z | Settings.py | rogerrain/twitchbotpy | a59011bb179cd42bbf3cf26e4269437cce5e2633 | [
"MIT"
] | null | null | null | Settings.py | rogerrain/twitchbotpy | a59011bb179cd42bbf3cf26e4269437cce5e2633 | [
"MIT"
] | null | null | null | def getSettings():
return getHost(), getPort(), getPass(), getNick(), getChannel()
def getHost():
infile = open("Settings.ini", "r")
lines = infile.readlines()
infile.close()
for line in lines:
if line.startswith("HOST"):
return line.strip().split(" ")[2]
def getPort():... | 27.44186 | 67 | 0.55678 | 134 | 1,180 | 4.902985 | 0.223881 | 0.076104 | 0.136986 | 0.159817 | 0.800609 | 0.741248 | 0.631659 | 0.631659 | 0.631659 | 0.631659 | 0 | 0.005841 | 0.274576 | 1,180 | 42 | 68 | 28.095238 | 0.761682 | 0 | 0 | 0.648649 | 0 | 0 | 0.078814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0.081081 | 0 | 0.027027 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
228ec00d3a2e404d44db40284df6c18f2d65b8d0 | 159 | py | Python | reddit2telegram/channels/r_explainmelikeimfive/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/r_explainmelikeimfive/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/r_explainmelikeimfive/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
t_channel = '@r_explainmelikeimfive'
subreddit = 'explainlikeimfive'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 17.666667 | 38 | 0.773585 | 19 | 159 | 6.263158 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.119497 | 159 | 8 | 39 | 19.875 | 0.828571 | 0.08805 | 0 | 0 | 0 | 0 | 0.270833 | 0.152778 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
229a665b2c2579a56d76e8f56f5d200378c84e5f | 79 | py | Python | dream/bluff/__init__.py | icyblade/dream | 818e77f1c25e51f8cd966f7aa4eb1bcd4207b208 | [
"MIT"
] | null | null | null | dream/bluff/__init__.py | icyblade/dream | 818e77f1c25e51f8cd966f7aa4eb1bcd4207b208 | [
"MIT"
] | null | null | null | dream/bluff/__init__.py | icyblade/dream | 818e77f1c25e51f8cd966f7aa4eb1bcd4207b208 | [
"MIT"
] | null | null | null | class BaseBluff(object):
"""Abstract class of bluff function."""
pass
| 15.8 | 43 | 0.658228 | 9 | 79 | 5.777778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21519 | 79 | 4 | 44 | 19.75 | 0.83871 | 0.417722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
22c44b750efd0cbed93d9985df2609e1853651e3 | 850 | py | Python | basic_defs.py | prajwaldas95/A-Cloud-based-Replication-NAS-Backed-by-Multiple-Providers | 1be4ed6720dd7c54f7a10db71b5b2834d166a063 | [
"MIT"
] | null | null | null | basic_defs.py | prajwaldas95/A-Cloud-based-Replication-NAS-Backed-by-Multiple-Providers | 1be4ed6720dd7c54f7a10db71b5b2834d166a063 | [
"MIT"
] | null | null | null | basic_defs.py | prajwaldas95/A-Cloud-based-Replication-NAS-Backed-by-Multiple-Providers | 1be4ed6720dd7c54f7a10db71b5b2834d166a063 | [
"MIT"
] | null | null | null | class cloud_storage:
block_size = 4096 # System configuration -- DO NOT CHANGE!
def list_blocks(self):
raise NotImplementedError
def read_block(self, offset):
raise NotImplementedError
def write_block(self, block, offset):
raise NotImplementedError
def d... | 23.611111 | 69 | 0.64 | 90 | 850 | 5.944444 | 0.388889 | 0.403738 | 0.403738 | 0.246729 | 0.37757 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006645 | 0.291765 | 850 | 35 | 70 | 24.285714 | 0.88206 | 0.044706 | 0 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.434783 | false | 0 | 0 | 0.043478 | 0.608696 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
22ca4190b2973c548bf589919f2b5829d42b1aa4 | 187 | py | Python | quantlab/COCO/YOLOv3Tiny/__init__.py | lukasc-ch/QuantLab | 7ddcc51ec1131a58269768cd898ce04e8b49beb6 | [
"Apache-2.0"
] | 6 | 2019-05-24T17:39:07.000Z | 2021-11-06T22:19:55.000Z | quantlab/COCO/YOLOv3Tiny/__init__.py | lukasc-ch/QuantLab | 7ddcc51ec1131a58269768cd898ce04e8b49beb6 | [
"Apache-2.0"
] | null | null | null | quantlab/COCO/YOLOv3Tiny/__init__.py | lukasc-ch/QuantLab | 7ddcc51ec1131a58269768cd898ce04e8b49beb6 | [
"Apache-2.0"
] | 4 | 2019-05-24T17:39:15.000Z | 2021-04-02T07:13:11.000Z | from .preprocess import load_data_sets
from .postprocess import postprocess_pr, postprocess_gt
from .loss_functions import YOLOv3Loss
from .yolov3tinybaseline import YOLOv3TinyBaseline
| 26.714286 | 55 | 0.871658 | 22 | 187 | 7.181818 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.101604 | 187 | 6 | 56 | 31.166667 | 0.922619 | 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 |
22d1fe2827fd543072bc0f3017868d26b2c6c496 | 132 | py | Python | numero_mayor_cero.py | Gambl3r08/ejercicios-Python | ddf13b40c611f892112ebbe7bc907f5765998ea0 | [
"MIT"
] | null | null | null | numero_mayor_cero.py | Gambl3r08/ejercicios-Python | ddf13b40c611f892112ebbe7bc907f5765998ea0 | [
"MIT"
] | null | null | null | numero_mayor_cero.py | Gambl3r08/ejercicios-Python | ddf13b40c611f892112ebbe7bc907f5765998ea0 | [
"MIT"
] | null | null | null | x = input("ingrese un numero: ")
x = int(x)
if x > 0:
print("el numero es positivo ")
else:
print("el numero es negativoN ") | 22 | 36 | 0.613636 | 22 | 132 | 3.681818 | 0.636364 | 0.17284 | 0.320988 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.234848 | 132 | 6 | 36 | 22 | 0.792079 | 0 | 0 | 0 | 0 | 0 | 0.481203 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
a3beaba7c3a5d0da99264169d503c4b0be198aa2 | 4,412 | py | Python | tests/model_options/test_default_pk.py | KaushikSathvara/django | 3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946 | [
"BSD-3-Clause",
"0BSD"
] | 61,676 | 2015-01-01T00:05:13.000Z | 2022-03-31T20:37:54.000Z | tests/model_options/test_default_pk.py | KaushikSathvara/django | 3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946 | [
"BSD-3-Clause",
"0BSD"
] | 8,884 | 2015-01-01T00:12:05.000Z | 2022-03-31T19:53:11.000Z | tests/model_options/test_default_pk.py | mustafa0x/django | d7394cfa13a4d1a02356e3a83e10ec100fbb9948 | [
"BSD-3-Clause",
"0BSD"
] | 33,143 | 2015-01-01T02:04:52.000Z | 2022-03-31T19:42:46.000Z | from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.test import SimpleTestCase, override_settings
from django.test.utils import isolate_apps
class MyBigAutoField(models.BigAutoField):
pass
@isolate_apps('model_options')
class TestDefaultPK(SimpleTestCase):
@overr... | 38.365217 | 82 | 0.693563 | 478 | 4,412 | 6.127615 | 0.146444 | 0.093889 | 0.136565 | 0.064527 | 0.826221 | 0.785592 | 0.689314 | 0.689314 | 0.668829 | 0.668829 | 0 | 0.004065 | 0.219402 | 4,412 | 114 | 83 | 38.701754 | 0.8464 | 0 | 0 | 0.526316 | 0 | 0 | 0.25136 | 0.179057 | 0 | 0 | 0 | 0 | 0.115789 | 1 | 0.115789 | false | 0.105263 | 0.063158 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a3ea8a52dbc246f628fe2afab770928d190d40ae | 269 | py | Python | src/scc_hypervisor_collector/api/uploader.py | SUSE/scc-hypervisor-collector | e3b9d2e7ddc3210b1f4fbe7a06eac8c22adb4c9a | [
"Apache-2.0"
] | null | null | null | src/scc_hypervisor_collector/api/uploader.py | SUSE/scc-hypervisor-collector | e3b9d2e7ddc3210b1f4fbe7a06eac8c22adb4c9a | [
"Apache-2.0"
] | null | null | null | src/scc_hypervisor_collector/api/uploader.py | SUSE/scc-hypervisor-collector | e3b9d2e7ddc3210b1f4fbe7a06eac8c22adb4c9a | [
"Apache-2.0"
] | null | null | null | """
SCC Hypervisor Collector SCCUploader
The SCCUploader is responsible for uploading the hypervisor details
collected from the specified backends to the SCC using the provided
credentials.
"""
class SCCUploader:
"""SCC Uploader for scc-hypervisor-collector."""
| 22.416667 | 67 | 0.788104 | 33 | 269 | 6.424242 | 0.606061 | 0.122642 | 0.207547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148699 | 269 | 11 | 68 | 24.454545 | 0.925764 | 0.851301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a3ef131d8d35b4b9017d9330d04f6ee6195a2b47 | 214 | py | Python | sts/urls.py | chop-dbhi/django-sts | c05cd5dc71b40d6a9e7284a547bb256ea3cdd682 | [
"BSD-3-Clause"
] | 2 | 2015-01-04T16:34:37.000Z | 2015-11-18T05:40:04.000Z | sts/urls.py | chop-dbhi/django-sts | c05cd5dc71b40d6a9e7284a547bb256ea3cdd682 | [
"BSD-3-Clause"
] | null | null | null | sts/urls.py | chop-dbhi/django-sts | c05cd5dc71b40d6a9e7284a547bb256ea3cdd682 | [
"BSD-3-Clause"
] | null | null | null | from django.conf.urls import url, patterns
from . import views
urlpatterns = patterns('',
url(r'^$', views.systems, name='sts-systems'),
url(r'^(?P<pk>\d+)/$', views.systems, name='sts-system-detail'),
)
| 23.777778 | 68 | 0.64486 | 30 | 214 | 4.6 | 0.6 | 0.057971 | 0.231884 | 0.275362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135514 | 214 | 8 | 69 | 26.75 | 0.745946 | 0 | 0 | 0 | 0 | 0 | 0.205607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
a3f6ac6ded76167fd3b77ff447c3f2aca17da825 | 57 | py | Python | tests/project/mastering/__init__.py | nguyentr17/tamr-toolbox | 1d27101eda12f937813cdbfe27e2fa9c33ac34d2 | [
"Apache-2.0"
] | 6 | 2021-02-09T22:27:55.000Z | 2022-01-14T18:15:17.000Z | tests/project/mastering/__init__.py | nguyentr17/tamr-toolbox | 1d27101eda12f937813cdbfe27e2fa9c33ac34d2 | [
"Apache-2.0"
] | 34 | 2021-02-09T22:23:33.000Z | 2022-03-31T16:22:51.000Z | tests/project/mastering/__init__.py | nguyentr17/tamr-toolbox | 1d27101eda12f937813cdbfe27e2fa9c33ac34d2 | [
"Apache-2.0"
] | 12 | 2021-02-09T21:17:10.000Z | 2022-02-09T16:35:39.000Z | """Tests for tasks related to Tamr Mastering projects"""
| 28.5 | 56 | 0.754386 | 8 | 57 | 5.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 57 | 1 | 57 | 57 | 0.877551 | 0.877193 | 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 |
4313c2bb22b57b7826574ffa39b1c91076151d83 | 180 | py | Python | login_first.py | fredhdx/weibospider | 1ae14a702231b9d6d5abd095612a001ba832ea31 | [
"MIT"
] | 9 | 2017-10-07T18:20:29.000Z | 2020-06-11T08:54:43.000Z | login_first.py | fredhdx/weibospider | 1ae14a702231b9d6d5abd095612a001ba832ea31 | [
"MIT"
] | 1 | 2019-09-26T07:39:57.000Z | 2019-09-26T07:39:57.000Z | login_first.py | fredhdx/weibospider | 1ae14a702231b9d6d5abd095612a001ba832ea31 | [
"MIT"
] | 11 | 2017-09-17T13:27:11.000Z | 2019-08-17T10:32:38.000Z | # coding:utf-8
from tasks import login
if __name__ == '__main__':
# you should execute this file, because celery timer will execute login delayed
login.excute_login_task() | 30 | 83 | 0.75 | 26 | 180 | 4.807692 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006757 | 0.177778 | 180 | 6 | 84 | 30 | 0.837838 | 0.5 | 0 | 0 | 0 | 0 | 0.090909 | 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 |
432e5fbeb124f7f5ce7dcbbcbf11b8e413d029d2 | 7,560 | py | Python | mitoviz/tests/test_plot.py | robertopreste/mitoviz | 3b5ec3d1185785b185d7c62c85b6ad98861817a7 | [
"MIT"
] | null | null | null | mitoviz/tests/test_plot.py | robertopreste/mitoviz | 3b5ec3d1185785b185d7c62c85b6ad98861817a7 | [
"MIT"
] | 93 | 2019-12-27T08:57:20.000Z | 2022-03-31T23:04:02.000Z | mitoviz/tests/test_plot.py | robertopreste/mitoviz | 3b5ec3d1185785b185d7c62c85b6ad98861817a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Created by Roberto Preste
import os
import unittest
import cv2
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
import numpy as np
from mitoviz.plot import Legend, PlotBase
from mitoviz.tests.constants import (
BASE_MITO_POLAR, BASE_MITO_POLAR_L... | 29.416342 | 74 | 0.62791 | 955 | 7,560 | 4.665969 | 0.097382 | 0.145422 | 0.087522 | 0.043088 | 0.804758 | 0.783887 | 0.783887 | 0.739004 | 0.693896 | 0.581688 | 0 | 0.006209 | 0.275661 | 7,560 | 256 | 75 | 29.53125 | 0.807524 | 0.049206 | 0 | 0.519481 | 0 | 0 | 0.050603 | 0.033642 | 0 | 0 | 0 | 0 | 0.162338 | 1 | 0.103896 | false | 0 | 0.051948 | 0.006494 | 0.175325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a309ef7bc5ddb0116be1bfba91c94a43a7336c9 | 853 | py | Python | tests/tests_critsend.py | adamgilman/ems-costing | 5565cd98b6046f989fe7b17c2d11cb82ac8d510f | [
"MIT"
] | null | null | null | tests/tests_critsend.py | adamgilman/ems-costing | 5565cd98b6046f989fe7b17c2d11cb82ac8d510f | [
"MIT"
] | null | null | null | tests/tests_critsend.py | adamgilman/ems-costing | 5565cd98b6046f989fe7b17c2d11cb82ac8d510f | [
"MIT"
] | null | null | null | from vendors import CritSend
import unittest
class TestPostageApp(unittest.TestCase):
def setUp(self):
self.vendor = CritSend()
def test_ZeroEmails(self):
self.assertEqual(self.vendor.getPrice(0), 0)
def test_5Emails(self):
self.assertEqual(self.vendor.getPrice(5), .0)
def t... | 26.65625 | 63 | 0.690504 | 109 | 853 | 5.284404 | 0.348624 | 0.125 | 0.263889 | 0.319444 | 0.53125 | 0.53125 | 0.338542 | 0 | 0 | 0 | 0 | 0.12029 | 0.19109 | 853 | 31 | 64 | 27.516129 | 0.714493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.380952 | 1 | 0.428571 | false | 0 | 0.095238 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4a48f4dfde27ff48cff40c9951fc4dc6227b77df | 2,208 | py | Python | migrations/versions/27c903b94867_add_iban_to_employee.py | HenriqueLin/CityWok-ManagementSystem | 23130ea45784a9d4dc85cefb445cc44193b66fc0 | [
"MIT"
] | null | null | null | migrations/versions/27c903b94867_add_iban_to_employee.py | HenriqueLin/CityWok-ManagementSystem | 23130ea45784a9d4dc85cefb445cc44193b66fc0 | [
"MIT"
] | 238 | 2021-06-10T11:21:56.000Z | 2022-03-01T20:08:25.000Z | migrations/versions/27c903b94867_add_iban_to_employee.py | HenriqueLin/CityWok-ManagementSystem | 23130ea45784a9d4dc85cefb445cc44193b66fc0 | [
"MIT"
] | 1 | 2021-06-12T15:40:08.000Z | 2021-06-12T15:40:08.000Z | """Add iban to employee
Revision ID: 27c903b94867
Revises: 284daa713702
Create Date: 2021-06-25 14:25:22.636903
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '27c903b94867'
down_revision = '284daa713702'
branch_labels = None
depends_on = None
def upgrade():... | 40.145455 | 87 | 0.716033 | 316 | 2,208 | 4.658228 | 0.199367 | 0.171196 | 0.161685 | 0.171196 | 0.752717 | 0.738451 | 0.738451 | 0.692255 | 0.692255 | 0.670516 | 0 | 0.030753 | 0.145833 | 2,208 | 54 | 88 | 40.888889 | 0.749735 | 0.136775 | 0 | 0.2 | 0 | 0 | 0.192081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a5d8f4b7fd4dc6f161e13384b7ef7a202891357 | 86 | py | Python | HIS_void/his/apps.py | YuanchenZhu2020/HIS_void | 7289bf537e9fc4b09750bbca76a4cc8354dc770f | [
"MIT"
] | null | null | null | HIS_void/his/apps.py | YuanchenZhu2020/HIS_void | 7289bf537e9fc4b09750bbca76a4cc8354dc770f | [
"MIT"
] | null | null | null | HIS_void/his/apps.py | YuanchenZhu2020/HIS_void | 7289bf537e9fc4b09750bbca76a4cc8354dc770f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class HisConfig(AppConfig):
name = 'his'
| 14.333333 | 34 | 0.686047 | 10 | 86 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 86 | 5 | 35 | 17.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 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 |
4a68da6486b99d9fad3f162c921032ccabe976ff | 50 | py | Python | mil/dimensionality_reduction/__init__.py | yangsenwxy/mil | 8e6b6f0b55bddc961b957a682935cb346f3bca4c | [
"MIT"
] | 25 | 2020-11-02T23:33:32.000Z | 2022-03-14T22:57:54.000Z | mil/dimensionality_reduction/__init__.py | yangsenwxy/mil | 8e6b6f0b55bddc961b957a682935cb346f3bca4c | [
"MIT"
] | 4 | 2021-06-14T05:46:37.000Z | 2021-07-12T16:25:26.000Z | mil/dimensionality_reduction/__init__.py | yangsenwxy/mil | 8e6b6f0b55bddc961b957a682935cb346f3bca4c | [
"MIT"
] | 12 | 2020-12-28T04:02:06.000Z | 2022-02-04T10:33:44.000Z | from mil.dimensionality_reduction.wrapper import * | 50 | 50 | 0.88 | 6 | 50 | 7.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 50 | 1 | 50 | 50 | 0.914894 | 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 |
4a7e40bfd53954e1918131ca8c617fbad5a7811c | 58 | py | Python | __init__.py | Terfin/pyodata-old | 69282c7414d6d39e405392a941ba2ca06aa39167 | [
"MIT"
] | 1 | 2015-04-13T15:16:11.000Z | 2015-04-13T15:16:11.000Z | __init__.py | Terfin/pyodata-old | 69282c7414d6d39e405392a941ba2ca06aa39167 | [
"MIT"
] | null | null | null | __init__.py | Terfin/pyodata-old | 69282c7414d6d39e405392a941ba2ca06aa39167 | [
"MIT"
] | null | null | null | from edm import *
import utils
__all__ = ['utils', 'edm'] | 14.5 | 26 | 0.672414 | 8 | 58 | 4.375 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 58 | 4 | 26 | 14.5 | 0.729167 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4a9eb5541498358c77a74ec7fb0624d9264ffbf4 | 256 | py | Python | src/yellowdog_client/model/compute_namespace_filter.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/compute_namespace_filter.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | src/yellowdog_client/model/compute_namespace_filter.py | yellowdog/yellowdog-sdk-python-public | da69a7d6e45c92933e34fefcaef8b5d98dcd6036 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from datetime import datetime
from typing import Optional
from .filter import Filter
@dataclass
class ComputeNamespaceFilter(Filter):
fromTime: datetime
untilTime: datetime
createdById: Optional[str] = None
| 19.692308 | 37 | 0.792969 | 28 | 256 | 7.25 | 0.535714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164063 | 256 | 12 | 38 | 21.333333 | 0.948598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.444444 | 0 | 0.888889 | 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 |
4aaf6e92a9cb1372177d4b35f000c03b79dbb343 | 72 | py | Python | ObjectModeling/SnakeAndLadder/SankeAndLadder/Player.py | riyasyash/CompetitiveProgramming | 9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e | [
"Apache-2.0"
] | null | null | null | ObjectModeling/SnakeAndLadder/SankeAndLadder/Player.py | riyasyash/CompetitiveProgramming | 9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e | [
"Apache-2.0"
] | 79 | 2019-01-26T10:45:16.000Z | 2022-02-21T22:16:24.000Z | ObjectModeling/SnakeAndLadder/SankeAndLadder/Player.py | riyasyash/CompetitiveProgramming | 9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e | [
"Apache-2.0"
] | null | null | null | class Player:
"""
class representing the Player
"""
pass | 14.4 | 33 | 0.569444 | 7 | 72 | 5.857143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 72 | 5 | 34 | 14.4 | 0.854167 | 0.402778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
4abed48ce411fee7e6199b6605b4a8624dc2fecb | 149 | py | Python | apps/splash/urls.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 32 | 2017-02-22T13:38:38.000Z | 2022-03-31T23:29:54.000Z | apps/splash/urls.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 694 | 2017-02-15T23:09:52.000Z | 2022-03-31T23:16:07.000Z | apps/splash/urls.py | Kpaubert/onlineweb4 | 9ac79f163bc3a816db57ffa8477ea88770d97807 | [
"MIT"
] | 35 | 2017-09-02T21:13:09.000Z | 2022-02-21T11:30:30.000Z | from django.conf.urls import url
from apps.splash import views
urlpatterns = [url(r"^events.ics$", views.calendar_export, name="splash_calendar")]
| 24.833333 | 83 | 0.771812 | 22 | 149 | 5.136364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100671 | 149 | 5 | 84 | 29.8 | 0.843284 | 0 | 0 | 0 | 0 | 0 | 0.181208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4ac29a1ee9d536e0e36a903d3559c7f0540d544f | 137 | py | Python | runcmd.py | josephworks/PythonWS | 7391580de63291018094037f87b930fe44c6eae8 | [
"MIT"
] | null | null | null | runcmd.py | josephworks/PythonWS | 7391580de63291018094037f87b930fe44c6eae8 | [
"MIT"
] | 3 | 2019-02-23T00:30:07.000Z | 2020-09-28T05:25:20.000Z | runcmd.py | josephworks/PythonWS | 7391580de63291018094037f87b930fe44c6eae8 | [
"MIT"
] | null | null | null | import os
cmd = "neofetch"
returned_value = os.system(cmd) # returns the exit code in unix
# print('returned value:', returned_value)
| 19.571429 | 64 | 0.729927 | 20 | 137 | 4.9 | 0.7 | 0.397959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160584 | 137 | 6 | 65 | 22.833333 | 0.852174 | 0.510949 | 0 | 0 | 0 | 0 | 0.125 | 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 |
4ac990d9e9fd9abdfe6e4840e582d4451c2dba64 | 467 | py | Python | system_c/test_sun.py | objarni/gothpy_fun | 9678092e7da16bc307b263aa963863672901f050 | [
"MIT"
] | null | null | null | system_c/test_sun.py | objarni/gothpy_fun | 9678092e7da16bc307b263aa963863672901f050 | [
"MIT"
] | null | null | null | system_c/test_sun.py | objarni/gothpy_fun | 9678092e7da16bc307b263aa963863672901f050 | [
"MIT"
] | null | null | null | import unittest
from sun import update_lamp_status
class TestSun(unittest.TestCase):
def test_lamp_is_set_to_red_when_sun_is_fully_up(self):
# TODO
pass
def test_lamp_is_set_to_orange_near_sunrise(self):
# TODO
pass
def test_lamp_is_set_to_red_near_sunset(self):
... | 17.296296 | 59 | 0.670236 | 68 | 467 | 4 | 0.470588 | 0.102941 | 0.161765 | 0.191176 | 0.419118 | 0.419118 | 0.419118 | 0.330882 | 0.330882 | 0 | 0 | 0 | 0.269807 | 467 | 26 | 60 | 17.961538 | 0.797654 | 0.040685 | 0 | 0.307692 | 0 | 0 | 0.018059 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.307692 | false | 0.307692 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4370d982f7f45cbbd47fe41230721ba35ec1719f | 1,633 | py | Python | 05_lists_challenges/23_basketball_roster.py | r7asmu7s/art_of_doing_python | 62a03bcca084046c319976fc308bf3de3a2d412d | [
"Unlicense"
] | null | null | null | 05_lists_challenges/23_basketball_roster.py | r7asmu7s/art_of_doing_python | 62a03bcca084046c319976fc308bf3de3a2d412d | [
"Unlicense"
] | null | null | null | 05_lists_challenges/23_basketball_roster.py | r7asmu7s/art_of_doing_python | 62a03bcca084046c319976fc308bf3de3a2d412d | [
"Unlicense"
] | null | null | null | print('Welcome to the Basketball Roster Program')
basketball_roster = []
point_guard = input('Who is your point guard? ').title()
basketball_roster.append(point_guard)
shooting_guard = input('Who is your shooting guard? ').title()
basketball_roster.append(shooting_guard)
small_forward = input('Who is your small forwa... | 46.657143 | 91 | 0.724434 | 240 | 1,633 | 4.804167 | 0.233333 | 0.319167 | 0.197745 | 0.173461 | 0.655681 | 0.428448 | 0.428448 | 0.428448 | 0.428448 | 0.428448 | 0 | 0.011573 | 0.100429 | 1,633 | 35 | 92 | 46.657143 | 0.773315 | 0 | 0 | 0.413793 | 0 | 0 | 0.363525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.586207 | 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 |
43b87f787852624cc9ba97c0fc602a160515384f | 342 | py | Python | hermod-python/src/AsyncioMqttErrors.py | syntithenai/hermod | d456cc34ce8da2db6be60e83d51fecc0de16ba0b | [
"BSD-2-Clause-FreeBSD"
] | 91 | 2019-01-28T13:32:14.000Z | 2021-12-08T03:23:56.000Z | hermod-python/src/AsyncioMqttErrors.py | syntithenai/hermod | d456cc34ce8da2db6be60e83d51fecc0de16ba0b | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2019-02-22T23:44:24.000Z | 2020-10-12T12:35:38.000Z | hermod-python/src/AsyncioMqttErrors.py | syntithenai/hermod | d456cc34ce8da2db6be60e83d51fecc0de16ba0b | [
"BSD-2-Clause-FreeBSD"
] | 21 | 2019-03-23T11:46:04.000Z | 2021-08-25T08:59:03.000Z | # SPDX-License-Identifier: BSD-3-Clause
class MqttError(Exception):
"""Base exception for all asyncio-mqtt exceptions."""
pass
class MqttCodeError(MqttError):
def __init__(self, rc, *args):
super().__init__(*args)
self.rc = rc
def __str__(self):
return f'[code:{self.rc}] ... | 21.375 | 57 | 0.625731 | 41 | 342 | 4.829268 | 0.658537 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003759 | 0.222222 | 342 | 15 | 58 | 22.8 | 0.740602 | 0.251462 | 0 | 0 | 0 | 0 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
43bfaff3f3d858c1de0a4c16848991586ca600e8 | 5,592 | py | Python | aim/web/migrations/versions/5ae8371b7481_.py | admariner/aim | 4c143ea40acf3531abfa69f66503428d73d9fedc | [
"Apache-2.0"
] | 2,195 | 2020-01-23T03:08:11.000Z | 2022-03-31T14:32:19.000Z | aim/web/migrations/versions/5ae8371b7481_.py | admariner/aim | 4c143ea40acf3531abfa69f66503428d73d9fedc | [
"Apache-2.0"
] | 696 | 2020-02-08T21:55:45.000Z | 2022-03-31T16:52:22.000Z | aim/web/migrations/versions/5ae8371b7481_.py | admariner/aim | 4c143ea40acf3531abfa69f66503428d73d9fedc | [
"Apache-2.0"
] | 150 | 2020-03-27T10:44:25.000Z | 2022-03-21T21:29:41.000Z | """empty message
Revision ID: 5ae8371b7481
Revises: 11672b13f92c
Create Date: 2021-06-10 14:13:40.552387
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5ae8371b7481'
down_revision = '11672b13f92c'
branch_labels = None
depends_on = None
def upgrade():
# ... | 54.291262 | 89 | 0.726395 | 745 | 5,592 | 5.194631 | 0.183893 | 0.138501 | 0.235142 | 0.325581 | 0.798191 | 0.793023 | 0.761757 | 0.624031 | 0.501034 | 0.257364 | 0 | 0.011254 | 0.110157 | 5,592 | 102 | 90 | 54.823529 | 0.766479 | 0.052754 | 0 | 0.119048 | 0 | 0 | 0.335171 | 0.2673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.02381 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
43cd8bfd7444dcc0be5055d6f18c7f966dd8524e | 122 | py | Python | example/to_run.py | andrewilyas/gridder | 198e0e1d21895847b94a5c35c9826cdc2232820c | [
"MIT"
] | 1 | 2021-06-22T20:34:29.000Z | 2021-06-22T20:34:29.000Z | example/to_run.py | andrewilyas/gridder | 198e0e1d21895847b94a5c35c9826cdc2232820c | [
"MIT"
] | null | null | null | example/to_run.py | andrewilyas/gridder | 198e0e1d21895847b94a5c35c9826cdc2232820c | [
"MIT"
] | null | null | null | import tensorflow as tf
import time
def main(args):
print("x * y * z:", args.x * args.y * args.z)
time.sleep(10)
| 17.428571 | 49 | 0.614754 | 22 | 122 | 3.409091 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.229508 | 122 | 6 | 50 | 20.333333 | 0.776596 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
78f1a1b76c1f5d9cb5d45861c1e6045030ba39a8 | 130 | py | Python | src/transform.py | CedricFR/dfply-extensions | e2db8767bab6a52328ca26f585d83ad30e2fcd27 | [
"Apache-2.0"
] | null | null | null | src/transform.py | CedricFR/dfply-extensions | e2db8767bab6a52328ca26f585d83ad30e2fcd27 | [
"Apache-2.0"
] | null | null | null | src/transform.py | CedricFR/dfply-extensions | e2db8767bab6a52328ca26f585d83ad30e2fcd27 | [
"Apache-2.0"
] | null | null | null | from dfply import *
@pipe
def narep(df, val=0):
df = df.fillna(val)
return df
@dfpipe
def do(df, todo):
return todo
| 11.818182 | 23 | 0.623077 | 22 | 130 | 3.681818 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 0.253846 | 130 | 10 | 24 | 13 | 0.824742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
603b30300132149af66f9d6a1a05952232bd4643 | 260 | py | Python | chp3/3_8seeing_the_world.py | veragal/pycc | 09a001b908c34588975dea8e337ccea33597c4cc | [
"MIT"
] | 2 | 2018-01-26T13:22:00.000Z | 2018-01-28T03:54:50.000Z | chp3/3_8seeing_the_world.py | veragal/pycc | 09a001b908c34588975dea8e337ccea33597c4cc | [
"MIT"
] | null | null | null | chp3/3_8seeing_the_world.py | veragal/pycc | 09a001b908c34588975dea8e337ccea33597c4cc | [
"MIT"
] | null | null | null | # Copyright (c) Vera Galstyan Jan 25,2018
places = ['london','paris','barcelona','rome','berlin']
print(sorted(places))
print(places)
places.reverse
print(places)
places,reverse
print(places)
places.sort()
print(places)
places.sort(reverse=True)
print(places) | 21.666667 | 55 | 0.753846 | 36 | 260 | 5.444444 | 0.5 | 0.280612 | 0.346939 | 0.244898 | 0.331633 | 0.331633 | 0.331633 | 0 | 0 | 0 | 0 | 0.025 | 0.076923 | 260 | 12 | 56 | 21.666667 | 0.791667 | 0.15 | 0 | 0.454545 | 0 | 0 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 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 |
60442c77c322af37aff7c74bc661e6dff6cf3ec7 | 21 | py | Python | test/main.py | mallikarjunagutta/gitrepo1 | 8884ad95063e16a1b97a119ac7c1fd659189a9b9 | [
"Apache-2.0"
] | null | null | null | test/main.py | mallikarjunagutta/gitrepo1 | 8884ad95063e16a1b97a119ac7c1fd659189a9b9 | [
"Apache-2.0"
] | null | null | null | test/main.py | mallikarjunagutta/gitrepo1 | 8884ad95063e16a1b97a119ac7c1fd659189a9b9 | [
"Apache-2.0"
] | null | null | null | Code for featrure 1
| 10.5 | 20 | 0.761905 | 4 | 21 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.238095 | 21 | 1 | 21 | 21 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6046b50ee6e2fd5c6bbc88a129839aa5e4811838 | 82 | py | Python | tests/__init__.py | Brinfer/ClearWay | 208abe652350ae457f4195ac3e73e6006738974a | [
"MIT"
] | null | null | null | tests/__init__.py | Brinfer/ClearWay | 208abe652350ae457f4195ac3e73e6006738974a | [
"MIT"
] | null | null | null | tests/__init__.py | Brinfer/ClearWay | 208abe652350ae457f4195ac3e73e6006738974a | [
"MIT"
] | null | null | null | """Top level module for ClearWay."""
import sys
sys.path.append("../clearway")
| 11.714286 | 36 | 0.670732 | 11 | 82 | 5 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134146 | 82 | 6 | 37 | 13.666667 | 0.774648 | 0.365854 | 0 | 0 | 0 | 0 | 0.23913 | 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 |
6053e2a21c53afcba08df8786c54bda5d6f43e4e | 2,610 | py | Python | repos/fdbt-reference-data-service/src/uploaders/csv_uploader/db_queries.py | fares-data-build-tool/create-data | d4e73228e76a4c6dc24ef8ed78c73cc62cf45c77 | [
"MIT"
] | 6 | 2021-06-22T09:01:17.000Z | 2022-03-04T12:48:25.000Z | repos/fdbt-reference-data-service/src/uploaders/csv_uploader/db_queries.py | fares-data-build-tool/create-data | d4e73228e76a4c6dc24ef8ed78c73cc62cf45c77 | [
"MIT"
] | 18 | 2021-08-04T09:23:10.000Z | 2022-02-18T10:07:18.000Z | repos/fdbt-reference-data-service/src/uploaders/csv_uploader/db_queries.py | fares-data-build-tool/create-data | d4e73228e76a4c6dc24ef8ed78c73cc62cf45c77 | [
"MIT"
] | 1 | 2021-06-30T16:27:27.000Z | 2021-06-30T16:27:27.000Z | def public_name_query(bucket_name):
return ["SET FOREIGN_KEY_CHECKS = 0;", "CREATE TABLE nocPublicNameNew LIKE nocPublicName;", f"LOAD DATA FROM S3 's3-eu-west-2://{bucket_name}/PublicName.csv' REPLACE INTO TABLE nocPublicNameNew FIELDS TERMINATED BY ',' ENCLOSED BY '\"' ESCAPED BY '' LINES TERMINATED BY '\\n' IGNO... | 174 | 890 | 0.767816 | 319 | 2,610 | 6.184953 | 0.45768 | 0.040547 | 0.052712 | 0.07704 | 0.351749 | 0.341612 | 0.329954 | 0.303599 | 0.303599 | 0.303599 | 0 | 0.010412 | 0.116858 | 2,610 | 14 | 891 | 186.428571 | 0.845553 | 0 | 0 | 0 | 0 | 0.75 | 0.363602 | 0.065517 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
606f26e2f96625cad6fb51c82a132c17114e38ef | 1,139 | py | Python | tests/test_poa.py | LBR-FUYI/CIRI-long | 66c899331eb05bd304388a1bed11c1310afd9149 | [
"MIT"
] | 1 | 2021-05-31T10:33:07.000Z | 2021-05-31T10:33:07.000Z | tests/test_poa.py | LBR-FUYI/CIRI-long | 66c899331eb05bd304388a1bed11c1310afd9149 | [
"MIT"
] | null | null | null | tests/test_poa.py | LBR-FUYI/CIRI-long | 66c899331eb05bd304388a1bed11c1310afd9149 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from spoa import poa
def test_poa():
fasta = (
('0-145', 'TCCCGGTCATCATAACCCCGATCGTACCCTCTGTCATAATAGTCTCGGCGGCGAGAACTGCCACTGTAAATCTGATCCCTGTCTTGAGCTGCTCTCCATCCACCTCCCTCCACCACCTCCTCCTCTGTATGATCTGCTGTAATAG'),
('145-289', 'TCCCGGTCATCATAACCCCGATCATTGCCACCTGTCATAGTCTCGGCGG... | 56.95 | 169 | 0.794557 | 55 | 1,139 | 16.272727 | 0.727273 | 0.015642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043956 | 0.121159 | 1,139 | 19 | 170 | 59.947368 | 0.85015 | 0.017559 | 0 | 0 | 0 | 0 | 0.727025 | 0.683349 | 0 | 1 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 0.071429 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6092905a8c6d706156392c892bf98f7d2518ab08 | 130 | py | Python | nmartind/hello_world.py | nikiollie/my-hello-world | 4856104ff9716f22bf5918203cd17c49113f07e4 | [
"Apache-2.0"
] | null | null | null | nmartind/hello_world.py | nikiollie/my-hello-world | 4856104ff9716f22bf5918203cd17c49113f07e4 | [
"Apache-2.0"
] | null | null | null | nmartind/hello_world.py | nikiollie/my-hello-world | 4856104ff9716f22bf5918203cd17c49113f07e4 | [
"Apache-2.0"
] | null | null | null | def hello():
hello = input("Enter hello in a language: ")
name = input("Enter your name: ")
print(hello + " " + name)
| 26 | 48 | 0.576923 | 17 | 130 | 4.411765 | 0.588235 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261538 | 130 | 4 | 49 | 32.5 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.25 | 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 |
609f62ee36d6e2a007f0846b1888b95c1a57c9e9 | 909 | py | Python | sdk/python/pulumi-run-my-darn-container/__init__.py | pulumi/pulumi-run-my-darn-container | 1fb13881d245f852b1d44d96cefb8fbb329c7691 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi-run-my-darn-container/__init__.py | pulumi/pulumi-run-my-darn-container | 1fb13881d245f852b1d44d96cefb8fbb329c7691 | [
"Apache-2.0"
] | 1 | 2021-10-15T02:46:38.000Z | 2021-10-15T02:46:38.000Z | sdk/python/pulumi-run-my-darn-container/__init__.py | pulumi/pulumi-run-my-darn-container | 1fb13881d245f852b1d44d96cefb8fbb329c7691 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from . import _utilities
import typing
# Export this package's modules as members:
from .aws_instance import *
from .azure_instance import *
from .gcp_inst... | 23.921053 | 80 | 0.677668 | 115 | 909 | 5.295652 | 0.495652 | 0.065681 | 0.118227 | 0.236453 | 0.270936 | 0.08867 | 0 | 0 | 0 | 0 | 0 | 0.001295 | 0.150715 | 909 | 37 | 81 | 24.567568 | 0.787565 | 0.218922 | 0 | 0.125 | 1 | 0 | 0.666667 | 0.395745 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1875 | 0 | 0.1875 | 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 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
60bdaa522be762e68337944e07f209ef913b3c0f | 144 | py | Python | sijuiacion_lang/preserved_registers.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 21 | 2019-10-13T14:11:32.000Z | 2021-12-14T02:42:12.000Z | sijuiacion_lang/preserved_registers.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 1 | 2020-01-07T13:14:46.000Z | 2020-01-09T16:58:07.000Z | sijuiacion_lang/preserved_registers.py | RemuLang/sijuiacion-lang | e3b5be79fb7afadc0790311e612ddd430b3f0b9d | [
"MIT"
] | 1 | 2020-08-13T16:17:09.000Z | 2020-08-13T16:17:09.000Z | REG_CLOSURE = "$CLOSURE"
REG_RET = "$RET"
REG_LOCAL_STACK = "$LOCAL_STACK"
# for Python 3.8- only
REG_TEST_INDIR_JUMPED = "$TEST_INDIR_JUMPED"
| 20.571429 | 44 | 0.743056 | 23 | 144 | 4.217391 | 0.565217 | 0.206186 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.125 | 144 | 6 | 45 | 24 | 0.753968 | 0.138889 | 0 | 0 | 0 | 0 | 0.344262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
60f10b39ed9914e8c84b186f6207f6d85a8b279a | 348 | py | Python | logstash/__init__.py | israel-fl/python3-logstash | 35e2d4df5f60c4560587664df9847fdd509fd99c | [
"MIT"
] | 12 | 2018-03-15T10:47:03.000Z | 2021-02-03T05:32:56.000Z | logstash/__init__.py | israel-fl/python3-logstash | 35e2d4df5f60c4560587664df9847fdd509fd99c | [
"MIT"
] | 10 | 2018-07-11T18:32:20.000Z | 2020-12-11T15:17:15.000Z | logstash/__init__.py | israel-fl/python3-logstash | 35e2d4df5f60c4560587664df9847fdd509fd99c | [
"MIT"
] | 16 | 2018-06-27T17:41:50.000Z | 2020-07-30T17:10:28.000Z |
from logstash.formatter import LogstashFormatterVersion0, LogstashFormatterVersion1
from logstash.handler_tcp import TCPLogstashHandler
from logstash.handler_udp import UDPLogstashHandler, LogstashHandler
try:
from logstash.handler_amqp import AMQPLogstashHandler
except:
# you need to install AMQP support to e... | 31.636364 | 83 | 0.844828 | 38 | 348 | 7.657895 | 0.631579 | 0.164948 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.126437 | 348 | 10 | 84 | 34.8 | 0.950658 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
60f59d7a44e042731e40cabb158f6c9f2c9728d3 | 167 | py | Python | sites/mysites/views.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | sites/mysites/views.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | sites/mysites/views.py | cmwaura/Final_Red_Scrap | 6b1b78de7d1129cda787e9f4688ddd409af39eb5 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def testcase(request):
template = "index.html"
context = {}
return render(request, template, context) | 23.857143 | 42 | 0.754491 | 21 | 167 | 6 | 0.809524 | 0.238095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143713 | 167 | 7 | 42 | 23.857143 | 0.881119 | 0.137725 | 0 | 0 | 0 | 0 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
88003069bcd917571757b0ad1d74b032ca513f66 | 295 | py | Python | src/si/supervised/__init__.py | pg42862/Sistemas_Inteligentes_para_a_MBIONF | 5dd5b487da5b3c6a0989274598c911cc639138a3 | [
"Apache-2.0"
] | null | null | null | src/si/supervised/__init__.py | pg42862/Sistemas_Inteligentes_para_a_MBIONF | 5dd5b487da5b3c6a0989274598c911cc639138a3 | [
"Apache-2.0"
] | null | null | null | src/si/supervised/__init__.py | pg42862/Sistemas_Inteligentes_para_a_MBIONF | 5dd5b487da5b3c6a0989274598c911cc639138a3 | [
"Apache-2.0"
] | 1 | 2021-11-15T16:15:50.000Z | 2021-11-15T16:15:50.000Z | from .KNN import KNN
from .LinearRegression import LinearRegression, LinearRegressionReg
from .LogisticRegression import LogisticRegression, LogisticRegressionReg
from .DecisionTree import DecisionTree
from .Ensemble import Ensemble, majority, average
from .NN import *
from .Model import Model
| 36.875 | 73 | 0.850847 | 31 | 295 | 8.096774 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108475 | 295 | 7 | 74 | 42.142857 | 0.954373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
714ccbe9d09753e3aa7597105b5b39506f2bdd8d | 111 | py | Python | runtime/opt/taupage/init.d/91-setup-rkhunter.py | pc-alves/taupage | 07025d45772d47b43e0a20d7ee21f10a6ff5162d | [
"Apache-2.0"
] | 49 | 2015-04-14T13:55:10.000Z | 2020-02-14T22:55:43.000Z | runtime/opt/taupage/init.d/91-setup-rkhunter.py | pc-alves/taupage | 07025d45772d47b43e0a20d7ee21f10a6ff5162d | [
"Apache-2.0"
] | 538 | 2015-04-01T10:53:09.000Z | 2020-04-17T08:43:36.000Z | runtime/opt/taupage/init.d/91-setup-rkhunter.py | pc-alves/taupage | 07025d45772d47b43e0a20d7ee21f10a6ff5162d | [
"Apache-2.0"
] | 67 | 2015-05-05T19:48:30.000Z | 2020-11-04T04:59:00.000Z | #!/usr/bin/env python3
from subprocess import call
# update rkhunter database
call(["rkhunter", "--propupd"])
| 18.5 | 31 | 0.72973 | 14 | 111 | 5.785714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.117117 | 111 | 5 | 32 | 22.2 | 0.816327 | 0.414414 | 0 | 0 | 0 | 0 | 0.269841 | 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 |
714e824993dd532b34bfcab13ffac69d84534399 | 39 | py | Python | plugin/src/test/resources/refactoring/extractmethod/BinaryExpression.before.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | null | null | null | plugin/src/test/resources/refactoring/extractmethod/BinaryExpression.before.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | 11 | 2017-02-27T22:35:32.000Z | 2021-12-24T08:07:40.000Z | plugin/src/test/resources/refactoring/extractmethod/BinaryExpression.before.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | null | null | null | aaa = <selection>bbb</selection> && ccc | 39 | 39 | 0.692308 | 5 | 39 | 5.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 39 | 1 | 39 | 39 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
715a18868700e8505fee64f536f82189d12c71c5 | 69 | py | Python | trapperkeeper/exceptions.py | yytsui/trapperkeeper | 69e6fe2fcd93fb8046324a162cd1e00679032149 | [
"Apache-2.0"
] | 61 | 2015-01-08T03:32:20.000Z | 2022-03-23T22:49:41.000Z | trapperkeeper/exceptions.py | yytsui/trapperkeeper | 69e6fe2fcd93fb8046324a162cd1e00679032149 | [
"Apache-2.0"
] | 18 | 2015-03-23T21:31:53.000Z | 2019-09-24T02:01:45.000Z | trapperkeeper/exceptions.py | isabella232/trapperkeeper | 69e6fe2fcd93fb8046324a162cd1e00679032149 | [
"Apache-2.0"
] | 22 | 2015-03-23T21:29:52.000Z | 2020-11-18T17:49:40.000Z | class Error(Exception):
pass
class ConfigError(Error):
pass
| 11.5 | 25 | 0.695652 | 8 | 69 | 6 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 69 | 5 | 26 | 13.8 | 0.888889 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
717d391cd6af8105dfa242db81fa29edc977d521 | 743 | py | Python | powderday/__init__.py | jwise77/powderday | 66a5ce6b13f0e96ab9e5beeef0da339d36f18984 | [
"BSD-3-Clause"
] | null | null | null | powderday/__init__.py | jwise77/powderday | 66a5ce6b13f0e96ab9e5beeef0da339d36f18984 | [
"BSD-3-Clause"
] | null | null | null | powderday/__init__.py | jwise77/powderday | 66a5ce6b13f0e96ab9e5beeef0da339d36f18984 | [
"BSD-3-Clause"
] | null | null | null | from . import front_ends
from . import agn_models
from . import agn_spectrum
from . import SED_gen
from . import analytics
from . import backwards_compatibility
from . import config
from . import constants
from . import cutout_data
from . import dust_grid_gen
from . import enzo_tributary
from . import error_handling
fr... | 26.535714 | 37 | 0.818304 | 107 | 743 | 5.439252 | 0.439252 | 0.463918 | 0.044674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145357 | 743 | 27 | 38 | 27.518519 | 0.916535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
71c48142fca70b957443a13df6d17949c858a35a | 15,993 | py | Python | aries_cloudagent/multitenant/admin/tests/test_routes.py | brianorwhatever/aries-cloudagent-python | 9eb97df5956ed1156e6de353d87455b8df952483 | [
"Apache-2.0"
] | null | null | null | aries_cloudagent/multitenant/admin/tests/test_routes.py | brianorwhatever/aries-cloudagent-python | 9eb97df5956ed1156e6de353d87455b8df952483 | [
"Apache-2.0"
] | 22 | 2021-02-13T18:48:53.000Z | 2021-04-27T07:29:50.000Z | aries_cloudagent/multitenant/admin/tests/test_routes.py | brianorwhatever/aries-cloudagent-python | 9eb97df5956ed1156e6de353d87455b8df952483 | [
"Apache-2.0"
] | 2 | 2021-02-19T17:53:37.000Z | 2021-02-19T17:56:48.000Z | from asynctest import TestCase as AsyncTestCase
from asynctest import mock as async_mock
from marshmallow.exceptions import ValidationError
from ...manager import (
MultitenantManager,
MultitenantManagerError,
)
from ....admin.request_context import AdminRequestContext
from ....wallet.models.wallet_record impo... | 41.007692 | 88 | 0.626274 | 1,682 | 15,993 | 5.551724 | 0.08799 | 0.061683 | 0.05997 | 0.034269 | 0.787106 | 0.759692 | 0.73067 | 0.700257 | 0.653673 | 0.62069 | 0 | 0.002885 | 0.284875 | 15,993 | 389 | 89 | 41.113111 | 0.813587 | 0.000813 | 0 | 0.535826 | 0 | 0 | 0.096132 | 0.001439 | 0 | 0 | 0 | 0 | 0.084112 | 1 | 0 | false | 0 | 0.028037 | 0 | 0.031153 | 0.003115 | 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 |
71e5e735b6aec0f67a463c84b47a132ba69e0466 | 361 | py | Python | eeyore/datasets/idataset.py | papamarkou/eeyore | 4cd9b5a619cd095035aa93f348d1c937629aa8a3 | [
"MIT"
] | 6 | 2020-04-22T18:56:46.000Z | 2021-09-09T15:57:48.000Z | eeyore/datasets/idataset.py | papamarkou/eeyore | 4cd9b5a619cd095035aa93f348d1c937629aa8a3 | [
"MIT"
] | 19 | 2019-11-14T21:22:21.000Z | 2020-10-31T16:18:36.000Z | eeyore/datasets/idataset.py | scidom/eeyore | 4cd9b5a619cd095035aa93f348d1c937629aa8a3 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
class IDataset(Dataset):
def __init__(self, dataset):
self.dataset = dataset
def __repr__(self):
return f'IDataset: indexed Dataset'
def __len__(self):
return self.dataset.__len__()
def __getitem__(self, idx):
x, y = self.dataset._... | 22.5625 | 44 | 0.642659 | 45 | 361 | 4.622222 | 0.444444 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257618 | 361 | 15 | 45 | 24.066667 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0.069252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.181818 | 0.818182 | 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 |
e099685270e041e28a9532debadb00d15848152d | 1,770 | py | Python | VSCode_work/chapter3/chapter3_3_6.py | syncccc/Python-Crash-Course | 51fe429dd606583a790f3c1603bb3439382c09e0 | [
"MIT"
] | 1 | 2021-08-15T15:58:21.000Z | 2021-08-15T15:58:21.000Z | VSCode_work/chapter3/chapter3_3_6.py | syncccc/Python-Crash-Course | 51fe429dd606583a790f3c1603bb3439382c09e0 | [
"MIT"
] | null | null | null | VSCode_work/chapter3/chapter3_3_6.py | syncccc/Python-Crash-Course | 51fe429dd606583a790f3c1603bb3439382c09e0 | [
"MIT"
] | null | null | null | # 创建列表
invited_persons = ['dad','mother','sister','cui ping']
# 打印邀请消息
print("Dear " + invited_persons[0].title() + "," + " can you have dinner with me?")
print("\nDear " + invited_persons[1].title() + "," + " can you have dinner with me?")
print("\nDear " + invited_persons[2].title() + "," + " can you have dinner wit... | 47.837838 | 85 | 0.654237 | 244 | 1,770 | 4.651639 | 0.22541 | 0.2837 | 0.145374 | 0.198238 | 0.670485 | 0.670485 | 0.670485 | 0.646696 | 0.646696 | 0.646696 | 0 | 0.012625 | 0.149718 | 1,770 | 37 | 86 | 47.837838 | 0.741528 | 0.040678 | 0 | 0.416667 | 0 | 0 | 0.415139 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.791667 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
e0a987b9dc1a308bd7ce05728712db9eafb10e93 | 1,483 | py | Python | atqo/bases.py | endremborza/atqo | 00a6c6e4c1d9a43d803c717ac8d529a1eff4feb3 | [
"MIT"
] | null | null | null | atqo/bases.py | endremborza/atqo | 00a6c6e4c1d9a43d803c717ac8d529a1eff4feb3 | [
"MIT"
] | null | null | null | atqo/bases.py | endremborza/atqo | 00a6c6e4c1d9a43d803c717ac8d529a1eff4feb3 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from asyncio import Future
from functools import cached_property
from typing import TYPE_CHECKING, Type
from structlog import get_logger
if TYPE_CHECKING:
from .core import SchedulerTask # pragma: no cover
class TaskPropertyBase: # pragma: no cover
# TODO
def __repr... | 22.815385 | 75 | 0.641268 | 182 | 1,483 | 4.923077 | 0.39011 | 0.035714 | 0.058036 | 0.037946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254214 | 1,483 | 64 | 76 | 23.171875 | 0.810127 | 0.081591 | 0 | 0.159091 | 0 | 0 | 0.048255 | 0.025241 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.272727 | false | 0.068182 | 0.136364 | 0.136364 | 0.659091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 4 |
e0df56b52c07c40f87c2172f71484f1ef144ed01 | 87 | py | Python | test1.py | kgz/PyLog | bca13a52fb3ad9cd083c22a3f67891c72954c980 | [
"MIT"
] | null | null | null | test1.py | kgz/PyLog | bca13a52fb3ad9cd083c22a3f67891c72954c980 | [
"MIT"
] | null | null | null | test1.py | kgz/PyLog | bca13a52fb3ad9cd083c22a3f67891c72954c980 | [
"MIT"
] | null | null | null | from PyLog import Log
class test1:
def __init__(self) -> None:
Log("here") | 17.4 | 31 | 0.62069 | 12 | 87 | 4.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.264368 | 87 | 5 | 32 | 17.4 | 0.765625 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 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 |
e0ff371d6fb2f345bee4a4eb8fc8cd7079109d32 | 168 | py | Python | psipy/io/tests/test_util.py | jj-gonzalez-aviles/PsiPy | 415436b1f449e7125e9e8ff31385e9fc70af28a7 | [
"MIT"
] | 4 | 2021-05-12T07:28:22.000Z | 2022-03-23T13:38:14.000Z | psipy/io/tests/test_util.py | jj-gonzalez-aviles/PsiPy | 415436b1f449e7125e9e8ff31385e9fc70af28a7 | [
"MIT"
] | 26 | 2021-07-14T19:26:32.000Z | 2022-03-31T13:54:51.000Z | psipy/io/tests/test_util.py | jj-gonzalez-aviles/PsiPy | 415436b1f449e7125e9e8ff31385e9fc70af28a7 | [
"MIT"
] | 4 | 2021-02-11T17:04:00.000Z | 2022-03-13T16:31:08.000Z | import pytest
from psipy.io import util
def test_HDF4_error(tmp_path):
with pytest.raises(FileNotFoundError):
util.HDF4File(tmp_path / 'not_a_file.hdf')
| 18.666667 | 50 | 0.744048 | 25 | 168 | 4.76 | 0.8 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.166667 | 168 | 8 | 51 | 21 | 0.835714 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 |
4600fce06f4d288024adcff82d548cf3c9491a64 | 100 | py | Python | bureau/utilities/apps.py | clairempr/bureau | c9fd114e637829b4e9ff643459d15602cc2efc2f | [
"Apache-2.0"
] | 1 | 2019-02-15T09:05:35.000Z | 2019-02-15T09:05:35.000Z | bureau/utilities/apps.py | clairempr/bureau | c9fd114e637829b4e9ff643459d15602cc2efc2f | [
"Apache-2.0"
] | null | null | null | bureau/utilities/apps.py | clairempr/bureau | c9fd114e637829b4e9ff643459d15602cc2efc2f | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class UtilitiesConfig(AppConfig):
name = 'bureau.utilities'
| 16.666667 | 33 | 0.77 | 11 | 100 | 7 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 100 | 5 | 34 | 20 | 0.905882 | 0 | 0 | 0 | 0 | 0 | 0.16 | 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 |
460aabeb2a6938b3517ecc967ec67fa1f7780c98 | 57 | py | Python | python/py-axiom/files/setup.py | davidlrichmond/macports-ports | c79eda419c3963c074e4e9ce31a95296636bd500 | [
"BSD-3-Clause"
] | 1,199 | 2016-10-16T01:55:27.000Z | 2022-03-28T17:07:12.000Z | python/py-axiom/files/setup.py | davidlrichmond/macports-ports | c79eda419c3963c074e4e9ce31a95296636bd500 | [
"BSD-3-Clause"
] | 11,428 | 2016-10-31T16:54:32.000Z | 2022-03-31T22:58:45.000Z | python/py-axiom/files/setup.py | davidlrichmond/macports-ports | c79eda419c3963c074e4e9ce31a95296636bd500 | [
"BSD-3-Clause"
] | 1,772 | 2016-10-16T22:28:33.000Z | 2022-03-31T08:52:24.000Z | from setuptools import setup
setup(use_scm_version=True)
| 19 | 28 | 0.859649 | 9 | 57 | 5.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 57 | 2 | 29 | 28.5 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
460e4f21661c7280492ae99455585d8c35aab147 | 114 | py | Python | main/resources/message_templates.py | ohioh/ohioh_AI_Accumulator_Service | 9f69fcecb03418a3a0c62fef1dc87a23d1df41df | [
"Apache-2.0"
] | 1 | 2020-08-11T18:43:39.000Z | 2020-08-11T18:43:39.000Z | main/resources/message_templates.py | ohioh/-ohioh_AI_Accumulator_Service | 9f69fcecb03418a3a0c62fef1dc87a23d1df41df | [
"Apache-2.0"
] | null | null | null | main/resources/message_templates.py | ohioh/-ohioh_AI_Accumulator_Service | 9f69fcecb03418a3a0c62fef1dc87a23d1df41df | [
"Apache-2.0"
] | null | null | null | def error_message(criteria, message):
return {
'criteria': criteria,
'message': message
}
| 19 | 37 | 0.587719 | 10 | 114 | 6.6 | 0.5 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298246 | 114 | 5 | 38 | 22.8 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
1cc6a8557bde0b7c7963baf9fcab6e27f5fc0337 | 431 | py | Python | 6 kyu_Complete The Pattern # 12.py | mwk48/pattern-series | df25d7741eca2d59a06a96dbee0abc30640cc2a7 | [
"MIT"
] | null | null | null | 6 kyu_Complete The Pattern # 12.py | mwk48/pattern-series | df25d7741eca2d59a06a96dbee0abc30640cc2a7 | [
"MIT"
] | null | null | null | 6 kyu_Complete The Pattern # 12.py | mwk48/pattern-series | df25d7741eca2d59a06a96dbee0abc30640cc2a7 | [
"MIT"
] | null | null | null | def pattern(n):
if n <= 0:
return ""
res = ""
for i in range(n):
if (i+1) != n:
res += " "*i+str((i+1) % 10)+" "*((n-1-i)*2-1) + \
str((i+1) % 10)+" "*i+"\n"
else:
res += " "*i+str((i+1) % 10)+" "*i+"\n"
for i in range(n-2, -1, -1):
... | 28.733333 | 62 | 0.308585 | 71 | 431 | 1.873239 | 0.225352 | 0.090226 | 0.18797 | 0.263158 | 0.654135 | 0.473684 | 0.37594 | 0.37594 | 0.37594 | 0.37594 | 0 | 0.101504 | 0.382831 | 431 | 14 | 63 | 30.785714 | 0.398496 | 0 | 0 | 0.285714 | 0 | 0 | 0.032483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1cce156ccd5085052f192897c3a4f6da8bef23b0 | 561 | py | Python | oop-functions.py | syedmurad1/OOP-Python | d09627269c12ce901677ec1053bdf565861030d7 | [
"MIT"
] | null | null | null | oop-functions.py | syedmurad1/OOP-Python | d09627269c12ce901677ec1053bdf565861030d7 | [
"MIT"
] | null | null | null | oop-functions.py | syedmurad1/OOP-Python | d09627269c12ce901677ec1053bdf565861030d7 | [
"MIT"
] | null | null | null | def sayHi(): # def is for Functions
print("Hello") # need to be indented
sayHi() # to call
print("--------------------------------------------------------")
def sayHi(name):
print("Hello " + name)
sayHi("Syed")
print("--------------------------------------------------------")
def sayHi(name, age):
pr... | 20.777778 | 65 | 0.397504 | 56 | 561 | 3.982143 | 0.392857 | 0.143498 | 0.174888 | 0.2287 | 0.358744 | 0.358744 | 0.358744 | 0.358744 | 0.358744 | 0.358744 | 0 | 0.012658 | 0.15508 | 561 | 26 | 66 | 21.576923 | 0.457806 | 0.085562 | 0 | 0.3125 | 0 | 0 | 0.447937 | 0.330059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.4375 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1ce2741de8abf220456b5b125a9240795c9a788a | 3,598 | py | Python | tests/test_lueftungsanlage_addr.py | fgoettel/wgt | e093e2a003fa6c9d4c2082cebbc95701d7f9089d | [
"Unlicense"
] | null | null | null | tests/test_lueftungsanlage_addr.py | fgoettel/wgt | e093e2a003fa6c9d4c2082cebbc95701d7f9089d | [
"Unlicense"
] | null | null | null | tests/test_lueftungsanlage_addr.py | fgoettel/wgt | e093e2a003fa6c9d4c2082cebbc95701d7f9089d | [
"Unlicense"
] | 1 | 2022-01-29T12:01:47.000Z | 2022-01-29T12:01:47.000Z | """Tests for `wgt` addresses package."""
import pytest
from wgt import WGT
def test_addr():
"""Ensure that the addresses are in sync with documentation.
Doc updated 31.03.2020
"""
# pylint: disable=protected-access,too-many-statements
assert WGT._addr_betriebsart == 100
assert WGT._addr_lu... | 42.329412 | 66 | 0.770984 | 451 | 3,598 | 5.658537 | 0.388027 | 0.232759 | 0.336207 | 0.109718 | 0.276254 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075133 | 0.16398 | 3,598 | 84 | 67 | 42.833333 | 0.773271 | 0.047248 | 0 | 0 | 0 | 0 | 0.002348 | 0 | 0 | 0 | 0 | 0 | 0.929577 | 1 | 0.014085 | true | 0.014085 | 0.028169 | 0 | 0.042254 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1cef55f7c4127baaaa6a27d4a185e0fd69da62a3 | 15,766 | py | Python | tests/test_action.py | NoRedInk/homu | 08343ed076514fc56244f3b3003519adf0b732c0 | [
"MIT"
] | 329 | 2015-07-07T04:33:13.000Z | 2022-02-20T06:08:20.000Z | tests/test_action.py | servo/homu | d6b918f45b4aadfb43ae4cba5b9b80a4f9c00638 | [
"MIT"
] | 189 | 2015-12-10T01:21:06.000Z | 2021-03-12T21:39:16.000Z | tests/test_action.py | NoRedInk/homu | 08343ed076514fc56244f3b3003519adf0b732c0 | [
"MIT"
] | 64 | 2015-12-24T18:56:31.000Z | 2021-07-27T23:12:47.000Z | from collections import OrderedDict
import unittest
from unittest.mock import patch, call
from homu import action
from homu.action import LabelEvent
TRY_CHOOSER_CONFIG = {
"buildbot": {
"builders": ["mac-rel", "mac-wpt", "linux-wpt-1", "linux-wpt-2"],
# keeps the order for testing output
"... | 47.203593 | 288 | 0.690093 | 1,883 | 15,766 | 5.527881 | 0.120021 | 0.057642 | 0.076857 | 0.096071 | 0.829763 | 0.777116 | 0.727255 | 0.667787 | 0.644634 | 0.605149 | 0 | 0.017172 | 0.198465 | 15,766 | 333 | 289 | 47.345345 | 0.806521 | 0.002157 | 0 | 0.560137 | 0 | 0.030928 | 0.232549 | 0.057724 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.120275 | false | 0 | 0.017182 | 0 | 0.140893 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1cf26f94d346a5d9e9b2f68f67548b4541b471be | 85 | py | Python | __init__.py | eiriks/sortekat | 9104f76190b6baa6e78b88a50e4ea83776d99b41 | [
"MIT"
] | null | null | null | __init__.py | eiriks/sortekat | 9104f76190b6baa6e78b88a50e4ea83776d99b41 | [
"MIT"
] | null | null | null | __init__.py | eiriks/sortekat | 9104f76190b6baa6e78b88a50e4ea83776d99b41 | [
"MIT"
] | null | null | null | # this file must be here.
# https://docs.python.org/3/tutorial/modules.html#packages
| 28.333333 | 58 | 0.752941 | 14 | 85 | 4.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.094118 | 85 | 2 | 59 | 42.5 | 0.818182 | 0.929412 | 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 |
1c31c1d12e2620556ec42dcce135fa3807ea0e6f | 108 | py | Python | module1-entry point.py | dronovroman/gh2021 | bd01d55b20c02916f28213776224f31bd96ac479 | [
"BSD-3-Clause"
] | null | null | null | module1-entry point.py | dronovroman/gh2021 | bd01d55b20c02916f28213776224f31bd96ac479 | [
"BSD-3-Clause"
] | null | null | null | module1-entry point.py | dronovroman/gh2021 | bd01d55b20c02916f28213776224f31bd96ac479 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 20 23:29:59 2021
@author: roman
Module 1 - entry point
"""
| 12 | 35 | 0.601852 | 18 | 108 | 3.611111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 0.212963 | 108 | 8 | 36 | 13.5 | 0.6 | 0.907407 | 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 |
1c3b17069c9737cf2b01ab0b39710f8ac86971f0 | 1,091 | py | Python | src/agents/util/agent_credentials.py | MelleStarke/MAS_B06 | fbedc7459006c0915428f0122d923dd41b57b51e | [
"MIT"
] | null | null | null | src/agents/util/agent_credentials.py | MelleStarke/MAS_B06 | fbedc7459006c0915428f0122d923dd41b57b51e | [
"MIT"
] | null | null | null | src/agents/util/agent_credentials.py | MelleStarke/MAS_B06 | fbedc7459006c0915428f0122d923dd41b57b51e | [
"MIT"
] | null | null | null | sender = ("masb6-sender@01337.io", "sender-pass")
receiver = ("masb6-receiver@01337.io", "receiver-pass")
pra = ("masb6-pra@01337.io", "pra-pass")
kma = ("masb6-kma@01337.io", "kma-pass")
ca = ("masb6-ca@01337.io", "ca-pass")
oaa = ("masb6-oaa@01337.io", "oaa-pass")
ssa = ("masb6-ssa@01337.... | 40.407407 | 100 | 0.55912 | 167 | 1,091 | 3.652695 | 0.173653 | 0.286885 | 0.042623 | 0.04918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219621 | 0.177819 | 1,091 | 27 | 101 | 40.407407 | 0.460424 | 0 | 0 | 0 | 0 | 0 | 0.569106 | 0.044715 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
1c3f0b974b912a60861d9ae2ced14645b28dda03 | 100 | py | Python | tracker/app/models/__init__.py | skielred/FairyJokeAPI | 71228e477bc6dd259e6f5f7e09b30c1e23ab96a3 | [
"MIT"
] | 3 | 2021-12-18T11:09:08.000Z | 2022-03-31T22:42:19.000Z | tracker/app/models/__init__.py | skielred/FairyJokeAPI | 71228e477bc6dd259e6f5f7e09b30c1e23ab96a3 | [
"MIT"
] | null | null | null | tracker/app/models/__init__.py | skielred/FairyJokeAPI | 71228e477bc6dd259e6f5f7e09b30c1e23ab96a3 | [
"MIT"
] | null | null | null | from .user import User
from .game import Game
from .ddr import DDRLocalChart, DDRScore, DDRScoreMod
| 25 | 53 | 0.81 | 14 | 100 | 5.785714 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 100 | 3 | 54 | 33.333333 | 0.94186 | 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 |
1c4ec02bc7c1ed15535709a89b792da3b4bb3f78 | 41 | py | Python | materi/pertemuan_6/python/loop_for3.py | ai-qadrlabs/dasar-pemrograman | 73dbc87ef33159542be89f12f89b2873a06a4e3a | [
"MIT"
] | null | null | null | materi/pertemuan_6/python/loop_for3.py | ai-qadrlabs/dasar-pemrograman | 73dbc87ef33159542be89f12f89b2873a06a4e3a | [
"MIT"
] | null | null | null | materi/pertemuan_6/python/loop_for3.py | ai-qadrlabs/dasar-pemrograman | 73dbc87ef33159542be89f12f89b2873a06a4e3a | [
"MIT"
] | null | null | null | for i in range(100, 0, -5):
print(i)
| 13.666667 | 27 | 0.536585 | 9 | 41 | 2.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.268293 | 41 | 2 | 28 | 20.5 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1c68aacb89c1d8e2a9339dcb8fd7c2ffa9fdec46 | 735 | py | Python | web.py | JAckZ97/RaspberryPi_server | f6dcda748e5cd51618a27e8d69798d6bb9e0501b | [
"MIT"
] | null | null | null | web.py | JAckZ97/RaspberryPi_server | f6dcda748e5cd51618a27e8d69798d6bb9e0501b | [
"MIT"
] | null | null | null | web.py | JAckZ97/RaspberryPi_server | f6dcda748e5cd51618a27e8d69798d6bb9e0501b | [
"MIT"
] | null | null | null | from flask import Flask, render_template
from flask_bootstrap import Bootstrap
app = Flask(__name__)
bootstrap = Bootstrap(app)
@app.errorhandler(404)
def page_not_found(error):
return render_template('404.html'), 404
@app.route('/')
@app.route('/home')
def index():
return render_template('index.html')
@app... | 21.617647 | 49 | 0.665306 | 101 | 735 | 4.633663 | 0.405941 | 0.179487 | 0.213675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030063 | 0.140136 | 735 | 34 | 50 | 21.617647 | 0.710443 | 0.22585 | 0 | 0 | 0 | 0 | 0.133215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.210526 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1c76f6eec5853addc64bce9be0c90ecd3b305598 | 149 | py | Python | Pacote download/PythonExercíciosHARDMODE/ex010HM.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | Pacote download/PythonExercíciosHARDMODE/ex010HM.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | Pacote download/PythonExercíciosHARDMODE/ex010HM.py | RodrigoMASRamos/Projects.py | ed15981b320914c9667305dcd5fb5b7906fd9b00 | [
"MIT"
] | null | null | null | #ex010: Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dólares ela pode comprar
#Considere US$ 1,00 = R$ 3,27
| 49.666667 | 118 | 0.771812 | 27 | 149 | 4.259259 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.174497 | 149 | 2 | 119 | 74.5 | 0.861789 | 0.973154 | 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 |
98cab0cad31a54142bffd3969c399ed36e656baf | 2,476 | py | Python | old_fashioned_nlp/regression/sklearn_regressors.py | ChenghaoMou/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | 1 | 2020-10-27T21:16:54.000Z | 2020-10-27T21:16:54.000Z | old_fashioned_nlp/regression/sklearn_regressors.py | sleeplessindebugging/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | null | null | null | old_fashioned_nlp/regression/sklearn_regressors.py | sleeplessindebugging/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Update : 2020-09-05 08:19:53
# @Author : Chenghao Mou (mouchenghao@gmail.com)
"""Sklearn-based text regressors."""
from sklearn.base import BaseEstimator
from sklearn.decomposition import LatentDirichletAllocation
from sklearn.feature_extraction.text import... | 27.820225 | 88 | 0.608239 | 283 | 2,476 | 5.120141 | 0.261484 | 0.086957 | 0.062112 | 0.033126 | 0.665286 | 0.665286 | 0.603175 | 0.603175 | 0.531401 | 0.531401 | 0 | 0.011589 | 0.268174 | 2,476 | 88 | 89 | 28.136364 | 0.788079 | 0.191438 | 0 | 0.705882 | 0 | 0 | 0.016324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27451 | false | 0 | 0.098039 | 0.117647 | 0.647059 | 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 |
98f4cbddaac7e5278d19be4c39fdeb0410342278 | 166 | py | Python | Lib/site-packages/mysql_cymysql/features.py | Desarrolloweb8/ultimo2 | cdf14a6ae9cb212b8c933b404766f1aa2a58ceb6 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/mysql_cymysql/features.py | Desarrolloweb8/ultimo2 | cdf14a6ae9cb212b8c933b404766f1aa2a58ceb6 | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/mysql_cymysql/features.py | Desarrolloweb8/ultimo2 | cdf14a6ae9cb212b8c933b404766f1aa2a58ceb6 | [
"bzip2-1.0.6"
] | null | null | null | from django.db.backends.mysql.features import DatabaseFeatures as BaseDatabaseFeatures
class DatabaseFeatures(BaseDatabaseFeatures):
empty_fetchmany_value = []
| 27.666667 | 86 | 0.837349 | 16 | 166 | 8.5625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10241 | 166 | 5 | 87 | 33.2 | 0.919463 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
98f6e1e744d4d6d04244ec4ba65c92f60bba0b71 | 3,047 | py | Python | plotting.py | jsyoo61/MultiGPU-SRGAN | b265a1daf972f0cfd1b178661c9030f22ccac4b8 | [
"MIT"
] | 1 | 2022-01-21T06:01:48.000Z | 2022-01-21T06:01:48.000Z | plotting.py | jsyoo61/MultiGPU-SRGAN | b265a1daf972f0cfd1b178661c9030f22ccac4b8 | [
"MIT"
] | null | null | null | plotting.py | jsyoo61/MultiGPU-SRGAN | b265a1daf972f0cfd1b178661c9030f22ccac4b8 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import os
import numpy as np
FIG_DIR = 'fig/'
os.makedirs(FIG_DIR, exist_ok=True)
def savefig(fig):
fig_savedir = str(len(os.listdir(FIG_DIR)) + 1) + '.png'
fig_savedir = os.path.join(FIG_DIR, fig_savedir)
fig.savefig(fig_savedir)
save=True
# save=False
# %% ... | 27.205357 | 61 | 0.616672 | 526 | 3,047 | 3.501901 | 0.197719 | 0.032573 | 0.05646 | 0.058632 | 0.799674 | 0.786645 | 0.747557 | 0.698697 | 0.68241 | 0.68241 | 0 | 0.055511 | 0.184116 | 3,047 | 111 | 62 | 27.45045 | 0.685438 | 0.028553 | 0 | 0.768421 | 0 | 0 | 0.087262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010526 | false | 0 | 0.031579 | 0 | 0.042105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
98f86fb5eeddd5b187af3af47fb8cd6f8ae84816 | 141 | py | Python | d.py | pranay784/portfolio | fa06bf2647b1021767eb2f7c75bd7e91b8d41542 | [
"Apache-2.0"
] | null | null | null | d.py | pranay784/portfolio | fa06bf2647b1021767eb2f7c75bd7e91b8d41542 | [
"Apache-2.0"
] | null | null | null | d.py | pranay784/portfolio | fa06bf2647b1021767eb2f7c75bd7e91b8d41542 | [
"Apache-2.0"
] | null | null | null | file_object = open('sample.txt', 'w')
# Append 'hello' at the end of file
file_object.write('hello')
# Close the file
file_object.close() | 28.2 | 38 | 0.702128 | 23 | 141 | 4.173913 | 0.608696 | 0.3125 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 141 | 5 | 39 | 28.2 | 0.8 | 0.340426 | 0 | 0 | 0 | 0 | 0.183908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
98fe9289532feb95b149f14cd2afd1a4f7aee454 | 287 | py | Python | _examples/empty/test.py | mullikine/gopy | f9e088d468e6ed87ec13c0fa43c0eda12ca8d811 | [
"BSD-3-Clause"
] | 1 | 2019-06-17T21:22:14.000Z | 2019-06-17T21:22:14.000Z | _examples/empty/test.py | mingrammer/gopy | 3b8a754b6c689175fac23de448e31b96c231e001 | [
"BSD-3-Clause"
] | null | null | null | _examples/empty/test.py | mingrammer/gopy | 3b8a754b6c689175fac23de448e31b96c231e001 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The go-python Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
## py2/py3 compat
from __future__ import print_function
import empty as pkg
print("doc(pkg):\n%s" % repr(pkg.__doc__))
| 23.916667 | 61 | 0.745645 | 49 | 287 | 4.183673 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.170732 | 287 | 11 | 62 | 26.090909 | 0.836134 | 0.599303 | 0 | 0 | 0 | 0 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 4 |
c73cd85d602170ead2c0316b5d5759f599dfc9ba | 248 | py | Python | ulord/ulord/utils/generate.py | monotone/Ulord-platform | 8ec19bbb8845db8f22df925d33b118b22dab0d0b | [
"MIT"
] | 28 | 2018-04-27T08:02:18.000Z | 2020-01-14T05:08:34.000Z | ulord/ulord/utils/generate.py | monotone/Ulord-platform | 8ec19bbb8845db8f22df925d33b118b22dab0d0b | [
"MIT"
] | 2 | 2018-05-16T08:29:20.000Z | 2018-06-17T04:51:08.000Z | ulord/ulord/utils/generate.py | monotone/Ulord-platform | 8ec19bbb8845db8f22df925d33b118b22dab0d0b | [
"MIT"
] | 4 | 2018-05-14T11:43:31.000Z | 2018-09-29T09:58:58.000Z | # -*- coding: utf-8 -*-
# @Date : 2018/3/30
# @Author : Shu
# @Email : httpservlet@yeah.net
# @Des : 生成各种数据的通用类
import uuid
def generate_appkey():
"""生成开发者的appkey"""
appkey = str(uuid.uuid1())
return appkey.replace('-', '')
| 19.076923 | 34 | 0.576613 | 28 | 248 | 5.071429 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.225806 | 248 | 12 | 35 | 20.666667 | 0.692708 | 0.504032 | 0 | 0 | 1 | 0 | 0.00885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c76326cc6ad6fe4062344ac39bd109422840495c | 2,930 | py | Python | codes/projects/test_continuous_parameter/data_generator/prior_io.py | hwangoh/uq-vae | 382548e6f6dd7f9d72feff0e0752beec871db348 | [
"MIT"
] | 2 | 2021-07-28T16:47:18.000Z | 2021-08-03T00:53:58.000Z | codes/projects/test_continuous_parameter/data_generator/prior_io.py | HwanGoh/uq-vae | 24a3d26987e2ec807d57601b14c68b22f3652a18 | [
"MIT"
] | null | null | null | codes/projects/test_continuous_parameter/data_generator/prior_io.py | HwanGoh/uq-vae | 24a3d26987e2ec807d57601b14c68b22f3652a18 | [
"MIT"
] | 2 | 2021-09-29T08:31:46.000Z | 2021-11-07T10:26:45.000Z | import numpy as np
import pandas as pd
def save_prior(filepaths, prior_mean,
prior_covariance, prior_covariance_inverse,
prior_covariance_cholesky, prior_covariance_cholesky_inverse):
#=== Mean ===#
df_prior_mean = pd.DataFrame({'prior_mean': prior_mean.flatten()})
df_prior_... | 44.393939 | 96 | 0.73686 | 324 | 2,930 | 6.200617 | 0.080247 | 0.37332 | 0.274764 | 0.164261 | 0.800398 | 0.581882 | 0.380289 | 0.158288 | 0.098557 | 0.098557 | 0 | 0 | 0.159386 | 2,930 | 65 | 97 | 45.076923 | 0.815672 | 0.080546 | 0 | 0 | 0 | 0 | 0.055348 | 0.030666 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.04878 | 0 | 0.121951 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 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 |
c769c136dc839a16c9b121e9b0b46e1266286893 | 300 | py | Python | notification/models.py | marcornett/twitter-clone | bcee2828311ffeb598a5740edcd576d562135981 | [
"MIT"
] | null | null | null | notification/models.py | marcornett/twitter-clone | bcee2828311ffeb598a5740edcd576d562135981 | [
"MIT"
] | null | null | null | notification/models.py | marcornett/twitter-clone | bcee2828311ffeb598a5740edcd576d562135981 | [
"MIT"
] | null | null | null | from django.db import models
from twitteruser.models import TwitterUser
from tweet.models import Tweet
class Notifications(models.Model):
notification = models.ForeignKey(Tweet, on_delete=models.CASCADE, null=True)
user = models.ForeignKey(TwitterUser, on_delete=models.CASCADE, null=True)
| 33.333333 | 80 | 0.803333 | 39 | 300 | 6.128205 | 0.461538 | 0.100418 | 0.117155 | 0.175732 | 0.242678 | 0.242678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113333 | 300 | 8 | 81 | 37.5 | 0.898496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 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 |
c76bef30f924678fbbf53efb18d795d0d16b8a19 | 312 | py | Python | Other Groups/Himawari/Boruto - Naruto Next Generations [WEB]/boruto_commons/masking.py | Setsugennoao/Encoding-Scripts | 497c305ae19f0e380947d082df535fa8cf405676 | [
"MIT"
] | 10 | 2021-09-18T20:45:46.000Z | 2022-01-17T03:20:21.000Z | Other Groups/Himawari/Boruto - Naruto Next Generations [WEB]/boruto_commons/masking.py | Setsugennoao/Encoding-Scripts | 497c305ae19f0e380947d082df535fa8cf405676 | [
"MIT"
] | null | null | null | Other Groups/Himawari/Boruto - Naruto Next Generations [WEB]/boruto_commons/masking.py | Setsugennoao/Encoding-Scripts | 497c305ae19f0e380947d082df535fa8cf405676 | [
"MIT"
] | null | null | null | import vapoursynth as vs
from vsutil import iterate, depth
core = vs.core
def get_downdescale_mask(descale_mask: vs.VideoNode) -> vs.VideoNode:
return iterate(iterate(depth(descale_mask.resize.Bicubic(1280, 720), 16), core.std.Inflate, 20).std.Binarize(24 << 8), core.std.Inflate, 15).std.Binarize(24 << 8)
| 34.666667 | 164 | 0.753205 | 49 | 312 | 4.714286 | 0.571429 | 0.103896 | 0.121212 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068345 | 0.108974 | 312 | 8 | 165 | 39 | 0.76259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
c77a71aded9ff7689a217ccd595b6cf3f5945044 | 957 | py | Python | aps/car/models.py | kunalvohra94/parkinglotproblem-python | 9e133deb3aa948e0902d278f54dd92277a5bf441 | [
"MIT"
] | 1 | 2018-12-13T22:42:33.000Z | 2018-12-13T22:42:33.000Z | aps/car/models.py | kunalvohra94/parkinglotproblem-python | 9e133deb3aa948e0902d278f54dd92277a5bf441 | [
"MIT"
] | null | null | null | aps/car/models.py | kunalvohra94/parkinglotproblem-python | 9e133deb3aa948e0902d278f54dd92277a5bf441 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class car(models.Model):
regno = models.CharField(max_length=200)
color = models.CharField(max_length=200, default='nocolor')
status = models.CharField(max_length=200, default='in')
slot = models.IntegerField(default=999)
level = models.Integ... | 34.178571 | 63 | 0.715778 | 119 | 957 | 5.663866 | 0.361345 | 0.320475 | 0.445104 | 0.385757 | 0.240356 | 0.10089 | 0 | 0 | 0 | 0 | 0 | 0.049118 | 0.170324 | 957 | 27 | 64 | 35.444444 | 0.799748 | 0.025078 | 0 | 0 | 0 | 0 | 0.009667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.043478 | 0.086957 | 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 |
c77e8fee678ed3d873a27d8fc2bc48302ddaa064 | 1,185 | py | Python | quizzes/00.organize.me/Cracking the Coding Interview/p00_combination_iter.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-07-20T10:15:49.000Z | 2018-07-20T10:16:54.000Z | quizzes/00.organize.me/Cracking the Coding Interview/p00_combination_iter.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | 2 | 2018-06-26T09:12:44.000Z | 2019-12-18T00:09:14.000Z | quizzes/00.organize.me/Cracking the Coding Interview/p00_combination_iter.py | JiniousChoi/encyclopedia-in-code | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | [
"MIT"
] | null | null | null | def combination_iter(arr, many):
if type(arr)!=list or many<0 or many>len(arr):
assert(False)
result = []
queue = []
for ele in arr:
queue.append([ele])
while(0<len(queue)):
cur_list = queue.pop(0)
if len(cur_list) < many:
for ele in arr... | 26.931818 | 50 | 0.545148 | 149 | 1,185 | 4.161074 | 0.281879 | 0.203226 | 0.237097 | 0.251613 | 0.077419 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023226 | 0.345992 | 1,185 | 43 | 51 | 27.55814 | 0.776774 | 0.054008 | 0 | 0.151515 | 0 | 0 | 0.007156 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | null | null | 0 | 0 | null | null | 0.181818 | 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 |
c7801b25132aca4e625222decd0d63d73c6e2739 | 71 | py | Python | keras_contrib/optimizers/__init__.py | rgreenblatt/keras-contrib | 46fcdb9384b3bc9399c651b2b43640aa54098e64 | [
"MIT"
] | 7 | 2017-07-22T09:05:44.000Z | 2019-04-30T02:08:04.000Z | keras_contrib/optimizers/__init__.py | rgreenblatt/keras-contrib | 46fcdb9384b3bc9399c651b2b43640aa54098e64 | [
"MIT"
] | 1 | 2017-12-26T02:59:59.000Z | 2017-12-26T02:59:59.000Z | keras_contrib/optimizers/__init__.py | rgreenblatt/keras-contrib | 46fcdb9384b3bc9399c651b2b43640aa54098e64 | [
"MIT"
] | 11 | 2017-07-06T14:11:51.000Z | 2021-08-21T23:18:20.000Z | from .ftml import FTML
from .padam import Padam
# aliases
ftml = FTML
| 11.833333 | 24 | 0.746479 | 11 | 71 | 4.818182 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 71 | 5 | 25 | 14.2 | 0.929825 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c7940ab607efe863e371f0644ce265c956ed4e82 | 246 | py | Python | notes/code/scrape/hackernews.py | akkiittiwari/msan692 | 70698a71e44a86dbdc0b226a46affcf0dc293b59 | [
"MIT"
] | null | null | null | notes/code/scrape/hackernews.py | akkiittiwari/msan692 | 70698a71e44a86dbdc0b226a46affcf0dc293b59 | [
"MIT"
] | null | null | null | notes/code/scrape/hackernews.py | akkiittiwari/msan692 | 70698a71e44a86dbdc0b226a46affcf0dc293b59 | [
"MIT"
] | 1 | 2019-01-20T16:02:20.000Z | 2019-01-20T16:02:20.000Z | import requests
from bs4 import BeautifulSoup
response = requests.get("https://news.ycombinator.com/newest")
html = BeautifulSoup(response.content, "html.parser")
for link in html.find_all(class_="storylink"):
print link['href'], link.text
| 27.333333 | 62 | 0.760163 | 33 | 246 | 5.606061 | 0.757576 | 0.227027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004545 | 0.105691 | 246 | 8 | 63 | 30.75 | 0.836364 | 0 | 0 | 0 | 0 | 0 | 0.239837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c7be69e33026f4dc0c32ffda5effbb9a42353e05 | 167 | py | Python | venv/bin/django-admin.py | edbolivar/perfectpair-django | 798a88d16c6689bad2248add0e4e4958bda64545 | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | edbolivar/perfectpair-django | 798a88d16c6689bad2248add0e4e4958bda64545 | [
"MIT"
] | null | null | null | venv/bin/django-admin.py | edbolivar/perfectpair-django | 798a88d16c6689bad2248add0e4e4958bda64545 | [
"MIT"
] | null | null | null | #!/Users/admin/Downloads/perfectpair-master/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 27.833333 | 60 | 0.796407 | 21 | 167 | 5.809524 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.08982 | 167 | 5 | 61 | 33.4 | 0.796053 | 0.353293 | 0 | 0 | 0 | 0 | 0.074766 | 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 |
c7eb687a4aa9eaadb05cbbca791847b7ca8a34e3 | 92 | py | Python | awwards/apps.py | HASSAN1A/Awwards | 0dd31882750f1200b7767865a523870eed8b71f7 | [
"MIT"
] | 2 | 2021-05-19T12:58:43.000Z | 2021-05-28T14:03:50.000Z | awwards/apps.py | HASSAN1A/Awwards | 0dd31882750f1200b7767865a523870eed8b71f7 | [
"MIT"
] | null | null | null | awwards/apps.py | HASSAN1A/Awwards | 0dd31882750f1200b7767865a523870eed8b71f7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class AwwardsAppConfig(AppConfig):
name = 'awwards'
| 15.333333 | 34 | 0.76087 | 10 | 92 | 7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 35 | 18.4 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0.076087 | 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 |
4063f3ea3b606c7a97057bb6d5b20674d29f4d61 | 109 | py | Python | 1.py | lujiayou123/Off-Policy-Meta-Reinforcement-Learning-via-Unsupervised-Domain-Translation | af4c8e96af77cbe84517ce79886a40618b94a56c | [
"MIT"
] | null | null | null | 1.py | lujiayou123/Off-Policy-Meta-Reinforcement-Learning-via-Unsupervised-Domain-Translation | af4c8e96af77cbe84517ce79886a40618b94a56c | [
"MIT"
] | null | null | null | 1.py | lujiayou123/Off-Policy-Meta-Reinforcement-Learning-via-Unsupervised-Domain-Translation | af4c8e96af77cbe84517ce79886a40618b94a56c | [
"MIT"
] | null | null | null | import torch
import numpy as np
import rlkit.torch.pytorch_util as ptu
alpha =torch.tensor(0.)
print(alpha)
| 15.571429 | 38 | 0.788991 | 19 | 109 | 4.473684 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.12844 | 109 | 6 | 39 | 18.166667 | 0.884211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
40ad52c873653063680a633ee1bab36fdba862c6 | 177 | py | Python | curso-em-video/aula_10/desafio34.py | talysonxx/python | 520b108731e28c7dc1fca3523b925be506fd8340 | [
"MIT"
] | null | null | null | curso-em-video/aula_10/desafio34.py | talysonxx/python | 520b108731e28c7dc1fca3523b925be506fd8340 | [
"MIT"
] | null | null | null | curso-em-video/aula_10/desafio34.py | talysonxx/python | 520b108731e28c7dc1fca3523b925be506fd8340 | [
"MIT"
] | null | null | null | sal = float(input('Digite o seu salário : '))
if sal >= 1250:
print('Seu novo salário é:', (sal + (sal * 0.1)))
else:
print('Seu novo salário é:', (sal + (sal * 0.15)))
| 29.5 | 54 | 0.564972 | 29 | 177 | 3.448276 | 0.551724 | 0.16 | 0.24 | 0.38 | 0.54 | 0.54 | 0.54 | 0.54 | 0 | 0 | 0 | 0.065217 | 0.220339 | 177 | 5 | 55 | 35.4 | 0.65942 | 0 | 0 | 0 | 0 | 0 | 0.344633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
40c135892f9e08154ebb4289bc42d1928ccb495a | 305 | py | Python | halite/__init__.py | w9PcJLyb/HaliteIV-bot | bade9e12fc849f0027d729d81847e5a2ecbbe63a | [
"Apache-2.0"
] | null | null | null | halite/__init__.py | w9PcJLyb/HaliteIV-bot | bade9e12fc849f0027d729d81847e5a2ecbbe63a | [
"Apache-2.0"
] | null | null | null | halite/__init__.py | w9PcJLyb/HaliteIV-bot | bade9e12fc849f0027d729d81847e5a2ecbbe63a | [
"Apache-2.0"
] | null | null | null | from .board import MyBoard
from .opening import opening_actions
from .endspiel import endspiel_actions
from .ship_moves import ship_moves
from .ship_converts import ship_converts
from .defend_shipyards import defend_shipyards, leave_one_ship_in_a_shipyard
from .shipyards_actions import shipyards_actions
| 38.125 | 76 | 0.878689 | 44 | 305 | 5.75 | 0.386364 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095082 | 305 | 7 | 77 | 43.571429 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
40d4cef7d1d6622ca34abdd9801b18b9fee8e0f8 | 157 | py | Python | base/our-tests/bound-and-free.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | 25 | 2015-04-16T04:31:49.000Z | 2022-03-10T15:53:28.000Z | base/our-tests/bound-and-free.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | 1 | 2018-11-21T22:40:02.000Z | 2018-11-26T17:53:11.000Z | base/our-tests/bound-and-free.py | jpolitz/lambda-py-paper | 746ef63fc1123714b4adaf78119028afbea7bd76 | [
"Apache-2.0"
] | 1 | 2021-03-26T03:36:19.000Z | 2021-03-26T03:36:19.000Z | # var is bound and free in class
def f(x):
class C:
def m(self):
return x
a = x
return C
inst = f(3)()
inst.a
inst.m()
| 12.076923 | 32 | 0.477707 | 28 | 157 | 2.678571 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0.407643 | 157 | 12 | 33 | 13.083333 | 0.795699 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.111111 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.