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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54da2d6b42656695d6a1ad456a168fdd9e5bfc3e | 264 | py | Python | tranny/extensions.py | kannibalox/tranny | 4eb22cdd35e01afad9f0e86f67290cdd69c4653a | [
"BSD-3-Clause"
] | 4 | 2017-09-07T14:44:47.000Z | 2022-03-08T14:07:54.000Z | tranny/extensions.py | kannibalox/tranny | 4eb22cdd35e01afad9f0e86f67290cdd69c4653a | [
"BSD-3-Clause"
] | null | null | null | tranny/extensions.py | kannibalox/tranny | 4eb22cdd35e01afad9f0e86f67290cdd69c4653a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from flask.ext.mail import Mail
mail = Mail()
from flask.ext.login import LoginManager
login_manager = LoginManager()
from flask.ext.socketio import SocketIO
socketio = SocketIO()
| 22 | 56 | 0.776515 | 35 | 264 | 5.657143 | 0.457143 | 0.136364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004348 | 0.128788 | 264 | 11 | 57 | 24 | 0.856522 | 0.079545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
54ddad266dfc8dd2e3a922343d61b56b112c1086 | 8,973 | py | Python | app/gbi_server/search/dummy.py | omniscale/gbi-server | d67c003da98b77ffa66cf014ce9f228e75343563 | [
"Apache-2.0"
] | 2 | 2015-11-05T07:13:49.000Z | 2015-12-29T12:36:27.000Z | app/gbi_server/search/dummy.py | omniscale/gbi-server | d67c003da98b77ffa66cf014ce9f228e75343563 | [
"Apache-2.0"
] | null | null | null | app/gbi_server/search/dummy.py | omniscale/gbi-server | d67c003da98b77ffa66cf014ce9f228e75343563 | [
"Apache-2.0"
] | 1 | 2020-11-09T19:03:07.000Z | 2020-11-09T19:03:07.000Z | # This file is part of the GBI project.
# Copyright (C) 2016 Omniscale GmbH & Co. KG <http://omniscale.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licens... | 23.801061 | 77 | 0.372785 | 504 | 8,973 | 6.628968 | 0.609127 | 0.028734 | 0.050284 | 0.071835 | 0.116732 | 0.057468 | 0 | 0 | 0 | 0 | 0 | 0.452306 | 0.538504 | 8,973 | 376 | 78 | 23.864362 | 0.354504 | 0.081021 | 0 | 0.37931 | 0 | 0 | 0.084742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008621 | false | 0 | 0.008621 | 0 | 0.028736 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
54ed23cd598ef7f33da085e73fb56838da4c95ae | 234 | py | Python | src/crossValidation.py | guidotorresmx/assistants | 5c24030c3c9a552c230b521677b5f7b3eeb3d4f5 | [
"MIT"
] | null | null | null | src/crossValidation.py | guidotorresmx/assistants | 5c24030c3c9a552c230b521677b5f7b3eeb3d4f5 | [
"MIT"
] | null | null | null | src/crossValidation.py | guidotorresmx/assistants | 5c24030c3c9a552c230b521677b5f7b3eeb3d4f5 | [
"MIT"
] | null | null | null | # https://towardsdatascience.com/chatbots-are-cool-a-framework-using-python-part-1-overview-7c69af7a7439
# https://scikit-learn.org/stable/modules/cross_validation.html
# http://danielhnyk.cz/creating-your-own-estimator-scikit-learn/
| 58.5 | 104 | 0.811966 | 32 | 234 | 5.90625 | 0.90625 | 0.116402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.025641 | 234 | 3 | 105 | 78 | 0.789474 | 0.970085 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
07465d784bb382eb395ded8e13d74367e5e9c56c | 232 | py | Python | control/manager/responseholder.py | ghsecuritylab/ADS1262 | f5f0cabe7af66a20019961b2aa250d4cd7d668b4 | [
"MIT"
] | 1 | 2019-07-01T15:53:42.000Z | 2019-07-01T15:53:42.000Z | control/manager/responseholder.py | ghsecuritylab/ADS1262 | f5f0cabe7af66a20019961b2aa250d4cd7d668b4 | [
"MIT"
] | null | null | null | control/manager/responseholder.py | ghsecuritylab/ADS1262 | f5f0cabe7af66a20019961b2aa250d4cd7d668b4 | [
"MIT"
] | 1 | 2020-03-06T22:22:30.000Z | 2020-03-06T22:22:30.000Z | class ResponseHolder:
"""
Simple class to hold a value, in this case the response from the server
"""
response = None
def set(self, x):
self.response = x
def get(self):
return self.response
| 19.333333 | 75 | 0.603448 | 31 | 232 | 4.516129 | 0.677419 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314655 | 232 | 11 | 76 | 21.090909 | 0.880503 | 0.306034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0754213d20e4948b70b796e4fe6f96df08627c6e | 544 | py | Python | src/model/Square.py | DaDudek/Tetris | b3848132fd315e883e714e1882ec4bfd38b890e1 | [
"MIT"
] | 2 | 2022-01-16T20:44:08.000Z | 2022-01-18T13:41:32.000Z | src/model/Square.py | DaDudek/Tetris | b3848132fd315e883e714e1882ec4bfd38b890e1 | [
"MIT"
] | null | null | null | src/model/Square.py | DaDudek/Tetris | b3848132fd315e883e714e1882ec4bfd38b890e1 | [
"MIT"
] | null | null | null | from typing import Tuple
from src.model.Point import Point
class Square:
def __init__(self, point: Point, color: Tuple[int, int, int]):
self.point = point
self.color = color
def getX(self) -> int:
return self.point.getX()
def getY(self) -> int:
return self.point.getY()
... | 21.76 | 66 | 0.599265 | 77 | 544 | 4.155844 | 0.285714 | 0.1125 | 0.103125 | 0.13125 | 0.25625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273897 | 544 | 24 | 67 | 22.666667 | 0.810127 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
07565162284cfb06654400b1724778c85118bda8 | 253 | py | Python | PhythonExercicios/ex007.py | Luis-Otavio-Araujo/Curso-de-Python | 1283b26ee7057d61043cfbab53841bac5e1d4487 | [
"MIT"
] | 1 | 2021-07-31T18:57:46.000Z | 2021-07-31T18:57:46.000Z | PhythonExercicios/ex007.py | Luis-Otavio-Araujo/Curso-de-Python | 1283b26ee7057d61043cfbab53841bac5e1d4487 | [
"MIT"
] | null | null | null | PhythonExercicios/ex007.py | Luis-Otavio-Araujo/Curso-de-Python | 1283b26ee7057d61043cfbab53841bac5e1d4487 | [
"MIT"
] | null | null | null | #Objetivo: Ler duas notas de um aluno e calcular sua média
n1 = float(input('Digite a 1° nota do aluno:'))
n2 = float(input('Digite a 2° nota do aluno:'))
m = (n1 + n2)/2
print('=============================')
print('A média do aluno é {}'.format(m))
| 28.111111 | 58 | 0.573123 | 44 | 253 | 3.340909 | 0.590909 | 0.142857 | 0.217687 | 0.231293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033019 | 0.162055 | 253 | 8 | 59 | 31.625 | 0.650943 | 0.225296 | 0 | 0 | 0 | 0 | 0.525773 | 0.149485 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4ad0ac638ec482d5cd44d0c56d48b5c8359b6d51 | 1,204 | py | Python | hive/main/view_file.py | jhoe123/Elastos.Hive.Node | 96b0c3c4a6ba29db4a4920a03c7efb9e7a991833 | [
"MIT"
] | 2 | 2022-01-30T05:24:17.000Z | 2022-03-29T21:31:21.000Z | hive/main/view_file.py | jhoe123/Elastos.Hive.Node | 96b0c3c4a6ba29db4a4920a03c7efb9e7a991833 | [
"MIT"
] | 3 | 2021-11-25T13:38:56.000Z | 2022-03-16T02:08:39.000Z | hive/main/view_file.py | jhoe123/Elastos.Hive.Node | 96b0c3c4a6ba29db4a4920a03c7efb9e7a991833 | [
"MIT"
] | 2 | 2022-02-17T09:14:52.000Z | 2022-03-01T07:23:50.000Z | from flask import Blueprint
from hive.main.hive_file import HiveFile
hive_file = Blueprint('hive_file', __name__)
h_file: HiveFile = None
def init_app(app):
global h_file
h_file = HiveFile()
h_file.init_app(app)
app.register_blueprint(hive_file)
@hive_file.route('/api/v1/files/upload/<path:file_na... | 21.890909 | 75 | 0.710963 | 189 | 1,204 | 4.269841 | 0.21164 | 0.118959 | 0.128872 | 0.158612 | 0.302354 | 0.302354 | 0.131351 | 0 | 0 | 0 | 0 | 0.007533 | 0.11794 | 1,204 | 54 | 76 | 22.296296 | 0.752354 | 0 | 0 | 0 | 0 | 0 | 0.186201 | 0.108894 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.060606 | 0.242424 | 0.575758 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4ad2ab711e122f47ab8e09b87a490e6489041bd6 | 1,870 | py | Python | andreani/andreani_lib/shipping.py | Purplship/purplship-carriers | dcd044320b86e9af5fe3ef15c36ebf7828b2851b | [
"MIT"
] | 2 | 2021-04-12T22:40:28.000Z | 2021-04-21T18:28:31.000Z | andreani/andreani_lib/shipping.py | Purplship/purplship-carriers | dcd044320b86e9af5fe3ef15c36ebf7828b2851b | [
"MIT"
] | 2 | 2021-01-29T07:14:31.000Z | 2021-02-18T18:29:23.000Z | andreani/andreani_lib/shipping.py | Purplship/purplship-carriers | dcd044320b86e9af5fe3ef15c36ebf7828b2851b | [
"MIT"
] | 3 | 2020-09-09T17:04:46.000Z | 2021-03-05T00:32:32.000Z | import attr
from jstruct import JList, JStruct
from typing import Optional, List
@attr.s(auto_attribs=True)
class Bulto:
kilos: Optional[float] = None
valorDeclaradoConImpuestos: Optional[int] = None
IdDeProducto: Optional[str] = None
volumen: Optional[int] = None
@attr.s(auto_attribs=True)
class Co... | 28.333333 | 94 | 0.724599 | 205 | 1,870 | 6.57561 | 0.263415 | 0.093472 | 0.189169 | 0.083086 | 0.179525 | 0.179525 | 0.142433 | 0.142433 | 0.118694 | 0 | 0 | 0 | 0.170588 | 1,870 | 65 | 95 | 28.769231 | 0.869117 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.862745 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4ad8dc0fad5e00ed2a69297a7b40c5349cdb95a7 | 390 | py | Python | src/ai/test_utils.py | cpatrasciuc/schnapsen-card-game | e5131ae91c71d341968d682fd625aff3f97cc516 | [
"BSD-3-Clause"
] | null | null | null | src/ai/test_utils.py | cpatrasciuc/schnapsen-card-game | e5131ae91c71d341968d682fd625aff3f97cc516 | [
"BSD-3-Clause"
] | 18 | 2021-06-03T01:54:51.000Z | 2022-03-30T06:12:08.000Z | src/ai/test_utils.py | cpatrasciuc/schnapsen-card-game | e5131ae91c71d341968d682fd625aff3f97cc516 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2021 Cristian Patrasciuc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from typing import List
from model.card import Card
def card_list_from_string(string_list: List[str]) -> List[Card]:
return [Card.from_string(toke... | 30 | 73 | 0.74359 | 65 | 390 | 4.369231 | 0.661538 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012698 | 0.192308 | 390 | 12 | 74 | 32.5 | 0.888889 | 0.410256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
4afc12afa17f117747c4563dcdc1a6cc8dc3255a | 485 | bzl | Python | source/bazel/deps/rbe_default/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/bazel/deps/rbe_default/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/bazel/deps/rbe_default/get.bzl | luxe/unilang | 6c8a431bf61755f4f0534c6299bd13aaeba4b69e | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | # Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def rbeDefault():
http_archive(
name="rbe_default" ,
sha256="c5f784299a319f39bbe51e38a49e2e779cc2eb3b1b06ce4e71d5e537ac95e... | 32.333333 | 123 | 0.707216 | 55 | 485 | 6.090909 | 0.8 | 0.065672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121891 | 0.171134 | 485 | 14 | 124 | 34.642857 | 0.711443 | 0.208247 | 0 | 0 | 1 | 0.111111 | 0.627297 | 0.283465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4aff0f05d9d7d9b271f3bc347ee1a5006c4c8c20 | 1,098 | py | Python | kanban/forms/forms.py | ZitongMao/anime-review | 4706ba842bb6d3975831796bfe23e49747c309d1 | [
"MIT"
] | null | null | null | kanban/forms/forms.py | ZitongMao/anime-review | 4706ba842bb6d3975831796bfe23e49747c309d1 | [
"MIT"
] | null | null | null | kanban/forms/forms.py | ZitongMao/anime-review | 4706ba842bb6d3975831796bfe23e49747c309d1 | [
"MIT"
] | null | null | null | from django import forms
from kanban.models import Title
class TitleForm(forms.ModelForm):
class Meta:
model = Title
fields = ['title', 'japanese_title', 'year','status', 'rating', 'review']
def clean_title(self):
title = self.cleaned_data.get('title').encode('utf-8')
if len(ti... | 31.371429 | 83 | 0.627505 | 138 | 1,098 | 4.884058 | 0.282609 | 0.071217 | 0.133531 | 0.160237 | 0.350148 | 0.350148 | 0.27003 | 0.27003 | 0.27003 | 0.27003 | 0 | 0.018428 | 0.258652 | 1,098 | 34 | 84 | 32.294118 | 0.809582 | 0 | 0 | 0.142857 | 0 | 0 | 0.161202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ab06a3094a6a71ffceb366cca135d4b9af967dcd | 23 | py | Python | pynearest/tests/pickled/__init__.py | golfape/pynearest | 030a4b0911970c1147ef8ee2a52ff3f4d4421a86 | [
"MIT"
] | null | null | null | pynearest/tests/pickled/__init__.py | golfape/pynearest | 030a4b0911970c1147ef8ee2a52ff3f4d4421a86 | [
"MIT"
] | null | null | null | pynearest/tests/pickled/__init__.py | golfape/pynearest | 030a4b0911970c1147ef8ee2a52ff3f4d4421a86 | [
"MIT"
] | null | null | null | __author__ = 'golfape'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab0bca8b49cf6b974f0f674d22c0963ebe4cf68f | 1,131 | py | Python | autographql/auth/decorators.py | ehsu0407/django-autographql | 95147501b2e542ee2a4b7903546665fb84d5115e | [
"MIT"
] | 1 | 2021-11-20T03:52:51.000Z | 2021-11-20T03:52:51.000Z | autographql/auth/decorators.py | ehsu0407/django-autographql | 95147501b2e542ee2a4b7903546665fb84d5115e | [
"MIT"
] | null | null | null | autographql/auth/decorators.py | ehsu0407/django-autographql | 95147501b2e542ee2a4b7903546665fb84d5115e | [
"MIT"
] | null | null | null | import six
from functools import wraps
from django.core.exceptions import PermissionDenied
def context(f):
def decorator(func):
def wrapper(*args, **kwargs):
info = args[f.__code__.co_varnames.index('info')]
return func(info.context, *args, **kwargs)
return wrapper
ret... | 26.928571 | 93 | 0.637489 | 138 | 1,131 | 5.065217 | 0.427536 | 0.057225 | 0.060086 | 0.080114 | 0.088698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270557 | 1,131 | 41 | 94 | 27.585366 | 0.847273 | 0 | 0 | 0.129032 | 0 | 0 | 0.06985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0.096774 | 0.096774 | 0 | 0.645161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
ab1b813a981f5093496fddfb26548c4919cb1881 | 716 | py | Python | abpytools/utils/python_config.py | gf712/AbPyTools | 9ff0d4346ad80487d43875bc77d99fbe76170db4 | [
"MIT"
] | 13 | 2017-06-13T12:31:47.000Z | 2022-03-23T02:14:01.000Z | abpytools/utils/python_config.py | gf712/AbPyTools | 9ff0d4346ad80487d43875bc77d99fbe76170db4 | [
"MIT"
] | 8 | 2018-02-21T22:15:35.000Z | 2022-02-01T12:27:58.000Z | abpytools/utils/python_config.py | gf712/AbPyTools | 9ff0d4346ad80487d43875bc77d99fbe76170db4 | [
"MIT"
] | 3 | 2018-04-10T08:01:39.000Z | 2021-10-10T14:37:43.000Z | import sys
from matplotlib import pyplot as plt
class PythonConfig:
def __init__(self):
self._backend = get_ipython_info()
self._matplotlib_interactive = plt.isinteractive()
@property
def ipython_info(self):
return self._backend
@property
def matplotlib_interactive(self):... | 25.571429 | 109 | 0.684358 | 87 | 716 | 5.448276 | 0.54023 | 0.06962 | 0.059072 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 0.223464 | 716 | 27 | 110 | 26.518519 | 0.83813 | 0.223464 | 0 | 0.105263 | 0 | 0 | 0.067029 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.105263 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ab20d8e193f0d2c22f75314b0be84bef6b87df46 | 332 | py | Python | website/management/commands/createsu.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | null | null | null | website/management/commands/createsu.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | 1 | 2022-01-23T21:08:12.000Z | 2022-01-23T21:08:12.000Z | website/management/commands/createsu.py | czhu1217/cmimc-online | 5ef49ceec0bb86d8ae120a6ecfd723532e277821 | [
"MIT"
] | 1 | 2021-10-17T17:11:42.000Z | 2021-10-17T17:11:42.000Z | from django.core.management.base import BaseCommand
from website.models import User
class Command(BaseCommand):
def handle(self, *args, **options):
if not User.objects.filter(email="admin@example.com").exists():
User.objects.create_superuser("admin@example.com", "changethispassword", full_nam... | 30.181818 | 103 | 0.725904 | 41 | 332 | 5.829268 | 0.756098 | 0.09205 | 0.125523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144578 | 332 | 10 | 104 | 33.2 | 0.841549 | 0 | 0 | 0 | 0 | 0 | 0.172205 | 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 | 1 | 0 | 0 | 3 |
ab24042197de9bf802d95aafe8d8b0ab4bc00138 | 60 | py | Python | Baisc_Calculator/Square.py | cy275/Statistics_Calculator | c98dec271df98465a87180a170a786bcf817800c | [
"MIT"
] | null | null | null | Baisc_Calculator/Square.py | cy275/Statistics_Calculator | c98dec271df98465a87180a170a786bcf817800c | [
"MIT"
] | null | null | null | Baisc_Calculator/Square.py | cy275/Statistics_Calculator | c98dec271df98465a87180a170a786bcf817800c | [
"MIT"
] | null | null | null | def square(a):
a = float(a)
b = a ** 2
return b
| 12 | 16 | 0.45 | 11 | 60 | 2.454545 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.4 | 60 | 4 | 17 | 15 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab27c2cf79987d8e2b1da37fbfdc0d01a0d80eaa | 156 | py | Python | exercises/Desafio013.py | zThiago15/Curso-em-Video | ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6 | [
"MIT"
] | null | null | null | exercises/Desafio013.py | zThiago15/Curso-em-Video | ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6 | [
"MIT"
] | null | null | null | exercises/Desafio013.py | zThiago15/Curso-em-Video | ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6 | [
"MIT"
] | 1 | 2021-07-24T21:39:26.000Z | 2021-07-24T21:39:26.000Z | s = float(input('\033[1;30mDigite seu salário: R$'))
a = s+(s*15/100)
print(f'\033[1;32mSeu novo salário com um aumento de 15% vai ficar \033[36mR${a:.2f}') | 52 | 86 | 0.666667 | 32 | 156 | 3.25 | 0.75 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182482 | 0.121795 | 156 | 3 | 86 | 52 | 0.576642 | 0 | 0 | 0 | 0 | 0.333333 | 0.687898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab28037008d1f65b19efbc547a7e539efca70455 | 2,123 | py | Python | src/stylesheets/stylesheets.py | MKurtz666/Boro_mimesweeper | 23f3ad85faa92a141e3c77fcfc8338dfdc912c90 | [
"MIT"
] | null | null | null | src/stylesheets/stylesheets.py | MKurtz666/Boro_mimesweeper | 23f3ad85faa92a141e3c77fcfc8338dfdc912c90 | [
"MIT"
] | null | null | null | src/stylesheets/stylesheets.py | MKurtz666/Boro_mimesweeper | 23f3ad85faa92a141e3c77fcfc8338dfdc912c90 | [
"MIT"
] | null | null | null | dark_grey = """
QMenuBar {
spacing: 2px;
background-color: #7c8e9c;
}
QMenuBar::item {
background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:3, stop:0 #7c8e9c, stop:1 000066);
padding: 5px 25px;
color: #e2e6e9;
}
QMenuBar::item::sel... | 17.991525 | 110 | 0.508714 | 185 | 2,123 | 5.8 | 0.318919 | 0.223672 | 0.195713 | 0.093197 | 0.501398 | 0.305685 | 0.082013 | 0 | 0 | 0 | 0 | 0.103916 | 0.37447 | 2,123 | 118 | 111 | 17.991525 | 0.704066 | 0 | 0 | 0.44086 | 0 | 0.010753 | 0.950565 | 0.031073 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab4f92db8cc309a6a082fe271ef210d9bf0c305c | 262 | py | Python | leetcode/model.py | VictorKostyukov/terminal-leetcode | ad81924dbcac13da736f89a3b693ba13f2361906 | [
"MIT"
] | 1 | 2019-09-11T12:14:20.000Z | 2019-09-11T12:14:20.000Z | leetcode/model.py | VictorKostyukov/terminal-leetcode | ad81924dbcac13da736f89a3b693ba13f2361906 | [
"MIT"
] | null | null | null | leetcode/model.py | VictorKostyukov/terminal-leetcode | ad81924dbcac13da736f89a3b693ba13f2361906 | [
"MIT"
] | null | null | null | from threading import Lock
class EasyLock(object):
def __init__(self):
self.lock = Lock()
def __enter__(self):
self.lock.acquire()
return self.lock
def __exit__(self, exc_type, exc_val, exc_tb):
self.lock.release()
| 20.153846 | 50 | 0.629771 | 34 | 262 | 4.411765 | 0.558824 | 0.213333 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263359 | 262 | 12 | 51 | 21.833333 | 0.777202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
db87ede6ffe5b886a6f2b9ce112ebfae3464420f | 680 | py | Python | Sistema/API/app/application/Logic/funcionService.py | francoo27/TPI | 53b7a88a491ef785046c208625c745de80200945 | [
"MIT"
] | 1 | 2021-04-27T21:22:30.000Z | 2021-04-27T21:22:30.000Z | Sistema/API/app/application/Logic/funcionService.py | francoo27/TPI | 53b7a88a491ef785046c208625c745de80200945 | [
"MIT"
] | null | null | null | Sistema/API/app/application/Logic/funcionService.py | francoo27/TPI | 53b7a88a491ef785046c208625c745de80200945 | [
"MIT"
] | null | null | null | from ..Data import funcionRepository
from ..Model.FuncionModel import Funcion
def get_funcion(id):
return funcionRepository.get_funcion(id)
def query_funcion():
return funcionRepository.query_funcion()
def query_ByPeliculaAndFormato(peliculaId,fomatoId):
return funcionRepository.query_ByPeliculaAndFormat... | 27.2 | 76 | 0.8 | 73 | 680 | 7.260274 | 0.273973 | 0.075472 | 0.045283 | 0.162264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119118 | 680 | 25 | 77 | 27.2 | 0.884808 | 0.061765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0 | 0.125 | 0.1875 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
db8e8aa03d599d7dab6bc8ea3699dd029f07f67b | 201 | py | Python | run.py | vinaydyamaklar/mini-amazon | 9aab9f8e236ed0f1fa638b02e55337bf48e7f977 | [
"Unlicense"
] | null | null | null | run.py | vinaydyamaklar/mini-amazon | 9aab9f8e236ed0f1fa638b02e55337bf48e7f977 | [
"Unlicense"
] | null | null | null | run.py | vinaydyamaklar/mini-amazon | 9aab9f8e236ed0f1fa638b02e55337bf48e7f977 | [
"Unlicense"
] | null | null | null | from mini_amazon import app
import json
if __name__ == '__main__':
config = json.load(open("./config.json", "r"))
app.run(host=config['host'], port=config['port'], debug=config['debugmode'])
| 25.125 | 80 | 0.671642 | 28 | 201 | 4.5 | 0.642857 | 0.15873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 201 | 7 | 81 | 28.714286 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
db90a7e4c87f922186807f8ddaeace5db42e69e1 | 2,747 | py | Python | morphsnakes/cmorphsnakes.py | rabbitff/123456 | ce14d0e26944acec88b716002a766f318c100610 | [
"BSD-3-Clause"
] | null | null | null | morphsnakes/cmorphsnakes.py | rabbitff/123456 | ce14d0e26944acec88b716002a766f318c100610 | [
"BSD-3-Clause"
] | null | null | null | morphsnakes/cmorphsnakes.py | rabbitff/123456 | ce14d0e26944acec88b716002a766f318c100610 | [
"BSD-3-Clause"
] | null | null | null |
from . import _morphsnakes as _ms
import numpy as np
class MorphACWE(object):
def __init__(self, levelset, data, smoothing=1, lambda1=1, lambda2=1):
self._levelset = np.uint8(levelset)
self.data = np.float_(data)
self.smoothing = smoothing
self.lambda1 = lambda1
self.... | 33.096386 | 115 | 0.603932 | 309 | 2,747 | 5.20712 | 0.249191 | 0.119329 | 0.052206 | 0.047234 | 0.78931 | 0.756992 | 0.720945 | 0.68614 | 0.637663 | 0.637663 | 0 | 0.01357 | 0.302512 | 2,747 | 82 | 116 | 33.5 | 0.8262 | 0.091372 | 0 | 0.666667 | 0 | 0 | 0.064673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175439 | false | 0 | 0.035088 | 0 | 0.280702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dbac0f264b3cd9811656e6abb2d0b2f5f0629651 | 2,439 | py | Python | prog1/implementacoes/condicionais.py | dfquaresma/Tamburetei | d83701b7ce69b780c6a6d7a9fa1e8287c1ddf492 | [
"MIT"
] | 1 | 2019-03-14T23:54:35.000Z | 2019-03-14T23:54:35.000Z | prog1/implementacoes/condicionais.py | dfquaresma/Tamburetei | d83701b7ce69b780c6a6d7a9fa1e8287c1ddf492 | [
"MIT"
] | 1 | 2019-02-27T15:14:35.000Z | 2019-02-27T15:14:35.000Z | prog1/implementacoes/condicionais.py | dfquaresma/Tamburetei | d83701b7ce69b780c6a6d7a9fa1e8287c1ddf492 | [
"MIT"
] | 1 | 2019-02-27T11:55:45.000Z | 2019-02-27T11:55:45.000Z | # coding: utf-8
# CONDICIONAIS
#
# Os condicionais são estruturas responsáveis por causar desvio de flu-
# xo a partir do valor de uma expressão lógica. Em outras palavras, é o
# valor de uma condição (verdadeira ou falsa) que determinará se um blo-
# co de código será ou não executado. Em Python, os condicionais são ... | 35.347826 | 73 | 0.700697 | 399 | 2,439 | 4.280702 | 0.330827 | 0.042155 | 0.084309 | 0.128806 | 0.379391 | 0.336651 | 0.184426 | 0.055035 | 0.037471 | 0 | 0 | 0.028184 | 0.214432 | 2,439 | 68 | 74 | 35.867647 | 0.863257 | 0.629356 | 0 | 0.115385 | 0 | 0 | 0.467279 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 0 | null | null | 0 | 0 | null | null | 0.461538 | 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 | 1 | 0 | 3 |
dbaf8d4deaee4e18603381965173f05d5e10adeb | 302 | py | Python | src/cryptoadvance/specter/api/views.py | Sh0ham/specter-desktop | fd7d7eddd191b79515a51183a5e52fee14241717 | [
"MIT"
] | 683 | 2019-08-31T02:26:21.000Z | 2022-03-31T18:43:31.000Z | src/cryptoadvance/specter/api/views.py | Sh0ham/specter-desktop | fd7d7eddd191b79515a51183a5e52fee14241717 | [
"MIT"
] | 1,100 | 2019-09-26T13:00:18.000Z | 2022-03-31T22:29:54.000Z | src/cryptoadvance/specter/api/views.py | Sh0ham/specter-desktop | fd7d7eddd191b79515a51183a5e52fee14241717 | [
"MIT"
] | 179 | 2019-09-03T17:10:59.000Z | 2022-03-31T16:59:13.000Z | from flask import render_template
from cryptoadvance.specter.api import api_bp
from flask import current_app as app
@api_bp.route("/")
def api():
"""rendering the documentation for the api"""
return render_template(
"api.html", version=app.specter.version.get_current_version()
)
| 25.166667 | 69 | 0.735099 | 42 | 302 | 5.119048 | 0.52381 | 0.083721 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165563 | 302 | 11 | 70 | 27.454545 | 0.853175 | 0.129139 | 0 | 0 | 0 | 0 | 0.035019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.375 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
dbb2dd391ad36f284f72124e632c23dbba92f14f | 319 | py | Python | src/commands/stop.py | IanDCarroll/Trivvy | 2aaa68301e4dd1daaf717d98bb468cc65c8f373a | [
"MIT"
] | 1 | 2020-10-09T21:11:38.000Z | 2020-10-09T21:11:38.000Z | src/commands/stop.py | IanDCarroll/Trivvy | 2aaa68301e4dd1daaf717d98bb468cc65c8f373a | [
"MIT"
] | 1 | 2020-09-05T01:29:49.000Z | 2020-09-05T01:29:49.000Z | src/commands/stop.py | Coding-Koans/Trivvy | 2aaa68301e4dd1daaf717d98bb468cc65c8f373a | [
"MIT"
] | 2 | 2020-07-12T05:02:43.000Z | 2020-07-16T00:27:07.000Z | from src.messages import Chat
class stop:
command = "!stop"
validate = [ "admin_only" ]
def tuple():
return (stop.command, stop.graceful_shutdown, stop.validate)
def graceful_shutdown(connection, _message):
connection.send(Chat.good_night)
connection.keep_IRC_running = False
| 24.538462 | 68 | 0.683386 | 37 | 319 | 5.702703 | 0.675676 | 0.104265 | 0.14218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219436 | 319 | 12 | 69 | 26.583333 | 0.84739 | 0 | 0 | 0 | 0 | 0 | 0.047022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
dbb3c75aca78b60e24bb7aede58b92a01ffe807c | 1,223 | py | Python | pdbremix/data/make_chi.py | tcardlab/pdbremix | bc7afca41da08f6166e518976b1c6dc40e35d78e | [
"MIT"
] | 50 | 2015-01-23T00:05:20.000Z | 2022-03-09T04:11:31.000Z | pdbremix/data/make_chi.py | tcardlab/pdbremix | bc7afca41da08f6166e518976b1c6dc40e35d78e | [
"MIT"
] | 7 | 2015-02-18T08:14:30.000Z | 2018-05-17T02:01:58.000Z | pdbremix/data/make_chi.py | tcardlab/pdbremix | bc7afca41da08f6166e518976b1c6dc40e35d78e | [
"MIT"
] | 27 | 2015-01-15T04:10:30.000Z | 2021-10-11T17:56:41.000Z | import pprint
chi_topology_str = """
: CYS
N CA CB SG
: ASP
N CA CB CG
CA CB CG OD1
: GLU
N CA CB CG
CA CB CG CD
CB CG CD OE1
: PHE
N CA CB CG
CA CB CG CD1
: HIS
N CA CB CG
CA CB CG ND1
: ILE
N CA CB CG1
CA CB CG1 CD1
: LYS
N CA CB CG
CA CB CG CD
CB CG CD CE
CG CD CE NZ
: LYN
N CA CB C... | 13.150538 | 56 | 0.598528 | 285 | 1,223 | 2.487719 | 0.217544 | 0.22567 | 0.270804 | 0.157969 | 0.545839 | 0.45275 | 0.45275 | 0.416079 | 0.25811 | 0.25811 | 0 | 0.024907 | 0.343418 | 1,223 | 92 | 57 | 13.293478 | 0.858032 | 0 | 0 | 0.465116 | 0 | 0 | 0.683306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011628 | 0 | 0.011628 | 0.023256 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dbbb1f39874a522c5234421156da22f1954511f9 | 4,359 | py | Python | third_party/unidecode/x00c.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 39 | 2015-06-10T23:18:07.000Z | 2021-10-21T04:29:06.000Z | third_party/unidecode/x00c.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 2 | 2016-08-22T12:38:10.000Z | 2017-01-26T18:37:33.000Z | third_party/unidecode/x00c.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 26 | 2015-06-10T22:09:15.000Z | 2021-06-27T15:45:15.000Z | data = (
'[?]', # 0x00
'N', # 0x01
'N', # 0x02
'H', # 0x03
'[?]', # 0x04
'a', # 0x05
'aa', # 0x06
'i', # 0x07
'ii', # 0x08
'u', # 0x09
'uu', # 0x0a
'R', # 0x0b
'L', # 0x0c
'[?]', # 0x0d
'e', # 0x0e
'ee', # 0x0f
'ai', # 0x10
'[?]', # 0x11
'o', #... | 16.895349 | 17 | 0.288139 | 410 | 4,359 | 3.063415 | 0.765854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231698 | 0.410874 | 4,359 | 257 | 18 | 16.961089 | 0.257399 | 0.292269 | 0 | 0.988327 | 0 | 0 | 0.202566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dbd8ad9ecaaccbaf1ef09099df599dcf98ecb2cd | 7,402 | py | Python | code/insummer/query_expansion/entity_finder.py | lavizhao/insummer | 16520a6c3114e2d6360dca469221bed00a570785 | [
"MIT"
] | 7 | 2017-03-18T07:44:17.000Z | 2019-10-28T03:01:33.000Z | code/insummer/query_expansion/entity_finder.py | lavizhao/insummer | 16520a6c3114e2d6360dca469221bed00a570785 | [
"MIT"
] | 1 | 2020-01-06T06:45:40.000Z | 2020-01-06T06:45:40.000Z | code/insummer/query_expansion/entity_finder.py | lavizhao/insummer | 16520a6c3114e2d6360dca469221bed00a570785 | [
"MIT"
] | 4 | 2016-08-09T02:56:57.000Z | 2019-10-19T14:19:42.000Z | #!/usr/bin/python3
'''
说明:这个文件的主要作用是给定一个句子(问题或者答案中的句子),能找到句子中所有的实体并返回
'''
#这是个实体发现的抽象方法,需求是给定一个句子(问句或者答案的句子),我们能够求出答案句子或问句中所有的实体,这个有一点像实体链接, 但是有一点不同的是(这个在entity util类里面有,我就不说了),e.g. How can i avoid getting sick in china? getting sick就要抽取出来,而这个在通常的KB里面都不是实体, 而且sick也是实体, 这个就算成get sick好了, 后期可能都要,可能要最大的可能要其他的
#应该包含的方法有
#... | 31.364407 | 232 | 0.592407 | 893 | 7,402 | 4.734602 | 0.18701 | 0.028382 | 0.021287 | 0.028382 | 0.724456 | 0.717833 | 0.663434 | 0.663434 | 0.652791 | 0.652791 | 0 | 0.026441 | 0.289787 | 7,402 | 235 | 233 | 31.497872 | 0.77782 | 0.127938 | 0 | 0.75817 | 0 | 0 | 0.047812 | 0 | 0 | 0 | 0 | 0 | 0.006536 | 1 | 0.156863 | false | 0.006536 | 0.019608 | 0.013072 | 0.30719 | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
dbdd1e22e2b97254c88502912acd1962f5ccfd81 | 401 | py | Python | test/4.py | charles-typ/pandas | e3e4fc350aa2234569fe488889254ffb1e86d30b | [
"BSD-3-Clause"
] | null | null | null | test/4.py | charles-typ/pandas | e3e4fc350aa2234569fe488889254ffb1e86d30b | [
"BSD-3-Clause"
] | null | null | null | test/4.py | charles-typ/pandas | e3e4fc350aa2234569fe488889254ffb1e86d30b | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
left = pd.DataFrame({'key': ['K0', 'K1', 'K2', 'K3'],
'A': ['A0', 'A1', 'A2', 'A3'],
'B': ['B0', 'B1', 'B2', 'B3']})
right = pd.DataFrame({'key': ['K0', 'K1', 'K2', 'K3'],
'C': ['C0', 'C1', 'C2', 'C3'],
'D': ['D0'... | 33.416667 | 54 | 0.36409 | 49 | 401 | 2.979592 | 0.755102 | 0.150685 | 0.191781 | 0.219178 | 0.30137 | 0.30137 | 0.30137 | 0 | 0 | 0 | 0 | 0.089219 | 0.329177 | 401 | 11 | 55 | 36.454545 | 0.453532 | 0 | 0 | 0 | 0 | 0 | 0.157107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
dbdd7f1f9f0c72242d1eda3796ffa72e3354439b | 130 | py | Python | v2/tests/site/views/test_index.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 558 | 2017-10-04T14:33:18.000Z | 2022-03-24T21:25:08.000Z | v2/tests/site/views/test_index.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 22 | 2018-04-29T04:25:49.000Z | 2021-08-02T17:26:02.000Z | v2/tests/site/views/test_index.py | jonfairbanks/rtsp-nvr | c770c77e74a062c63fb5e2419bc00a17543da332 | [
"MIT"
] | 127 | 2017-11-14T19:47:27.000Z | 2022-03-24T21:25:12.000Z | from flask import url_for
def test_get_index(client):
r = client.get(url_for('site.index'))
assert r.status_code == 200
| 18.571429 | 41 | 0.707692 | 22 | 130 | 3.954545 | 0.727273 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028037 | 0.176923 | 130 | 6 | 42 | 21.666667 | 0.785047 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
915d40797df99fffae415652cba7421697053d92 | 3,530 | py | Python | lms/services/http.py | hypothesis/lms | 722dac444dc1e73298eea5193f871f3ddefe46fd | [
"BSD-2-Clause"
] | 38 | 2017-12-30T23:49:53.000Z | 2022-02-15T21:07:49.000Z | lms/services/http.py | hypothesis/lms | 722dac444dc1e73298eea5193f871f3ddefe46fd | [
"BSD-2-Clause"
] | 1,733 | 2017-11-09T18:46:05.000Z | 2022-03-31T11:05:50.000Z | lms/services/http.py | hypothesis/lms | 722dac444dc1e73298eea5193f871f3ddefe46fd | [
"BSD-2-Clause"
] | 10 | 2018-07-11T17:12:46.000Z | 2022-01-07T20:00:23.000Z | import requests
from requests import RequestException
from lms.services.exceptions import ExternalRequestError
class HTTPService:
"""Send HTTP requests with `requests` and receive the responses."""
def __init__(self, _session=None):
# A requests session is used so that cookies are persisted across
... | 36.391753 | 87 | 0.633994 | 424 | 3,530 | 5.224057 | 0.386792 | 0.045147 | 0.031603 | 0.045147 | 0.199549 | 0.182844 | 0.112867 | 0.066817 | 0.066817 | 0.066817 | 0 | 0.003555 | 0.28272 | 3,530 | 96 | 88 | 36.770833 | 0.871248 | 0.566006 | 0 | 0 | 0 | 0 | 0.016496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.096774 | 0.193548 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
91618ab2c651a32a71e5002d57f09ebf0d337667 | 482 | bzl | Python | prometheus/defs.bzl | 5h4d0w4rt/rules_prometheus | 12dc9b54de7dd71121ef895388491c5f87255713 | [
"MIT"
] | 1 | 2020-12-19T13:22:09.000Z | 2020-12-19T13:22:09.000Z | prometheus/defs.bzl | 5h4d0w4rt/rules_prometheus | 12dc9b54de7dd71121ef895388491c5f87255713 | [
"MIT"
] | 2 | 2021-10-30T14:21:16.000Z | 2021-10-31T01:31:12.000Z | prometheus/defs.bzl | 5h4d0w4rt/rules_prometheus | 12dc9b54de7dd71121ef895388491c5f87255713 | [
"MIT"
] | 2 | 2021-12-01T20:44:24.000Z | 2021-12-28T15:43:45.000Z | load(
"//prometheus/internal:promtool.bzl",
_promtool = "promtool",
_promtool_config_test = "promtool_config_test",
_promtool_rules_test = "promtool_rules_test",
_promtool_unit_test = "promtool_unit_test",
)
load(
"//prometheus/internal:prom.bzl",
_prometheus = "prometheus",
)
promtool_unit... | 26.777778 | 51 | 0.771784 | 54 | 482 | 6.259259 | 0.185185 | 0.35503 | 0.213018 | 0.307692 | 0.627219 | 0.627219 | 0.260355 | 0 | 0 | 0 | 0 | 0 | 0.134855 | 482 | 17 | 52 | 28.352941 | 0.810552 | 0 | 0 | 0.125 | 0 | 0 | 0.288382 | 0.13278 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
916bdba6b1f3cd9664dbaa6dc446fb7aecf55943 | 439 | py | Python | polling_stations/apps/data_collection/management/commands/import_stroud.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_stroud.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | polling_stations/apps/data_collection/management/commands/import_stroud.py | chris48s/UK-Polling-Stations | 4742b527dae94f0276d35c80460837be743b7d17 | [
"BSD-3-Clause"
] | null | null | null | from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = 'E07000082'
addresses_name = 'parl.2017-06-08/Version 1/Stroud Democracy Club - Where Do I Vote.TSV'
stations_name = 'parl.2017-06-08/Version 1/Stroud Democracy... | 43.9 | 92 | 0.751708 | 57 | 439 | 5.684211 | 0.614035 | 0.074074 | 0.092593 | 0.111111 | 0.358025 | 0.358025 | 0.358025 | 0.358025 | 0.358025 | 0.358025 | 0 | 0.093583 | 0.148064 | 439 | 9 | 93 | 48.777778 | 0.772727 | 0 | 0 | 0 | 0 | 0.25 | 0.389522 | 0.104784 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1.125 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
916f37d71482333ac5cde961682b380d8c3ea17f | 742 | py | Python | pyradox/modules/misc_modules.py | p4vv37/pyradox | cfc8c07d637a1cc189dd8d200f8a55d00405b81f | [
"MIT"
] | 61 | 2021-01-10T09:31:32.000Z | 2022-02-13T13:30:48.000Z | pyradox/modules/misc_modules.py | p4vv37/pyradox | cfc8c07d637a1cc189dd8d200f8a55d00405b81f | [
"MIT"
] | 1 | 2021-04-24T12:03:19.000Z | 2021-04-24T12:03:19.000Z | pyradox/modules/misc_modules.py | p4vv37/pyradox | cfc8c07d637a1cc189dd8d200f8a55d00405b81f | [
"MIT"
] | 6 | 2021-01-17T16:17:35.000Z | 2022-02-13T13:30:49.000Z | from tensorflow.keras import layers
from tensorflow.keras.activations import swish
from tensorflow.nn import relu6
def relu(x):
return layers.ReLU()(x)
def hard_sigmoid(x):
return layers.ReLU(6.0)(x + 3.0) * (1.0 / 6.0)
def hard_swish(x):
return layers.Multiply()([hard_sigmoid(x), x])
class Rescale(... | 21.823529 | 66 | 0.630728 | 107 | 742 | 4.214953 | 0.429907 | 0.093126 | 0.086475 | 0.075388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033688 | 0.239892 | 742 | 33 | 67 | 22.484848 | 0.765957 | 0.234501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0 | 0.1875 | 0.25 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
919a94d63c89e03702b2340c45a431b8868c13cb | 1,106 | py | Python | src/acc_monitor/view/style/stylesheet.py | SEN-HUI/acc_monitor | e225191e312587fc70f5531495526e1f4558c061 | [
"MIT"
] | null | null | null | src/acc_monitor/view/style/stylesheet.py | SEN-HUI/acc_monitor | e225191e312587fc70f5531495526e1f4558c061 | [
"MIT"
] | null | null | null | src/acc_monitor/view/style/stylesheet.py | SEN-HUI/acc_monitor | e225191e312587fc70f5531495526e1f4558c061 | [
"MIT"
] | null | null | null | import tkinter as tk
main_frame_position_cnf = {
"sticky": "news",
}
monitor_look_cnf = {
"borderwidth": 4,
"relief": tk.RIDGE,
}
monitor_position_cnf = {
"sticky": "news",
}
displayer_position_cnf = {
"sticky": "news",
}
text_position_cnf = {
"sticky": "news",
}
text_loo... | 15.577465 | 32 | 0.546112 | 122 | 1,106 | 4.598361 | 0.385246 | 0.254902 | 0.333333 | 0.224599 | 0.089127 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017654 | 0.283002 | 1,106 | 70 | 33 | 15.8 | 0.689786 | 0 | 0 | 0.190476 | 0 | 0 | 0.188065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015873 | 0 | 0.015873 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91ae8eecdd3f61f01cd93270e08e2818328bd9fa | 502 | py | Python | lookup_fields/serializers.py | innovationinit/drf-lookup-fields | be4ba48872da258b918a4c2326edca03464fcf69 | [
"BSD-2-Clause"
] | null | null | null | lookup_fields/serializers.py | innovationinit/drf-lookup-fields | be4ba48872da258b918a4c2326edca03464fcf69 | [
"BSD-2-Clause"
] | null | null | null | lookup_fields/serializers.py | innovationinit/drf-lookup-fields | be4ba48872da258b918a4c2326edca03464fcf69 | [
"BSD-2-Clause"
] | 1 | 2022-03-15T07:29:45.000Z | 2022-03-15T07:29:45.000Z | """Serializers with customizable lookup fields."""
from rest_framework import serializers
from .fields import CustomizableLookupRelatedField
class CustomizableLookupFieldsModelSerializer(serializers.ModelSerializer):
"""ModelSerializer with default related field CustomizableLookupRelatedField."""
serializ... | 27.888889 | 84 | 0.834661 | 37 | 502 | 11.243243 | 0.648649 | 0.168269 | 0.201923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103586 | 502 | 17 | 85 | 29.529412 | 0.924444 | 0.326693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
91b0e78a0e71326668107f4f8f778cae5f3f6097 | 370 | py | Python | streamcontrol/location.py | chalupaul/streamcontrol | e530f92c705cc06db008308a3184e5739a6ff2f5 | [
"Apache-2.0"
] | null | null | null | streamcontrol/location.py | chalupaul/streamcontrol | e530f92c705cc06db008308a3184e5739a6ff2f5 | [
"Apache-2.0"
] | null | null | null | streamcontrol/location.py | chalupaul/streamcontrol | e530f92c705cc06db008308a3184e5739a6ff2f5 | [
"Apache-2.0"
] | null | null | null | from astral import LocationInfo
from astral.sun import sun
SEGUIN = LocationInfo("Seguin", "Texas", "US/Central", 29.563180, -97.894670)
def format_time(dt):
return dt.strftime("%I:%M %p")
def get_suntime(dt, location=SEGUIN):
sun_data = sun(location.observer, date=dt, tzinfo=location.timezone)
sun_dat... | 24.666667 | 77 | 0.718919 | 53 | 370 | 4.924528 | 0.566038 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.145946 | 370 | 14 | 78 | 26.428571 | 0.775316 | 0 | 0 | 0 | 0 | 0 | 0.094595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
91bf8d4223cabc6ab85c63232b4c9b3ba9e702e8 | 178 | gyp | Python | addon/binding.gyp | deatough/electron-fhl | d6ffb6f488b208b4d490b87eff9a7fde10f999a0 | [
"CC0-1.0"
] | null | null | null | addon/binding.gyp | deatough/electron-fhl | d6ffb6f488b208b4d490b87eff9a7fde10f999a0 | [
"CC0-1.0"
] | null | null | null | addon/binding.gyp | deatough/electron-fhl | d6ffb6f488b208b4d490b87eff9a7fde10f999a0 | [
"CC0-1.0"
] | null | null | null | {
"targets": [
{
"target_name": "addon",
"sources": [ "data_from_host.cc", "main.cc", "napi_utils.cc", "start_clock.cc", "thread_safe_callback.cc" ]
}
]
} | 22.25 | 113 | 0.55618 | 21 | 178 | 4.380952 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224719 | 178 | 8 | 114 | 22.25 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.581006 | 0.128492 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91c1ad62db2f284f2b6ad9065f9e880f38fd1837 | 164 | py | Python | dht_tracker/common/_communicate.py | nascu/dht-tracker | b4cba9be8b4c3dc495d8df309c81d6bdbca98af0 | [
"Apache-2.0"
] | 5 | 2018-05-21T19:11:31.000Z | 2019-12-04T04:18:48.000Z | dht_tracker/common/_communicate.py | nascu/dht-tracker | b4cba9be8b4c3dc495d8df309c81d6bdbca98af0 | [
"Apache-2.0"
] | null | null | null | dht_tracker/common/_communicate.py | nascu/dht-tracker | b4cba9be8b4c3dc495d8df309c81d6bdbca98af0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding:utf-8
from multiprocessing import Manager,Pipe
#多进程信息同步字典
sync = Manager().dict()
#任务控制管道
control_out,control_in = Pipe(duplex=False)
| 20.5 | 43 | 0.77439 | 24 | 164 | 5.208333 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.091463 | 164 | 7 | 44 | 23.428571 | 0.832215 | 0.286585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
91d93f127956ef8fb4a65d48442cb4a4a9f0dc4b | 213 | py | Python | lua/refactoring/tests/refactor/119/py/simple-function/extract.expected.py | muchzill4/refactoring.nvim | c50645b4263963eeab2ad60f3e5f617430008255 | [
"MIT"
] | 1 | 2021-08-15T17:07:19.000Z | 2021-08-15T17:07:19.000Z | lua/refactoring/tests/refactor/119/py/simple-function/extract.expected.py | muchzill4/refactoring.nvim | c50645b4263963eeab2ad60f3e5f617430008255 | [
"MIT"
] | 2 | 2021-10-07T19:24:50.000Z | 2021-11-18T18:14:26.000Z | lua/refactoring/tests/refactor/119/py/simple-function/extract.expected.py | muchzill4/refactoring.nvim | c50645b4263963eeab2ad60f3e5f617430008255 | [
"MIT"
] | null | null | null |
def foo_bar(a, test, test_other):
for x in range(test_other + test):
print(x, a)
return fill_me
def simple_function(a):
test = 1
test_other = 11
fill_me = foo_bar(a, test, test_other)
| 15.214286 | 42 | 0.633803 | 37 | 213 | 3.405405 | 0.486486 | 0.285714 | 0.111111 | 0.174603 | 0.31746 | 0.31746 | 0 | 0 | 0 | 0 | 0 | 0.019108 | 0.262911 | 213 | 13 | 43 | 16.384615 | 0.783439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
91ea74190b5854e06f1456be7b2823fe7d144fe2 | 90 | py | Python | code6/test.py | python3-7/python- | 73fa1cf161c5e985da062c50907e03399f79ee2d | [
"MIT"
] | null | null | null | code6/test.py | python3-7/python- | 73fa1cf161c5e985da062c50907e03399f79ee2d | [
"MIT"
] | null | null | null | code6/test.py | python3-7/python- | 73fa1cf161c5e985da062c50907e03399f79ee2d | [
"MIT"
] | null | null | null | class Animal(obje哦不ct):
def shout(self):
print(5)
class Cat(Animal):
pass
| 15 | 23 | 0.611111 | 12 | 90 | 4.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.266667 | 90 | 5 | 24 | 18 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0 | 0 | 0.6 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
37d12811651bc2c53019c2dc27bea43fb5fa5473 | 1,134 | py | Python | tests/test_queryable_aggregate.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 5 | 2016-04-04T16:49:11.000Z | 2020-10-12T13:00:06.000Z | tests/test_queryable_aggregate.py | dlshriver/Queryable | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | 3 | 2016-04-08T16:13:54.000Z | 2022-02-03T15:23:48.000Z | tests/test_queryable_aggregate.py | dlshriver/pinq | 0975f2687213958121ea4ac7efbaee9030193917 | [
"MIT"
] | null | null | null | import unittest
import pinq
class queryable_aggregate_tests(unittest.TestCase):
def setUp(self):
self.queryable = pinq.as_queryable(range(1, 11))
def test_aggregate_product(self):
self.assertEqual(self.queryable.aggregate(lambda x, y: x * y), 3628800)
def test_aggregate_product_provided... | 36.580645 | 83 | 0.698413 | 145 | 1,134 | 5.248276 | 0.234483 | 0.026281 | 0.12615 | 0.183968 | 0.714849 | 0.714849 | 0.53088 | 0.53088 | 0.53088 | 0.402103 | 0 | 0.045556 | 0.206349 | 1,134 | 30 | 84 | 37.8 | 0.8 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.333333 | false | 0 | 0.095238 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37e436f54e931766dc4809b906485df9048c8d27 | 158 | py | Python | experiment1.py | dlej/d2k-demo | 86b91b703a0fecedc11b6c4aed0ac29f009dde9e | [
"MIT"
] | null | null | null | experiment1.py | dlej/d2k-demo | 86b91b703a0fecedc11b6c4aed0ac29f009dde9e | [
"MIT"
] | null | null | null | experiment1.py | dlej/d2k-demo | 86b91b703a0fecedc11b6c4aed0ac29f009dde9e | [
"MIT"
] | null | null | null | from mylibrary import HelloWorld
# run with commit eeeb7f94c15227406f5572a8f9070890f2cc5d7e
helloworld = HelloWorld()
print(helloworld.say('how are you?')) | 22.571429 | 58 | 0.816456 | 16 | 158 | 8.0625 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184397 | 0.107595 | 158 | 7 | 59 | 22.571429 | 0.730496 | 0.35443 | 0 | 0 | 0 | 0 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
37e91f3fe775d79c1d2d8abc3fdd6fba5ce383dd | 33 | py | Python | PFERD/version.py | Shirkanesi/PFERD | da72863b471c048768a0d8234ba02298b1f9e4c1 | [
"MIT"
] | null | null | null | PFERD/version.py | Shirkanesi/PFERD | da72863b471c048768a0d8234ba02298b1f9e4c1 | [
"MIT"
] | null | null | null | PFERD/version.py | Shirkanesi/PFERD | da72863b471c048768a0d8234ba02298b1f9e4c1 | [
"MIT"
] | null | null | null | NAME = "PFERD"
VERSION = "3.3.1"
| 11 | 17 | 0.575758 | 6 | 33 | 3.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0.181818 | 33 | 2 | 18 | 16.5 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
37ecc2c0d6b306e4ac1880e0074f6a6cb1b414af | 262 | py | Python | PUUIDGrabber.py | kuhakuna/DiporDab | 5ab7f2c4b1e43afddc568c6b5841a2bc577721cf | [
"Apache-2.0"
] | null | null | null | PUUIDGrabber.py | kuhakuna/DiporDab | 5ab7f2c4b1e43afddc568c6b5841a2bc577721cf | [
"Apache-2.0"
] | null | null | null | PUUIDGrabber.py | kuhakuna/DiporDab | 5ab7f2c4b1e43afddc568c6b5841a2bc577721cf | [
"Apache-2.0"
] | null | null | null | # Imports
from riotwatcher import LolWatcher, ApiError
from matchdto import MatchData
from BlankWinObject import BlankMatch
class PuuidGrabber:
def __init__(self):
self.riot_api_key = "RGAPI-fb19ebfa-d454-4a01-b3e2-a2e187b03c91"
| 17.466667 | 73 | 0.732824 | 29 | 262 | 6.413793 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0.209924 | 262 | 14 | 74 | 18.714286 | 0.811594 | 0.026718 | 0 | 0 | 0 | 0 | 0.175732 | 0.175732 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
37f42111014184a593bc777251fa3990432d9191 | 775 | py | Python | course_contents/6_modules/modulexample.py | maganoegi/python_course_autumn_2021 | 0b297040f4e1eba654f125ee60ac4fa8e06b093b | [
"MIT"
] | null | null | null | course_contents/6_modules/modulexample.py | maganoegi/python_course_autumn_2021 | 0b297040f4e1eba654f125ee60ac4fa8e06b093b | [
"MIT"
] | null | null | null | course_contents/6_modules/modulexample.py | maganoegi/python_course_autumn_2021 | 0b297040f4e1eba654f125ee60ac4fa8e06b093b | [
"MIT"
] | 1 | 2021-12-07T07:15:19.000Z | 2021-12-07T07:15:19.000Z |
# importer un built-in module:
import random
>>> random.randint(0, 10)
8
# Importer custom module.
# DANS lib.py .....
def func():
pass
def other_func():
pass
# DANS __main__.py .....
import lib
>>> a = lib.func()
# Nous pouvons aussi importer la fonction elle-même...
from lib import other_func
>>> a ... | 18.023256 | 57 | 0.68129 | 112 | 775 | 4.598214 | 0.625 | 0.069903 | 0.069903 | 0.069903 | 0.085437 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006656 | 0.224516 | 775 | 43 | 58 | 18.023256 | 0.85025 | 0.55871 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.2 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
531c5bdf9113b2a70cb638455884de0d80faf5d2 | 740 | py | Python | pyvect/section.py | ToastCoder/pyvect | 8d009afedd855924817260a19248f89b0078a362 | [
"MIT"
] | null | null | null | pyvect/section.py | ToastCoder/pyvect | 8d009afedd855924817260a19248f89b0078a362 | [
"MIT"
] | 2 | 2022-01-03T15:07:39.000Z | 2022-01-25T13:01:04.000Z | pyvect/section.py | ToastCoder/pyvect | 8d009afedd855924817260a19248f89b0078a362 | [
"MIT"
] | 2 | 2020-11-01T12:54:14.000Z | 2021-06-22T17:05:21.000Z | # SUBMODULE FOR SECTION VECTOR OPERATIONS
# TO USE THE FUNCTIONS IN THIS SUBMODULE
# >>> pyvect.section
# IMPORTING REQUIRED MODULES
import numpy as np
# FUNCTIONS
# internal() - Returns a vector using section formula using internal method
# Syntax: pyvect.section.internal(p1,p2,m,n)
# p1,p2 - Positional vectors
# ... | 29.6 | 75 | 0.694595 | 122 | 740 | 4.213115 | 0.336066 | 0.038911 | 0.062257 | 0.07393 | 0.529183 | 0.529183 | 0.529183 | 0.381323 | 0.381323 | 0.381323 | 0 | 0.012719 | 0.15 | 740 | 25 | 76 | 29.6 | 0.804452 | 0.716216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.2 | 0.4 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
534016d954f83a977109257e38a1c7d879599ec9 | 389 | py | Python | web/fast_api/__init__.py | xoosite/ido.py | 811d6477560fc5f635a4d1c8817f4a4667e6c251 | [
"MIT"
] | null | null | null | web/fast_api/__init__.py | xoosite/ido.py | 811d6477560fc5f635a4d1c8817f4a4667e6c251 | [
"MIT"
] | null | null | null | web/fast_api/__init__.py | xoosite/ido.py | 811d6477560fc5f635a4d1c8817f4a4667e6c251 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
#=============================================================================
# FileName: __init__.py.py
# Desc:
# Author: Jeyrce.Lu
# Email: jianxin.lu@woqutech.com
# HomePage: www.woqutech.com
# Version: 0.0.1
# LastChange: 2021/1/21 下午4:21
# History:
#=============... | 25.933333 | 78 | 0.383033 | 35 | 389 | 4.142857 | 0.8 | 0.151724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039548 | 0.089974 | 389 | 14 | 79 | 27.785714 | 0.370057 | 0.969152 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
53539e8ab16157e0894f2720ed3a87400c2d467f | 92 | py | Python | rpi_rf/__init__.py | nhorvath/rpi-rf | a7d5578c2e1ae3bae047358aee477bcff96f14b4 | [
"BSD-3-Clause"
] | 2 | 2019-02-19T20:13:08.000Z | 2021-07-11T10:52:49.000Z | rpi_rf/__init__.py | nhorvath/rpi-rf | a7d5578c2e1ae3bae047358aee477bcff96f14b4 | [
"BSD-3-Clause"
] | null | null | null | rpi_rf/__init__.py | nhorvath/rpi-rf | a7d5578c2e1ae3bae047358aee477bcff96f14b4 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T17:51:19.000Z | 2022-01-17T17:51:19.000Z | from __future__ import absolute_import
from .rpi_rf import RFDevice
__version__ = '0.9.6'
| 15.333333 | 38 | 0.793478 | 14 | 92 | 4.5 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.141304 | 92 | 5 | 39 | 18.4 | 0.759494 | 0 | 0 | 0 | 0 | 0 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5359b61b7b616380103a0a1b6c664f3fa40cb0c4 | 214 | py | Python | api/admin.py | NickLeoMartin/quick_deploy | 95922feb552ffdc61e0f0757a9a5ca9b2060c288 | [
"MIT"
] | null | null | null | api/admin.py | NickLeoMartin/quick_deploy | 95922feb552ffdc61e0f0757a9a5ca9b2060c288 | [
"MIT"
] | null | null | null | api/admin.py | NickLeoMartin/quick_deploy | 95922feb552ffdc61e0f0757a9a5ca9b2060c288 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
# Register your models here.
class SomeItemAdmin(admin.ModelAdmin):
list_display = ('id','name','url')
admin.site.register(models.SomeItem, SomeItemAdmin)
| 19.454545 | 51 | 0.766355 | 27 | 214 | 6.037037 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116822 | 214 | 10 | 52 | 21.4 | 0.862434 | 0.121495 | 0 | 0 | 0 | 0 | 0.048913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5359db15cb9a3037a794730340f0283e1e6bb760 | 494 | py | Python | Encounters/pathEncounters.py | Finnder/Console-Based-Story-Game | fe5341faf82783880872560d43d286e917f5e3d7 | [
"Apache-2.0"
] | null | null | null | Encounters/pathEncounters.py | Finnder/Console-Based-Story-Game | fe5341faf82783880872560d43d286e917f5e3d7 | [
"Apache-2.0"
] | null | null | null | Encounters/pathEncounters.py | Finnder/Console-Based-Story-Game | fe5341faf82783880872560d43d286e917f5e3d7 | [
"Apache-2.0"
] | null | null | null | import random
import Library
def cavern_Path():
Library.storyPrint("""
(You remember something)
There was a path that led into a dark cave with a little light at the end.
You wanted to go explore but it looked kinda dangerous and you heard mysterious noises
inside. Should I go back?
""")
def m... | 24.7 | 90 | 0.619433 | 63 | 494 | 4.809524 | 0.698413 | 0.108911 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289474 | 494 | 20 | 91 | 24.7 | 0.863248 | 0 | 0 | 0.352941 | 0 | 0 | 0.614141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | true | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5368b708aa9b493f44f52c670be02b9e228f9f56 | 36 | py | Python | systems/__init__.py | ShaunMerritt/systems | 9d83bb475f3c63edb679ceee2f82d0dbaee8c7b1 | [
"MIT"
] | 203 | 2018-09-21T21:03:48.000Z | 2022-03-31T06:58:58.000Z | systems/__init__.py | ShaunMerritt/systems | 9d83bb475f3c63edb679ceee2f82d0dbaee8c7b1 | [
"MIT"
] | 4 | 2019-04-24T22:57:44.000Z | 2021-10-13T03:30:30.000Z | systems/__init__.py | ShaunMerritt/systems | 9d83bb475f3c63edb679ceee2f82d0dbaee8c7b1 | [
"MIT"
] | 8 | 2019-04-26T01:29:20.000Z | 2021-11-13T15:11:59.000Z | name = "systems"
version = "0.1.0"
| 9 | 17 | 0.583333 | 6 | 36 | 3.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 0.194444 | 36 | 3 | 18 | 12 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72859469066cd29d0fcf32d4d1dbedf0a773bffc | 253 | py | Python | tightai/user.py | tightai/tightai | 3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6 | [
"Apache-2.0"
] | 1 | 2020-09-13T08:10:59.000Z | 2020-09-13T08:10:59.000Z | tightai/user.py | tightai/tightai | 3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6 | [
"Apache-2.0"
] | 1 | 2022-02-26T08:32:58.000Z | 2022-02-26T08:32:58.000Z | tightai/user.py | tightai/tightai | 3a440ad780f5c7ff84a54ad9dc6b342ce3b420b6 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 10_user.ipynb (unless otherwise specified).
__all__ = ['UserObject']
# Cell
from .base import BaseObject
# Cell
class UserObject(BaseObject):
def __str__(self):
return f"<User: {self.username}>" | 23 | 87 | 0.70751 | 32 | 253 | 5.3125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009569 | 0.173913 | 253 | 11 | 88 | 23 | 0.803828 | 0.375494 | 0 | 0 | 1 | 0 | 0.212903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
72a744ffb8e9c02d12f1cbd541be50fe28b77a6f | 122 | py | Python | q2.py | Par1Na/Twowaits | 65678ba98e8a8787fd442d57609a330148805fec | [
"Unlicense"
] | 2 | 2020-05-09T22:52:20.000Z | 2020-05-18T17:23:01.000Z | q2.py | Par1Na/Twowaits | 65678ba98e8a8787fd442d57609a330148805fec | [
"Unlicense"
] | null | null | null | q2.py | Par1Na/Twowaits | 65678ba98e8a8787fd442d57609a330148805fec | [
"Unlicense"
] | null | null | null | # Twowaits
Twowaits Problem
import math
n=int(input("Enter a no."))
print("Square root of the no. is "+str(math.sqrt(n)))
| 20.333333 | 53 | 0.704918 | 22 | 122 | 3.909091 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131148 | 122 | 5 | 54 | 24.4 | 0.811321 | 0.065574 | 0 | 0 | 0 | 0 | 0.330357 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72adb7f4aa254f4613f5fa0fad48e3a538ff1709 | 137 | py | Python | Estudos/110exercicios/Exercicios/ex016.py | romuloferraz/Python | 2e20e7483cf9ea74b0b514f253034002bb56807f | [
"MIT"
] | null | null | null | Estudos/110exercicios/Exercicios/ex016.py | romuloferraz/Python | 2e20e7483cf9ea74b0b514f253034002bb56807f | [
"MIT"
] | null | null | null | Estudos/110exercicios/Exercicios/ex016.py | romuloferraz/Python | 2e20e7483cf9ea74b0b514f253034002bb56807f | [
"MIT"
] | null | null | null | num = float(input('Digite um número decimal: '))
numint = int(num)
print(f'O número digitado foi {num} e sua porção inteira é {numint}')
| 34.25 | 69 | 0.708029 | 23 | 137 | 4.217391 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153285 | 137 | 3 | 70 | 45.666667 | 0.836207 | 0 | 0 | 0 | 0 | 0 | 0.620438 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
72ce5fac30f9e2e9cef6a23e8910596a8b1bea03 | 179 | py | Python | 14_functions_lab/03.py | maornesimi/python-course-examples | f2e606f142a9d331075db73fd451c4418dba45ed | [
"MIT"
] | null | null | null | 14_functions_lab/03.py | maornesimi/python-course-examples | f2e606f142a9d331075db73fd451c4418dba45ed | [
"MIT"
] | 143 | 2016-10-14T07:33:55.000Z | 2018-11-06T19:13:52.000Z | 14_functions_lab/03.py | maornesimi/python-course-examples | f2e606f142a9d331075db73fd451c4418dba45ed | [
"MIT"
] | 43 | 2016-10-13T15:49:47.000Z | 2019-09-10T09:14:52.000Z | """
Write a function called "sum_tens" that calculates the sum
of the 10th digit from all arguments passed to it
"""
def sum_tens():
pass
# print sum_tens(120, 140, 1123)
| 14.916667 | 58 | 0.703911 | 30 | 179 | 4.1 | 0.8 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0.206704 | 179 | 11 | 59 | 16.272727 | 0.78169 | 0.782123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
72e38febf01dd8e32fbeda7971ce81fc44b5f2a4 | 224 | py | Python | favorites/urls.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | null | null | null | favorites/urls.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | 62 | 2021-11-22T21:52:44.000Z | 2021-12-17T15:07:02.000Z | favorites/urls.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | null | null | null | from django.conf.urls import url
from django.urls import path
from favorites.views import FavoritesView
# URLConf
urlpatterns = [
path('', FavoritesView.as_view()),
url(r'^(?P<id>\d+)/$', FavoritesView.as_view())
]
| 22.4 | 51 | 0.705357 | 30 | 224 | 5.2 | 0.6 | 0.128205 | 0.24359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138393 | 224 | 9 | 52 | 24.888889 | 0.80829 | 0.03125 | 0 | 0 | 0 | 0 | 0.065116 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
72f3d7d2c6708058a48fe1d850493411c867cc92 | 12,787 | py | Python | test/api/test_compute.py | ulzar/athera-python | dc9bead3da4f4dc10c9466f94f3a61b37e5ad844 | [
"MIT"
] | null | null | null | test/api/test_compute.py | ulzar/athera-python | dc9bead3da4f4dc10c9466f94f3a61b37e5ad844 | [
"MIT"
] | null | null | null | test/api/test_compute.py | ulzar/athera-python | dc9bead3da4f4dc10c9466f94f3a61b37e5ad844 | [
"MIT"
] | null | null | null | from settings import environment, compute_arguments
from athera.api import compute
import unittest
import uuid
import time
from requests import codes
import os
class ComputeTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.token = os.getenv("ATHERA_API_TEST_TOKEN")
if not cls.tok... | 38.866261 | 158 | 0.627747 | 1,534 | 12,787 | 4.889831 | 0.113429 | 0.086388 | 0.12305 | 0.220771 | 0.781896 | 0.742701 | 0.691508 | 0.672177 | 0.65338 | 0.632316 | 0 | 0.004757 | 0.29311 | 12,787 | 329 | 159 | 38.866261 | 0.825091 | 0.099711 | 0 | 0.561798 | 0 | 0 | 0.051856 | 0.011143 | 0 | 0 | 0 | 0.00304 | 0.131086 | 1 | 0.074906 | false | 0 | 0.026217 | 0 | 0.11236 | 0.007491 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 3 |
72faa2fff2a253ca2505c432ec2d7a1c91863ab9 | 31,173 | py | Python | 12 DTC Code V7 (Attack 1).py | casearcoding/12-DTC-Digital-Outcome | 686b3a6a31b0574ffed0339d44634d33e8e12da7 | [
"Apache-2.0"
] | null | null | null | 12 DTC Code V7 (Attack 1).py | casearcoding/12-DTC-Digital-Outcome | 686b3a6a31b0574ffed0339d44634d33e8e12da7 | [
"Apache-2.0"
] | null | null | null | 12 DTC Code V7 (Attack 1).py | casearcoding/12-DTC-Digital-Outcome | 686b3a6a31b0574ffed0339d44634d33e8e12da7 | [
"Apache-2.0"
] | null | null | null | import random
# User Weapon Variables
B = "Brushing"
F = "Floss"
D = "Dental Wash"
L = "Low-Sugar Diet"
M = "Medicine (Probiotics)"
User_Weapons = ['B', 'F', 'D', 'L', 'M']
chosen_UW = ""
user_damage = 0
# User Attack Variables
P = "Plaque"
G = "Gum Disease"
T = "Tooth Sensitivity"
S = "Stained Teeth"... | 108.616725 | 294 | 0.109293 | 758 | 31,173 | 4.390501 | 0.270449 | 0.054087 | 0.075721 | 0.09375 | 0.283053 | 0.265625 | 0.217849 | 0.198017 | 0.189904 | 0.180889 | 0 | 0.082493 | 0.840952 | 31,173 | 286 | 295 | 108.996504 | 0.587535 | 0.009624 | 0 | 0.638132 | 0 | 0.019455 | 0.926569 | 0.009682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003891 | false | 0 | 0.003891 | 0 | 0.011673 | 0.046693 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f410b56512aede06570ddccd395a629a99669fd4 | 431 | py | Python | data/county_level/raw/khn_icu/download.py | csinva/covid-19-analysis | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | 2 | 2020-03-24T16:50:02.000Z | 2020-03-24T17:00:50.000Z | data_new/county_level/raw/khn_icu/download.py | rahul263-stack/covid19-severity-prediction | f581adb2fccb12d5ab3f3c59ee120f484703edf5 | [
"MIT"
] | 1 | 2020-03-28T15:34:28.000Z | 2020-03-28T19:22:27.000Z | data/county_level/raw/khn_icu/download.py | Yu-Group/covid-19-ventilator-demand-prediction | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
import os
os.system("wget https://khn.org/wp-content/uploads/sites/2/2020/03/KHN-ICU-bed-county-analysis_2.zip -O khn_icu.zip")
os.system("unzip khn_icu.zip")
os.system("mv KHN_ICU_bed_county_analysis_2.xlsx khn_icu.xlsx")
os.system("mkdir DOC")
os.system("mv Read\ Me__KHN\ ICU\ bed\ county\ analysi... | 47.888889 | 117 | 0.740139 | 84 | 431 | 3.654762 | 0.452381 | 0.18241 | 0.087948 | 0.14658 | 0.34202 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0.025063 | 0.074246 | 431 | 9 | 118 | 47.888889 | 0.744361 | 0.041763 | 0 | 0 | 0 | 0.125 | 0.736077 | 0.082324 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f42195e69de0158040a37a81c79a5649141a9f3b | 65 | py | Python | npmatrices.py | iamnicoj/pythonplay | f847038524c59a5fe658712a2cf4f904ad52401e | [
"MIT"
] | null | null | null | npmatrices.py | iamnicoj/pythonplay | f847038524c59a5fe658712a2cf4f904ad52401e | [
"MIT"
] | 6 | 2021-03-02T21:28:15.000Z | 2021-03-17T23:35:44.000Z | npmatrices.py | iamnicoj/pythonplay | f847038524c59a5fe658712a2cf4f904ad52401e | [
"MIT"
] | null | null | null | import numpy as np
a = np.array([1,2,3])
print(a)
print(type(a)) | 13 | 21 | 0.646154 | 15 | 65 | 2.8 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.138462 | 65 | 5 | 22 | 13 | 0.696429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f453e5024ad36ec8e30926718690132b0df2e174 | 1,541 | py | Python | wb/extensions_factories/database.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 23 | 2022-03-17T12:24:09.000Z | 2022-03-31T09:13:30.000Z | wb/extensions_factories/database.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 18 | 2022-03-21T08:17:44.000Z | 2022-03-30T12:42:30.000Z | wb/extensions_factories/database.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 16 | 2022-03-17T12:24:14.000Z | 2022-03-31T12:15:12.000Z | """
OpenVINO DL Workbench
Classes and functions creating and working with instance of SQLAlchemy
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | 30.215686 | 85 | 0.779364 | 231 | 1,541 | 4.995671 | 0.437229 | 0.038995 | 0.048527 | 0.04766 | 0.09792 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006149 | 0.155743 | 1,541 | 50 | 86 | 30.82 | 0.880861 | 0.4244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.285714 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f455c6c8351d7ec35f56a7406c4003ca45cebe6c | 1,895 | py | Python | PolycraftAIGym/hg_agent.py | PolycraftWorld/polycraft-world | cf4436277016033455307821f0d4d84a26f1ce48 | [
"BSD-3-Clause"
] | null | null | null | PolycraftAIGym/hg_agent.py | PolycraftWorld/polycraft-world | cf4436277016033455307821f0d4d84a26f1ce48 | [
"BSD-3-Clause"
] | null | null | null | PolycraftAIGym/hg_agent.py | PolycraftWorld/polycraft-world | cf4436277016033455307821f0d4d84a26f1ce48 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import socket, random, time, json
HOST = "127.0.0.1"
PORT = 9000
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((HOST, PORT))
command_stream = [
"reset domain ../available_tests/hg_nonov.json",
"smooth_move w",
"smooth_move w",
"smooth_move w",... | 20.597826 | 57 | 0.585224 | 267 | 1,895 | 3.910112 | 0.273408 | 0.488506 | 0.337165 | 0.504789 | 0.531609 | 0.530651 | 0.530651 | 0.51341 | 0.492337 | 0.492337 | 0 | 0.016141 | 0.280739 | 1,895 | 91 | 58 | 20.824176 | 0.749817 | 0.026385 | 0 | 0.621951 | 0 | 0 | 0.443746 | 0.018275 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012195 | 0 | 0.012195 | 0.036585 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f4584eb76f6205b383aefa796c88881f39c21e92 | 400 | py | Python | python_sandbox_starter/functions.py | iamdv/Django-First | ad0d4301fc882b8b6a56c1836e1ba47aa4c2ad2d | [
"MIT"
] | null | null | null | python_sandbox_starter/functions.py | iamdv/Django-First | ad0d4301fc882b8b6a56c1836e1ba47aa4c2ad2d | [
"MIT"
] | null | null | null | python_sandbox_starter/functions.py | iamdv/Django-First | ad0d4301fc882b8b6a56c1836e1ba47aa4c2ad2d | [
"MIT"
] | null | null | null | # A function is a block of code which only runs when it is called. In Python, we do not use parentheses and curly brackets, we use indentation with tabs or spaces
# A lambda function is a small anonymous function.
# A lambda function can take any number of arguments, but can only have one expression. Very similar to... | 44.444444 | 162 | 0.765 | 70 | 400 | 4.371429 | 0.728571 | 0.065359 | 0.071895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 0.19 | 400 | 9 | 163 | 44.444444 | 0.925926 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
f459807720aa0e67333d98d0d5aa8f449b59e561 | 279 | py | Python | util/filenameGenerator.py | pepsifire/FileUploader-FastAPI | cec4cd41e64cd767246a0725bfb93f3ac78be5ea | [
"MIT"
] | null | null | null | util/filenameGenerator.py | pepsifire/FileUploader-FastAPI | cec4cd41e64cd767246a0725bfb93f3ac78be5ea | [
"MIT"
] | null | null | null | util/filenameGenerator.py | pepsifire/FileUploader-FastAPI | cec4cd41e64cd767246a0725bfb93f3ac78be5ea | [
"MIT"
] | null | null | null | import secrets
import string
class filenameGenerator:
""" Generate random filenames"""
def generateName(length=5) -> string:
filename = ''.join(secrets.choice(string.ascii_uppercase + string.ascii_lowercase) for _ in range(length))
return filename
| 25.363636 | 114 | 0.702509 | 30 | 279 | 6.433333 | 0.733333 | 0.11399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004484 | 0.200717 | 279 | 11 | 115 | 25.363636 | 0.860987 | 0.089606 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f47f4e59e5b37d9194ad23c7805f89d38d2f6d4e | 73 | py | Python | Iniciante/1004_produto_simples.py | tiagodemacedo/exercicios-uri-online-judge | bd25ca96881807fcc2de148b8e4428a24a808a6f | [
"MIT"
] | null | null | null | Iniciante/1004_produto_simples.py | tiagodemacedo/exercicios-uri-online-judge | bd25ca96881807fcc2de148b8e4428a24a808a6f | [
"MIT"
] | null | null | null | Iniciante/1004_produto_simples.py | tiagodemacedo/exercicios-uri-online-judge | bd25ca96881807fcc2de148b8e4428a24a808a6f | [
"MIT"
] | null | null | null | x = int(input())
y = int(input())
prod = x * y
print(f"PROD = {prod}")
| 10.428571 | 23 | 0.520548 | 13 | 73 | 2.923077 | 0.538462 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219178 | 73 | 6 | 24 | 12.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.178082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be3d502dfa9392b0e28d55fac6f20f85929d1793 | 410 | py | Python | WS/07.gitlab-python.01/python-master/notes/forms.py | cnb0/learning-gitlab | bcef6d6e4d37cab3bad28015fadd8c68a17ae5d0 | [
"MIT"
] | null | null | null | WS/07.gitlab-python.01/python-master/notes/forms.py | cnb0/learning-gitlab | bcef6d6e4d37cab3bad28015fadd8c68a17ae5d0 | [
"MIT"
] | 1 | 2021-06-10T23:35:17.000Z | 2021-06-10T23:35:17.000Z | notes/forms.py | srinivasch09/Simply-Simple-Notes-Python | dc4b01e61d6908ab91ef84299ed804315d7eaaf8 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired
class AddForm(FlaskForm):
note_field = StringField('Enter Note', validators=[DataRequired()])
add = SubmitField('Add')
class DeleteForm(FlaskForm):
id_field... | 37.272727 | 73 | 0.770732 | 43 | 410 | 7.27907 | 0.488372 | 0.070288 | 0.134185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126829 | 410 | 11 | 74 | 37.272727 | 0.874302 | 0 | 0 | 0 | 0 | 0 | 0.065693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.333333 | 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 | 1 | 0 | 1 | 0 | 0 | 3 |
be5bbb2186d4e01348c03f7933446f886a96e9c7 | 74,026 | py | Python | colour/quality/datasets/vs.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | colour/quality/datasets/vs.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | colour/quality/datasets/vs.py | JGoldstone/colour | 6829b363d5f0682bff0f4826995e7ceac189ff28 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
NIST CQS Test Colour Samples Spectral Distributions
===================================================
Defines the *NIST CQS (Color Quality Scale)* test colour samples spectral
distributions.
The *NIST CQS* test colour samples data is in the form of a *dict* of
:class:`colour.SpectralDist... | 24.749582 | 78 | 0.331316 | 8,846 | 74,026 | 2.764979 | 0.200656 | 0.004906 | 0.004865 | 0.005928 | 0.510732 | 0.501574 | 0.49307 | 0.488246 | 0.487428 | 0.487428 | 0 | 0.672712 | 0.544903 | 74,026 | 2,990 | 79 | 24.75786 | 0.053311 | 0.012428 | 0 | 0.510762 | 0 | 0 | 0.01168 | 0.001655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.000683 | 0 | 0.000683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
be60cfec765ed27e6071b085f92d87b5e3612d6c | 183 | py | Python | arguments.py | Matelaa/LearningPython | 0cc565fea588a981cded058f6ce5d6a9f351cd44 | [
"MIT"
] | 2 | 2021-10-07T01:05:32.000Z | 2021-10-07T06:10:17.000Z | arguments.py | Matelaa/LearningPython | 0cc565fea588a981cded058f6ce5d6a9f351cd44 | [
"MIT"
] | null | null | null | arguments.py | Matelaa/LearningPython | 0cc565fea588a981cded058f6ce5d6a9f351cd44 | [
"MIT"
] | 6 | 2021-10-05T13:25:47.000Z | 2021-10-06T18:00:30.000Z | # Python program to demonstrate
# default arguments
def myFun(x, y=50):
print("x: ", x)
print("y: ", y)
# Driver code (We call myFun() with only
# argument)
myFun(10)
| 14.076923 | 40 | 0.612022 | 27 | 183 | 4.148148 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028777 | 0.240437 | 183 | 12 | 41 | 15.25 | 0.776978 | 0.52459 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
be613101dc0ec13365f9c221e60ca82a205c0e5d | 138 | py | Python | database_information.py | ricardoffv/gerenciador_vendas | baa73c7539b86c96081edbb5521688dfc080a95a | [
"MIT"
] | null | null | null | database_information.py | ricardoffv/gerenciador_vendas | baa73c7539b86c96081edbb5521688dfc080a95a | [
"MIT"
] | null | null | null | database_information.py | ricardoffv/gerenciador_vendas | baa73c7539b86c96081edbb5521688dfc080a95a | [
"MIT"
] | null | null | null | import pyodbc
USER='SA'
PASSWORD='e%AY8dki'
DRIVER_NAME = pyodbc.drivers()[0]
SERVER_NAME = '127.0.0.1'
DATABASE_NAME = 'Sales'
PORT=1433 | 17.25 | 33 | 0.731884 | 23 | 138 | 4.26087 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0.101449 | 138 | 8 | 34 | 17.25 | 0.693548 | 0 | 0 | 0 | 0 | 0 | 0.172662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
be8bc7dc20dee54579ef7a413b8947d98a995e1b | 24,407 | py | Python | conans/test/command/remove_test.py | kolrami/conan | 93e4191e970d7ea464901c62d680d76517bb76ca | [
"MIT"
] | null | null | null | conans/test/command/remove_test.py | kolrami/conan | 93e4191e970d7ea464901c62d680d76517bb76ca | [
"MIT"
] | null | null | null | conans/test/command/remove_test.py | kolrami/conan | 93e4191e970d7ea464901c62d680d76517bb76ca | [
"MIT"
] | null | null | null | import os
import unittest
import six
from mock import Mock
from conans import DEFAULT_REVISION_V1
from conans.client.userio import UserIO
from conans.model.manifest import FileTreeManifest
from conans.model.ref import PackageReference, ConanFileReference
from conans.paths import PACKAGES_FOLDER, EXPORT_FOLDER, BUILD_... | 57.159251 | 142 | 0.513418 | 3,077 | 24,407 | 3.951901 | 0.081898 | 0.035855 | 0.014803 | 0.019737 | 0.740954 | 0.718421 | 0.709704 | 0.679441 | 0.662007 | 0.630345 | 0 | 0.049209 | 0.305609 | 24,407 | 426 | 143 | 57.293427 | 0.668279 | 0.016143 | 0 | 0.494624 | 0 | 0.018817 | 0.17836 | 0.048329 | 0 | 0 | 0 | 0 | 0.163978 | 1 | 0.05914 | false | 0.026882 | 0.045699 | 0 | 0.112903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
beb3b7ee0d7695990572fb2ec95566b12bcb3515 | 1,174 | py | Python | supriya/commands/NotifyRequest.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/commands/NotifyRequest.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/commands/NotifyRequest.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | import supriya.osc
from supriya.commands.Request import Request
from supriya.enums import RequestId
class NotifyRequest(Request):
"""
A /notify message.
::
>>> import supriya.commands
>>> request = supriya.commands.NotifyRequest(
... notify_status=True,
... )
... | 20.964286 | 67 | 0.593697 | 114 | 1,174 | 5.868421 | 0.350877 | 0.179372 | 0.095665 | 0.086697 | 0.107623 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00119 | 0.284497 | 1,174 | 55 | 68 | 21.345455 | 0.795238 | 0.297274 | 0 | 0.105263 | 0 | 0 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.105263 | 0.631579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
beb7134e2a879ab1bd761f29e1a72018e82e4cec | 75 | py | Python | yc272/1271.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc272/1271.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc272/1271.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | k = int(input())
print(sum(1 / (n * (n + k)) for n in range(1, 10 ** 6)))
| 18.75 | 56 | 0.48 | 16 | 75 | 2.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 0.24 | 75 | 3 | 57 | 25 | 0.54386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
fe2ec3d417338880b84986bfe25fb1612884b947 | 5,693 | py | Python | 2016/week_3/week3.py | regensa18/AdvProg2018 | 8e421663cac74c191b7ece33849d990a72dedec7 | [
"BSD-3-Clause"
] | null | null | null | 2016/week_3/week3.py | regensa18/AdvProg2018 | 8e421663cac74c191b7ece33849d990a72dedec7 | [
"BSD-3-Clause"
] | null | null | null | 2016/week_3/week3.py | regensa18/AdvProg2018 | 8e421663cac74c191b7ece33849d990a72dedec7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2012-13 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any la... | 25.995434 | 76 | 0.629018 | 705 | 5,693 | 5.008511 | 0.302128 | 0.033985 | 0.046729 | 0.05919 | 0.219485 | 0.161144 | 0.160011 | 0.160011 | 0.13254 | 0.13254 | 0 | 0.008161 | 0.268224 | 5,693 | 218 | 77 | 26.114679 | 0.839414 | 0.264535 | 0 | 0.308333 | 0 | 0 | 0.139633 | 0.007937 | 0 | 0 | 0 | 0.018349 | 0 | 1 | 0.216667 | false | 0.108333 | 0.05 | 0 | 0.333333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
fe335843aa3a014f86de1be2b1310fe163245252 | 299 | py | Python | tekton-master/backend/venv/Scripts/tap2deb.py | seijiakiyama/fatec-script | 0aaa5223ab03b74b1d80f2e8829df7f9d1ea20b9 | [
"MIT"
] | null | null | null | tekton-master/backend/venv/Scripts/tap2deb.py | seijiakiyama/fatec-script | 0aaa5223ab03b74b1d80f2e8829df7f9d1ea20b9 | [
"MIT"
] | null | null | null | tekton-master/backend/venv/Scripts/tap2deb.py | seijiakiyama/fatec-script | 0aaa5223ab03b74b1d80f2e8829df7f9d1ea20b9 | [
"MIT"
] | null | null | null | #!D:\Seiji\Documentos\fatec-script\tekton-master\backend\venv\Scripts\python.exe
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
tap2deb
"""
import sys
try:
import _preamble
except ImportError:
sys.exc_clear()
from twisted.scripts import tap2deb
tap2deb.run()
| 17.588235 | 80 | 0.752508 | 39 | 299 | 5.717949 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.130435 | 299 | 16 | 81 | 18.6875 | 0.846154 | 0.518395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fe3d9a142884da7f976ae19a8592c2c31e2f402a | 277 | py | Python | server/datawake/util/authentication/factory.py | chris-dickson/Datawake | 1972d5e83a5b07f640dc367bca3cf2f7f98c6c36 | [
"Apache-2.0"
] | 5 | 2015-11-11T18:54:21.000Z | 2018-03-03T22:25:12.000Z | server/datawake/util/authentication/factory.py | chris-dickson/Datawake | 1972d5e83a5b07f640dc367bca3cf2f7f98c6c36 | [
"Apache-2.0"
] | null | null | null | server/datawake/util/authentication/factory.py | chris-dickson/Datawake | 1972d5e83a5b07f640dc367bca3cf2f7f98c6c36 | [
"Apache-2.0"
] | 3 | 2015-10-29T10:22:52.000Z | 2017-09-01T19:34:21.000Z | from google import GoogleAuthentication
from mock import MockAuthentication
from datawake.conf.datawakeconfig import MOCK_AUTH
def get_authentication_object(token,mock):
if mock:
return MockAuthentication(token)
else:
return GoogleAuthentication(token) | 30.777778 | 50 | 0.794224 | 30 | 277 | 7.233333 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162455 | 277 | 9 | 51 | 30.777778 | 0.935345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
fe4972fd28f548e1e3c192ef93785cf66702bb8d | 252 | py | Python | Lib/Scripts/font/guides/clear all.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 11 | 2015-01-06T15:43:56.000Z | 2019-07-27T00:35:20.000Z | Lib/Scripts/font/guides/clear all.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 2 | 2017-05-17T10:11:46.000Z | 2018-11-21T21:43:43.000Z | Lib/Scripts/font/guides/clear all.py | gferreira/hTools2 | a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c | [
"BSD-3-Clause"
] | 4 | 2015-01-10T13:58:50.000Z | 2019-12-18T15:40:14.000Z | # [h] clear font guides
from mojo.roboFont import CurrentFont
from hTools2.modules.fontutils import clear_guides
from hTools2.modules.messages import no_font_open
f = CurrentFont()
if f is not None:
clear_guides(f)
else:
print no_font_open
| 18 | 50 | 0.777778 | 39 | 252 | 4.871795 | 0.564103 | 0.105263 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.162698 | 252 | 13 | 51 | 19.384615 | 0.890995 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.375 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fe5442b4f3eb37996e69da6c88f014d0fec98bd7 | 170 | py | Python | HD_app.py | YexingWan/HeartDiseaseDemo | 9828d5c4169e52ab6da254c93bfda38b23714930 | [
"MIT"
] | 2 | 2019-06-04T05:43:02.000Z | 2020-02-22T11:00:09.000Z | HD_app.py | YexingWan/HeartDiseaseDemo | 9828d5c4169e52ab6da254c93bfda38b23714930 | [
"MIT"
] | null | null | null | HD_app.py | YexingWan/HeartDiseaseDemo | 9828d5c4169e52ab6da254c93bfda38b23714930 | [
"MIT"
] | null | null | null | import sys, os
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
from app.analysis.routes import app
if __name__ == '__main__' :
app.run()
| 14.166667 | 60 | 0.658824 | 24 | 170 | 4.166667 | 0.666667 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 170 | 11 | 61 | 15.454545 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0.050955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
fe7145f20cd6d038ed5ba52eee74347742c8162c | 238 | py | Python | joeutils/__init__.py | joeflack4/joefuncs | 937107bb8b47d6ba4c1fb4ec598bda1211deb5c4 | [
"MIT"
] | null | null | null | joeutils/__init__.py | joeflack4/joefuncs | 937107bb8b47d6ba4c1fb4ec598bda1211deb5c4 | [
"MIT"
] | 1 | 2021-06-01T22:45:31.000Z | 2021-06-01T22:45:31.000Z | joeutils/__init__.py | joeflack4/joefuncs | 937107bb8b47d6ba4c1fb4ec598bda1211deb5c4 | [
"MIT"
] | 1 | 2022-01-04T14:37:29.000Z | 2022-01-04T14:37:29.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""Joefuncs - A collection of reusable Python3 functions by Joe Flack."""
from joeutils import algorithms, io, data_manipulation, data_structures, \
hashing, testing, package_management
| 39.666667 | 74 | 0.739496 | 30 | 238 | 5.766667 | 0.966667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009756 | 0.138655 | 238 | 5 | 75 | 47.6 | 0.834146 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
2296f203a2366d735c836d6a7f061c9f18c226e5 | 91 | py | Python | apps/oidc/exceptions.py | onyxhealth/safhir-vmi | 60ba90e9e8ba00347e0dc32e3061da5285df4ade | [
"Apache-2.0"
] | null | null | null | apps/oidc/exceptions.py | onyxhealth/safhir-vmi | 60ba90e9e8ba00347e0dc32e3061da5285df4ade | [
"Apache-2.0"
] | 9 | 2021-03-19T11:43:09.000Z | 2022-03-12T00:38:43.000Z | apps/oidc/exceptions.py | onyxhealth/safhir-vmi | 60ba90e9e8ba00347e0dc32e3061da5285df4ade | [
"Apache-2.0"
] | null | null | null |
class AuthenticationRequired(Exception):
def __init__(self, n):
self.next = n
| 18.2 | 40 | 0.67033 | 10 | 91 | 5.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 91 | 4 | 41 | 22.75 | 0.814286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
22a8fd49f8d1e7f30f17146cf462eddc689320b0 | 91 | py | Python | streams/managers/apps.py | Engerrs/ckan.org | a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158 | [
"BSD-3-Clause"
] | 1 | 2022-03-18T03:20:00.000Z | 2022-03-18T03:20:00.000Z | streams/managers/apps.py | Engerrs/ckan.org | a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158 | [
"BSD-3-Clause"
] | 26 | 2021-07-07T08:42:42.000Z | 2022-03-29T14:34:59.000Z | streams/managers/apps.py | Engerrs/ckan.org | a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158 | [
"BSD-3-Clause"
] | 3 | 2021-07-07T22:11:03.000Z | 2021-09-15T18:19:10.000Z | from django.apps import AppConfig
class ManagersConfig(AppConfig):
name = 'managers'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
22e32a2214e314a8690824b4fbbb65a0783893ff | 2,650 | py | Python | release/stubs.min/System/Net/__init___parts/WebException.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Net/__init___parts/WebException.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/System/Net/__init___parts/WebException.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class WebException(InvalidOperationException, ISerializable, _Exception):
"""
The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.
WebException()
WebException(message: str)
WebException(message: str,innerException: Exception)
WebExceptio... | 28.804348 | 221 | 0.704151 | 259 | 2,650 | 6.880309 | 0.301158 | 0.044893 | 0.03367 | 0.074074 | 0.393378 | 0.338945 | 0.338945 | 0.309203 | 0.130752 | 0.130752 | 0 | 0 | 0.199245 | 2,650 | 91 | 222 | 29.120879 | 0.839774 | 0.580755 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.388889 | false | 0.388889 | 0 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
22ef69436c7881ec905139ab6d85e5b24792c295 | 2,182 | py | Python | satori/config/__init__.py | lastmeta/Satori | cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea | [
"MIT"
] | 3 | 2022-02-16T17:25:53.000Z | 2022-02-25T05:24:15.000Z | satori/config/__init__.py | lastmeta/Satori | cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea | [
"MIT"
] | 9 | 2022-02-16T20:23:55.000Z | 2022-03-26T17:27:23.000Z | satori/config/__init__.py | lastmeta/Satori | cb321ee53a15fe8cba8fcdd483eeb6acc8dab3ea | [
"MIT"
] | null | null | null | import os
from functools import partial
from .config import root, read, write, get, put, env, var
root = partial(root, os.path.abspath(__file__))
read = partial(read, root=root)
write = partial(write, root=root)
get = partial(get, root=root)
put = partial(put, root=root)
env = partial(env, get=get, root=root)
def ve... | 31.623188 | 79 | 0.648029 | 287 | 2,182 | 4.912892 | 0.28223 | 0.029787 | 0.034043 | 0.053901 | 0.17305 | 0.151064 | 0.151064 | 0.151064 | 0.151064 | 0.151064 | 0 | 0.00634 | 0.204858 | 2,182 | 68 | 80 | 32.088235 | 0.80634 | 0.137947 | 0 | 0.061224 | 0 | 0 | 0.170903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.22449 | false | 0 | 0.061224 | 0.102041 | 0.530612 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
fe1b536fadc180b463059b87e2d962414bcbf35a | 611 | py | Python | masd/algorithms/utils.py | ale-cci/Appunti | 9aa76eb46b7a984776f50260e598c9de1fa6317a | [
"MIT"
] | null | null | null | masd/algorithms/utils.py | ale-cci/Appunti | 9aa76eb46b7a984776f50260e598c9de1fa6317a | [
"MIT"
] | null | null | null | masd/algorithms/utils.py | ale-cci/Appunti | 9aa76eb46b7a984776f50260e598c9de1fa6317a | [
"MIT"
] | null | null | null | import collections
def num_vertices(edges):
connected = [{lhs, rhs} for weight, lhs, rhs in edges]
vertices = set().union(*connected)
return len(vertices)
def edges_list(adj_matrix):
return [(adj_matrix[x][y], x, y)
for x in range(0, len(adj_matrix))
for y in range(x+1, len(... | 20.366667 | 60 | 0.638298 | 92 | 611 | 4.108696 | 0.347826 | 0.185185 | 0.15873 | 0.084656 | 0.132275 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.230769 | 611 | 29 | 61 | 21.068966 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.055556 | 0.055556 | 0.055556 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
a3acb76d2150a0ccfbbac01bd582b2247ef33159 | 45,164 | py | Python | WRN-backbone-32/cifar_va.py | ashleylqx/AIB | 77e418cac52f0ca5f2a7c54927468a7bd75a8fc9 | [
"MIT"
] | 5 | 2021-05-23T13:05:45.000Z | 2022-02-13T21:40:59.000Z | WRN-backbone-32/cifar_va.py | ashleylqx/AIB | 77e418cac52f0ca5f2a7c54927468a7bd75a8fc9 | [
"MIT"
] | null | null | null | WRN-backbone-32/cifar_va.py | ashleylqx/AIB | 77e418cac52f0ca5f2a7c54927468a7bd75a8fc9 | [
"MIT"
] | 3 | 2021-08-11T03:23:31.000Z | 2021-11-17T01:48:52.000Z | '''
Training script for CIFAR-10/100
Copyright (c) Wei YANG, 2017
'''
from __future__ import print_function
import argparse
import os
import shutil
import time
import random
import pdb
import math
import scipy.misc
import cv2
import numpy as np
import json
from PIL import Image
import torch
import... | 43.7212 | 151 | 0.585333 | 5,579 | 45,164 | 4.576447 | 0.088367 | 0.019035 | 0.035955 | 0.003133 | 0.77397 | 0.745418 | 0.724385 | 0.699514 | 0.689018 | 0.673429 | 0 | 0.026864 | 0.276348 | 45,164 | 1,032 | 152 | 43.763566 | 0.754337 | 0.189642 | 0 | 0.652042 | 0 | 0.007564 | 0.104628 | 0.005148 | 0 | 0 | 0 | 0 | 0.004539 | 1 | 0.013616 | false | 0 | 0.043873 | 0 | 0.065053 | 0.046899 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a3bb28aaa090919e8eca568ec09becc41628655e | 372 | py | Python | questions/the_search_result_titles.py | jack-skerrett-bluefruit/Python-ScreenPlay | 045486bdf441fa3a7a6cde59e7b7e12a7d53fbed | [
"MIT"
] | null | null | null | questions/the_search_result_titles.py | jack-skerrett-bluefruit/Python-ScreenPlay | 045486bdf441fa3a7a6cde59e7b7e12a7d53fbed | [
"MIT"
] | null | null | null | questions/the_search_result_titles.py | jack-skerrett-bluefruit/Python-ScreenPlay | 045486bdf441fa3a7a6cde59e7b7e12a7d53fbed | [
"MIT"
] | null | null | null | from screenplay import Actor, Question
from abilities.browse_the_web import browser_for
from pages.google_search_results import google_search_results
class the_search_result_titles(Question):
def answered_by(self, actor: Actor):
elements = browser_for(actor).find_elements(*google_search_results.titles)
... | 37.2 | 82 | 0.806452 | 51 | 372 | 5.588235 | 0.54902 | 0.126316 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134409 | 372 | 9 | 83 | 41.333333 | 0.885093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a3beb6cf2373a570ef718002f91a8578a7cbcfbf | 437 | py | Python | deflatebr/utils.py | neylsoncrepalde/deflatebr | 8b4d50cc26dc0fdbd9cf48d3702ef361bd0c143d | [
"MIT"
] | 6 | 2020-02-27T01:47:39.000Z | 2021-11-25T13:38:55.000Z | deflatebr/utils.py | neylsoncrepalde/deflatebr | 8b4d50cc26dc0fdbd9cf48d3702ef361bd0c143d | [
"MIT"
] | 2 | 2020-02-24T23:19:53.000Z | 2020-02-25T01:33:56.000Z | deflatebr/utils.py | neylsoncrepalde/deflatebr | 8b4d50cc26dc0fdbd9cf48d3702ef361bd0c143d | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
# Function to check real date
def clean_real_date(real_date):
"""
Clean real_date
"""
if (len(real_date) != 7) & (real_date[4] != "/"):
raise Exception("'real_date' must be a str in the YYYY-MM format.")
return real_date + "-01"
def round_date... | 29.133333 | 79 | 0.636156 | 66 | 437 | 4.045455 | 0.530303 | 0.2397 | 0.097378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020468 | 0.217391 | 437 | 15 | 80 | 29.133333 | 0.760234 | 0.100687 | 0 | 0 | 0 | 0 | 0.137566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a3c662ab4252779542e528eb6223efab4726002f | 216 | py | Python | task_list/models.py | memcachier/examples-flask | bc19ac39caf07db59459a33de7b2968c5acfd1f0 | [
"MIT"
] | 8 | 2019-02-10T12:47:50.000Z | 2021-11-19T06:14:17.000Z | task_list/models.py | memcachier/examples-flask | bc19ac39caf07db59459a33de7b2968c5acfd1f0 | [
"MIT"
] | null | null | null | task_list/models.py | memcachier/examples-flask | bc19ac39caf07db59459a33de7b2968c5acfd1f0 | [
"MIT"
] | 3 | 2019-02-15T06:53:29.000Z | 2021-02-26T15:49:18.000Z | from task_list import db
class Task(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.Text(), nullable=False)
def __repr__(self):
return '<Task: {}>'.format(self.name)
| 24 | 48 | 0.652778 | 32 | 216 | 4.21875 | 0.6875 | 0.118519 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189815 | 216 | 8 | 49 | 27 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a3cd6fef8371a35b3b97f34d4aa58274868fea95 | 617 | py | Python | src/Flask_Testing/__init__.py | Dragonsight91/Flask_Testing | 089b956c19eb71d2d12e9ac639330b88c1d9c06f | [
"MIT"
] | null | null | null | src/Flask_Testing/__init__.py | Dragonsight91/Flask_Testing | 089b956c19eb71d2d12e9ac639330b88c1d9c06f | [
"MIT"
] | null | null | null | src/Flask_Testing/__init__.py | Dragonsight91/Flask_Testing | 089b956c19eb71d2d12e9ac639330b88c1d9c06f | [
"MIT"
] | null | null | null | from flask import Flask, redirect, render_template
from .api import api_v1, api_v2
def create_app():
app = Flask(__name__)
app.register_blueprint(api_v1.bp)
app.register_blueprint(api_v2.bp)
@app.route("/")
def index():
title="Landing Page"
return render_template('base.html', ... | 24.68 | 56 | 0.636953 | 80 | 617 | 4.7125 | 0.3375 | 0.148541 | 0.159151 | 0.190981 | 0.366048 | 0.366048 | 0.366048 | 0.265252 | 0.265252 | 0.265252 | 0 | 0.008475 | 0.235008 | 617 | 25 | 57 | 24.68 | 0.790254 | 0 | 0 | 0.157895 | 0 | 0 | 0.131068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0 | 0.526316 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a3d56495300be8259e058f62505bdea49b3fe03d | 5,968 | py | Python | cnn.py | animal-cognitive/convlstmgru | 106b84b666330cb74349bc9f513bcbfefd8f8b04 | [
"MIT"
] | 34 | 2020-05-25T07:43:41.000Z | 2022-03-17T11:00:26.000Z | cnn.py | yjustc2019/convlstmgru | 13e8a436e6f7e6f5f3d51c21470ea32337276c11 | [
"MIT"
] | 3 | 2020-07-29T16:11:24.000Z | 2021-09-12T08:11:58.000Z | cnn.py | yjustc2019/convlstmgru | 13e8a436e6f7e6f5f3d51c21470ea32337276c11 | [
"MIT"
] | 13 | 2020-05-26T08:56:47.000Z | 2022-03-21T02:14:06.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
'''
class ConvEncoder(nn.Module):
def __init__(self, out_dim=64):
super(ConvEncoder, self).__init__()
self.cnn_encoder = nn.Sequential(
nn.Conv2d(1,32,3,stride=1,padding=1),
... | 37.534591 | 85 | 0.473693 | 688 | 5,968 | 3.982558 | 0.103198 | 0.040876 | 0.061314 | 0.054745 | 0.821168 | 0.782117 | 0.710949 | 0.625912 | 0.625912 | 0.49708 | 0 | 0.100762 | 0.406334 | 5,968 | 158 | 86 | 37.772152 | 0.672594 | 0 | 0 | 0.329545 | 0 | 0 | 0.001757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102273 | false | 0 | 0.034091 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 3 |
a3da33a9711a8c08492496eb41e9f7462c1a423d | 357 | py | Python | Player.py | eileenzchen/mahjong | 626c820d0e08c1120795c7574a43d514a06cfbc6 | [
"MIT"
] | null | null | null | Player.py | eileenzchen/mahjong | 626c820d0e08c1120795c7574a43d514a06cfbc6 | [
"MIT"
] | null | null | null | Player.py | eileenzchen/mahjong | 626c820d0e08c1120795c7574a43d514a06cfbc6 | [
"MIT"
] | null | null | null | from Tile import Tile
class Player(object):
def __init__(self, name):
self.name = name
self.hand = []
# for the pongs kongs and chows ya feel
self.declaredTriples = []
def __repr__(self):
return f'{self.name} hand is {self.hand}'
def addToHand(self, tile):
self.hand.append(tile)
def discard(self, index... | 23.8 | 44 | 0.697479 | 54 | 357 | 4.462963 | 0.537037 | 0.13278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 357 | 14 | 45 | 25.5 | 0.819728 | 0.103641 | 0 | 0 | 0 | 0 | 0.097792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a3dd561e3ec8aabe740a65d2d20d61a428a6d3bb | 520 | py | Python | reworked exercices/ex026.2.py | Claayton/ExerciciosPython | 696cdb16983638418bd0d0d4fe44dc72662b9c97 | [
"MIT"
] | 1 | 2021-01-23T15:43:34.000Z | 2021-01-23T15:43:34.000Z | reworked exercices/ex026.2.py | Claayton/pythonExerciciosLinux | 696cdb16983638418bd0d0d4fe44dc72662b9c97 | [
"MIT"
] | null | null | null | reworked exercices/ex026.2.py | Claayton/pythonExerciciosLinux | 696cdb16983638418bd0d0d4fe44dc72662b9c97 | [
"MIT"
] | null | null | null | # Ex026.2
"""Make a program that reads a sentence from keyboard, and shows
The letters 'A' appears many times
In what positions does she appear for the first time
In what positions does she appear for the last time"""
sentence = str(input('Type a sentence: ')).strip().upper()
letter_A = sentence.count('A')
print(f'In ... | 43.333333 | 75 | 0.715385 | 91 | 520 | 4.065934 | 0.494505 | 0.075676 | 0.081081 | 0.102703 | 0.345946 | 0.345946 | 0.345946 | 0.183784 | 0 | 0 | 0 | 0.013605 | 0.151923 | 520 | 11 | 76 | 47.272727 | 0.825397 | 0.403846 | 0 | 0 | 0 | 0.4 | 0.644737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
a3ffe19dd4a99ed38fdaab0a7a20aa92f348facb | 223 | py | Python | test/resources/inspectors/python/case1_simple_valid_program.py | nihalshetty-boop/hyperstyle | 9a6d53cd1ca220d97d296c0087056b5885b26281 | [
"Apache-2.0"
] | 18 | 2020-10-05T16:48:11.000Z | 2022-03-22T04:15:38.000Z | test/resources/inspectors/python/case1_simple_valid_program.py | nihalshetty-boop/hyperstyle | 9a6d53cd1ca220d97d296c0087056b5885b26281 | [
"Apache-2.0"
] | 60 | 2020-10-05T17:01:05.000Z | 2022-01-27T12:46:14.000Z | test/resources/inspectors/python/case1_simple_valid_program.py | nihalshetty-boop/hyperstyle | 9a6d53cd1ca220d97d296c0087056b5885b26281 | [
"Apache-2.0"
] | 6 | 2021-02-09T09:31:19.000Z | 2021-08-13T07:45:51.000Z | days = int(input())
cost_food_per_day = int(input())
cost_flight = int(input())
cost_night = int(input())
nights = days - 1
total_cost = days * cost_food_per_day + cost_night * nights + cost_flight * 2
print(total_cost)
| 20.272727 | 77 | 0.713004 | 36 | 223 | 4.083333 | 0.388889 | 0.217687 | 0.244898 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010582 | 0.152466 | 223 | 10 | 78 | 22.3 | 0.767196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
430672cb88a360f4090dd53a1ad65b3efa089b4a | 131 | py | Python | app/api/__init__.py | havedill/app | 813d801ba6283199da3a2c665df2a0c7d53200b9 | [
"MIT"
] | 2 | 2019-12-31T16:05:09.000Z | 2019-12-31T16:05:14.000Z | app/api/__init__.py | havedill/app | 813d801ba6283199da3a2c665df2a0c7d53200b9 | [
"MIT"
] | null | null | null | app/api/__init__.py | havedill/app | 813d801ba6283199da3a2c665df2a0c7d53200b9 | [
"MIT"
] | null | null | null | from .views import (
alias_options,
new_custom_alias,
new_random_alias,
user_info,
auth_login,
auth_mfa,
)
| 14.555556 | 21 | 0.664122 | 17 | 131 | 4.647059 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267176 | 131 | 8 | 22 | 16.375 | 0.822917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4340a815d179bfc5e0ed6507e59079cce6fd1c89 | 833 | py | Python | IntroProjects/Permutations.py | bfark13/PythonExercises | 6dfd5eb13923eeddaf285bf27164d014bb2e8167 | [
"MIT"
] | null | null | null | IntroProjects/Permutations.py | bfark13/PythonExercises | 6dfd5eb13923eeddaf285bf27164d014bb2e8167 | [
"MIT"
] | null | null | null | IntroProjects/Permutations.py | bfark13/PythonExercises | 6dfd5eb13923eeddaf285bf27164d014bb2e8167 | [
"MIT"
] | null | null | null | # Python program to print all permutations with
# duplicates allowed
def toString(l):
return ''.join(l)
# Function to print permutations of string
# This function takes three parameters:
# 1. String
# 2. Starting index of the string
# 3. Ending index of the string.
def permute(a, start_element_index, last_... | 37.863636 | 84 | 0.680672 | 128 | 833 | 4.242188 | 0.390625 | 0.265193 | 0.25046 | 0.198895 | 0.390424 | 0.32965 | 0.14733 | 0.14733 | 0.14733 | 0.14733 | 0 | 0.010703 | 0.214886 | 833 | 22 | 85 | 37.863636 | 0.819572 | 0.331333 | 0 | 0.142857 | 0 | 0 | 0.014625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.071429 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a320828de40d576857a35e6c8ddc941475726b7 | 156 | py | Python | tests/test_routes.py | selutin99/moscow-books-recomendation-system | 84aaa15a29b57a51bb241a2515e4bbceff5fae25 | [
"Apache-2.0"
] | 1 | 2022-01-03T15:25:15.000Z | 2022-01-03T15:25:15.000Z | tests/test_routes.py | selutin99/moscow-books-recomendation-system | 84aaa15a29b57a51bb241a2515e4bbceff5fae25 | [
"Apache-2.0"
] | null | null | null | tests/test_routes.py | selutin99/moscow-books-recomendation-system | 84aaa15a29b57a51bb241a2515e4bbceff5fae25 | [
"Apache-2.0"
] | null | null | null | from http import HTTPStatus
def test_index_route(test_client):
response = test_client.get('/')
assert response.status_code == HTTPStatus.OK.value
| 22.285714 | 54 | 0.75641 | 21 | 156 | 5.380952 | 0.761905 | 0.176991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147436 | 156 | 6 | 55 | 26 | 0.849624 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4a3ab5cc6c567c58f70fdc778846b23051a04221 | 850 | py | Python | hyperion/utils/multithreading.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | 14 | 2021-12-19T04:24:15.000Z | 2022-03-18T03:24:04.000Z | hyperion/utils/multithreading.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | null | null | null | hyperion/utils/multithreading.py | hyperion-ml/hyperion | c4c9eee0acab1ba572843373245da12d00dfffaa | [
"Apache-2.0"
] | 5 | 2021-12-14T20:41:27.000Z | 2022-02-24T14:18:11.000Z | """
Copyright 2018 Johns Hopkins University (Author: Jesus Villalba)
Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""
import threading
class ThreadSafeIter:
"""
Takes an iterator/generator and makes it thread-safe by
serializing call to the `next` method of given iterator/generator.
""... | 21.25 | 73 | 0.629412 | 106 | 850 | 4.886792 | 0.5 | 0.046332 | 0.03861 | 0.061776 | 0.233591 | 0.156371 | 0.156371 | 0.156371 | 0.156371 | 0.156371 | 0 | 0.012759 | 0.262353 | 850 | 39 | 74 | 21.794872 | 0.813397 | 0.370588 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.058824 | 0.117647 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a5451d155249df80092d6a87262c14a80e5bbf7 | 299 | py | Python | src/tracematrix/item.py | DudeNr33/tracematrix | daece9ebc2eb5fb686ad6a63e150586f18c960cf | [
"MIT"
] | null | null | null | src/tracematrix/item.py | DudeNr33/tracematrix | daece9ebc2eb5fb686ad6a63e150586f18c960cf | [
"MIT"
] | 1 | 2021-09-06T06:12:38.000Z | 2021-09-06T19:00:27.000Z | src/tracematrix/item.py | DudeNr33/tracematrix | daece9ebc2eb5fb686ad6a63e150586f18c960cf | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Set
@dataclass(eq=False)
class TraceItem:
"""Represents an artifact which can be traced bidirectionally to other artifacts."""
id: str # pylint: disable=invalid-name
traced_to: Set["TraceItem"] = field(default_factory=set)
| 27.181818 | 88 | 0.749164 | 39 | 299 | 5.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160535 | 299 | 10 | 89 | 29.9 | 0.884462 | 0.361204 | 0 | 0 | 0 | 0 | 0.048649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4a80cbfee240ae2c6dcb6dc36c2105fb764411a4 | 281 | py | Python | chess/backend/src/user/user.py | jacobchrismarsh/chess_senior_project | 7797b1f96fda5d4d268224a21e54a744d17e7b81 | [
"MIT"
] | null | null | null | chess/backend/src/user/user.py | jacobchrismarsh/chess_senior_project | 7797b1f96fda5d4d268224a21e54a744d17e7b81 | [
"MIT"
] | 40 | 2019-05-04T04:46:31.000Z | 2022-02-26T10:37:51.000Z | chess/backend/src/user/user.py | jacobchrismarsh/chess_senior_project | 7797b1f96fda5d4d268224a21e54a744d17e7b81 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from rest_framework.request import Request
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
def get_user_info(request: Request) -> User:
return JSONWebTokenAuthentication().authenticate(Request(request))[0]
| 35.125 | 73 | 0.839858 | 33 | 281 | 7 | 0.575758 | 0.069264 | 0.147186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003906 | 0.088968 | 281 | 7 | 74 | 40.142857 | 0.898438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 3 |
4a85f239f46e9c6a23bc2d529022988dcabc3dee | 989 | py | Python | back/routes/BookshelfRoute.py | xiaomogui/json-databook | f7909ef1dafb76c719521cfddfdaccf847723fec | [
"Apache-2.0"
] | null | null | null | back/routes/BookshelfRoute.py | xiaomogui/json-databook | f7909ef1dafb76c719521cfddfdaccf847723fec | [
"Apache-2.0"
] | null | null | null | back/routes/BookshelfRoute.py | xiaomogui/json-databook | f7909ef1dafb76c719521cfddfdaccf847723fec | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
#user
from flask import Blueprint, request, jsonify
from flask_restful import Resource, Api
from services.BookshelfService import BookshelfService
bookshelfRoute = Blueprint('bookshelfRoute', __name__)
api = Api(bookshelfRoute)
bookshelfService = BookshelfService()
class Bookshelfs(Resource):
def ... | 28.257143 | 69 | 0.70273 | 113 | 989 | 6.070796 | 0.318584 | 0.078717 | 0.113703 | 0.052478 | 0.155977 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001233 | 0.17998 | 989 | 35 | 69 | 28.257143 | 0.844636 | 0.023256 | 0 | 0.086957 | 0 | 0 | 0.105809 | 0.071577 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.130435 | 0.652174 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.