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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61c094d95fcd3a7b2be17eaf47d039b1607fa3b9 | 62 | py | Python | tests/__init__.py | RichWolff/statviz | 56faeb554eb36214fafd716484f11b0ea83661ea | [
"MIT"
] | null | null | null | tests/__init__.py | RichWolff/statviz | 56faeb554eb36214fafd716484f11b0ea83661ea | [
"MIT"
] | null | null | null | tests/__init__.py | RichWolff/statviz | 56faeb554eb36214fafd716484f11b0ea83661ea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for statviz."""
| 15.5 | 36 | 0.564516 | 8 | 62 | 4.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.177419 | 62 | 3 | 37 | 20.666667 | 0.666667 | 0.854839 | 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 |
61c0c2f2d7fdb03c5556429a59c0a884d696d671 | 156 | py | Python | pkg/pkg/perturb/__init__.py | dlee0156/bilateral-connectome | 26fe165341bb79379fecdd8bc5d7b5bfe3983fdc | [
"MIT"
] | 2 | 2021-09-24T20:21:18.000Z | 2022-02-08T18:31:29.000Z | pkg/pkg/perturb/__init__.py | dlee0156/bilateral-connectome | 26fe165341bb79379fecdd8bc5d7b5bfe3983fdc | [
"MIT"
] | 9 | 2021-09-29T17:23:41.000Z | 2022-03-16T20:22:04.000Z | pkg/pkg/perturb/__init__.py | dlee0156/bilateral-connectome | 26fe165341bb79379fecdd8bc5d7b5bfe3983fdc | [
"MIT"
] | 2 | 2021-11-16T16:17:53.000Z | 2022-03-26T01:25:10.000Z | from .perturb import (
remove_edges,
add_edges,
shuffle_edges,
remove_edges_subgraph,
add_edges_subgraph,
shuffle_edges_subgraph,
)
| 17.333333 | 27 | 0.717949 | 18 | 156 | 5.722222 | 0.444444 | 0.378641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224359 | 156 | 8 | 28 | 19.5 | 0.85124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4eec05b04ef0eb87f798451b23b220df64c3a441 | 165 | py | Python | kite-go/lang/python/pythoncomplete/corpustest/corpus/no_snippets.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 17 | 2022-01-10T11:01:50.000Z | 2022-03-25T03:21:08.000Z | kite-go/lang/python/pythoncomplete/corpustest/corpus/no_snippets.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 1 | 2022-01-13T14:28:47.000Z | 2022-01-13T14:28:47.000Z | kite-go/lang/python/pythoncomplete/corpustest/corpus/no_snippets.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 7 | 2022-01-07T03:58:10.000Z | 2022-03-24T07:38:20.000Z | def test_no_snippets_on_call():
import requests
url = "www.google.fr"
'''TEST
requests.get$
@. ... get
@! get([url])
status: ok
'''
| 15 | 31 | 0.527273 | 20 | 165 | 4.15 | 0.75 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 165 | 10 | 32 | 16.5 | 0.721739 | 0 | 0 | 0 | 0 | 0 | 0.154762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4efee087561fe1a640fe259b2d27243de4860cfc | 3,515 | py | Python | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/NV/evaluators.py | temelkirci/Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/NV/evaluators.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/NV/evaluators.py | temelkirci/RealTime_6DOF_Motion_Editor | a8b8d4c4d2dcc9be28385600f56066cef92a38ad | [
"MIT"
] | null | null | null | '''OpenGL extension NV.evaluators
This module customises the behaviour of the
OpenGL.raw.GL.NV.evaluators to provide a more
Python-friendly API
Overview (from the spec)
OpenGL evaluators provide applications with the capability to
specify polynomial or rational curves and surfaces using control
points relative... | 48.150685 | 70 | 0.809957 | 523 | 3,515 | 5.443595 | 0.49522 | 0.022831 | 0.017914 | 0.009132 | 0.038637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165861 | 3,515 | 73 | 71 | 48.150685 | 0.97101 | 1.057468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f61d5d8aad8a23ffb0175889f3b4c7a282b0dadb | 117 | py | Python | calcurse_load/ext/__init__.py | seanbreckenridge/calcurse-load | 0ad9eebeb53f2d983d623474b2cb91d8eeb67110 | [
"MIT"
] | 2 | 2021-01-03T22:36:22.000Z | 2021-04-24T22:45:26.000Z | calcurse_load/ext/__init__.py | seanbreckenridge/calcurse-load | 0ad9eebeb53f2d983d623474b2cb91d8eeb67110 | [
"MIT"
] | 2 | 2021-01-06T02:37:16.000Z | 2022-03-13T21:45:49.000Z | calcurse_load/ext/__init__.py | seanbreckenridge/calcurse-load | 0ad9eebeb53f2d983d623474b2cb91d8eeb67110 | [
"MIT"
] | null | null | null | from .gcal import gcal_ext
from .todotxt import todotxt_ext
EXTENSIONS = {"gcal": gcal_ext, "todotxt": todotxt_ext}
| 23.4 | 55 | 0.769231 | 17 | 117 | 5.058824 | 0.352941 | 0.162791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 117 | 4 | 56 | 29.25 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0.094017 | 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 |
f63d15f4291773bcda768d2a1b1031f563652d4b | 362 | py | Python | spider/spider/dimensionality_reduction/rpca_lbd/__init__.py | Rosna/P4ML-UI | edf0dd830588f03b197e4d6532830a5aedd88424 | [
"Apache-2.0"
] | 1 | 2021-11-05T17:42:47.000Z | 2021-11-05T17:42:47.000Z | spider/spider/dimensionality_reduction/rpca_lbd/__init__.py | Rosna/P4ML-UI | edf0dd830588f03b197e4d6532830a5aedd88424 | [
"Apache-2.0"
] | null | null | null | spider/spider/dimensionality_reduction/rpca_lbd/__init__.py | Rosna/P4ML-UI | edf0dd830588f03b197e4d6532830a5aedd88424 | [
"Apache-2.0"
] | 2 | 2019-02-21T18:29:51.000Z | 2019-09-02T21:21:26.000Z | """
spider.dimensionality_reduction.rpca_lbd sub-package
__init__.py
@author: agitlin
Primitive that uses Robust Principal Component Analysis (RPCA) based on
the Low-Rank and Block-Sparse Decomposition (LBD) model
to perform dimensionality reduction on a data matrix
defines the module... | 25.857143 | 75 | 0.740331 | 48 | 362 | 5.416667 | 0.791667 | 0.080769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207182 | 362 | 14 | 76 | 25.857143 | 0.905923 | 0.801105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f64b98578879e14ac9a154b2e396944bdf4c733e | 139 | py | Python | 31_40/day-33/assignments/sunrise_sunset.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | 31_40/day-33/assignments/sunrise_sunset.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | 31_40/day-33/assignments/sunrise_sunset.py | srakhe/100-days-py | 4d99ab35eb1376d2f8722c42e0bf98acc18fba20 | [
"MIT"
] | null | null | null | import requests
response = requests.get('https://api.sunrise-sunset.org/json?lat=18.5204&lng=73.8567&formatted=1')
print(response.json())
| 27.8 | 98 | 0.76259 | 22 | 139 | 4.818182 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098485 | 0.05036 | 139 | 4 | 99 | 34.75 | 0.704545 | 0 | 0 | 0 | 0 | 0.333333 | 0.510791 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
f64c206197563f71dbcdbf34d16e001e8a5081cd | 399 | py | Python | Chapter_09/restaurant.py | yihjie/Python_Crash_Course | f6cf612fc0fbf5d0dc36f498842d4ab74fd0667b | [
"MIT"
] | null | null | null | Chapter_09/restaurant.py | yihjie/Python_Crash_Course | f6cf612fc0fbf5d0dc36f498842d4ab74fd0667b | [
"MIT"
] | null | null | null | Chapter_09/restaurant.py | yihjie/Python_Crash_Course | f6cf612fc0fbf5d0dc36f498842d4ab74fd0667b | [
"MIT"
] | null | null | null | #-*- coding:utf-8
class Restaurant():
def __init__(self, restaurant_name, cuisine_type):
self.restaurant_name = restaurant_name
self.cuisine_type = cuisine_type
def describe_restaurant(self):
print(self.restaurant_name.title() + "'s cuisine type is " + self.cuisine_type + ".")
def... | 33.25 | 93 | 0.676692 | 48 | 399 | 5.3125 | 0.375 | 0.27451 | 0.282353 | 0.180392 | 0.329412 | 0.329412 | 0.329412 | 0 | 0 | 0 | 0 | 0.003125 | 0.197995 | 399 | 12 | 94 | 33.25 | 0.79375 | 0.0401 | 0 | 0 | 0 | 0 | 0.070496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0 | 0 | 0.5 | 0.25 | 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 |
f66476dbad5a7af792826a3f482cf9e74514615d | 135 | py | Python | tun_tunnel/__init__.py | windprog/tun-tunnel-control | a954f3356f27861c138d30a5bb636017c5a08534 | [
"MIT"
] | null | null | null | tun_tunnel/__init__.py | windprog/tun-tunnel-control | a954f3356f27861c138d30a5bb636017c5a08534 | [
"MIT"
] | null | null | null | tun_tunnel/__init__.py | windprog/tun-tunnel-control | a954f3356f27861c138d30a5bb636017c5a08534 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Author : windpro
E-mail : windprog@gmail.com
Date : 15/8/26
Desc :
"""
| 13.5 | 30 | 0.511111 | 18 | 135 | 3.833333 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 0.274074 | 135 | 9 | 31 | 15 | 0.642857 | 0.903704 | 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 |
f66f621d2ec5ee1e80b7d5421f022a69029dd7b6 | 176 | py | Python | backend/apps/mails/apps.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 174 | 2019-02-19T11:35:45.000Z | 2021-12-20T03:20:28.000Z | backend/apps/mails/apps.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 56 | 2019-01-02T06:49:13.000Z | 2021-03-23T09:31:18.000Z | backend/apps/mails/apps.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 36 | 2018-12-28T02:10:06.000Z | 2021-09-02T03:06:35.000Z | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class MailsConfig(AppConfig):
name = 'apps.mails'
verbose_name = _('Mails')
| 22 | 55 | 0.755682 | 22 | 176 | 5.863636 | 0.681818 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 176 | 7 | 56 | 25.142857 | 0.871622 | 0 | 0 | 0 | 0 | 0 | 0.085227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 |
9c8512f13205c7057714cb7662d9a07117f9d515 | 65 | py | Python | abc039_b.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc039_b.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc039_b.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | from math import sqrt
X = int(input())
print(int(sqrt(sqrt(X))))
| 16.25 | 25 | 0.676923 | 12 | 65 | 3.666667 | 0.666667 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 65 | 3 | 26 | 21.666667 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9c8dbd0e82bb4d7cef56bbdf2c6ca628aab674a5 | 139 | py | Python | madcap_flare/apps.py | mypebble/django-madcap-flare | 92609878db9716d56d5004ed90ca31c3c8346bc5 | [
"MIT"
] | null | null | null | madcap_flare/apps.py | mypebble/django-madcap-flare | 92609878db9716d56d5004ed90ca31c3c8346bc5 | [
"MIT"
] | 2 | 2020-02-11T23:57:06.000Z | 2020-06-05T17:46:21.000Z | madcap_flare/apps.py | mypebble/django-madcap-flare | 92609878db9716d56d5004ed90ca31c3c8346bc5 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.apps import AppConfig
class MadcapFlareConfig(AppConfig):
name = 'madcap_flare'
| 17.375 | 39 | 0.805755 | 16 | 139 | 6.625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143885 | 139 | 7 | 40 | 19.857143 | 0.890756 | 0 | 0 | 0 | 0 | 0 | 0.086331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9c964ef09f673f33db19963b40c42031f356aa67 | 214 | py | Python | Act1/cssenv/Scripts/csaplication/Profile/serializer.py | Talox1/Cliente-Servidor | fb243832684f818416c10fdcdaf397fccda09321 | [
"MIT"
] | null | null | null | Act1/cssenv/Scripts/csaplication/Profile/serializer.py | Talox1/Cliente-Servidor | fb243832684f818416c10fdcdaf397fccda09321 | [
"MIT"
] | null | null | null | Act1/cssenv/Scripts/csaplication/Profile/serializer.py | Talox1/Cliente-Servidor | fb243832684f818416c10fdcdaf397fccda09321 | [
"MIT"
] | null | null | null | from rest_framework import routers, serializers, viewsets
from Profile.models import Profile
class ProfileSerializer(serializers.ModelSerializer):
class Meta:
model = Profile
fields = ('__all__') | 30.571429 | 57 | 0.757009 | 22 | 214 | 7.136364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17757 | 214 | 7 | 58 | 30.571429 | 0.892045 | 0 | 0 | 0 | 0 | 0 | 0.032558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9cd8b71e7897439471b80bf4daf460a38186984b | 14,886 | py | Python | tests/bugs/core_1431_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_1431_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | tests/bugs/core_1431_test.py | reevespaul/firebird-qa | 98f16f425aa9ab8ee63b86172f959d63a2d76f21 | [
"MIT"
] | null | null | null | #coding:utf-8
#
# id: bugs.core_1431
# title: Greek characters in cp1251 vs uppercasing
# decription:
# 02-mar-2021. Re-implemented in ordeer to have ability to run this test on Linux.
# We run 'init_script' using charset = utf8 but then run separate ISQL-process
... | 61.512397 | 119 | 0.638587 | 2,218 | 14,886 | 4.225879 | 0.217313 | 0.081937 | 0.203243 | 0.216793 | 0.617732 | 0.605569 | 0.571002 | 0.540809 | 0.445322 | 0.366158 | 0 | 0.088373 | 0.226925 | 14,886 | 241 | 120 | 61.767635 | 0.723497 | 0.131264 | 0 | 0.022857 | 0 | 0.56 | 0.974062 | 0.058787 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005714 | false | 0 | 0.011429 | 0 | 0.017143 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ceacddaab3266730420ff396e292f8587d5ece9 | 34 | py | Python | imagetagger/venv/lib/python3.7/shutil.py | wrigsa/ImageTagger | d8a7ab7d004eeda8deae423eccc7236c4accab47 | [
"MIT"
] | 8 | 2020-04-09T13:37:16.000Z | 2021-11-22T01:26:02.000Z | env/lib/python3.7/shutil.py | karenhao/Office-365-Flask-App-kudos | 95500ec55169f49eb281fff9905ad0b7f94d6fa3 | [
"MIT"
] | 23 | 2019-01-19T08:54:48.000Z | 2022-03-11T23:39:37.000Z | env/lib/python3.7/shutil.py | karenhao/Office-365-Flask-App-kudos | 95500ec55169f49eb281fff9905ad0b7f94d6fa3 | [
"MIT"
] | 5 | 2021-01-12T07:03:31.000Z | 2021-09-27T16:30:24.000Z | /anaconda3/lib/python3.7/shutil.py | 34 | 34 | 0.823529 | 6 | 34 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 34 | 1 | 34 | 34 | 0.735294 | 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 |
9ceee7ebc18fe609fbf2516d28bade99351e9859 | 127 | py | Python | src/genie/libs/parser/iosxe/tests/ShowIssuRollbackTimer/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxe/tests/ShowIssuRollbackTimer/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxe/tests/ShowIssuRollbackTimer/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"rollback_timer_reason": "no ISSU operation is in progress",
"rollback_timer_state": "inactive",
}
| 25.4 | 64 | 0.716535 | 15 | 127 | 5.733333 | 0.866667 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165354 | 127 | 4 | 65 | 31.75 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.637795 | 0.165354 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1449a44d2ae811cab9ff1473768a92c783ecb782 | 167 | py | Python | testsuite/swig-dir/package_submod/setup.py | xoviat/modulegraph2 | 766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a | [
"MIT"
] | 9 | 2020-03-22T14:48:01.000Z | 2021-05-30T12:18:12.000Z | testsuite/swig-dir/package_submod/setup.py | xoviat/modulegraph2 | 766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a | [
"MIT"
] | 15 | 2020-01-06T10:02:32.000Z | 2021-05-28T12:22:44.000Z | testsuite/swig-dir/package_submod/setup.py | ronaldoussoren/modulegraph2 | b6ab1766b0098651b51083235ff8a18a5639128b | [
"MIT"
] | 4 | 2020-05-10T18:51:41.000Z | 2021-04-07T14:03:12.000Z | import sys
from setuptools import setup, Extension
extension = Extension("package._example", sources=["library_wrap.c", "library.c"])
setup(ext_modules=[extension])
| 23.857143 | 82 | 0.772455 | 21 | 167 | 6 | 0.666667 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08982 | 167 | 6 | 83 | 27.833333 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.233533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
14669c74c5da5901e6d20062af5238b031b1b417 | 418 | py | Python | utils.py | carlosbabativa/resize_dataset_pascalvoc | 2c6ace51285bc83ece3a8bd900599178f0524bac | [
"MIT"
] | 86 | 2019-02-04T20:15:18.000Z | 2022-03-01T03:28:09.000Z | utils.py | carlosbabativa/resize_dataset_pascalvoc | 2c6ace51285bc83ece3a8bd900599178f0524bac | [
"MIT"
] | 5 | 2019-05-01T07:04:03.000Z | 2021-02-15T21:53:01.000Z | utils.py | carlosbabativa/resize_dataset_pascalvoc | 2c6ace51285bc83ece3a8bd900599178f0524bac | [
"MIT"
] | 31 | 2019-02-06T15:05:42.000Z | 2022-03-29T02:44:45.000Z | import os
from pathlib import Path
def add_end_slash(path):
if path[-1] is not '/':
return path + '/'
return path
def create_path(path):
path = Path(path)
path.mkdir(parents=True, exist_ok=True)
def get_file_name(path):
base_dir = os.path.dirname(path)
file_name, ext = os.path.spli... | 19.904762 | 61 | 0.648325 | 64 | 418 | 4.078125 | 0.46875 | 0.153257 | 0.183908 | 0.183908 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00304 | 0.212919 | 418 | 20 | 62 | 20.9 | 0.790274 | 0 | 0 | 0 | 0 | 0 | 0.007177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 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 |
147d1399ffc9610a08a6d36a557040da487584cb | 181 | py | Python | exercism/python/rna-transcription/rna_transcription.py | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | null | null | null | exercism/python/rna-transcription/rna_transcription.py | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | 16 | 2020-05-30T12:38:13.000Z | 2022-02-19T09:23:31.000Z | exercism/python/rna-transcription/rna_transcription.py | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | null | null | null | DNA_TO_RNA_MAPPER = {
'G' : 'C',
'C' : 'G',
'T' : 'A',
'A' : 'U'
}
def to_rna(dna_strand):
return ''.join([DNA_TO_RNA_MAPPER[letter] for letter in dna_strand])
| 18.1 | 72 | 0.541436 | 29 | 181 | 3.068966 | 0.551724 | 0.168539 | 0.179775 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248619 | 181 | 9 | 73 | 20.111111 | 0.654412 | 0 | 0 | 0 | 0 | 0 | 0.044199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
1adb85b2001c0d3bc497d30ee9c3d99ce0f2fef9 | 482 | py | Python | site/ENV/lib/python3.7/site-packages/tornado_websockets/tests/modules/modules.py | paulohenriquerosa/gnss-iot-server | 6e7ff39bc83276d6ad86121083eb48d134d00f9d | [
"MIT"
] | null | null | null | site/ENV/lib/python3.7/site-packages/tornado_websockets/tests/modules/modules.py | paulohenriquerosa/gnss-iot-server | 6e7ff39bc83276d6ad86121083eb48d134d00f9d | [
"MIT"
] | null | null | null | site/ENV/lib/python3.7/site-packages/tornado_websockets/tests/modules/modules.py | paulohenriquerosa/gnss-iot-server | 6e7ff39bc83276d6ad86121083eb48d134d00f9d | [
"MIT"
] | null | null | null | from tornado_websockets.modules import Module
class Module1(Module):
pass
class Module2(Module):
def __init__(self, name=''):
pass
class Module3(Module):
def __init__(self, name=''):
pass
def initialize(self):
pass
class MyModule(Module):
def __init__(self, name=''):... | 16.62069 | 57 | 0.599585 | 52 | 482 | 5.211538 | 0.403846 | 0.099631 | 0.143911 | 0.188192 | 0.261993 | 0.184502 | 0 | 0 | 0 | 0 | 0 | 0.008646 | 0.280083 | 482 | 28 | 58 | 17.214286 | 0.772334 | 0 | 0 | 0.5 | 0 | 0 | 0.041494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.222222 | 0.055556 | 0 | 0.555556 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
1ade0ec4598b64f1203e289b9fa7b2a4cb60600b | 146 | py | Python | Python_server/TowerDefenseServer/std_server/models/user_model.py | zlociu/TowerDefenceSecure | 3f1ab97670e879aefc0049d247038f47caea2c88 | [
"MIT"
] | null | null | null | Python_server/TowerDefenseServer/std_server/models/user_model.py | zlociu/TowerDefenceSecure | 3f1ab97670e879aefc0049d247038f47caea2c88 | [
"MIT"
] | 4 | 2021-03-30T13:17:16.000Z | 2021-09-22T18:59:25.000Z | Python_server/TowerDefenseServer/std_server/models/user_model.py | zlociu/TowerDefenceSecure | 3f1ab97670e879aefc0049d247038f47caea2c88 | [
"MIT"
] | 1 | 2021-07-10T08:26:15.000Z | 2021-07-10T08:26:15.000Z | from django.contrib.auth.models import User
from django.db import models
class User(User):
version = models.PositiveIntegerField(default=0)
| 20.857143 | 52 | 0.787671 | 20 | 146 | 5.75 | 0.65 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.130137 | 146 | 6 | 53 | 24.333333 | 0.897638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1af529802b8d6065be20d88269270d14882f2e91 | 40,050 | py | Python | tests/test_Material.py | py1sl/neutronics_material_maker | cc7a882d9ed1a01e4f45b19e9cbe0269e093c69a | [
"MIT"
] | null | null | null | tests/test_Material.py | py1sl/neutronics_material_maker | cc7a882d9ed1a01e4f45b19e9cbe0269e093c69a | [
"MIT"
] | null | null | null | tests/test_Material.py | py1sl/neutronics_material_maker | cc7a882d9ed1a01e4f45b19e9cbe0269e093c69a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
__author__ = "neutronics material maker development team"
import json
import unittest
import neutronics_material_maker as nmm
import pytest
class test_object_properties(unittest.TestCase):
def test_error_raised_when_enrichment_and_enrichment_target(self):
def error_raised_correc... | 40.130261 | 101 | 0.642597 | 5,059 | 40,050 | 4.780391 | 0.072346 | 0.03002 | 0.050033 | 0.09006 | 0.848743 | 0.801274 | 0.763397 | 0.711958 | 0.643731 | 0.570212 | 0 | 0.064099 | 0.261049 | 40,050 | 997 | 102 | 40.170512 | 0.753066 | 0.089563 | 0 | 0.439199 | 0 | 0 | 0.078129 | 0.000638 | 0 | 0 | 0 | 0.002006 | 0.344778 | 1 | 0.101574 | false | 0 | 0.005722 | 0 | 0.108727 | 0.002861 | 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 |
213a3d0d743821f0dfc9fd2474113830eaa9ac8a | 7,677 | py | Python | test/test_union_intersect.py | Fibertree-Project/fibertree | 6fbb1971c31fcc9b27e09591a1ee2d66ae0e7b76 | [
"MIT"
] | 2 | 2021-02-03T20:34:14.000Z | 2021-02-04T06:36:51.000Z | test/test_union_intersect.py | FPSG-UIUC/fibertree | 6fbb1971c31fcc9b27e09591a1ee2d66ae0e7b76 | [
"MIT"
] | 1 | 2021-06-19T02:59:01.000Z | 2021-06-23T13:20:11.000Z | test/test_union_intersect.py | FPSG-UIUC/fibertree | 6fbb1971c31fcc9b27e09591a1ee2d66ae0e7b76 | [
"MIT"
] | 1 | 2021-06-16T15:03:33.000Z | 2021-06-16T15:03:33.000Z | import unittest
from fibertree import Payload
from fibertree import Fiber
from fibertree import Tensor
class TestUnionIntersect(unittest.TestCase):
def setUp(self):
self.input = {}
self.input["a1_M"] = Tensor.fromUncompressed(["M"], [1, 0, 3, 0, 5, 0, 7])
self.input["a1_m"] = self.input... | 38.969543 | 90 | 0.455386 | 974 | 7,677 | 3.431212 | 0.086242 | 0.031119 | 0.125673 | 0.131658 | 0.808797 | 0.741173 | 0.710353 | 0.660981 | 0.615799 | 0.608618 | 0 | 0.061769 | 0.398984 | 7,677 | 196 | 91 | 39.168367 | 0.662549 | 0.089879 | 0 | 0.412698 | 0 | 0 | 0.020863 | 0 | 0 | 0 | 0 | 0 | 0.253968 | 1 | 0.039683 | false | 0 | 0.031746 | 0 | 0.079365 | 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 |
2156c194852961dafed7bcbf51b5503ac6c67359 | 88 | py | Python | aiostar/__init__.py | douding123986/aiostar | a7fa73820ea13c81062081ea9b8445c2dab1986f | [
"MIT"
] | 5 | 2022-03-11T09:31:14.000Z | 2022-03-14T03:17:34.000Z | aiostar/__init__.py | douding123986/aiostar | a7fa73820ea13c81062081ea9b8445c2dab1986f | [
"MIT"
] | 1 | 2022-03-13T04:28:39.000Z | 2022-03-13T04:28:39.000Z | aiostar/__init__.py | douding123986/aiostar | a7fa73820ea13c81062081ea9b8445c2dab1986f | [
"MIT"
] | 2 | 2022-03-11T12:09:43.000Z | 2022-03-12T12:33:58.000Z | # coding:utf-8
"""
Name : __init__.py.py
Author : blu
Time : 2022/3/7 17:39
Desc :
"""
| 11 | 21 | 0.602273 | 16 | 88 | 3.0625 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15493 | 0.193182 | 88 | 7 | 22 | 12.571429 | 0.535211 | 0.886364 | 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 |
dcd5c4ebc90dbc055f254a030b424bec9c8bf84c | 83 | py | Python | cafe/apps.py | MoGakCo/MogakCo | c0a5c6366179e3e2ad9daeb7cf4c8ca59790ac63 | [
"MIT"
] | 7 | 2018-02-06T07:42:20.000Z | 2019-03-25T03:49:11.000Z | cafe/apps.py | MoGakCo/MogakCo | c0a5c6366179e3e2ad9daeb7cf4c8ca59790ac63 | [
"MIT"
] | 77 | 2021-02-01T04:53:10.000Z | 2021-12-07T15:45:43.000Z | cafe/apps.py | MoGakCo/MogakCo | c0a5c6366179e3e2ad9daeb7cf4c8ca59790ac63 | [
"MIT"
] | 3 | 2021-01-28T15:05:56.000Z | 2021-02-22T17:12:08.000Z | from django.apps import AppConfig
class CafeConfig(AppConfig):
name = 'cafe'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
dcdbdf1c049514742d5fd88bb1c4fc17b08afcfc | 192 | py | Python | pyuubin/exceptions.py | MichalMazurek/pyuubin | 383cdc491514aa9978ebc1cb639623a5dea92e64 | [
"Apache-2.0"
] | null | null | null | pyuubin/exceptions.py | MichalMazurek/pyuubin | 383cdc491514aa9978ebc1cb639623a5dea92e64 | [
"Apache-2.0"
] | 1 | 2021-07-18T19:27:33.000Z | 2021-07-18T19:27:33.000Z | pyuubin/exceptions.py | MichalMazurek/pyuubin | 383cdc491514aa9978ebc1cb639623a5dea92e64 | [
"Apache-2.0"
] | null | null | null | class FailedToSendMessage(Exception):
""""""
class CannotSendMessages(Exception):
""""""
class Forbidden(Exception):
""""""
class RedisNotConnected(RuntimeError):
""""""
| 12.8 | 38 | 0.635417 | 12 | 192 | 10.166667 | 0.583333 | 0.344262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177083 | 192 | 14 | 39 | 13.714286 | 0.772152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0d0d211e0c7de0bd9ba26d4cb27686ecf0539a15 | 135 | py | Python | user_feedback/apps.py | SALTISES4/UserFeedback | 0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57 | [
"BSD-3-Clause"
] | null | null | null | user_feedback/apps.py | SALTISES4/UserFeedback | 0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57 | [
"BSD-3-Clause"
] | 1 | 2021-05-11T03:12:28.000Z | 2021-05-11T03:12:28.000Z | user_feedback/apps.py | SALTISES4/UserFeedback | 0d6807a3ea5a9ff4e617fadf2208e04e4e04bd57 | [
"BSD-3-Clause"
] | 1 | 2020-07-08T19:36:39.000Z | 2020-07-08T19:36:39.000Z | from django.apps import AppConfig
class UserFeedbackConfig(AppConfig):
name = "user_feedback"
verbose_name = "User Feedback"
| 19.285714 | 36 | 0.755556 | 15 | 135 | 6.666667 | 0.733333 | 0.16 | 0.32 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17037 | 135 | 6 | 37 | 22.5 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0.192593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
0d0d2d3d338ad33f6e4575c935ead12acb893753 | 76 | py | Python | Itunes/itunes_py_appscript.py | MarcPartensky/Python-2020 | 1a4ef2edfea6efb353249d5e32c06b230b293c62 | [
"MIT"
] | 1 | 2020-09-02T10:41:49.000Z | 2020-09-02T10:41:49.000Z | Itunes/itunes_py_appscript.py | MarcPartensky/Python-2020 | 1a4ef2edfea6efb353249d5e32c06b230b293c62 | [
"MIT"
] | null | null | null | Itunes/itunes_py_appscript.py | MarcPartensky/Python-2020 | 1a4ef2edfea6efb353249d5e32c06b230b293c62 | [
"MIT"
] | null | null | null | import appscript
import tunes
itunes = appscript.app('iTunes', terms=tunes)
| 19 | 45 | 0.789474 | 10 | 76 | 6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 76 | 3 | 46 | 25.333333 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 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 |
0d2f3c0701fbfe8d81f82e25a3597f4ce877d8e6 | 122 | py | Python | example/views.py | stuartaccent/images | 272547a207a04843081cd2fc03d931c0da4dd537 | [
"MIT"
] | null | null | null | example/views.py | stuartaccent/images | 272547a207a04843081cd2fc03d931c0da4dd537 | [
"MIT"
] | 1 | 2018-08-04T11:08:03.000Z | 2018-08-12T19:49:04.000Z | example/views.py | stuartaccent/images | 272547a207a04843081cd2fc03d931c0da4dd537 | [
"MIT"
] | null | null | null | from django.views.generic import ListView
from images.models import Image
class ImageList(ListView):
model = Image
| 15.25 | 41 | 0.778689 | 16 | 122 | 5.9375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 122 | 7 | 42 | 17.428571 | 0.931373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0d539c64938623d8dc9723a7bece05c611c02202 | 174 | py | Python | help_dir/test_your_package.py | kuntal-python-django/Publish-Your-Python-Lib | 55b7ff4cca48f3fae0e426d04a7991773c5f3c48 | [
"RSA-MD"
] | null | null | null | help_dir/test_your_package.py | kuntal-python-django/Publish-Your-Python-Lib | 55b7ff4cca48f3fae0e426d04a7991773c5f3c48 | [
"RSA-MD"
] | null | null | null | help_dir/test_your_package.py | kuntal-python-django/Publish-Your-Python-Lib | 55b7ff4cca48f3fae0e426d04a7991773c5f3c48 | [
"RSA-MD"
] | null | null | null | import kuntal_test_lib
from kuntal_test_lib.myfunctions import test_call
result = test_call()
print("result = ", result)
result = test_call(11)
print("result = ", result)
| 17.4 | 49 | 0.758621 | 25 | 174 | 5 | 0.4 | 0.192 | 0.208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.132184 | 174 | 9 | 50 | 19.333333 | 0.81457 | 0 | 0 | 0.333333 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b4d7c44da64550a338c08c1606cdbe1a3dcfd8ed | 152 | py | Python | backend/services/web/api/timelines/interface.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | 3 | 2021-04-16T14:37:47.000Z | 2021-06-28T21:13:50.000Z | backend/services/web/api/timelines/interface.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | 1 | 2021-04-17T14:45:59.000Z | 2021-04-17T14:45:59.000Z | backend/services/web/api/timelines/interface.py | noasck/EduARd | f4a95a92d513b017ff2f0b0c3591207a741b1110 | [
"MIT"
] | null | null | null | from typing_extensions import TypedDict
class ITimeline(TypedDict, total=False):
id: int
seconds: int
model_filename: str
pup_id: str
| 16.888889 | 40 | 0.723684 | 20 | 152 | 5.35 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217105 | 152 | 8 | 41 | 19 | 0.89916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
b4d960e86c45e0783a8b560889f437822d2dbf76 | 95 | py | Python | beautiful/beautywiki/apps.py | wtl0442/bwg_real | 45007e89cb6c5099daea7a84b81433d1adb8e41d | [
"MIT"
] | null | null | null | beautiful/beautywiki/apps.py | wtl0442/bwg_real | 45007e89cb6c5099daea7a84b81433d1adb8e41d | [
"MIT"
] | 9 | 2018-01-24T10:40:34.000Z | 2022-01-13T00:40:29.000Z | beautiful/beautywiki/apps.py | wtl0442/bwg_real | 45007e89cb6c5099daea7a84b81433d1adb8e41d | [
"MIT"
] | 1 | 2018-05-05T08:54:55.000Z | 2018-05-05T08:54:55.000Z | from django.apps import AppConfig
class BeautywikiConfig(AppConfig):
name = 'beautywiki'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 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 |
b4d9f761ab739029a8366085429d09c1d2e64fdb | 403 | py | Python | {{cookiecutter.project_slug}}/tests/test_{{cookiecutter.module_name}}.py | lachhebo/cookiecutter-poetry | e9b1cfe291728cd22ab7cb568e8c8fcc63de6bba | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/tests/test_{{cookiecutter.module_name}}.py | lachhebo/cookiecutter-poetry | e9b1cfe291728cd22ab7cb568e8c8fcc63de6bba | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/tests/test_{{cookiecutter.module_name}}.py | lachhebo/cookiecutter-poetry | e9b1cfe291728cd22ab7cb568e8c8fcc63de6bba | [
"MIT"
] | null | null | null | """Tests for `{{ cookiecutter.module_name }}` package."""
from unittest.mock import patch
from src.{{ cookiecutter.module_name }} import main
TESTED_MODULE = 'src.{{ cookiecutter.module_name }}'
@patch(f'{TESTED_MODULE}.version', return_value = 5)
def test_main__return_pytest_version_6(mock_version, debug):
# g... | 23.705882 | 60 | 0.677419 | 50 | 403 | 5.2 | 0.58 | 0.207692 | 0.253846 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009231 | 0.193548 | 403 | 16 | 61 | 25.1875 | 0.790769 | 0.037221 | 0 | 0 | 0 | 0 | 0.174312 | 0.143731 | 0 | 0 | 0 | 0 | 0.142857 | 0 | null | null | 0 | 0.285714 | null | null | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
37240fb9ed3aca7089828f3f8def8864ebdd3ed2 | 169 | py | Python | runners/mlcube_ssh/mlcube_ssh/tests/test_mlcube_ssh_cli.py | johnugeorge/mlcube | 10bdfe859805aa8c868c5a4745259037e123e757 | [
"Apache-2.0"
] | 83 | 2020-12-03T18:53:11.000Z | 2022-03-24T11:58:11.000Z | runners/mlcube_ssh/mlcube_ssh/tests/test_mlcube_ssh_cli.py | mlperf/mlbox | 5623826bd9c1d60f082170aeffc9ff1ccda7a656 | [
"Apache-2.0"
] | 100 | 2019-11-08T19:58:59.000Z | 2020-11-19T05:47:12.000Z | runners/mlcube_ssh/mlcube_ssh/tests/test_mlcube_ssh_cli.py | johnugeorge/mlcube | 10bdfe859805aa8c868c5a4745259037e123e757 | [
"Apache-2.0"
] | 15 | 2019-10-30T17:53:39.000Z | 2020-10-31T15:07:38.000Z | from click.testing import CliRunner
runner = CliRunner()
def test_mlcube_ssh():
from mlcube.tests.test_mlcommons_mlcube_cli import test_mlcube
test_mlcube()
| 16.9 | 66 | 0.781065 | 23 | 169 | 5.434783 | 0.565217 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 169 | 9 | 67 | 18.777778 | 0.874126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
2ea278b0fb4886b82b5782ff8b1f660926a4b813 | 31,758 | py | Python | mirge/classes/readPrecusor.py | wan230114/miRge3.0 | fd60d890650cb948bff3d7a7f8e83acf5d13c95b | [
"MIT"
] | 13 | 2020-11-06T02:45:30.000Z | 2022-03-23T20:18:13.000Z | mirge/classes/readPrecusor.py | wan230114/miRge3.0 | fd60d890650cb948bff3d7a7f8e83acf5d13c95b | [
"MIT"
] | 29 | 2020-11-05T07:44:55.000Z | 2022-03-30T01:00:20.000Z | mirge/classes/readPrecusor.py | wan230114/miRge3.0 | fd60d890650cb948bff3d7a7f8e83acf5d13c95b | [
"MIT"
] | 5 | 2020-11-12T08:25:25.000Z | 2021-12-13T09:24:53.000Z | import mirge.forgi.graph.bulge_graph as fgb
import os
import re
def isisParenthese(i):
flag = False
if i == '(' or i == ')':
flag = True
return flag
#get miRNA position on RNASequence, 0-based
def getMiRNAPosition(miRNASeq, RNASequence):
startPos = RNASequence.find(miRNASeq)
endPos = startPos + le... | 38.12485 | 137 | 0.666793 | 3,596 | 31,758 | 5.863459 | 0.085373 | 0.004743 | 0.015793 | 0.028172 | 0.760541 | 0.739815 | 0.709746 | 0.689542 | 0.675314 | 0.675314 | 0 | 0.025394 | 0.215095 | 31,758 | 832 | 138 | 38.170673 | 0.820476 | 0.09988 | 0 | 0.769231 | 0 | 0 | 0.021599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.00135 | 0.004049 | 0.00135 | 0.055331 | 0.004049 | 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 |
2eba2171dcccd1f078f2b506ad58a6cae5603b35 | 742 | py | Python | forgepb/cmd/__init__.py | provenance-io/forge.pb | e26909fe73cec9e62fd1748b1e73719b957df48e | [
"Apache-2.0"
] | 1 | 2022-01-13T16:46:33.000Z | 2022-01-13T16:46:33.000Z | forgepb/cmd/__init__.py | provenance-io/forge.pb | e26909fe73cec9e62fd1748b1e73719b957df48e | [
"Apache-2.0"
] | 7 | 2021-12-16T17:09:01.000Z | 2022-01-26T17:28:16.000Z | forgepb/cmd/__init__.py | provenance-io/forge.pb | e26909fe73cec9e62fd1748b1e73719b957df48e | [
"Apache-2.0"
] | null | null | null | import click
from forgepb.cmd.config import *
from forgepb.cmd.node import *
from forgepb.cmd.provenance import *
@click.group("node", help="Interact with nodes")
def node_cmd(): pass
@click.group("config")
def config_cmd(): pass
@click.group("provenance", help="Retrieve information on provenance")
def provenanc... | 23.1875 | 69 | 0.819407 | 119 | 742 | 4.764706 | 0.319328 | 0.095238 | 0.206349 | 0.179894 | 0.354497 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08221 | 742 | 31 | 70 | 23.935484 | 0.832599 | 0.055256 | 0 | 0 | 0 | 0 | 0.104435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | true | 0.157895 | 0.210526 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2ed480b7af150fb427195a9523a1dc5c325b7127 | 110 | py | Python | python-para-zumbis/Lista 1/exercicio01_josebarbosa_02.py | kidchenko/playground | 750f1d12a793f6851df68bbd1b9d3ec32b5f70a3 | [
"MIT"
] | 4 | 2016-11-10T02:29:32.000Z | 2017-08-24T15:19:12.000Z | python-para-zumbis/Lista 1/exercicio01_josebarbosa_02.py | kidchenko/playground | 750f1d12a793f6851df68bbd1b9d3ec32b5f70a3 | [
"MIT"
] | 13 | 2019-09-16T20:01:18.000Z | 2022-02-13T11:00:49.000Z | python-para-zumbis/Lista 1/exercicio01_josebarbosa_02.py | kidchenko/playground | 750f1d12a793f6851df68bbd1b9d3ec32b5f70a3 | [
"MIT"
] | 1 | 2022-02-24T06:35:25.000Z | 2022-02-24T06:35:25.000Z | metros = int(input('Digite o valor em metros: '))
print ('O valor em milimetros e: %.2f' % (metros * 1000))
| 36.666667 | 58 | 0.636364 | 17 | 110 | 4.117647 | 0.705882 | 0.171429 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05618 | 0.190909 | 110 | 2 | 59 | 55 | 0.730337 | 0 | 0 | 0 | 0 | 0 | 0.509259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2efc9ff2fddeba1682f9b4e6dc7063503a896104 | 232 | py | Python | minigest/docfisc/serializers/chiusura/annullo.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | minigest/docfisc/serializers/chiusura/annullo.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | 1 | 2021-09-22T19:10:20.000Z | 2021-09-22T19:10:20.000Z | minigest/docfisc/serializers/chiusura/annullo.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | from rest_framework import serializers
from ...models import ChiusuraAnnulloMerce
class ChiusuraAnnulloMerceSerializer(serializers.ModelSerializer):
class Meta:
model = ChiusuraAnnulloMerce
fields = "__all__"
| 23.2 | 66 | 0.771552 | 19 | 232 | 9.157895 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176724 | 232 | 9 | 67 | 25.777778 | 0.910995 | 0 | 0 | 0 | 0 | 0 | 0.030172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2c1fce47b325ae5ecad6f32079b83d90eca17ef3 | 1,002 | py | Python | sandblox/util/misc.py | reubenjohn/sandblox | 0b7917eb866ddbc4749a098884046d4ebb441985 | [
"MIT"
] | 2 | 2022-02-08T16:29:45.000Z | 2022-02-08T23:17:50.000Z | sandblox/util/misc.py | reubenjohn/sandblox | 0b7917eb866ddbc4749a098884046d4ebb441985 | [
"MIT"
] | 7 | 2019-12-16T21:08:10.000Z | 2021-12-14T07:06:43.000Z | sandblox/util/misc.py | reubenjohn/sandblox | 0b7917eb866ddbc4749a098884046d4ebb441985 | [
"MIT"
] | 1 | 2018-04-09T15:49:55.000Z | 2018-04-09T15:49:55.000Z | # TODO Introduce DesignViolation escalation system
class DictAttrs(object):
def __init__(self, **dic):
self.__dict__.update(dic)
def __iter__(self):
return self.__dict__.__iter__()
def __getitem__(self, item):
return self.__dict__.__getitem__(item)
def __getattr__(self, item):
if not item in self.__dic... | 20.44898 | 50 | 0.749501 | 135 | 1,002 | 4.837037 | 0.303704 | 0.073507 | 0.061256 | 0.082695 | 0.122511 | 0.061256 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146707 | 1,002 | 48 | 51 | 20.875 | 0.763743 | 0.047904 | 0 | 0.096774 | 0 | 0 | 0.003151 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.354839 | false | 0.032258 | 0 | 0.129032 | 0.709677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
257d72308c0a6aecf26e5c205e71455f66edbcd4 | 124 | py | Python | correlation/__main__.py | brooklynphotos/nbacasestudy | 5456ba73b95caef474c6163db955658d555deda0 | [
"Apache-2.0"
] | null | null | null | correlation/__main__.py | brooklynphotos/nbacasestudy | 5456ba73b95caef474c6163db955658d555deda0 | [
"Apache-2.0"
] | null | null | null | correlation/__main__.py | brooklynphotos/nbacasestudy | 5456ba73b95caef474c6163db955658d555deda0 | [
"Apache-2.0"
] | null | null | null | """
Just the bootstrapped main runner. No logic here.
"""
from correlation import app
if __name__=='__main__':
app.run() | 15.5 | 49 | 0.709677 | 17 | 124 | 4.705882 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 124 | 8 | 50 | 15.5 | 0.769231 | 0.395161 | 0 | 0 | 0 | 0 | 0.117647 | 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 |
258e54b973a8b5b6528682a0e6d52203ce05848b | 2,140 | py | Python | venv/Lib/site-packages/tools37/geom/BoundingBox.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tools37/geom/BoundingBox.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | venv/Lib/site-packages/tools37/geom/BoundingBox.py | GabrielAmare/Darts | 182748d821b8c1838071f3b28724d0d9b095dcf9 | [
"MIT"
] | null | null | null | from numbers import Real
from .Coords import Coords
class BoundingBox:
"""
BoundingBox represent a rectangle in 2 dimensions
nw ── n ── ne yi
│ │ │ │
w ─── c ─── e y
│ │ │ │
sw ── s ── se yf
xi ── x ── xf
where dx == ... | 19.279279 | 57 | 0.510748 | 309 | 2,140 | 3.621359 | 0.132686 | 0.178731 | 0.142985 | 0.196604 | 0.655049 | 0.453083 | 0.254692 | 0 | 0 | 0 | 0 | 0.000729 | 0.358879 | 2,140 | 110 | 58 | 19.454545 | 0.795918 | 0.114953 | 0 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28169 | false | 0 | 0.028169 | 0.140845 | 0.577465 | 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 |
25ae04b212a751e616f2ecaa463be03319ebde8d | 704 | py | Python | backend/cctool/common/lib/centralities.py | ComplexControlTool/cctool | 4d736869eeb03ed9378e1314bca838e213460b08 | [
"MIT"
] | 1 | 2019-02-28T21:17:25.000Z | 2019-02-28T21:17:25.000Z | backend/cctool/common/lib/centralities.py | ComplexControlTool/cctool | 4d736869eeb03ed9378e1314bca838e213460b08 | [
"MIT"
] | 2 | 2020-07-16T09:30:04.000Z | 2021-06-10T20:46:43.000Z | backend/cctool/common/lib/centralities.py | ComplexControlTool/cctool | 4d736869eeb03ed9378e1314bca838e213460b08 | [
"MIT"
] | null | null | null | import networkx as nx
def get_centrality_measurement_nx(G, measure):
try:
if measure == 'degree':
centrality = nx.degree_centrality(G)
elif measure == 'in-degree':
centrality = nx.in_degree_centrality(G)
elif measure == 'out-degree':
centrality = nx.out_... | 32 | 53 | 0.606534 | 73 | 704 | 5.69863 | 0.342466 | 0.230769 | 0.180288 | 0.264423 | 0.201923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302557 | 704 | 22 | 54 | 32 | 0.847251 | 0 | 0 | 0 | 0 | 0 | 0.079433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.052632 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
25b9276e83b2a97e6d2af6c8bb299fa28213b060 | 18 | py | Python | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/gumtree/diff/data/update/dst_2.py | JetBrains-Research/ast-transformations | 0ab408af3275b520cc87a473f418c4b4dfcb0284 | [
"MIT"
] | 8 | 2021-01-19T21:15:54.000Z | 2022-02-23T19:16:25.000Z | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/gumtree/diff/data/update/dst_2.py | JetBrains-Research/ast-transformations | 0ab408af3275b520cc87a473f418c4b4dfcb0284 | [
"MIT"
] | 4 | 2020-11-17T14:28:25.000Z | 2022-02-24T07:54:28.000Z | ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/gumtree/diff/data/update/dst_2.py | nbirillo/ast-transformations | 717706765a2da29087a0de768fc851698886dd65 | [
"MIT"
] | 1 | 2022-02-23T19:16:30.000Z | 2022-02-23T19:16:30.000Z | a1 = +1
a2 = True
| 6 | 9 | 0.5 | 4 | 18 | 2.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.333333 | 18 | 2 | 10 | 9 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
25c43f3f5304129ae8867441f2cf82835f6398f6 | 299 | py | Python | PDK_Generator/design_automation/__init__.py | seanlam97/PDK_Generator | 15c1f4f56575f8e21ea874443d06ef740ccb5aa5 | [
"MIT"
] | null | null | null | PDK_Generator/design_automation/__init__.py | seanlam97/PDK_Generator | 15c1f4f56575f8e21ea874443d06ef740ccb5aa5 | [
"MIT"
] | 3 | 2021-08-24T23:31:42.000Z | 2021-08-25T16:45:54.000Z | PDK_Generator/design_automation/__init__.py | seanlam97/PDK_Generator | 15c1f4f56575f8e21ea874443d06ef740ccb5aa5 | [
"MIT"
] | null | null | null | ################################################################################
# Design Automation #
################################################################################
'''
Author: Sean Lam
Contact: seanlm@student.ubc.ca
''' | 37.375 | 80 | 0.180602 | 10 | 299 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240803 | 299 | 8 | 81 | 37.375 | 0.237885 | 0.270903 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
25cedb5f5b129fbf73be563114d80461a0206d7f | 931,115 | py | Python | ui/resource_rc.py | simonguichandut/curvefitting | a33cb59f754ee00e7296ce36b0130eebd06c30cc | [
"MIT"
] | 1 | 2021-09-06T02:20:59.000Z | 2021-09-06T02:20:59.000Z | ui/resource_rc.py | simonguichandut/curvefitting | a33cb59f754ee00e7296ce36b0130eebd06c30cc | [
"MIT"
] | null | null | null | ui/resource_rc.py | simonguichandut/curvefitting | a33cb59f754ee00e7296ce36b0130eebd06c30cc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.12.9)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x53\x06\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
... | 66.741811 | 106 | 0.716344 | 222,250 | 931,115 | 3.000949 | 0.001386 | 0.005703 | 0.002442 | 0.001601 | 0.049109 | 0.040104 | 0.031233 | 0.023402 | 0.018526 | 0.015769 | 0 | 0.310874 | 0.030059 | 931,115 | 13,950 | 107 | 66.746595 | 0.427628 | 0.000163 | 0 | 0.008181 | 0 | 0.995694 | 0.000001 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.000144 | false | 0 | 0.000072 | 0 | 0.000215 | 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 |
25ef532adec0ac65ede38dc28a692d598c0384e9 | 180 | py | Python | Sakuya/animation.py | novialriptide/Endless-Sim | af0110134da394d057c3cc283adc13dab508fa0d | [
"Apache-2.0"
] | 1 | 2022-02-16T19:32:18.000Z | 2022-02-16T19:32:18.000Z | Sakuya/animation.py | novialriptide/Endless-Sim | af0110134da394d057c3cc283adc13dab508fa0d | [
"Apache-2.0"
] | 1 | 2021-11-19T19:31:23.000Z | 2021-11-19T19:33:55.000Z | Sakuya/animation.py | novialriptide/Endless-Sim | af0110134da394d057c3cc283adc13dab508fa0d | [
"Apache-2.0"
] | null | null | null | import pygame
import typing
class animation:
def __init__(self, name: str, sprites: typing.List[pygame.sprite.Sprite]):
self.name = name
self.sprites = sprites | 25.714286 | 78 | 0.694444 | 23 | 180 | 5.26087 | 0.565217 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211111 | 180 | 7 | 79 | 25.714286 | 0.852113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d3058d00c707c84adacb055631a7362c901fe2eb | 185 | py | Python | fastapi_react_admin/properties/auth.py | sqllq/fastapi-react-admin | a0384061bd36881bcd334edb54eab5ab610ebbfd | [
"MIT"
] | null | null | null | fastapi_react_admin/properties/auth.py | sqllq/fastapi-react-admin | a0384061bd36881bcd334edb54eab5ab610ebbfd | [
"MIT"
] | null | null | null | fastapi_react_admin/properties/auth.py | sqllq/fastapi-react-admin | a0384061bd36881bcd334edb54eab5ab610ebbfd | [
"MIT"
] | null | null | null | from ..entities import BaseProperty
class AuthProperty(BaseProperty):
name: str = "Auth"
package: str = "./Auth"
property: str = "authProvider"
use_braces: bool = True | 23.125 | 35 | 0.675676 | 20 | 185 | 6.2 | 0.8 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210811 | 185 | 8 | 36 | 23.125 | 0.849315 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 4 |
d30b90960e789c491175f4d34b00391cfe3a4ca8 | 371 | py | Python | HelloWorld/dictionaries.py | lazywithcrazyness/PythonForBeginners | 7667d16e4f0fd0f4e659e65ab7482f5a40fa5c5c | [
"MIT"
] | null | null | null | HelloWorld/dictionaries.py | lazywithcrazyness/PythonForBeginners | 7667d16e4f0fd0f4e659e65ab7482f5a40fa5c5c | [
"MIT"
] | null | null | null | HelloWorld/dictionaries.py | lazywithcrazyness/PythonForBeginners | 7667d16e4f0fd0f4e659e65ab7482f5a40fa5c5c | [
"MIT"
] | null | null | null | customers = {
"name": "Taen Ahammed",
"age": 20,
"is_verified": True
}
print(customers["name"])
# print(customers["birthdate"])
# print(customers["Name"])
customers["name"] = "Taen"
print(customers.get("name"))
print(customers.get("birthdate"))
print(customers.get("birthdate", "Dec 12 1998"))
customers[... | 19.526316 | 48 | 0.668464 | 42 | 371 | 5.880952 | 0.404762 | 0.396761 | 0.206478 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02454 | 0.121294 | 371 | 18 | 49 | 20.611111 | 0.733129 | 0.145553 | 0 | 0 | 0 | 0 | 0.296178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d30efac79cd40fe4c84d49118f6e6fa9787d281c | 87 | py | Python | vinapi/apps.py | snavruzov/vin_decoder | e832096d04c6c64da0b18476030fb4197fd9063b | [
"Apache-2.0"
] | 1 | 2021-02-11T11:02:17.000Z | 2021-02-11T11:02:17.000Z | vinapi/apps.py | snavruzov/vin_decoder | e832096d04c6c64da0b18476030fb4197fd9063b | [
"Apache-2.0"
] | 3 | 2020-06-05T17:48:13.000Z | 2021-06-10T19:52:15.000Z | vinapi/apps.py | snavruzov/vin_decoder | e832096d04c6c64da0b18476030fb4197fd9063b | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class VinapiConfig(AppConfig):
name = 'vinapi'
| 14.5 | 33 | 0.747126 | 10 | 87 | 6.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 87 | 5 | 34 | 17.4 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d310afcad8dc2b37be259e6626dce4f74880a1fe | 658 | py | Python | config/auth_and_login/tests/views/test_view_profile_info.py | borko81/mymdb | 0dbd2ccebb8135ba09724e6522a334b1934054bb | [
"MIT"
] | null | null | null | config/auth_and_login/tests/views/test_view_profile_info.py | borko81/mymdb | 0dbd2ccebb8135ba09724e6522a334b1934054bb | [
"MIT"
] | null | null | null | config/auth_and_login/tests/views/test_view_profile_info.py | borko81/mymdb | 0dbd2ccebb8135ba09724e6522a334b1934054bb | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from django.test import TestCase, Client
from django.urls import reverse
class TestViewProfileInfo(TestCase):
def setUp(self):
self.client = Client()
self.user_for_test = User.objects.create(username='borko123', password='borko')
self.search_user... | 32.9 | 87 | 0.676292 | 80 | 658 | 5.4625 | 0.5625 | 0.06865 | 0.064073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.209726 | 658 | 19 | 88 | 34.631579 | 0.817308 | 0.297872 | 0 | 0 | 0 | 0 | 0.048724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.111111 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
d374a99f6bab07da76988297c7138b0ba1fea370 | 381 | py | Python | apps/core/admin.py | jjorgewill/schedule | 1f5457d841b606f9a17f81df23de5a3dfe40a30c | [
"MIT"
] | null | null | null | apps/core/admin.py | jjorgewill/schedule | 1f5457d841b606f9a17f81df23de5a3dfe40a30c | [
"MIT"
] | null | null | null | apps/core/admin.py | jjorgewill/schedule | 1f5457d841b606f9a17f81df23de5a3dfe40a30c | [
"MIT"
] | null | null | null | from django.contrib import admin
from apps.core import models
# Register your models here.
admin.site.register(models.Event)
admin.site.register(models.Hour)
admin.site.register(models.Holiday)
admin.site.register(models.NonWorkingDay)
admin.site.register(models.Profession)
admin.site.register(models.Profile)
admin.s... | 27.214286 | 41 | 0.824147 | 54 | 381 | 5.814815 | 0.37037 | 0.229299 | 0.433121 | 0.585987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060367 | 381 | 13 | 42 | 29.307692 | 0.877095 | 0.068241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d3796475f6974536d9e7d062741e6207fd9501c0 | 87 | py | Python | codeforces/cdf304_2a.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | codeforces/cdf304_2a.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | codeforces/cdf304_2a.py | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | k, n, w = map(int, input().split())
print(max(sum(k*(i+1) for i in range(w)) - n , 0))
| 29 | 50 | 0.54023 | 20 | 87 | 2.35 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.172414 | 87 | 2 | 51 | 43.5 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d37e7fcd88f30ab8caac6c704ee319b2de086bd8 | 84 | py | Python | shaclgen/constraint.py | alexiskeely/shaclgen | 466b48dcd1107818c1e12342b0f6dc0c93043b98 | [
"Unlicense"
] | 3 | 2019-11-07T23:59:19.000Z | 2020-02-16T09:19:05.000Z | shaclgen/constraint.py | alexiskeely/shapeGen | a5d1d2b1aeb0e15261d4adc93920c1fad357b843 | [
"Unlicense"
] | null | null | null | shaclgen/constraint.py | alexiskeely/shapeGen | a5d1d2b1aeb0e15261d4adc93920c1fad357b843 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 15:47:44 2020
@author: alexi
"""
| 12 | 35 | 0.571429 | 14 | 84 | 3.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 0.202381 | 84 | 6 | 36 | 14 | 0.522388 | 0.880952 | 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 |
d383a0f8b23273047351e7726f0b3847e52a7561 | 2,240 | py | Python | server/src/voodoo/sessions/exc.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | server/src/voodoo/sessions/exc.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | server/src/voodoo/sessions/exc.py | zstars/weblabdeusto | 09bd9d93d483671bca67ee5c70a9c412eb5d352f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2005 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# list... | 32.463768 | 67 | 0.736607 | 229 | 2,240 | 6.751092 | 0.305677 | 0.134541 | 0.201811 | 0.285899 | 0.536223 | 0.509056 | 0.509056 | 0.509056 | 0.509056 | 0.509056 | 0 | 0.00258 | 0.134821 | 2,240 | 68 | 68 | 32.941176 | 0.79515 | 0.155804 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.325 | false | 0 | 0.025 | 0 | 0.675 | 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 |
d387cd2c5cf7cb8af7cea196378772be71ea7f52 | 107 | py | Python | dovelet/q_r.py | hg-pyun/algorithm | cf92483c399f05e488b6febc79c80620f115fadf | [
"MIT"
] | 7 | 2018-09-15T13:57:37.000Z | 2022-03-13T10:01:56.000Z | dovelet/q_r.py | hg-pyun/algorithm | cf92483c399f05e488b6febc79c80620f115fadf | [
"MIT"
] | 1 | 2019-04-26T07:02:28.000Z | 2019-04-26T07:02:28.000Z | dovelet/q_r.py | hg-pyun/algorithm | cf92483c399f05e488b6febc79c80620f115fadf | [
"MIT"
] | 1 | 2020-05-03T23:43:38.000Z | 2020-05-03T23:43:38.000Z | # http://59.23.150.58/30stair/q_r/q_r.php?pname=q_r
a, b = map(int, input().split())
print(int(a/b), a%b) | 21.4 | 51 | 0.626168 | 26 | 107 | 2.461538 | 0.653846 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0.093458 | 107 | 5 | 52 | 21.4 | 0.546392 | 0.457944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
d39fcd4ff9b06c4d681105e54ba846ef4393ab67 | 181 | py | Python | Bot/BotBase.py | JHJohny/CryptoBuyInBot | 4a7ab4ff1c5dd92fc3853e4de75c54053f66871e | [
"MIT"
] | null | null | null | Bot/BotBase.py | JHJohny/CryptoBuyInBot | 4a7ab4ff1c5dd92fc3853e4de75c54053f66871e | [
"MIT"
] | null | null | null | Bot/BotBase.py | JHJohny/CryptoBuyInBot | 4a7ab4ff1c5dd92fc3853e4de75c54053f66871e | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class Bot(ABC):
@abstractmethod
def check_for_opportunities(self):
pass
@abstractmethod
def start(self):
pass
| 15.083333 | 38 | 0.657459 | 20 | 181 | 5.85 | 0.65 | 0.290598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276243 | 181 | 11 | 39 | 16.454545 | 0.89313 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6c97ed9e4ce5138948fa20c24c74d80b5d833d02 | 7,878 | py | Python | server/data/gas_rent_groceries.py | MikeSmvl/travelingstrategy | 3d38c64f00bafdf2ca1079d14f9b618bce8307b0 | [
"MIT"
] | null | null | null | server/data/gas_rent_groceries.py | MikeSmvl/travelingstrategy | 3d38c64f00bafdf2ca1079d14f9b618bce8307b0 | [
"MIT"
] | 2 | 2021-05-08T23:09:17.000Z | 2021-09-02T11:27:08.000Z | server/data/gas_rent_groceries.py | MikeSmvl/travelingstrategy | 3d38c64f00bafdf2ca1079d14f9b618bce8307b0 | [
"MIT"
] | 2 | 2020-10-14T01:18:32.000Z | 2020-11-09T16:54:16.000Z | import datetime
import sys
from helper_class.api_helper import ApiHelper
from helper_class.flags import Flags
from helper_class.logger import Logger
from lib.config import (gas_rent_grocery_api, iso_list, new_york_grocery,
new_york_rent, new_york_salary, sqlite_db)
from lib.database import Data... | 78 | 1,616 | 0.776085 | 1,023 | 7,878 | 5.8348 | 0.2913 | 0.031664 | 0.018093 | 0.014743 | 0.525046 | 0.508795 | 0.508795 | 0.475457 | 0.464399 | 0.464399 | 0 | 0.452033 | 0.113481 | 7,878 | 101 | 1,617 | 78 | 0.402635 | 0.018025 | 0 | 0.240964 | 0 | 0.036145 | 0.616917 | 0.198784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0 | 0.084337 | 0 | 0.168675 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6c9db16f286ae59dae35dc78c013d797b46c900e | 140 | py | Python | src/coalescenceml/producers/exceptions.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 1 | 2022-03-22T17:48:55.000Z | 2022-03-22T17:48:55.000Z | src/coalescenceml/producers/exceptions.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 2 | 2022-02-18T18:48:12.000Z | 2022-02-19T18:14:38.000Z | src/coalescenceml/producers/exceptions.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 1 | 2022-02-10T02:52:22.000Z | 2022-02-10T02:52:22.000Z | class ProducerInterfaceError(Exception):
"""Raises exception when interacting with the Producer interface
in an unsupported way."""
| 35 | 68 | 0.771429 | 15 | 140 | 7.2 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 140 | 3 | 69 | 46.666667 | 0.915254 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6cd34025904dbbd7205d756caf8d19184d68deaf | 1,080 | py | Python | tools/leetcode.158.Read N Characters Given Read4 II - Call multiple times/leetcode.158.Read N Characters Given Read4 II - Call multiple times.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.158.Read N Characters Given Read4 II - Call multiple times/leetcode.158.Read N Characters Given Read4 II - Call multiple times.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.158.Read N Characters Given Read4 II - Call multiple times/leetcode.158.Read N Characters Given Read4 II - Call multiple times.submission1.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | # The read4 API is already defined for you.
# @param buf, a list of characters
# @return an integer
# def read4(buf):
class Solution(object):
def __init__(self):
self.buffer_size = 0
self.offset = 0
self.buffer = [None] * 4
# @param buf, Destination buffer (a list of characters)
... | 1,080 | 1,080 | 0.550926 | 141 | 1,080 | 4.113475 | 0.340426 | 0.137931 | 0.12069 | 0.077586 | 0.058621 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015942 | 0.361111 | 1,080 | 1 | 1,080 | 1,080 | 0.824638 | 0.992593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6cda6e4ff2e17afed1c312395e3e644c5ec22fab | 246 | py | Python | utils/metrics.py | zihaomu/HID_2020_baseline | c2c3705707695a969d24aa52c225aa3f85c7a4f3 | [
"Apache-2.0"
] | 34 | 2020-08-26T14:53:13.000Z | 2021-09-26T12:41:55.000Z | utils/metrics.py | zihaomu/HID_2020_baseline | c2c3705707695a969d24aa52c225aa3f85c7a4f3 | [
"Apache-2.0"
] | 1 | 2020-10-10T14:29:25.000Z | 2020-10-10T19:28:03.000Z | utils/metrics.py | zihaomu/HID_2020_baseline | c2c3705707695a969d24aa52c225aa3f85c7a4f3 | [
"Apache-2.0"
] | 7 | 2020-09-06T06:49:45.000Z | 2022-03-11T11:13:39.000Z | import numpy as np
import sklearn.metrics
# f1 score
def f1_score(actual, predicted, average='macro'):
actual = np.array(actual)
predicted = np.array(predicted)
return sklearn.metrics.f1_score(actual, predicted, average=average)
| 24.6 | 70 | 0.735772 | 33 | 246 | 5.424242 | 0.454545 | 0.117318 | 0.178771 | 0.234637 | 0.324022 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.162602 | 246 | 9 | 71 | 27.333333 | 0.854369 | 0.03252 | 0 | 0 | 0 | 0 | 0.022026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
9f0b39439943ab0b4b0bb1d13a1d6f8d460c00b6 | 1,641 | py | Python | core/utils/data_utils/bev_utils.py | timothijoe/DI-drive | 3cddefc85bbbca6bcdd8a4d796decacaf8d81778 | [
"Apache-2.0"
] | 219 | 2021-07-07T21:55:21.000Z | 2022-03-31T14:56:43.000Z | core/utils/data_utils/bev_utils.py | timothijoe/DI-drive | 3cddefc85bbbca6bcdd8a4d796decacaf8d81778 | [
"Apache-2.0"
] | 7 | 2021-08-11T05:26:19.000Z | 2022-03-29T22:21:24.000Z | core/utils/data_utils/bev_utils.py | timothijoe/DI-drive | 3cddefc85bbbca6bcdd8a4d796decacaf8d81778 | [
"Apache-2.0"
] | 29 | 2021-07-08T03:17:22.000Z | 2022-03-16T03:51:43.000Z | import numpy as np
import torch
from ding.torch_utils import to_dtype, to_ndarray
def pack_birdview(data, packbit=False):
if isinstance(data, dict):
if 'obs' in data:
pack_birdview(data['obs'])
if 'next_obs' in data:
pack_birdview(data['next_obs'])
if 'birdview' in... | 34.914894 | 83 | 0.568556 | 211 | 1,641 | 4.312796 | 0.184834 | 0.105495 | 0.059341 | 0.052747 | 0.773626 | 0.773626 | 0.751648 | 0.751648 | 0.617582 | 0.617582 | 0 | 0.006341 | 0.327239 | 1,641 | 46 | 84 | 35.673913 | 0.817935 | 0 | 0 | 0.585366 | 0 | 0 | 0.07922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.073171 | 0 | 0.121951 | 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 |
9f4d7abe74e35f0cd90123410320225a1c555eb6 | 105 | py | Python | app/version.py | thlava-cesnet/test3 | 0eeeae7c0572e31b73bfc203f9c6942323ca99a9 | [
"MIT"
] | null | null | null | app/version.py | thlava-cesnet/test3 | 0eeeae7c0572e31b73bfc203f9c6942323ca99a9 | [
"MIT"
] | null | null | null | app/version.py | thlava-cesnet/test3 | 0eeeae7c0572e31b73bfc203f9c6942323ca99a9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
from __future__ import absolute_import, print_function
__version__ = "0.0.2"
| 15 | 54 | 0.695238 | 14 | 105 | 4.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0.152381 | 105 | 6 | 55 | 17.5 | 0.662921 | 0.2 | 0 | 0 | 0 | 0 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
9f511b7c8d14a6d2c20e4d1b67446176cf31f1c6 | 239 | py | Python | python2.7/site-packages/twisted/words/im/__init__.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 267 | 2015-03-22T15:23:48.000Z | 2022-03-05T21:57:34.000Z | python2.7/site-packages/twisted/words/im/__init__.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 133 | 2015-03-21T15:13:43.000Z | 2021-12-11T23:37:58.000Z | python2.7/site-packages/twisted/words/im/__init__.py | 84KaliPleXon3/sslstrip-hsts-openwrt | f875ded48078a3ed84bffef1e69dcbeaf2e77ae3 | [
"MIT"
] | 119 | 2015-04-28T16:07:10.000Z | 2022-03-18T03:49:48.000Z | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
"""Instance Messenger, Pan-protocol chat client."""
import warnings
warnings.warn("twisted.im will be undergoing a rewrite at some point in the future.")
| 26.555556 | 85 | 0.761506 | 34 | 239 | 5.352941 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039024 | 0.142259 | 239 | 8 | 86 | 29.875 | 0.84878 | 0.518828 | 0 | 0 | 0 | 0 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9f5d0fc6d22c092a71938fc1a27ace9fc269b1be | 14,277 | py | Python | webquills/theme_bs4_2021/apps.py | webquills/webquills | aaa6bcfcd0e50aa239f94bd3d34f259cb3bff727 | [
"Apache-2.0"
] | null | null | null | webquills/theme_bs4_2021/apps.py | webquills/webquills | aaa6bcfcd0e50aa239f94bd3d34f259cb3bff727 | [
"Apache-2.0"
] | 30 | 2020-02-15T14:43:06.000Z | 2021-06-07T19:10:16.000Z | webquills/theme_bs4_2021/apps.py | webquills/webquills | aaa6bcfcd0e50aa239f94bd3d34f259cb3bff727 | [
"Apache-2.0"
] | null | null | null | from functools import cached_property
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class ThemeBs42021Config(AppConfig):
name = "webquills.theme_bs4_2021"
label = "bs4theme"
verbose_name = _("Bootstrap 4 Theme Engine")
@cached_property
def style_choices(... | 54.701149 | 103 | 0.582545 | 1,527 | 14,277 | 5.410609 | 0.096267 | 0.23602 | 0.283224 | 0.193174 | 0.69971 | 0.65069 | 0.476035 | 0.265069 | 0.15771 | 0.152505 | 0 | 0.01608 | 0.233382 | 14,277 | 260 | 104 | 54.911538 | 0.738785 | 0.002311 | 0 | 0 | 0 | 0.086275 | 0.664022 | 0.00667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003922 | false | 0 | 0.011765 | 0.003922 | 0.039216 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9f94b1672267ced02d0a21c4b2de46e660c90182 | 1,245 | py | Python | hellosign_sdk/utils/__init__.py | propellr/hellosign-python-sdk | ea7d4cc61e474e4909e46023716115829ce77e33 | [
"MIT"
] | null | null | null | hellosign_sdk/utils/__init__.py | propellr/hellosign-python-sdk | ea7d4cc61e474e4909e46023716115829ce77e33 | [
"MIT"
] | null | null | null | hellosign_sdk/utils/__init__.py | propellr/hellosign-python-sdk | ea7d4cc61e474e4909e46023716115829ce77e33 | [
"MIT"
] | null | null | null | from exception import HSException
from exception import NoAuthMethod
from exception import HTTPError
from exception import BadRequest
from exception import Unauthorized
from exception import PaymentRequired
from exception import Forbidden
from exception import NotFound
from exception import MethodNotAllowed
from except... | 40.16129 | 131 | 0.864257 | 116 | 1,245 | 9.241379 | 0.241379 | 0.254664 | 0.372201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115663 | 1,245 | 30 | 132 | 41.5 | 0.97366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.884615 | 0 | 0.884615 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9fbc901b69d405e5de8a9563701e18b405d06a26 | 407 | py | Python | users/auth.py | lig/picket2014 | 4456d6c85312a3bc2771aa969aa0c404c0b6074e | [
"Apache-2.0"
] | 2 | 2020-05-17T18:06:45.000Z | 2020-06-11T11:37:46.000Z | users/auth.py | lig/picket2014 | 4456d6c85312a3bc2771aa969aa0c404c0b6074e | [
"Apache-2.0"
] | null | null | null | users/auth.py | lig/picket2014 | 4456d6c85312a3bc2771aa969aa0c404c0b6074e | [
"Apache-2.0"
] | null | null | null | from .documents import User
class Backend(object):
def authenticate(self, username=None, email=None, password=None):
email = User.normalize_email(username or email)
user = User.objects(email=email.lower()).first()
if user and password and user.check_password(password):
return... | 27.133333 | 69 | 0.678133 | 54 | 407 | 5 | 0.481481 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223587 | 407 | 14 | 70 | 29.071429 | 0.85443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.222222 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
4cc57033aaccc28fdd986e71df9d96dd622ab13e | 96 | py | Python | handlers/apps.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | handlers/apps.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | handlers/apps.py | EDario333/minegocito | 5dd0869fa2510bb8152f4a117f33b2a30bb6d69c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class HandlersConfig(AppConfig):
name = 'handlers'
| 16 | 34 | 0.71875 | 10 | 96 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 96 | 5 | 35 | 19.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 |
4ce9d8255a23720d1224b3625190c85516166722 | 257 | py | Python | about/admin.py | ayushganguli1769/DevelopmentRobotix | 1692c104a6f220aa1238840b791aa857a6cc7765 | [
"Apache-2.0"
] | null | null | null | about/admin.py | ayushganguli1769/DevelopmentRobotix | 1692c104a6f220aa1238840b791aa857a6cc7765 | [
"Apache-2.0"
] | 7 | 2020-02-12T02:54:35.000Z | 2022-03-12T00:06:26.000Z | about/admin.py | ayushganguli1769/DevelopmentRobotix | 1692c104a6f220aa1238840b791aa857a6cc7765 | [
"Apache-2.0"
] | 6 | 2020-02-10T16:37:38.000Z | 2021-01-28T13:39:46.000Z | from django.contrib import admin
from . models import Convenor,Coordinator,HeadCoordinator,Manager
# Register your models here.
admin.site.register(Convenor)
admin.site.register(Coordinator)
admin.site.register(HeadCoordinator)
admin.site.register(Manager)
| 32.125 | 65 | 0.840467 | 32 | 257 | 6.75 | 0.4375 | 0.166667 | 0.314815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070039 | 257 | 7 | 66 | 36.714286 | 0.903766 | 0.101167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4cf5c74a9eae660855c263570fd37a488ac27d77 | 220 | py | Python | Main/forms.py | Muhammet-Yildiz/Ecommerce_Website-HepsiOrada | 91935014ccc37e0ea57c8cbd2c4891941dcbb917 | [
"MIT"
] | 10 | 2021-06-01T19:30:00.000Z | 2021-06-28T16:16:20.000Z | Main/forms.py | Muhammet-Yildiz/HepsiOrada | 91935014ccc37e0ea57c8cbd2c4891941dcbb917 | [
"MIT"
] | null | null | null | Main/forms.py | Muhammet-Yildiz/HepsiOrada | 91935014ccc37e0ea57c8cbd2c4891941dcbb917 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from .models import *
class ContactForm(forms.ModelForm):
class Meta :
model = Contact
fields = ["name","email","message"]
| 22 | 44 | 0.668182 | 26 | 220 | 5.653846 | 0.692308 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231818 | 220 | 9 | 45 | 24.444444 | 0.869822 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.714286 | 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 |
e21774f87d9a1c44618593a374cf180506694622 | 94 | py | Python | okdata/cli/commands/datasets/boilerplate/__init__.py | oslokommune/origo-cli | 49e5d3af61d7754b10948a90d6babc7cd5406342 | [
"MIT"
] | 4 | 2020-03-17T09:10:57.000Z | 2020-10-01T18:40:36.000Z | okdata/cli/commands/datasets/boilerplate/__init__.py | oslokommune/origo-cli | 49e5d3af61d7754b10948a90d6babc7cd5406342 | [
"MIT"
] | 14 | 2020-01-30T09:34:29.000Z | 2020-11-02T08:03:43.000Z | okdata/cli/commands/datasets/boilerplate/__init__.py | oslokommune/origo-cli | 49e5d3af61d7754b10948a90d6babc7cd5406342 | [
"MIT"
] | 1 | 2021-08-02T05:14:52.000Z | 2021-08-02T05:14:52.000Z | from .boilerplate import DatasetsBoilerplateCommand
__all__ = ["DatasetsBoilerplateCommand"]
| 23.5 | 51 | 0.851064 | 6 | 94 | 12.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 94 | 3 | 52 | 31.333333 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0.276596 | 0.276596 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e21c286fa91b0d8a86d2f0ad025db45ee6c8ff33 | 95 | wsgi | Python | mlbender.wsgi | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | mlbender.wsgi | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | mlbender.wsgi | imdatsolak/bender | e20a5c7553d0db60440573b4fc3e907d6a8d5fad | [
"BSD-3-Clause"
] | null | null | null | import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from mlbender import app as application
| 19 | 39 | 0.810526 | 14 | 95 | 5.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.105263 | 95 | 4 | 40 | 23.75 | 0.894118 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 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 |
e223cd261774499d5de28a892533dd64a20491d6 | 1,451 | py | Python | cacreader/swig-4.0.2/Examples/test-suite/python/constant_directive_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 1,031 | 2015-01-02T14:08:47.000Z | 2022-03-29T02:25:27.000Z | cacreader/swig-4.0.2/Examples/test-suite/python/constant_directive_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 240 | 2015-01-11T04:27:19.000Z | 2022-03-30T00:35:57.000Z | cacreader/swig-4.0.2/Examples/test-suite/python/constant_directive_runme.py | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 224 | 2015-01-05T06:13:54.000Z | 2022-02-25T14:39:51.000Z | import constant_directive
if not isinstance(constant_directive.TYPE1_CONSTANT1, constant_directive.Type1):
raise RuntimeError("Failure: TYPE1_CONSTANT1 type: {}".format(
type(constant_directive.TYPE1_CONSTANT1)))
if not isinstance(constant_directive.getType1Instance(), constant_directive.Type1):
raise ... | 50.034483 | 90 | 0.736044 | 164 | 1,451 | 6.268293 | 0.158537 | 0.363813 | 0.27821 | 0.150778 | 0.882296 | 0.346304 | 0.256809 | 0.11965 | 0.11965 | 0 | 0 | 0.042535 | 0.173673 | 1,451 | 28 | 91 | 51.821429 | 0.814846 | 0 | 0 | 0 | 0 | 0 | 0.253618 | 0.137147 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e22dbccb5d4258218bcd9967ff79df2a303325ae | 93 | py | Python | aww_vishwa/adminsite/apps.py | YJDave/AWW_AWH | 3fef0cbaba2962054151c8f90b2739d39ea917a9 | [
"MIT"
] | 1 | 2019-05-11T06:54:59.000Z | 2019-05-11T06:54:59.000Z | aww_vishwa/adminsite/apps.py | YJDave/AWW_AWH | 3fef0cbaba2962054151c8f90b2739d39ea917a9 | [
"MIT"
] | 1 | 2020-02-12T00:12:22.000Z | 2020-02-12T00:12:22.000Z | aww_vishwa/adminsite/apps.py | YJDave/AWW_AWH | 3fef0cbaba2962054151c8f90b2739d39ea917a9 | [
"MIT"
] | 6 | 2018-02-16T19:09:57.000Z | 2021-03-29T03:32:36.000Z | from django.apps import AppConfig
class AdminsiteConfig(AppConfig):
name = 'adminsite'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 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 |
e23f1a7d20b186302ff1b48abf5357dd9083c4cb | 187 | py | Python | worker/dependency/test_dependency.py | payentan/NlpPipeline | 49fea9f7742d3cb5b3ca152a387f72d245affc04 | [
"MIT"
] | 1 | 2019-12-08T08:26:12.000Z | 2019-12-08T08:26:12.000Z | worker/dependency/test_dependency.py | payentan/NlpPipeline | 49fea9f7742d3cb5b3ca152a387f72d245affc04 | [
"MIT"
] | null | null | null | worker/dependency/test_dependency.py | payentan/NlpPipeline | 49fea9f7742d3cb5b3ca152a387f72d245affc04 | [
"MIT"
] | null | null | null | import pytest
from worker.dependency.hanlp_util import *
class TestDependency(object):
def test_seg(self, hanlp_nn):
pass
if __name__=='__main__':
pytest.main()
| 18.7 | 42 | 0.684492 | 23 | 187 | 5.086957 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219251 | 187 | 9 | 43 | 20.777778 | 0.80137 | 0 | 0 | 0 | 0 | 0 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e25bcf80f9fae782ec9cd77f378e11271a8c5415 | 186 | py | Python | sef_dr/version.py | passalis/sef | cf5387e9e5198542522eb8d2784685233e1266ac | [
"MIT"
] | 31 | 2017-07-09T09:14:17.000Z | 2021-04-21T00:21:13.000Z | sef_dr/version.py | passalis/sef | cf5387e9e5198542522eb8d2784685233e1266ac | [
"MIT"
] | null | null | null | sef_dr/version.py | passalis/sef | cf5387e9e5198542522eb8d2784685233e1266ac | [
"MIT"
] | 2 | 2018-08-03T13:49:16.000Z | 2020-07-21T09:32:42.000Z | # License: MIT License https://github.com/passalis/sef/blob/master/LICENSE.txt
from __future__ import absolute_import, division, print_function, unicode_literals
__version__ = "0.2.10"
| 37.2 | 82 | 0.806452 | 26 | 186 | 5.346154 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.086022 | 186 | 4 | 83 | 46.5 | 0.794118 | 0.408602 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
e2652b0b43ca97b876435357f07c18825adc6590 | 5,625 | py | Python | tests/pipeline/bagging.py | PiePline/PieToolbelt | bcf9cab16bf3dbb19015c074a305f9ea8a8dc48e | [
"MIT"
] | 1 | 2021-05-30T08:21:12.000Z | 2021-05-30T08:21:12.000Z | tests/pipeline/bagging.py | PiePline/PieToolbelt | bcf9cab16bf3dbb19015c074a305f9ea8a8dc48e | [
"MIT"
] | 7 | 2020-07-07T21:04:08.000Z | 2021-12-13T10:08:17.000Z | tests/pipeline/bagging.py | PiePline/PieToolbelt | bcf9cab16bf3dbb19015c074a305f9ea8a8dc48e | [
"MIT"
] | 1 | 2021-06-17T09:21:39.000Z | 2021-06-17T09:21:39.000Z | import itertools
import os
import shutil
import unittest
from typing import Any, Dict
import numpy as np
from piepline.data_producer import BasicDataset
from pietoolbelt.pipeline.bagging.common import BasicBagging, BaggingResult
from pietoolbelt.pipeline.predict.common import AbstractPredictResult
class _PredictRes... | 40.467626 | 123 | 0.592178 | 651 | 5,625 | 4.943164 | 0.167435 | 0.011187 | 0.075202 | 0.060907 | 0.715351 | 0.701367 | 0.700746 | 0.700746 | 0.654133 | 0.621504 | 0 | 0.030987 | 0.259911 | 5,625 | 138 | 124 | 40.76087 | 0.742013 | 0 | 0 | 0.584906 | 0 | 0 | 0.043378 | 0 | 0 | 0 | 0 | 0 | 0.084906 | 1 | 0.103774 | false | 0.009434 | 0.084906 | 0.018868 | 0.245283 | 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 |
e27bd464b2a257af307606158bb59519be5f2801 | 506 | py | Python | src/webhook/__init__.py | staebler/managed-cluster-validating-webhooks | 7d022e8b6df5088b047ea3a0f2508eead60041c6 | [
"Apache-2.0"
] | null | null | null | src/webhook/__init__.py | staebler/managed-cluster-validating-webhooks | 7d022e8b6df5088b047ea3a0f2508eead60041c6 | [
"Apache-2.0"
] | null | null | null | src/webhook/__init__.py | staebler/managed-cluster-validating-webhooks | 7d022e8b6df5088b047ea3a0f2508eead60041c6 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
app = Flask(__name__, instance_relative_config=True)
from webhook import group_validation
app.register_blueprint(group_validation.bp)
from webhook import subscription_validation
app.register_blueprint(subscription_validation.bp)
from webhook import namespace_validation
app.register_blueprint... | 26.631579 | 52 | 0.873518 | 66 | 506 | 6.378788 | 0.30303 | 0.130641 | 0.2019 | 0.285036 | 0.275534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077075 | 506 | 18 | 53 | 28.111111 | 0.901499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.416667 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
e2a0a3f2f8ade2dbd66d793fa781b12197d5099f | 189 | py | Python | cpias/__init__.py | CellProfiling/cpias | e2d9426436573b40625287101570b849ce9f4a38 | [
"Apache-2.0"
] | null | null | null | cpias/__init__.py | CellProfiling/cpias | e2d9426436573b40625287101570b849ce9f4a38 | [
"Apache-2.0"
] | null | null | null | cpias/__init__.py | CellProfiling/cpias | e2d9426436573b40625287101570b849ce9f4a38 | [
"Apache-2.0"
] | null | null | null | """Provide a server for image analysis."""
from .const import VERSION
from .message import Message
from .server import CPIAServer
__all__ = ["Message", "CPIAServer"]
__version__ = VERSION
| 23.625 | 42 | 0.761905 | 23 | 189 | 5.913043 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137566 | 189 | 7 | 43 | 27 | 0.834356 | 0.190476 | 0 | 0 | 0 | 0 | 0.115646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e2b6ef04db38331fd1bc685246b6a748348e26d2 | 447 | py | Python | instructors/projects/rot13_project/examples/rot13_092314/id_test.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 46 | 2017-09-27T20:19:36.000Z | 2020-12-08T10:07:19.000Z | instructors/projects/rot13_project/examples/rot13_092314/id_test.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 6 | 2018-01-09T08:07:37.000Z | 2020-09-07T12:25:13.000Z | instructors/projects/rot13_project/examples/rot13_092314/id_test.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 18 | 2017-10-10T02:06:51.000Z | 2019-12-01T10:18:13.000Z |
def cat_tester(cat):
print "inside function, before assignment:", id(cat)
print cat
cat += " twice"
print "inside function, after assignment", id(cat)
print cat
return cat
if __name__ == "__main__":
cat = "meow"
print cat
print "outside function, before assignment:", id(ca... | 15.964286 | 57 | 0.630872 | 57 | 447 | 4.754386 | 0.298246 | 0.177122 | 0.221402 | 0.221402 | 0.630996 | 0.372694 | 0.265683 | 0 | 0 | 0 | 0 | 0 | 0.261745 | 447 | 27 | 58 | 16.555556 | 0.821212 | 0 | 0 | 0.4 | 0 | 0 | 0.355204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.533333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2c3e1f5b479680873df35fc0253fcfe428987c1d | 463 | py | Python | plugins/Ravencore/jobs/__init__.py | sLiinuX/wxRaven | a513a029fa1ff2059ee262c524b4b2b45111f1a6 | [
"MIT"
] | 11 | 2021-12-20T15:32:17.000Z | 2022-03-16T03:54:02.000Z | plugins/Ravencore/jobs/__init__.py | sLiinuX/wxRaven | a513a029fa1ff2059ee262c524b4b2b45111f1a6 | [
"MIT"
] | 156 | 2021-12-31T21:01:31.000Z | 2022-03-20T21:57:31.000Z | plugins/Ravencore/jobs/__init__.py | sLiinuX/wxRaven | a513a029fa1ff2059ee262c524b4b2b45111f1a6 | [
"MIT"
] | 3 | 2022-01-21T14:52:43.000Z | 2022-02-12T05:32:19.000Z | '''
Created on 27 févr. 2022
@author: slinux
'''
from .AddressViewer_AddressInspectionJob import *
from .AddressViewer_AddressUTXOJob import *
from .UTXOManager_TransactionHistory import *
from .UTXOManager_WalletUTXOJob import *
from .AssetNavigator_NavigateAssetJob import *
from .AssetSearch_SeachJob import *
fro... | 24.368421 | 57 | 0.833693 | 43 | 463 | 8.767442 | 0.534884 | 0.212202 | 0.122016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014528 | 0.107991 | 463 | 19 | 57 | 24.368421 | 0.898305 | 0.088553 | 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 |
2c5aaef3311d500de5b9190f6ad53c422b1093d0 | 83 | py | Python | lanz/apps.py | linemax/lanz | c7f6eb150c260f088faa8255f0b15fcc9435c4af | [
"Apache-2.0"
] | null | null | null | lanz/apps.py | linemax/lanz | c7f6eb150c260f088faa8255f0b15fcc9435c4af | [
"Apache-2.0"
] | null | null | null | lanz/apps.py | linemax/lanz | c7f6eb150c260f088faa8255f0b15fcc9435c4af | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class LanzConfig(AppConfig):
name = 'lanz'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2c6c2d95041f8adcb0813adf0640144caa6e27ca | 72 | py | Python | exercises/exercise1.py | mfeindt0705/PythonTHW1 | ea59d1edbfe204ff4f324fd029cc9cb788472043 | [
"MIT"
] | null | null | null | exercises/exercise1.py | mfeindt0705/PythonTHW1 | ea59d1edbfe204ff4f324fd029cc9cb788472043 | [
"MIT"
] | null | null | null | exercises/exercise1.py | mfeindt0705/PythonTHW1 | ea59d1edbfe204ff4f324fd029cc9cb788472043 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Learn Python 3 the hard way exercise 1
"""
| 10.285714 | 38 | 0.652778 | 12 | 72 | 3.916667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0.194444 | 72 | 6 | 39 | 12 | 0.758621 | 0.833333 | 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 |
2c6fad4f8f7693d969276e5d9b2dbb6614979107 | 151 | py | Python | src/exercises/Ex01_saying_hello/hello.py | trcooke/57-exercises-python | 5df95d566dd6eccfb98cc32f877807e46e5ea39e | [
"MIT"
] | null | null | null | src/exercises/Ex01_saying_hello/hello.py | trcooke/57-exercises-python | 5df95d566dd6eccfb98cc32f877807e46e5ea39e | [
"MIT"
] | null | null | null | src/exercises/Ex01_saying_hello/hello.py | trcooke/57-exercises-python | 5df95d566dd6eccfb98cc32f877807e46e5ea39e | [
"MIT"
] | null | null | null | def sayhello(name):
return "Hello, " + name + ", nice to meet you!"
if __name__ == "__main__":
print(sayhello(input("What is your name? ")))
| 21.571429 | 51 | 0.615894 | 20 | 151 | 4.25 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211921 | 151 | 6 | 52 | 25.166667 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.350993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
2c72967601258f7888965a641fad7081f3c6a7ec | 372 | py | Python | Desafios Python/m01/ex002.py | joaquimjfernandes/Curso-de-Python | 3356211248d355eaa67098cebe5cdb8cf6badc75 | [
"MIT"
] | null | null | null | Desafios Python/m01/ex002.py | joaquimjfernandes/Curso-de-Python | 3356211248d355eaa67098cebe5cdb8cf6badc75 | [
"MIT"
] | null | null | null | Desafios Python/m01/ex002.py | joaquimjfernandes/Curso-de-Python | 3356211248d355eaa67098cebe5cdb8cf6badc75 | [
"MIT"
] | null | null | null | print('\033[32;1mDESAFIO 02 - Respondendo ao Usuário\033[m')
print('\033[32;1mALUNO:\033[m \033[36;1mJoaquim Fernandes\033[m')
print('-' * 50)
# -----------------------------------------------------------------------
nome = str(input('Digite um Nome: '))
print(f'É um prazer te Conhecer, {nome}!')
# --------------------... | 46.5 | 73 | 0.41129 | 38 | 372 | 4.026316 | 0.631579 | 0.078431 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090116 | 0.075269 | 372 | 7 | 74 | 53.142857 | 0.354651 | 0.384409 | 0 | 0 | 0 | 0.2 | 0.690265 | 0.097345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2c7f6ede1d9a8ed0d2b431426b6c25d9355f0b82 | 208 | py | Python | gate/input_gate.py | isole-01/Logical-Circuit-Simulator | 63bdf2174b76a96a8defdada24506b65d87c6512 | [
"MIT"
] | 7 | 2020-07-25T00:02:47.000Z | 2021-02-02T16:23:16.000Z | gate/input_gate.py | isole-01/Logical-Circuit-Simulator | 63bdf2174b76a96a8defdada24506b65d87c6512 | [
"MIT"
] | 1 | 2020-12-26T18:40:11.000Z | 2020-12-26T18:43:25.000Z | gate/input_gate.py | isole-01/Logical-Circuit-Simulator | 63bdf2174b76a96a8defdada24506b65d87c6512 | [
"MIT"
] | 1 | 2020-12-25T15:34:14.000Z | 2020-12-25T15:34:14.000Z | from gate.gate import Gate
class Input(Gate):
def __init__(self, name="INPUTS"):
super().__init__(None, name)
self.output = 0
def logic(self, depend=[]):
return self.output
| 18.909091 | 38 | 0.610577 | 27 | 208 | 4.407407 | 0.62963 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006494 | 0.259615 | 208 | 10 | 39 | 20.8 | 0.766234 | 0 | 0 | 0 | 0 | 0 | 0.028846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 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 |
2c8a922cbfe455c409fc8d33181656d8c1568f35 | 14,280 | py | Python | dlkit/abstract_osid/relationship/queries.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 2 | 2018-02-23T12:16:11.000Z | 2020-10-08T17:54:24.000Z | dlkit/abstract_osid/relationship/queries.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 87 | 2017-04-21T18:57:15.000Z | 2021-12-13T19:43:57.000Z | dlkit/abstract_osid/relationship/queries.py | UOC/dlkit | a9d265db67e81b9e0f405457464e762e2c03f769 | [
"MIT"
] | 1 | 2018-03-01T16:44:25.000Z | 2018-03-01T16:44:25.000Z | """Implementations of relationship abstract base class queries."""
# pylint: disable=invalid-name
# Method names comply with OSID specification.
# pylint: disable=no-init
# Abstract classes do not define __init__.
# pylint: disable=too-few-public-methods
# Some interfaces are specified as 'markers' and incl... | 29.504132 | 120 | 0.642997 | 1,577 | 14,280 | 5.676601 | 0.098288 | 0.029491 | 0.069258 | 0.055407 | 0.80887 | 0.738606 | 0.641756 | 0.594727 | 0.551385 | 0.551385 | 0 | 0 | 0.247479 | 14,280 | 483 | 121 | 29.565217 | 0.833054 | 0.613235 | 0 | 0.566372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.274336 | false | 0.185841 | 0.00885 | 0 | 0.539823 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2c93b2263eb0f6a9dc06ba583bf142a23831eca6 | 643 | py | Python | deployment/Dummy_Control_Enactor.py | cogent-computing/Heed-Microcontroller | 28dfc1b54b92e0346b8c5ad3b1f2c29d65ad7712 | [
"MIT"
] | 1 | 2021-02-04T09:36:01.000Z | 2021-02-04T09:36:01.000Z | deployment/Dummy_Control_Enactor.py | cogent-computing/Heed-Microcontroller | 28dfc1b54b92e0346b8c5ad3b1f2c29d65ad7712 | [
"MIT"
] | null | null | null | deployment/Dummy_Control_Enactor.py | cogent-computing/Heed-Microcontroller | 28dfc1b54b92e0346b8c5ad3b1f2c29d65ad7712 | [
"MIT"
] | null | null | null |
class Enactor:
def __init__(self, dev_info, sftp_location, sftp_port, sftp_username, sftp_password, sftp_key_location,
sftp_directory):
pass
def stop(self):
pass
def enact_light_plan(self, dev, BL_Quota, NL_Quota):
return True
def enact_socket_plan(self, dev... | 22.964286 | 107 | 0.660964 | 91 | 643 | 4.296703 | 0.395604 | 0.089514 | 0.056266 | 0.071611 | 0.204604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008493 | 0.267496 | 643 | 27 | 108 | 23.814815 | 0.821656 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0.166667 | 0 | 0.333333 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
2cae3a4db11f58961eddce1c35a6cae673466e10 | 202 | py | Python | piccolo/engine/__init__.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 750 | 2019-01-03T16:02:48.000Z | 2022-03-30T19:53:03.000Z | piccolo/engine/__init__.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 311 | 2019-01-14T13:07:13.000Z | 2022-03-31T07:43:08.000Z | piccolo/engine/__init__.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 48 | 2020-12-18T08:13:50.000Z | 2022-03-24T03:18:06.000Z | from .base import Engine
from .finder import engine_finder
from .postgres import PostgresEngine
from .sqlite import SQLiteEngine
__all__ = ["Engine", "PostgresEngine", "SQLiteEngine", "engine_finder"]
| 28.857143 | 71 | 0.79703 | 23 | 202 | 6.73913 | 0.434783 | 0.154839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113861 | 202 | 6 | 72 | 33.666667 | 0.865922 | 0 | 0 | 0 | 0 | 0 | 0.222772 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2cb8b748ad2db56eb6d4ba71fede2fb37c10c948 | 115 | py | Python | pyltr/models/__init__.py | Haiga/pyltr | 65e704e540fa104ccdf8143e61911ef57b70cf84 | [
"BSD-3-Clause"
] | 432 | 2015-09-17T19:36:33.000Z | 2022-03-26T17:06:48.000Z | pyltr/models/__init__.py | Haiga/pyltr | 65e704e540fa104ccdf8143e61911ef57b70cf84 | [
"BSD-3-Clause"
] | 24 | 2016-08-04T03:23:07.000Z | 2021-10-16T13:17:06.000Z | pyltr/models/__init__.py | Haiga/pyltr | 65e704e540fa104ccdf8143e61911ef57b70cf84 | [
"BSD-3-Clause"
] | 112 | 2016-01-16T01:49:35.000Z | 2022-03-21T06:01:40.000Z | """
Various model classes.
"""
from ._models import *
from .lambdamart import LambdaMART
from . import monitors
| 11.5 | 34 | 0.730435 | 13 | 115 | 6.384615 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 115 | 9 | 35 | 12.777778 | 0.873684 | 0.191304 | 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 |
e2d2d129aa6796db9991669601101d2cf7353d01 | 178 | py | Python | jp.atcoder/abc048/abc048_b/26053850.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc048/abc048_b/26053850.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc048/arc064_b/26054167.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import typing
def main() -> typing.NoReturn:
a, b, x = map(int, input().split())
def f(n):
return n // x + 1
print(f(b) - f(a - 1))
main()
| 12.714286 | 40 | 0.449438 | 27 | 178 | 2.962963 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.365169 | 178 | 13 | 41 | 13.692308 | 0.690265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.571429 | 0.142857 | 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 |
e2d4e238caf38a0e3bc665c92c10bbc6c4dc5469 | 366 | py | Python | profile/factory.py | cs4p/opal | 8c01814a66e03a4481d3fc06375d097866485bc6 | [
"CC0-1.0"
] | null | null | null | profile/factory.py | cs4p/opal | 8c01814a66e03a4481d3fc06375d097866485bc6 | [
"CC0-1.0"
] | 1 | 2022-01-05T19:41:20.000Z | 2022-01-05T19:41:20.000Z | profile/factory.py | cs4p/opal | 8c01814a66e03a4481d3fc06375d097866485bc6 | [
"CC0-1.0"
] | null | null | null | import factory
from .models import *
class importsFactory(factory.Factory):
class Meta:
model = imports
href = factory.Faker('text')
import_type = factory.Faker('text')
class modifyFactory(factory.Factory):
class Meta:
model = modify
class profileFactory(factory.Factory):
class Meta:
model... | 14.076923 | 38 | 0.702186 | 42 | 366 | 6.095238 | 0.428571 | 0.164063 | 0.222656 | 0.269531 | 0.328125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193989 | 366 | 25 | 39 | 14.64 | 0.867797 | 0 | 0 | 0.214286 | 0 | 0 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e2f5a6c8d7d934fbfa1238ce5c0e8400b06ee336 | 35 | py | Python | arxiv/util/tests/__init__.py | ibnesayeed/arxiv-base | 9f49302370272792a0afc78debd039d249844c6c | [
"MIT"
] | 23 | 2019-01-10T22:01:18.000Z | 2022-02-02T10:28:25.000Z | arxiv/util/tests/__init__.py | ibnesayeed/arxiv-base | 9f49302370272792a0afc78debd039d249844c6c | [
"MIT"
] | 57 | 2018-12-17T16:45:38.000Z | 2021-12-14T14:20:58.000Z | arxiv/util/tests/__init__.py | cul-it/arxiv-base-ui | a5beadf44c24f72e21313299bfafc1ffb9d28ac7 | [
"MIT"
] | 5 | 2019-01-10T22:01:28.000Z | 2021-11-05T12:25:31.000Z | """Tests for :mod:`arxiv.util`."""
| 17.5 | 34 | 0.571429 | 5 | 35 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 35 | 1 | 35 | 35 | 0.625 | 0.8 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
391f5858ef46ec9900b4c5118a6889612118dca2 | 79 | py | Python | tests/test_hello.py | gerrymandr/districtr-api | 6640031ba4428dc70493146cdebf0bd6d0108bf9 | [
"BSD-3-Clause"
] | 1 | 2020-01-22T21:21:13.000Z | 2020-01-22T21:21:13.000Z | tests/test_hello.py | districtr/districtr-api | 6640031ba4428dc70493146cdebf0bd6d0108bf9 | [
"BSD-3-Clause"
] | 3 | 2019-04-13T11:53:53.000Z | 2021-06-02T00:03:15.000Z | tests/test_hello.py | gerrymandr/districtr-api | 6640031ba4428dc70493146cdebf0bd6d0108bf9 | [
"BSD-3-Clause"
] | 5 | 2018-11-12T16:46:59.000Z | 2019-01-11T19:17:02.000Z | def test_hello(client):
assert client.get("/").data == b"Hello, universe!"
| 26.333333 | 54 | 0.658228 | 11 | 79 | 4.636364 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139241 | 79 | 2 | 55 | 39.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
39387e964e99d5751bee8b21e59dba96500578c1 | 131 | py | Python | db.py | total-impact/biomed | 0be9d7fe21c01d4a7a1e0f50c752f87cfc78e210 | [
"MIT"
] | null | null | null | db.py | total-impact/biomed | 0be9d7fe21c01d4a7a1e0f50c752f87cfc78e210 | [
"MIT"
] | null | null | null | db.py | total-impact/biomed | 0be9d7fe21c01d4a7a1e0f50c752f87cfc78e210 | [
"MIT"
] | null | null | null |
def make_key(*args):
return "ti:" + ":".join(args)
def make_refset_key(pmid):
return make_key("article", pmid, "refset") | 18.714286 | 46 | 0.641221 | 19 | 131 | 4.210526 | 0.526316 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167939 | 131 | 7 | 46 | 18.714286 | 0.733945 | 0 | 0 | 0 | 0 | 0 | 0.130769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
39442d83a823c902bafc25ea6bb7a4acc35bb7d3 | 99 | py | Python | app/Body.py | rebuke-devour/body-backend | 54cba9066f2d0f28e91b412c6a6d1f2d2715914e | [
"MIT"
] | null | null | null | app/Body.py | rebuke-devour/body-backend | 54cba9066f2d0f28e91b412c6a6d1f2d2715914e | [
"MIT"
] | null | null | null | app/Body.py | rebuke-devour/body-backend | 54cba9066f2d0f28e91b412c6a6d1f2d2715914e | [
"MIT"
] | null | null | null | """Body Model."""
from masoniteorm.models import Model
class Body(Model):
__table__="bodies" | 14.142857 | 36 | 0.707071 | 12 | 99 | 5.5 | 0.75 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 7 | 37 | 14.142857 | 0.785714 | 0.111111 | 0 | 0 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 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 |
1a377da0e22f705d779d94eafcb9155a3cc7b4d5 | 54,181 | py | Python | src/fake_plants.py | AscendFB/powerloop | 0b21bd6627b15619238d51f7214718f8e2cb182b | [
"MIT"
] | 2 | 2019-08-19T22:34:59.000Z | 2019-09-04T15:14:26.000Z | src/fake_plants.py | AscendFB/powerloop | 0b21bd6627b15619238d51f7214718f8e2cb182b | [
"MIT"
] | 1 | 2020-03-18T16:15:52.000Z | 2020-03-18T16:15:52.000Z | src/fake_plants.py | AscendFB/powerloop | 0b21bd6627b15619238d51f7214718f8e2cb182b | [
"MIT"
] | 2 | 2019-09-16T10:28:26.000Z | 2020-03-14T21:28:34.000Z | # import static logger and create shortcut function
from logger import Logger
log = Logger.log
class FakePlants:
""" FakePlants JSON for use in local testing/debugging. """
@staticmethod
def get_fake_plants():
log("Loading FAKE PLANTS.", "success", title="FakePlants::get_fake_plants")
r... | 37.521468 | 83 | 0.370776 | 5,148 | 54,181 | 3.753497 | 0.108003 | 0.096258 | 0.093153 | 0.06055 | 0.797909 | 0.790353 | 0.619573 | 0.617088 | 0.616881 | 0.615743 | 0 | 0.264986 | 0.47225 | 54,181 | 1,443 | 84 | 37.547471 | 0.410785 | 0.001901 | 0 | 0.549443 | 0 | 0 | 0.373583 | 0.103475 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000696 | false | 0 | 0.000696 | 0 | 0.002786 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1a4b5a041fea8a084c2053c3eaf6e80f5709b241 | 162 | py | Python | callbags/sources/iterable.py | nsantini/py-callbag-basics | d928795045d58b8392824e391b8ad1d9a9ddb2ad | [
"MIT"
] | 3 | 2018-06-08T12:03:02.000Z | 2018-11-27T05:47:50.000Z | callbags/sources/iterable.py | nsantini/py-callbag-basics | d928795045d58b8392824e391b8ad1d9a9ddb2ad | [
"MIT"
] | null | null | null | callbags/sources/iterable.py | nsantini/py-callbag-basics | d928795045d58b8392824e391b8ad1d9a9ddb2ad | [
"MIT"
] | null | null | null | def iterable(source):
def callbag(start, sink):
if (start != 0):
return
for i in source:
sink(1, i)
return callbag | 23.142857 | 29 | 0.5 | 20 | 162 | 4.05 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.401235 | 162 | 7 | 30 | 23.142857 | 0.814433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
1a4fc2bf8c379463eda2689cfcbf9796c8b5da94 | 16,922 | py | Python | nova/virt/vmwareapi/imagecache.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/virt/vmwareapi/imagecache.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/virt/vmwareapi/imagecache.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright (c) 2014 VMware, Inc.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'... | 14.84386 | 1,174 | 0.624158 | 2,558 | 16,922 | 4.02502 | 0.120407 | 0.145688 | 0.073815 | 0.063908 | 0.601981 | 0.537879 | 0.460664 | 0.391706 | 0.323815 | 0.277389 | 0 | 0.000677 | 0.12729 | 16,922 | 1,139 | 1,175 | 14.856892 | 0.696506 | 0 | 0 | 0.907814 | 0 | 0.000878 | 0.893216 | 0.118012 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007902 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1a724f502199532ac5265efb16f4f478cd0562fd | 116 | py | Python | presentations/san_diego_python_meetup/source/minimal_flask.py | WaylonWalker/lookatme | 446cc79c3210e88b515a228fad46a6d827233c99 | [
"MIT"
] | null | null | null | presentations/san_diego_python_meetup/source/minimal_flask.py | WaylonWalker/lookatme | 446cc79c3210e88b515a228fad46a6d827233c99 | [
"MIT"
] | null | null | null | presentations/san_diego_python_meetup/source/minimal_flask.py | WaylonWalker/lookatme | 446cc79c3210e88b515a228fad46a6d827233c99 | [
"MIT"
] | null | null | null | import flask
app = flask.Flask(__name__)
@app.route("/", methods=["GET"])
def index():
return "Hello, World"
| 12.888889 | 32 | 0.637931 | 15 | 116 | 4.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163793 | 116 | 8 | 33 | 14.5 | 0.721649 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 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 | 0 | 1 | 1 | 0 | 0 | 4 |
1a780c9d1fc5e0f0b638cd1f9165ee4918f365ef | 6,685 | py | Python | generate_yum_yaml.py | Duologic/ansible-role-postgreql-repository | 62f103b93e81a06e548fcee75238e1ecd34fb5b2 | [
"MIT"
] | null | null | null | generate_yum_yaml.py | Duologic/ansible-role-postgreql-repository | 62f103b93e81a06e548fcee75238e1ecd34fb5b2 | [
"MIT"
] | null | null | null | generate_yum_yaml.py | Duologic/ansible-role-postgreql-repository | 62f103b93e81a06e548fcee75238e1ecd34fb5b2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import yaml
# Grab this from source:
# https://www.postgresql.org/download/linux/redhat/
# https://www.postgresql.org/download/js/yum.js?bbdcb170
RPM_dict={"platforms": {"redhat-6": {"f": "redhat", "d": False, "i": "yum", "t": "Red Hat Enterprise Linux 6", "s": 994, "p": "redhat/... | 215.645161 | 5,900 | 0.521765 | 1,153 | 6,685 | 2.917606 | 0.103209 | 0.163496 | 0.083829 | 0.083234 | 0.703627 | 0.608502 | 0.496433 | 0.457194 | 0.406361 | 0.381688 | 0 | 0.200069 | 0.128197 | 6,685 | 30 | 5,901 | 222.833333 | 0.377145 | 0.048168 | 0 | 0.25 | 0 | 0 | 0.460183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.