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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e0ba9cfc76cc1636b99438acf322aba34068d9b | 11,177 | py | Python | tests/test_watcher.py | natemago/theia | 7195667c2700294f06b9ce695fca22c5509f06cb | [
"Apache-2.0"
] | 3 | 2018-02-17T14:27:44.000Z | 2021-06-03T20:49:26.000Z | tests/test_watcher.py | natemago/theia | 7195667c2700294f06b9ce695fca22c5509f06cb | [
"Apache-2.0"
] | 15 | 2018-05-20T16:44:55.000Z | 2019-03-21T01:01:07.000Z | tests/test_watcher.py | natemago/theia | 7195667c2700294f06b9ce695fca22c5509f06cb | [
"Apache-2.0"
] | null | null | null | from theia.watcher import (FileSource,
DirectoryEventHandler,
SourcesDaemon)
import tempfile
from unittest import mock
from watchdog.observers import Observer
from theia.comm import Client
import os
def test_file_source_modified():
mock_callback = mock.MagicM... | 32.777126 | 121 | 0.604098 | 1,316 | 11,177 | 4.933131 | 0.091185 | 0.049291 | 0.026186 | 0.036969 | 0.788509 | 0.779113 | 0.745841 | 0.694701 | 0.672982 | 0.641867 | 0 | 0.004578 | 0.276818 | 11,177 | 340 | 122 | 32.873529 | 0.79859 | 0.014673 | 0 | 0.661972 | 0 | 0 | 0.064141 | 0 | 0 | 0 | 0 | 0 | 0.347418 | 1 | 0.098592 | false | 0 | 0.028169 | 0 | 0.131455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e10be16291846f004862786e80389330828db20 | 364 | py | Python | tests/cli/test_mounter.py | iOSForensics/pymobiledevice3 | 6b148f4e58cc51cb44c18935913a3e6cec5b60d5 | [
"MIT"
] | 1 | 2022-01-20T16:53:15.000Z | 2022-01-20T16:53:15.000Z | tests/cli/test_mounter.py | iOSForensics/pymobiledevice3 | 6b148f4e58cc51cb44c18935913a3e6cec5b60d5 | [
"MIT"
] | null | null | null | tests/cli/test_mounter.py | iOSForensics/pymobiledevice3 | 6b148f4e58cc51cb44c18935913a3e6cec5b60d5 | [
"MIT"
] | null | null | null | import pytest
from pymobiledevice3.utils import sanitize_ios_version
@pytest.mark.parametrize('version, sanitized', [
('14.5', '14.5'),
('14.5.1', '14.5'),
('0.0', '0.0'),
('9999.9999', '9999.9999'),
('9999.9999.9999', '9999.9999'),
])
def test_sanitize_ios_version(version, sanitized):
assert... | 24.266667 | 54 | 0.653846 | 49 | 364 | 4.714286 | 0.387755 | 0.277056 | 0.363636 | 0.415584 | 0.450216 | 0.155844 | 0.155844 | 0.155844 | 0 | 0 | 0 | 0.174194 | 0.148352 | 364 | 14 | 55 | 26 | 0.570968 | 0 | 0 | 0 | 0 | 0 | 0.228022 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9d67d057298733daa9c5a4bfc1ee7211a61a15ee | 1,402 | py | Python | je_open_cv/modules/gradients.py | JE-Chen/Python-OPENCV-JE | d5dd3823f0a1cfc195da66bdcbe738c9bbdfc59b | [
"MIT"
] | null | null | null | je_open_cv/modules/gradients.py | JE-Chen/Python-OPENCV-JE | d5dd3823f0a1cfc195da66bdcbe738c9bbdfc59b | [
"MIT"
] | null | null | null | je_open_cv/modules/gradients.py | JE-Chen/Python-OPENCV-JE | d5dd3823f0a1cfc195da66bdcbe738c9bbdfc59b | [
"MIT"
] | null | null | null | import cv2
import numpy as np
'''
圖像漸變用
'''
'''
OpenCV provides three types of gradient filters or High-pass filters, Sobel, Scharr and Laplacian.
'''
# 拉普拉斯算法 取XY方向
def laplacian(image):
return cv2.Laplacian(image, cv2.CV_64F)
# SobelX 取 x方向
def sobel_x(image):
return cv2.Sobel(image, cv2.CV_64F, 1, 0, k... | 27.490196 | 101 | 0.736091 | 253 | 1,402 | 3.980237 | 0.44664 | 0.059583 | 0.047666 | 0.051639 | 0.152929 | 0.129096 | 0.129096 | 0.100298 | 0.057597 | 0.057597 | 0 | 0.055459 | 0.17689 | 1,402 | 50 | 102 | 28.04 | 0.817158 | 0.077033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.142857 | 0.285714 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9d715f9f10a4a182c1d40b7f6d842d5d77980e47 | 731 | py | Python | io_scene_xray/obj/imp/props.py | ed8rez/blender-xray | 543ae9c40dc706216552d92b7f7b7c9d8da9dbf3 | [
"BSD-2-Clause"
] | 1 | 2021-02-14T11:52:25.000Z | 2021-02-14T11:52:25.000Z | io_scene_xray/obj/imp/props.py | ed8rez/blender-xray | 543ae9c40dc706216552d92b7f7b7c9d8da9dbf3 | [
"BSD-2-Clause"
] | null | null | null | io_scene_xray/obj/imp/props.py | ed8rez/blender-xray | 543ae9c40dc706216552d92b7f7b7c9d8da9dbf3 | [
"BSD-2-Clause"
] | null | null | null | import bpy
def PropObjectMotionsImport():
return bpy.props.BoolProperty(
name='Import Motions',
description='Import embedded motions as actions',
default=True
)
def PropObjectMeshSplitByMaterials():
return bpy.props.BoolProperty(
name='Split Mesh By Materials',
de... | 24.366667 | 78 | 0.689466 | 74 | 731 | 6.810811 | 0.513514 | 0.071429 | 0.111111 | 0.206349 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225718 | 731 | 29 | 79 | 25.206897 | 0.890459 | 0 | 0 | 0.238095 | 0 | 0 | 0.277702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | true | 0 | 0.285714 | 0.190476 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
9dacf374cc9fadcbdf654cc7eb8a06550875468d | 425 | py | Python | docs/source/tutorials/advanced_usage/filter_eq_demo.demo.py | HansBug/treevalue | 6f2f5b2de00b04a06201a87ccee678ade9deff57 | [
"Apache-2.0"
] | null | null | null | docs/source/tutorials/advanced_usage/filter_eq_demo.demo.py | HansBug/treevalue | 6f2f5b2de00b04a06201a87ccee678ade9deff57 | [
"Apache-2.0"
] | 1 | 2021-07-24T13:30:14.000Z | 2021-07-24T13:30:14.000Z | docs/source/tutorials/advanced_usage/filter_eq_demo.demo.py | HansBug/treevalue | 6f2f5b2de00b04a06201a87ccee678ade9deff57 | [
"Apache-2.0"
] | null | null | null | from treevalue import FastTreeValue, mapping, mask
if __name__ == '__main__':
t = FastTreeValue({'a': 1, 'b': 2, 'x': {'c': 3, 'd': 4}, 'y': {'e': 6, 'f': 8}})
print('mask(t, mapping(t, lambda x: x % 2 == 1)):')
print(mask(t, mapping(t, lambda x: x % 2 == 1)))
print('mask(t, mapping(t, lambda x: x % ... | 38.636364 | 85 | 0.552941 | 71 | 425 | 3.169014 | 0.408451 | 0.16 | 0.177778 | 0.302222 | 0.64 | 0.64 | 0.64 | 0.64 | 0.64 | 0.64 | 0 | 0.04142 | 0.204706 | 425 | 10 | 86 | 42.5 | 0.62426 | 0 | 0 | 0 | 0 | 0.142857 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
9db3d30c14b1fff26c174a98a022c46b615ea3a7 | 72 | py | Python | serlist/__init__.py | jadbin/serlist | 63b5d5021741a3699419352a4c96dab2ac61e9fb | [
"Apache-2.0"
] | 14 | 2018-10-26T08:55:36.000Z | 2021-11-16T12:14:40.000Z | serlist/__init__.py | jadbin/serlist | 63b5d5021741a3699419352a4c96dab2ac61e9fb | [
"Apache-2.0"
] | null | null | null | serlist/__init__.py | jadbin/serlist | 63b5d5021741a3699419352a4c96dab2ac61e9fb | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from .scraper import SerpScraper
__version__ = '0.1.1'
| 12 | 32 | 0.722222 | 11 | 72 | 4.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.152778 | 72 | 5 | 33 | 14.4 | 0.721311 | 0.166667 | 0 | 0 | 0 | 0 | 0.086207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
9df4db1fa0e8712ac7a24945654a9e0e24c7f92a | 4,503 | py | Python | ramsay/ledger/models.py | cjswedes/real-wear | 7fc63d03578f58f29347dd1a01b6edefb82c282e | [
"MIT"
] | null | null | null | ramsay/ledger/models.py | cjswedes/real-wear | 7fc63d03578f58f29347dd1a01b6edefb82c282e | [
"MIT"
] | 46 | 2019-04-03T23:42:54.000Z | 2022-01-13T01:10:27.000Z | ramsay/ledger/models.py | cjswedes/real-wear | 7fc63d03578f58f29347dd1a01b6edefb82c282e | [
"MIT"
] | null | null | null | from django.db import models
from django.template.defaultfilters import slugify
from django.core.files.storage import FileSystemStorage
fs = FileSystemStorage()
#TODO: decide lengths for efficiency in storage
class Citation(models.Model):
author = models.CharField(max_length=255)
book = models.CharField(... | 46.90625 | 144 | 0.751277 | 620 | 4,503 | 5.33871 | 0.248387 | 0.117825 | 0.135952 | 0.181269 | 0.508157 | 0.416314 | 0.362538 | 0.325982 | 0.325982 | 0.247432 | 0 | 0.024485 | 0.138352 | 4,503 | 95 | 145 | 47.4 | 0.828608 | 0.223185 | 0 | 0.037736 | 0 | 0 | 0.010654 | 0 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.037736 | false | 0 | 0.056604 | 0 | 0.90566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9df5ab6b581897491f415ec43d8ddd660e2e7be4 | 325 | py | Python | chiter/pipeline.py | ddstte/chiter | 2129a698cd3baa71b0f1aaa2141110587587e1a6 | [
"MIT"
] | null | null | null | chiter/pipeline.py | ddstte/chiter | 2129a698cd3baa71b0f1aaa2141110587587e1a6 | [
"MIT"
] | null | null | null | chiter/pipeline.py | ddstte/chiter | 2129a698cd3baa71b0f1aaa2141110587587e1a6 | [
"MIT"
] | null | null | null | import functools
import reprlib
class Pipeline:
def __init__(self, *functions):
self._functions = functions
def __call__(self, value):
return functools.reduce(lambda acc, func: func(acc), self._functions, value)
def __repr__(self):
return f"<Pipeline {reprlib.repr(self._functions... | 23.214286 | 84 | 0.686154 | 38 | 325 | 5.473684 | 0.473684 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206154 | 325 | 13 | 85 | 25 | 0.806202 | 0 | 0 | 0 | 0 | 0 | 0.129231 | 0.098462 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d179c4556f1edf6c4f85a1ec46a71168e73d951a | 174 | py | Python | main.py | milescarberry/qr_code_generator_python | 77dbc396d6c02d30811b9f6e1449f20a128771a8 | [
"MIT"
] | null | null | null | main.py | milescarberry/qr_code_generator_python | 77dbc396d6c02d30811b9f6e1449f20a128771a8 | [
"MIT"
] | null | null | null | main.py | milescarberry/qr_code_generator_python | 77dbc396d6c02d30811b9f6e1449f20a128771a8 | [
"MIT"
] | null | null | null | import qrcode
import qrcode.image.svg
factory = qrcode.image.svg.SvgPathImage
svg_img = qrcode.make("Hello World!", image_factory = factory )
svg_img.save("code.svg")
| 13.384615 | 63 | 0.747126 | 25 | 174 | 5.08 | 0.48 | 0.188976 | 0.220472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132184 | 174 | 12 | 64 | 14.5 | 0.84106 | 0 | 0 | 0 | 0 | 0 | 0.114943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d18e68238c7a1608f7cea61951f984e394383bd5 | 577 | py | Python | src/Server/controllers/CategoryController.py | SkyLapse/DMS | a8906498e2801f7f022d7d2d72d90ba2be6f0d21 | [
"MIT"
] | null | null | null | src/Server/controllers/CategoryController.py | SkyLapse/DMS | a8906498e2801f7f022d7d2d72d90ba2be6f0d21 | [
"MIT"
] | null | null | null | src/Server/controllers/CategoryController.py | SkyLapse/DMS | a8906498e2801f7f022d7d2d72d90ba2be6f0d21 | [
"MIT"
] | 1 | 2019-10-29T01:56:18.000Z | 2019-10-29T01:56:18.000Z | from bson import ObjectId
__author__ = 'SkyLapse'
from controllers.basecontroller import BaseController
from app_utils.bson_utils import convert_to_json
class CategoryController(BaseController):
def get(self, id=None):
if id is None:
return convert_to_json(self.app.models.categories.get())
... | 30.368421 | 96 | 0.705373 | 76 | 577 | 5.144737 | 0.394737 | 0.092072 | 0.132992 | 0.14578 | 0.358056 | 0.358056 | 0.358056 | 0.358056 | 0.358056 | 0 | 0 | 0 | 0.194107 | 577 | 19 | 97 | 30.368421 | 0.84086 | 0 | 0 | 0 | 0 | 0 | 0.019031 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d19a4522c1c3189716026defadd1c06ef5c7b0ab | 1,001 | py | Python | test/model/banner.py | robertons/dbmodel | 628c4d6a2d0b23d9137015e5b0ea4551b20943bd | [
"MIT"
] | null | null | null | test/model/banner.py | robertons/dbmodel | 628c4d6a2d0b23d9137015e5b0ea4551b20943bd | [
"MIT"
] | null | null | null | test/model/banner.py | robertons/dbmodel | 628c4d6a2d0b23d9137015e5b0ea4551b20943bd | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from dbmodel.entity import *
class Banner(Entity):
__primary_key__ = ['id']
# FIELDS
@Int(pk=True, auto_increment=True, not_null=True, precision = 10, scale=0)
def id(self): pass
@String(max=45)
def ban_titulo(self): pass
@String(max=65535)
def ban_codigo_fonte(self): pass
@DateTi... | 20.428571 | 91 | 0.707293 | 153 | 1,001 | 4.470588 | 0.372549 | 0.152047 | 0.065789 | 0.124269 | 0.516082 | 0.486842 | 0.486842 | 0.195906 | 0.195906 | 0 | 0 | 0.034682 | 0.135864 | 1,001 | 49 | 92 | 20.428571 | 0.756069 | 0.03996 | 0 | 0.310345 | 0 | 0 | 0.077164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.448276 | false | 0.448276 | 0.034483 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d1de6fe8df34b93a56fb1d662a7ade86320ee7cd | 14 | py | Python | python/ql/test/experimental/dataflow/pep_328/package/subpackage2/moduleZ.py | timoles/codeql | 2d24387e9e300bf03be35694816b1e76ae88a50c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/experimental/dataflow/pep_328/package/subpackage2/moduleZ.py | timoles/codeql | 2d24387e9e300bf03be35694816b1e76ae88a50c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/experimental/dataflow/pep_328/package/subpackage2/moduleZ.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | eggs = "eggs"
| 7 | 13 | 0.571429 | 2 | 14 | 4 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 14 | 1 | 14 | 14 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d1e4513058566bff81032106a415ef05d5fc36e7 | 785 | py | Python | sera/cli.py | bretth/sera | 507976b9ace58bdf4c8055dbfcf2fc10840eacb2 | [
"Apache-2.0"
] | null | null | null | sera/cli.py | bretth/sera | 507976b9ace58bdf4c8055dbfcf2fc10840eacb2 | [
"Apache-2.0"
] | 12 | 2016-10-04T20:19:45.000Z | 2017-01-31T03:59:57.000Z | sera/cli.py | bretth/sera | 507976b9ace58bdf4c8055dbfcf2fc10840eacb2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
import pkg_resources
import click
from .commands.main import main
from .commands.echo import echo
from .commands.install import install
from .commands.addrevoke import add, revoke
from .commands.allow import allow, disallow
from .commands.end import end
from .commands.export im... | 26.166667 | 67 | 0.77707 | 109 | 785 | 5.53211 | 0.431193 | 0.218905 | 0.023217 | 0.033168 | 0.14262 | 0.14262 | 0.14262 | 0.14262 | 0.14262 | 0.14262 | 0 | 0.002907 | 0.123567 | 785 | 29 | 68 | 27.068966 | 0.873547 | 0.043312 | 0 | 0 | 0 | 0 | 0.040161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.65 | 0 | 0.65 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
06035e44c383d4122564c17af2b52e1bd492d1ba | 554 | py | Python | test/test_functions.py | codeclimate-testing/falcon | c2d0b9da4d4cffd39cd489ffa886ee745d06f063 | [
"Apache-2.0"
] | 115 | 2015-01-18T13:28:05.000Z | 2022-03-01T23:45:44.000Z | test/test_functions.py | codeclimate-testing/falcon | c2d0b9da4d4cffd39cd489ffa886ee745d06f063 | [
"Apache-2.0"
] | null | null | null | test/test_functions.py | codeclimate-testing/falcon | c2d0b9da4d4cffd39cd489ffa886ee745d06f063 | [
"Apache-2.0"
] | 8 | 2015-02-12T04:08:42.000Z | 2018-09-11T20:55:29.000Z | from testing_helpers import wrap
@wrap
def nested(x):
def f(y):
return y+y
return f(x)
def test_nested():
nested(3)
nested(3.0)
nested([1])
@wrap
def nested_closure(x):
def f(y):
return x + y
return f(x)
def test_nested_closure():
nested_closure(3)
nested_closure(3.0)
nested_closu... | 14.578947 | 33 | 0.66426 | 87 | 554 | 3.954023 | 0.310345 | 0.340116 | 0.113372 | 0.034884 | 0.319767 | 0.127907 | 0.127907 | 0 | 0 | 0 | 0 | 0.022989 | 0.214801 | 554 | 38 | 34 | 14.578947 | 0.767816 | 0 | 0 | 0.241379 | 0 | 0 | 0.014414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.068966 | 0.068966 | 0.517241 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ae076534daafd153f5c9ce5a90bb2dd0e0dafdbc | 779 | py | Python | api/hrm/models.py | LokeshBolisetty/Webapp-django | 51fd6d3224dfd4295e7688b8fa6c88f1c11dfe9a | [
"MIT"
] | null | null | null | api/hrm/models.py | LokeshBolisetty/Webapp-django | 51fd6d3224dfd4295e7688b8fa6c88f1c11dfe9a | [
"MIT"
] | null | null | null | api/hrm/models.py | LokeshBolisetty/Webapp-django | 51fd6d3224dfd4295e7688b8fa6c88f1c11dfe9a | [
"MIT"
] | null | null | null | from django.db import models
class mentor(models.Model):
#username = models.CharField(max_length=100,unique=True)
name = models.CharField(max_length=100)
age = models.IntegerField()
#courses = models.ManyToManyField(Courses,help_text="Enter all the courses you are dealing with")
def __str__(... | 33.869565 | 103 | 0.690629 | 99 | 779 | 5.282828 | 0.474747 | 0.086042 | 0.10325 | 0.137667 | 0.231358 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014516 | 0.204108 | 779 | 22 | 104 | 35.409091 | 0.829032 | 0.254172 | 0 | 0.142857 | 0 | 0 | 0.086799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.214286 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ae088aea908766961db776f9522d047e37ccf938 | 144 | py | Python | tccloud/__init__.py | coltonbh/terachem-cloud-pyclient | 9eb5b53242d041954fb8db673095dca6df198bcd | [
"MIT"
] | 7 | 2021-03-06T00:13:35.000Z | 2022-03-22T22:47:05.000Z | tccloud/__init__.py | coltonbh/terachem-cloud-pyclient | 9eb5b53242d041954fb8db673095dca6df198bcd | [
"MIT"
] | 14 | 2021-02-25T20:33:18.000Z | 2022-03-27T23:44:28.000Z | tccloud/__init__.py | coltonbh/terachem-cloud-pyclient | 9eb5b53242d041954fb8db673095dca6df198bcd | [
"MIT"
] | 1 | 2021-09-01T18:58:34.000Z | 2021-09-01T18:58:34.000Z | """TeraChem Cloud python client. Scalable compute, easy to learn, fast to code."""
__version__ = "0.2.4"
from .client import TCClient # noqa
| 24 | 82 | 0.715278 | 21 | 144 | 4.714286 | 0.904762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.166667 | 144 | 5 | 83 | 28.8 | 0.8 | 0.569444 | 0 | 0 | 0 | 0 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ae0b51c7a1d6c1124d2af9969bfc6343cca1b445 | 899 | py | Python | qidejt/policy/portlet/navigation.py | adam139/qidejt.policy | 79b0f7ffc1f3b4aac31497312401f3c8848bb21b | [
"MIT"
] | null | null | null | qidejt/policy/portlet/navigation.py | adam139/qidejt.policy | 79b0f7ffc1f3b4aac31497312401f3c8848bb21b | [
"MIT"
] | null | null | null | qidejt/policy/portlet/navigation.py | adam139/qidejt.policy | 79b0f7ffc1f3b4aac31497312401f3c8848bb21b | [
"MIT"
] | null | null | null |
from plone.app.layout.navigation.interfaces import INavigationQueryBuilder
from plone.app.portlets.portlets.navigation import INavigationPortlet
from plone.app.portlets.portlets.navigation import QueryBuilder
from zope.component import adapts
from zope.interface import implements
from zope.interface import Interface
... | 35.96 | 88 | 0.777531 | 90 | 899 | 7.622222 | 0.5 | 0.039359 | 0.052478 | 0.058309 | 0.12828 | 0.12828 | 0.12828 | 0 | 0 | 0 | 0 | 0 | 0.143493 | 899 | 24 | 89 | 37.458333 | 0.890909 | 0.132369 | 0 | 0 | 0 | 0 | 0.040417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
ae0e199846b9d989119e0b8f0a3bedc1d3c71242 | 262 | bzl | Python | examples/android/program/g_artifact.bzl | menny/mabel | 99ece6ec8ea01e56b58c3d2ee58287750ecee002 | [
"Apache-2.0"
] | 10 | 2019-03-18T21:47:38.000Z | 2022-03-10T15:33:38.000Z | examples/android/program/g_artifact.bzl | menny/mabel | 99ece6ec8ea01e56b58c3d2ee58287750ecee002 | [
"Apache-2.0"
] | 70 | 2019-01-17T20:19:18.000Z | 2021-06-21T17:20:22.000Z | examples/android/program/g_artifact.bzl | menny/bazel-mvn-deps | 99ece6ec8ea01e56b58c3d2ee58287750ecee002 | [
"Apache-2.0"
] | 1 | 2019-10-23T20:30:46.000Z | 2019-10-23T20:30:46.000Z | """A simple example for how to replace the provided artifact macro"""
load("@mabel//rules/maven_deps:mabel.bzl", "artifact")
def g_artifact(coordinate):
return artifact(coordinate = coordinate, repositories = ["https://maven.google.com/"], type = "naive")
| 37.428571 | 106 | 0.725191 | 34 | 262 | 5.529412 | 0.794118 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118321 | 262 | 6 | 107 | 43.666667 | 0.813853 | 0.240458 | 0 | 0 | 0 | 0 | 0.373057 | 0.176166 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
ae20d6aa1b99a0f797e489a2caa7913ce518b4a3 | 262 | py | Python | tests/test_islice.py | eugenma/funchain | 53c9c71a10eaa587d8d7a7e9adc3e13046f2bf14 | [
"MIT"
] | null | null | null | tests/test_islice.py | eugenma/funchain | 53c9c71a10eaa587d8d7a7e9adc3e13046f2bf14 | [
"MIT"
] | null | null | null | tests/test_islice.py | eugenma/funchain | 53c9c71a10eaa587d8d7a7e9adc3e13046f2bf14 | [
"MIT"
] | null | null | null | from funchain import Chain
def test_islice_stop_only():
actual = list(Chain(range(10)).islice(4))
assert actual == list(range(4))
def test_islice_full():
actual = list(Chain(range(10)).islice(0, 7, 2))
assert actual == list(range(0, 7, 2))
| 18.714286 | 51 | 0.656489 | 41 | 262 | 4.073171 | 0.463415 | 0.239521 | 0.155689 | 0.239521 | 0.335329 | 0.335329 | 0 | 0 | 0 | 0 | 0 | 0.056075 | 0.183206 | 262 | 13 | 52 | 20.153846 | 0.724299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae2266ad261fa7062a0554fe40d41822aa1fb5ad | 725 | py | Python | problems/bfs/Solution490.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/bfs/Solution490.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/bfs/Solution490.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """ There is a ball in a maze with empty spaces (represented as 0) and walls
(represented as 1). The ball can go through the empty spaces by rolling up,
down, left or right, but it won't stop rolling until hitting a wall. When the
ball stops, it could choose the next direction.
Given the maze, the bal... | 38.157895 | 80 | 0.721379 | 113 | 725 | 4.628319 | 0.690265 | 0.053537 | 0.038241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.227586 | 725 | 18 | 81 | 40.277778 | 0.925 | 0.889655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ae2da5fc3adb84fa3bce4f3a1a6026867045379b | 93 | py | Python | penjualan/apps.py | jayapura-dev/pasarikan | 59954e36147bc3d9e60ed904d74622c7bc4de22c | [
"MIT"
] | null | null | null | penjualan/apps.py | jayapura-dev/pasarikan | 59954e36147bc3d9e60ed904d74622c7bc4de22c | [
"MIT"
] | 1 | 2020-09-20T23:19:34.000Z | 2020-09-20T23:19:34.000Z | penjualan/apps.py | jayapura-dev/pasarikan | 59954e36147bc3d9e60ed904d74622c7bc4de22c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PenjualanConfig(AppConfig):
name = 'penjualan'
| 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 | 0 | 0 | 0 | 3 |
ae724e3dfbf1d948bf5b5a1702dac732ccc072e6 | 576 | py | Python | project/rsm_utils/rsm.py | makar-pelogeiko/formal-lang-course | 8d0e1ffb081aaccf19ab69103509928ecccb46d9 | [
"Apache-2.0"
] | null | null | null | project/rsm_utils/rsm.py | makar-pelogeiko/formal-lang-course | 8d0e1ffb081aaccf19ab69103509928ecccb46d9 | [
"Apache-2.0"
] | 3 | 2021-10-14T14:20:02.000Z | 2022-01-22T23:51:11.000Z | project/rsm_utils/rsm.py | makar-pelogeiko/formal-lang-course | 8d0e1ffb081aaccf19ab69103509928ecccb46d9 | [
"Apache-2.0"
] | null | null | null | """Class representing a Recursive State Machine"""
from pyformlang.cfg import Variable
from project.rsm_utils.rsm_box import Box
class RSM:
"""Recursive State Machine
boxes = dictionary {number from 0: Box from rsm_box.py}"""
def __init__(self, start_symbol: Variable, boxes: dict):
self.start_sym... | 27.428571 | 62 | 0.682292 | 76 | 576 | 4.973684 | 0.421053 | 0.203704 | 0.15873 | 0.121693 | 0.137566 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002257 | 0.230903 | 576 | 20 | 63 | 28.8 | 0.851016 | 0.215278 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ae765890a283e1cafc55cfc222fa3eddff1f2a46 | 2,302 | py | Python | neutron/extensions/providernet.py | MultipleCrashes/neutron | fb268d7e91b22192a6e42f78b0057b4ebd3033ef | [
"Apache-2.0"
] | 1 | 2019-06-02T06:15:39.000Z | 2019-06-02T06:15:39.000Z | neutron/extensions/providernet.py | MultipleCrashes/neutron | fb268d7e91b22192a6e42f78b0057b4ebd3033ef | [
"Apache-2.0"
] | null | null | null | neutron/extensions/providernet.py | MultipleCrashes/neutron | fb268d7e91b22192a6e42f78b0057b4ebd3033ef | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2012 OpenStack Foundation.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 32.885714 | 78 | 0.728931 | 304 | 2,302 | 5.411184 | 0.493421 | 0.046809 | 0.051672 | 0.048632 | 0.027964 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006637 | 0.214596 | 2,302 | 69 | 79 | 33.362319 | 0.903208 | 0.514335 | 0 | 0.142857 | 0 | 0 | 0.052481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.178571 | 0.142857 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ae878c584fa130a39fa4eb6b10c227fe964af039 | 130 | py | Python | Python/S10872.py | irostub/Beakjoon-Problem-Solving | 3a230cbd16ade4ed7cc1da7f36085853d69d673d | [
"Beerware"
] | null | null | null | Python/S10872.py | irostub/Beakjoon-Problem-Solving | 3a230cbd16ade4ed7cc1da7f36085853d69d673d | [
"Beerware"
] | null | null | null | Python/S10872.py | irostub/Beakjoon-Problem-Solving | 3a230cbd16ade4ed7cc1da7f36085853d69d673d | [
"Beerware"
] | null | null | null | def fector(x: int):
if x == 0:
return 1
else:
return x * fector(x - 1)
N = int(input())
print(fector(N)) | 14.444444 | 32 | 0.492308 | 21 | 130 | 3.047619 | 0.571429 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.346154 | 130 | 9 | 33 | 14.444444 | 0.717647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae8962e3a6ec41c9a8e48184aa7f9f759873f58d | 767 | py | Python | sloth/collects/datagroup_xan.py | maurov/xraysloth | 6f18ddcb02050431574693d46bcf4b89c719c40b | [
"BSD-3-Clause"
] | 4 | 2015-07-03T09:38:58.000Z | 2022-03-16T11:09:49.000Z | sloth/collects/datagroup_xan.py | maurov/xraysloth | 6f18ddcb02050431574693d46bcf4b89c719c40b | [
"BSD-3-Clause"
] | null | null | null | sloth/collects/datagroup_xan.py | maurov/xraysloth | 6f18ddcb02050431574693d46bcf4b89c719c40b | [
"BSD-3-Clause"
] | 2 | 2017-05-22T17:14:11.000Z | 2017-07-04T04:52:08.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""DataGroupXanes: work with XANES data sets
============================================
- DataGroup
- DataGroup1D
- DataGroupXanes
"""
from .datagroup import MODNAME
from .datagroup1D import DataGroup1D
class DataGroupXanes(DataGroup1D):
"""DataGroup for XANES... | 26.448276 | 70 | 0.661017 | 84 | 767 | 5.738095 | 0.535714 | 0.062241 | 0.053942 | 0.070539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0078 | 0.164276 | 767 | 28 | 71 | 27.392857 | 0.74415 | 0.365059 | 0 | 0 | 0 | 0 | 0.046256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.090909 | 0.181818 | 0.090909 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ae8d4c5e772ee4a5da0b4ecd49da921e14fbbff2 | 151 | py | Python | zoocli/utils.py | m110/zoocli | 185f0cc6bbaa05c7a05de6861caef1a124e7adf3 | [
"MIT"
] | 1 | 2018-08-23T12:49:35.000Z | 2018-08-23T12:49:35.000Z | zoocli/utils.py | m110/zoocli | 185f0cc6bbaa05c7a05de6861caef1a124e7adf3 | [
"MIT"
] | null | null | null | zoocli/utils.py | m110/zoocli | 185f0cc6bbaa05c7a05de6861caef1a124e7adf3 | [
"MIT"
] | null | null | null | import datetime
def timestamp_to_date(timestamp):
date = datetime.datetime.fromtimestamp(timestamp)
return date.strftime('%Y-%m-%d %H:%M:%S')
| 25.166667 | 53 | 0.721854 | 21 | 151 | 5.095238 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125828 | 151 | 5 | 54 | 30.2 | 0.810606 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ae9da27a370264efce0b0d7ed46b0a2eab1d21bc | 257 | py | Python | conlangdev/signals.py | zeeonbees/conlangdev | 3ee2fbd9f893e16634417d13278823bff9bd6127 | [
"BSD-2-Clause"
] | null | null | null | conlangdev/signals.py | zeeonbees/conlangdev | 3ee2fbd9f893e16634417d13278823bff9bd6127 | [
"BSD-2-Clause"
] | null | null | null | conlangdev/signals.py | zeeonbees/conlangdev | 3ee2fbd9f893e16634417d13278823bff9bd6127 | [
"BSD-2-Clause"
] | null | null | null | from django.db.models.signals import pre_save
from .models.base.mixins import AutoSlugMixin
from .utils.models import base_receiver
@base_receiver(pre_save, sender=AutoSlugMixin)
def add_auto_slug(sender, instance, **kwargs):
instance.hydrate_slug()
| 25.7 | 46 | 0.809339 | 36 | 257 | 5.583333 | 0.583333 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101167 | 257 | 9 | 47 | 28.555556 | 0.87013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
882a39bab8ee0c337e73353567ad86421f8128ba | 947 | py | Python | src/som/primitives/array_primitives.py | smarr/RPySOM | 941e1fe08753d6e97dac24c3ba4d1e99a9c40160 | [
"MIT"
] | 12 | 2016-01-07T14:20:57.000Z | 2019-10-13T06:56:20.000Z | src/som/primitives/array_primitives.py | smarr/RPySOM | 941e1fe08753d6e97dac24c3ba4d1e99a9c40160 | [
"MIT"
] | 2 | 2016-05-26T06:53:33.000Z | 2020-09-02T15:58:28.000Z | src/som/primitives/array_primitives.py | SOM-st/RPySOM | 2dcfc71786a3bd5be5a842c649645f71d6c35f89 | [
"MIT"
] | 2 | 2016-05-25T06:07:52.000Z | 2019-10-02T16:52:25.000Z | from som.vm.universe import Universe
from som.vmobjects.primitive import UnaryPrimitive, BinaryPrimitive, Primitive
from som.primitives.primitives import Primitives
def _at(rcvr, i):
return rcvr.get_indexable_field(i.get_embedded_integer() - 1)
def _length(rcvr):
from som.vmobjects.integer import Integer
... | 30.548387 | 91 | 0.770855 | 114 | 947 | 6.070175 | 0.298246 | 0.040462 | 0.08237 | 0.121387 | 0.121387 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001215 | 0.13094 | 947 | 30 | 92 | 31.566667 | 0.839611 | 0 | 0 | 0 | 0 | 0 | 0.017951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.222222 | 0.166667 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
883ba252728b0b631e3b18a46964e4125239163d | 1,819 | py | Python | allure-pytest/test/labels/severity/module_severity_test.py | vdsbenoit/allure-python | 7b56b031c42369dd73844105382e9ceb9a88d6cd | [
"Apache-2.0"
] | null | null | null | allure-pytest/test/labels/severity/module_severity_test.py | vdsbenoit/allure-python | 7b56b031c42369dd73844105382e9ceb9a88d6cd | [
"Apache-2.0"
] | null | null | null | allure-pytest/test/labels/severity/module_severity_test.py | vdsbenoit/allure-python | 7b56b031c42369dd73844105382e9ceb9a88d6cd | [
"Apache-2.0"
] | null | null | null | """
>>> allure_report = getfixture('allure_report')
>>> assert_that(allure_report,
... all_of(
... has_property('test_cases', has_length(4)),
... has_property('test_groups', has_length(0))
... )) # doctest: +SKIP
"""
import allure
pytestmark = allure.severity(a... | 27.149254 | 75 | 0.531061 | 160 | 1,819 | 5.6 | 0.225 | 0.200893 | 0.122768 | 0.15625 | 0.719866 | 0.633929 | 0.598214 | 0.598214 | 0.598214 | 0.412946 | 0 | 0.001642 | 0.330401 | 1,819 | 66 | 76 | 27.560606 | 0.73399 | 0.626718 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8842e6bbc35793fe4a084e32924035275e65f53d | 793 | py | Python | benchmarks/Evolution/both/evolution/trait_cards/ambush.py | nuprl/retic_performance | 621211c2f40251ce5364c33e72e4067e34a32013 | [
"MIT"
] | 3 | 2018-08-03T02:41:29.000Z | 2021-03-19T03:18:47.000Z | benchmarks/Evolution/both/evolution/trait_cards/ambush.py | nuprl/retic_performance | 621211c2f40251ce5364c33e72e4067e34a32013 | [
"MIT"
] | 3 | 2018-02-04T17:53:56.000Z | 2018-11-10T17:06:57.000Z | benchmarks/Evolution/both/evolution/trait_cards/ambush.py | nuprl/retic_performance | 621211c2f40251ce5364c33e72e4067e34a32013 | [
"MIT"
] | 1 | 2018-08-04T00:14:12.000Z | 2018-08-04T00:14:12.000Z | from evolution.constants import TRAIT_CARD_DEFAULT_FOOD_TOKENS
from evolution.trait_cards.cards import TraitCard
__author__ = 'zeinamigeed'
class AmbushCard(TraitCard):
def __init__(self, num_tokens_as_food_card=TRAIT_CARD_DEFAULT_FOOD_TOKENS):
"""
:param num_tokens_as_food_card: The food tokens ... | 30.5 | 109 | 0.725095 | 102 | 793 | 5.107843 | 0.441176 | 0.086372 | 0.105566 | 0.143954 | 0.297505 | 0.088292 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194199 | 793 | 25 | 110 | 31.72 | 0.815336 | 0.161412 | 0 | 0 | 0 | 0 | 0.139647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.25 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
884c9033827a9a5b37b6e1cbb50f7ed635113a29 | 82 | py | Python | fabliip/__init__.py | liip/fabliip | 7d685f888f0e2145a95dd04de7b2319dd387aca3 | [
"MIT"
] | 1 | 2017-10-05T07:41:57.000Z | 2017-10-05T07:41:57.000Z | fabliip/__init__.py | liip/fabliip | 7d685f888f0e2145a95dd04de7b2319dd387aca3 | [
"MIT"
] | null | null | null | fabliip/__init__.py | liip/fabliip | 7d685f888f0e2145a95dd04de7b2319dd387aca3 | [
"MIT"
] | null | null | null | __version_tuple__ = (0, 3, 9)
__version__ = '.'.join(map(str, __version_tuple__))
| 27.333333 | 51 | 0.707317 | 11 | 82 | 4 | 0.727273 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.109756 | 82 | 2 | 52 | 41 | 0.561644 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
885b10a42d9c60dc915e4e5d348d02555a26bb98 | 2,777 | py | Python | accelbyte_py_sdk/api/lobby/operations/notification/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/lobby/operations/notification/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/lobby/operations/notification/__init__.py | encyphered/accelbyte-python-sdk | 09c1e989d7251de308150fdcd3119d662ca2d205 | [
"MIT"
] | null | null | null | # pylint: disable=line-too-long
from .send_multiple_users_freeform_notification_v1_admin import SendMultipleUsersFreeformNotificationV1Admin
from .send_users_freeform_notification_v1_admin import SendUsersFreeformNotificationV1Admin
from .get_all_notification_templates_v1_admin import GetAllNotificationTemplatesV1Admi... | 69.425 | 108 | 0.93014 | 288 | 2,777 | 8.5 | 0.270833 | 0.051471 | 0.095588 | 0.051062 | 0.202206 | 0.031046 | 0 | 0 | 0 | 0 | 0 | 0.014476 | 0.054735 | 2,777 | 39 | 109 | 71.205128 | 0.918095 | 0.010443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
886d66ce13c275a37ecbcb27b1b528a8c80585c5 | 314 | py | Python | Chapter03/contact_me.py | BradenEM/Python-3-Object-Oriented-Programming-Third-Edition | db79ddb7b5c4cb7513badac345396d42b9642cb3 | [
"MIT"
] | null | null | null | Chapter03/contact_me.py | BradenEM/Python-3-Object-Oriented-Programming-Third-Edition | db79ddb7b5c4cb7513badac345396d42b9642cb3 | [
"MIT"
] | null | null | null | Chapter03/contact_me.py | BradenEM/Python-3-Object-Oriented-Programming-Third-Edition | db79ddb7b5c4cb7513badac345396d42b9642cb3 | [
"MIT"
] | null | null | null | class Contact:
all_contacts = []
def __init__(self, name, email):
self.name = name
self.email = email
Contact.all_contacts.append(self)
class Supplier(Contact):
def order(self, order):
print("if this were a real system we would send " f"{order} order to {self.name}")
| 26.166667 | 90 | 0.630573 | 43 | 314 | 4.465116 | 0.55814 | 0.125 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257962 | 314 | 11 | 91 | 28.545455 | 0.824034 | 0 | 0 | 0 | 0 | 0 | 0.219745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.555556 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
88751f108e19ee9b3a9520149943789b09a98130 | 93 | py | Python | locale/pot/api/examples/_autosummary/pyvista-examples-downloads-download_rectilinear_grid-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/examples/_autosummary/pyvista-examples-downloads-download_rectilinear_grid-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/examples/_autosummary/pyvista-examples-downloads-download_rectilinear_grid-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | from pyvista import examples
dataset = examples.download_rectilinear_grid() # doctest:+SKIP
| 31 | 63 | 0.817204 | 11 | 93 | 6.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 93 | 2 | 64 | 46.5 | 0.891566 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
887dce79a58031df8d89062997e209bc226e69ff | 3,299 | py | Python | segment.py | bsu-slim/pystlm | 80e6f771ed659dc578bcce14bf26661189bbe427 | [
"MIT"
] | null | null | null | segment.py | bsu-slim/pystlm | 80e6f771ed659dc578bcce14bf26661189bbe427 | [
"MIT"
] | null | null | null | segment.py | bsu-slim/pystlm | 80e6f771ed659dc578bcce14bf26661189bbe427 | [
"MIT"
] | null | null | null | '''
Created on Oct 22, 2018
@author: casey
'''
class Segment(object):
#
# * Segments make up the tree. There is a base segment, then a root segment, then the tree expands into internal segments, until it gets to leaf segments.
# * These segment types make it easier to traverse the tree during b... | 20.61875 | 164 | 0.570476 | 433 | 3,299 | 4.161663 | 0.196305 | 0.083241 | 0.054384 | 0.033296 | 0.40899 | 0.278579 | 0.122087 | 0.09101 | 0 | 0 | 0 | 0.013081 | 0.327978 | 3,299 | 159 | 165 | 20.748428 | 0.799729 | 0.09124 | 0 | 0.485149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.356436 | false | 0.029703 | 0 | 0.207921 | 0.683168 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
88873d7d5a7c893b152cbfd060e6c59d4bd7dae2 | 949 | py | Python | src/data_structures/node.py | jtara1/AlgorithmsAndDataStructures | fed323344018c6a63d599666f368037124f2a8c7 | [
"MIT"
] | null | null | null | src/data_structures/node.py | jtara1/AlgorithmsAndDataStructures | fed323344018c6a63d599666f368037124f2a8c7 | [
"MIT"
] | null | null | null | src/data_structures/node.py | jtara1/AlgorithmsAndDataStructures | fed323344018c6a63d599666f368037124f2a8c7 | [
"MIT"
] | null | null | null | class SingleLinkedNode:
def __init__(self, datum):
"""Node in a single linked list
:param datum: the datum associated with this node
"""
self.next_node = None
self.datum = datum
def __str__(self):
return "datum={}; next={}".format(
self.datum,
... | 27.114286 | 79 | 0.600632 | 114 | 949 | 4.631579 | 0.289474 | 0.119318 | 0.068182 | 0.102273 | 0.329545 | 0.140152 | 0.140152 | 0.140152 | 0 | 0 | 0 | 0 | 0.287671 | 949 | 34 | 80 | 27.911765 | 0.781065 | 0.113804 | 0 | 0.090909 | 0 | 0 | 0.0492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0 | 0 | 0.227273 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8887c8d4dad0d46c5920a8b3f9e46e0057f739e5 | 524 | py | Python | core/test_dependencies.py | echim/pySteps | c33ac3446593b545aece475062d140527dcb443c | [
"MIT"
] | 8 | 2018-05-15T21:20:40.000Z | 2021-08-19T00:25:18.000Z | core/test_dependencies.py | echim/pySteps | c33ac3446593b545aece475062d140527dcb443c | [
"MIT"
] | null | null | null | core/test_dependencies.py | echim/pySteps | c33ac3446593b545aece475062d140527dcb443c | [
"MIT"
] | 2 | 2018-09-12T01:33:54.000Z | 2021-01-25T02:21:58.000Z | import pytest
from core.helpers.app_manager import AppManager
from core.helpers.point import Point
from core.screen.screen import Screen
from core.screen.region import Region
from core.enums.tesseract_language_code import LanguageCode
from core.helpers.os_helpers import platform_is_other_than_windows
from pyautogui im... | 43.666667 | 98 | 0.883588 | 77 | 524 | 5.753247 | 0.467532 | 0.14447 | 0.10158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080153 | 524 | 11 | 99 | 47.636364 | 0.919087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
88a32d56dfcf6f1042418867808cf1bcf210efbf | 258 | py | Python | src/rpasdt/cli/main.py | damianfraszczak/rpasdt | 57039dea485f89d97aafc39ea52f595e35633826 | [
"MIT"
] | 2 | 2021-09-10T07:43:07.000Z | 2021-09-10T07:44:54.000Z | src/rpasdt/cli/main.py | damianfraszczak/rpasdt | 57039dea485f89d97aafc39ea52f595e35633826 | [
"MIT"
] | null | null | null | src/rpasdt/cli/main.py | damianfraszczak/rpasdt | 57039dea485f89d97aafc39ea52f595e35633826 | [
"MIT"
] | 2 | 2022-01-17T14:47:49.000Z | 2022-02-14T10:28:45.000Z | """Entrypoint for CLI operations."""
import sys
import fire
from rpasdt.cli import CLIInterface
from rpasdt.common.exceptions import log_error
def main():
sys.excepthook = log_error
fire.Fire(CLIInterface)
if __name__ == "__main__":
main()
| 15.176471 | 46 | 0.728682 | 33 | 258 | 5.393939 | 0.575758 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 258 | 16 | 47 | 16.125 | 0.835681 | 0.116279 | 0 | 0 | 0 | 0 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
88a6e6537d0053c60c2fda6b6d2effd3ce8c15e0 | 82 | py | Python | Net640/errors.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | 1 | 2019-06-18T09:50:29.000Z | 2019-06-18T09:50:29.000Z | Net640/errors.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | 10 | 2019-12-24T07:05:29.000Z | 2022-02-10T07:42:44.000Z | Net640/errors.py | 86Ilya/net640kb | 6724f3da3b678b637e0e776ee0d4953753ee2e05 | [
"MIT"
] | null | null | null | ERR_EXCEED_LIMIT = "Not enough space"
class NotEnoughSpace(Exception):
pass
| 13.666667 | 37 | 0.756098 | 10 | 82 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 82 | 5 | 38 | 16.4 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
88b055de168fac1b93ca42e7a0be87c60af99c68 | 229 | wsgi | Python | python/rest_bridge.wsgi | krukmat/GardenForce-Demo | bcc2a66b2de02b2954fa5a741bf91e833ca10382 | [
"CC0-1.0"
] | null | null | null | python/rest_bridge.wsgi | krukmat/GardenForce-Demo | bcc2a66b2de02b2954fa5a741bf91e833ca10382 | [
"CC0-1.0"
] | null | null | null | python/rest_bridge.wsgi | krukmat/GardenForce-Demo | bcc2a66b2de02b2954fa5a741bf91e833ca10382 | [
"CC0-1.0"
] | null | null | null | #! /usr/bin/python3.6
import sys
sys.path.insert(0, '/rest /var/www/html/GardenForce-Demo/python/')
import logging
logging.basicConfig(stream=sys.stderr)
from rest_app import app as application
application.secret_key = '*!)s6ZvD' | 32.714286 | 66 | 0.777293 | 35 | 229 | 5.028571 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018957 | 0.078603 | 229 | 7 | 67 | 32.714286 | 0.815166 | 0.087336 | 0 | 0 | 0 | 0 | 0.248804 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
31f21f2f83f98d7fbfb29602bb5a3ea63eaaac94 | 321 | py | Python | lib/script/logon.py | mysidia/circle31dgpy | fbaedb78b8fc1033dc7c02bbf875f012e1cb0a7f | [
"Info-ZIP",
"Unlicense"
] | 1 | 2016-01-17T01:07:39.000Z | 2016-01-17T01:07:39.000Z | lib/script/logon.py | mysidia/circle31dgpy | fbaedb78b8fc1033dc7c02bbf875f012e1cb0a7f | [
"Info-ZIP",
"Unlicense"
] | null | null | null | lib/script/logon.py | mysidia/circle31dgpy | fbaedb78b8fc1033dc7c02bbf875f012e1cb0a7f | [
"Info-ZIP",
"Unlicense"
] | null | null | null | import server
import mud
import event
def __init__() :
event.add_null_system_listener("logon.enter",server.HOOK_PLAYER_ENTERED_GAME,do_q)
def __end__() :
event.remove_null_system_listener("logon.enter")
def do_q(type, args) :
mud.log("Player login (%s) detected (python event)" % args.actor.player.name)
return 0... | 21.4 | 83 | 0.766355 | 50 | 321 | 4.54 | 0.62 | 0.088106 | 0.15859 | 0.202643 | 0.246696 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003509 | 0.11215 | 321 | 14 | 84 | 22.928571 | 0.792982 | 0 | 0 | 0 | 0 | 0 | 0.196262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ee0a2841b47462d7923f0799bb18971c6a571811 | 1,013 | py | Python | tests/related/models.py | OlgaBorisova/django-pgfields | fc21efc116d017f1bf75c88fa3502cc23f8923b3 | [
"BSD-3-Clause"
] | 1 | 2015-03-26T09:34:32.000Z | 2015-03-26T09:34:32.000Z | tests/related/models.py | elbaschid/django-pgfields | 37915b92349c392ed4980d255225e991be3463d6 | [
"BSD-3-Clause"
] | null | null | null | tests/related/models.py | elbaschid/django-pgfields | 37915b92349c392ed4980d255225e991be3463d6 | [
"BSD-3-Clause"
] | 1 | 2018-10-23T21:31:29.000Z | 2018-10-23T21:31:29.000Z | from django_pg import models
class Game(models.Model):
label = models.CharField(max_length=100)
number = models.PositiveIntegerField()
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
class Moogle(models.Model):
game = models.ForeignKey(Game)
l... | 28.138889 | 53 | 0.692991 | 120 | 1,013 | 5.708333 | 0.333333 | 0.166423 | 0.20146 | 0.227737 | 0.69635 | 0.620438 | 0.424818 | 0.424818 | 0.424818 | 0.424818 | 0 | 0.013382 | 0.188549 | 1,013 | 35 | 54 | 28.942857 | 0.819951 | 0 | 0 | 0.444444 | 0 | 0 | 0.025666 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.814815 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ee24c6ece4cc8b96527c5e8a0896eeb72fc37660 | 85 | py | Python | micro-benchmark/snippets/assignments/chained/main.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 121 | 2020-12-16T20:31:37.000Z | 2022-03-21T20:32:43.000Z | micro-benchmark/snippets/assignments/chained/main.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 24 | 2021-03-13T00:04:00.000Z | 2022-03-21T17:28:11.000Z | micro-benchmark/snippets/assignments/chained/main.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 19 | 2021-03-23T10:58:47.000Z | 2022-03-24T19:46:50.000Z | def func1():
pass
def func2():
pass
a = b = func1
b()
a = b = func2
a()
| 6.071429 | 13 | 0.470588 | 14 | 85 | 2.857143 | 0.428571 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.364706 | 85 | 13 | 14 | 6.538462 | 0.666667 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
ee2c1dab2688b9881dcebb13ff7456c65f0f5045 | 135 | py | Python | output/models/sun_data/stype/st_facets/st_facets00118m/st_facets00118m_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/sun_data/stype/st_facets/st_facets00118m/st_facets00118m_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/sun_data/stype/st_facets/st_facets00118m/st_facets00118m_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.sun_data.stype.st_facets.st_facets00118m.st_facets00118m_xsd.st_facets00118m import Test
__all__ = [
"Test",
]
| 22.5 | 107 | 0.8 | 19 | 135 | 5.157895 | 0.684211 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123967 | 0.103704 | 135 | 5 | 108 | 27 | 0.68595 | 0 | 0 | 0 | 0 | 0 | 0.02963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee3ef4080cbfb549b2891a40dd5124f40389cab9 | 4,208 | py | Python | notebook/pandas_ohlc_downsampling.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/pandas_ohlc_downsampling.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/pandas_ohlc_downsampling.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import pandas as pd
df = pd.read_csv('data/src/aapl_2015_2019.csv', index_col=0, parse_dates=True)['2017']
print(df)
# open high low close volume
# 2017-01-03 115.80 116.3300 114.760 116.15 28781865
# 2017-01-04 115.85 116.5100 115.750 116.02 21118116
# 2017-01-05 115.92 116.86... | 43.833333 | 86 | 0.616683 | 831 | 4,208 | 3.109507 | 0.31769 | 0.025542 | 0.021285 | 0.03096 | 0.407121 | 0.407121 | 0.378096 | 0.337848 | 0.313854 | 0.302245 | 0 | 0.690022 | 0.240257 | 4,208 | 95 | 87 | 44.294737 | 0.118236 | 0.832937 | 0 | 0.25 | 0 | 0 | 0.198052 | 0.043831 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.3125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee4c6a48ffda43aaeb7bd91c37c58daf540aacd0 | 159 | py | Python | section8/book_store/book_outlet/urls.py | nwrocketman64/python-django-course | cacfc0ac08f50503589efa8babfa9d1b096ec223 | [
"MIT"
] | null | null | null | section8/book_store/book_outlet/urls.py | nwrocketman64/python-django-course | cacfc0ac08f50503589efa8babfa9d1b096ec223 | [
"MIT"
] | null | null | null | section8/book_store/book_outlet/urls.py | nwrocketman64/python-django-course | cacfc0ac08f50503589efa8babfa9d1b096ec223 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path("", views.index),
path("<slug:slug>", views.book_detail, name="book-detail")
]
| 17.666667 | 62 | 0.666667 | 21 | 159 | 5 | 0.571429 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169811 | 159 | 8 | 63 | 19.875 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0.138365 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ee5a819c5584f9805eab902383f934e34369393b | 268 | py | Python | ims_soft/dashboard/models.py | fouadsan/ims-soft | 872f9fedd7d848cf9b2a16d53bcf1925fe042721 | [
"MIT"
] | null | null | null | ims_soft/dashboard/models.py | fouadsan/ims-soft | 872f9fedd7d848cf9b2a16d53bcf1925fe042721 | [
"MIT"
] | null | null | null | ims_soft/dashboard/models.py | fouadsan/ims-soft | 872f9fedd7d848cf9b2a16d53bcf1925fe042721 | [
"MIT"
] | null | null | null | from django.db import models
from datetime import datetime, timedelta
class Event(models.Model):
name = models.CharField(max_length=200)
when = models.DateTimeField(default=datetime.now()+timedelta(days=7))
def __str__(self):
return str(self.name) | 33.5 | 73 | 0.738806 | 36 | 268 | 5.361111 | 0.694444 | 0.072539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017621 | 0.152985 | 268 | 8 | 74 | 33.5 | 0.832599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ee8688cc59bb8b042a9dbb5e8c366c6920bd1db9 | 83 | py | Python | APG4b/ex4/main.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | APG4b/ex4/main.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | APG4b/ex4/main.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | seconds = 365 * 24 * 60 * 60
for year in [1, 2, 5, 10]:
print(seconds * year)
| 16.6 | 28 | 0.554217 | 15 | 83 | 3.066667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.237288 | 0.289157 | 83 | 4 | 29 | 20.75 | 0.542373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ee89d75a68af82cb9761e181f29d509e9beca131 | 208 | py | Python | manifests/templates/arm_server.py | markng/armstrong_on_vagrant | c699efc2ed82e80e501f15b489f46349844a30d9 | [
"Apache-2.0"
] | 2 | 2015-11-05T06:05:14.000Z | 2020-04-07T20:05:35.000Z | manifests/templates/arm_server.py | markng/armstrong_on_vagrant | c699efc2ed82e80e501f15b489f46349844a30d9 | [
"Apache-2.0"
] | null | null | null | manifests/templates/arm_server.py | markng/armstrong_on_vagrant | c699efc2ed82e80e501f15b489f46349844a30d9 | [
"Apache-2.0"
] | null | null | null | from django.core.handlers.wsgi import WSGIHandler
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'config.development'
sys.path.insert(0, os.path.dirname(__file__))
application = WSGIHandler()
| 20.8 | 59 | 0.793269 | 28 | 208 | 5.678571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.091346 | 208 | 9 | 60 | 23.111111 | 0.835979 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 0.105769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c9973d66379296aa9bdd0ac6aec8fee78718e7b3 | 356 | py | Python | pacote-download/Python/modulo01/python01ex/ex005.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | pacote-download/Python/modulo01/python01ex/ex005.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | pacote-download/Python/modulo01/python01ex/ex005.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | # ------------------------- DESAFIO 005 -------------------------
# Programa para mostrar na tela o sucessor e antecessor de um numero digitado
num = int(input('Digite um Numero: '))
suc = num + 1
ant = num - 1
print('Abaixo seguem os numeros conforme na ordem: \n Antecessor / Numedo Digitado / Sucessor \n {:^10} / ... | 39.555556 | 142 | 0.581461 | 48 | 356 | 4.3125 | 0.729167 | 0.077295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033445 | 0.160112 | 356 | 9 | 142 | 39.555556 | 0.658863 | 0.390449 | 0 | 0 | 0 | 0.25 | 0.609302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9a8faaa79024d381b21b2e268b529f3f9465340 | 90 | py | Python | dotfiles/repo/pdb/pdbrc.py | aubricus/dotfiles | d4824ad6726b2e841378942f68502d9799520e9a | [
"MIT"
] | 1 | 2019-06-04T17:00:06.000Z | 2019-06-04T17:00:06.000Z | dotfiles/repo/pdb/pdbrc.py | aubricus/dotfiles | d4824ad6726b2e841378942f68502d9799520e9a | [
"MIT"
] | 16 | 2017-05-18T20:23:17.000Z | 2018-03-02T00:24:07.000Z | dotfiles/repo/pdb/pdbrc.py | aubricus/dotfiles | d4824ad6726b2e841378942f68502d9799520e9a | [
"MIT"
] | 2 | 2017-07-13T22:21:44.000Z | 2020-09-14T03:21:30.000Z | from pdb import DefaultConfig
class Config(DefaultConfig):
sticky_by_default = True
| 15 | 29 | 0.788889 | 11 | 90 | 6.272727 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 90 | 5 | 30 | 18 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c9a916a3825a3f89b33ae114eef217a4f1237430 | 459 | py | Python | djangoapps/early/models.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | 8 | 2018-05-24T04:46:58.000Z | 2021-06-11T04:41:49.000Z | djangoapps/early/models.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | null | null | null | djangoapps/early/models.py | sergioruizdavila/asanni-backend | b2da3f3a97dbd1ef46d65f13ee9b2098124d4fc4 | [
"MIT"
] | 4 | 2020-01-24T13:35:42.000Z | 2021-06-15T07:38:06.000Z | from django.db import models
class Early(models.Model):
""" Early Adopter Model """
first_name = models.CharField(max_length=100, default='*')
last_name = models.CharField(max_length=100, default='*')
email = models.EmailField(max_length=50)
comment = models.CharField(max_length=500)
created_... | 28.6875 | 71 | 0.703704 | 61 | 459 | 5.032787 | 0.557377 | 0.117264 | 0.175896 | 0.234528 | 0.247557 | 0.247557 | 0.247557 | 0 | 0 | 0 | 0 | 0.028947 | 0.172113 | 459 | 15 | 72 | 30.6 | 0.778947 | 0.041394 | 0 | 0 | 0 | 0 | 0.006961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c9ad9158cbc653278e2a6207754e2662f9577ccb | 217 | py | Python | tests/testapps/admin.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | 5 | 2020-05-28T07:04:25.000Z | 2020-09-26T05:29:46.000Z | tests/testapps/admin.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | 1 | 2020-09-26T05:34:19.000Z | 2020-09-26T05:34:19.000Z | tests/testapps/admin.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from stackstore.admin import AbstractStackStoreAdmin
from . import models as testapps_models
@admin.register(testapps_models.Sample)
class Sample(AbstractStackStoreAdmin):
...
| 19.727273 | 52 | 0.815668 | 24 | 217 | 7.291667 | 0.541667 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119816 | 217 | 10 | 53 | 21.7 | 0.91623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c9b57e63cc26fc12d0b6fbc36f0c313919c51b3e | 102 | py | Python | agc/agc020/agc020a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | agc/agc020/agc020a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | agc/agc020/agc020a.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | N, A, B = map(int, input().split())
if (B - A) % 2 == 0:
print('Alice')
else:
print('Borys')
| 14.571429 | 35 | 0.480392 | 17 | 102 | 2.882353 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.254902 | 102 | 6 | 36 | 17 | 0.618421 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c9d6306a37fbd6d5cdddacebc280ba50a3e67120 | 3,486 | py | Python | model/medicationadministration.py | beda-software/fhir-py-experements | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | [
"MIT"
] | null | null | null | model/medicationadministration.py | beda-software/fhir-py-experements | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | [
"MIT"
] | null | null | null | model/medicationadministration.py | beda-software/fhir-py-experements | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/MedicationAdministration) on 2020-02-03.
# 2020, SMART Health IT.
import sys
from dataclasses import dataclass, field
from typing import ClassVar, Optional, List
from .annotation import Ann... | 41.011765 | 121 | 0.760757 | 376 | 3,486 | 7.013298 | 0.369681 | 0.054608 | 0.036405 | 0.054608 | 0.13121 | 0.101631 | 0.101631 | 0.101631 | 0.101631 | 0 | 0 | 0.008119 | 0.152037 | 3,486 | 85 | 122 | 41.011765 | 0.883965 | 0.2358 | 0 | 0.057692 | 1 | 0 | 0.051332 | 0.033578 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.942308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c9e88f6d892186c8a0fe5ac1f7b67e1ca013541d | 257 | py | Python | exercicios/Curso_Udemy_Python/sec3_aula49.py | IgoPereiraBarros/maratona-data-science-brasil | cc07476579134a2764f00d229d415657555dcdd1 | [
"MIT"
] | null | null | null | exercicios/Curso_Udemy_Python/sec3_aula49.py | IgoPereiraBarros/maratona-data-science-brasil | cc07476579134a2764f00d229d415657555dcdd1 | [
"MIT"
] | null | null | null | exercicios/Curso_Udemy_Python/sec3_aula49.py | IgoPereiraBarros/maratona-data-science-brasil | cc07476579134a2764f00d229d415657555dcdd1 | [
"MIT"
] | null | null | null |
'''def algo1():
print('Antes da exceção')
raise Exception('exceção do algo1')
print('Depois da exceção')
algo1()'''
def algo1():
print('Anterior a exceção')
algo2()
print('Após a exceção')
def algo2():
raise Exception('exceção do algo2')
algo1() | 15.117647 | 36 | 0.669261 | 35 | 257 | 4.914286 | 0.4 | 0.174419 | 0.151163 | 0.267442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036866 | 0.155642 | 257 | 17 | 37 | 15.117647 | 0.75576 | 0.521401 | 0 | 0 | 0 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | true | 0 | 0 | 0 | 0.285714 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a004a9794ad777612d8f6664b21e5bd7b7536b5e | 124 | py | Python | data/studio21_generated/interview/0469/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/0469/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/interview/0469/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | class Solution:
def validateBinaryTreeNodes(self, n: int, leftChild: List[int], rightChild: List[int]) -> bool:
| 41.333333 | 99 | 0.677419 | 14 | 124 | 6 | 0.785714 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 124 | 3 | 100 | 41.333333 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a022d9a04ef6b90e86893453d39c1ab6d044f3a3 | 168 | py | Python | sciencebeam_trainer_delft/grobid/sequenceLabelling/reader.py | elifesciences/sciencebeam-trainer-delft | 0f7da96cdf32acf1538a5fded192255158883ba0 | [
"MIT"
] | 5 | 2019-10-19T13:00:34.000Z | 2022-01-16T17:31:42.000Z | sciencebeam_trainer_delft/grobid/sequenceLabelling/reader.py | elifesciences/sciencebeam-trainer-delft | 0f7da96cdf32acf1538a5fded192255158883ba0 | [
"MIT"
] | 162 | 2019-08-22T10:28:46.000Z | 2022-03-28T17:33:16.000Z | sciencebeam_trainer_delft/grobid/sequenceLabelling/reader.py | elifesciences/sciencebeam-trainer-delft | 0f7da96cdf32acf1538a5fded192255158883ba0 | [
"MIT"
] | null | null | null | # pylint: disable=unused-import
from sciencebeam_trainer_delft.sequence_labelling.reader import ( # noqa
load_data_and_labels_crf_file,
load_data_crf_string
)
| 28 | 73 | 0.815476 | 23 | 168 | 5.478261 | 0.826087 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 168 | 5 | 74 | 33.6 | 0.857143 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4e51f4973e8fe7994c85fc8f965a223bb5160c59 | 199 | py | Python | galatitebot/checks.py | Lartza/GalatiteBot2 | a304e4376a897d4dc0a0098a10493ade246377a3 | [
"MIT"
] | null | null | null | galatitebot/checks.py | Lartza/GalatiteBot2 | a304e4376a897d4dc0a0098a10493ade246377a3 | [
"MIT"
] | null | null | null | galatitebot/checks.py | Lartza/GalatiteBot2 | a304e4376a897d4dc0a0098a10493ade246377a3 | [
"MIT"
] | null | null | null | from tanjun import abc as tanjun_abc
import config
async def role_check(ctx: tanjun_abc.Context) -> bool:
result = any(x in config.ADMIN_ROLES for x in ctx.member.role_ids)
return result
| 19.9 | 70 | 0.748744 | 34 | 199 | 4.235294 | 0.676471 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18593 | 199 | 9 | 71 | 22.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4e882ddf9e577e38f3a43033878e8f3e7b3dd6a2 | 292 | py | Python | mysite/tests/features/environment.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 8 | 2015-06-02T15:34:44.000Z | 2019-03-21T12:27:30.000Z | mysite/tests/features/environment.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 761 | 2015-01-07T05:13:08.000Z | 2022-02-10T10:23:37.000Z | mysite/tests/features/environment.py | cjlee112/socraticqs2 | 2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820 | [
"Apache-2.0"
] | 12 | 2015-01-28T20:09:36.000Z | 2018-03-20T13:32:11.000Z | from selenium import webdriver
def before_all(context):
context.browser = webdriver.PhantomJS()
context.browser.implicitly_wait(1)
context.server_url = 'http://localhost:8000'
def after_all(context):
context.browser.quit()
def before_feature(context, feature):
pass
| 18.25 | 48 | 0.736301 | 36 | 292 | 5.833333 | 0.611111 | 0.2 | 0.161905 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020325 | 0.157534 | 292 | 15 | 49 | 19.466667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
4ebf53f67af9446e66a3d0780f94433e0103ed88 | 235 | py | Python | .config/autokey/data/keyboard_automation/select_line.py | danyloM/dotfiles | 0df6ff1465ba4263887f0e0c9e513aa7229e55bd | [
"MIT"
] | null | null | null | .config/autokey/data/keyboard_automation/select_line.py | danyloM/dotfiles | 0df6ff1465ba4263887f0e0c9e513aa7229e55bd | [
"MIT"
] | null | null | null | .config/autokey/data/keyboard_automation/select_line.py | danyloM/dotfiles | 0df6ff1465ba4263887f0e0c9e513aa7229e55bd | [
"MIT"
] | null | null | null | winClass = window.get_active_class()
if winClass not in ("code.Code", "emacs.Emacs"):
# Regular window
keyboard.send_keys('<home>')
keyboard.send_keys('<shift>+<end>')
else:
# VS Code
keyboard.send_keys('<ctrl>+l')
| 26.111111 | 48 | 0.655319 | 32 | 235 | 4.65625 | 0.65625 | 0.241611 | 0.322148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165957 | 235 | 8 | 49 | 29.375 | 0.760204 | 0.093617 | 0 | 0 | 0 | 0 | 0.22381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4eca720ecc4b610d95e611527e91667598779db9 | 207 | py | Python | quest 7.py | Victorvv72/TPA-Lista | d8de14ae9ce04854c329c9bbfbcf5d68614d1aea | [
"MIT"
] | null | null | null | quest 7.py | Victorvv72/TPA-Lista | d8de14ae9ce04854c329c9bbfbcf5d68614d1aea | [
"MIT"
] | null | null | null | quest 7.py | Victorvv72/TPA-Lista | d8de14ae9ce04854c329c9bbfbcf5d68614d1aea | [
"MIT"
] | 1 | 2021-09-23T23:05:00.000Z | 2021-09-23T23:05:00.000Z | n1 = int(input('Digite um número: '))
n2 = int(input('Agora digite outro número: '))
while n1 >= n2:
print (n2)
n2 += 1
while n1 <= n2:
print (n1)
n1 += 1
| 18.818182 | 47 | 0.454106 | 27 | 207 | 3.481481 | 0.444444 | 0.170213 | 0.191489 | 0.297872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0.400966 | 207 | 11 | 48 | 18.818182 | 0.66129 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
14cb7dace12b00c43938fc262fa342ef851fd78b | 1,578 | py | Python | angrutils/expr.py | Ashaya123/angr-utils | 06ac5ce4946345c0ae3d134c6d77326a982e73f6 | [
"BSD-2-Clause"
] | 226 | 2016-04-10T03:26:30.000Z | 2022-03-24T14:39:26.000Z | angrutils/expr.py | Ashaya123/angr-utils | 06ac5ce4946345c0ae3d134c6d77326a982e73f6 | [
"BSD-2-Clause"
] | 33 | 2016-04-08T07:51:24.000Z | 2022-03-13T22:42:40.000Z | angrutils/expr.py | Ashaya123/angr-utils | 06ac5ce4946345c0ae3d134c6d77326a982e73f6 | [
"BSD-2-Clause"
] | 44 | 2016-04-28T23:24:07.000Z | 2021-12-17T02:02:39.000Z | # Expression evaluation routines
import claripy
def get_signed_range(se, expr):
"""
Calculate the range of the expression with signed boundaries
"""
size = expr.size()
umin = umax = smin = smax = None
if not sat_zero(se, expr):
try:
umin = se.min(expr, extra_constraints=[cl... | 33.574468 | 112 | 0.572243 | 203 | 1,578 | 4.374384 | 0.20197 | 0.09009 | 0.207207 | 0.27027 | 0.597973 | 0.597973 | 0.597973 | 0.545045 | 0.545045 | 0.545045 | 0 | 0.025778 | 0.287072 | 1,578 | 46 | 113 | 34.304348 | 0.763556 | 0.058302 | 0 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0.108108 | 0.027027 | 0.054054 | 0.351351 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
14dab95daf4bdc46db5c0494955e7e335bd3c582 | 177 | py | Python | tests/test_dummy.py | klarose/python-logging-rabbitmq | 223a4d6e53e0040a3cfb792464eec8b023b851fd | [
"MIT"
] | 37 | 2016-12-21T13:46:08.000Z | 2021-08-03T15:16:10.000Z | tests/test_dummy.py | klarose/python-logging-rabbitmq | 223a4d6e53e0040a3cfb792464eec8b023b851fd | [
"MIT"
] | 19 | 2017-03-17T03:33:10.000Z | 2022-02-15T22:08:14.000Z | tests/test_dummy.py | klarose/python-logging-rabbitmq | 223a4d6e53e0040a3cfb792464eec8b023b851fd | [
"MIT"
] | 29 | 2017-03-10T08:47:46.000Z | 2022-01-05T09:45:01.000Z | from python_logging_rabbitmq.filters import FieldFilter
def test_dummy():
# Temporally to test coverage integration.
filter = FieldFilter([], False)
assert True == True
| 22.125 | 55 | 0.762712 | 21 | 177 | 6.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158192 | 177 | 7 | 56 | 25.285714 | 0.885906 | 0.225989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
14de696707cf5c04e37971b19ec9babe50daec96 | 1,270 | py | Python | core/migrations/0067_auto_20210704_0542.py | CrownKira/digitalace-backend | 9489b3dc4b856688360b60a7dca040c945faab74 | [
"MIT"
] | 1 | 2021-05-28T05:22:54.000Z | 2021-05-28T05:22:54.000Z | core/migrations/0067_auto_20210704_0542.py | CrownKira/digitalace-backend | 9489b3dc4b856688360b60a7dca040c945faab74 | [
"MIT"
] | 3 | 2021-05-31T15:44:14.000Z | 2021-06-29T07:48:13.000Z | core/migrations/0067_auto_20210704_0542.py | CrownKira/digitalace-backend | 9489b3dc4b856688360b60a7dca040c945faab74 | [
"MIT"
] | 1 | 2021-05-30T07:42:54.000Z | 2021-05-30T07:42:54.000Z | # Generated by Django 3.2.3 on 2021-07-04 05:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0066_alter_invoice_sales_order'),
]
operations = [
migrations.AlterField(
model_name='invoice',
name='status... | 37.352941 | 165 | 0.555906 | 130 | 1,270 | 5.338462 | 0.4 | 0.115274 | 0.144092 | 0.167147 | 0.684438 | 0.684438 | 0.684438 | 0.684438 | 0.684438 | 0.642651 | 0 | 0.02416 | 0.250394 | 1,270 | 33 | 166 | 38.484848 | 0.704832 | 0.035433 | 0 | 0.592593 | 1 | 0 | 0.18888 | 0.02453 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
14de9998e59def4ede4e8de14854203a0685913c | 1,131 | py | Python | imports/conversions.py | hbolzan/minipcp-vhsys | 314deada0b3ac8af2ab11dcc46bc23cdd8d9f7b7 | [
"BSD-2-Clause"
] | null | null | null | imports/conversions.py | hbolzan/minipcp-vhsys | 314deada0b3ac8af2ab11dcc46bc23cdd8d9f7b7 | [
"BSD-2-Clause"
] | null | null | null | imports/conversions.py | hbolzan/minipcp-vhsys | 314deada0b3ac8af2ab11dcc46bc23cdd8d9f7b7 | [
"BSD-2-Clause"
] | null | null | null | def identity(x):
return x
def with_max_length(max_length):
return lambda x: x[:max_length] if x else x
def identity_or_none(x):
return None if not x else x
def tipo_de_pessoa(x):
return "J" if x == "PJ" else "F"
def cnpj(x, tipo_pessoa):
return x if tipo_pessoa == "PJ" else None
def cpf(x,... | 19.5 | 78 | 0.642794 | 182 | 1,131 | 3.791209 | 0.291209 | 0.034783 | 0.026087 | 0.026087 | 0.115942 | 0.063768 | 0.063768 | 0.063768 | 0 | 0 | 0 | 0.005952 | 0.257294 | 1,131 | 57 | 79 | 19.842105 | 0.815476 | 0 | 0 | 0 | 0 | 0 | 0.007958 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.285714 | 0.828571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
09016d6c49c456f6b5d02a4dc01360c96f20e3f5 | 10,325 | py | Python | src/sellers/tests.py | evis-market/web-interface-backend | f8930ff1c009ad18e522ab29680b4bcd50a6020e | [
"MIT"
] | 2 | 2021-08-30T22:58:32.000Z | 2021-12-12T10:47:52.000Z | src/sellers/tests.py | evis-market/web-interface-backend | f8930ff1c009ad18e522ab29680b4bcd50a6020e | [
"MIT"
] | null | null | null | src/sellers/tests.py | evis-market/web-interface-backend | f8930ff1c009ad18e522ab29680b4bcd50a6020e | [
"MIT"
] | 1 | 2021-08-22T19:12:44.000Z | 2021-08-22T19:12:44.000Z | import json
import pytest
from django.core.files import File
from django.forms import model_to_dict
from django.urls import reverse
from mixer.backend.django import mixer
from rest_framework.test import APIRequestFactory, force_authenticate
from sellers.models import Contact, Seller
from sellers.views import SellerSet... | 46.719457 | 138 | 0.575884 | 1,099 | 10,325 | 5.202912 | 0.121929 | 0.033578 | 0.023085 | 0.027282 | 0.793809 | 0.759007 | 0.711263 | 0.683456 | 0.648304 | 0.639909 | 0 | 0.02204 | 0.301308 | 10,325 | 220 | 139 | 46.931818 | 0.770585 | 0.02954 | 0 | 0.608466 | 0 | 0 | 0.166785 | 0.028641 | 0 | 0 | 0.004251 | 0 | 0.174603 | 1 | 0.026455 | false | 0 | 0.058201 | 0 | 0.089947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
092d79db4ab1a75badca00c524cb177c06f2a472 | 630 | py | Python | PyCloudNS/zones.py | cloudnsru/PyCloudNS | 8e8c31c29d20c2e361430eea95a43257bb1d3b52 | [
"MIT"
] | null | null | null | PyCloudNS/zones.py | cloudnsru/PyCloudNS | 8e8c31c29d20c2e361430eea95a43257bb1d3b52 | [
"MIT"
] | null | null | null | PyCloudNS/zones.py | cloudnsru/PyCloudNS | 8e8c31c29d20c2e361430eea95a43257bb1d3b52 | [
"MIT"
] | null | null | null | # coding: utf-8
from .req import Req
class Zones(Req):
def __init__(self, url, email, secret):
super().__init__(url=url, email=email, secret=secret)
def get(self):
"""Get list domains"""
return self.do_get("/zones/")
def create(self, **zone_details):
"""Create a new zone... | 23.333333 | 61 | 0.587302 | 81 | 630 | 4.382716 | 0.45679 | 0.084507 | 0.101408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002141 | 0.25873 | 630 | 26 | 62 | 24.230769 | 0.75803 | 0.190476 | 0 | 0 | 0 | 0 | 0.047131 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.416667 | false | 0 | 0.083333 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
093d3e3d701faf8870765417c3eb347b67394961 | 468 | py | Python | invoicing/relationships/base_relationship.py | dnegreira/Invoicing | 0bc8133e989f095c10151f67482e249416274947 | [
"MIT"
] | 10 | 2018-09-28T18:16:32.000Z | 2020-08-05T13:37:12.000Z | invoicing/relationships/base_relationship.py | dnegreira/Invoicing | 0bc8133e989f095c10151f67482e249416274947 | [
"MIT"
] | 13 | 2018-10-01T14:02:41.000Z | 2020-08-16T12:55:28.000Z | invoicing/relationships/base_relationship.py | dnegreira/Invoicing | 0bc8133e989f095c10151f67482e249416274947 | [
"MIT"
] | 7 | 2018-10-01T20:36:50.000Z | 2020-03-14T11:21:10.000Z | class BaseRelationship:
def __init__(self, name, repository, model, paginated_menu=None):
self.name = name
self.repository = repository
self.model = model
self.paginated_menu = paginated_menu
class OneToManyRelationship(BaseRelationship):
def __init__(self, related_name, name, ... | 36 | 83 | 0.715812 | 51 | 468 | 6.176471 | 0.27451 | 0.206349 | 0.180952 | 0.266667 | 0.330159 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200855 | 468 | 12 | 84 | 39 | 0.842246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
094030ee6c3252a4401efbd128693c69608496d3 | 30 | py | Python | python/MultiCampus/com/ggoreb/python/reader/__init__.py | dayoungMM/TIL | b844ef5621657908d4c256cdfe233462dd075e8b | [
"MIT"
] | null | null | null | python/MultiCampus/com/ggoreb/python/reader/__init__.py | dayoungMM/TIL | b844ef5621657908d4c256cdfe233462dd075e8b | [
"MIT"
] | null | null | null | python/MultiCampus/com/ggoreb/python/reader/__init__.py | dayoungMM/TIL | b844ef5621657908d4c256cdfe233462dd075e8b | [
"MIT"
] | null | null | null | __all__ = ['barcode','qrcode'] | 30 | 30 | 0.666667 | 3 | 30 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 30 | 1 | 30 | 30 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
09455370dc282e3855b6f8bbe20cc611acff26ca | 3,323 | py | Python | apps/count/models.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 12 | 2020-02-01T01:52:01.000Z | 2021-04-28T15:06:43.000Z | apps/count/models.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 5 | 2020-02-06T08:07:58.000Z | 2020-06-02T13:03:45.000Z | apps/count/models.py | lianxiaopang/camel-store-api | b8021250bf3d8cf7adc566deebdba55225148316 | [
"Apache-2.0"
] | 11 | 2020-02-03T13:07:46.000Z | 2020-11-29T01:44:06.000Z | from django.db import models
class Count(models.Model):
date = models.DateField(verbose_name='日期')
shop = models.ForeignKey('shop.Shop', verbose_name='所属店铺', null=True, blank=True, on_delete=models.SET_NULL)
turnovers = models.DecimalField(verbose_name='营业额', max_digits=30, decimal_places=2, default=0)
... | 40.52439 | 112 | 0.718628 | 394 | 3,323 | 5.840102 | 0.208122 | 0.200782 | 0.157758 | 0.17688 | 0.740548 | 0.534116 | 0.501521 | 0.428509 | 0.330726 | 0.272056 | 0 | 0.010365 | 0.15799 | 3,323 | 82 | 113 | 40.52439 | 0.812009 | 0 | 0 | 0.416667 | 0 | 0 | 0.083935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016667 | 0 | 0.716667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
095dee9ca6f750f823030c7d07d6bc2f52fb2320 | 1,489 | py | Python | another_version/params.py | sunlanchang/Lagou_Spider | 31020ab3cdc3a0ed0cd8911008583cab5d900801 | [
"Apache-2.0"
] | 4 | 2018-03-16T01:27:15.000Z | 2018-04-01T10:07:18.000Z | another_version/params.py | sunlanchang/Lagou_Spider | 31020ab3cdc3a0ed0cd8911008583cab5d900801 | [
"Apache-2.0"
] | null | null | null | another_version/params.py | sunlanchang/Lagou_Spider | 31020ab3cdc3a0ed0cd8911008583cab5d900801 | [
"Apache-2.0"
] | null | null | null | def get_url_headers_params_data():
url = "https://www.lagou.com/jobs/positionAjax.json"
# 请求头
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36",
"Referer": "https://www.lagou.com/jobs/list_python",
... | 67.681818 | 904 | 0.732707 | 168 | 1,489 | 6.369048 | 0.720238 | 0.018692 | 0.029907 | 0.037383 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318217 | 0.141034 | 1,489 | 21 | 905 | 70.904762 | 0.518374 | 0.009402 | 0 | 0 | 0 | 0.111111 | 0.779742 | 0.552685 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
119acea9eaebc3f618e57ddc99412f23b451a2b3 | 933 | py | Python | test/persistence/DummyMongoDbPersistence.py | banalna/pip-services3-mongodb-python | c27aaa94a531f52f4846bb08174a3c50d323361b | [
"MIT"
] | null | null | null | test/persistence/DummyMongoDbPersistence.py | banalna/pip-services3-mongodb-python | c27aaa94a531f52f4846bb08174a3c50d323361b | [
"MIT"
] | null | null | null | test/persistence/DummyMongoDbPersistence.py | banalna/pip-services3-mongodb-python | c27aaa94a531f52f4846bb08174a3c50d323361b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
test.persistence.DummyMongoDbPersistence
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dummy MongoDb persistence implementation
:copyright: Conceptual Vision Consulting LLC 2015-2016, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
from pip... | 37.32 | 114 | 0.737406 | 94 | 933 | 7.106383 | 0.542553 | 0.053892 | 0.041916 | 0.04491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013871 | 0.150054 | 933 | 24 | 115 | 38.875 | 0.828499 | 0.292605 | 0 | 0 | 0 | 0 | 0.011218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
119af05570df8ac51ae83a2fdb73a52480e796c4 | 392 | py | Python | kadanesAlgorithm.py | rramnani/LeetCode | 89efa7ee9dcf119121ca63678689b83710a5b3d2 | [
"Apache-2.0"
] | null | null | null | kadanesAlgorithm.py | rramnani/LeetCode | 89efa7ee9dcf119121ca63678689b83710a5b3d2 | [
"Apache-2.0"
] | null | null | null | kadanesAlgorithm.py | rramnani/LeetCode | 89efa7ee9dcf119121ca63678689b83710a5b3d2 | [
"Apache-2.0"
] | null | null | null | # O(N) time, O(1) space since we are storing just 2 variables
# Dynamic programming
def kadanesAlgorithm(array):
# Write your code here.
maxEndingHere = array[0]
maxSoFar = array[0]
#print(maxSoFar, array[0], array)
for num in array[1:]:
maxEndingHere = max(num, maxEndingHere+num)
maxSoFar = max(maxSoFar, ... | 28 | 61 | 0.714286 | 54 | 392 | 5.185185 | 0.574074 | 0.064286 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018576 | 0.17602 | 392 | 13 | 62 | 30.153846 | 0.848297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | null | null | 0.125 | 0 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
11ad9034da0d3c3068bba3c7c97ef52eaf0f78e2 | 121 | py | Python | main.py | Necromoshka/networkMapPortal | 6e585e9db809b84756114ccc7ae5e99aeb105999 | [
"MIT"
] | null | null | null | main.py | Necromoshka/networkMapPortal | 6e585e9db809b84756114ccc7ae5e99aeb105999 | [
"MIT"
] | null | null | null | main.py | Necromoshka/networkMapPortal | 6e585e9db809b84756114ccc7ae5e99aeb105999 | [
"MIT"
] | null | null | null | from netUnit.netUnit import SwitchSnmp
sw = SwitchSnmp('SWA1/1', '192.168.200.26', 'public', '.*V.*')
print(sw.sw_port)
| 24.2 | 62 | 0.68595 | 19 | 121 | 4.315789 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119266 | 0.099174 | 121 | 4 | 63 | 30.25 | 0.633028 | 0 | 0 | 0 | 0 | 0 | 0.256198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
11ba5735027ade76f070a965889eff58696a1089 | 237 | py | Python | cms_utils/models.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 40 | 2015-03-03T22:14:58.000Z | 2022-02-15T22:27:48.000Z | cms_utils/models.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 699 | 2015-01-21T10:13:29.000Z | 2022-02-08T09:26:36.000Z | cms_utils/models.py | ethancarlsson/epcon | 10ae259ad75271651506d44cc5e71cf089349ea3 | [
"BSD-2-Clause"
] | 96 | 2015-01-22T11:03:13.000Z | 2022-01-31T05:35:34.000Z | from cms.models import CMSPlugin
from django.db import models
from markitup.fields import MarkupField
class MarkitUpPluginModel(CMSPlugin):
body = MarkupField()
class TemplatePluginModel(CMSPlugin):
body = models.TextField()
| 19.75 | 39 | 0.78903 | 26 | 237 | 7.192308 | 0.576923 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14346 | 237 | 11 | 40 | 21.545455 | 0.921182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
11d39689080d92ce61ffbbb27c6d7ccaff5a827c | 1,484 | py | Python | site_problems/euler/206.py | jhoward/code_shop | 434f0dcea34499a7742402e84d6d03e7f7049567 | [
"MIT"
] | null | null | null | site_problems/euler/206.py | jhoward/code_shop | 434f0dcea34499a7742402e84d6d03e7f7049567 | [
"MIT"
] | null | null | null | site_problems/euler/206.py | jhoward/code_shop | 434f0dcea34499a7742402e84d6d03e7f7049567 | [
"MIT"
] | null | null | null | import random
def isCorrect(number):
t = number / 1000000000000000000
if t < 1:
return -1
if t > 1:
return 1
t = (number / 10000000000000000) % 10
if t < 2:
return -1
if t > 2:
return 1
t = (number / 100000000000000) % 10
if t < 3:
... | 16.674157 | 72 | 0.440701 | 195 | 1,484 | 3.353846 | 0.215385 | 0.082569 | 0.110092 | 0.192661 | 0.40367 | 0.134557 | 0.134557 | 0.134557 | 0 | 0 | 0 | 0.25894 | 0.453504 | 1,484 | 88 | 73 | 16.863636 | 0.547472 | 0 | 0 | 0.318841 | 0 | 0 | 0.009434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014493 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
11f13000e25931541ab31549e08f8bb6f51d8231 | 273 | py | Python | langml/prompt/models/__init__.py | 4AI/langml | 92a94ae63733bdca393061c2307499adfec663f4 | [
"MIT"
] | 2 | 2022-01-14T06:26:50.000Z | 2022-02-07T09:18:18.000Z | langml/prompt/models/__init__.py | 4AI/langml | 92a94ae63733bdca393061c2307499adfec663f4 | [
"MIT"
] | null | null | null | langml/prompt/models/__init__.py | 4AI/langml | 92a94ae63733bdca393061c2307499adfec663f4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from langml import keras
from langml.prompt.models.ptuning import PartialEmbedding, PTuniningPrompt # NOQA
custom_objects = {}
custom_objects.update(PartialEmbedding.get_custom_objects())
keras.utils.get_custom_objects().update(custom_objects)
| 24.818182 | 82 | 0.794872 | 33 | 273 | 6.363636 | 0.545455 | 0.309524 | 0.180952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.095238 | 273 | 10 | 83 | 27.3 | 0.846154 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
11f712c1613682c8b096a8fd9c48c881d92e67f3 | 127 | py | Python | todo.py | BenMcLean981/flask-todo | 9827f4993c7d4af0c42ed2a891f2eb56227f1644 | [
"MIT"
] | null | null | null | todo.py | BenMcLean981/flask-todo | 9827f4993c7d4af0c42ed2a891f2eb56227f1644 | [
"MIT"
] | null | null | null | todo.py | BenMcLean981/flask-todo | 9827f4993c7d4af0c42ed2a891f2eb56227f1644 | [
"MIT"
] | null | null | null | """Launcher for prod mode"""
from todo.app import create_app
if __name__ == "__main__":
app = create_app()
app.run()
| 15.875 | 31 | 0.653543 | 18 | 127 | 4.055556 | 0.722222 | 0.246575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204724 | 127 | 7 | 32 | 18.142857 | 0.722772 | 0.173228 | 0 | 0 | 0 | 0 | 0.080808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eec0b9aabef70068c120dea2d04927117d1461bb | 2,994 | py | Python | Python/phonenumbers/data/region_BD.py | skykisl/uberbruns2 | 26933efce04dba700d93cc75c7b74e069fb02d26 | [
"Unlicense"
] | 5 | 2015-04-27T20:10:56.000Z | 2018-06-14T18:19:09.000Z | python/phonenumbers/data/region_BD.py | vemel/python-phonenumbers | 595c322bf12106a3b95e3f202e948a7c6b6c15b8 | [
"Apache-2.0"
] | 2 | 2017-06-08T16:11:13.000Z | 2018-05-07T11:50:13.000Z | python/phonenumbers/data/region_BD.py | vemel/python-phonenumbers | 595c322bf12106a3b95e3f202e948a7c6b6c15b8 | [
"Apache-2.0"
] | 6 | 2015-02-19T11:11:04.000Z | 2022-03-15T19:38:31.000Z | """Auto-generated file, do not edit by hand. BD metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_BD = PhoneMetadata(id='BD', country_code=880, international_prefix='00[12]?',
general_desc=PhoneNumberDesc(national_number_pattern='[2-79]\\d{5,9}|1\\d{9}|8[0-7]\\d{4,... | 119.76 | 762 | 0.668671 | 511 | 2,994 | 3.731898 | 0.234834 | 0.177242 | 0.125852 | 0.245412 | 0.523335 | 0.460409 | 0.460409 | 0.460409 | 0.410593 | 0.080231 | 0 | 0.132249 | 0.055444 | 2,994 | 24 | 763 | 124.75 | 0.542079 | 0.017702 | 0 | 0 | 1 | 0.136364 | 0.339693 | 0.249404 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eed03b0d9be3e0733d052e8b38dcfff79fe23b6a | 646 | py | Python | maze.py | gswelter/qlearn-simple-maze | 6a874e4e85f96a1bb224db96b6721c914f9e530c | [
"MIT"
] | 1 | 2022-02-24T04:55:11.000Z | 2022-02-24T04:55:11.000Z | maze.py | gswelter/qlearn-simple-maze | 6a874e4e85f96a1bb224db96b6721c914f9e530c | [
"MIT"
] | null | null | null | maze.py | gswelter/qlearn-simple-maze | 6a874e4e85f96a1bb224db96b6721c914f9e530c | [
"MIT"
] | 2 | 2018-07-24T04:39:34.000Z | 2020-05-10T12:56:30.000Z | import numpy as np
def maze_7x5(a=-1.0, b=-5.0, goal=15.0):
nx, ny = 7, 5
S = np.zeros([nx, ny]) + a
# blocks
S[1,3] = b
S[2,1:3] = b
S[4,4:] = b
S[4,:2] = b
#
S[1,4] = b
S[6,3] = b
#
S[6,1] = goal
return S
def maze_13x13(a=-1.0, b=-5.0, goal=15.0):
nx... | 10.253968 | 42 | 0.337461 | 135 | 646 | 1.6 | 0.22963 | 0.157407 | 0.069444 | 0.055556 | 0.412037 | 0.388889 | 0.268519 | 0.157407 | 0.157407 | 0.157407 | 0 | 0.208914 | 0.444272 | 646 | 62 | 43 | 10.419355 | 0.392758 | 0.009288 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.178571 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eed4a16f6006b3d94e8233bfbd4f86103eea13aa | 406 | py | Python | tests/test_context.py | cfpb/drama-free-django | 84a629f6d79b7fa034ebfa1fa6e5a2e400b09496 | [
"CC0-1.0"
] | 2 | 2019-02-25T21:42:40.000Z | 2019-07-14T20:36:03.000Z | tests/test_context.py | cfpb/drama-free-django | 84a629f6d79b7fa034ebfa1fa6e5a2e400b09496 | [
"CC0-1.0"
] | 15 | 2016-05-10T13:58:13.000Z | 2019-07-26T17:09:40.000Z | tests/test_context.py | cfpb/drama-free-django | 84a629f6d79b7fa034ebfa1fa6e5a2e400b09496 | [
"CC0-1.0"
] | 8 | 2016-02-23T04:33:56.000Z | 2021-02-20T10:46:18.000Z | from os.path import exists, isdir
from tempfile import gettempdir
from unittest import TestCase
from no_drama.context import temp_directory
class TestTempDirectory(TestCase):
def test_temp_directory(self):
with temp_directory() as tempdir:
self.assertTrue(exists(tempdir))
self.ass... | 29 | 61 | 0.731527 | 47 | 406 | 6.212766 | 0.531915 | 0.133562 | 0.215753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194581 | 406 | 13 | 62 | 31.230769 | 0.892966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
eef02cb730726e9f242f492c32f7818142580ff3 | 183 | py | Python | 001146StepikPyBegin/Stepik001146PyBeginсh04p01st11C08_20200413.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh04p01st11C08_20200413.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh04p01st11C08_20200413.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | age = int(input())
if 0 < age <= 13:
print("детство")
elif 13 < age <= 24:
print("молодость")
elif 24 < age <= 59:
print("зрелость")
elif age > 59:
print("старость")
| 16.636364 | 22 | 0.557377 | 26 | 183 | 3.923077 | 0.538462 | 0.098039 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094891 | 0.251366 | 183 | 10 | 23 | 18.3 | 0.649635 | 0 | 0 | 0 | 0 | 0 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
eefb107cbf52211105643394964586e79988f43e | 1,633 | py | Python | utils/physics.py | Sangbaek/clas12DVCS | f23809e2202eef4d8b816006f79932cc385b8938 | [
"MIT"
] | null | null | null | utils/physics.py | Sangbaek/clas12DVCS | f23809e2202eef4d8b816006f79932cc385b8938 | [
"MIT"
] | null | null | null | utils/physics.py | Sangbaek/clas12DVCS | f23809e2202eef4d8b816006f79932cc385b8938 | [
"MIT"
] | 1 | 2022-01-15T01:36:45.000Z | 2022-01-15T01:36:45.000Z | #!/usr/bin/env python3
"""
Modules help pandas algebra without using ROOT.
"""
import numpy as np
def dot(vec1, vec2):
# dot product of two 3d vectors
return vec1[0]*vec2[0]+vec1[1]*vec2[1]+vec1[2]*vec2[2]
def mag(vec1):
# L2 norm of vector
return np.sqrt(dot(vec1, vec1))
def mag2(vec1):
# square of L2 norm
... | 28.649123 | 110 | 0.689528 | 290 | 1,633 | 3.882759 | 0.262069 | 0.031083 | 0.053286 | 0.079929 | 0.24778 | 0.179396 | 0.12611 | 0.071048 | 0.071048 | 0.071048 | 0 | 0.117182 | 0.148194 | 1,633 | 57 | 111 | 28.649123 | 0.692308 | 0.291488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.413793 | false | 0 | 0.034483 | 0.37931 | 0.862069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e102bdfb471a6ad297ee04e8a45f85915b56b644 | 74 | py | Python | src/apistblz/__init__.py | nfwstg/apistblz | e44ed7afda9c5d00c4e5649365c4aa1d2a9b577b | [
"MIT"
] | null | null | null | src/apistblz/__init__.py | nfwstg/apistblz | e44ed7afda9c5d00c4e5649365c4aa1d2a9b577b | [
"MIT"
] | null | null | null | src/apistblz/__init__.py | nfwstg/apistblz | e44ed7afda9c5d00c4e5649365c4aa1d2a9b577b | [
"MIT"
] | 2 | 2021-02-21T05:55:14.000Z | 2021-05-01T01:46:27.000Z | __all__ = ['downloadonce', 'ratecontrol', 'wait_and_retry', 'exceptions']
| 37 | 73 | 0.72973 | 7 | 74 | 6.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 74 | 1 | 74 | 74 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0.635135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e104b289facb7d770d19e2977378b6683eb8e0e8 | 347 | py | Python | ros/api/market/base.py | danielschweigert/refactored-octo-succotash | 9c63f089ae6d06fc294594e754880bca267b26f9 | [
"MIT"
] | null | null | null | ros/api/market/base.py | danielschweigert/refactored-octo-succotash | 9c63f089ae6d06fc294594e754880bca267b26f9 | [
"MIT"
] | null | null | null | ros/api/market/base.py | danielschweigert/refactored-octo-succotash | 9c63f089ae6d06fc294594e754880bca267b26f9 | [
"MIT"
] | null | null | null | """
Abstract MarketClient class which retrieves market data.
"""
from abc import ABC, abstractmethod
from datetime import datetime
from typing import List
from ros.core.moment import Moment
class MarketClient(ABC):
@abstractmethod
def get_moments(self, symbols: List[str], start: datetime, end: datetime) -> ... | 21.6875 | 94 | 0.743516 | 44 | 347 | 5.840909 | 0.590909 | 0.132296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172911 | 347 | 15 | 95 | 23.133333 | 0.89547 | 0.161383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
e1173807fd0adf78be8eb593056ba1adcb562794 | 164 | py | Python | Mundo 1/Ex15.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | Mundo 1/Ex15.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | Mundo 1/Ex15.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | km=float(input('Quantos km percorridos: '))
d = float(input('Quantos dias alugado: '))
pago = (d * 60) + (km * 0.15)
print('o total a pagar: r$ {} '.format(pago))
| 27.333333 | 45 | 0.615854 | 26 | 164 | 3.884615 | 0.730769 | 0.19802 | 0.336634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036496 | 0.164634 | 164 | 5 | 46 | 32.8 | 0.70073 | 0 | 0 | 0 | 0 | 0 | 0.420732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e11bfc5f43847844093d2fe402e14b7e024d51de | 261 | py | Python | Mundo 1/ex_007.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | Mundo 1/ex_007.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | Mundo 1/ex_007.py | Shock3/Python_Exercicios | 4420569e881b883728168aabe76b0e9f3a42597f | [
"MIT"
] | null | null | null | """
Desenvolva um programa que leia as duas notas de um aluno,
calcule e mostre a sua média.
"""
nota1 = float(input('Digite a primeira nota: '))
nota2 = float(input('Digite a segunda nota: '))
media = (nota1 + nota2) / 2
print(f'Sua média é de: {media:.1f}')
| 26.1 | 58 | 0.678161 | 43 | 261 | 4.116279 | 0.697674 | 0.090395 | 0.180791 | 0.19209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027907 | 0.176245 | 261 | 9 | 59 | 29 | 0.795349 | 0.337165 | 0 | 0 | 0 | 0 | 0.448485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e12626603ca3baf89e4220a2b6b2f63fcd2a2971 | 272 | py | Python | src/oscar_accounts/management/commands/oscar_accounts_init.py | n8snyder/django-oscar-accounts | 1d473f6ccf795989c7ced9356b4ce20c642debe0 | [
"BSD-3-Clause"
] | 149 | 2015-01-09T18:36:57.000Z | 2022-01-19T05:22:11.000Z | src/oscar_accounts/management/commands/oscar_accounts_init.py | n8snyder/django-oscar-accounts | 1d473f6ccf795989c7ced9356b4ce20c642debe0 | [
"BSD-3-Clause"
] | 124 | 2015-01-21T05:27:40.000Z | 2022-02-01T11:05:08.000Z | src/oscar_accounts/management/commands/oscar_accounts_init.py | n8snyder/django-oscar-accounts | 1d473f6ccf795989c7ced9356b4ce20c642debe0 | [
"BSD-3-Clause"
] | 89 | 2015-01-10T08:14:14.000Z | 2021-11-04T10:51:29.000Z | from django.core.management.base import BaseCommand
from oscar_accounts.setup import create_default_accounts
class Command(BaseCommand):
help = "Initialize oscar accounts default structure"
def handle(self, *args, **options):
create_default_accounts()
| 24.727273 | 56 | 0.772059 | 32 | 272 | 6.40625 | 0.6875 | 0.126829 | 0.204878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154412 | 272 | 10 | 57 | 27.2 | 0.891304 | 0 | 0 | 0 | 0 | 0 | 0.158088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
01135088b38ef7750716c9aad36dafce7ac6048f | 351 | py | Python | src/command/commands/reload.py | peyang-Celeron/ServerTemplate.py | cbff4f07e20d384ae51283859962c37e1497988a | [
"MIT"
] | 1 | 2021-09-07T10:00:32.000Z | 2021-09-07T10:00:32.000Z | src/command/commands/reload.py | peyang-Celeron/ServerTemplate.py | cbff4f07e20d384ae51283859962c37e1497988a | [
"MIT"
] | 14 | 2021-07-11T20:22:18.000Z | 2022-02-20T22:27:13.000Z | src/command/commands/reload.py | peyang-Celeron/ServerTemplate.py | cbff4f07e20d384ae51283859962c37e1497988a | [
"MIT"
] | 3 | 2021-08-07T01:11:30.000Z | 2021-09-13T06:30:50.000Z | import endpoint
from command.command import CommandEntry
class CommandReload(CommandEntry):
def get_name(self):
return "reload"
def get_aliases(self):
return []
def exec(self, args):
self.logger.info("main", "Reloading...")
endpoint.loader.reload()
self.logger.inf... | 21.9375 | 53 | 0.643875 | 39 | 351 | 5.74359 | 0.564103 | 0.053571 | 0.125 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 351 | 15 | 54 | 23.4 | 0.82963 | 0 | 0 | 0 | 0 | 0 | 0.122507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.181818 | 0.181818 | 0.727273 | 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 | 0 | 0 | 0 | 3 |
0117fbcfbc85c30780cd76063a3c774ff7a2d1ad | 190 | py | Python | fez_music_unpack.py | fesh0r/xnb_parse | cc3aef8fff4be1320068a78001795e7e1c8bd548 | [
"MIT"
] | 31 | 2015-01-15T01:57:48.000Z | 2021-06-26T17:08:56.000Z | fez_music_unpack.py | fesh0r/xnb_parse | cc3aef8fff4be1320068a78001795e7e1c8bd548 | [
"MIT"
] | 1 | 2016-05-11T13:48:30.000Z | 2016-05-11T13:48:30.000Z | fez_music_unpack.py | fesh0r/xnb_parse | cc3aef8fff4be1320068a78001795e7e1c8bd548 | [
"MIT"
] | 5 | 2015-01-26T08:58:20.000Z | 2020-02-25T11:03:33.000Z | #!/usr/bin/python
"""
Extract oggs from FEZ PC Music.pak file
"""
from __future__ import print_function
from xnb_parse.fez_music_unpack import main
if __name__ == '__main__':
main()
| 14.615385 | 43 | 0.731579 | 28 | 190 | 4.392857 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163158 | 190 | 12 | 44 | 15.833333 | 0.773585 | 0.294737 | 0 | 0 | 0 | 0 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
011cb4a384fe3b0a87aae6823ddcc8d5b85e09db | 775 | py | Python | lnbits/extensions/lnurlpos/migrations.py | blackcoffeexbt/lnbits-legend | a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64 | [
"MIT"
] | 258 | 2020-04-27T21:36:21.000Z | 2021-10-30T23:24:48.000Z | lnbits/extensions/lnurlpos/migrations.py | blackcoffeexbt/lnbits-legend | a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64 | [
"MIT"
] | 283 | 2020-04-27T17:23:12.000Z | 2021-11-01T10:07:20.000Z | lnbits/extensions/lnurlpos/migrations.py | blackcoffeexbt/lnbits-legend | a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64 | [
"MIT"
] | 109 | 2020-04-28T06:00:17.000Z | 2021-10-13T02:48:28.000Z | async def m001_initial(db):
"""
Initial lnurlpos table.
"""
await db.execute(
f"""
CREATE TABLE lnurlpos.lnurlposs (
id TEXT NOT NULL PRIMARY KEY,
key TEXT NOT NULL,
title TEXT NOT NULL,
wallet TEXT NOT NULL,
currency TEXT NOT ... | 25 | 67 | 0.513548 | 82 | 775 | 4.817073 | 0.378049 | 0.177215 | 0.222785 | 0.075949 | 0.521519 | 0.521519 | 0.405063 | 0.232911 | 0 | 0 | 0 | 0.006652 | 0.418065 | 775 | 30 | 68 | 25.833333 | 0.86918 | 0 | 0 | 0.461538 | 0 | 0 | 0.834239 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
014423202f4444d91eaa4e979647fce915010682 | 37 | py | Python | tests/roots/test-sphinx/conf.py | rblack42/sphinxcontrib-pylit | e3dae64e775148d1f412d58cd3b6220c5213a3f7 | [
"BSD-3-Clause"
] | null | null | null | tests/roots/test-sphinx/conf.py | rblack42/sphinxcontrib-pylit | e3dae64e775148d1f412d58cd3b6220c5213a3f7 | [
"BSD-3-Clause"
] | null | null | null | tests/roots/test-sphinx/conf.py | rblack42/sphinxcontrib-pylit | e3dae64e775148d1f412d58cd3b6220c5213a3f7 | [
"BSD-3-Clause"
] | null | null | null | extensions = ['sphinxcontrib.pylit']
| 18.5 | 36 | 0.756757 | 3 | 37 | 9.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 37 | 1 | 37 | 37 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0.513514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
015fdd46e5f710cb0b6154c328f28194baa14c43 | 430 | py | Python | pavo_cristatus/tests/doubles/spies/sqlite_query_result_spy.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/tests/doubles/spies/sqlite_query_result_spy.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | pavo_cristatus/tests/doubles/spies/sqlite_query_result_spy.py | MATTHEWFRAZER/pavo_cristatus | a4b96c0eb6c454fbe38d2092e29f63457a4ee955 | [
"MIT"
] | null | null | null | class SQLiteQueryResultSpy(object):
def __init__(self, row_count, lazy_result):
self.row_count = row_count
self.number_of_elements = row_count
self.lazy_result = lazy_result
@property
def rowcount(self):
return self.row_count
def fetchone(self):
self.number_of_e... | 28.666667 | 47 | 0.653488 | 54 | 430 | 4.851852 | 0.388889 | 0.152672 | 0.137405 | 0.229008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.274419 | 430 | 15 | 48 | 28.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
016ecaa061c3ec2844977a9f71bd400ce69f2ee5 | 126 | py | Python | ExamPrep/Shit Comp/Python Code/SciCompRevision(DifferentialEquations)/Differential Equations/euler.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | ExamPrep/Shit Comp/Python Code/SciCompRevision(DifferentialEquations)/Differential Equations/euler.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | ExamPrep/Shit Comp/Python Code/SciCompRevision(DifferentialEquations)/Differential Equations/euler.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | def odeeuler(F,x0,y0,h,N):
x = x0
y = y0
for i in range(1,N+1):
y += h*F(x,y)
x += h
return y
| 15.75 | 26 | 0.412698 | 27 | 126 | 1.925926 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0.412698 | 126 | 7 | 27 | 18 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
01840d89b99e157fa79faa0ec8f8d22e1f26b0b5 | 90 | py | Python | action.py | thanusiv/Frozen-Lake-With-Q-Learning | 959d866a4690f60e6bfddf38dc46d5d20ba8c596 | [
"CC0-1.0"
] | 1 | 2020-08-26T00:15:29.000Z | 2020-08-26T00:15:29.000Z | action.py | thanusiv/Frozen-Lake-With-Q-Learning | 959d866a4690f60e6bfddf38dc46d5d20ba8c596 | [
"CC0-1.0"
] | null | null | null | action.py | thanusiv/Frozen-Lake-With-Q-Learning | 959d866a4690f60e6bfddf38dc46d5d20ba8c596 | [
"CC0-1.0"
] | null | null | null | import enum
class Action(enum.Enum):
Left = 0
Right = 1
Up = 2
Down = 3
| 10 | 24 | 0.533333 | 14 | 90 | 3.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.377778 | 90 | 8 | 25 | 11.25 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
0186dc5987bfbeaf35a90f4bc59a88118b7bbb65 | 1,549 | py | Python | google-cloud-sdk/lib/googlecloudsdk/api_lib/cloudbuild/cloudbuild_util.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/googlecloudsdk/api_lib/cloudbuild/cloudbuild_util.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | null | null | null | google-cloud-sdk/lib/googlecloudsdk/api_lib/cloudbuild/cloudbuild_util.py | bopopescu/searchparty | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | [
"Apache-2.0"
] | 3 | 2017-07-27T18:44:13.000Z | 2020-07-25T17:48:53.000Z | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 34.422222 | 80 | 0.744997 | 195 | 1,549 | 5.8 | 0.569231 | 0.05305 | 0.026525 | 0.045093 | 0.035367 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013375 | 0.179471 | 1,549 | 44 | 81 | 35.204545 | 0.876475 | 0.442866 | 0 | 0 | 0 | 0 | 0.014235 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.157895 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
018cb4c7a465528abff09acd91b98c72af827a30 | 72 | py | Python | Hebah_Qatanany/Dictionaries.py | ArinaaNovikovaa/Programming_with_python_2021 | 890ae012d5ff8092ca1606d80d36d9e69f4e4162 | [
"Apache-2.0"
] | 7 | 2020-09-15T15:52:53.000Z | 2021-05-19T17:51:56.000Z | Hebah_Qatanany/Dictionaries.py | ArinaaNovikovaa/Programming_with_python_2021 | 890ae012d5ff8092ca1606d80d36d9e69f4e4162 | [
"Apache-2.0"
] | null | null | null | Hebah_Qatanany/Dictionaries.py | ArinaaNovikovaa/Programming_with_python_2021 | 890ae012d5ff8092ca1606d80d36d9e69f4e4162 | [
"Apache-2.0"
] | 49 | 2020-09-12T12:56:32.000Z | 2021-12-30T13:27:38.000Z |
city={'name': 'Barcelona', 'poulation': 550000}
city_population {city} | 18 | 47 | 0.708333 | 8 | 72 | 6.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 0.097222 | 72 | 4 | 48 | 18 | 0.676923 | 0 | 0 | 0 | 0 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
018f2c83b5d2ce1eccfee7f59494d3575a6b57a8 | 176 | py | Python | src/__init__.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | src/__init__.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | src/__init__.py | hmrc/platsec-compliance-alerting | c12c871a475ec8c2034504799228e565626309b6 | [
"Apache-2.0"
] | null | null | null | from logging import getLogger
from typing import Any, TypeVar
T = TypeVar("T")
def error(caller: Any, msg: str) -> None:
getLogger(caller.__class__.__name__).error(msg)
| 19.555556 | 51 | 0.727273 | 25 | 176 | 4.8 | 0.64 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153409 | 176 | 8 | 52 | 22 | 0.805369 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6d7dbdde7131e6c6c3340e2e9feb18ca3271d2e0 | 121 | py | Python | Section 3 - Strings/Str Ops - syntax2.py | gitjot/python-for-lccs | a8a4ae8847abbc33361f80183c06d57b20523382 | [
"CC0-1.0"
] | 10 | 2020-02-14T14:28:15.000Z | 2022-02-02T18:44:11.000Z | Section 3 - Strings/Str Ops - syntax2.py | gitjot/python-for-lccs | a8a4ae8847abbc33361f80183c06d57b20523382 | [
"CC0-1.0"
] | null | null | null | Section 3 - Strings/Str Ops - syntax2.py | gitjot/python-for-lccs | a8a4ae8847abbc33361f80183c06d57b20523382 | [
"CC0-1.0"
] | 8 | 2020-03-25T09:27:42.000Z | 2021-11-03T15:24:38.000Z | # A string index should always be within range
s = "Hello"
print(s[5]) # Syntax error - valid indices for s are 0-4
| 24.2 | 57 | 0.677686 | 22 | 121 | 3.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.231405 | 121 | 4 | 58 | 30.25 | 0.849462 | 0.719008 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.