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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3edaa008a2ee781cad3cfd27460bbf4776c643ad | 209 | py | Python | djmail/apps.py | CuriousLearner/djmail | da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4 | [
"BSD-3-Clause"
] | 53 | 2015-06-22T11:24:00.000Z | 2021-08-30T21:00:08.000Z | djmail/apps.py | CuriousLearner/djmail | da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4 | [
"BSD-3-Clause"
] | 28 | 2015-11-04T16:11:00.000Z | 2021-02-24T17:48:14.000Z | djmail/apps.py | CuriousLearner/djmail | da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4 | [
"BSD-3-Clause"
] | 22 | 2015-07-29T15:53:53.000Z | 2020-12-21T04:32:26.000Z | from django.apps import AppConfig
class DjMailConfig(AppConfig):
name = 'djmail'
verbose_name = "DjMail"
def ready(self):
from . import signals
super(DjMailConfig, self).ready()
| 19 | 41 | 0.660287 | 23 | 209 | 5.956522 | 0.652174 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244019 | 209 | 10 | 42 | 20.9 | 0.867089 | 0 | 0 | 0 | 0 | 0 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.857143 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
3ee3d2c54d6989f6ad2059cbf79a527aa7c5bc22 | 451 | py | Python | main.py | CSULB-RMC/testing-repo | f0f82f43dadd91c2e6b968cb6ed13b50df4505c2 | [
"Unlicense"
] | null | null | null | main.py | CSULB-RMC/testing-repo | f0f82f43dadd91c2e6b968cb6ed13b50df4505c2 | [
"Unlicense"
] | null | null | null | main.py | CSULB-RMC/testing-repo | f0f82f43dadd91c2e6b968cb6ed13b50df4505c2 | [
"Unlicense"
] | null | null | null | # Name: HELLO WORLD
# Author: Fenteale
#
# Notes:
# This is just a tiny program meant to showcase what
# a repository will look like when downloaded through
# github.
print("Hello World!")
print("This is just meant to be a tiny program to show off what a repo looks like.")
inp = input("Type something here: ")
print... | 23.736842 | 84 | 0.716186 | 75 | 451 | 4.306667 | 0.64 | 0.074303 | 0.06192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186253 | 451 | 18 | 85 | 25.055556 | 0.880109 | 0.339246 | 0 | 0 | 0 | 0 | 0.713793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.833333 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
3eec12f5620398b980058505bc6d6b26e01d13f2 | 11,029 | py | Python | business_card/mainpage.py | AshxStudio/PyLearning | 4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e | [
"MIT"
] | null | null | null | business_card/mainpage.py | AshxStudio/PyLearning | 4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e | [
"MIT"
] | null | null | null | business_card/mainpage.py | AshxStudio/PyLearning | 4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainpage.ui'
#
# Created by: PyQt5 UI code generator 5.8.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import *
class Ui_Form(object):
def setupUi(self, Form):
... | 54.59901 | 80 | 0.710581 | 1,179 | 11,029 | 6.486005 | 0.161154 | 0.225186 | 0.081078 | 0.127109 | 0.392441 | 0.204917 | 0.018308 | 0.018308 | 0.018308 | 0.018308 | 0 | 0.047583 | 0.171094 | 11,029 | 201 | 81 | 54.870647 | 0.788886 | 0.02566 | 0 | 0.021505 | 1 | 0 | 0.086353 | 0.006521 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010753 | false | 0 | 0.010753 | 0 | 0.026882 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4103275c6f48564c6ff1fad5fb0a8944ab60a436 | 137,967 | py | Python | release/stubs/Autodesk/AutoCAD/EditorInput.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/AutoCAD/EditorInput.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | release/stubs/Autodesk/AutoCAD/EditorInput.py | paoloemilioserra/ironpython-stubs | 49d92db7f28f25ccd3654c5f6ae83daa0c401fa1 | [
"MIT"
] | null | null | null | # encoding: utf-8
# module Autodesk.AutoCAD.EditorInput calls itself EditorInput
# from Acmgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null, accoremgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class AddedKeywords(Enu... | 34.972624 | 486 | 0.648677 | 12,421 | 137,967 | 7.070606 | 0.063441 | 0.074467 | 0.04468 | 0.059574 | 0.544054 | 0.511534 | 0.434483 | 0.41771 | 0.406085 | 0.383278 | 0 | 0.006539 | 0.236281 | 137,967 | 3,944 | 487 | 34.981491 | 0.826959 | 0.03856 | 0 | 0.609116 | 0 | 0 | 0.001077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.271409 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
41067ed6db1ed6b79ce07e5f1ba003d3a292c73c | 151 | py | Python | chpt8/Reverse.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | null | null | null | chpt8/Reverse.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | 2 | 2018-05-21T09:39:00.000Z | 2018-05-27T15:59:15.000Z | chpt8/Reverse.py | GDG-Buea/learn-python | 9dfe8caa4b57489cf4249bf7e64856062a0b93c2 | [
"Apache-2.0"
] | 2 | 2018-05-19T14:59:56.000Z | 2018-05-19T15:25:48.000Z | # This program reverses a given string
def reverse():
user_string = input("Enter a string: ")
s = user_string[::-1]
print(s)
reverse()
| 13.727273 | 43 | 0.629139 | 21 | 151 | 4.428571 | 0.666667 | 0.215054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008696 | 0.238411 | 151 | 10 | 44 | 15.1 | 0.8 | 0.238411 | 0 | 0 | 0 | 0 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
410eb00a7e9f189e5d58a886e9ad9987223272ea | 783 | py | Python | flasks/conver.py | edgells/python-commons | 38c0aa0ec10304a4147ea231c92c9e34da462052 | [
"MIT"
] | null | null | null | flasks/conver.py | edgells/python-commons | 38c0aa0ec10304a4147ea231c92c9e34da462052 | [
"MIT"
] | null | null | null | flasks/conver.py | edgells/python-commons | 38c0aa0ec10304a4147ea231c92c9e34da462052 | [
"MIT"
] | null | null | null | from flask import Flask
from werkzeug.routing import BaseConverter
class RegexConverter(BaseConverter):
def __init__(self, url_map, *args):
super(RegexConverter, self).__init__(url_map)
self.regex = args[0]
def to_python(self, value):
"""
匹配到的值
:param value:
:... | 19.575 | 53 | 0.583653 | 98 | 783 | 4.367347 | 0.5 | 0.056075 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0.268199 | 783 | 39 | 54 | 20.076923 | 0.726003 | 0.097063 | 0 | 0 | 0 | 0 | 0.10828 | 0.049363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.111111 | 0.055556 | 0.5 | 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 | 0 | 0 | 0 | 2 |
4111e0047e651eec2b041b914921035fe36454e5 | 773 | py | Python | trend_analyze/src/model/entity_url.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | null | null | null | trend_analyze/src/model/entity_url.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | 2 | 2020-09-26T14:58:33.000Z | 2021-03-31T20:01:40.000Z | trend_analyze/src/model/entity_url.py | popper2710/Trend_Analyze | 0c98bcd7986bdb2d2b9bdc8022bfa08ddf0e7b0f | [
"MIT"
] | null | null | null | from pyfields import field
from trend_analyze.src.validate import Validate
from trend_analyze.config import *
class EntityUrl:
v = Validate().generate
url: str = field(default=DEFAULT_ENTITY_URL, validators=v(is_blank=True, max_len=150), check_type=True)
start: int = field(default=-1, check_type=True)
... | 32.208333 | 107 | 0.659767 | 104 | 773 | 4.701923 | 0.394231 | 0.122699 | 0.132924 | 0.07362 | 0.118609 | 0.118609 | 0.118609 | 0 | 0 | 0 | 0 | 0.01495 | 0.221216 | 773 | 23 | 108 | 33.608696 | 0.797342 | 0 | 0 | 0 | 1 | 0 | 0.042691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0.055556 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4120f12f58edfe39a3cbad96c6f37cc20266c8ae | 251 | py | Python | main.py | aleattene/lotto-game | 6871699c44c988f926db986668524c002d3560f2 | [
"MIT"
] | null | null | null | main.py | aleattene/lotto-game | 6871699c44c988f926db986668524c002d3560f2 | [
"MIT"
] | null | null | null | main.py | aleattene/lotto-game | 6871699c44c988f926db986668524c002d3560f2 | [
"MIT"
] | null | null | null |
from lotto_game.lotto_game import LottoGame
def main():
# Play Tickets
LottoGame.acquire_tickets()
# Do Extraction
LottoGame.do_extraction()
# Check Results
LottoGame.check_results()
if __name__ == "__main__":
main()
| 14.764706 | 43 | 0.681275 | 28 | 251 | 5.642857 | 0.571429 | 0.113924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227092 | 251 | 16 | 44 | 15.6875 | 0.814433 | 0.159363 | 0 | 0 | 0 | 0 | 0.038835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
41229bdd678deb184613795447a9a74eef973ea7 | 2,361 | py | Python | src/TheLanguage/Parser/Statements/BinaryStatementParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Parser/Statements/BinaryStatementParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Parser/Statements/BinaryStatementParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | 1 | 2021-06-18T18:58:57.000Z | 2021-06-18T18:58:57.000Z | # ----------------------------------------------------------------------
# |
# | BinaryStatementParserInfo.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2021-10-12 13:55:27
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2021
# | Di... | 36.890625 | 79 | 0.454892 | 138 | 2,361 | 7.695652 | 0.586957 | 0.00565 | 0.016949 | 0.022599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014143 | 0.281237 | 2,361 | 63 | 80 | 37.47619 | 0.611668 | 0.365947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.310345 | 0 | 0.896552 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4122eec27606ee355d75c58e79851c7226e97614 | 10,947 | py | Python | deprecated/finder_0.1.py | acic2015/findr | ac3061cb056cfe6a151c4096d04bce0d03545032 | [
"MIT"
] | 7 | 2015-11-24T04:44:55.000Z | 2018-02-08T02:13:14.000Z | deprecated/finder_0.1.py | acic2015/findr | ac3061cb056cfe6a151c4096d04bce0d03545032 | [
"MIT"
] | 9 | 2015-11-24T17:43:13.000Z | 2017-09-15T19:37:10.000Z | deprecated/finder_0.1.py | acic2015/findr | ac3061cb056cfe6a151c4096d04bce0d03545032 | [
"MIT"
] | 4 | 2015-12-15T03:39:40.000Z | 2021-07-20T11:28:09.000Z | __author__ = 'Daniel Kapellusch'
import astropy.io.fits as fits
import os
import csv
import json
import sys
import multiprocessing as mp #necessary imports. Note: this is written in python 2.
from os import path
import ConfigParser
from os import system
#necessary imports. Note: this is written in python 2.
global pa... | 37.108475 | 145 | 0.652325 | 1,476 | 10,947 | 4.705285 | 0.213415 | 0.015839 | 0.016127 | 0.018431 | 0.157523 | 0.135061 | 0.071994 | 0.058459 | 0.049532 | 0.037437 | 0 | 0.002148 | 0.234585 | 10,947 | 295 | 146 | 37.108475 | 0.82671 | 0.170366 | 0 | 0.045455 | 0 | 0 | 0.125782 | 0 | 0 | 0 | 0 | 0.010169 | 0 | 0 | null | null | 0 | 0.051136 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5e3743f51af18cff1772397d3d93a0c7e89bca0 | 2,780 | py | Python | edit/editseries.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | edit/editseries.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | edit/editseries.py | lokal-profil/isfdb_site | 0ce20d6347849926d4eda961ea9249c31519eea5 | [
"BSD-3-Clause"
] | null | null | null | #!_PYTHONLOC
#
# (C) COPYRIGHT 2004-2021 Al von Ruff, Bill Longley and Ahasuerus
# ALL RIGHTS RESERVED
#
# The copyright notice above does not evidence any actual or
# intended publication of such source code.
#
# Version: $Revision$
# Date: $Date$
from isfdb import *
from isfdblib impor... | 32.325581 | 130 | 0.685612 | 351 | 2,780 | 5.304843 | 0.376068 | 0.051557 | 0.023631 | 0.006445 | 0.074114 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008555 | 0.201079 | 2,780 | 85 | 131 | 32.705882 | 0.829806 | 0.144245 | 0 | 0.098039 | 0 | 0.058824 | 0.379966 | 0.025782 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.607843 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
f5e9dfce4e604e5d08d5833b9e96482b6754ad47 | 217 | py | Python | finally.py | rkjin/algorithm | 5661dd621a43bcbb37b4113fd0918854e7a24310 | [
"Apache-2.0"
] | null | null | null | finally.py | rkjin/algorithm | 5661dd621a43bcbb37b4113fd0918854e7a24310 | [
"Apache-2.0"
] | null | null | null | finally.py | rkjin/algorithm | 5661dd621a43bcbb37b4113fd0918854e7a24310 | [
"Apache-2.0"
] | null | null | null | import numpy as np
if __name__ == '__main__':
try:
f = open('test_file.txt', 'w')
f.write('this is exception finally')
except Exception as e:
pass
finally:
f.close
pass
| 15.5 | 44 | 0.557604 | 29 | 217 | 3.862069 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336406 | 217 | 13 | 45 | 16.692308 | 0.777778 | 0 | 0 | 0.2 | 0 | 0 | 0.21659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.1 | 0 | 0.1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
f5eeb057bded5c49089e78a2d6eb892367d91cd2 | 3,528 | py | Python | gcp/extract/lib/weights_vcv.py | dylanhogan/prospectus-tools | 662b2629290cd27c74cd34769773e0d6e73c7048 | [
"MIT"
] | null | null | null | gcp/extract/lib/weights_vcv.py | dylanhogan/prospectus-tools | 662b2629290cd27c74cd34769773e0d6e73c7048 | [
"MIT"
] | null | null | null | gcp/extract/lib/weights_vcv.py | dylanhogan/prospectus-tools | 662b2629290cd27c74cd34769773e0d6e73c7048 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
# Copyright 2014, Distributed Meta-Analysis System
################################################################################
"""
This file provides methods for handling weighting across GCMs under
delta meth... | 40.551724 | 207 | 0.614229 | 455 | 3,528 | 4.672527 | 0.50989 | 0.0254 | 0.022578 | 0.022578 | 0.039511 | 0.039511 | 0 | 0 | 0 | 0 | 0 | 0.258111 | 0.213719 | 3,528 | 86 | 208 | 41.023256 | 0.508291 | 0.307823 | 0 | 0 | 0 | 0 | 0.064793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
f5fd8ae5a3e3e11874751c948747bc877e5305d4 | 1,131 | py | Python | src/icemac/addressbook/browser/search/result/handler/test_manager.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | 1 | 2020-03-26T20:16:44.000Z | 2020-03-26T20:16:44.000Z | src/icemac/addressbook/browser/search/result/handler/test_manager.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | 2 | 2020-02-21T13:04:23.000Z | 2020-02-21T13:06:10.000Z | src/icemac/addressbook/browser/search/result/handler/test_manager.py | icemac/icemac.addressbook | 6197e6e01da922feb100dd0943576523050cd703 | [
"BSD-2-Clause"
] | null | null | null | from icemac.addressbook.browser.search.result.handler.manager import (
SearchResultHandler)
def makeSRHandler(viewName):
"""Create a `SearchResultHandler` with the specified `viewName`."""
handler = SearchResultHandler(None, None, None, None)
handler.viewName = viewName
return handler
def test_m... | 31.416667 | 75 | 0.72237 | 135 | 1,131 | 5.607407 | 0.422222 | 0.02642 | 0.073976 | 0.174373 | 0.268164 | 0.221929 | 0.11889 | 0.11889 | 0 | 0 | 0 | 0.005308 | 0.167109 | 1,131 | 35 | 76 | 32.314286 | 0.798301 | 0.316534 | 0 | 0 | 0 | 0 | 0.057299 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.357143 | false | 0 | 0.071429 | 0 | 0.5 | 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 | 0 | 0 | 0 | 2 |
eb15265b18824ec201a18ed59e673270072c7e83 | 756 | py | Python | src/bio2bel/exc.py | aman527/bio2bel | 631328261a8e7ebddf2eab6c271bc4bc42fbcba4 | [
"MIT"
] | 16 | 2018-05-18T13:25:44.000Z | 2022-03-15T02:32:28.000Z | src/bio2bel/exc.py | aman527/bio2bel | 631328261a8e7ebddf2eab6c271bc4bc42fbcba4 | [
"MIT"
] | 42 | 2017-09-13T20:16:46.000Z | 2021-05-08T19:24:30.000Z | src/bio2bel/exc.py | aman527/bio2bel | 631328261a8e7ebddf2eab6c271bc4bc42fbcba4 | [
"MIT"
] | 5 | 2020-03-14T17:08:12.000Z | 2021-04-13T20:19:19.000Z | # -*- coding: utf-8 -*-
"""Bio2BEL custom errors."""
class Bio2BELMissingNameError(TypeError):
"""Raised when an abstract manager is subclassed and instantiated without overriding the module name."""
class Bio2BELModuleCaseError(TypeError):
"""Raised when the module name in a subclassed and instantiated ma... | 31.5 | 111 | 0.747354 | 89 | 756 | 6.348315 | 0.573034 | 0.106195 | 0.134513 | 0.077876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012442 | 0.149471 | 756 | 23 | 112 | 32.869565 | 0.866252 | 0.62037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
eb198ab0970d6a0544631c5838cde74baffd6fdc | 8,851 | py | Python | Website/Ogre/points/tests.py | pringyy/OGRE | 26bd1bc06e1d14129b8922da8c9bb7f21b7ec457 | [
"MIT"
] | null | null | null | Website/Ogre/points/tests.py | pringyy/OGRE | 26bd1bc06e1d14129b8922da8c9bb7f21b7ec457 | [
"MIT"
] | null | null | null | Website/Ogre/points/tests.py | pringyy/OGRE | 26bd1bc06e1d14129b8922da8c9bb7f21b7ec457 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.contrib.staticfiles import finders
from django.urls import reverse
from .models import StudentProfileInfo, User
from .forms import UserForm, ContactForm, UserProfileInfoForm
class IndexPageTest(TestCase):
# Page can only ... | 35.979675 | 119 | 0.711219 | 1,132 | 8,851 | 5.400177 | 0.146643 | 0.088336 | 0.043187 | 0.058891 | 0.675119 | 0.581384 | 0.5009 | 0.481924 | 0.443481 | 0.32161 | 0 | 0.011461 | 0.191617 | 8,851 | 245 | 120 | 36.126531 | 0.842907 | 0.180432 | 0 | 0.246377 | 0 | 0 | 0.113189 | 0.003602 | 0 | 0 | 0 | 0 | 0.318841 | 1 | 0.311594 | false | 0.072464 | 0.043478 | 0 | 0.442029 | 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 | 0 | 0 | 0 | 2 |
eb1e1aaec21c57363587a62326c0cc891182c577 | 183 | py | Python | sdm/__init__.py | DarthNoxix/noxixcogs | 794571b7d155e40f6bfb6ba7c31b0a7f025e3d59 | [
"MIT"
] | null | null | null | sdm/__init__.py | DarthNoxix/noxixcogs | 794571b7d155e40f6bfb6ba7c31b0a7f025e3d59 | [
"MIT"
] | null | null | null | sdm/__init__.py | DarthNoxix/noxixcogs | 794571b7d155e40f6bfb6ba7c31b0a7f025e3d59 | [
"MIT"
] | null | null | null | from .sdm import Sdm
__red_end_user_data_statement__ = (
"This cog does not persistently store data or metadata about users."
)
async def setup(bot):
bot.add_cog(Sdm(bot))
| 18.3 | 72 | 0.73224 | 29 | 183 | 4.310345 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185792 | 183 | 9 | 73 | 20.333333 | 0.838926 | 0 | 0 | 0 | 0 | 0 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
eb4407cbcc3f00735c03c065582c4a89413734d8 | 1,678 | py | Python | launcher.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | launcher.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | launcher.py | dlario/PyFlow | b53b9d14b37aa586426d85842c6cd9a9c35443f2 | [
"MIT"
] | null | null | null | from nine import str
from Qt.QtWidgets import QApplication, QStyleFactory
from Qt import QtGui
from Qt import QtCore
import sys
import os
from PyFlow.App import PyFlow
FILE_DIR = os.path.abspath(os.path.dirname(__file__))
SETTINGS_PATH = os.path.join(FILE_DIR, "PyFlow", "appConfig.ini")
STYLE_PATH = os.path.join(FILE... | 33.56 | 77 | 0.781883 | 241 | 1,678 | 5.3361 | 0.307054 | 0.128305 | 0.192068 | 0.242613 | 0.522551 | 0.4479 | 0.410575 | 0.368585 | 0.193624 | 0.193624 | 0 | 0.026212 | 0.090584 | 1,678 | 49 | 78 | 34.244898 | 0.816514 | 0 | 0 | 0.15 | 0 | 0 | 0.026222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.175 | 0 | 0.175 | 0.05 | 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 | 0 | 0 | 2 |
de296667231d2bd75b621d94c889fd2ea3b5afb5 | 812 | py | Python | bids_events/Events.py | InstitutoDOr/bids_events | c00d76e1f62e5b647f94609acbc9e173a356aef7 | [
"MIT"
] | null | null | null | bids_events/Events.py | InstitutoDOr/bids_events | c00d76e1f62e5b647f94609acbc9e173a356aef7 | [
"MIT"
] | null | null | null | bids_events/Events.py | InstitutoDOr/bids_events | c00d76e1f62e5b647f94609acbc9e173a356aef7 | [
"MIT"
] | null | null | null | import os
import re
class EventHandler:
def __init__(self, fname, suffix = '_events'):
# Removing extension and suffix (if present)
fname = re.sub( r'\.tsv$', '', fname )
fname = re.sub( suffix + '$', '', fname )
self.__filename = '{}{}.tsv'.format(fname, suffix)
self.trials ... | 31.230769 | 62 | 0.571429 | 103 | 812 | 4.368932 | 0.553398 | 0.088889 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.300493 | 812 | 26 | 63 | 31.230769 | 0.792254 | 0.195813 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.055556 | 0.444444 | 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 | 0 | 0 | 0 | 2 |
de3486ad1b0724a14e6330a44ee92a956bf5ee2e | 380 | py | Python | quokka/modules/accounts/views.py | yencchen/quokka_epus | d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5 | [
"MIT"
] | null | null | null | quokka/modules/accounts/views.py | yencchen/quokka_epus | d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5 | [
"MIT"
] | null | null | null | quokka/modules/accounts/views.py | yencchen/quokka_epus | d64aeb9c5ca59ee4bdcd84381f9bb0504680f5f5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import redirect, request, url_for
from flask.views import MethodView
from flask.ext.security import current_user
class SwatchView(MethodView):
"""
change the bootswatch theme
"""
def post(self):
current_user.set_swatch(request.form.get... | 22.352941 | 59 | 0.692105 | 50 | 380 | 5.16 | 0.72 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.184211 | 380 | 16 | 60 | 23.75 | 0.829032 | 0.184211 | 0 | 0 | 0 | 0 | 0.05802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
de3854551e9e60f025c395d03bedb3f5b3cb6f38 | 4,958 | py | Python | models/get_networks.py | kingqiuol/pytorch-template | 8bc78f996fbbc15ae54a3055cd3d33199b4a96d8 | [
"MIT"
] | null | null | null | models/get_networks.py | kingqiuol/pytorch-template | 8bc78f996fbbc15ae54a3055cd3d33199b4a96d8 | [
"MIT"
] | null | null | null | models/get_networks.py | kingqiuol/pytorch-template | 8bc78f996fbbc15ae54a3055cd3d33199b4a96d8 | [
"MIT"
] | null | null | null | import sys
def get_network(args):
""" return given network
"""
if args.MODEL.NAME == 'vgg16':
from models.vgg import vgg16_bn
net = vgg16_bn()
elif args.MODEL.NAME == 'vgg13':
from models.vgg import vgg13_bn
net = vgg13_bn()
elif args.MODEL.NAME == 'vgg11':
from models.vgg import vgg11_bn
net = vgg11... | 32.834437 | 65 | 0.740621 | 603 | 4,958 | 6.038143 | 0.145937 | 0.113705 | 0.16067 | 0.205438 | 0.126888 | 0.050536 | 0 | 0 | 0 | 0 | 0 | 0.059876 | 0.154498 | 4,958 | 150 | 66 | 33.053333 | 0.808683 | 0.007664 | 0 | 0 | 0 | 0 | 0.107927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006993 | false | 0 | 0.321678 | 0 | 0.335664 | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
de3b514aae1619036f4e6044f0e8e9c86052e8a3 | 457 | py | Python | Chapter 1/imtools.py | ai-distill/PythonVisionProgramming | 15a432b34d4ca43ab0a0bc765dbcaa9bc8de3d8e | [
"Apache-2.0"
] | null | null | null | Chapter 1/imtools.py | ai-distill/PythonVisionProgramming | 15a432b34d4ca43ab0a0bc765dbcaa9bc8de3d8e | [
"Apache-2.0"
] | null | null | null | Chapter 1/imtools.py | ai-distill/PythonVisionProgramming | 15a432b34d4ca43ab0a0bc765dbcaa9bc8de3d8e | [
"Apache-2.0"
] | null | null | null | """
存储一些经常使用的图像操作
"""
import os
from PIL import Image
from numpy import *
def get_imlist(path):
"""
返回目录中所有JPG图像的文件名列表
:param path:
:return:
"""
return [os.path.join(path, f) for f in os.listdir(path) if f.endswith('.jpg')]
def imresize(im, sz):
"""
图像缩放
:param im: 图像对应的数据
:pa... | 16.925926 | 82 | 0.610503 | 61 | 457 | 4.508197 | 0.540984 | 0.065455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002865 | 0.236324 | 457 | 27 | 83 | 16.925926 | 0.7851 | 0.234136 | 0 | 0 | 0 | 0 | 0.017065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0.111111 | 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 | 0 | 0 | 0 | 2 |
de3ba9c03d6171d2fbdd34396181dfc69aedd8a7 | 5,190 | py | Python | cart/views.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | null | null | null | cart/views.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | null | null | null | cart/views.py | lbacon17/lb-fitness | 16f78841c834ca0e45317285b6c3b05ad97501f6 | [
"W3C"
] | 1 | 2021-03-31T10:55:51.000Z | 2021-03-31T10:55:51.000Z | from django.shortcuts import (
render, redirect, reverse, get_object_or_404, HttpResponse)
from django.contrib import messages
from shop.models import Product
from members.models import Member
def load_cart(request):
"""This view render's the user's cart contents"""
return render(request, 'cart/cart.html'... | 41.854839 | 79 | 0.559152 | 640 | 5,190 | 4.389063 | 0.1625 | 0.061944 | 0.06052 | 0.05874 | 0.736561 | 0.730153 | 0.704877 | 0.668209 | 0.572802 | 0.522606 | 0 | 0.008058 | 0.330443 | 5,190 | 123 | 80 | 42.195122 | 0.800288 | 0.045279 | 0 | 0.619048 | 0 | 0 | 0.27422 | 0.015606 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038095 | false | 0 | 0.038095 | 0 | 0.12381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de559c2b5884fa9c7d514b793b602e0875f672ea | 561 | py | Python | core/urls.py | cybernetisk/internsystem | b81faa0deef08153032e56d5740173e5a6cf3ad9 | [
"MIT"
] | null | null | null | core/urls.py | cybernetisk/internsystem | b81faa0deef08153032e56d5740173e5a6cf3ad9 | [
"MIT"
] | 38 | 2017-12-21T10:10:54.000Z | 2022-03-07T20:54:37.000Z | core/urls.py | cybernetisk/internsystem | b81faa0deef08153032e56d5740173e5a6cf3ad9 | [
"MIT"
] | 6 | 2018-06-01T21:04:34.000Z | 2020-01-14T15:26:26.000Z | from django.conf.urls import url
from core.views import me
from core.rest import CardViewSet, UserViewSet, NfcCardViewSet, GroupViewSet
from core.utils import SharedAPIRootRouter
# SharedAPIRootRouter is automatically imported in global urls config
router = SharedAPIRootRouter()
router.register(r"core/users", UserVie... | 33 | 76 | 0.787879 | 71 | 561 | 6.211268 | 0.478873 | 0.126984 | 0.136054 | 0.172336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 561 | 16 | 77 | 35.0625 | 0.871542 | 0.11943 | 0 | 0 | 0 | 0 | 0.136179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
de61a2c63bd8bf8c89dfa8db3b212f5ada8c9268 | 271 | py | Python | bc/recruitment/migrations/0018_merge_20200324_1630.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | 1 | 2021-02-27T07:27:17.000Z | 2021-02-27T07:27:17.000Z | bc/recruitment/migrations/0018_merge_20200324_1630.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | null | null | null | bc/recruitment/migrations/0018_merge_20200324_1630.py | Buckinghamshire-Digital-Service/buckinghamshire-council | bbbdb52b515bcdfc79a2bd9198dfa4828405370e | [
"BSD-3-Clause"
] | 1 | 2021-06-09T15:56:54.000Z | 2021-06-09T15:56:54.000Z | # Generated by Django 2.2.10 on 2020-03-24 16:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("recruitment", "0017_merge_20200318_1104"),
("recruitment", "0013_image_block"),
]
operations = []
| 19.357143 | 52 | 0.664207 | 32 | 271 | 5.46875 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 0.214022 | 271 | 13 | 53 | 20.846154 | 0.652582 | 0.169742 | 0 | 0 | 1 | 0 | 0.278027 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
de6435cdbc67360ee94636dc50bd704495e2b720 | 382 | py | Python | dump/yoloCarAccident/generate.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | dump/yoloCarAccident/generate.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | dump/yoloCarAccident/generate.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | import os
import yoloCarAccident as yc
# yc.find('test.txt')
f1 = open('result2.txt','r')
i = 0
s = ""
for lines in f1:
if(i<80000):
s += lines
i+=1
else:
f2 = open('test.txt','w')
f2.write(s)
f2.close()
try:
yc.find('test.txt')
except ValueError:
pass
s = ""
i = 0
# break
# f2 = open('t... | 13.172414 | 28 | 0.557592 | 66 | 382 | 3.227273 | 0.469697 | 0.164319 | 0.140845 | 0.183099 | 0.2723 | 0.2723 | 0.2723 | 0.2723 | 0.2723 | 0.2723 | 0 | 0.057432 | 0.225131 | 382 | 29 | 29 | 13.172414 | 0.662162 | 0.246073 | 0 | 0.210526 | 0 | 0 | 0.102837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
de725902f24523dc4f0cb06e33505cadc76a710c | 38,783 | py | Python | pysim/epcstd.py | larioandr/thesis-rfidsim | 6a5b3ef02964ff2d49bf5dae55af270801af28a5 | [
"MIT"
] | null | null | null | pysim/epcstd.py | larioandr/thesis-rfidsim | 6a5b3ef02964ff2d49bf5dae55af270801af28a5 | [
"MIT"
] | null | null | null | pysim/epcstd.py | larioandr/thesis-rfidsim | 6a5b3ef02964ff2d49bf5dae55af270801af28a5 | [
"MIT"
] | null | null | null | from enum import Enum
import random
import collections
import numpy as np
#
#######################################################################
# Data Types
#######################################################################
#
class DivideRatio(Enum):
DR_8 = ('0', 8.0, '8')
DR_643 = ('1', 64.0/3, '64/... | 30.610103 | 79 | 0.592682 | 5,045 | 38,783 | 4.338949 | 0.072745 | 0.031978 | 0.026313 | 0.03682 | 0.561032 | 0.47428 | 0.413294 | 0.377889 | 0.326039 | 0.288899 | 0 | 0.027396 | 0.254596 | 38,783 | 1,266 | 80 | 30.634281 | 0.729807 | 0.021762 | 0 | 0.293651 | 0 | 0.004535 | 0.046056 | 0.017389 | 0 | 0 | 0.002377 | 0.00079 | 0.003401 | 1 | 0.205215 | false | 0.005669 | 0.004535 | 0.11678 | 0.480726 | 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 | 0 | 0 | 0 | 2 |
de7b6b105a985b6f30d92b604636b34c85675300 | 498 | py | Python | Alp/cap_alp/E.py | Ashokkommi0001/patterns | daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2 | [
"MIT"
] | 2 | 2021-03-17T12:08:22.000Z | 2021-03-17T12:11:10.000Z | Alp/cap_alp/E.py | Ashokkommi0001/patterns | daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2 | [
"MIT"
] | null | null | null | Alp/cap_alp/E.py | Ashokkommi0001/patterns | daa1a1d8f3bc6e021e02a0e34458e2c178fc71d2 | [
"MIT"
] | 1 | 2021-03-17T11:49:39.000Z | 2021-03-17T11:49:39.000Z | def for_E():
for row in range(7):
for col in range(5):
if (col==0 ) or (row==0 or row==3 or row==6):
print("*",end=" ")
else:
print(end=" ")
print()
def while_E():
i=0
while i<7:
j=0
while j<5:
... | 22.636364 | 58 | 0.317269 | 66 | 498 | 2.363636 | 0.318182 | 0.076923 | 0.076923 | 0.166667 | 0.269231 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.518072 | 498 | 21 | 59 | 23.714286 | 0.583333 | 0 | 0 | 0.4 | 0 | 0 | 0.016771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
de8007cfcf1b7fa53b4609e54f0ca14a7d5ba1bb | 210 | py | Python | notebooks/_solutions/case4_air_quality_analysis18.py | jorisvandenbossche/2018-Bordeaux-pandas-course | 3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6 | [
"BSD-3-Clause"
] | 3 | 2019-07-23T15:14:03.000Z | 2020-11-10T06:12:18.000Z | notebooks/_solutions/case4_air_quality_analysis18.py | jorisvandenbossche/2018-Bordeaux-pandas-course | 3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6 | [
"BSD-3-Clause"
] | null | null | null | notebooks/_solutions/case4_air_quality_analysis18.py | jorisvandenbossche/2018-Bordeaux-pandas-course | 3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6 | [
"BSD-3-Clause"
] | 3 | 2020-03-04T23:40:20.000Z | 2021-11-04T16:41:10.000Z | # with tidy long table
fig, ax = plt.subplots()
sns.violinplot(x='station', y='no2', data=data_tidy[data_tidy['datetime'].dt.year == 2011], palette="GnBu_d", ax=ax)
ax.set_ylabel("NO$_2$ concentration (µg/m³)") | 52.5 | 116 | 0.704762 | 36 | 210 | 3.972222 | 0.805556 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036458 | 0.085714 | 210 | 4 | 117 | 52.5 | 0.708333 | 0.095238 | 0 | 0 | 0 | 0 | 0.275132 | 0 | 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 | 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 | 2 |
de8e61ed55aedc48bfff03d78334a493e87826b6 | 242 | py | Python | core/views.py | AlikBerry/countdown_timer | 457f6d499b1fd702d43c348a012ae78780009e3b | [
"MIT"
] | null | null | null | core/views.py | AlikBerry/countdown_timer | 457f6d499b1fd702d43c348a012ae78780009e3b | [
"MIT"
] | null | null | null | core/views.py | AlikBerry/countdown_timer | 457f6d499b1fd702d43c348a012ae78780009e3b | [
"MIT"
] | null | null | null | from django.shortcuts import render
from core.models import Projects,InfoNotifications,WarningNotifications
from django.http import HttpResponse
from .tasks import sleepy
def index(reuqest):
sleepy(10)
return HttpResponse('Done!')
| 22 | 71 | 0.801653 | 29 | 242 | 6.689655 | 0.689655 | 0.103093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.132231 | 242 | 10 | 72 | 24.2 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0.020661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.571429 | 0 | 0.857143 | 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 | 0 | 0 | 0 | 2 |
de9904583298a90d85047bd7e803be42fe6b0d62 | 1,545 | py | Python | exams/61a-su20-practice-mt/q6/tests/q6.py | jjllzhang/CS61A | 57b68c7c06999210d96499f6d84e4ec99085d396 | [
"MIT"
] | 1 | 2022-01-22T11:45:01.000Z | 2022-01-22T11:45:01.000Z | exams/61a-su20-practice-mt/q6/tests/q6.py | jjllzhang/CS61A | 57b68c7c06999210d96499f6d84e4ec99085d396 | [
"MIT"
] | null | null | null | exams/61a-su20-practice-mt/q6/tests/q6.py | jjllzhang/CS61A | 57b68c7c06999210d96499f6d84e4ec99085d396 | [
"MIT"
] | null | null | null | test = {'name': 'q6',
'points': 10,
'suites': [{'cases': [{'code': '>>> increment = lambda x: x + 1\n'
'\n'
'>>> square = lambda x: x * x\n'
'\n'
'>>> do_nothing = make_zipper(increment, '
... | 49.83871 | 80 | 0.253722 | 105 | 1,545 | 3.685714 | 0.47619 | 0.036176 | 0.147287 | 0.193798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062185 | 0.614887 | 1,545 | 31 | 81 | 49.83871 | 0.588235 | 0 | 0 | 0.225806 | 0 | 0 | 0.359638 | 0.089263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dea61adbc856f28630be94c795fc850aa45a1770 | 595 | py | Python | Leetcode/res/Longest Common Prefix/2.py | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | 1 | 2022-03-04T16:06:41.000Z | 2022-03-04T16:06:41.000Z | Leetcode/res/Longest Common Prefix/2.py | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | Leetcode/res/Longest Common Prefix/2.py | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | # Author: allannozomu
# Runtime: 56 ms
# Memory: 13 MB
class Solution:
def longestCommonPrefix(self, strs: List[str]) -> str:
res = ""
max_length = -1
for s in strs:
if max_length < 0:
max_length = len(s)
else:
max_length = min(len(s),... | 24.791667 | 58 | 0.403361 | 67 | 595 | 3.492537 | 0.492537 | 0.230769 | 0.051282 | 0.08547 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02027 | 0.502521 | 595 | 24 | 59 | 24.791667 | 0.77027 | 0.080672 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dea6d3637da9acba0c0473fcafaedf9d82d434e7 | 884 | py | Python | tests/factory_fixtures/contact_number.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | null | null | null | tests/factory_fixtures/contact_number.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | 56 | 2021-08-05T02:49:38.000Z | 2022-03-31T19:35:13.000Z | tests/factory_fixtures/contact_number.py | donovan-PNW/dwellinglybackend | 448df61f6ea81f00dde7dab751f8b2106f0eb7b1 | [
"MIT"
] | null | null | null | import pytest
from models.contact_number import ContactNumberModel
@pytest.fixture
def contact_number_attributes(faker):
def _contact_number_attributes():
return {
"number": faker.phone_number(),
"numtype": faker.random_element(("home", "work", "mobile")),
"extension": ... | 29.466667 | 82 | 0.70362 | 91 | 884 | 6.417582 | 0.351648 | 0.267123 | 0.196918 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210407 | 884 | 29 | 83 | 30.482759 | 0.836676 | 0 | 0 | 0.090909 | 0 | 0 | 0.045249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.045455 | 0.363636 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
dea6d4847a9416f809c2342943ab00ca26b745bd | 835 | py | Python | tests/test_seq_comparision.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 8 | 2017-10-23T17:59:35.000Z | 2021-05-10T03:01:30.000Z | tests/test_seq_comparision.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 2 | 2019-08-25T19:24:12.000Z | 2019-09-05T12:16:10.000Z | tests/test_seq_comparision.py | krzjoa/sciquence | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | [
"MIT"
] | 2 | 2018-02-28T09:47:53.000Z | 2019-08-25T19:24:16.000Z | import unittest
import numpy as np
from sciquence.sequences import *
class TestSequences(unittest.TestCase):
def test_seq_equals(self):
x = [np.array([1, 2, 3]), np.array([4, 5, 6])]
y = [np.array([1, 2, 7]), np.array([4, 5, 9])]
assert lseq_equal(x, x)
assert not lseq_equal(x, y)... | 30.925926 | 91 | 0.475449 | 155 | 835 | 2.470968 | 0.232258 | 0.177546 | 0.219321 | 0.229765 | 0.362924 | 0.279373 | 0.279373 | 0.263708 | 0.24282 | 0.13577 | 0 | 0.146597 | 0.313772 | 835 | 26 | 92 | 32.115385 | 0.521815 | 0 | 0 | 0 | 0 | 0 | 0.009592 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dea94f5c042a5187e7e181584aadcbc88251aee3 | 2,852 | py | Python | att/gm.py | thexdesk/foiamail | d135bbb5f52d5a31ca8ce3450bd0035f94a182f5 | [
"MIT"
] | null | null | null | att/gm.py | thexdesk/foiamail | d135bbb5f52d5a31ca8ce3450bd0035f94a182f5 | [
"MIT"
] | null | null | null | att/gm.py | thexdesk/foiamail | d135bbb5f52d5a31ca8ce3450bd0035f94a182f5 | [
"MIT"
] | null | null | null | """
downloads gmail atts
"""
import base64, os
from auth.auth import get_service
from msg.label import agencies, get_atts
from report.response import get_threads, get_status
from att.drive import get_or_create_atts_folder,\
check_if_drive, make_drive_folder, upload_to_drive
### START CONFIG ###
buffer_path = ... | 32.781609 | 119 | 0.630785 | 361 | 2,852 | 4.783934 | 0.33518 | 0.063694 | 0.020845 | 0.017371 | 0.052113 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003341 | 0.265428 | 2,852 | 86 | 120 | 33.162791 | 0.821002 | 0.048387 | 0 | 0 | 0 | 0 | 0.060306 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
deb28e42e8f7639fbbb2df4266120ee03fd2a028 | 193 | py | Python | admin.py | sfchronicle/najee | 0c66b05ba10616243d9828465da97dee7bfedc0d | [
"MIT",
"Unlicense"
] | null | null | null | admin.py | sfchronicle/najee | 0c66b05ba10616243d9828465da97dee7bfedc0d | [
"MIT",
"Unlicense"
] | null | null | null | admin.py | sfchronicle/najee | 0c66b05ba10616243d9828465da97dee7bfedc0d | [
"MIT",
"Unlicense"
] | null | null | null | import flask_admin as admin
# from flask_admin.contrib.sqla import ModelView
from app import app
# from app import db
from models import *
# Admin
admin = admin.Admin(app)
# Add Admin Views
| 16.083333 | 48 | 0.766839 | 31 | 193 | 4.709677 | 0.419355 | 0.205479 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176166 | 193 | 11 | 49 | 17.545455 | 0.918239 | 0.450777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
dee4241a76fbf19cf565aab66e0521ce2380cc65 | 250 | py | Python | test/tests/global_and_local.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | 1 | 2015-11-06T03:39:51.000Z | 2015-11-06T03:39:51.000Z | test/tests/global_and_local.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | null | null | null | test/tests/global_and_local.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | null | null | null | # expected: fail
# - this particular check isn't implemented yet
# I would have expected this to be valid, but cPython and pypy err out saying "name 'x' is local and global"
print "first"
x = 1
def f(x):
global x
print "calling"
f(2)
print x
| 16.666667 | 108 | 0.696 | 45 | 250 | 3.866667 | 0.755556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.22 | 250 | 14 | 109 | 17.857143 | 0.882051 | 0.668 | 0 | 0 | 0 | 0 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
def6b9e9ff86d2545be01b4fc202577ea606b159 | 525 | py | Python | global_setting.py | aixiwang/mqtt_datajs | 91091d63f73e64916e6ca3fa5e9279dd361d3c86 | [
"BSD-3-Clause"
] | null | null | null | global_setting.py | aixiwang/mqtt_datajs | 91091d63f73e64916e6ca3fa5e9279dd361d3c86 | [
"BSD-3-Clause"
] | null | null | null | global_setting.py | aixiwang/mqtt_datajs | 91091d63f73e64916e6ca3fa5e9279dd361d3c86 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#-*- coding: utf-8 -*-
#---------------------------------------
#
# Copyright(c) Aixi Wang 2014-2015
#---------------------------------------
# v1 -- initial version
#---------------------------------------
#-----------------------
# mail
#-----------------------
global mail_sender,mail_smtpserver,ma... | 23.863636 | 62 | 0.493333 | 56 | 525 | 4.410714 | 0.464286 | 0.17004 | 0.161943 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023013 | 0.089524 | 525 | 21 | 63 | 25 | 0.493724 | 0.495238 | 0 | 0 | 0 | 0 | 0.181102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
defdbd583ad5f6b3a08353cba72476c7dbaff00c | 295 | py | Python | download-deveres/para-execicios-curso-em-video/exe019.py | Hugo-Oliveira-RDO11/meus-deveres | b5e41015e2cb95946262678e82197e5f47d56271 | [
"MIT"
] | null | null | null | download-deveres/para-execicios-curso-em-video/exe019.py | Hugo-Oliveira-RDO11/meus-deveres | b5e41015e2cb95946262678e82197e5f47d56271 | [
"MIT"
] | null | null | null | download-deveres/para-execicios-curso-em-video/exe019.py | Hugo-Oliveira-RDO11/meus-deveres | b5e41015e2cb95946262678e82197e5f47d56271 | [
"MIT"
] | null | null | null | import random
p = str(input('digite o nome do primeiro aluno :'))
s = str(input('o nome do segundo aluno :'))
t = str(input('o nome do terceiro aluno :'))
q = str(input('o nome do quato aluno :'))
lista = [p, s, t, q]
aluno = random.choice(lista)
print('o aluno sorteado foi {}'.format(aluno))
| 29.5 | 51 | 0.657627 | 51 | 295 | 3.803922 | 0.45098 | 0.164948 | 0.14433 | 0.201031 | 0.231959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 295 | 9 | 52 | 32.777778 | 0.791837 | 0 | 0 | 0 | 0 | 0 | 0.440678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
7211e7dcde6526670f3ae011a8fd15606f93b81e | 1,826 | py | Python | tables_io/lazy_modules.py | LSSTDESC/tables_io | 1c2f119c928d05d237b1c8509e340d29650ceb8b | [
"MIT"
] | 1 | 2021-08-13T15:41:58.000Z | 2021-08-13T15:41:58.000Z | tables_io/lazy_modules.py | LSSTDESC/tables_io | 1c2f119c928d05d237b1c8509e340d29650ceb8b | [
"MIT"
] | 18 | 2021-08-12T00:09:36.000Z | 2022-02-24T21:11:18.000Z | tables_io/lazy_modules.py | LSSTDESC/tables_io | 1c2f119c928d05d237b1c8509e340d29650ceb8b | [
"MIT"
] | null | null | null | """ Lazy loading modules """
import sys
import importlib.util
class DeferredModuleError:
""" Class to throw an error if you try to use a modules that wasn't loaded """
def __init__(self, moduleName):
self._moduleName = moduleName
@property
def moduleName(self):
""" Return the name o... | 26.852941 | 82 | 0.645126 | 228 | 1,826 | 5.074561 | 0.412281 | 0.025929 | 0.046672 | 0.051858 | 0.031115 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002974 | 0.263417 | 1,826 | 67 | 83 | 27.253731 | 0.857249 | 0.242059 | 0 | 0.051282 | 0 | 0 | 0.096067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.025641 | 0.333333 | 0 | 0.564103 | 0.025641 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
7221d6876591c7703ef947738f8354cdcf1efa5d | 82,647 | py | Python | MCDR.py | Qltan/MCDR | ad8abfafcbe19dd50f31fc4122faf3eb633be9d5 | [
"MIT"
] | null | null | null | MCDR.py | Qltan/MCDR | ad8abfafcbe19dd50f31fc4122faf3eb633be9d5 | [
"MIT"
] | null | null | null | MCDR.py | Qltan/MCDR | ad8abfafcbe19dd50f31fc4122faf3eb633be9d5 | [
"MIT"
] | null | null | null | import copy
import datetime
import json
import math
import multiprocessing
import numpy as np
import os
import pandas as pd
import pydotplus
import random
import re
import time
from math import *
from sklearn import metrics
_CLUSTER_DATA = './bike_sharing_data/mydata'
RATEDATA = './bike_sharing_data/my... | 42.77795 | 121 | 0.527799 | 7,449 | 82,647 | 5.754464 | 0.059203 | 0.012598 | 0.013857 | 0.023002 | 0.735542 | 0.701505 | 0.673347 | 0.633361 | 0.607302 | 0.594378 | 0 | 0.026267 | 0.377666 | 82,647 | 1,931 | 122 | 42.800104 | 0.807131 | 0.040691 | 0 | 0.709581 | 0 | 0 | 0.04484 | 0.00903 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01976 | false | 0.01018 | 0.008383 | 0 | 0.046108 | 0.051497 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
722517ddb7cf57ba0cdaeeaa839501f03c9155b4 | 322 | py | Python | plotter/plotter.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | plotter/plotter.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | plotter/plotter.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | import abc
class Plotter(abc.ABC):
def __init__(self, ax=None, bokeh_fig=None):
if not ax and not bokeh_fig:
raise ValueError('ax or bokeh_fig should be provided.')
self._ax = ax
self._bokeh_fig = bokeh_fig
def plot(self, *args, **kwargs):
raise NotImplementedErro... | 23 | 67 | 0.63354 | 45 | 322 | 4.288889 | 0.533333 | 0.207254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276398 | 322 | 13 | 68 | 24.769231 | 0.828326 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
72395e4c87b9f1d8044b25a00bbab7ea6fe4633a | 337 | py | Python | tests/graphql/readme_forum/readme_forum_permissions/models.py | karlosss/simple_api | 03f87035c648f161d5e7a59b24f4e04bd34399f1 | [
"MIT"
] | 2 | 2020-11-13T14:00:06.000Z | 2020-12-19T11:50:22.000Z | tests/graphql/readme_forum/readme_forum_permissions/models.py | ladal1/simple_api | 1b5d560476bccad9f68a7331d092dbdb68c48bf7 | [
"MIT"
] | 5 | 2021-02-04T14:27:43.000Z | 2021-06-04T23:22:24.000Z | tests/graphql/readme_forum/readme_forum_permissions/models.py | ladal1/simple_api | 1b5d560476bccad9f68a7331d092dbdb68c48bf7 | [
"MIT"
] | 1 | 2021-01-06T13:54:38.000Z | 2021-01-06T13:54:38.000Z | from django.contrib.auth.models import User
from django.db.models import Model, CharField, TextField, ForeignKey, CASCADE
class Post(Model):
title = CharField(max_length=50)
author = ForeignKey(User, on_delete=CASCADE)
content = TextField()
def __str__(self):
return "{} by {}".format(self.tit... | 28.083333 | 77 | 0.712166 | 43 | 337 | 5.44186 | 0.674419 | 0.08547 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.172107 | 337 | 11 | 78 | 30.636364 | 0.831541 | 0 | 0 | 0 | 0 | 0 | 0.023739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 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 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
7241a2c99b3dfd4732a6af0ad6cf19b2e1c6a517 | 1,238 | py | Python | fgvcdata/__init__.py | catalys1/fgvc-data-pytorch | e2666d011c71308c4975776fbc41e947424f0723 | [
"MIT"
] | 4 | 2020-07-05T10:19:20.000Z | 2021-09-15T08:22:36.000Z | fgvcdata/__init__.py | catalys1/fgvc-data-pytorch | e2666d011c71308c4975776fbc41e947424f0723 | [
"MIT"
] | 1 | 2020-11-13T22:01:47.000Z | 2020-11-13T22:01:47.000Z | fgvcdata/__init__.py | catalys1/fgvc-data-pytorch | e2666d011c71308c4975776fbc41e947424f0723 | [
"MIT"
] | null | null | null | '''A common interface to FGVC datasets.
Currently supported datasets are
- CUB Birds
- CUB Birds with expert labels
- NA Birds
- Stanford Cars
- Stanford Dogs
- Oxford Flowers
- Oxford FGVC Aircraft
- Tsinghua Dogs
Datasets are constructed and used following the pytorch
data.utils.data.Dataset paradigm, and have the ... | 29.47619 | 79 | 0.747981 | 191 | 1,238 | 4.811518 | 0.497382 | 0.054407 | 0.035909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023055 | 0.159128 | 1,238 | 41 | 80 | 30.195122 | 0.85975 | 0.763328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
72450375a565716f2e2d7e0a06b152a00332048e | 1,062 | py | Python | po/loginpage.py | imzengyang/datadrivertestexample | a37520c2f5f0ae6dfbcaaa371586ba7e98540537 | [
"MIT"
] | 1 | 2018-06-03T05:31:46.000Z | 2018-06-03T05:31:46.000Z | po/loginpage.py | imzengyang/datadrivertestexample | a37520c2f5f0ae6dfbcaaa371586ba7e98540537 | [
"MIT"
] | null | null | null | po/loginpage.py | imzengyang/datadrivertestexample | a37520c2f5f0ae6dfbcaaa371586ba7e98540537 | [
"MIT"
] | null | null | null |
from po.base import BasePage
from po.base import InvalidPageException
class LoginPage(BasePage):
_login_view_locator = ".active"
_login_name_selector = "#name"
_login_passwd_selector = "#pass"
_login_btn_selector = ".span-primary"
_login_error_msg_selector='.alert strong'
def __init__(self... | 33.1875 | 100 | 0.733522 | 135 | 1,062 | 5.281481 | 0.362963 | 0.084151 | 0.119215 | 0.13324 | 0.30575 | 0.30575 | 0.30575 | 0.258065 | 0.258065 | 0.137447 | 0 | 0 | 0.1742 | 1,062 | 32 | 101 | 33.1875 | 0.812999 | 0.180791 | 0 | 0 | 0 | 0 | 0.049769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.176471 | 0.117647 | 0.058824 | 0.705882 | 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 | 0 | 1 | 0 | 0 | 2 |
724593364a3fe88c699961a3b8ddb8f17f617e15 | 100 | py | Python | Loops/for_in.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | Loops/for_in.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | Loops/for_in.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | var1 = "hello world"
# left what you get from the right
for character in var1:
print(character) | 20 | 34 | 0.72 | 16 | 100 | 4.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.21 | 100 | 5 | 35 | 20 | 0.886076 | 0.32 | 0 | 0 | 0 | 0 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
724cda3b3a14ff18ab5608878c35ee486f9afa69 | 217 | py | Python | noxfile.py | rshnn/Practical-RL | f7688e224a342c7f67478f2c4cd6bb7b1a122205 | [
"MIT"
] | 3 | 2022-02-14T17:59:56.000Z | 2022-02-15T10:08:43.000Z | noxfile.py | rshnn/Practical-RL | f7688e224a342c7f67478f2c4cd6bb7b1a122205 | [
"MIT"
] | 21 | 2021-11-02T21:35:26.000Z | 2022-01-17T18:50:42.000Z | noxfile.py | rshnn/Practical-RL | f7688e224a342c7f67478f2c4cd6bb7b1a122205 | [
"MIT"
] | 2 | 2021-11-24T15:25:17.000Z | 2022-02-14T19:04:56.000Z | from nox import session
@session(reuse_venv=True)
def docs(session):
session.install("jupyter-book", "sphinx-sitemap", "jupyterbook-latex")
# we need _config.yml _toc.yml
session.run("jb", "build", ".")
| 24.111111 | 74 | 0.686636 | 29 | 217 | 5.034483 | 0.827586 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147465 | 217 | 8 | 75 | 27.125 | 0.789189 | 0.129032 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
a0d898d83393f9e2a6f4299d21f948ceddccd556 | 238 | py | Python | 2008/wxpytris/wxpytris.py | mikiec84/code-for-blog | 79b2264f9a808eb14f624cb3c5ae7624038c043a | [
"Unlicense"
] | 1,199 | 2015-01-06T14:09:37.000Z | 2022-03-29T19:39:51.000Z | 2008/wxpytris/wxpytris.py | mikiec84/code-for-blog | 79b2264f9a808eb14f624cb3c5ae7624038c043a | [
"Unlicense"
] | 25 | 2016-07-29T15:44:01.000Z | 2021-11-19T16:21:01.000Z | 2008/wxpytris/wxpytris.py | mikiec84/code-for-blog | 79b2264f9a808eb14f624cb3c5ae7624038c043a | [
"Unlicense"
] | 912 | 2015-01-04T00:39:50.000Z | 2022-03-29T06:50:22.000Z | import sys
import wx
sys.path.insert(0, 'lib.zip')
from lib.TetrisGame import TetrisGame
if __name__ == '__main__':
app = wx.PySimpleApp()
frame = TetrisGame(None)
frame.Show(True)
app.MainLoop()
| 11.9 | 38 | 0.617647 | 29 | 238 | 4.793103 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005747 | 0.268908 | 238 | 19 | 39 | 12.526316 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 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 | 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 | 2 |
a0e69b24115a09b931149b369f1062a566ff2b61 | 727 | py | Python | python/p002.py | RUiNtheExtinct/project-euler | 5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1 | [
"MIT"
] | null | null | null | python/p002.py | RUiNtheExtinct/project-euler | 5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1 | [
"MIT"
] | null | null | null | python/p002.py | RUiNtheExtinct/project-euler | 5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1 | [
"MIT"
] | null | null | null | # from decimal import Decimal
import collections as coll
import sys
import math as mt
# import random as rd
# import bisect as bi
import time
sys.setrecursionlimit(1000000)
# import numpy as np
def uno():
return int(sys.stdin.readline().strip())
def dos():
return sys.stdin.readline().strip()
def tres()... | 14.836735 | 57 | 0.612105 | 111 | 727 | 4.009009 | 0.45045 | 0.07191 | 0.14382 | 0.188764 | 0.265169 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035398 | 0.222834 | 727 | 48 | 58 | 15.145833 | 0.752212 | 0.181568 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
a0f259a7948c591dd236fbcc2a29325e01018267 | 218 | py | Python | PythonTutor/session-4/conditionIfelse.py | krishnamanchikalapudi/examples.py | 7a373d24df06b8882d07b850435b268a24317b1e | [
"MIT"
] | null | null | null | PythonTutor/session-4/conditionIfelse.py | krishnamanchikalapudi/examples.py | 7a373d24df06b8882d07b850435b268a24317b1e | [
"MIT"
] | 1 | 2020-02-14T13:24:01.000Z | 2020-02-14T13:24:01.000Z | PythonTutor/session-4/conditionIfelse.py | krishnamanchikalapudi/examples.py | 7a373d24df06b8882d07b850435b268a24317b1e | [
"MIT"
] | 2 | 2020-02-14T13:21:20.000Z | 2021-06-30T00:50:33.000Z | """
Session: 4
Topic: Conditional: IF ELSE statement
"""
x = 20
y = 100
if (x > y):
print ('x > y is true')
print ('new line 1')
else:
print('x > y is false')
print('new line 2')
print ('new line 3')
| 13.625 | 37 | 0.550459 | 37 | 218 | 3.243243 | 0.540541 | 0.05 | 0.3 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056962 | 0.275229 | 218 | 15 | 38 | 14.533333 | 0.702532 | 0.220183 | 0 | 0 | 0 | 0 | 0.351852 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.555556 | 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 | 0 | 0 | 0 | 1 | 0 | 2 |
a0f9341f558e2700ed30e7586738a7942212308d | 336 | py | Python | Python-codes-CeV/32-Leap_year.py | engcristian/Python | 726a53e9499fd5d0594572298e59e318f98e2d36 | [
"MIT"
] | 1 | 2021-02-22T03:53:23.000Z | 2021-02-22T03:53:23.000Z | Python-codes-CeV/32-Leap_year.py | engcristian/Python | 726a53e9499fd5d0594572298e59e318f98e2d36 | [
"MIT"
] | null | null | null | Python-codes-CeV/32-Leap_year.py | engcristian/Python | 726a53e9499fd5d0594572298e59e318f98e2d36 | [
"MIT"
] | null | null | null | ''' Calculat the leap year'''
from datetime import date
year = int(input('What year do you want to analyse? Type 0 for the current year.'))
if year == 0:
year = date.today().year
if year%4 ==0 and year%100 != 0 or year%400 == 0:
print(F"The year {year} it's a LEAP year.".)
else:
print(F"The year {year} isn'... | 37.333333 | 84 | 0.645833 | 64 | 336 | 3.390625 | 0.546875 | 0.110599 | 0.092166 | 0.119816 | 0.156682 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.202381 | 336 | 9 | 85 | 37.333333 | 0.764925 | 0 | 0 | 0 | 0 | 0 | 0.422078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a0fef1eaf1459e3aa6754a55ca8204b402a0ab05 | 785 | py | Python | server/app/forms.py | zhancongc/bugaboo | ac78e7e0274492273554b089122196b7869e8bfb | [
"Apache-2.0"
] | null | null | null | server/app/forms.py | zhancongc/bugaboo | ac78e7e0274492273554b089122196b7869e8bfb | [
"Apache-2.0"
] | null | null | null | server/app/forms.py | zhancongc/bugaboo | ac78e7e0274492273554b089122196b7869e8bfb | [
"Apache-2.0"
] | null | null | null | """
Project : bugaboo
Filename : forms.py
Author : zhancongc
Description : 表单管理
"""
from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, TextAreaField, SelectField, FileField, IntegerField, PasswordField, SubmitField
from wtforms.validators import DataRequired
class GodLoginForm... | 23.787879 | 126 | 0.718471 | 66 | 785 | 8.469697 | 0.530303 | 0.157424 | 0.100179 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170701 | 785 | 32 | 127 | 24.53125 | 0.858679 | 0.123567 | 0 | 0.181818 | 0 | 0 | 0.072755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0.272727 | 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 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
9d1277aded11ab70c99a610d14fb0758ed951638 | 8,195 | py | Python | utils/mininet/mininet_builder.py | jstavr/SDN_Project | 9fe5a65f46eadf15e1da43d9f8125b8c15161bbd | [
"Apache-2.0"
] | null | null | null | utils/mininet/mininet_builder.py | jstavr/SDN_Project | 9fe5a65f46eadf15e1da43d9f8125b8c15161bbd | [
"Apache-2.0"
] | null | null | null | utils/mininet/mininet_builder.py | jstavr/SDN_Project | 9fe5a65f46eadf15e1da43d9f8125b8c15161bbd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
Description: Load topology in Mininet
Author: James Hongyi Zeng (hyzeng_at_stanford.edu)
'''
from argparse import ArgumentParser
from socket import gethostbyname
from os import getuid
from mininet.log import lg, info
from mininet.cli import CLI
from mininet.net import Mininet
from ... | 39.210526 | 150 | 0.598292 | 1,008 | 8,195 | 4.65377 | 0.223214 | 0.025368 | 0.017054 | 0.023876 | 0.295886 | 0.229802 | 0.152206 | 0.11213 | 0.056704 | 0.045619 | 0 | 0.012776 | 0.302746 | 8,195 | 208 | 151 | 39.399038 | 0.80819 | 0 | 0 | 0.122449 | 0 | 0.040816 | 0.091611 | 0.013245 | 0 | 0 | 0.000736 | 0 | 0 | 0 | null | null | 0.173469 | 0 | null | null | 0.040816 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
9d26ca6234d4434fd99a9aa1e9b161d86a72613c | 2,649 | py | Python | competitive_k_means.py | QLightman/competitive_k_means | 264a3da409177e40f150da1107d00e149ff1e125 | [
"MIT"
] | 1 | 2019-09-03T09:56:43.000Z | 2019-09-03T09:56:43.000Z | competitive_k_means.py | QLightman/competitive_k_means | 264a3da409177e40f150da1107d00e149ff1e125 | [
"MIT"
] | null | null | null | competitive_k_means.py | QLightman/competitive_k_means | 264a3da409177e40f150da1107d00e149ff1e125 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import copy
k = 4
ratio=0.95
def competitive_k_means(save_plot=False):
plt.figure(figsize=(12, 12))
X, y =generate_dataset()
plt.scatter(X[:,0],X[:,1],c=y,marker='+')
plt.title("results from the data")
if save_plot:
plt.savefig("data.png")
... | 33.1125 | 104 | 0.609287 | 414 | 2,649 | 3.705314 | 0.241546 | 0.140808 | 0.062581 | 0.082138 | 0.307692 | 0.166232 | 0.126467 | 0.082138 | 0.029987 | 0 | 0 | 0.024209 | 0.235938 | 2,649 | 79 | 105 | 33.531646 | 0.733696 | 0.043413 | 0 | 0.130435 | 1 | 0 | 0.023715 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.014493 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d35413c71268ad28c881bbed6ac0a459290c12c | 495 | py | Python | chargingMethod.py | IllllIIlI/TeamProjPrac | da0a3e5ea9f6204c35c4a969eb522da05f5fc05c | [
"MIT"
] | null | null | null | chargingMethod.py | IllllIIlI/TeamProjPrac | da0a3e5ea9f6204c35c4a969eb522da05f5fc05c | [
"MIT"
] | null | null | null | chargingMethod.py | IllllIIlI/TeamProjPrac | da0a3e5ea9f6204c35c4a969eb522da05f5fc05c | [
"MIT"
] | null | null | null | def guide():
print("If you want to be informed about how to charge the electric vehicle, please enter Y.")
answer = input()
if answer == "Y":
print("1.Stop in front of the charger\n" "2.Check the charging connector for my car\n"
"3.Connect to the vehicle\n" "4.Set charge amount\n"
... | 61.875 | 97 | 0.656566 | 78 | 495 | 4.166667 | 0.730769 | 0.067692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016349 | 0.258586 | 495 | 8 | 98 | 61.875 | 0.86921 | 0 | 0 | 0 | 0 | 0 | 0.709677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d364f1bcfe20f4a4dd1ba1db0e841b93b086bab | 1,672 | py | Python | yagoMoviesDown.py | afshinsadeghi/DBPediaDownloder | f9c98cab6fc7ce1d4f1c707ce1491c5dacbaf2cc | [
"Apache-2.0"
] | 1 | 2019-04-02T11:12:52.000Z | 2019-04-02T11:12:52.000Z | yagoMoviesDown.py | afshinsadeghi/DBPediaDownloder | f9c98cab6fc7ce1d4f1c707ce1491c5dacbaf2cc | [
"Apache-2.0"
] | null | null | null | yagoMoviesDown.py | afshinsadeghi/DBPediaDownloder | f9c98cab6fc7ce1d4f1c707ce1491c5dacbaf2cc | [
"Apache-2.0"
] | null | null | null | import os
from time import sleep
import requests
querysub0 = 'https://linkeddata1.calcul.u-psud.fr/sparql?default-graph-uri=&query=construct%7B+%3Fs+%3Fp+%3Fo%7D+where+%7B+%0D%0Aselect+distinct+%3Fs+%3Fp+%3Fo+where+%7B%0D%0A%7B%0D%0A%3Fs1+++%3Chttp%3A%2F%2Fyago-knowledge.org%2Fresource%2FactedIn%3E+++%3Fs+.%0D%0A%3Fs2... | 59.714286 | 819 | 0.692584 | 270 | 1,672 | 4.255556 | 0.437037 | 0.048738 | 0.052219 | 0.083551 | 0.337685 | 0.319408 | 0.319408 | 0.319408 | 0.319408 | 0.127067 | 0 | 0.100667 | 0.102871 | 1,672 | 27 | 820 | 61.925926 | 0.665333 | 0.039474 | 0 | 0 | 0 | 0.043478 | 0.633812 | 0.024953 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.130435 | 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 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
9d5477ef2956d3615e64662b0ab23440b2cbff69 | 447 | py | Python | lab/__init__.py | patel-zeel/lab | cc0df2c03196863041e78fa4179445341e86958c | [
"MIT"
] | 36 | 2018-05-08T20:54:21.000Z | 2022-02-24T09:15:58.000Z | lab/__init__.py | patel-zeel/lab | cc0df2c03196863041e78fa4179445341e86958c | [
"MIT"
] | 4 | 2021-06-24T11:59:29.000Z | 2022-02-01T15:51:30.000Z | lab/__init__.py | patel-zeel/lab | cc0df2c03196863041e78fa4179445341e86958c | [
"MIT"
] | 3 | 2021-02-14T13:00:26.000Z | 2021-12-10T08:55:17.000Z | import sys
from plum import Dispatcher
B = sys.modules[__name__] # Allow both import styles.
dispatch = Dispatcher() # This dispatch namespace will be used everywhere.
from .generic import *
from .shaping import *
from .linear_algebra import *
from .random import *
from .numpy import *
from .types import *
from ... | 22.35 | 75 | 0.756152 | 65 | 447 | 5.061538 | 0.569231 | 0.182371 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167785 | 447 | 19 | 76 | 23.526316 | 0.884409 | 0.324385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
9d56f0959997626e16345a92ca50c1b01d2ed5e6 | 105 | py | Python | ibms_project/sfm/apps.py | mohdbakhrayba/ibms | 029e1f3bf108586289c65bb1d547f86851f9494f | [
"Apache-2.0"
] | null | null | null | ibms_project/sfm/apps.py | mohdbakhrayba/ibms | 029e1f3bf108586289c65bb1d547f86851f9494f | [
"Apache-2.0"
] | null | null | null | ibms_project/sfm/apps.py | mohdbakhrayba/ibms | 029e1f3bf108586289c65bb1d547f86851f9494f | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class SFMConfig(AppConfig):
name = 'sfm'
verbose_name = 'SFM'
| 17.5 | 33 | 0.704762 | 13 | 105 | 5.615385 | 0.769231 | 0.191781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 105 | 5 | 34 | 21 | 0.869048 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 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 | 0 | 0 | 0 | 2 |
9d5e11c9180f5fb664452c5f269722fdf9e6a4db | 140 | py | Python | Homework/Homework2/2_3.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | Homework/Homework2/2_3.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | Homework/Homework2/2_3.py | 404nofound/CS521-Info-Str-Python | 2ead691c519f29713419e79d600a2d2a1c87d1c1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
feet = eval(input("Enter a value for feet: "))
meter = feet * 0.305
print (feet, "feet is %.4f meters" %(meter))
| 17.5 | 46 | 0.585714 | 22 | 140 | 3.727273 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.2 | 140 | 7 | 47 | 20 | 0.678571 | 0.15 | 0 | 0 | 0 | 0 | 0.367521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
19b32c34ea299311dabdf3d678344f668cb1f1a4 | 234 | py | Python | stone/config.py | ichengplus/mpmatrix | 41cf1ac48abe9aef1b92f1174157608a60e30da0 | [
"Apache-2.0"
] | null | null | null | stone/config.py | ichengplus/mpmatrix | 41cf1ac48abe9aef1b92f1174157608a60e30da0 | [
"Apache-2.0"
] | 3 | 2021-03-10T16:23:59.000Z | 2022-02-13T12:02:00.000Z | stone/config.py | ichengplus/mpmatrix | 41cf1ac48abe9aef1b92f1174157608a60e30da0 | [
"Apache-2.0"
] | null | null | null | REDIS_URL = "redis://redis:6379/0"
DEBUG = True
TESTING = False
JOBS = [
{
'id': 'actoken_refresh',
'func': 'actoken:refresh',
'args': None,
'trigger': 'interval',
'seconds': 7000
}
]
| 15.6 | 34 | 0.504274 | 23 | 234 | 5.043478 | 0.826087 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.320513 | 234 | 14 | 35 | 16.714286 | 0.672956 | 0 | 0 | 0 | 0 | 0 | 0.351931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
19eeab362b9fb0e2d6b801d0a756ec8fc09dd20a | 2,837 | py | Python | usps_tools/exceptions.py | pedrovagner/usps-tools | 6a241fda35db6590684a534b9c3cf78a589ea09d | [
"MIT"
] | null | null | null | usps_tools/exceptions.py | pedrovagner/usps-tools | 6a241fda35db6590684a534b9c3cf78a589ea09d | [
"MIT"
] | null | null | null | usps_tools/exceptions.py | pedrovagner/usps-tools | 6a241fda35db6590684a534b9c3cf78a589ea09d | [
"MIT"
] | null | null | null | import traceback
from typing import Optional
from .i18n import _
class UspsToolsException(Exception):
"""
Base class for all errors.
"""
def __init__(self, message: Optional[str] = None, origin: Exception = None):
"""
:param message:
:param origin:
"""
super()._... | 27.813725 | 114 | 0.601692 | 301 | 2,837 | 5.468439 | 0.242525 | 0.029769 | 0.04678 | 0.076549 | 0.515188 | 0.445322 | 0.445322 | 0.445322 | 0.445322 | 0.415553 | 0 | 0.000989 | 0.287275 | 2,837 | 101 | 115 | 28.089109 | 0.813056 | 0.183292 | 0 | 0.352941 | 0 | 0 | 0.099442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.088235 | 0 | 0.558824 | 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 | 0 | 1 | 0 | 0 | 2 |
19f364dac17ba32accfedb9fef8b6459dc8369f0 | 114 | py | Python | playground/step2/test1.py | jhson989/jhML | eb8b76d3b47df858e82cd971bb32794e12de4747 | [
"Apache-2.0"
] | null | null | null | playground/step2/test1.py | jhson989/jhML | eb8b76d3b47df858e82cd971bb32794e12de4747 | [
"Apache-2.0"
] | null | null | null | playground/step2/test1.py | jhson989/jhML | eb8b76d3b47df858e82cd971bb32794e12de4747 | [
"Apache-2.0"
] | null | null | null |
from core import Variable
from operation import *
a = Variable(2)
b = square(a)
c = square(b)
print(c.data)
| 8.769231 | 25 | 0.675439 | 19 | 114 | 4.052632 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.210526 | 114 | 12 | 26 | 9.5 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 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 | 0 | 0 | 0 | 2 |
19f3a16361bc6bc5804201c9d2a4c2d8f966a4a0 | 106 | py | Python | sharepoint/__init__.py | nessalc/python-sharepoint | d264cf5be56c8f9f619a4f72fd039c167cd01ba8 | [
"MIT"
] | 1 | 2019-06-03T03:16:44.000Z | 2019-06-03T03:16:44.000Z | sharepoint/__init__.py | nessalc/python-sharepoint | d264cf5be56c8f9f619a4f72fd039c167cd01ba8 | [
"MIT"
] | null | null | null | sharepoint/__init__.py | nessalc/python-sharepoint | d264cf5be56c8f9f619a4f72fd039c167cd01ba8 | [
"MIT"
] | null | null | null | name = 'sharepoint'
from .sharepoint import SharePointSite
__author__='James Classen'
__version__='0.0.2' | 21.2 | 38 | 0.792453 | 13 | 106 | 5.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.09434 | 106 | 5 | 39 | 21.2 | 0.760417 | 0 | 0 | 0 | 0 | 0 | 0.261682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19f928aecd4ff7011c0373aab909dea8913438c6 | 1,373 | py | Python | config.py | ShallweJohn/MonsterBlog | f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5 | [
"MIT"
] | null | null | null | config.py | ShallweJohn/MonsterBlog | f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5 | [
"MIT"
] | 3 | 2021-03-18T20:36:25.000Z | 2021-09-07T23:54:49.000Z | config.py | ShallweJohn/MonsterBlog | f3bd0bdab99af6ba06b7b8fb0eaa6770115fc9c5 | [
"MIT"
] | null | null | null | import os
import redis
import logging
class Config(object):
#配置数据库连接
SQLALCHEMY_DATABASE_URI = 'mysql://root:19920917@127.0.0.1:3306/data_monster'
SQLALCHEMY_TRACK_MODIFICATIONS = False
#配置redis数据库
REDIS_HOST = '127.0.0.1'
REDIS_PORT = 6379
# 配置flask_session
SESSION_TYPE = 'redis'
... | 19.614286 | 81 | 0.699927 | 164 | 1,373 | 5.621951 | 0.47561 | 0.039046 | 0.052061 | 0.013015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043796 | 0.201748 | 1,373 | 69 | 82 | 19.898551 | 0.797445 | 0.029133 | 0 | 0.108108 | 0 | 0 | 0.194954 | 0.075688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.054054 | 0.081081 | 0 | 0.810811 | 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 | 0 | 1 | 0 | 0 | 2 |
19fb5606842651b084278976b916a2b6ffe5d1f9 | 328 | py | Python | configuration/mmd_configuration.py | matthewfaw/mixnmatch | 11b923b941198c02e380011853beb70169f024ac | [
"Apache-2.0"
] | 1 | 2020-11-16T04:59:48.000Z | 2020-11-16T04:59:48.000Z | configuration/mmd_configuration.py | matthewfaw/mixnmatch | 11b923b941198c02e380011853beb70169f024ac | [
"Apache-2.0"
] | null | null | null | configuration/mmd_configuration.py | matthewfaw/mixnmatch | 11b923b941198c02e380011853beb70169f024ac | [
"Apache-2.0"
] | 1 | 2019-12-03T21:43:02.000Z | 2019-12-03T21:43:02.000Z |
class MMDConfiguration:
def __init__(self,
mmd_rbf_gamma,
mmd_rbf_ncomponents,
mmd_representative_set_size):
self.mmd_rbf_gamma=mmd_rbf_gamma
self.mmd_rbf_ncomponents=mmd_rbf_ncomponents
self.mmd_representative_set_size=mmd_representative_s... | 32.8 | 68 | 0.685976 | 38 | 328 | 5.263158 | 0.315789 | 0.18 | 0.15 | 0.36 | 0.21 | 0.21 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27439 | 328 | 9 | 69 | 36.444444 | 0.840336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
19fe235467f017d20a959660a872441f0b170a74 | 770 | py | Python | infobip_channels/whatsapp/models/response/get_templates.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | infobip_channels/whatsapp/models/response/get_templates.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | infobip_channels/whatsapp/models/response/get_templates.py | infobip-community/infobip-api-python-sdk | 5ffc5ab877ee1748aa29391f991c8c5324387487 | [
"MIT"
] | null | null | null | from typing import List, Optional
from pydantic import AnyHttpUrl
from infobip_channels.core.models import CamelCaseModel, ResponseBase
class Button(CamelCaseModel):
text: str
type: str
phone_number: Optional[str] = None
url: Optional[AnyHttpUrl] = None
class Header(CamelCaseModel):
format: st... | 19.25 | 69 | 0.711688 | 87 | 770 | 6.252874 | 0.448276 | 0.060662 | 0.082721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21039 | 770 | 39 | 70 | 19.74359 | 0.894737 | 0 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
c210287e380e114135144808518dac8414c8a7fc | 1,405 | py | Python | authors/apps/authentication/tests/test_models.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | null | null | null | authors/apps/authentication/tests/test_models.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | 8 | 2020-02-12T03:04:07.000Z | 2022-03-12T00:07:31.000Z | authors/apps/authentication/tests/test_models.py | C3real-kill3r/binary-jungle-backend | 5333138fbce901e75accf5487b10990979afa571 | [
"MIT"
] | null | null | null | from django.test import TestCase
from authors.apps.authentication.models import (
User
)
class UserModelTest(TestCase):
"""
This tests the User model class, ability to create a user and create a super user.
"""
def test_create_user(self):
"""
Checks whether a user can be created... | 30.543478 | 112 | 0.64484 | 161 | 1,405 | 5.503106 | 0.329193 | 0.031603 | 0.076749 | 0.047404 | 0.291196 | 0.291196 | 0.226862 | 0.226862 | 0.128668 | 0.128668 | 0 | 0 | 0.254093 | 1,405 | 45 | 113 | 31.222222 | 0.84542 | 0.222064 | 0 | 0.111111 | 0 | 0 | 0.101891 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.222222 | false | 0.222222 | 0.111111 | 0 | 0.388889 | 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 | 0 | 0 | 0 | 2 |
c21a45651bf528b945d22bdb962a7e3a45ad0e4d | 91 | py | Python | backend/gunicorn_config_worker.py | matan-h/futurecoder | 5117cbab7ed2bc41fe9d4763038d9c4a0aba064e | [
"MIT"
] | null | null | null | backend/gunicorn_config_worker.py | matan-h/futurecoder | 5117cbab7ed2bc41fe9d4763038d9c4a0aba064e | [
"MIT"
] | 1 | 2022-02-28T01:35:27.000Z | 2022-02-28T01:35:27.000Z | backend/gunicorn_config_worker.py | matan-h/futurecoder | 5117cbab7ed2bc41fe9d4763038d9c4a0aba064e | [
"MIT"
] | null | null | null | bind = "0.0.0.0:5000"
threads = 10
worker_class = "gthread"
accesslog = '-'
errorlog = '-'
| 15.166667 | 24 | 0.626374 | 13 | 91 | 4.307692 | 0.769231 | 0.107143 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.164835 | 91 | 5 | 25 | 18.2 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c222e22c9b1710ce4667ef563dce67f96dc33915 | 163 | py | Python | packages/raspi_ip/setup.py | atoy322/PiDrive | 8758f4b5dae4a0187ce0a769c4146628c88015de | [
"MIT"
] | null | null | null | packages/raspi_ip/setup.py | atoy322/PiDrive | 8758f4b5dae4a0187ce0a769c4146628c88015de | [
"MIT"
] | 2 | 2021-09-21T06:32:58.000Z | 2021-09-22T23:15:18.000Z | packages/raspi_ip/setup.py | atoy322/PiDrive | 8758f4b5dae4a0187ce0a769c4146628c88015de | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name="raspi_ip",
version="1.0.0",
author="atoy322",
description="",
long_description=""
)
| 14.818182 | 43 | 0.644172 | 19 | 163 | 5.368421 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046512 | 0.208589 | 163 | 10 | 44 | 16.3 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
c2334b533c25c85bcfe5823b2fbd3fe0b9cec5f6 | 7,933 | py | Python | ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py | ceos-seo/Data_Cube_v2 | 81c3be66153ea123b5d21cf9ec7f59ccb7a2050a | [
"Apache-2.0"
] | 27 | 2016-08-16T18:22:47.000Z | 2018-08-25T17:18:15.000Z | ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py | data-cube/CEOS-cube | 31baeba08d8e8470c4663c18aaf9056431d9c49f | [
"Apache-2.0"
] | null | null | null | ui/django_site_v2/data_cube_ui/utils/dc_mosaic.py | data-cube/CEOS-cube | 31baeba08d8e8470c4663c18aaf9056431d9c49f | [
"Apache-2.0"
] | 27 | 2016-08-26T18:14:40.000Z | 2021-12-24T08:41:29.000Z |
# Copyright 2016 United States Government as represented by the Administrator
# of the National Aeronautics and Space Administration. All Rights Reserved.
#
# Portion of this code is Copyright Geoscience Australia, Licensed under the
# Apache License, Version 2.0 (the "License"); you may not use this file
# except in ... | 40.682051 | 173 | 0.704399 | 1,150 | 7,933 | 4.690435 | 0.189565 | 0.068409 | 0.022247 | 0.017798 | 0.687616 | 0.674824 | 0.66574 | 0.659066 | 0.63515 | 0.631999 | 0 | 0.013219 | 0.208496 | 7,933 | 194 | 174 | 40.891753 | 0.845835 | 0.391025 | 0 | 0.725275 | 0 | 0 | 0.017559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043956 | false | 0 | 0.10989 | 0 | 0.197802 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c23f39dcaa9bc21fb37ef18d6de38e47058d0da3 | 514 | py | Python | hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 1 | 2020-10-16T16:29:01.000Z | 2020-10-16T16:29:01.000Z | hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 365 | 2020-02-03T12:46:53.000Z | 2022-02-27T17:20:46.000Z | hlwtadmin/migrations/0044_gigfinderurl_ignore_periods.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.7 on 2021-01-26 09:57
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hlwtadmin', '0043_auto_20210126_0833'),
]
operations = [
migrations.AddField(
model_name='... | 25.7 | 126 | 0.659533 | 58 | 514 | 5.741379 | 0.758621 | 0.078078 | 0.126126 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080402 | 0.225681 | 514 | 19 | 127 | 27.052632 | 0.756281 | 0.087549 | 0 | 0 | 1 | 0 | 0.124197 | 0.049251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dfb0e4025d32f8743112eeea3ef16b5393035552 | 212 | py | Python | BufferStockModel/run.py | bbardoczy/ConsumptionSavingNotebooks | 91811f784ec61fe2f11f8c9e0e172d085574f57c | [
"MIT"
] | 1 | 2022-03-09T14:43:29.000Z | 2022-03-09T14:43:29.000Z | BufferStockModel/run.py | bbardoczy/ConsumptionSavingNotebooks | 91811f784ec61fe2f11f8c9e0e172d085574f57c | [
"MIT"
] | null | null | null | BufferStockModel/run.py | bbardoczy/ConsumptionSavingNotebooks | 91811f784ec61fe2f11f8c9e0e172d085574f57c | [
"MIT"
] | null | null | null | from BufferStockModel import BufferStockModelClass
updpar = dict()
updpar["Np"] = 1500
updpar["Nm"] = 1500
updpar["Na"] = 1500
model = BufferStockModelClass(name="baseline",solmethod="egm",**updpar)
model.test()
| 26.5 | 71 | 0.745283 | 24 | 212 | 6.583333 | 0.666667 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.09434 | 212 | 7 | 72 | 30.285714 | 0.760417 | 0 | 0 | 0 | 0 | 0 | 0.080189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 2 |
dfc68f46a49d56c4e9d2e4ea5761354ae3746b5b | 323 | py | Python | tests/func_eqconstr.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | 1 | 2022-03-16T16:37:11.000Z | 2022-03-16T16:37:11.000Z | tests/func_eqconstr.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | tests/func_eqconstr.py | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | '''Functional tests for the equational constraint.'''
import cytest # from ./lib; must be first
class TestEqConstr(cytest.FunctionalTestCase):
SOURCE_DIR = 'data/curry/eqconstr/'
PRINT_SKIPPED_GOALS = True
# RUN_ONLY = ['a0_.[02468][048]', 'a0b0c0_.[037][048]', 'prog0.'] # A subset for quick checks.
# SKIP = [... | 32.3 | 96 | 0.693498 | 41 | 323 | 5.317073 | 0.926829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069091 | 0.148607 | 323 | 9 | 97 | 35.888889 | 0.723636 | 0.544892 | 0 | 0 | 0 | 0 | 0.145985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
dfdcfb5c19d0b0d911ba4d7178ec8d4e8e195552 | 1,191 | py | Python | blt_net/pcmad/config_pcmad.py | AlexD123123/BLT-net | 97a06795137e0d9fc9332bbb342ad3248db7dc37 | [
"Apache-2.0"
] | 1 | 2022-01-13T07:23:52.000Z | 2022-01-13T07:23:52.000Z | blt_net/pcmad/config_pcmad.py | AlexD123123/BLT-net | 97a06795137e0d9fc9332bbb342ad3248db7dc37 | [
"Apache-2.0"
] | null | null | null | blt_net/pcmad/config_pcmad.py | AlexD123123/BLT-net | 97a06795137e0d9fc9332bbb342ad3248db7dc37 | [
"Apache-2.0"
] | null | null | null | from yacs.config import CfgNode as CN
def get_cfg_defaults():
"""Get a yacs CfgNode object with default values for my_project."""
# Return a clone so that the defaults will not be altered
# This is for the "local variable" use pattern
return _C.clone()
_C = CN()
_C.SYSTEM = CN()
_C.config_name = 'roi_config_d... | 29.775 | 87 | 0.565071 | 193 | 1,191 | 3.279793 | 0.440415 | 0.050553 | 0.037915 | 0.056872 | 0.276461 | 0.276461 | 0.238547 | 0.199052 | 0.199052 | 0.107425 | 0 | 0.263617 | 0.229219 | 1,191 | 39 | 88 | 30.538462 | 0.425926 | 0.288833 | 0 | 0 | 0 | 0 | 0.021557 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dff6538ad1295913d7be8979ad8998c9e8d8ebc3 | 4,555 | py | Python | python/tests/range.py | mizuki-nana/coreVM | 1ff863b890329265a86ff46b0fdf7bac8e362f0e | [
"MIT"
] | 2 | 2017-02-12T21:59:54.000Z | 2017-02-13T14:57:48.000Z | python/tests/range.py | mizuki-nana/coreVM | 1ff863b890329265a86ff46b0fdf7bac8e362f0e | [
"MIT"
] | null | null | null | python/tests/range.py | mizuki-nana/coreVM | 1ff863b890329265a86ff46b0fdf7bac8e362f0e | [
"MIT"
] | null | null | null | # The MIT License (MIT)
# Copyright (c) 2015 Yanzheng Li
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify,... | 31.413793 | 80 | 0.591438 | 598 | 4,555 | 4.314381 | 0.219064 | 0.155039 | 0.16124 | 0.153488 | 0.595349 | 0.51124 | 0.400775 | 0.34031 | 0.298062 | 0.252326 | 0 | 0.03889 | 0.192755 | 4,555 | 144 | 81 | 31.631944 | 0.662769 | 0.372558 | 0 | 0.159091 | 0 | 0 | 0.074717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
5f06913d44d8487508a5267f1e736e022aea0e78 | 379 | py | Python | backend/api/tests/models/location_tests.py | Pachwenko/ember-django-example | cfed8a4519e307ea72a097336f9b07bfa5ee576f | [
"MIT"
] | null | null | null | backend/api/tests/models/location_tests.py | Pachwenko/ember-django-example | cfed8a4519e307ea72a097336f9b07bfa5ee576f | [
"MIT"
] | 1 | 2022-01-17T00:51:15.000Z | 2022-01-17T00:51:15.000Z | backend/api/tests/models/location_tests.py | Pachwenko/ember-django-example | cfed8a4519e307ea72a097336f9b07bfa5ee576f | [
"MIT"
] | null | null | null | from decimal import Decimal
import pytest
from api.tests.factories.location import LocationFactory
# potentially helpful fixtures provided by pytest-django
# https://pytest-django.readthedocs.io/en/latest/helpers.html#fixtures
@pytest.mark.django_db()
def test_create_rental():
LocationFactory(
lat=Decim... | 23.6875 | 70 | 0.759894 | 47 | 379 | 6.06383 | 0.680851 | 0.091228 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067692 | 0.14248 | 379 | 15 | 71 | 25.266667 | 0.809231 | 0.3219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.333333 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 2 |
a03080839b2f11f2ef3a1cda34e010ada93f1947 | 2,619 | py | Python | tofnet/training/losses.py | victorjoos/tof2net | 068f5f08a241dbfb950251bea52fd9379466bf2f | [
"MIT"
] | null | null | null | tofnet/training/losses.py | victorjoos/tof2net | 068f5f08a241dbfb950251bea52fd9379466bf2f | [
"MIT"
] | 8 | 2021-02-02T23:07:37.000Z | 2022-03-12T00:51:26.000Z | tofnet/training/losses.py | victorjoos/tof2net | 068f5f08a241dbfb950251bea52fd9379466bf2f | [
"MIT"
] | 2 | 2020-10-01T08:23:24.000Z | 2020-11-09T22:01:47.000Z | import numpy as np
import operator
from itertools import cycle
from torch import nn
import torch.nn.functional as F
import torch
from torch.nn.modules.loss import *
from kornia.losses import *
class Loss:
def compute(self, output, target):
raise NotImplementedError()
def __call__(self, *args, **kwargs... | 30.811765 | 124 | 0.655594 | 323 | 2,619 | 5.089783 | 0.244582 | 0.04927 | 0.054745 | 0.09854 | 0.282238 | 0.19708 | 0.058394 | 0.058394 | 0.058394 | 0.058394 | 0 | 0.001463 | 0.217259 | 2,619 | 84 | 125 | 31.178571 | 0.800488 | 0 | 0 | 0.118644 | 0 | 0 | 0.007877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.305085 | false | 0 | 0.135593 | 0.186441 | 0.745763 | 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 | 0 | 0 | 0 | 2 |
a032b7d1d6d08d471ad93367224c6b5463ad7672 | 392 | py | Python | extract_emails/email_filters/email_filter_interface.py | trisongz/extract-emails | 22485fd25edac993d448bf8e8af51c551694e5cd | [
"MIT"
] | 1 | 2020-11-22T01:29:41.000Z | 2020-11-22T01:29:41.000Z | extract_emails/email_filters/email_filter_interface.py | chiaminchuang/extract-emails | d7549186549a0776cfa28bc946550fd79b04043e | [
"MIT"
] | null | null | null | extract_emails/email_filters/email_filter_interface.py | chiaminchuang/extract-emails | d7549186549a0776cfa28bc946550fd79b04043e | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List
class EmailFilterInterface(ABC):
"""
Interface for email filters
"""
@abstractmethod
def filter(self, emails: List[str]) -> List[str]:
"""
Filter emails by params
:param: list(str) emails: list of emails for filt... | 20.631579 | 62 | 0.614796 | 44 | 392 | 5.477273 | 0.568182 | 0.087137 | 0.099585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295918 | 392 | 18 | 63 | 21.777778 | 0.873188 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
a0355bef2d29e903faa1a547fedc8fc74c627d30 | 537 | py | Python | metaopt/concurrent/worker/worker.py | cigroup-ol/metaopt | 6dfd5105d3c6eaf00f96670175cae16021069514 | [
"BSD-3-Clause"
] | 8 | 2015-02-02T21:42:23.000Z | 2019-06-30T18:12:43.000Z | metaopt/concurrent/worker/worker.py | cigroup-ol/metaopt | 6dfd5105d3c6eaf00f96670175cae16021069514 | [
"BSD-3-Clause"
] | 4 | 2015-09-24T14:12:38.000Z | 2021-12-08T22:42:52.000Z | metaopt/concurrent/worker/worker.py | cigroup-ol/metaopt | 6dfd5105d3c6eaf00f96670175cae16021069514 | [
"BSD-3-Clause"
] | 6 | 2015-02-27T12:35:33.000Z | 2020-10-15T21:04:02.000Z | # -*- coding: utf-8 -*-
"""
Minimal worker implementation.
"""
# Future
from __future__ import absolute_import, division, print_function, \
unicode_literals, with_statement
# First Party
from metaopt.concurrent.worker.base import BaseWorker
class Worker(BaseWorker):
"""Minimal worker implementation."""
... | 20.653846 | 67 | 0.687151 | 59 | 537 | 5.898305 | 0.59322 | 0.068966 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002347 | 0.206704 | 537 | 25 | 68 | 21.48 | 0.814554 | 0.191806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0.083333 | 0.583333 | 0.083333 | 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 | 0 | 1 | 0 | 0 | 2 |
a04150678757a161b57d09c46ef15266722ed6e3 | 643 | py | Python | tourney/commands/stats_command.py | netromdk/tourney | 192d9dec935ac087969a810870b784e3d626b9d5 | [
"MIT"
] | 1 | 2022-01-11T07:29:49.000Z | 2022-01-11T07:29:49.000Z | tourney/commands/stats_command.py | netromdk/tourney | 192d9dec935ac087969a810870b784e3d626b9d5 | [
"MIT"
] | 7 | 2018-10-26T08:10:23.000Z | 2021-08-17T06:13:27.000Z | tourney/commands/stats_command.py | netromdk/tourney | 192d9dec935ac087969a810870b784e3d626b9d5 | [
"MIT"
] | 2 | 2018-08-24T13:43:02.000Z | 2019-02-20T09:09:19.000Z | from .command import Command
from datetime import datetime
import calendar
from tourney.util import this_season_filter
from tourney.stats import Stats
class StatsCommand(Command):
def __init__(self):
super(StatsCommand, self).__init__("stats")
self.set_ephemeral(False)
def execute(self, lookup=None):
... | 26.791667 | 91 | 0.748056 | 85 | 643 | 5.470588 | 0.541176 | 0.060215 | 0.068817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157076 | 643 | 23 | 92 | 27.956522 | 0.857934 | 0 | 0 | 0 | 0 | 0 | 0.14619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a04f7f2d5934d5148efee6d0cd9e612d55de51c8 | 4,716 | py | Python | dice_vtk/geometries/geometry_base.py | dicehub/dice_vtk | ab8d9f34ae359461db5687d05bf38548bbaca6ea | [
"MIT"
] | null | null | null | dice_vtk/geometries/geometry_base.py | dicehub/dice_vtk | ab8d9f34ae359461db5687d05bf38548bbaca6ea | [
"MIT"
] | null | null | null | dice_vtk/geometries/geometry_base.py | dicehub/dice_vtk | ab8d9f34ae359461db5687d05bf38548bbaca6ea | [
"MIT"
] | null | null | null | # Standard Python modules
# =======================
import weakref
from abc import ABCMeta, abstractmethod, abstractproperty
# External modules
# ================
from vtk import vtkActor
from vtk import vtkMapper
from vtk import vtkPolyDataAlgorithm
from vtk import vtkBoundingBox
# DICE modules
# ============
from d... | 23.117647 | 71 | 0.601569 | 514 | 4,716 | 5.266537 | 0.192607 | 0.04433 | 0.046546 | 0.053565 | 0.166236 | 0.087181 | 0.058367 | 0.029553 | 0.029553 | 0 | 0 | 0.001221 | 0.305131 | 4,716 | 203 | 72 | 23.231527 | 0.82484 | 0.022689 | 0 | 0.38 | 0 | 0 | 0.014342 | 0.005432 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.113333 | 0.046667 | 0.04 | 0.393333 | 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 | 0 | 0 | 0 | 2 |
a05b0d63377d071367b35f0034a3b68acdab2c2d | 245 | py | Python | run/lemmatize.py | osmanbaskaya/mapping-impact | 8024dd3b916ac2dfc336221dd32faba4c0a98442 | [
"MIT"
] | 1 | 2016-03-14T15:28:22.000Z | 2016-03-14T15:28:22.000Z | run/lemmatize.py | osmanbaskaya/mapping-impact | 8024dd3b916ac2dfc336221dd32faba4c0a98442 | [
"MIT"
] | null | null | null | run/lemmatize.py | osmanbaskaya/mapping-impact | 8024dd3b916ac2dfc336221dd32faba4c0a98442 | [
"MIT"
] | null | null | null | #! /usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Osman Baskaya"
from nltk.stem.wordnet import WordNetLemmatizer
import sys
lmtzr = WordNetLemmatizer()
for line in sys.stdin:
print ' '.join(map(lmtzr.lemmatize, line.split()))
| 14.411765 | 54 | 0.689796 | 31 | 245 | 5.322581 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.163265 | 245 | 16 | 55 | 15.3125 | 0.8 | 0.159184 | 0 | 0 | 0 | 0 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.166667 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a05f0813319812f0e9d30a1ddfef3dd56345c333 | 9,265 | py | Python | scirex/metrics/paired_bootstrap.py | viswavi/SciREX | 8e4b402e95d438c92eeecee315d389903a963b8d | [
"Apache-2.0"
] | null | null | null | scirex/metrics/paired_bootstrap.py | viswavi/SciREX | 8e4b402e95d438c92eeecee315d389903a963b8d | [
"Apache-2.0"
] | null | null | null | scirex/metrics/paired_bootstrap.py | viswavi/SciREX | 8e4b402e95d438c92eeecee315d389903a963b8d | [
"Apache-2.0"
] | null | null | null | # Adapted from Graham Neubig's Paired Bootstrap script
# https://github.com/neubig/util-scripts/blob/master/paired-bootstrap.py
import numpy as np
from sklearn.metrics import f1_score, precision_score, recall_score
from tqdm import tqdm
EVAL_TYPE_ACC = "acc"
EVAL_TYPE_BLEU = "bleu"
EVAL_TYPE_BLEU_DETOK = "bleu_detok"... | 40.814978 | 135 | 0.681705 | 1,445 | 9,265 | 4.164014 | 0.12872 | 0.09174 | 0.03191 | 0.042546 | 0.767825 | 0.709988 | 0.663952 | 0.654313 | 0.638358 | 0.617085 | 0 | 0.042849 | 0.201511 | 9,265 | 226 | 136 | 40.995575 | 0.770479 | 0.22925 | 0 | 0.620253 | 0 | 0 | 0.087537 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 1 | 0.025316 | false | 0 | 0.031646 | 0 | 0.132911 | 0.063291 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a07ca3f53342a4c5c568050fc58fa24424a4bf96 | 1,137 | py | Python | jupyter/aBasic/a_datatype_class/Ex01_valuable.py | WoolinChoi/test | a0f9c8ecc63443acaae61d744eecec6c943d3a26 | [
"MIT"
] | null | null | null | jupyter/aBasic/a_datatype_class/Ex01_valuable.py | WoolinChoi/test | a0f9c8ecc63443acaae61d744eecec6c943d3a26 | [
"MIT"
] | 1 | 2021-03-30T09:01:47.000Z | 2021-03-30T09:01:47.000Z | jupyter/aBasic/a_datatype_class/Ex01_valuable.py | WoolinChoi/test | a0f9c8ecc63443acaae61d744eecec6c943d3a26 | [
"MIT"
] | 1 | 2019-12-06T18:21:10.000Z | 2019-12-06T18:21:10.000Z | """
파이션 - 무료이지만 강력하다
` 만들고자 하는 대부분의 프로그램 가능
` 물론, 하드웨어 제어같은 복잡하고 반복 연산이 많은 프로그램은 부적절
` 그러나, 다른언어 프로그램을 파이썬에 포함 가능
[주의] 줄을 맞추지 않으면 실행 안됨
[실행] Run 메뉴를 클릭하거나 단축키로 shift + alt + F10
[도움말] ctrl + q
"""
""" 여러줄 주석 """
# 한줄 주석
# print("헬로우")
# print('hello')
# print("""안... | 15.364865 | 50 | 0.504837 | 205 | 1,137 | 2.795122 | 0.629268 | 0.020942 | 0.017452 | 0.031414 | 0.038394 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025676 | 0.349164 | 1,137 | 73 | 51 | 15.575342 | 0.748649 | 0.331574 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
a08cc063efc183d6784f567bb7e999cbddbf1bbf | 2,292 | py | Python | whats_in_the_cupboard/search/views.py | brandonholderman/whats_in_the_cupboard | 8f8b0abe8b94547fa488db689261a4f475a24779 | [
"MIT"
] | null | null | null | whats_in_the_cupboard/search/views.py | brandonholderman/whats_in_the_cupboard | 8f8b0abe8b94547fa488db689261a4f475a24779 | [
"MIT"
] | 10 | 2020-02-11T23:36:20.000Z | 2022-03-11T23:57:52.000Z | whats_in_the_cupboard/search/views.py | brandonholderman/whats_in_the_cupboard | 8f8b0abe8b94547fa488db689261a4f475a24779 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.views.generic import TemplateView, ListView
from django.shortcuts import render
from rest_framework.authentication import TokenAuthentication
from rest_framework import viewsets, mixins
from rest_framework.response import Response
from rest_fra... | 27.614458 | 67 | 0.654887 | 242 | 2,292 | 6.070248 | 0.38843 | 0.044929 | 0.069435 | 0.062628 | 0.143635 | 0.143635 | 0.080327 | 0.080327 | 0.080327 | 0.080327 | 0 | 0.001129 | 0.227312 | 2,292 | 82 | 68 | 27.95122 | 0.828346 | 0.573298 | 0 | 0 | 0 | 0 | 0.010823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.619048 | 0 | 0.952381 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a09ac1675173bac590c8d099736901eb4fe0b015 | 886 | py | Python | students/K33422/laboratory_works/Moruga_Elina/lr_2/simple_django_web_projects(1)/django_project_Moruga/project_first_app/views.py | Elyavor/ITMO_ICT_WebDevelopment_2021-2022 | 63fad07bcdc0a9a6b85d46eacf97182162262181 | [
"MIT"
] | null | null | null | students/K33422/laboratory_works/Moruga_Elina/lr_2/simple_django_web_projects(1)/django_project_Moruga/project_first_app/views.py | Elyavor/ITMO_ICT_WebDevelopment_2021-2022 | 63fad07bcdc0a9a6b85d46eacf97182162262181 | [
"MIT"
] | null | null | null | students/K33422/laboratory_works/Moruga_Elina/lr_2/simple_django_web_projects(1)/django_project_Moruga/project_first_app/views.py | Elyavor/ITMO_ICT_WebDevelopment_2021-2022 | 63fad07bcdc0a9a6b85d46eacf97182162262181 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import Http404
from .models import CarOwner
def detail(request, owner_id):
try: #метод try-except - обработчик исключений
p = CarOwner.objects.get(pk=owner_id) #pk - автоматически создается в джанго для любой таблицы в моделе (оно есть у любого объекта... | 59.066667 | 192 | 0.767494 | 128 | 886 | 5.28125 | 0.679688 | 0.029586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.167043 | 886 | 14 | 193 | 63.285714 | 0.907859 | 0.617381 | 0 | 0 | 0 | 0 | 0.120846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a0a7abf53aec9f31e9e5488c61a3e3d5fb017c5d | 461 | py | Python | graphics.py | Nemo20k/lactose_multistability_model | e50d68bb508e243d0a775d1d562bd8e8b88b3b30 | [
"MIT"
] | null | null | null | graphics.py | Nemo20k/lactose_multistability_model | e50d68bb508e243d0a775d1d562bd8e8b88b3b30 | [
"MIT"
] | null | null | null | graphics.py | Nemo20k/lactose_multistability_model | e50d68bb508e243d0a775d1d562bd8e8b88b3b30 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
import numpy as np
def plot_bacteria(bacteria_ndarray: np.ndarray, dimensions: tuple, save_path: str = None, cmap: str='prism'):
im = bacteria_ndarray.reshape(dimensions)
fig = plt.imshow(im, cmap=cmap, vmin=0, vmax=1)
plt.title('Red/Green graphic distribution')
if ... | 27.117647 | 109 | 0.724512 | 69 | 461 | 4.666667 | 0.594203 | 0.074534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005277 | 0.177874 | 461 | 16 | 110 | 28.8125 | 0.844327 | 0 | 0 | 0.230769 | 0 | 0 | 0.075922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.230769 | 0.153846 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 2 |
a0b4e94b3b4a3e4439a5b84940a160611b866816 | 1,063 | py | Python | test/python/squarepants_test/plugins/test_link_resources_jars.py | ericzundel/mvn2pants | 59776864939515bc0cae28e1b89944ce55b98b21 | [
"Apache-2.0"
] | 8 | 2015-04-14T22:37:56.000Z | 2021-01-20T19:46:40.000Z | test/python/squarepants_test/plugins/test_link_resources_jars.py | ericzundel/mvn2pants | 59776864939515bc0cae28e1b89944ce55b98b21 | [
"Apache-2.0"
] | 1 | 2016-01-13T23:19:14.000Z | 2016-01-22T22:47:48.000Z | test/python/squarepants_test/plugins/test_link_resources_jars.py | ericzundel/mvn2pants | 59776864939515bc0cae28e1b89944ce55b98b21 | [
"Apache-2.0"
] | 3 | 2015-12-13T08:35:34.000Z | 2018-08-01T17:44:59.000Z | # Tests for code in squarepants/src/main/python/squarepants/plugins/copy_resources/tasks/copy_resource_jars
#
# Run with:
# ./pants test squarepants/src/test/python/squarepants_test/plugins:copy_resources
from pants.backend.jvm.targets.jar_dependency import JarDependency
from pants.backend.jvm.targets.jar_library impo... | 40.884615 | 107 | 0.804327 | 143 | 1,063 | 5.79021 | 0.405594 | 0.065217 | 0.061594 | 0.045894 | 0.217391 | 0.164251 | 0 | 0 | 0 | 0 | 0 | 0.003112 | 0.093133 | 1,063 | 25 | 108 | 42.52 | 0.855809 | 0.184384 | 0 | 0 | 0 | 0 | 0.069606 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0 | 0.333333 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a0ba9ed937616e6ee4572b155cab4164464097a6 | 75 | py | Python | Codewars/8kyu/get-the-mean-of-an-array/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/get-the-mean-of-an-array/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/get-the-mean-of-an-array/Python/solution1.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
get_average = lambda marks: int(sum(marks) / len(marks))
| 18.75 | 56 | 0.666667 | 13 | 75 | 3.769231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.16 | 75 | 3 | 57 | 25 | 0.730159 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
39fbc1222f2bd73553fac90c67abef716e48ef7b | 2,248 | py | Python | tests/test_cmd_trie.py | ncloudioj/rhino-rox | 7e3c70edebca5cc0f847d777c2bff02218b4ca69 | [
"BSD-3-Clause"
] | 1 | 2016-06-14T11:16:43.000Z | 2016-06-14T11:16:43.000Z | tests/test_cmd_trie.py | ncloudioj/rhino-rox | 7e3c70edebca5cc0f847d777c2bff02218b4ca69 | [
"BSD-3-Clause"
] | null | null | null | tests/test_cmd_trie.py | ncloudioj/rhino-rox | 7e3c70edebca5cc0f847d777c2bff02218b4ca69 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import redis
import random
class TestTrieCmd(unittest.TestCase):
rr = redis.Redis("localhost", 6000)
def tearDown(self):
self.rr.execute_command("del trie")
def test_basic_cmds(self):
self.rr.execute_command("rset trie ape 1")
self.rr.execute_command("rset trie ap... | 35.125 | 77 | 0.607651 | 294 | 2,248 | 4.547619 | 0.22449 | 0.103216 | 0.223635 | 0.344054 | 0.649963 | 0.515333 | 0.362752 | 0.262528 | 0.262528 | 0.155572 | 0 | 0.021277 | 0.247331 | 2,248 | 63 | 78 | 35.68254 | 0.768913 | 0 | 0 | 0.166667 | 0 | 0 | 0.172153 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.104167 | false | 0 | 0.0625 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
39fbe8706a2051eee9dadaa5adf1cf67f5342a04 | 325 | py | Python | 4. 01.07.2021/0. Secret Messages. New position.py | AntonVasko/CodeClub-2021-SUMMER | 14a80168bb7c2eb3c0c157d6d5b7630c05decb31 | [
"CC0-1.0"
] | null | null | null | 4. 01.07.2021/0. Secret Messages. New position.py | AntonVasko/CodeClub-2021-SUMMER | 14a80168bb7c2eb3c0c157d6d5b7630c05decb31 | [
"CC0-1.0"
] | null | null | null | 4. 01.07.2021/0. Secret Messages. New position.py | AntonVasko/CodeClub-2021-SUMMER | 14a80168bb7c2eb3c0c157d6d5b7630c05decb31 | [
"CC0-1.0"
] | null | null | null | #Secret Messages. New position
alphabet = 'abcdefghijklmnopqrstuvwxyz'
key = 3
character = input('Please enter a character ')
position = alphabet.find(character)
print('Position of a character ', character, ' is ', position)
newPosition = position + key
print('New position of a character ', character, ' is ', newPosit... | 32.5 | 69 | 0.747692 | 38 | 325 | 6.394737 | 0.473684 | 0.123457 | 0.090535 | 0.164609 | 0.255144 | 0.255144 | 0 | 0 | 0 | 0 | 0 | 0.003597 | 0.144615 | 325 | 9 | 70 | 36.111111 | 0.870504 | 0.089231 | 0 | 0 | 0 | 0 | 0.376271 | 0.088136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
261ef34aec94e0b7c7ad1e655cd7ebdf1e882520 | 243,870 | py | Python | code/learning/nominalization.py | ktwaco/nlproject | 16f02158fecdfe55a73a2c5c1e78376da935b50d | [
"Apache-2.0"
] | null | null | null | code/learning/nominalization.py | ktwaco/nlproject | 16f02158fecdfe55a73a2c5c1e78376da935b50d | [
"Apache-2.0"
] | null | null | null | code/learning/nominalization.py | ktwaco/nlproject | 16f02158fecdfe55a73a2c5c1e78376da935b50d | [
"Apache-2.0"
] | null | null | null | nominalization_list=["Buddhism",
"Catholicity",
"Catholicism",
"Doppler",
"evangelicality",
"Frenchness",
"Gaussianity",
"Gothicness",
"Indianness",
"Irishness",
"Jewishness",
"Malthusianism",
"mosaicity",
"Nordicness",
"northernness",
"Polishness",
"Protestantism",
"regency",
"Welshness",
"abandonment",
"abasement",
"... | 16.549267 | 53 | 0.755804 | 15,344 | 243,870 | 12.012318 | 0.924596 | 0.000358 | 0.000358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000017 | 0.060992 | 243,870 | 14,735 | 54 | 16.55039 | 0.804874 | 0 | 0 | 0.040312 | 0 | 0 | 0.758224 | 0.006786 | 0 | 0 | 0 | 0 | 0.000475 | 1 | 0 | false | 0.001222 | 0.000475 | 0 | 0.000475 | 0.000136 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2621a6ccabece576b91cf545a302da60ca663e33 | 302 | py | Python | oauth2_provider/http.py | manelclos/django-oauth-toolkit | c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | oauth2_provider/http.py | manelclos/django-oauth-toolkit | c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2018-03-27T11:33:23.000Z | 2018-03-27T11:33:23.000Z | oauth2_provider/http.py | manelclos/django-oauth-toolkit | c2ca9ccdfc0a0fb5e03ce4d83dafbf2e32545bd3 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-02-13T11:53:48.000Z | 2021-02-13T11:53:48.000Z | from django.http import HttpResponseRedirect
class HttpResponseUriRedirect(HttpResponseRedirect):
def __init__(self, redirect_to, allowed_schemes, *args, **kwargs):
self.allowed_schemes = allowed_schemes
super(HttpResponseUriRedirect, self).__init__(redirect_to, *args, **kwargs)
| 37.75 | 83 | 0.774834 | 30 | 302 | 7.366667 | 0.566667 | 0.190045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135762 | 302 | 7 | 84 | 43.142857 | 0.846743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2637a434166fe45c22b4c9ec763b7c85c5947d98 | 8,679 | py | Python | test/test_logic.py | peteut/ramda.py | d315a9717ebd639366bf3fe26bad9e3d08ec3c49 | [
"MIT"
] | null | null | null | test/test_logic.py | peteut/ramda.py | d315a9717ebd639366bf3fe26bad9e3d08ec3c49 | [
"MIT"
] | 12 | 2017-09-03T15:25:48.000Z | 2020-04-11T15:22:01.000Z | test/test_logic.py | peteut/ramda.py | d315a9717ebd639366bf3fe26bad9e3d08ec3c49 | [
"MIT"
] | 1 | 2020-04-11T07:36:47.000Z | 2020-04-11T07:36:47.000Z | import ramda as R
from ramda.shared import eq
from .common import get_arity
import pytest
try:
from collections.abc import Callable
except ImportError:
from collections import Callable
@pytest.fixture
def odd():
return lambda n: n % 2 != 0
@pytest.fixture
def lt20():
return lambda n: n < 20
@pytes... | 26.460366 | 80 | 0.57449 | 1,358 | 8,679 | 3.421208 | 0.14433 | 0.040895 | 0.048214 | 0.018941 | 0.38743 | 0.281748 | 0.230306 | 0.140766 | 0.104176 | 0.093844 | 0 | 0.040319 | 0.27699 | 8,679 | 327 | 81 | 26.541284 | 0.699124 | 0 | 0 | 0.171429 | 0 | 0 | 0.029151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.302041 | false | 0.053061 | 0.028571 | 0.089796 | 0.420408 | 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 | 0 | 0 | 0 | 2 |
264bbde1a1bee4dd16c481cd8e4f5f7b7eedcd79 | 2,369 | py | Python | casino/src/bet.py | gauravvazirani/ooad | f00abd7fee54de8599a96254d9cffac20a3bb3aa | [
"MIT"
] | null | null | null | casino/src/bet.py | gauravvazirani/ooad | f00abd7fee54de8599a96254d9cffac20a3bb3aa | [
"MIT"
] | null | null | null | casino/src/bet.py | gauravvazirani/ooad | f00abd7fee54de8599a96254d9cffac20a3bb3aa | [
"MIT"
] | null | null | null | class Bet():
def __init__(self, amount, outcome, player=None):
self.amount = amount
self.outcome = outcome
self.player = player
def setOutcome(self, outcome):
"""
Sets the Outcome for this bet.
This has the effect of moving the bet to another Outcom... | 32.013514 | 95 | 0.557197 | 298 | 2,369 | 4.362416 | 0.308725 | 0.092308 | 0.046154 | 0.021538 | 0.189231 | 0.127692 | 0.127692 | 0.076923 | 0 | 0 | 0 | 0.013843 | 0.359645 | 2,369 | 74 | 96 | 32.013514 | 0.843111 | 0.368932 | 0 | 0.2 | 0 | 0 | 0.060631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0 | 0.566667 | 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 | 0 | 1 | 0 | 0 | 2 |
26532987010eba65d4709e37e7fe8bdb8b2276d8 | 346 | py | Python | gravityinfraredco2sensor/__init__.py | osoken/py-gravity-infrared-co2-sensor | 242885e16d2bb0c43d8abbb9807f9932c8209427 | [
"MIT"
] | 1 | 2020-12-28T06:25:25.000Z | 2020-12-28T06:25:25.000Z | gravityinfraredco2sensor/__init__.py | osoken/py-gravity-infrared-co2-sensor | 242885e16d2bb0c43d8abbb9807f9932c8209427 | [
"MIT"
] | null | null | null | gravityinfraredco2sensor/__init__.py | osoken/py-gravity-infrared-co2-sensor | 242885e16d2bb0c43d8abbb9807f9932c8209427 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__description__ = 'Python driver and logging app ' +\
'for Gravity infrared CO2 sensor'
__long_description__ = 'Python driver and logging app ' +\
'for Gravity infrared CO2 sensor'
__author__ = 'osoken'
__email__ = 'osoken.devel@outlook.jp'
__version__ = '0.0.0'
__package_name__ = '... | 23.066667 | 58 | 0.716763 | 40 | 346 | 5.55 | 0.65 | 0.153153 | 0.207207 | 0.234234 | 0.567568 | 0.567568 | 0.567568 | 0.567568 | 0.567568 | 0.567568 | 0 | 0.024306 | 0.16763 | 346 | 14 | 59 | 24.714286 | 0.746528 | 0.060694 | 0 | 0.25 | 0 | 0 | 0.557276 | 0.145511 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
265f8fd62d80164aa1cff86121914b68ce2ea3c8 | 650 | py | Python | pwned/searchpass.py | nverhaaren/code-samples | 2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673 | [
"MIT"
] | null | null | null | pwned/searchpass.py | nverhaaren/code-samples | 2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673 | [
"MIT"
] | 2 | 2017-08-10T02:40:57.000Z | 2017-08-12T00:56:48.000Z | pwned/searchpass.py | nverhaaren/code-samples | 2b7fd9c1098d66089fe1ba18c0e4f1ac891dd673 | [
"MIT"
] | null | null | null | #! /usr/bin/python
import hashlib, getpass
import sys
if len(sys.argv) > 1 and sys.argv[1] == '-s':
sha = True
else:
sha = False
while True:
try:
passhash = hashlib.sha1(getpass.getpass()).hexdigest().upper()
if sha:
print passhash
except EOFError:
print
br... | 19.69697 | 70 | 0.481538 | 73 | 650 | 4.287671 | 0.561644 | 0.044728 | 0.051118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013089 | 0.412308 | 650 | 32 | 71 | 20.3125 | 0.806283 | 0.026154 | 0 | 0.269231 | 0 | 0 | 0.026899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.192308 | 0.076923 | null | null | 0.192308 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2665879f29151dd4bf50f5357e2d4d3726e90112 | 391 | py | Python | Google Drive/Learning/Python/DataScience/Classes/Dog.py | mobiusworkspace/mobiuswebsite | 73eef1bd4fc07ea318aad431de09eac10fc4da3a | [
"CC-BY-3.0"
] | null | null | null | Google Drive/Learning/Python/DataScience/Classes/Dog.py | mobiusworkspace/mobiuswebsite | 73eef1bd4fc07ea318aad431de09eac10fc4da3a | [
"CC-BY-3.0"
] | null | null | null | Google Drive/Learning/Python/DataScience/Classes/Dog.py | mobiusworkspace/mobiuswebsite | 73eef1bd4fc07ea318aad431de09eac10fc4da3a | [
"CC-BY-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 17 01:08:13 2020
@author: OAdeoye
"""
class Dog:
def __init__(self, name):
self.name = name
def respond_to_command(self, command):
if (command == self.name):
print(self.name + " is Barking!!!")
bingo = Dog("Bingo")
bingo.respond_to_c... | 19.55 | 47 | 0.618926 | 54 | 391 | 4.296296 | 0.537037 | 0.137931 | 0.206897 | 0.181034 | 0.224138 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042345 | 0.214834 | 391 | 20 | 48 | 19.55 | 0.713355 | 0.194373 | 0 | 0.2 | 0 | 0 | 0.11039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.3 | 0.1 | 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 | 0 | 0 | 2 |
2676b926254be1cabd4bc81bb9a3da1c42ddb39a | 299 | py | Python | Maximum_Increase.py | Milon34/Python_Learning | b24efbba4751ed51758bf6b907e71f384415a9d5 | [
"MIT"
] | null | null | null | Maximum_Increase.py | Milon34/Python_Learning | b24efbba4751ed51758bf6b907e71f384415a9d5 | [
"MIT"
] | null | null | null | Maximum_Increase.py | Milon34/Python_Learning | b24efbba4751ed51758bf6b907e71f384415a9d5 | [
"MIT"
] | null | null | null | n=int(input())
a = [int(s) for s in input().split(' ')]
increment=1
max_increment=1
for i in range(1,n):
if a[i]>a[i-1]:
increment=increment+1
else:
max_increment=max(max_increment,increment)
increment=1
max_increment=max(max_increment,increment)
print(max_increment) | 24.916667 | 50 | 0.672241 | 49 | 299 | 3.979592 | 0.326531 | 0.369231 | 0.133333 | 0.225641 | 0.369231 | 0.369231 | 0 | 0 | 0 | 0 | 0 | 0.02449 | 0.180602 | 299 | 12 | 51 | 24.916667 | 0.771429 | 0 | 0 | 0.333333 | 0 | 0 | 0.003333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2689410c8429db9fcdde4ffcfbc17820cb6d3055 | 509 | py | Python | pos_debranding/__manifest__.py | jromeroarg/itpp-labs_pos-addons | ec688a1b06999dc2fa408623a79e93356bf900b3 | [
"MIT"
] | null | null | null | pos_debranding/__manifest__.py | jromeroarg/itpp-labs_pos-addons | ec688a1b06999dc2fa408623a79e93356bf900b3 | [
"MIT"
] | null | null | null | pos_debranding/__manifest__.py | jromeroarg/itpp-labs_pos-addons | ec688a1b06999dc2fa408623a79e93356bf900b3 | [
"MIT"
] | 1 | 2020-08-20T04:21:42.000Z | 2020-08-20T04:21:42.000Z | # Copyright 2015-2018,2020 Ivan Yelizariev
# License MIT (https://opensource.org/licenses/MIT).
{
"name": "POS debranding",
"version": "13.0.1.0.0",
"author": "IT-Projects LLC, Ivan Yelizariev",
"license": "Other OSI approved licence", # MIT
"category": "Debranding",
"support": "help@itpp.dev",... | 31.8125 | 52 | 0.624754 | 61 | 509 | 5.163934 | 0.770492 | 0.088889 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042654 | 0.170923 | 509 | 15 | 53 | 33.933333 | 0.703791 | 0.18664 | 0 | 0 | 0 | 0 | 0.639024 | 0.080488 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.