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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7dcf7743fb2abb0dfed2b885daff98a80d02bc42 | 617 | py | Python | Part_3_advanced/m13_decorator/decorator_with_args/homework_1_solution/new_movies/permissions.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m13_decorator/decorator_with_args/homework_1_solution/new_movies/permissions.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | Part_3_advanced/m13_decorator/decorator_with_args/homework_1_solution/new_movies/permissions.py | Mikma03/InfoShareacademy_Python_Courses | 3df1008c8c92831bebf1625f960f25b39d6987e6 | [
"MIT"
] | null | null | null | from collections.abc import Callable
from typing import TypeVar, Any, cast
from new_movies.exceptions import ActionNotAllowed
from new_movies.user import Role, User
F = TypeVar("F", bound=Callable[..., Any])
def require_role(required_role: Role) -> Callable[[F], F]:
def permissions_check_decorator(func: F) -> F... | 32.473684 | 73 | 0.688817 | 80 | 617 | 5.1625 | 0.4125 | 0.072639 | 0.062954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209076 | 617 | 18 | 74 | 34.277778 | 0.846311 | 0 | 0 | 0 | 0 | 0 | 0.001623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0 | 0.769231 | 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 |
7dd0156c61c23001295ef663aaf313ff4a719b49 | 240 | py | Python | vehicle/utils.py | merlinran/acorn-precision-farming-rover | 228bbeb537550df79ae57985c427975ffa828bcd | [
"Apache-2.0"
] | 143 | 2021-02-23T16:17:32.000Z | 2022-03-30T09:42:27.000Z | vehicle/utils.py | Twisted-Fields/acorn-precision-farming-rover | 228bbeb537550df79ae57985c427975ffa828bcd | [
"Apache-2.0"
] | 19 | 2021-05-13T19:03:21.000Z | 2022-03-25T08:46:44.000Z | vehicle/utils.py | merlinran/acorn-precision-farming-rover | 228bbeb537550df79ae57985c427975ffa828bcd | [
"Apache-2.0"
] | 17 | 2021-02-23T22:02:24.000Z | 2022-03-20T15:12:20.000Z | def AppendFIFO(list, value, max_values):
list.append(value)
while len(list) > max_values:
list.pop(0)
return list
def clamp(v, low, high):
"""clamp v to the range of [low, high]"""
return max(low, min(v, high))
| 24 | 45 | 0.616667 | 38 | 240 | 3.842105 | 0.552632 | 0.123288 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.2375 | 240 | 9 | 46 | 26.666667 | 0.79235 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8157f6e083218397e7a152e8450e97d8d58e700f | 1,002 | py | Python | setup.py | AlexandreOkita/our-toolkit | a295428c8a230df79c19ff3b0c677602c1b03102 | [
"MIT"
] | 6 | 2021-03-17T01:48:31.000Z | 2021-03-18T17:11:51.000Z | setup.py | AlexandreOkita/our-toolkit | a295428c8a230df79c19ff3b0c677602c1b03102 | [
"MIT"
] | 3 | 2021-03-15T01:21:41.000Z | 2021-03-17T03:48:33.000Z | setup.py | AlexandreOkita/our-toolkit | a295428c8a230df79c19ff3b0c677602c1b03102 | [
"MIT"
] | 5 | 2021-03-15T00:59:10.000Z | 2021-10-04T21:17:31.000Z | VERSION = '0.16'
from distutils.core import setup
setup(
name = 'ourtoolkit',
packages = ['ourtoolkit'],
version = VERSION,
license='MIT',
description = 'A bundle with useless and funny modules',
author = 'AlexandreOkita',
author_email = 'xande.okita@gmail.com',
url = 'https://github.com/AlexandreOkita/... | 34.551724 | 91 | 0.650699 | 109 | 1,002 | 5.954128 | 0.614679 | 0.175655 | 0.231125 | 0.24037 | 0.117103 | 0.117103 | 0 | 0 | 0 | 0 | 0 | 0.018337 | 0.183633 | 1,002 | 28 | 92 | 35.785714 | 0.775061 | 0 | 0 | 0.071429 | 0 | 0 | 0.61976 | 0.020958 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
816615abc3ca232783c56104ca100c94f91460ff | 1,270 | py | Python | mat_vec_tools.py | likchuan/vtk_py | 3ab28fb951af107d1b162b4be6a80ea79dbb6dcc | [
"MIT"
] | null | null | null | mat_vec_tools.py | likchuan/vtk_py | 3ab28fb951af107d1b162b4be6a80ea79dbb6dcc | [
"MIT"
] | null | null | null | mat_vec_tools.py | likchuan/vtk_py | 3ab28fb951af107d1b162b4be6a80ea79dbb6dcc | [
"MIT"
] | null | null | null | ########################################################################
import numpy
########################################################################
def vec_col_to_mat_sym(vec):
if (numpy.size(vec,0) == 3):
return numpy.array([[vec[0], vec[2]],
[vec[2], vec[1]]])
... | 39.6875 | 89 | 0.426772 | 185 | 1,270 | 2.843243 | 0.162162 | 0.076046 | 0.18251 | 0.108365 | 0.61597 | 0.368821 | 0.325095 | 0.325095 | 0.222433 | 0.222433 | 0 | 0.068966 | 0.269291 | 1,270 | 31 | 90 | 40.967742 | 0.497845 | 0.182677 | 0 | 0.2 | 0 | 0 | 0.124717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8196a88ec9f33847cfcf15eeef7f599369583741 | 2,824 | py | Python | src/nextsong/config/__init__.py | aarongaut/nextsong | 05639d3aba2ef31721fd2533ca804a0d32e64ebf | [
"MIT"
] | null | null | null | src/nextsong/config/__init__.py | aarongaut/nextsong | 05639d3aba2ef31721fd2533ca804a0d32e64ebf | [
"MIT"
] | null | null | null | src/nextsong/config/__init__.py | aarongaut/nextsong | 05639d3aba2ef31721fd2533ca804a0d32e64ebf | [
"MIT"
] | null | null | null | """This module provides a global configuration to the package
Configuration is sourced from defaults, environment variables, and user
overrides using this module's Config class. A config value can be
queried from anywhere using this module's 'get' function.
Config values
-------------
media_root:
Used as the root... | 38.162162 | 71 | 0.782224 | 421 | 2,824 | 5.166271 | 0.377672 | 0.022989 | 0.02069 | 0.022069 | 0.124138 | 0.124138 | 0.052414 | 0.052414 | 0.052414 | 0.052414 | 0 | 0.001707 | 0.170326 | 2,824 | 73 | 72 | 38.684932 | 0.92659 | 0.988314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
81a3e3ddd0d9dfce983816a57a4df758bea2f6a3 | 28,520 | py | Python | wordstats/wordstats.py | XargsUK/FlameCogs | f4f3368a9816fa7a7af19ee59ea4c3307f72fa93 | [
"MIT"
] | 26 | 2019-02-11T09:00:01.000Z | 2022-03-03T07:33:08.000Z | wordstats/wordstats.py | XargsUK/FlameCogs | f4f3368a9816fa7a7af19ee59ea4c3307f72fa93 | [
"MIT"
] | 15 | 2019-04-19T14:19:52.000Z | 2022-03-15T17:20:38.000Z | wordstats/wordstats.py | XargsUK/FlameCogs | f4f3368a9816fa7a7af19ee59ea4c3307f72fa93 | [
"MIT"
] | 34 | 2018-12-05T22:37:44.000Z | 2022-01-16T05:02:20.000Z | import discord
from redbot.core import commands
from redbot.core import Config
from redbot.core import checks
from redbot.core.data_manager import cog_data_path
from typing import Optional, Union
import apsw
import asyncio
import concurrent.futures
import functools
import re
STOPWORDS = (
'a', 'able', 'about', 'acro... | 32.519954 | 136 | 0.650596 | 4,133 | 28,520 | 4.419066 | 0.105008 | 0.027157 | 0.040736 | 0.023653 | 0.747591 | 0.716765 | 0.700832 | 0.65484 | 0.63502 | 0.600252 | 0 | 0.007243 | 0.215778 | 28,520 | 876 | 137 | 32.557078 | 0.809353 | 0.01676 | 0 | 0.671053 | 0 | 0.002632 | 0.315514 | 0.011102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003947 | false | 0.001316 | 0.014474 | 0 | 0.063158 | 0.028947 | 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 |
81d08fca2f30e8b50b041d98baa618c08ab46b1f | 287 | py | Python | forms.py | rrmhearts/python-playground | 0dd938280bbfa3a21a876d34c66112593809af3d | [
"MIT"
] | null | null | null | forms.py | rrmhearts/python-playground | 0dd938280bbfa3a21a876d34c66112593809af3d | [
"MIT"
] | null | null | null | forms.py | rrmhearts/python-playground | 0dd938280bbfa3a21a876d34c66112593809af3d | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from flask_wtf.recaptcha import validators
from wtforms import TextAreaField, SubmitField
from wtforms.validators import DataRequired
class Todo(FlaskForm):
content = TextAreaField(validators=[DataRequired()])
submit = SubmitField('Submit todo')
| 31.888889 | 56 | 0.811847 | 32 | 287 | 7.21875 | 0.46875 | 0.077922 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 287 | 8 | 57 | 35.875 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.038328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
81d534201349da690ad18eb4d483636e525a01c3 | 129 | py | Python | todo/apps.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | todo/apps.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | todo/apps.py | ruslan-ok/ruslan | fc402e53d2683581e13f4d6c69a6f21e5c2ca1f8 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from todo.config import app_config
class TodoConfig(AppConfig):
name = app_config['name']
| 21.5 | 34 | 0.782946 | 18 | 129 | 5.5 | 0.611111 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139535 | 129 | 5 | 35 | 25.8 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
81e564720d4a7fd06475e836ed0502792d8bfcc9 | 58 | py | Python | correlation_package/correlation_package/__init__.py | adityakrishnavamsy/SelfDeblur | 29d02605d64faf8428f4c862d8e004a85c2cd719 | [
"MIT"
] | 104 | 2020-02-09T00:58:00.000Z | 2022-03-23T07:59:56.000Z | correlation_package/correlation_package/__init__.py | adityakrishnavamsy/SelfDeblur | 29d02605d64faf8428f4c862d8e004a85c2cd719 | [
"MIT"
] | 5 | 2021-04-16T13:31:20.000Z | 2022-02-28T01:26:25.000Z | correlation_package/correlation_package/__init__.py | adityakrishnavamsy/SelfDeblur | 29d02605d64faf8428f4c862d8e004a85c2cd719 | [
"MIT"
] | 18 | 2020-02-10T13:02:46.000Z | 2021-09-05T14:45:54.000Z | from .corr_cuda import Correlation
__version__ = '0.0.1'
| 14.5 | 34 | 0.758621 | 9 | 58 | 4.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.137931 | 58 | 3 | 35 | 19.333333 | 0.72 | 0 | 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 |
c493318980c6920d40d82d0c8e444ba371ddfb5d | 1,248 | py | Python | addons/delivery/__manifest__.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | addons/delivery/__manifest__.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | addons/delivery/__manifest__.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Delivery Costs',
'version': '1.0',
'category': 'Inventory/Delivery',
'description': """
Allows you to add delivery methods in sale orders and picking.
=========================================... | 33.72973 | 79 | 0.625801 | 144 | 1,248 | 5.236111 | 0.5625 | 0.095491 | 0.06366 | 0.05305 | 0.074271 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003996 | 0.197917 | 1,248 | 36 | 80 | 34.666667 | 0.749251 | 0.075321 | 0 | 0 | 0 | 0 | 0.736751 | 0.447437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c49a2d480d8524d3b49f2ac9e250d90d1d1068e5 | 6,098 | py | Python | mistune/renderers.py | maxking/mistune | a693788906f9d65b8db157635c039d59fb238d4d | [
"BSD-3-Clause"
] | null | null | null | mistune/renderers.py | maxking/mistune | a693788906f9d65b8db157635c039d59fb238d4d | [
"BSD-3-Clause"
] | null | null | null | mistune/renderers.py | maxking/mistune | a693788906f9d65b8db157635c039d59fb238d4d | [
"BSD-3-Clause"
] | null | null | null | from .scanner import escape, escape_html
class BaseRenderer(object):
NAME = 'base'
def __init__(self):
self._methods = {}
def register(self, name, method):
self._methods[name] = method
def _get_method(self, name):
try:
return object.__getattribute__(self, name)
... | 27.59276 | 74 | 0.528534 | 672 | 6,098 | 4.665179 | 0.174107 | 0.041467 | 0.035726 | 0.031898 | 0.210526 | 0.058054 | 0.058054 | 0.022329 | 0.022329 | 0 | 0 | 0.000488 | 0.327812 | 6,098 | 220 | 75 | 27.718182 | 0.764333 | 0 | 0 | 0.205882 | 0 | 0 | 0.112004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.252941 | false | 0 | 0.005882 | 0.147059 | 0.564706 | 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 |
c4ac488b9eaa19c93996d4178acf6dea6fb60148 | 6,029 | py | Python | tests/test_integration.py | aws-samples/amazon-qldb-dmv-sample-python | d8e2a87a783b6893ebe78e5e92f29018d4bf9c9b | [
"MIT-0"
] | 20 | 2019-10-29T22:42:48.000Z | 2022-02-21T04:17:59.000Z | tests/test_integration.py | aws-samples/amazon-qldb-dmv-sample-python | d8e2a87a783b6893ebe78e5e92f29018d4bf9c9b | [
"MIT-0"
] | 70 | 2020-04-15T17:27:59.000Z | 2022-03-28T03:06:17.000Z | tests/test_integration.py | aws-samples/amazon-qldb-dmv-sample-python | d8e2a87a783b6893ebe78e5e92f29018d4bf9c9b | [
"MIT-0"
] | 15 | 2019-12-02T18:53:27.000Z | 2021-09-06T05:07:15.000Z | # Copyright Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file acco... | 42.758865 | 118 | 0.799138 | 863 | 6,029 | 5.193511 | 0.174971 | 0.07809 | 0.069612 | 0.076305 | 0.293842 | 0.139224 | 0.058679 | 0.026104 | 0 | 0 | 0 | 0.003113 | 0.147454 | 6,029 | 140 | 119 | 43.064286 | 0.868872 | 0.096699 | 0 | 0.060606 | 0 | 0 | 0.006073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.313131 | 0 | 0.545455 | 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 |
c4b7e79b7118c9eb92dffb35dafcd374fb3be77d | 3,670 | py | Python | tests/objects/init_args_explicite_getstate.py | SmartAudioTools/serializejson | 226a299968df424df3e73712f59692e8e18d948a | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | tests/objects/init_args_explicite_getstate.py | SmartAudioTools/serializejson | 226a299968df424df3e73712f59692e8e18d948a | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | tests/objects/init_args_explicite_getstate.py | SmartAudioTools/serializejson | 226a299968df424df3e73712f59692e8e18d948a | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | from .log import log
try:
from SmartFramework.serialize.serializejson import getstate
except:
from serializejson import getstate
# with INIT -----------------
class C_SaveArgInit:
def __init__(self, par1="defaut1", par2="defaut2"):
log(" __init__(" + par1 + "," + par2 + ")")
self... | 32.477876 | 147 | 0.583106 | 376 | 3,670 | 5.119681 | 0.199468 | 0.078961 | 0.034286 | 0.046753 | 0.712208 | 0.645714 | 0.613506 | 0.613506 | 0.613506 | 0.613506 | 0 | 0.028023 | 0.290191 | 3,670 | 112 | 148 | 32.767857 | 0.710557 | 0.079837 | 0 | 0.776471 | 0 | 0 | 0.162563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023529 | 0.035294 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c4c0801661dd0a6b59a2e4ca708a70ede46088be | 99 | py | Python | execicios/desafio024.py | vinilinux/python-mundo01 | 48d7d2209e6c488baac5e666cae7cecfff2f3a72 | [
"MIT"
] | null | null | null | execicios/desafio024.py | vinilinux/python-mundo01 | 48d7d2209e6c488baac5e666cae7cecfff2f3a72 | [
"MIT"
] | null | null | null | execicios/desafio024.py | vinilinux/python-mundo01 | 48d7d2209e6c488baac5e666cae7cecfff2f3a72 | [
"MIT"
] | null | null | null | nome = str(input('Qual o nome da sua cidade? ')).lower().strip().split()
print('santo' in nome[0])
| 33 | 72 | 0.646465 | 17 | 99 | 3.764706 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.121212 | 99 | 2 | 73 | 49.5 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0.323232 | 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 |
c4c4294300ecc1b3683e35206bddf1dd58191445 | 217 | py | Python | src/pycropml/error.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 5 | 2020-06-21T18:58:04.000Z | 2022-01-29T21:32:28.000Z | src/pycropml/error.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 27 | 2018-12-04T15:35:44.000Z | 2022-03-11T08:25:03.000Z | src/pycropml/error.py | brichet/PyCrop2ML | 7177996f72a8d95fdbabb772a16f1fd87b1d033e | [
"MIT"
] | 7 | 2019-04-20T02:25:22.000Z | 2021-11-04T07:52:35.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 10 17:01:34 2019
@author: midingoy
"""
from __future__ import absolute_import
class Error(Exception):
def __init__(self, message):
self.message = message
| 15.5 | 38 | 0.668203 | 29 | 217 | 4.689655 | 0.862069 | 0.161765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075145 | 0.202765 | 217 | 13 | 39 | 16.692308 | 0.710983 | 0.354839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c4c71289de7dea6f46d67a4fcd88fc2ec928ccae | 117 | py | Python | djangocms_text_ckeditor/__init__.py | danielsamuels/djangocms-text-ckeditor | bba7d19ccc616b0ee741b1a366f644cb21e80439 | [
"BSD-3-Clause"
] | null | null | null | djangocms_text_ckeditor/__init__.py | danielsamuels/djangocms-text-ckeditor | bba7d19ccc616b0ee741b1a366f644cb21e80439 | [
"BSD-3-Clause"
] | null | null | null | djangocms_text_ckeditor/__init__.py | danielsamuels/djangocms-text-ckeditor | bba7d19ccc616b0ee741b1a366f644cb21e80439 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
__version__ = "3.5.3"
default_app_config = 'djangocms_text_ckeditor.apps.TextCkeditorConfig'
| 29.25 | 70 | 0.74359 | 15 | 117 | 5.266667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.094017 | 117 | 3 | 71 | 39 | 0.707547 | 0.179487 | 0 | 0 | 0 | 0 | 0.553191 | 0.5 | 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 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c4d6651a8af705b89ba4ef8e5ecd9dbcd46c03b4 | 149 | py | Python | read_file.py | aws-samples/integrate-aws-codecommit-with-amazon-codeguru | 4a13ac2bca53bf5c98364e681a2580d61c0d659b | [
"MIT-0"
] | null | null | null | read_file.py | aws-samples/integrate-aws-codecommit-with-amazon-codeguru | 4a13ac2bca53bf5c98364e681a2580d61c0d659b | [
"MIT-0"
] | null | null | null | read_file.py | aws-samples/integrate-aws-codecommit-with-amazon-codeguru | 4a13ac2bca53bf5c98364e681a2580d61c0d659b | [
"MIT-0"
] | null | null | null | def read_lines(file):
lines = []
f = open(file, ‘r’)
for line in f:
lines.append(line.strip(‘\n’).strip(‘\r\n’))
return lines | 24.833333 | 52 | 0.543624 | 23 | 149 | 3.478261 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261745 | 149 | 6 | 53 | 24.833333 | 0.727273 | 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 |
c4d827bfc32435b6896748ba40c3bf563f428715 | 507 | py | Python | sthima/todo/tests/test_views.py | bratomes/work-at-sthima | 28f3a60153001169f101cbe11f1755f3bfe103e3 | [
"MIT"
] | null | null | null | sthima/todo/tests/test_views.py | bratomes/work-at-sthima | 28f3a60153001169f101cbe11f1755f3bfe103e3 | [
"MIT"
] | null | null | null | sthima/todo/tests/test_views.py | bratomes/work-at-sthima | 28f3a60153001169f101cbe11f1755f3bfe103e3 | [
"MIT"
] | null | null | null | from django.test import Client, TestCase
from todo.views import TodoView
class TodoTest(TestCase):
"""
Test case of Todo list app view
"""
def setUp(self):
"""
Set up all the tests
"""
self.client = Client()
def test_todo_view(self):
"""
Test of to... | 22.043478 | 59 | 0.587771 | 60 | 507 | 4.916667 | 0.55 | 0.040678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008451 | 0.299803 | 507 | 22 | 60 | 23.045455 | 0.822535 | 0.147929 | 0 | 0 | 0 | 0 | 0.067568 | 0 | 0 | 0 | 0 | 0.090909 | 0.222222 | 1 | 0.222222 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c4f6b54ad494c6825914ec2b3fada578934b1cfa | 314 | py | Python | invenio_campusonline/config.py | utnapischtim/invenio-campusonline | 594432bbff0ad061b99a2c95ca62ba82a5d250ef | [
"MIT"
] | null | null | null | invenio_campusonline/config.py | utnapischtim/invenio-campusonline | 594432bbff0ad061b99a2c95ca62ba82a5d250ef | [
"MIT"
] | 2 | 2021-04-01T09:16:18.000Z | 2021-08-09T13:11:43.000Z | invenio_campusonline/config.py | utnapischtim/invenio-campusonline | 594432bbff0ad061b99a2c95ca62ba82a5d250ef | [
"MIT"
] | 2 | 2021-06-30T12:10:07.000Z | 2021-12-03T13:08:27.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 Graz University of Technology.
#
# invenio-campusonline is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""This module is used to import/export from/to the CampusOnline System."""
| 31.4 | 75 | 0.729299 | 48 | 314 | 4.770833 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019157 | 0.16879 | 314 | 9 | 76 | 34.888889 | 0.858238 | 0.933121 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f207b133540c20908f2805ae91df2f6b5daf80df | 2,071 | py | Python | spotify/v1/browse/categories/__init__.py | geekonedge/spotify | 1f4cf733a1fb11ab96259ed1e229b141e5c696f3 | [
"MIT"
] | 2 | 2018-10-10T08:00:47.000Z | 2021-10-12T04:15:33.000Z | spotify/v1/browse/categories/__init__.py | geekonedge/spotify | 1f4cf733a1fb11ab96259ed1e229b141e5c696f3 | [
"MIT"
] | 2 | 2018-08-31T21:59:47.000Z | 2018-08-31T22:27:57.000Z | spotify/v1/browse/categories/__init__.py | geekonedge/spotify | 1f4cf733a1fb11ab96259ed1e229b141e5c696f3 | [
"MIT"
] | 1 | 2018-08-31T21:18:58.000Z | 2018-08-31T21:18:58.000Z | from spotify import values
from spotify.object.image import Image
from spotify.page import Page
from spotify.resource import Instance, Resource
from spotify.v1.browse.categories.playlist import PlaylistList
class CategoryInstance(Instance):
def __init__(self, version, properties):
super(CategoryInstance,... | 26.21519 | 103 | 0.658619 | 227 | 2,071 | 5.867841 | 0.237885 | 0.082583 | 0.042042 | 0.040541 | 0.106607 | 0.067568 | 0.067568 | 0 | 0 | 0 | 0 | 0.000627 | 0.229841 | 2,071 | 78 | 104 | 26.551282 | 0.834483 | 0 | 0 | 0.163636 | 0 | 0 | 0.047803 | 0.01014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.236364 | false | 0 | 0.090909 | 0.127273 | 0.581818 | 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 |
1ef0ce7a25a2c102bbe087ca3b9148517c9e6c4c | 6,000 | py | Python | tests/setup_transaction_tests.py | DustinWehr/viper | d904b9de12282fe65a57cf005e17f8269e05e9bf | [
"MIT"
] | 1 | 2017-10-26T02:25:48.000Z | 2017-10-26T02:25:48.000Z | tests/setup_transaction_tests.py | DustinWehr/viper | d904b9de12282fe65a57cf005e17f8269e05e9bf | [
"MIT"
] | null | null | null | tests/setup_transaction_tests.py | DustinWehr/viper | d904b9de12282fe65a57cf005e17f8269e05e9bf | [
"MIT"
] | null | null | null | import pytest
from functools import wraps
from viper import parser, compile_lll, utils
from viper import compiler
from ethereum.tools import tester
from ethereum import transactions, messages
from ethereum import utils as ethereum_utils
import rlp
from ethereum.slogging import LogRecorder, configure_logging, set_level... | 44.117647 | 1,179 | 0.774833 | 595 | 6,000 | 7.588235 | 0.29916 | 0.019934 | 0.018605 | 0.01196 | 0.100997 | 0.077962 | 0.062458 | 0.062458 | 0.042082 | 0 | 0 | 0.305675 | 0.148333 | 6,000 | 135 | 1,180 | 44.444444 | 0.577887 | 0.042 | 0 | 0.019802 | 0 | 0.009901 | 0.25566 | 0.217694 | 0 | 1 | 0.198885 | 0 | 0.079208 | 1 | 0.118812 | false | 0 | 0.089109 | 0.009901 | 0.29703 | 0.009901 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1ef360da81e8253e4c1ba34e5b7e8c84483a8d94 | 80 | py | Python | mysite/admin.py | ajaycode/django1 | 5daffea8220acc36534fa90b12e290f43ee78a35 | [
"Apache-2.0"
] | null | null | null | mysite/admin.py | ajaycode/django1 | 5daffea8220acc36534fa90b12e290f43ee78a35 | [
"Apache-2.0"
] | null | null | null | mysite/admin.py | ajaycode/django1 | 5daffea8220acc36534fa90b12e290f43ee78a35 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Ajay'
from django.contrib import admin
#from .models import Post
| 16 | 32 | 0.775 | 11 | 80 | 5.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 80 | 4 | 33 | 20 | 0.852941 | 0.3 | 0 | 0 | 0 | 0 | 0.072727 | 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 |
1efb13f9ed985d3ea3d9fa1d4cce127e70fa1ec6 | 268 | py | Python | tests/urls.py | javierhuerta/unach-photo | 4911ee0ff5c4c794ac3182644f9ba8c519eac976 | [
"MIT"
] | null | null | null | tests/urls.py | javierhuerta/unach-photo | 4911ee0ff5c4c794ac3182644f9ba8c519eac976 | [
"MIT"
] | null | null | null | tests/urls.py | javierhuerta/unach-photo | 4911ee0ff5c4c794ac3182644f9ba8c519eac976 | [
"MIT"
] | null | null | null | # -*- coding: utf-8
from __future__ import unicode_literals, absolute_import
from django.conf.urls import url, include
from unach_photo.urls import urlpatterns as unach_photo_urls
urlpatterns = [
url(r'^', include(unach_photo_urls, namespace='unach_photo')),
]
| 24.363636 | 66 | 0.772388 | 37 | 268 | 5.27027 | 0.540541 | 0.205128 | 0.215385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.126866 | 268 | 10 | 67 | 26.8 | 0.82906 | 0.063433 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4801111c0b493ff84999af3e21d2a4c443454d6a | 266 | py | Python | Sprint1Lecture/Module1/demo2_MinutesToSeconds.py | marianvinas/CS_Notes | b43010dda5617336d7295d08f66fa24dbf786144 | [
"MIT"
] | null | null | null | Sprint1Lecture/Module1/demo2_MinutesToSeconds.py | marianvinas/CS_Notes | b43010dda5617336d7295d08f66fa24dbf786144 | [
"MIT"
] | null | null | null | Sprint1Lecture/Module1/demo2_MinutesToSeconds.py | marianvinas/CS_Notes | b43010dda5617336d7295d08f66fa24dbf786144 | [
"MIT"
] | null | null | null | """
Challenge #2
Write a function that takes an integer 'minutes' and converts it to seconds.
Examples:
- convert(5) -> 300
- convert(3) -> 180
- convert(2) -> 120
"""
def convert(minutes):
return minutes * 60
print(convert(5)) #300
print(convert(3)) #180
| 15.647059 | 76 | 0.661654 | 39 | 266 | 4.512821 | 0.666667 | 0.090909 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106481 | 0.18797 | 266 | 16 | 77 | 16.625 | 0.708333 | 0.62782 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.5 | 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 | 0 | 1 | 0 | 3 |
480d71b706e68c3c0ae3ab831105e8786e8168f0 | 88 | py | Python | my-files-ex1.py | cmcbean/pynet_test | b2b95dc63080238e4f205b04c841d02e92f99802 | [
"Apache-2.0"
] | null | null | null | my-files-ex1.py | cmcbean/pynet_test | b2b95dc63080238e4f205b04c841d02e92f99802 | [
"Apache-2.0"
] | null | null | null | my-files-ex1.py | cmcbean/pynet_test | b2b95dc63080238e4f205b04c841d02e92f99802 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
f = open("my_file.txt")
for line in f:
print line.strip()
| 9.777778 | 23 | 0.613636 | 16 | 88 | 3.3125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215909 | 88 | 8 | 24 | 11 | 0.768116 | 0.227273 | 0 | 0 | 0 | 0 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
48162dd11913934eb116380f146e730e2048f77a | 333 | py | Python | tests/test_table_is_key_by_columns.py | WinVector/data_algebra | 3d6002ddf8231d310e03537a0435df0554b62234 | [
"BSD-3-Clause"
] | 37 | 2019-08-28T08:16:48.000Z | 2022-03-14T21:18:39.000Z | tests/test_table_is_key_by_columns.py | WinVector/data_algebra | 3d6002ddf8231d310e03537a0435df0554b62234 | [
"BSD-3-Clause"
] | 1 | 2019-09-02T23:13:29.000Z | 2019-09-08T01:43:10.000Z | tests/test_table_is_key_by_columns.py | WinVector/data_algebra | 3d6002ddf8231d310e03537a0435df0554b62234 | [
"BSD-3-Clause"
] | 3 | 2019-08-28T12:23:11.000Z | 2020-02-08T19:22:31.000Z | import data_algebra
import data_algebra.util
def test_table_is_keyed_by_columns():
d = data_algebra.default_data_model.pd.DataFrame(
{"a": [1, 1, 2, 2], "b": [1, 2, 1, 2]}
)
assert data_algebra.util.table_is_keyed_by_columns(d, ["a", "b"])
assert not data_algebra.util.table_is_keyed_by_colum... | 25.615385 | 69 | 0.681682 | 56 | 333 | 3.696429 | 0.392857 | 0.2657 | 0.217391 | 0.202899 | 0.47343 | 0.47343 | 0.36715 | 0.36715 | 0.36715 | 0.36715 | 0 | 0.028881 | 0.168168 | 333 | 12 | 70 | 27.75 | 0.718412 | 0 | 0 | 0 | 0 | 0 | 0.015015 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
4816c9dbeea83f529c85136b311f8b2bc91c0a3a | 1,277 | py | Python | Arbie/prometheus.py | owodunni/Arbie | abc209a9f209bcd1f61e3b0209ec80b13f7b8f8b | [
"MIT"
] | 12 | 2021-03-17T10:21:49.000Z | 2022-03-06T04:26:39.000Z | Arbie/prometheus.py | owodunni/arbie | abc209a9f209bcd1f61e3b0209ec80b13f7b8f8b | [
"MIT"
] | 45 | 2020-07-22T19:33:04.000Z | 2022-03-04T11:35:41.000Z | Arbie/prometheus.py | owodunni/Arbie | abc209a9f209bcd1f61e3b0209ec80b13f7b8f8b | [
"MIT"
] | 3 | 2020-08-13T12:25:09.000Z | 2021-03-17T10:21:51.000Z | """Helper for using prometheus_client."""
import logging
from prometheus_client import Gauge, Summary, start_http_server
def singleton(class_):
instances = {}
def getinstance(*args, **kwargs): # noqa: WPS430
if class_ not in instances:
instances[class_] = class_(*args, **kwargs)
... | 26.604167 | 71 | 0.666406 | 153 | 1,277 | 5.267974 | 0.320261 | 0.08933 | 0.074442 | 0.093052 | 0.240695 | 0.181141 | 0.181141 | 0.136476 | 0.136476 | 0.136476 | 0 | 0.010225 | 0.234143 | 1,277 | 47 | 72 | 27.170213 | 0.813906 | 0.048551 | 0 | 0 | 0 | 0 | 0.001656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.064516 | 0.129032 | 0.612903 | 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 |
4816ff3cc497de9abf7ee2097415e79157304c16 | 860 | py | Python | setup.py | jacwah/graphbutler | d46cc7bd1663ec329001dfecea79037048c42e16 | [
"MIT"
] | null | null | null | setup.py | jacwah/graphbutler | d46cc7bd1663ec329001dfecea79037048c42e16 | [
"MIT"
] | null | null | null | setup.py | jacwah/graphbutler | d46cc7bd1663ec329001dfecea79037048c42e16 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="graphbutler",
version="0.2.0",
description="Generate simple, reproducible graphs.",
url="https://github.com/jacwah/graphbutler",
author="Jacob Wahlgren",
author_email="jacob.wahlgren@gmail.com",
license="MIT",
classifiers=[
"Development ... | 33.076923 | 58 | 0.626744 | 82 | 860 | 6.536585 | 0.670732 | 0.141791 | 0.186567 | 0.145522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01203 | 0.226744 | 860 | 25 | 59 | 34.4 | 0.793985 | 0 | 0 | 0 | 1 | 0 | 0.590698 | 0.07907 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
482b98e857ab4eec4c7a8b8d08409072c318ca34 | 126 | py | Python | b2/algebra/data_types.py | yifanwu/b2 | 3dc11605a365a28ed07c8a2b253ff87fa43e549d | [
"Apache-2.0"
] | 41 | 2020-07-16T21:33:11.000Z | 2021-12-12T13:21:34.000Z | b2/algebra/data_types.py | ucbrise/b2 | 69bb1b5a40e895e91829404e2f1c46d81ff54ae2 | [
"Apache-2.0"
] | 4 | 2020-08-18T22:05:21.000Z | 2021-04-27T07:59:40.000Z | b2/algebra/data_types.py | yifanwu/midas | 3dc11605a365a28ed07c8a2b253ff87fa43e549d | [
"Apache-2.0"
] | 4 | 2020-07-08T15:27:50.000Z | 2021-05-12T17:41:08.000Z | from typing import NewType, Dict, List, Any
DFId = NewType('DFId', str)
# Record = Dict[str, Any]
# Relation = List[Record]
| 18 | 43 | 0.68254 | 18 | 126 | 4.777778 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174603 | 126 | 6 | 44 | 21 | 0.826923 | 0.373016 | 0 | 0 | 0 | 0 | 0.052632 | 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 |
484b7e0547992365d9ff58ca9e6a980eb263686b | 39,368 | py | Python | net/data/crl_unittest/generate_crl_test_data.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | net/data/crl_unittest/generate_crl_test_data.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | net/data/crl_unittest/generate_crl_test_data.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | #!/usr/bin/env python
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This script is called without any arguments to re-generate all of the *.pem
files in the script's directory.
The https://github.com/... | 22.808806 | 108 | 0.612706 | 4,339 | 39,368 | 5.397557 | 0.091957 | 0.021862 | 0.017635 | 0.019812 | 0.735354 | 0.711358 | 0.690137 | 0.660632 | 0.640649 | 0.620325 | 0 | 0.038124 | 0.267756 | 39,368 | 1,725 | 109 | 22.822029 | 0.774309 | 0.033123 | 0 | 0.681063 | 0 | 0 | 0.705813 | 0.141126 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00598 | false | 0 | 0.003322 | 0.000664 | 0.013953 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
484fcb14c446656fd31a5beda3eae7a4af3809c5 | 599 | py | Python | Chapter 2 - Electronics Basics/supplement2.py | chendonghp/raspirobots | 505984ca2dd57ee02ca17a6b6fb30181aedbc309 | [
"MIT"
] | null | null | null | Chapter 2 - Electronics Basics/supplement2.py | chendonghp/raspirobots | 505984ca2dd57ee02ca17a6b6fb30181aedbc309 | [
"MIT"
] | null | null | null | Chapter 2 - Electronics Basics/supplement2.py | chendonghp/raspirobots | 505984ca2dd57ee02ca17a6b6fb30181aedbc309 | [
"MIT"
] | null | null | null | import gpiozero
import time
# p48 - chapter 2
# Challenge Yourself: Combine Your Button and LED Programs:
# A program that keeps the LED turned on until the button is pressed.
button= gpiozero.Button(17)
led= gpiozero.LED(4)
while True:
if button.is_pressed:
led.off()
while button.is_pressed:
... | 28.52381 | 198 | 0.477462 | 64 | 599 | 4.421875 | 0.578125 | 0.113074 | 0.212014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.465776 | 599 | 20 | 199 | 29.95 | 0.853125 | 0.237062 | 0 | 0 | 0 | 0 | 0.024283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.076923 | 0.153846 | null | null | 0.076923 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
48821736e6a96e9ccbe584ef9dc16114354271fb | 127 | py | Python | plugins/view/gan/digitsViewPluginGan/__init__.py | ojmakhura/DIGITS | f34e62c245054b51ea51fcb8949d2ca777f162d1 | [
"BSD-3-Clause"
] | null | null | null | plugins/view/gan/digitsViewPluginGan/__init__.py | ojmakhura/DIGITS | f34e62c245054b51ea51fcb8949d2ca777f162d1 | [
"BSD-3-Clause"
] | null | null | null | plugins/view/gan/digitsViewPluginGan/__init__.py | ojmakhura/DIGITS | f34e62c245054b51ea51fcb8949d2ca777f162d1 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
from .view import Visualization
__all__ = ['Visualization']
| 18.142857 | 63 | 0.748031 | 14 | 127 | 6.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0.15748 | 127 | 6 | 64 | 21.166667 | 0.813084 | 0.480315 | 0 | 0 | 0 | 0 | 0.203125 | 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 |
4885ca0710050832c8f9567a0f01d014de76dd37 | 105 | py | Python | src/layout/base_layout.py | Ymbirtt/lammieomatic | 1918fac400f360381191bc36ad29bfbb6cd84b55 | [
"MIT"
] | null | null | null | src/layout/base_layout.py | Ymbirtt/lammieomatic | 1918fac400f360381191bc36ad29bfbb6cd84b55 | [
"MIT"
] | null | null | null | src/layout/base_layout.py | Ymbirtt/lammieomatic | 1918fac400f360381191bc36ad29bfbb6cd84b55 | [
"MIT"
] | null | null | null | class BaseLayout(object):
@classmethod
def render(cls, items):
raise NotImplementedError
| 21 | 33 | 0.695238 | 10 | 105 | 7.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 105 | 4 | 34 | 26.25 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
4888943b5a543537ba3f5b8014b740e654cd3e1e | 271 | py | Python | theano/generated_version.py | trianglecity/theano-develop-jupyter-docker | 18525ceeb93940f647fd06df5bcba34a7178c967 | [
"BSD-3-Clause"
] | null | null | null | theano/generated_version.py | trianglecity/theano-develop-jupyter-docker | 18525ceeb93940f647fd06df5bcba34a7178c967 | [
"BSD-3-Clause"
] | null | null | null | theano/generated_version.py | trianglecity/theano-develop-jupyter-docker | 18525ceeb93940f647fd06df5bcba34a7178c967 | [
"BSD-3-Clause"
] | null | null | null |
# THIS FILE IS GENERATED FROM THEANO SETUP.PY
short_version = '0.9.0beta1'
version = '0.9.0beta1'
git_revision = 'RELEASE'
full_version = '0.9.0beta1.dev-%(git_revision)s' % {
'git_revision': git_revision}
release = False
if not release:
version = full_version
| 22.583333 | 52 | 0.715867 | 41 | 271 | 4.560976 | 0.536585 | 0.235294 | 0.144385 | 0.240642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.158672 | 271 | 11 | 53 | 24.636364 | 0.767544 | 0.158672 | 0 | 0 | 1 | 0 | 0.311111 | 0.137778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4888c86d6c51caddd6d2116f5d6b7122b4c0936e | 99 | py | Python | docker/nbgrader_config.py | cotcotquedec/pathofnoob | dc969d18258798d087e0e8be7f3aba279d068f4a | [
"Unlicense"
] | null | null | null | docker/nbgrader_config.py | cotcotquedec/pathofnoob | dc969d18258798d087e0e8be7f3aba279d068f4a | [
"Unlicense"
] | null | null | null | docker/nbgrader_config.py | cotcotquedec/pathofnoob | dc969d18258798d087e0e8be7f3aba279d068f4a | [
"Unlicense"
] | null | null | null | c = get_config()
c.Exchange.course_id = "cours_adminjh"
c.Exchange.root = '/srv/nbgrader/exchange'
| 24.75 | 42 | 0.747475 | 15 | 99 | 4.733333 | 0.733333 | 0.253521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 99 | 3 | 43 | 33 | 0.788889 | 0 | 0 | 0 | 0 | 0 | 0.353535 | 0.222222 | 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 |
6f7bcb95bf1440ecf789f4aed5e4aeafb2fb35c0 | 1,194 | py | Python | mysite/converters.py | amid-africa/placeholder | 0333e469a44eadeee2e90b68dd31e676072905cd | [
"MIT"
] | null | null | null | mysite/converters.py | amid-africa/placeholder | 0333e469a44eadeee2e90b68dd31e676072905cd | [
"MIT"
] | 5 | 2019-03-20T07:51:37.000Z | 2022-01-13T01:08:12.000Z | mysite/converters.py | amid-africa/placeholder | 0333e469a44eadeee2e90b68dd31e676072905cd | [
"MIT"
] | 1 | 2019-03-29T11:23:12.000Z | 2019-03-29T11:23:12.000Z | """
Custom path converters for urls
https://docs.djangoproject.com/en/dev/topics/http/urls/#registering-custom-path-converters
"""
# Match a hexcolor in the url.
# Must start with a # and contain 6 hexidecimal characters (0-9 and A-F),
# in either lower or upper case.
class HexColorConverter:
regex = '([A-Fa-f0-9... | 23.411765 | 101 | 0.599665 | 212 | 1,194 | 3.339623 | 0.358491 | 0.031073 | 0.169492 | 0.084746 | 0.392655 | 0.392655 | 0.392655 | 0.392655 | 0.392655 | 0.392655 | 0 | 0.07075 | 0.206868 | 1,194 | 50 | 102 | 23.88 | 0.676874 | 0.279732 | 0 | 0.666667 | 0 | 0.125 | 0.269504 | 0.245863 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 |
6f7e06cc40febf1240f98f0e2019a1bc822ae6ba | 173 | py | Python | python/ex/ex001.py | andreluizdsantos/Curso_ADS | bdff1f96cfc22f91423bc14f383f3e69b93deb6f | [
"MIT"
] | 1 | 2020-08-31T16:53:18.000Z | 2020-08-31T16:53:18.000Z | python/ex/ex001.py | andreluizdsantos/Curso_ADS | bdff1f96cfc22f91423bc14f383f3e69b93deb6f | [
"MIT"
] | null | null | null | python/ex/ex001.py | andreluizdsantos/Curso_ADS | bdff1f96cfc22f91423bc14f383f3e69b93deb6f | [
"MIT"
] | null | null | null | print('====== DESAFIO 01 ======')
nome = input('Qual é o seu nome? ')
print('Olá {}! Prazer em te conhecer!'.format(nome))
print(30*'=', '\n{:-^30}\n'.format(nome), 30*'=')
| 34.6 | 52 | 0.549133 | 26 | 173 | 3.653846 | 0.653846 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.121387 | 173 | 4 | 53 | 43.25 | 0.572368 | 0 | 0 | 0 | 0 | 0 | 0.49711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 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 |
6f9c3b62fe02084fbc33252175fb37b5a297274c | 52 | py | Python | backend/app/config/db.py | Asma-Alghamdi/CREstimator_website | 7c4dc07e9ed15cbfa4981ceba8e3115b2b9dabad | [
"MIT"
] | null | null | null | backend/app/config/db.py | Asma-Alghamdi/CREstimator_website | 7c4dc07e9ed15cbfa4981ceba8e3115b2b9dabad | [
"MIT"
] | null | null | null | backend/app/config/db.py | Asma-Alghamdi/CREstimator_website | 7c4dc07e9ed15cbfa4981ceba8e3115b2b9dabad | [
"MIT"
] | null | null | null | from pymongo import MongoClient
conn = MongoClient() | 26 | 31 | 0.826923 | 6 | 52 | 7.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 52 | 2 | 32 | 26 | 0.934783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
6fa495eb2ec3d8baa49b741b27322b5e63f54e8e | 374 | py | Python | Python/SimpleInterest.py | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 21 | 2021-10-02T14:14:33.000Z | 2022-01-12T16:27:49.000Z | Python/SimpleInterest.py | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 10 | 2021-10-02T15:52:56.000Z | 2021-10-31T14:13:23.000Z | Python/SimpleInterest.py | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 64 | 2021-10-02T09:20:19.000Z | 2021-10-31T20:21:01.000Z | princ_amount = float(input(" Please Enter the Principal Amount : "))
rate_of_int = float(input(" Please Enter the Rate Of Interest : "))
time_period = float(input(" Please Enter Time period in Years : "))
simple_interest = (princ_amount * rate_of_int * time_period) / 100
print("\nSimple Interest for Principal Amo... | 46.75 | 95 | 0.73262 | 53 | 374 | 4.962264 | 0.45283 | 0.125475 | 0.18251 | 0.239544 | 0.18251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015723 | 0.149733 | 374 | 7 | 96 | 53.428571 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.435829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 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 |
6fc9d1ab9b93169aef2db63f49a757e39b99f1eb | 280 | py | Python | protoc_docs/bin/py_desc_converter_pandoc.py | ikuleshov/protoc-docs-plugin | 3583878c36329933e0aed062e867195667f897b3 | [
"Apache-2.0"
] | 18 | 2017-06-30T13:59:15.000Z | 2021-12-24T13:40:50.000Z | protoc_docs/bin/py_desc_converter_pandoc.py | ikuleshov/protoc-docs-plugin | 3583878c36329933e0aed062e867195667f897b3 | [
"Apache-2.0"
] | 12 | 2018-07-07T03:20:13.000Z | 2021-03-31T21:14:19.000Z | protoc_docs/bin/py_desc_converter_pandoc.py | ikuleshov/protoc-docs-plugin | 3583878c36329933e0aed062e867195667f897b3 | [
"Apache-2.0"
] | 13 | 2018-05-09T17:42:27.000Z | 2021-10-07T20:55:49.000Z | import os
import sys
from protoc_docs.bin import py_desc_converter
if __name__ == '__main__':
os.environ['PYPANDOC_PANDOC'] = os.path.join(
os.path.abspath(__file__).rsplit("protoc_docs", 1)[0], "pandoc")
py_desc_converter.convert_desc(sys.argv[1], sys.argv[2])
| 28 | 72 | 0.717857 | 43 | 280 | 4.209302 | 0.604651 | 0.110497 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.135714 | 280 | 9 | 73 | 31.111111 | 0.731405 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 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 |
6fd9a20aa81e5b446254feb2d00774111fd23dd1 | 1,039 | py | Python | kevin/tests/leet/test_missing_number.py | kalyons11/kevin | 4e222fcd8ee7f2a275390f532c2fa5fef39060e8 | [
"MIT"
] | 1 | 2017-08-03T04:21:14.000Z | 2017-08-03T04:21:14.000Z | kevin/tests/leet/test_missing_number.py | kalyons11/kevin | 4e222fcd8ee7f2a275390f532c2fa5fef39060e8 | [
"MIT"
] | null | null | null | kevin/tests/leet/test_missing_number.py | kalyons11/kevin | 4e222fcd8ee7f2a275390f532c2fa5fef39060e8 | [
"MIT"
] | null | null | null | """
https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/588/week-1-march-1st-march-7th/3659/
"""
from typing import List
from unittest import TestCase
from kevin.leet.missing_number import Solution
class TestMissingNumber(TestCase):
def _base_test_missing_number(self, nums: List[int], ex... | 28.861111 | 112 | 0.670837 | 138 | 1,039 | 4.804348 | 0.369565 | 0.215686 | 0.230769 | 0.158371 | 0.346908 | 0.346908 | 0.346908 | 0.291101 | 0.291101 | 0.291101 | 0 | 0.040994 | 0.225217 | 1,039 | 35 | 113 | 29.685714 | 0.782609 | 0.107796 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6fdd9e79a4a275dc1b471c2a3af0c35744794d8c | 287 | py | Python | Python/django/1-exercises/ProTwo/AppTwo/views.py | Kenneth-Macharia/Learning | 0948dda73d94b25f96fad7e9ff3523782b0a407a | [
"MIT"
] | null | null | null | Python/django/1-exercises/ProTwo/AppTwo/views.py | Kenneth-Macharia/Learning | 0948dda73d94b25f96fad7e9ff3523782b0a407a | [
"MIT"
] | 3 | 2020-07-26T19:17:23.000Z | 2021-01-01T15:39:38.000Z | Python/django/1-exercises/ProTwo/AppTwo/views.py | Kenneth-Macharia/Learning | 0948dda73d94b25f96fad7e9ff3523782b0a407a | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('Welcome to AppTwo')
def test(request):
render_dict = {'insert_me':'Test Page'}
return render(request, 'AppTwo/test.html', context=render_dict) | 28.7 | 64 | 0.777003 | 40 | 287 | 5.5 | 0.625 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114983 | 287 | 10 | 64 | 28.7 | 0.866142 | 0.080139 | 0 | 0 | 0 | 0 | 0.193916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
6fde1c65fcc0e1298b4cb8ca24ba5733cc43c337 | 48 | py | Python | user_python_daemon/examples/__init__.py | icasdri/user-python-daemon | 38a5f3a2dcf5cfeb3dac1f55fee8b3ff9df81d00 | [
"MIT"
] | null | null | null | user_python_daemon/examples/__init__.py | icasdri/user-python-daemon | 38a5f3a2dcf5cfeb3dac1f55fee8b3ff9df81d00 | [
"MIT"
] | null | null | null | user_python_daemon/examples/__init__.py | icasdri/user-python-daemon | 38a5f3a2dcf5cfeb3dac1f55fee8b3ff9df81d00 | [
"MIT"
] | null | null | null | # Copyright 2014 icasdri
__author__ = 'icasdri'
| 16 | 24 | 0.770833 | 5 | 48 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.145833 | 48 | 2 | 25 | 24 | 0.707317 | 0.458333 | 0 | 0 | 0 | 0 | 0.291667 | 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 |
6fe0178b4d27358f84d409dd5c3b46e8ca75fba9 | 187 | py | Python | torchsparseattn/__init__.py | dhruvdcoder/sparse-structured-attention | 6b9d2703014d4ec17899ac0e153a57f5cc36b950 | [
"BSD-3-Clause"
] | null | null | null | torchsparseattn/__init__.py | dhruvdcoder/sparse-structured-attention | 6b9d2703014d4ec17899ac0e153a57f5cc36b950 | [
"BSD-3-Clause"
] | null | null | null | torchsparseattn/__init__.py | dhruvdcoder/sparse-structured-attention | 6b9d2703014d4ec17899ac0e153a57f5cc36b950 | [
"BSD-3-Clause"
] | null | null | null | from .fused import Fusedmax, FusedProxFunction
#from .oscar import Oscarmax, OscarProxFunction
from .sparsemax import Sparsemax, SparsemaxFunction
__version__ = __VERSION__ = '0.3.dev0'
| 31.166667 | 51 | 0.818182 | 20 | 187 | 7.25 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018072 | 0.112299 | 187 | 5 | 52 | 37.4 | 0.855422 | 0.245989 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6fef5c504a4663f79e2384b201d770312c48c225 | 1,734 | py | Python | sitemaps.py | Utlak88/Gamer-News-Depot | be449f56ff8ab16dccafbb341ec6d18ff92e7379 | [
"MIT"
] | null | null | null | sitemaps.py | Utlak88/Gamer-News-Depot | be449f56ff8ab16dccafbb341ec6d18ff92e7379 | [
"MIT"
] | null | null | null | sitemaps.py | Utlak88/Gamer-News-Depot | be449f56ff8ab16dccafbb341ec6d18ff92e7379 | [
"MIT"
] | null | null | null | from django.contrib import sitemaps
from django.urls import reverse
from homepage.models import Dev
class StaticViewSitemap(sitemaps.Sitemap):
# priority = 0.5
# changefreq = 'daily'
protocol = 'https'
def items(self):
return ['homepage:dev', 'homepage:about', 'homepage:popnews', 'homepage:de... | 44.461538 | 112 | 0.632641 | 199 | 1,734 | 5.437186 | 0.241206 | 0.018484 | 0.149723 | 0.069316 | 0.158965 | 0.057301 | 0 | 0 | 0 | 0 | 0 | 0.021771 | 0.205306 | 1,734 | 39 | 113 | 44.461538 | 0.763425 | 0.020185 | 0 | 0.142857 | 0 | 0 | 0.443135 | 0.100766 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.178571 | 0.107143 | 0.178571 | 0.678571 | 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 | 0 | 1 | 1 | 0 | 0 | 3 |
6ffd3e98ccd8be9a0aa20f7854a3ca5459eddadb | 916 | py | Python | ape_trezor/hdpath.py | unparalleled-js/ape-trezor | 61cf94e3d49089a3c9f753ce18bc9b7323e82e6a | [
"Apache-2.0"
] | 1 | 2022-01-05T22:31:24.000Z | 2022-01-05T22:31:24.000Z | ape_trezor/hdpath.py | unparalleled-js/ape-trezor | 61cf94e3d49089a3c9f753ce18bc9b7323e82e6a | [
"Apache-2.0"
] | 9 | 2021-08-06T00:11:28.000Z | 2022-03-02T14:48:21.000Z | ape_trezor/hdpath.py | unparalleled-js/ape-trezor | 61cf94e3d49089a3c9f753ce18bc9b7323e82e6a | [
"Apache-2.0"
] | 2 | 2021-09-09T13:14:11.000Z | 2021-12-17T18:28:07.000Z | class HDPath:
"""
A class representing an HD path. This class is the base class
for both account specific HD paths (:class:`~ape_trezor.hdpath.HDPath`)
as well as the derivation HD path class :class:`~ape_trezor.hdpath.HDBasePath`.
"""
def __init__(self, path: str):
path = path.rstrip("... | 28.625 | 83 | 0.628821 | 126 | 916 | 4.34127 | 0.404762 | 0.087751 | 0.076782 | 0.109689 | 0.095064 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008683 | 0.245633 | 916 | 31 | 84 | 29.548387 | 0.782923 | 0.334061 | 0 | 0 | 0 | 0 | 0.119929 | 0.042328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.133333 | 0.533333 | 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 |
b5030bce042b0c247ba74f45bfc8a237ef2dd9a8 | 286 | py | Python | PythonCurso01/aula71GeradoresIteradoresIteraveis/exemplo04.py | AlissonAnjos21/Aprendendo | 9454d9e53ef9fb8bc61bf481b6592164f5bf8695 | [
"MIT"
] | null | null | null | PythonCurso01/aula71GeradoresIteradoresIteraveis/exemplo04.py | AlissonAnjos21/Aprendendo | 9454d9e53ef9fb8bc61bf481b6592164f5bf8695 | [
"MIT"
] | null | null | null | PythonCurso01/aula71GeradoresIteradoresIteraveis/exemplo04.py | AlissonAnjos21/Aprendendo | 9454d9e53ef9fb8bc61bf481b6592164f5bf8695 | [
"MIT"
] | null | null | null | # Exemplos de aplicações de geradores
def numeros():
for v in range(100):
yield v
n = numeros()
# for v in n:
# print(v)
# Ao invés do for eu poderia usar a função next
print(next(n))
print(next(n))
print(next(n))
print(next(n))
print(next(n))
# Assim por diante...
| 15.052632 | 47 | 0.636364 | 50 | 286 | 3.64 | 0.52 | 0.164835 | 0.274725 | 0.32967 | 0.274725 | 0.274725 | 0.274725 | 0.274725 | 0.274725 | 0.274725 | 0 | 0.013514 | 0.223776 | 286 | 18 | 48 | 15.888889 | 0.806306 | 0.440559 | 0 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0.555556 | 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 | 0 | 1 | 0 | 3 |
82f74c0ced95a869161628738b6fa48d2fd8b3ab | 1,149 | py | Python | src/extract_browser_data/browsers/chromium_variants/edge.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | null | null | null | src/extract_browser_data/browsers/chromium_variants/edge.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | 7 | 2020-04-05T19:39:24.000Z | 2020-04-15T18:55:04.000Z | src/extract_browser_data/browsers/chromium_variants/edge.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | null | null | null | # (https://github.com/sandorex/extract-browser-data.py)
# extract-browser-data
#
# Copyright 2020 Aleksandar Radivojevic
#
# 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.apach... | 33.794118 | 74 | 0.749347 | 164 | 1,149 | 5.219512 | 0.640244 | 0.070093 | 0.042056 | 0.037383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010449 | 0.167102 | 1,149 | 33 | 75 | 34.818182 | 0.884013 | 0.651001 | 0 | 0.2 | 0 | 0 | 0.110818 | 0.087071 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d2062d3f31f2d93e30f7ff05e36e75adbbfa7d10 | 2,547 | py | Python | test/test_match_api.py | trc492/FrcDataAnalytics | 4af82445ad9e10c47318104006aa25937681c18b | [
"MIT"
] | null | null | null | test/test_match_api.py | trc492/FrcDataAnalytics | 4af82445ad9e10c47318104006aa25937681c18b | [
"MIT"
] | null | null | null | test/test_match_api.py | trc492/FrcDataAnalytics | 4af82445ad9e10c47318104006aa25937681c18b | [
"MIT"
] | null | null | null | # coding: utf-8
"""
The Blue Alliance API v3
# Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account... | 22.539823 | 381 | 0.650177 | 342 | 2,547 | 4.508772 | 0.30117 | 0.059014 | 0.092737 | 0.118029 | 0.581064 | 0.525292 | 0.428016 | 0.261997 | 0.068093 | 0 | 0 | 0.009704 | 0.271692 | 2,547 | 112 | 382 | 22.741071 | 0.821563 | 0.464075 | 0 | 0.368421 | 0 | 0 | 0.006324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.394737 | false | 0.368421 | 0.131579 | 0 | 0.552632 | 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 |
d20dc1a4c05f27f99e30ab0255dfcf37dfb9d939 | 153 | py | Python | backend/apps/sellArea/apps.py | jorgejimenez98/backend-evaluacion-desempenno | 08975303952608809375c5e2185bf20a84cc0f4e | [
"MIT"
] | null | null | null | backend/apps/sellArea/apps.py | jorgejimenez98/backend-evaluacion-desempenno | 08975303952608809375c5e2185bf20a84cc0f4e | [
"MIT"
] | null | null | null | backend/apps/sellArea/apps.py | jorgejimenez98/backend-evaluacion-desempenno | 08975303952608809375c5e2185bf20a84cc0f4e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SellareaConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'apps.sellArea'
| 21.857143 | 56 | 0.764706 | 18 | 153 | 6.388889 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143791 | 153 | 6 | 57 | 25.5 | 0.877863 | 0 | 0 | 0 | 0 | 0 | 0.27451 | 0.189542 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 |
d21f4768be21b3e81e8c70686417f37734bd42a8 | 2,804 | py | Python | annotator/settings.py | wroberts/annotator | 0a1ddaab417676f83723588613c1782fad938a8d | [
"BSD-3-Clause"
] | 1 | 2020-09-16T07:47:49.000Z | 2020-09-16T07:47:49.000Z | annotator/settings.py | wroberts/annotator | 0a1ddaab417676f83723588613c1782fad938a8d | [
"BSD-3-Clause"
] | 37 | 2017-10-14T17:30:04.000Z | 2021-01-03T17:44:37.000Z | annotator/settings.py | wroberts/annotator | 0a1ddaab417676f83723588613c1782fad938a8d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Application configuration."""
import os
class Config(object):
"""Base configuration."""
SECRET_KEY = os.environ.get('ANNOTATOR_SECRET', 'secret-key') # TODO: Change me
APP_DIR = os.path.abspath(os.path.dirname(__file__)) # This directory
PROJECT_ROOT = os.path.abspath(os.... | 36.415584 | 95 | 0.710414 | 338 | 2,804 | 5.594675 | 0.408284 | 0.038075 | 0.025383 | 0.038075 | 0.13009 | 0.079323 | 0.079323 | 0.039133 | 0 | 0 | 0 | 0.007033 | 0.188659 | 2,804 | 76 | 96 | 36.894737 | 0.824176 | 0.145863 | 0 | 0.142857 | 0 | 0 | 0.201442 | 0.121289 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0 | false | 0.125 | 0.017857 | 0 | 0.982143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d229bcb8026a7aaa776f5074b1cc9d802c05ba15 | 311 | py | Python | compressor/filters/closure.py | nasft/django-compressor | 90996155b346ded5d875b027e3f5c94a149d47f6 | [
"Apache-2.0"
] | 1,480 | 2015-01-01T17:48:14.000Z | 2022-03-31T14:58:45.000Z | compressor/filters/closure.py | nasft/django-compressor | 90996155b346ded5d875b027e3f5c94a149d47f6 | [
"Apache-2.0"
] | 571 | 2015-01-13T13:03:03.000Z | 2022-03-22T09:18:12.000Z | compressor/filters/closure.py | nasft/django-compressor | 90996155b346ded5d875b027e3f5c94a149d47f6 | [
"Apache-2.0"
] | 356 | 2015-01-06T12:00:26.000Z | 2022-03-02T17:28:25.000Z | from compressor.conf import settings
from compressor.filters import CompilerFilter
class ClosureCompilerFilter(CompilerFilter):
command = "{binary} {args}"
options = (
("binary", settings.COMPRESS_CLOSURE_COMPILER_BINARY),
("args", settings.COMPRESS_CLOSURE_COMPILER_ARGUMENTS),
)
| 28.272727 | 63 | 0.73955 | 29 | 311 | 7.724138 | 0.586207 | 0.125 | 0.205357 | 0.276786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167203 | 311 | 10 | 64 | 31.1 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.080386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.625 | 0 | 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 |
d22be90ff7b018ca4f7b2596168e2c7b0066e434 | 188 | py | Python | telegrambot/urls.py | StudentiUniMi/backend | 7915de730b273ef36f1adca10b1c3cacff820faa | [
"MIT"
] | 5 | 2021-08-09T20:37:28.000Z | 2022-03-08T12:25:49.000Z | telegrambot/urls.py | StudentiUniMi/backend | 7915de730b273ef36f1adca10b1c3cacff820faa | [
"MIT"
] | 4 | 2021-08-14T12:36:44.000Z | 2021-12-12T01:25:08.000Z | telegrambot/urls.py | StudentiUniMi/backend | 7915de730b273ef36f1adca10b1c3cacff820faa | [
"MIT"
] | 2 | 2021-08-09T19:57:16.000Z | 2021-08-11T20:19:30.000Z | from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from . import views
urlpatterns = [
path("", csrf_exempt(views.TelegramBotWebhookView.as_view()))
]
| 20.888889 | 65 | 0.771277 | 24 | 188 | 5.916667 | 0.541667 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 188 | 8 | 66 | 23.5 | 0.865854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
d22f302161fbfb025fe47385f4399e06ec22d076 | 410 | py | Python | 0x02-python-import_modules/1-calculation.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | 0x02-python-import_modules/1-calculation.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | 0x02-python-import_modules/1-calculation.py | oluwaseun-ebenezer/holbertonschool-higher_level_programming | e830f969d3ca71abf0a2f6d4f7c64a82337eccd7 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# 1-calculation.py
if __name__ == "__main__":
"""Print the sum, difference, multiple and quotient of 10 and 5."""
from calculator_1 import add, sub, mul, div
a = 10
b = 5
print("{} + {} = {}".format(a, b, add(a, b)))
print("{} - {} = {}".format(a, b, sub(a, b)))
print(... | 25.625 | 71 | 0.497561 | 60 | 410 | 3.25 | 0.483333 | 0.082051 | 0.246154 | 0.266667 | 0.230769 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0.028939 | 0.241463 | 410 | 15 | 72 | 27.333333 | 0.598071 | 0.082927 | 0 | 0 | 0 | 0 | 0.18241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.5 | 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 | 0 | 1 | 0 | 3 |
d2447abae61243eda3f117abece82d37c5cfbc54 | 1,573 | py | Python | windows/winproxy/apis/ole32.py | 1orenz0/PythonForWindows | f3de7b528b020b45ac6a871c975006fc1db1c3b0 | [
"BSD-3-Clause"
] | 1 | 2021-06-22T16:50:31.000Z | 2021-06-22T16:50:31.000Z | windows/winproxy/apis/ole32.py | 1orenz0/PythonForWindows | f3de7b528b020b45ac6a871c975006fc1db1c3b0 | [
"BSD-3-Clause"
] | null | null | null | windows/winproxy/apis/ole32.py | 1orenz0/PythonForWindows | f3de7b528b020b45ac6a871c975006fc1db1c3b0 | [
"BSD-3-Clause"
] | 1 | 2021-05-12T12:58:27.000Z | 2021-05-12T12:58:27.000Z | import ctypes
import windows.generated_def as gdef
from ..apiproxy import ApiProxy, NeededParameter
from ..error import no_error_check
# IMPORTANT:
# Functions that returns HRESULT (like CoInitializeEx) will raise if HRESULT is an error
# even if there is no error check on the return value
class Ole32Proxy(ApiProxy)... | 38.365854 | 155 | 0.811825 | 165 | 1,573 | 7.642424 | 0.442424 | 0.061856 | 0.028549 | 0.055512 | 0.22046 | 0.22046 | 0.142744 | 0.142744 | 0.142744 | 0 | 0 | 0.014245 | 0.107438 | 1,573 | 41 | 156 | 38.365854 | 0.883903 | 0.094723 | 0 | 0.24 | 1 | 0 | 0.003519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.16 | 0.24 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d2515d6de7175077d3a52d9b2f8bed012f439a3b | 6,500 | py | Python | powerdict/_nbdev.py | OSUKED/Power-Station-Dictionary | d5cbb06b275981a116115211e40667d9c0d936de | [
"MIT"
] | 6 | 2021-01-06T12:59:58.000Z | 2021-11-30T09:10:03.000Z | powerdict/_nbdev.py | OSUKED/Power-Station-Dictionary | d5cbb06b275981a116115211e40667d9c0d936de | [
"MIT"
] | 16 | 2020-12-18T14:57:08.000Z | 2021-12-06T13:54:34.000Z | powerdict/_nbdev.py | OSUKED/Power-Station-Dictionary | d5cbb06b275981a116115211e40667d9c0d936de | [
"MIT"
] | 2 | 2021-10-18T19:44:47.000Z | 2022-01-23T12:12:28.000Z | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"convert_file_to_json": "00-documentation.ipynb",
"encode_file_as_utf8": "00-documentation.ipynb",
"convert_nb_to_md": "00-documentation.ipynb",
"junix.exporter.convert_file_to_json... | 59.090909 | 91 | 0.694769 | 795 | 6,500 | 5.295597 | 0.216352 | 0.042755 | 0.114014 | 0.149644 | 0.523753 | 0.315914 | 0.175534 | 0.093349 | 0 | 0 | 0 | 0.034771 | 0.172615 | 6,500 | 109 | 92 | 59.633028 | 0.748048 | 0.005538 | 0 | 0 | 1 | 0 | 0.728258 | 0.504643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009804 | false | 0 | 0 | 0.009804 | 0.009804 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d28361c422f6df0a5a4aa37e16874fe41122f3c8 | 637 | py | Python | A ver ou confirmar(organizar dps)/Aula 09.py | VictoriaCardosoChavesLeite/Curso-de-Phyton | 975c03d886b00ec881de5c6b8df5ee5598dc55a6 | [
"MIT"
] | null | null | null | A ver ou confirmar(organizar dps)/Aula 09.py | VictoriaCardosoChavesLeite/Curso-de-Phyton | 975c03d886b00ec881de5c6b8df5ee5598dc55a6 | [
"MIT"
] | null | null | null | A ver ou confirmar(organizar dps)/Aula 09.py | VictoriaCardosoChavesLeite/Curso-de-Phyton | 975c03d886b00ec881de5c6b8df5ee5598dc55a6 | [
"MIT"
] | null | null | null | frase1='Curso em Vídeo Python'
frase2=' Aprenda Python '
print('Frase 1: Curso em Vídeo Python')
print(frase1[1:9])
print(frase1[1::2])
print('')
print(len(frase1))
print('')
print(frase1.count('o'))
print('')
print(frase1.find('deo'))
print('')
print('Curso' in frase1)
print('')
print(frase1.upper())
print('')
print... | 19.30303 | 39 | 0.6719 | 89 | 637 | 4.808989 | 0.303371 | 0.280374 | 0.261682 | 0.126168 | 0.158879 | 0.158879 | 0.158879 | 0.158879 | 0 | 0 | 0 | 0.041522 | 0.092622 | 637 | 32 | 40 | 19.90625 | 0.698962 | 0 | 0 | 0.4375 | 0 | 0 | 0.213501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.9375 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d285d81199ebeaa4be4b241d58989a005e4bbff7 | 145 | py | Python | config.py | nathanwiens/changessid | f743a4f4d3c6f4158493c0916ed898c42c2320c4 | [
"MIT"
] | null | null | null | config.py | nathanwiens/changessid | f743a4f4d3c6f4158493c0916ed898c42c2320c4 | [
"MIT"
] | null | null | null | config.py | nathanwiens/changessid | f743a4f4d3c6f4158493c0916ed898c42c2320c4 | [
"MIT"
] | null | null | null | apikey = 'GET_THIS_FROM_DASHBOARD_PROFILE'
organizationid = 'GET_THIS_FROM_POSTMAN'
newPSK = 'ENTERNEWPSKHERE'
ssidsToSearch = ['Guest', 'guest'] | 36.25 | 42 | 0.8 | 16 | 145 | 6.8125 | 0.75 | 0.12844 | 0.201835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082759 | 145 | 4 | 43 | 36.25 | 0.819549 | 0 | 0 | 0 | 0 | 0 | 0.527397 | 0.356164 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96508b83e39b9bfc86f344bd1aa585cef621d167 | 721 | py | Python | ledserial.py | allisonmarn/IRIS-2.0 | 981a3ec4c51f8bf815c508f3e8aa1f9b4b1bc9c8 | [
"MIT"
] | null | null | null | ledserial.py | allisonmarn/IRIS-2.0 | 981a3ec4c51f8bf815c508f3e8aa1f9b4b1bc9c8 | [
"MIT"
] | null | null | null | ledserial.py | allisonmarn/IRIS-2.0 | 981a3ec4c51f8bf815c508f3e8aa1f9b4b1bc9c8 | [
"MIT"
] | null | null | null | import serial
import atexit
import os
__SERIAL = serial.Serial()
def __destructor():
print('Closing LED Connection')
__close()
atexit.register(__destructor)
def __connect(portno):
__SERIAL.baudrate = 57600
__SERIAL.port = 'COM'+str(portno)
__SERIAL.open()
def __close():
__SERIAL.close()
de... | 14.42 | 43 | 0.715673 | 90 | 721 | 5.288889 | 0.455556 | 0.081933 | 0.067227 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008306 | 0.165049 | 721 | 49 | 44 | 14.714286 | 0.782392 | 0.083218 | 0 | 0 | 0 | 0 | 0.066768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.321429 | false | 0 | 0.107143 | 0.142857 | 0.571429 | 0.071429 | 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 |
96587cd499f4852a8fff99f95828b258d4098825 | 486 | py | Python | scripts/uncertainty_plot.py | Zeitsperre/flyingpigeon | 678370bf428af7ffe11ee79be3b8a89c73215e5e | [
"Apache-2.0"
] | 1 | 2016-12-04T18:01:49.000Z | 2016-12-04T18:01:49.000Z | scripts/uncertainty_plot.py | Zeitsperre/flyingpigeon | 678370bf428af7ffe11ee79be3b8a89c73215e5e | [
"Apache-2.0"
] | 13 | 2017-03-16T15:44:21.000Z | 2019-08-19T16:56:04.000Z | scripts/uncertainty_plot.py | Zeitsperre/flyingpigeon | 678370bf428af7ffe11ee79be3b8a89c73215e5e | [
"Apache-2.0"
] | null | null | null | from os import listdir
from os.path import join
from flyingpigeon import utils
from flyingpigeon import metadata as md
from pandas import DataFrame
from flyingpigeon import calculation as cal
p = '/home/nils/data/AFR-44/tas/'
ncs = [join(p, nc) for nc in listdir(p) if not 'tas_AFR-44_MOHC-HadGEM2-ES_historical_r1i1p1_... | 34.714286 | 122 | 0.779835 | 87 | 486 | 4.183908 | 0.54023 | 0.082418 | 0.181319 | 0.065934 | 0.093407 | 0.093407 | 0 | 0 | 0 | 0 | 0 | 0.030233 | 0.115226 | 486 | 13 | 123 | 37.384615 | 0.816279 | 0 | 0 | 0 | 0 | 0 | 0.1893 | 0.1893 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.545455 | 0 | 0.545455 | 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 |
9663de21e80855c5d7d8055aa6eea32bc773e4cc | 1,367 | py | Python | tests/unit/objects/test_timeactivity.py | varunbheemaiah/python-quickbooks | f5459a07619ae220e24099c6e0c8e8db890bb66b | [
"MIT"
] | 234 | 2015-08-25T02:41:33.000Z | 2020-03-30T15:30:23.000Z | tests/unit/objects/test_timeactivity.py | varunbheemaiah/python-quickbooks | f5459a07619ae220e24099c6e0c8e8db890bb66b | [
"MIT"
] | 170 | 2015-09-12T07:02:32.000Z | 2020-03-20T13:34:34.000Z | tests/unit/objects/test_timeactivity.py | varunbheemaiah/python-quickbooks | f5459a07619ae220e24099c6e0c8e8db890bb66b | [
"MIT"
] | 142 | 2015-08-26T07:08:56.000Z | 2020-03-20T11:59:52.000Z | import unittest
from quickbooks import QuickBooks
from quickbooks.objects.timeactivity import TimeActivity
class TimeActivityTests(unittest.TestCase):
def test_unicode(self):
time_activity = TimeActivity()
time_activity.NameOf = "test"
time_activity.TimeZone = "CST"
time_activity... | 35.051282 | 64 | 0.700073 | 145 | 1,367 | 6.4 | 0.282759 | 0.271552 | 0.193966 | 0.271552 | 0.196121 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013048 | 0.21507 | 1,367 | 38 | 65 | 35.973684 | 0.851817 | 0 | 0 | 0 | 0 | 0 | 0.021946 | 0 | 0 | 0 | 0 | 0 | 0.354839 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.193548 | 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 |
96a5dbf95eb28af500614da59c6854c542d2b217 | 102 | py | Python | monero/__init__.py | cryptochangements34/monero-python | 4316cfa296f13bdbe028f1912d7dfe6c2c34000e | [
"BSD-3-Clause"
] | null | null | null | monero/__init__.py | cryptochangements34/monero-python | 4316cfa296f13bdbe028f1912d7dfe6c2c34000e | [
"BSD-3-Clause"
] | null | null | null | monero/__init__.py | cryptochangements34/monero-python | 4316cfa296f13bdbe028f1912d7dfe6c2c34000e | [
"BSD-3-Clause"
] | null | null | null | from . import address, account, daemon, wallet, numbers, prio, wordlists, seed
__version__ = '0.1.3'
| 25.5 | 78 | 0.72549 | 14 | 102 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0.147059 | 102 | 3 | 79 | 34 | 0.770115 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 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 |
96b4227ed99f4981755a1fdc22ad5fdee315e137 | 151 | py | Python | python/src/illustration/main.py | vigenere23/finger-angles-predictions-EMG | b5aa3e5fb0159a18fa909bc4c51f6ee62ef3888d | [
"Apache-2.0"
] | null | null | null | python/src/illustration/main.py | vigenere23/finger-angles-predictions-EMG | b5aa3e5fb0159a18fa909bc4c51f6ee62ef3888d | [
"Apache-2.0"
] | 2 | 2021-12-18T18:09:15.000Z | 2021-12-18T18:09:15.000Z | python/src/illustration/main.py | vigenere23/finger-angles-predictions-EMG | b5aa3e5fb0159a18fa909bc4c51f6ee62ef3888d | [
"Apache-2.0"
] | null | null | null | from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plt.show() | 21.571429 | 42 | 0.768212 | 24 | 151 | 4.75 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.125828 | 151 | 7 | 43 | 21.571429 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
96bb76ba875c9ad0a80e2900948c5c957ece154e | 436 | py | Python | tools/leetcode.154.Find Minimum in Rotated Sorted Array II/leetcode.154.Find Minimum in Rotated Sorted Array II.submission9.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.154.Find Minimum in Rotated Sorted Array II/leetcode.154.Find Minimum in Rotated Sorted Array II.submission9.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.154.Find Minimum in Rotated Sorted Array II/leetcode.154.Find Minimum in Rotated Sorted Array II.submission9.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | class Solution:
# @param num, a list of integer
# @return an integer
def findMin(self, num):
l = 0
r = len(num)
while l < r:
if r-l < 3:
return min(num)
mid = (l+r) // 2
if num[l] < num[mid]:
l = mid +... | 436 | 436 | 0.337156 | 52 | 436 | 2.826923 | 0.5 | 0.081633 | 0.095238 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026042 | 0.559633 | 436 | 1 | 436 | 436 | 0.739583 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96bdf556ef047a12d047f2bb839cfe8020ccd163 | 289 | py | Python | wikiapp/models/principal.py | fraescaya10/WikiApp | a225fd094c2215785853dd2a2a6202c4901bdee7 | [
"MIT"
] | null | null | null | wikiapp/models/principal.py | fraescaya10/WikiApp | a225fd094c2215785853dd2a2a6202c4901bdee7 | [
"MIT"
] | null | null | null | wikiapp/models/principal.py | fraescaya10/WikiApp | a225fd094c2215785853dd2a2a6202c4901bdee7 | [
"MIT"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import (
scoped_session,
sessionmaker,
)
from zope.sqlalchemy import ZopeTransactionExtension
DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension()))
Base = declarative_base() | 26.272727 | 78 | 0.813149 | 28 | 289 | 8.25 | 0.5 | 0.121212 | 0.21645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121107 | 289 | 11 | 79 | 26.272727 | 0.909449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
736a56e445c6654e60f506a1126eef16175a8b56 | 82 | py | Python | src/python/codebay/l2tpserver/testclient/__init__.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | src/python/codebay/l2tpserver/testclient/__init__.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | src/python/codebay/l2tpserver/testclient/__init__.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | __all__ = ['constants', 'locks', 'systempoller', 'testclient', 'testconnection']
| 27.333333 | 80 | 0.695122 | 6 | 82 | 8.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 82 | 2 | 81 | 41 | 0.716216 | 0 | 0 | 0 | 0 | 0 | 0.617284 | 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 |
73a4ad032a62318f4614918f51860633b0659221 | 183 | py | Python | aldryn_faq/tests/urls.py | liip-forks/aldryn-faq | 1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7 | [
"BSD-3-Clause"
] | null | null | null | aldryn_faq/tests/urls.py | liip-forks/aldryn-faq | 1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7 | [
"BSD-3-Clause"
] | null | null | null | aldryn_faq/tests/urls.py | liip-forks/aldryn-faq | 1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7 | [
"BSD-3-Clause"
] | null | null | null |
from django.conf.urls import include, url
from djangocms_helper.urls import urlpatterns
urlpatterns += [
url(r'^faq/', include('aldryn_faq.urls', namespace='aldryn_faq')),
]
| 16.636364 | 70 | 0.726776 | 24 | 183 | 5.416667 | 0.583333 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136612 | 183 | 10 | 71 | 18.3 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
73a6d83bc52721d9ac7c7789c68be6c944120a7a | 274 | py | Python | api/main/urls.py | sankha555/vaccination-portal | 448227560762d98954257cf5067ffb049be481ad | [
"MIT"
] | null | null | null | api/main/urls.py | sankha555/vaccination-portal | 448227560762d98954257cf5067ffb049be481ad | [
"MIT"
] | null | null | null | api/main/urls.py | sankha555/vaccination-portal | 448227560762d98954257cf5067ffb049be481ad | [
"MIT"
] | null | null | null | from django.urls import path
from main.views import CitizenRegistrationView, VaccinationView
urlpatterns = [
path('citizen', CitizenRegistrationView.as_view(), name="citizen_registration"),
path('vaccination', VaccinationView.as_view(), name="vaccination"),
]
| 30.444444 | 84 | 0.762774 | 27 | 274 | 7.62963 | 0.592593 | 0.058252 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120438 | 274 | 8 | 85 | 34.25 | 0.854772 | 0 | 0 | 0 | 0 | 0 | 0.178832 | 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 |
73c77ddcb8e62998027780790c4dd61c8a1e7b20 | 15 | py | Python | tests/__init__.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 31,928 | 2017-07-04T03:06:28.000Z | 2022-03-31T22:33:27.000Z | tests/__init__.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 5,216 | 2017-07-04T11:45:41.000Z | 2022-03-31T22:02:14.000Z | tests/__init__.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 3,056 | 2017-06-05T13:29:11.000Z | 2022-03-31T20:54:43.000Z | name = "tests"
| 7.5 | 14 | 0.6 | 2 | 15 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 15 | 1 | 15 | 15 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
73e6f2e57adcc732081d55021783f3536f4d903e | 82 | py | Python | pysvelte/vis_paths.py | puffy310/PySvelte | c1282a3e02350cae983ea12aca0dbe3070376915 | [
"Apache-2.0"
] | 81 | 2021-12-22T16:53:35.000Z | 2022-03-29T16:59:53.000Z | pysvelte/vis_paths.py | puffy310/PySvelte | c1282a3e02350cae983ea12aca0dbe3070376915 | [
"Apache-2.0"
] | 1 | 2022-03-10T13:34:29.000Z | 2022-03-10T13:34:29.000Z | pysvelte/vis_paths.py | puffy310/PySvelte | c1282a3e02350cae983ea12aca0dbe3070376915 | [
"Apache-2.0"
] | 6 | 2021-12-27T14:26:31.000Z | 2022-02-10T16:19:19.000Z | from pathlib import Path
PYSVELTE_ROOT = Path(__file__).parent.parent.absolute()
| 20.5 | 55 | 0.804878 | 11 | 82 | 5.545455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 82 | 3 | 56 | 27.333333 | 0.824324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 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 |
73e9308606146bd8efae834d081346f9616c9218 | 130 | py | Python | with-attrs/conanfile.py | grisumbras/conan-promote | f1d746bbd134f64af0d9f6b4cf6d579c99980a1f | [
"BSL-1.0"
] | 1 | 2020-02-02T16:39:43.000Z | 2020-02-02T16:39:43.000Z | with-attrs/conanfile.py | grisumbras/conan-promote | f1d746bbd134f64af0d9f6b4cf6d579c99980a1f | [
"BSL-1.0"
] | null | null | null | with-attrs/conanfile.py | grisumbras/conan-promote | f1d746bbd134f64af0d9f6b4cf6d579c99980a1f | [
"BSL-1.0"
] | null | null | null | from conans import ConanFile
class MyConan(ConanFile):
name = "asdf"
default_user = "mike"
default_channel = "chan"
| 16.25 | 28 | 0.684615 | 15 | 130 | 5.8 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223077 | 130 | 7 | 29 | 18.571429 | 0.861386 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
73f072038f97e942e72826b40668b4283ebd45c1 | 288 | py | Python | Workshops/11.03.2018 - Python. The Basics - Volume 2 -/Python Codes/4. Tuples - Read-only Lists/2_tuple_operations.py | Act862/PyLam-Edu | c53114a56da8e5803495acc3c82da1b36ddd452b | [
"MIT"
] | null | null | null | Workshops/11.03.2018 - Python. The Basics - Volume 2 -/Python Codes/4. Tuples - Read-only Lists/2_tuple_operations.py | Act862/PyLam-Edu | c53114a56da8e5803495acc3c82da1b36ddd452b | [
"MIT"
] | 3 | 2018-11-30T08:30:49.000Z | 2018-11-30T08:38:02.000Z | Workshops/11.03.2018 - Python. The Basics - Volume 2 -/Python Codes/4. Tuples - Read-only Lists/2_tuple_operations.py | Act862/PyLam-Edu | c53114a56da8e5803495acc3c82da1b36ddd452b | [
"MIT"
] | 2 | 2018-07-01T14:11:47.000Z | 2018-11-04T01:06:55.000Z | my_tuple = (1, 2, 3)
str_tuple = ('hello!',)
print("Tuple Length:", len(my_tuple))
print("Concatenation with (3, 4):", my_tuple + (3, 4))
print("Multiplication:", str_tuple*2)
print("Search. Is 2 in my_tuple?", 2 in my_tuple)
print("Values in my_tuple:")
for x in my_tuple:
print(x) | 26.181818 | 54 | 0.663194 | 51 | 288 | 3.568627 | 0.392157 | 0.269231 | 0.197802 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04065 | 0.145833 | 288 | 11 | 55 | 26.181818 | 0.699187 | 0 | 0 | 0 | 0 | 0 | 0.359862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
73fa02c2b88a67ef5841984be7da32a18b5a4826 | 184 | py | Python | linchpin/tests/a.py | seandst/linchpin | 427b6fb61f550a4d1120ac94c55d121fbecd70a6 | [
"Apache-2.0"
] | null | null | null | linchpin/tests/a.py | seandst/linchpin | 427b6fb61f550a4d1120ac94c55d121fbecd70a6 | [
"Apache-2.0"
] | null | null | null | linchpin/tests/a.py | seandst/linchpin | 427b6fb61f550a4d1120ac94c55d121fbecd70a6 | [
"Apache-2.0"
] | null | null | null |
class A(object):
def __init__(self):
self.value = "Some Value"
def return_true(self):
return True
def raise_exc(self, val):
raise KeyError(val)
| 15.333333 | 33 | 0.586957 | 24 | 184 | 4.25 | 0.583333 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309783 | 184 | 11 | 34 | 16.727273 | 0.80315 | 0 | 0 | 0 | 0 | 0 | 0.054645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.142857 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
fb53610f5bd4639c33ab8059b4e37186f4a1ca51 | 10,547 | py | Python | distribution/src/jadn/convert/table_w.py | ScreamBun/jadn-pypkg | 83689300b3d76ab0155f5b07ece9e0b974c43dff | [
"Apache-2.0"
] | null | null | null | distribution/src/jadn/convert/table_w.py | ScreamBun/jadn-pypkg | 83689300b3d76ab0155f5b07ece9e0b974c43dff | [
"Apache-2.0"
] | 1 | 2020-07-20T16:45:35.000Z | 2020-07-21T14:15:00.000Z | distribution/src/jadn/convert/table_w.py | ScreamBun/jadn-pypkg | 83689300b3d76ab0155f5b07ece9e0b974c43dff | [
"Apache-2.0"
] | 2 | 2020-11-19T13:35:53.000Z | 2020-12-08T13:59:18.000Z | """
Translate JADN to HTML or Markdown property tables
"""
from datetime import datetime
from enum import Enum
from typing import Dict, List, NoReturn, Type, Union
from ..definitions import (
TypeName, BaseType, TypeOptions, TypeDesc, Fields, ItemID, ItemValue, ItemDesc, FieldID, INFO_ORDER, PRIMITIVE_TYPES,
is... | 33.166667 | 125 | 0.543946 | 1,291 | 10,547 | 4.304415 | 0.159566 | 0.035271 | 0.046788 | 0.04031 | 0.443045 | 0.435307 | 0.404895 | 0.381861 | 0.367464 | 0.348569 | 0 | 0.003301 | 0.281976 | 10,547 | 317 | 126 | 33.271293 | 0.73049 | 0.101261 | 0 | 0.428571 | 0 | 0.009217 | 0.125213 | 0.030106 | 0 | 0 | 0 | 0 | 0.036866 | 1 | 0.248848 | false | 0 | 0.02765 | 0.124424 | 0.529954 | 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 |
fb7447e4ec225ddb4d8826a4bc91405bfd959b23 | 201 | py | Python | ex114.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | ex114.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | ex114.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | import webbrowser
try:
webbrowser.open('https://www.palpitedigital.com/acessar-paginas-via-codigo-python/')
except (SyntaxError):
print('Site não encontrado')
else:
print('Site encontrado') | 28.714286 | 88 | 0.741294 | 24 | 201 | 6.208333 | 0.833333 | 0.120805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114428 | 201 | 7 | 89 | 28.714286 | 0.837079 | 0 | 0 | 0 | 0 | 0 | 0.490099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 |
fb966cebeda007b3d9af5dbf76ac5beb0b9a390c | 317 | py | Python | suppy/app/position.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | suppy/app/position.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | suppy/app/position.py | bmaris98/suppy | 8450c6d25ffa492cdedfbbb4c111d22e7f2788a7 | [
"BSD-3-Clause"
] | null | null | null | from typing import Tuple
class Position:
def __init__(self, x: int, y: int):
self._x = x
self._y = y
@property
def value(self) -> Tuple[int, int]:
return self._x, self._y
def add_vector(self, i: int, j: int) -> 'Position':
return Position(self._x + i, self._y + j) | 21.133333 | 55 | 0.570978 | 48 | 317 | 3.541667 | 0.395833 | 0.117647 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29653 | 317 | 15 | 56 | 21.133333 | 0.762332 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.7 | 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 |
fba4f78c89588b0c507b16a463ec1c6f7d12aaeb | 314 | py | Python | product/views.py | zhjfeng/test_manger | 7c9fd07b2c1f40aa371ff3a4fe0d13c842941aa1 | [
"Apache-2.0"
] | null | null | null | product/views.py | zhjfeng/test_manger | 7c9fd07b2c1f40aa371ff3a4fe0d13c842941aa1 | [
"Apache-2.0"
] | null | null | null | product/views.py | zhjfeng/test_manger | 7c9fd07b2c1f40aa371ff3a4fe0d13c842941aa1 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from product.models import Product
# Create your views here.
# 产品管理
def product_manage(request):
username = request.session.get('user','')
product_list = Product.objects.all()
return render(request,"product_manage.html", {"user": username,"products": product_list}) | 34.888889 | 93 | 0.748408 | 40 | 314 | 5.775 | 0.625 | 0.112554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127389 | 314 | 9 | 93 | 34.888889 | 0.843066 | 0.089172 | 0 | 0 | 0 | 0 | 0.123239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fba95187d7262b3a70b9c5f4f356a885d9870104 | 1,725 | py | Python | manga_py/providers/webtoons_com.py | terepanda/manga-dl | 2ac3a314c2f67ad22f6da7e293ec6b3a132d7834 | [
"MIT"
] | null | null | null | manga_py/providers/webtoons_com.py | terepanda/manga-dl | 2ac3a314c2f67ad22f6da7e293ec6b3a132d7834 | [
"MIT"
] | null | null | null | manga_py/providers/webtoons_com.py | terepanda/manga-dl | 2ac3a314c2f67ad22f6da7e293ec6b3a132d7834 | [
"MIT"
] | null | null | null | from manga_py.provider import Provider
from .helpers.std import Std
class WebToonsCom(Provider, Std):
__titleNo = 0
__mainUrl = ''
def get_archive_name(self) -> str:
i = self.re.search(r'\.com%s%s' % (
r'(?:/|%2F)[^/%]+' * 3,
r'(?:/|%2F)([^/%]+)',
), self.chapter)
... | 31.363636 | 91 | 0.578551 | 217 | 1,725 | 4.354839 | 0.359447 | 0.044444 | 0.034921 | 0.038095 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00541 | 0.249855 | 1,725 | 54 | 92 | 31.944444 | 0.724884 | 0.005217 | 0 | 0 | 0 | 0 | 0.130105 | 0.042007 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.225 | false | 0.025 | 0.05 | 0.075 | 0.55 | 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 |
fbac3477853dd629fab803f0b2c0b689298d6124 | 185 | py | Python | data_collection/gazette/spiders/sc_imbuia.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 3 | 2021-08-18T17:50:31.000Z | 2021-11-12T23:36:33.000Z | data_collection/gazette/spiders/sc_imbuia.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | 4 | 2021-02-10T02:36:48.000Z | 2022-03-02T14:55:34.000Z | data_collection/gazette/spiders/sc_imbuia.py | Jefersonalves/diario-oficial | 9a4bdfe2e31414c993d88831a67160c49a5ee657 | [
"MIT"
] | null | null | null | from gazette.spiders.base import FecamGazetteSpider
class ScImbuiaSpider(FecamGazetteSpider):
name = "sc_imbuia"
FECAM_QUERY = "cod_entidade:117"
TERRITORY_ID = "4207403"
| 23.125 | 51 | 0.762162 | 20 | 185 | 6.85 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064103 | 0.156757 | 185 | 7 | 52 | 26.428571 | 0.814103 | 0 | 0 | 0 | 0 | 0 | 0.172973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 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 |
fbc242c53e754d61dc8015043cfa652686fcae55 | 3,398 | py | Python | hubspot/cms/hubdb/models/__init__.py | cclauss/hubspot-api-python | 7c60c0f572b98c73e1f1816bf5981396a42735f6 | [
"Apache-2.0"
] | null | null | null | hubspot/cms/hubdb/models/__init__.py | cclauss/hubspot-api-python | 7c60c0f572b98c73e1f1816bf5981396a42735f6 | [
"Apache-2.0"
] | null | null | null | hubspot/cms/hubdb/models/__init__.py | cclauss/hubspot-api-python | 7c60c0f572b98c73e1f1816bf5981396a42735f6 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# flake8: noqa
"""
HubDB endpoints
HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can al... | 84.95 | 1,367 | 0.841672 | 518 | 3,398 | 5.374517 | 0.343629 | 0.086207 | 0.115661 | 0.156968 | 0.317888 | 0.22773 | 0.163434 | 0.125718 | 0.113147 | 0.073276 | 0 | 0.007871 | 0.102707 | 3,398 | 39 | 1,368 | 87.128205 | 0.905215 | 0.449382 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fbc46df1778cc259568a248b897a6c7b5f54530b | 862 | py | Python | main.py | hussam132/KivyMD-Neumorphism-SignIn-Screen-UI- | 9fa674e85f02bb5e530838fe01ab28e9e6c71141 | [
"MIT"
] | 6 | 2021-07-21T10:28:40.000Z | 2021-12-14T20:16:29.000Z | main.py | hussam132/KivyMD-Neumorphism-SignIn-Screen-UI | 9fa674e85f02bb5e530838fe01ab28e9e6c71141 | [
"MIT"
] | null | null | null | main.py | hussam132/KivyMD-Neumorphism-SignIn-Screen-UI | 9fa674e85f02bb5e530838fe01ab28e9e6c71141 | [
"MIT"
] | null | null | null | from kivy.core.window import Window
from kivy.lang import Builder
from kivy.uix.behaviors import ButtonBehavior
from kivy.uix.image import Image
from kivymd.app import MDApp
from kivymd.uix.behaviors import RectangularRippleBehavior, BackgroundColorBehavior, CircularRippleBehavior
from kivymd.uix.boxlayout import MDBox... | 27.806452 | 107 | 0.723898 | 90 | 862 | 6.844444 | 0.555556 | 0.051948 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002911 | 0.203016 | 862 | 30 | 108 | 28.733333 | 0.893741 | 0 | 0 | 0.1 | 0 | 0 | 0.051044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.35 | 0 | 0.55 | 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 |
fbd58b88f929b5539b274690e4daf7bf1abd2056 | 203 | py | Python | battler_v1.1.py | oyjuffer/Battler-V1.1 | 2c2576e018546acd67c0d4e9bbde546fb2b3c075 | [
"MIT"
] | null | null | null | battler_v1.1.py | oyjuffer/Battler-V1.1 | 2c2576e018546acd67c0d4e9bbde546fb2b3c075 | [
"MIT"
] | null | null | null | battler_v1.1.py | oyjuffer/Battler-V1.1 | 2c2576e018546acd67c0d4e9bbde546fb2b3c075 | [
"MIT"
] | null | null | null |
### BATTLER V1.1 ###
#IMPORT LIBRARIES
import sys
import pygame
# IMPORT GAME FILES
from data.main import main
if __name__ == "__main__":
main()
print("EXITING GAME")
pygame.quit()
sys.exit() | 11.277778 | 26 | 0.679803 | 28 | 203 | 4.642857 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.187192 | 203 | 18 | 27 | 11.277778 | 0.775758 | 0.236453 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 0.125 | 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 |
fbdcd477cc3d679357b46406de97d8aad3ee0ba8 | 147 | py | Python | sqladmin/__init__.py | chinedu117/sqladmin | 975e870cc741ea1f9a21246ad8f672f3a8980f9b | [
"BSD-3-Clause"
] | 1 | 2022-03-11T09:36:20.000Z | 2022-03-11T09:36:20.000Z | sqladmin/__init__.py | chinedu117/sqladmin | 975e870cc741ea1f9a21246ad8f672f3a8980f9b | [
"BSD-3-Clause"
] | null | null | null | sqladmin/__init__.py | chinedu117/sqladmin | 975e870cc741ea1f9a21246ad8f672f3a8980f9b | [
"BSD-3-Clause"
] | null | null | null | from sqladmin.application import Admin
from sqladmin.models import ModelAdmin
__version__ = "0.1.6"
__all__ = [
"Admin",
"ModelAdmin",
]
| 14.7 | 38 | 0.707483 | 17 | 147 | 5.647059 | 0.705882 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.183673 | 147 | 9 | 39 | 16.333333 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
83881ae382949379b548181246a3f6528eae256e | 227 | wsgi | Python | flaskapp.wsgi | robertavram/project5 | 12a2816b84be994b561f2f693cf34c0fa4f0ca19 | [
"Apache-2.0"
] | 7 | 2015-09-20T22:11:01.000Z | 2021-11-09T18:04:47.000Z | flaskapp.wsgi | robertavram/project5 | 12a2816b84be994b561f2f693cf34c0fa4f0ca19 | [
"Apache-2.0"
] | 9 | 2020-03-24T15:24:59.000Z | 2022-03-11T23:13:00.000Z | flaskapp.wsgi | robertavram/project5 | 12a2816b84be994b561f2f693cf34c0fa4f0ca19 | [
"Apache-2.0"
] | 2 | 2016-03-06T00:30:54.000Z | 2017-04-06T10:15:06.000Z | #!/usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/FlaskApp/FlaskApp/")
from application import app as application
application.secret_key = 'super secret mumbo jambo' | 28.375 | 51 | 0.801762 | 33 | 227 | 5.484848 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.0837 | 227 | 8 | 51 | 28.375 | 0.865385 | 0.070485 | 0 | 0 | 0 | 0 | 0.241706 | 0.127962 | 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 |
83d6c93f2305faf6e318e8e6e6756840ef2f136c | 30 | py | Python | src/kestrel_jupyter_kernel/config.py | IBM/kestrel-jupyter | f8e8efe186bf3fbb9ba7327c66a913fcf5c906e3 | [
"Apache-2.0"
] | 5 | 2021-07-19T07:19:18.000Z | 2022-02-20T18:13:32.000Z | src/kestrel_jupyter_kernel/config.py | IBM/kestrel-jupyter | f8e8efe186bf3fbb9ba7327c66a913fcf5c906e3 | [
"Apache-2.0"
] | 6 | 2021-06-09T19:19:25.000Z | 2022-02-05T02:51:21.000Z | src/kestrel_jupyter_kernel/config.py | IBM/kestrel-jupyter | f8e8efe186bf3fbb9ba7327c66a913fcf5c906e3 | [
"Apache-2.0"
] | 1 | 2021-10-05T03:51:30.000Z | 2021-10-05T03:51:30.000Z | LOG_FILE_NAME = "session.log"
| 15 | 29 | 0.766667 | 5 | 30 | 4.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.366667 | 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 |
83d7185ec950a5d42372d82a91e941498b9a4503 | 80,122 | py | Python | augly/video/functional.py | AghilesAzzoug/AugLy | 6b8eb0efbf18a74cf112b363187ab9057dc60cce | [
"MIT"
] | null | null | null | augly/video/functional.py | AghilesAzzoug/AugLy | 6b8eb0efbf18a74cf112b363187ab9057dc60cce | [
"MIT"
] | null | null | null | augly/video/functional.py | AghilesAzzoug/AugLy | 6b8eb0efbf18a74cf112b363187ab9057dc60cce | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import functools
import math
import os
import shutil
import tempfile
from typing import Any, Calla... | 36.30358 | 93 | 0.691408 | 11,588 | 80,122 | 4.630221 | 0.056524 | 0.046967 | 0.012264 | 0.020576 | 0.749995 | 0.724275 | 0.703103 | 0.690131 | 0.667114 | 0.622738 | 0 | 0.005141 | 0.240059 | 80,122 | 2,206 | 94 | 36.320036 | 0.876035 | 0.468348 | 0 | 0.522983 | 0 | 0 | 0.036536 | 0.003287 | 0 | 0 | 0 | 0 | 0.012257 | 1 | 0.044944 | false | 0 | 0.015322 | 0 | 0.107252 | 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 |
83dd266a01850a4f0f54057d97af9618d530e02a | 1,019 | py | Python | src/sima/hla/blueprints/hlapipeconfig3d.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/hla/blueprints/hlapipeconfig3d.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/hla/blueprints/hlapipeconfig3d.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | #
# Generated with HLAPipeConfig3DBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from .hlaobject import HLAObjectBlueprint
class HLAPipeConfig3DBlu... | 50.95 | 121 | 0.742885 | 100 | 1,019 | 7.44 | 0.38 | 0.112903 | 0.16129 | 0.155914 | 0.157258 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0.0033 | 0.107949 | 1,019 | 20 | 122 | 50.95 | 0.815182 | 0.038273 | 0 | 0 | 1 | 0 | 0.143151 | 0.025747 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.4 | 0 | 0.533333 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
83f0a2928e71913e8538f3fc72e4cc2f09258cf0 | 306 | py | Python | src/chapter4/exercise6.py | onesMas46/BCS-2021 | 69521deb4cc37ac0f87c4f8cb33339a060aa3b1c | [
"MIT"
] | null | null | null | src/chapter4/exercise6.py | onesMas46/BCS-2021 | 69521deb4cc37ac0f87c4f8cb33339a060aa3b1c | [
"MIT"
] | null | null | null | src/chapter4/exercise6.py | onesMas46/BCS-2021 | 69521deb4cc37ac0f87c4f8cb33339a060aa3b1c | [
"MIT"
] | null | null | null | hours = int(input('Enter hours: '))
rate = float(input('Enter rate: '))
def computepay(hours rate):
if hours > 40:
pay = ((40 * rate) + (((hours - 40) * rate) * 1.5))
print('pay: ', pay)
else:
pay = hours * rate
print('pay: ', pay)
computepay(hours,rate) | 30.6 | 59 | 0.509804 | 38 | 306 | 4.105263 | 0.394737 | 0.230769 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.30719 | 306 | 10 | 60 | 30.6 | 0.698113 | 0 | 0 | 0.2 | 0 | 0 | 0.114007 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
83f22b2b15fbea5c7750374d803da421638e3c60 | 395 | py | Python | main/model/__init__.py | wodore/wodore-gae | 444a028580eb840254fba9187152c95e435fd058 | [
"MIT"
] | 1 | 2015-05-05T07:21:37.000Z | 2015-05-05T07:21:37.000Z | main/model/__init__.py | wodore/wodore-gae | 444a028580eb840254fba9187152c95e435fd058 | [
"MIT"
] | null | null | null | main/model/__init__.py | wodore/wodore-gae | 444a028580eb840254fba9187152c95e435fd058 | [
"MIT"
] | null | null | null | # coding: utf-8
from .base import Base
from .config_auth import ConfigAuth
from .config import Config
from .user import User
from .route import Route, RouteRefStructure, RouteDrawingStructure
from .waypoint import WayPoint
from .tag import TagStructure, Tag, TagRelation, Taggable
from .icon import Iconize, Icon
from .... | 28.214286 | 66 | 0.81519 | 50 | 395 | 6.42 | 0.48 | 0.062305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002907 | 0.129114 | 395 | 13 | 67 | 30.384615 | 0.930233 | 0.063291 | 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 |
83f6aecadc1fd3372b86c84074f2555303f8756d | 140 | py | Python | enumerator/lib/config.py | stevecoward/enumerator-ng | 2937d174c3c66ae6670a2375a52925be21c88fbb | [
"MIT"
] | null | null | null | enumerator/lib/config.py | stevecoward/enumerator-ng | 2937d174c3c66ae6670a2375a52925be21c88fbb | [
"MIT"
] | null | null | null | enumerator/lib/config.py | stevecoward/enumerator-ng | 2937d174c3c66ae6670a2375a52925be21c88fbb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# mode - Degree of scanning done by service modules.
# Default is 'normal', 2nd option is 'stealth'.
mode = 'normal'
| 23.333333 | 52 | 0.7 | 21 | 140 | 4.666667 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.171429 | 140 | 5 | 53 | 28 | 0.836207 | 0.835714 | 0 | 0 | 0 | 0 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
83f9f463c77f1eee1a1aa4e8214b1f0d5d0984ce | 451 | py | Python | geneticpython/core/operators/replacement/replacement.py | ngocjr7/geneticpython | 4b4157523ce13b3da56cef61282cb0a984cd317b | [
"MIT"
] | null | null | null | geneticpython/core/operators/replacement/replacement.py | ngocjr7/geneticpython | 4b4157523ce13b3da56cef61282cb0a984cd317b | [
"MIT"
] | null | null | null | geneticpython/core/operators/replacement/replacement.py | ngocjr7/geneticpython | 4b4157523ce13b3da56cef61282cb0a984cd317b | [
"MIT"
] | null | null | null | """
# Filename: replacement.py
# Description:
# Created by ngocjr7 on [07-06-2020 00:52:40]
"""
from __future__ import absolute_import
from geneticpython.core.individual import Individual
from abc import ABC, abstractmethod
from typing import List
class Replacement:
def __init__(self):
pass
@abs... | 22.55 | 84 | 0.731707 | 54 | 451 | 5.925926 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040872 | 0.186253 | 451 | 19 | 85 | 23.736842 | 0.831063 | 0.192905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.4 | 0 | 0.7 | 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 |
83fc157bca2d40bfa0622487dad7bbd75513e9e9 | 143 | py | Python | question_answering/urls.py | uliang/NaturalLanguageQueryingSystem | d18b4ae429362ba311d6f26debbcfe391b810458 | [
"MIT"
] | null | null | null | question_answering/urls.py | uliang/NaturalLanguageQueryingSystem | d18b4ae429362ba311d6f26debbcfe391b810458 | [
"MIT"
] | null | null | null | question_answering/urls.py | uliang/NaturalLanguageQueryingSystem | d18b4ae429362ba311d6f26debbcfe391b810458 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = 'question_answering'
urlpatterns = [
path("", views.index, name='index')
] | 17.875 | 39 | 0.692308 | 18 | 143 | 5.388889 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 143 | 8 | 40 | 17.875 | 0.82906 | 0 | 0 | 0 | 0 | 0 | 0.159722 | 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 |
83fd9a791863dff555025a144d1da3763a5ad488 | 284 | py | Python | locfilm/locations/serializers/images.py | locfilm/locfilm-api | 85942f83f790e96dda043437ab227d38939f1f69 | [
"MIT"
] | null | null | null | locfilm/locations/serializers/images.py | locfilm/locfilm-api | 85942f83f790e96dda043437ab227d38939f1f69 | [
"MIT"
] | 6 | 2020-09-27T21:44:11.000Z | 2021-06-10T20:12:26.000Z | locfilm/locations/serializers/images.py | locfilm/locfilm-api | 85942f83f790e96dda043437ab227d38939f1f69 | [
"MIT"
] | 2 | 2020-09-22T02:06:03.000Z | 2020-09-22T02:12:51.000Z | """ Images serializer """
# DRF
from rest_framework import serializers
# Model
from locfilm.locations.models import Image
class ImageModelSerializer(serializers.ModelSerializer):
""" Image model serializer. """
class Meta:
model = Image
fields = '__all__'
| 18.933333 | 56 | 0.700704 | 28 | 284 | 6.928571 | 0.678571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207746 | 284 | 14 | 57 | 20.285714 | 0.862222 | 0.190141 | 0 | 0 | 0 | 0 | 0.032407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f7a2ce6611b56255f25dcdb99d3d20a817fb8353 | 289 | py | Python | library/lib.py | itachi176/MutilModelAI | e6df0daa495917b37365d779bb8aed291e911474 | [
"MIT"
] | null | null | null | library/lib.py | itachi176/MutilModelAI | e6df0daa495917b37365d779bb8aed291e911474 | [
"MIT"
] | null | null | null | library/lib.py | itachi176/MutilModelAI | e6df0daa495917b37365d779bb8aed291e911474 | [
"MIT"
] | null | null | null | import cv2
import pickle
from preprocess import *
import numpy as np
import cv2
import tensorflow as tf
import tflearn
from tflearn.layers.conv import conv_2d, max_pool_2d
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.estimator import regression | 28.9 | 68 | 0.844291 | 45 | 289 | 5.311111 | 0.533333 | 0.138075 | 0.213389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.121107 | 289 | 10 | 69 | 28.9 | 0.925197 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f7ab4d671eae9a4902c12d6bf68fc10ab32f80ec | 308 | py | Python | recipes/python/flask/{{cookiecutter.app_name}}/autoapp.py | roscopecoltran/sniperkit-cookiecutter | 50b7ecd87d4127875764c2b7d4668ede2ed4b299 | [
"BSD-3-Clause"
] | null | null | null | recipes/python/flask/{{cookiecutter.app_name}}/autoapp.py | roscopecoltran/sniperkit-cookiecutter | 50b7ecd87d4127875764c2b7d4668ede2ed4b299 | [
"BSD-3-Clause"
] | null | null | null | recipes/python/flask/{{cookiecutter.app_name}}/autoapp.py | roscopecoltran/sniperkit-cookiecutter | 50b7ecd87d4127875764c2b7d4668ede2ed4b299 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Create an application instance."""
from flask.helpers import get_debug_flag
from {{cookiecutter.app_name}}.app import create_app
from {{cookiecutter.app_name}}.settings import DevConfig, ProdConfig
CONFIG = DevConfig if get_debug_flag() else ProdConfig
app = create_app(CONFIG)
| 28 | 68 | 0.769481 | 42 | 308 | 5.452381 | 0.547619 | 0.069869 | 0.104803 | 0.200873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003663 | 0.113636 | 308 | 10 | 69 | 30.8 | 0.835165 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.6 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f7af4df048e937fa05e0144409618595b8970696 | 55 | py | Python | pyftools/__init__.py | hzcx998/pyftools | c5b118c7cd91fd32d84cccc97d0b58baf6b68b25 | [
"MIT"
] | null | null | null | pyftools/__init__.py | hzcx998/pyftools | c5b118c7cd91fd32d84cccc97d0b58baf6b68b25 | [
"MIT"
] | null | null | null | pyftools/__init__.py | hzcx998/pyftools | c5b118c7cd91fd32d84cccc97d0b58baf6b68b25 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
x tools for easy work
"""
| 9.166667 | 23 | 0.490909 | 8 | 55 | 3.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.236364 | 55 | 5 | 24 | 11 | 0.619048 | 0.8 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f7cc99f33294360d14b30b738074152e090b31bf | 1,124 | py | Python | server/app/migrations/0002_auto_20210802_1244.py | lmarschall/air_quality_monitoring | 2b96737fef8560d7858d4e5369783f75b631dbb2 | [
"MIT"
] | 1 | 2022-03-26T04:07:38.000Z | 2022-03-26T04:07:38.000Z | server/app/migrations/0002_auto_20210802_1244.py | lmarschall/canairi | 2b96737fef8560d7858d4e5369783f75b631dbb2 | [
"MIT"
] | null | null | null | server/app/migrations/0002_auto_20210802_1244.py | lmarschall/canairi | 2b96737fef8560d7858d4e5369783f75b631dbb2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-08-02 12:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='measurement',
name='value',
),
... | 26.139535 | 51 | 0.540925 | 101 | 1,124 | 5.930693 | 0.415842 | 0.09015 | 0.200334 | 0.240401 | 0.565943 | 0.565943 | 0.445743 | 0.445743 | 0.445743 | 0.360601 | 0 | 0.039136 | 0.340747 | 1,124 | 42 | 52 | 26.761905 | 0.769231 | 0.040036 | 0 | 0.583333 | 1 | 0 | 0.128134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027778 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f7efe15cb822768c6b1bf22351a4e4bc37fcd029 | 941 | py | Python | dwf-bot/tests/test_DWFGithub.py | joshbressers/dwf-request | dd31da6c47c2e606086147031de28ddd42a6109c | [
"Apache-2.0"
] | 13 | 2021-02-23T20:56:07.000Z | 2021-11-14T17:08:15.000Z | dwf-bot/tests/test_DWFGithub.py | joshbressers/dwf-request | dd31da6c47c2e606086147031de28ddd42a6109c | [
"Apache-2.0"
] | 20 | 2021-02-24T21:37:35.000Z | 2021-07-07T22:13:06.000Z | dwf-bot/tests/test_DWFGithub.py | joshbressers/dwf-request | dd31da6c47c2e606086147031de28ddd42a6109c | [
"Apache-2.0"
] | 8 | 2021-02-23T22:37:57.000Z | 2021-12-07T23:24:18.000Z | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import unittest
from unittest.mock import Mock, patch
import DWF
class FakeResponse:
def __init__(self):
pass
def raise_for_status(self):
pass
def json(self):
return []
# This method will be used by t... | 21.883721 | 82 | 0.742827 | 136 | 941 | 4.955882 | 0.448529 | 0.097923 | 0.048961 | 0.074184 | 0.373887 | 0.373887 | 0.305638 | 0.305638 | 0.305638 | 0.172107 | 0 | 0.003672 | 0.131775 | 941 | 42 | 83 | 22.404762 | 0.821297 | 0.07864 | 0 | 0.285714 | 0 | 0 | 0.104167 | 0.060185 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.285714 | false | 0.142857 | 0.178571 | 0.071429 | 0.607143 | 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 |
f7f683deb119d3b142f6459541138afa3fa02625 | 275 | py | Python | input_output.py | aaskov/convnet-est-loss | 4fdb13dbd858700f3eaa92e6f7309787984beb8d | [
"MIT"
] | null | null | null | input_output.py | aaskov/convnet-est-loss | 4fdb13dbd858700f3eaa92e6f7309787984beb8d | [
"MIT"
] | null | null | null | input_output.py | aaskov/convnet-est-loss | 4fdb13dbd858700f3eaa92e6f7309787984beb8d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
convnet-est-loss
"""
import pickle
def save_obj(obj, name):
with open(name + '.pkl', 'wb') as f:
pickle.dump(obj, f, pickle.HIGHEST_PROTOCOL)
def load_obj(name):
with open(name + '.pkl', 'rb') as f:
return pickle.load(f)
| 19.642857 | 52 | 0.589091 | 42 | 275 | 3.785714 | 0.571429 | 0.08805 | 0.138365 | 0.188679 | 0.27673 | 0.27673 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.218182 | 275 | 13 | 53 | 21.153846 | 0.734884 | 0.141818 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.571429 | 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 |
f7f7e7744d659793ffbf22a7957247b46d82e28d | 23 | py | Python | user_interface/__init__.py | pablomodernell/lorawan_conformance_testing | 3e6b9028ee7a6a614e52bac684e396ecd04fd10c | [
"MIT"
] | 1 | 2020-09-10T14:12:07.000Z | 2020-09-10T14:12:07.000Z | user_interface/__init__.py | pablomodernell/lorawan_conformance_testing | 3e6b9028ee7a6a614e52bac684e396ecd04fd10c | [
"MIT"
] | null | null | null | user_interface/__init__.py | pablomodernell/lorawan_conformance_testing | 3e6b9028ee7a6a614e52bac684e396ecd04fd10c | [
"MIT"
] | null | null | null | API_VERSION = "1.0.15"
| 11.5 | 22 | 0.652174 | 5 | 23 | 2.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.