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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
362cfeb6625a1868c16693fe58fdcaea1fbf2448 | 115 | py | Python | pylearn2/sandbox/nlp/__init__.py | ikervazquezlopez/Pylearn2 | 2971e8f64374ffde572d4cf967aad5342beaf5e0 | [
"BSD-3-Clause"
] | 2,045 | 2015-01-01T14:07:52.000Z | 2022-03-08T08:56:41.000Z | pylearn2/sandbox/nlp/__init__.py | ikervazquezlopez/Pylearn2 | 2971e8f64374ffde572d4cf967aad5342beaf5e0 | [
"BSD-3-Clause"
] | 305 | 2015-01-02T13:18:24.000Z | 2021-08-20T18:03:28.000Z | pylearn2/sandbox/nlp/__init__.py | ikervazquezlopez/Pylearn2 | 2971e8f64374ffde572d4cf967aad5342beaf5e0 | [
"BSD-3-Clause"
] | 976 | 2015-01-01T17:08:51.000Z | 2022-03-25T19:53:17.000Z | """
Sandbox for developing natural language processing (NLP) tools for
Pylearn2, including datasets and models
"""
| 23 | 66 | 0.782609 | 14 | 115 | 6.428571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.13913 | 115 | 4 | 67 | 28.75 | 0.89899 | 0.921739 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
364bc697960e50cb56a8384dae410c8db71f070b | 191 | py | Python | common/utils.py | yovelcohen/ccl | ba2abe609110f21f1db7c0c95f785e4010df8abd | [
"MIT"
] | null | null | null | common/utils.py | yovelcohen/ccl | ba2abe609110f21f1db7c0c95f785e4010df8abd | [
"MIT"
] | null | null | null | common/utils.py | yovelcohen/ccl | ba2abe609110f21f1db7c0c95f785e4010df8abd | [
"MIT"
] | null | null | null | def smart_truncate(content, length=120, suffix='...'):
if len(content) <= length:
return content
else:
return ' '.join(content[:length + 1].split(' ')[0:-1]) + suffix
| 31.833333 | 71 | 0.581152 | 23 | 191 | 4.782609 | 0.652174 | 0.354545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0.225131 | 191 | 5 | 72 | 38.2 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0.026178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
364ccbad5a5d6730427f37c341069742fbff465e | 135 | py | Python | src/__init__.py | relaxxpls/TeXURL | 4e4fdfb0d3db50179dfc254fa4098fb69e93fecb | [
"MIT"
] | null | null | null | src/__init__.py | relaxxpls/TeXURL | 4e4fdfb0d3db50179dfc254fa4098fb69e93fecb | [
"MIT"
] | null | null | null | src/__init__.py | relaxxpls/TeXURL | 4e4fdfb0d3db50179dfc254fa4098fb69e93fecb | [
"MIT"
] | null | null | null | __author__ = "Laxman Desai"
__date__ = '2021-05-16'
__version__ = '0.1.0'
try:
from .main import *
except:
from main import *
| 15 | 27 | 0.651852 | 19 | 135 | 4 | 0.789474 | 0.210526 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103774 | 0.214815 | 135 | 8 | 28 | 16.875 | 0.613208 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3653ffc34901b01317013932576d017186a56ab8 | 202 | py | Python | DSA Coding/Patterns/Left_arrow_pattern.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 8 | 2022-03-01T09:09:20.000Z | 2022-03-03T05:36:01.000Z | DSA Coding/Patterns/Left_arrow_pattern.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 52 | 2022-03-02T13:52:46.000Z | 2022-03-04T03:03:17.000Z | DSA Coding/Patterns/Left_arrow_pattern.py | prathimacode-hub/WIE-WoC | f412f297a57249af98213bf4a747c897f2d4c035 | [
"MIT"
] | 23 | 2022-03-01T06:39:34.000Z | 2022-03-03T09:24:40.000Z |
n = int(input())
for i in range(n,0,-1):
for j in range(i*2):
print('*',end=' ')
print()
for i in range(1,n+1):
for j in range(i*2):
print('*',end=' ')
print()
| 12.625 | 26 | 0.440594 | 35 | 202 | 2.542857 | 0.371429 | 0.314607 | 0.134831 | 0.247191 | 0.606742 | 0.606742 | 0.606742 | 0.606742 | 0.606742 | 0.606742 | 0 | 0.044444 | 0.331683 | 202 | 15 | 27 | 13.466667 | 0.614815 | 0 | 0 | 0.666667 | 0 | 0 | 0.020202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
36775ed906b8ba5b6ec81dc3aedcb129eaf4bb49 | 336 | py | Python | StatusLabel.py | KengoSawa2/deadlinecalc | 8b99726889f4f78234dcc4f9cff232e174d77749 | [
"BSD-2-Clause"
] | 2 | 2021-01-24T22:41:31.000Z | 2021-05-11T11:39:28.000Z | StatusLabel.py | KengoSawa2/deadlinecalc | 8b99726889f4f78234dcc4f9cff232e174d77749 | [
"BSD-2-Clause"
] | null | null | null | StatusLabel.py | KengoSawa2/deadlinecalc | 8b99726889f4f78234dcc4f9cff232e174d77749 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from PySide import QtGui
class StatusLabel(QtGui.QLabel):
def __init__(self,parent=None):
super(StatusLabel,self).__init__(parent)
def minimumSizeHint(self):
#sz = QtGui.QLabel.minimumSizeHint()
sz = QtGui.QLabel.minimumSizeHint(self)
sz.setWidth(0)
... | 22.4 | 48 | 0.64881 | 38 | 336 | 5.526316 | 0.552632 | 0.157143 | 0.2 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007722 | 0.229167 | 336 | 14 | 49 | 24 | 0.803089 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
36b2895ea559b3f41e16b44a41e5e0f596a23118 | 2,101 | py | Python | src/sage/modules/fp_graded/free_homspace.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | null | null | null | src/sage/modules/fp_graded/free_homspace.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | null | null | null | src/sage/modules/fp_graded/free_homspace.py | UCD4IDS/sage | 43474c96d533fd396fe29fe0782d44dc7f5164f7 | [
"BSL-1.0"
] | null | null | null | r"""
Homsets of finitely generated free graded left modules
For an overview, see the :mod:`free graded modules documentation
<sage.modules.fp_graded.free_module>`.
EXAMPLES::
sage: from sage.modules.fp_graded.free_module import FreeGradedModule
sage: A = SteenrodAlgebra(2)
sage: F1 = FreeGradedModule(A, ... | 39.641509 | 93 | 0.646835 | 279 | 2,101 | 4.842294 | 0.473118 | 0.044412 | 0.041451 | 0.056255 | 0.212435 | 0.195411 | 0.129534 | 0.129534 | 0.099186 | 0.099186 | 0 | 0.031505 | 0.184198 | 2,101 | 52 | 94 | 40.403846 | 0.756709 | 0.84674 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
36be50fe4678b05057b0b9169ed30939d9eaeccd | 17,580 | py | Python | src/bloombox/schema/geo/USState_pb2.py | Bloombox/Python | 1b125fbdf54efb390afe12aaa966f093218c4387 | [
"Apache-2.0"
] | 4 | 2018-01-23T20:13:11.000Z | 2018-07-28T22:36:09.000Z | src/bloombox/schema/geo/USState_pb2.py | Bloombox/Python | 1b125fbdf54efb390afe12aaa966f093218c4387 | [
"Apache-2.0"
] | 159 | 2018-02-02T09:55:52.000Z | 2021-07-21T23:41:59.000Z | src/bloombox/schema/geo/USState_pb2.py | Bloombox/Python | 1b125fbdf54efb390afe12aaa966f093218c4387 | [
"Apache-2.0"
] | 3 | 2018-01-23T20:13:15.000Z | 2020-01-17T01:07:53.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: geo/USState.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message a... | 31.005291 | 2,929 | 0.668032 | 2,313 | 17,580 | 4.991786 | 0.192823 | 0.07206 | 0.294388 | 0.169496 | 0.560974 | 0.543305 | 0.540274 | 0.531266 | 0.528495 | 0 | 0 | 0.108793 | 0.190102 | 17,580 | 566 | 2,930 | 31.060071 | 0.702135 | 0.008817 | 0 | 0.561818 | 1 | 0.005455 | 0.206429 | 0.169977 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.012727 | 0 | 0.012727 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
36cdbe837aaed7debb6af2c4d750c81fe3ea041b | 191 | py | Python | vista/Ingresocorrecto.py | AnthonyEC7/Project-Ecuavoley | 8950689aa732364580c96c3705577cf9cb4b4782 | [
"Apache-2.0"
] | null | null | null | vista/Ingresocorrecto.py | AnthonyEC7/Project-Ecuavoley | 8950689aa732364580c96c3705577cf9cb4b4782 | [
"Apache-2.0"
] | null | null | null | vista/Ingresocorrecto.py | AnthonyEC7/Project-Ecuavoley | 8950689aa732364580c96c3705577cf9cb4b4782 | [
"Apache-2.0"
] | null | null | null | from PyQt5.QtWidgets import QDialog
from PyQt5 import uic
class IngresoCorrecto(QDialog):
def __init__(self):
QDialog.__init__(self)
uic.loadUi("Ingresocorrecto.ui",self) | 27.285714 | 45 | 0.732984 | 23 | 191 | 5.73913 | 0.565217 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.17801 | 191 | 7 | 45 | 27.285714 | 0.828025 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
36d7d334e50716144715fcf63c45b03a72bf8a0e | 196 | py | Python | instagram_api/response/model/unpredictable/direct_thread_last_seen_at.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/model/unpredictable/direct_thread_last_seen_at.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/model/unpredictable/direct_thread_last_seen_at.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from .core import CoreUnpredictableContainer
__all__ = ['DirectThreadLastSeenAtUnpredictableContainer']
class DirectThreadLastSeenAtUnpredictableContainer(CoreUnpredictableContainer):
pass
| 24.5 | 79 | 0.867347 | 10 | 196 | 16.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086735 | 196 | 7 | 80 | 28 | 0.927374 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 0.22449 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
36da0de7e7a3f51b715aaa792e56505b9b09f22f | 180 | py | Python | basics/math/hyper_triangle.py | Yinan-Zhang/RichCSpace | e657a5296af115eb66c67f1a2440e84154eaef54 | [
"MIT"
] | null | null | null | basics/math/hyper_triangle.py | Yinan-Zhang/RichCSpace | e657a5296af115eb66c67f1a2440e84154eaef54 | [
"MIT"
] | null | null | null | basics/math/hyper_triangle.py | Yinan-Zhang/RichCSpace | e657a5296af115eb66c67f1a2440e84154eaef54 | [
"MIT"
] | null | null | null | import sys, os, pygame, math
import numpy
from hyper_geometry import *
class triangle:
def __init__( self, vert1, vert2, vert3 ):
self.vertices = [vert1, vert2, vert3];
def | 18 | 43 | 0.716667 | 25 | 180 | 4.96 | 0.72 | 0.16129 | 0.241935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0.183333 | 180 | 10 | 44 | 18 | 0.802721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.428571 | null | null | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7fcd77ceb325cc6136b62c81cfd79c78e1cdb224 | 106 | py | Python | build/lib/safegif/test.py | katiewimmer/safe-gif-scanner | 2d157f51fa05b1a3a2e094271d76a4031160b97f | [
"MIT"
] | null | null | null | build/lib/safegif/test.py | katiewimmer/safe-gif-scanner | 2d157f51fa05b1a3a2e094271d76a4031160b97f | [
"MIT"
] | 6 | 2020-10-17T04:17:38.000Z | 2020-11-19T22:34:02.000Z | build/lib/safegif/test.py | katiewimmer/safe-gif-scanner | 2d157f51fa05b1a3a2e094271d76a4031160b97f | [
"MIT"
] | 4 | 2020-10-15T21:05:18.000Z | 2020-11-21T01:28:35.000Z | import processFrames
filename = input("input gif filename: ")
print(processFrames.process_gif(filename))
| 21.2 | 42 | 0.801887 | 12 | 106 | 7 | 0.583333 | 0.261905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 106 | 4 | 43 | 26.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3d116fe79b3371d8c17d39bfb9590e27ec6c6d91 | 103 | py | Python | django_site_tag/apps.py | yudori/django-site-tag | 48bedf0518864fdfdeef65bb04c0dd4317cc2e95 | [
"MIT"
] | 1 | 2019-04-07T22:34:04.000Z | 2019-04-07T22:34:04.000Z | django_site_tag/apps.py | yudori/django-site-tag | 48bedf0518864fdfdeef65bb04c0dd4317cc2e95 | [
"MIT"
] | null | null | null | django_site_tag/apps.py | yudori/django-site-tag | 48bedf0518864fdfdeef65bb04c0dd4317cc2e95 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class DjangoSiteTagConfig(AppConfig):
name = 'django_site_tag'
| 17.166667 | 37 | 0.786408 | 12 | 103 | 6.583333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 5 | 38 | 20.6 | 0.897727 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3d1223139dcf5430e123418f1045e35292a8cf85 | 229 | py | Python | cmsplugin_phlog/__init__.py | TAMUArch/cmsplugin-phlog | c0b22d8a329d927c640b82ae785983c344a10214 | [
"Apache-2.0"
] | null | null | null | cmsplugin_phlog/__init__.py | TAMUArch/cmsplugin-phlog | c0b22d8a329d927c640b82ae785983c344a10214 | [
"Apache-2.0"
] | null | null | null | cmsplugin_phlog/__init__.py | TAMUArch/cmsplugin-phlog | c0b22d8a329d927c640b82ae785983c344a10214 | [
"Apache-2.0"
] | null | null | null | from django.conf import settings
if 'cmsplugin_phlog' in settings.INSTALLED_APPS:
if not hasattr(settings,'CMS_PLUGIN_PHLOG_MEDIA_URL'):
settings.CMS_PLUGIN_PHLOG_MEDIA_URL = settings.MEDIA_URL + 'cmsplugin_phlog/' | 32.714286 | 85 | 0.790393 | 32 | 229 | 5.28125 | 0.53125 | 0.142012 | 0.201183 | 0.260355 | 0.402367 | 0.402367 | 0.402367 | 0 | 0 | 0 | 0 | 0 | 0.131004 | 229 | 7 | 85 | 32.714286 | 0.849246 | 0 | 0 | 0 | 0 | 0 | 0.247826 | 0.113043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3d29241562eb381aa0e763fe0d0677c2f5c3d773 | 158 | py | Python | your_appointment/console/__init__.py | GermainPereira/YourAppointment | 09c212442be7719dac15184a7460c52cea2f6bce | [
"MIT"
] | 1 | 2020-04-06T02:32:31.000Z | 2020-04-06T02:32:31.000Z | your_appointment/console/__init__.py | GermainPereira/ClassesManager | 09c212442be7719dac15184a7460c52cea2f6bce | [
"MIT"
] | 4 | 2020-04-22T14:47:32.000Z | 2020-04-24T18:30:21.000Z | your_appointment/console/__init__.py | GermainPereira/YourAppointment | 09c212442be7719dac15184a7460c52cea2f6bce | [
"MIT"
] | null | null | null | '''
if __name__ == "__main__":
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
print(sys.path)
''' | 22.571429 | 83 | 0.664557 | 24 | 158 | 3.875 | 0.583333 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.107595 | 158 | 7 | 84 | 22.571429 | 0.652482 | 1.126582 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3d4c615eac0e70189db3b934674063fc62cc8a0c | 270 | py | Python | csv_generator/models/generated_file.py | Vitamal/schemas | 0cfc1acb9031a2348bef2207e492d47d1c86e5c1 | [
"MIT"
] | null | null | null | csv_generator/models/generated_file.py | Vitamal/schemas | 0cfc1acb9031a2348bef2207e492d47d1c86e5c1 | [
"MIT"
] | null | null | null | csv_generator/models/generated_file.py | Vitamal/schemas | 0cfc1acb9031a2348bef2207e492d47d1c86e5c1 | [
"MIT"
] | null | null | null | from django.db import models
from . import BaseModel, Schema
class GeneratedFile(BaseModel):
schema = models.ForeignKey(Schema, on_delete=models.CASCADE, related_name='files')
file_name = models.URLField()
is_generated = models.BooleanField(default=False)
| 30 | 86 | 0.77037 | 33 | 270 | 6.181818 | 0.69697 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 270 | 8 | 87 | 33.75 | 0.871795 | 0 | 0 | 0 | 1 | 0 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e9f3ee8dfb6cef7405961f2e1968510f1b5efaad | 7,006 | py | Python | gapfilling.py | sig-gis/Ecuador_SEPAL | edc7899c20cf724591385994722ee8c3d27fd9f3 | [
"MIT"
] | 13 | 2018-09-11T05:42:45.000Z | 2021-12-01T07:12:56.000Z | gapfilling.py | g-adzan/Ecuador_SEPAL | edc7899c20cf724591385994722ee8c3d27fd9f3 | [
"MIT"
] | 1 | 2020-06-15T07:24:59.000Z | 2020-06-26T18:39:25.000Z | gapfilling.py | g-adzan/Ecuador_SEPAL | edc7899c20cf724591385994722ee8c3d27fd9f3 | [
"MIT"
] | 6 | 2018-12-18T23:20:45.000Z | 2021-12-01T07:13:07.000Z |
import ee
ee.Initialize()
filez = ["LS_BW_200901402","LS_BW_200904205"] #,"LS_BW_200928029","LS_BW_200929430","LS_BW_200930832","LS_BW_200932233","LS_BW_200933634","LS_BW_200935036","LS_BW_200936401","LS_BW_201001302","LS_BW_201002704","LS_BW_201004105","LS_BW_201005506","LS_BW_201006908","LS_BW_201008309","LS_BW_201... | 66.72381 | 3,900 | 0.783186 | 1,045 | 7,006 | 4.805742 | 0.342584 | 0.172043 | 0.014934 | 0.009558 | 0.079052 | 0.066507 | 0.066507 | 0.015532 | 0.015532 | 0 | 0 | 0.302759 | 0.058521 | 7,006 | 104 | 3,901 | 67.365385 | 0.458611 | 0.572509 | 0 | 0.0625 | 0 | 0 | 0.18063 | 0.071381 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015625 | null | null | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1800e5d1d8ab9ce61db50cf4af75fcf519af7312 | 137 | py | Python | decbot/bot/error.py | uebergucken/DECbot | fa259d47f901ca9187bff74f08e212739af7774f | [
"MIT"
] | 4 | 2019-10-22T13:34:54.000Z | 2021-06-25T11:43:33.000Z | decbot/bot/error.py | uebergucken/DECbot | fa259d47f901ca9187bff74f08e212739af7774f | [
"MIT"
] | 3 | 2020-11-24T03:10:47.000Z | 2021-07-03T08:54:00.000Z | decbot/bot/error.py | uebergucken/DECbot | fa259d47f901ca9187bff74f08e212739af7774f | [
"MIT"
] | 2 | 2021-06-25T19:42:50.000Z | 2021-06-30T08:09:30.000Z | class BotError(Exception):
pass
class VoiceError(BotError):
pass
class NoVoice(VoiceError):
pass
class BadVoice(VoiceError):
pass
| 11.416667 | 27 | 0.773723 | 16 | 137 | 6.625 | 0.4375 | 0.254717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138686 | 137 | 11 | 28 | 12.454545 | 0.898305 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
180c74f1b805fe7e6cd240354b798e8bca62cb08 | 428 | py | Python | esque_wire/protocol/structs/api/update_metadata_response.py | real-digital/esque-wire | eb02c49f38b89ad5e5d25aad15fb4ad795e52807 | [
"MIT"
] | null | null | null | esque_wire/protocol/structs/api/update_metadata_response.py | real-digital/esque-wire | eb02c49f38b89ad5e5d25aad15fb4ad795e52807 | [
"MIT"
] | 7 | 2019-11-26T08:19:49.000Z | 2021-03-15T14:27:47.000Z | esque_wire/protocol/structs/api/update_metadata_response.py | real-digital/esque-wire | eb02c49f38b89ad5e5d25aad15fb4ad795e52807 | [
"MIT"
] | null | null | null | from typing import ClassVar
from ...constants import ApiKey, ErrorCode
from ..base import ResponseData
class UpdateMetadataResponseData(ResponseData):
error_code: ErrorCode
api_key: ClassVar[ApiKey] = ApiKey.UPDATE_METADATA
def __init__(self, error_code: ErrorCode):
"""
:param error_cod... | 23.777778 | 54 | 0.703271 | 47 | 428 | 6.148936 | 0.489362 | 0.217993 | 0.186851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221963 | 428 | 17 | 55 | 25.176471 | 0.867868 | 0.154206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
18149d68128dd44664cb23ef3b78fe6f7bc58c70 | 1,013 | py | Python | aiotdlib/api/functions/confirm_qr_code_authentication.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/functions/confirm_qr_code_authentication.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/functions/confirm_qr_code_authentication.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 36.178571 | 89 | 0.477789 | 79 | 1,013 | 6.063291 | 0.683544 | 0.025052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307996 | 1,013 | 27 | 90 | 37.518519 | 0.68331 | 0.590326 | 0 | 0 | 1 | 0 | 0.086022 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 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 | 1 | 1 | 0 | 0 | 4 |
43ef6cf993842a67b87082b35b930fdc2da3d5df | 145 | py | Python | tests/subdir/pymod.py | myint/pymake | 1135cc413128c12f5bada3d84b3261834a5ac003 | [
"MIT"
] | null | null | null | tests/subdir/pymod.py | myint/pymake | 1135cc413128c12f5bada3d84b3261834a5ac003 | [
"MIT"
] | null | null | null | tests/subdir/pymod.py | myint/pymake | 1135cc413128c12f5bada3d84b3261834a5ac003 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import testmodule
def writetofile(args):
with open(args[0], 'w') as f:
f.write(' '.join(args[1:]))
| 20.714286 | 38 | 0.696552 | 22 | 145 | 4.363636 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 0.151724 | 145 | 6 | 39 | 24.166667 | 0.764228 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a120a4f28d037ded5a5cbd7d0890ea5b45d56788 | 14,611 | py | Python | adlib27/autodiff.py | ad-lib27/cs207-FinalProject | 9d7026c3579a7ab397b428343d8426a7c15b9f22 | [
"MIT"
] | null | null | null | adlib27/autodiff.py | ad-lib27/cs207-FinalProject | 9d7026c3579a7ab397b428343d8426a7c15b9f22 | [
"MIT"
] | 9 | 2019-10-30T00:56:55.000Z | 2019-12-10T16:47:10.000Z | adlib27/autodiff.py | ad-lib27/cs207-FinalProject | 9d7026c3579a7ab397b428343d8426a7c15b9f22 | [
"MIT"
] | 1 | 2019-12-27T03:56:49.000Z | 2019-12-27T03:56:49.000Z | import numpy as np
import pytest
class AutoDiff:
"""
Attributes:
self.val [float]: The value of the AutoDiff number
self.der [float]: The value of the derivative of the AutoDiff number
"""
def __init__(self, val=[0.0], index=0, magnitude=1, der=None):
self.val = val
if d... | 35.377724 | 163 | 0.525768 | 1,791 | 14,611 | 4.242323 | 0.08431 | 0.043301 | 0.052645 | 0.073704 | 0.822322 | 0.790998 | 0.700579 | 0.685707 | 0.667018 | 0.642274 | 0 | 0.001314 | 0.37506 | 14,611 | 412 | 164 | 35.463592 | 0.830796 | 0.384368 | 0 | 0.630682 | 0 | 0 | 0.036176 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.085227 | false | 0 | 0.011364 | 0 | 0.193182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a153a86b670b415a7e41315530491f48aa191297 | 157 | py | Python | caching/__init__.py | bofm/python-caching | 16de50c119f8896e923e3f10488ecf6ffe535f45 | [
"MIT"
] | 15 | 2017-08-02T15:19:38.000Z | 2021-04-09T14:32:45.000Z | caching/__init__.py | bofm/python-caching | 16de50c119f8896e923e3f10488ecf6ffe535f45 | [
"MIT"
] | 6 | 2017-12-05T09:01:16.000Z | 2018-10-03T17:38:21.000Z | caching/__init__.py | bofm/python-caching | 16de50c119f8896e923e3f10488ecf6ffe535f45 | [
"MIT"
] | 2 | 2018-01-18T05:17:50.000Z | 2018-09-14T04:52:33.000Z | from .cache import Cache
from .storage import CacheStorageBase, SQLiteStorage
__version__ = '0.1.dev8'
__all__ = (Cache, CacheStorageBase, SQLiteStorage)
| 19.625 | 52 | 0.789809 | 17 | 157 | 6.823529 | 0.647059 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021898 | 0.127389 | 157 | 7 | 53 | 22.428571 | 0.824818 | 0 | 0 | 0 | 0 | 0 | 0.050955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a15c2902c8395e6d8e60e82225fe8b974d4a134f | 6,152 | py | Python | python_modules/libraries/dagster-aws/dagster_aws_tests/secretsmanager_tests/test_secrets.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-aws/dagster_aws_tests/secretsmanager_tests/test_secrets.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-aws/dagster_aws_tests/secretsmanager_tests/test_secrets.py | kstennettlull/dagster | dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6 | [
"Apache-2.0"
] | null | null | null | import json
import os
from dagster_aws.secretsmanager import get_secrets_from_arns, secretsmanager_secrets_resource
from dagster_aws.secretsmanager.secrets import get_tagged_secrets
from dagster.core.execution.context.init import build_init_resource_context
from dagster.core.test_utils import environ
def test_get_s... | 37.512195 | 95 | 0.64922 | 683 | 6,152 | 5.462665 | 0.111274 | 0.069954 | 0.146341 | 0.102921 | 0.804074 | 0.760654 | 0.728759 | 0.690164 | 0.690164 | 0.675154 | 0 | 0.001474 | 0.228056 | 6,152 | 163 | 96 | 37.742331 | 0.784165 | 0.028771 | 0 | 0.425373 | 0 | 0 | 0.184956 | 0 | 0 | 0 | 0 | 0 | 0.164179 | 1 | 0.022388 | false | 0 | 0.044776 | 0 | 0.067164 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a1d7aa80488448c97f2c97ca116141d68d9fcb9d | 549 | py | Python | tests/test_jobs.py | dmitrypol/covid19 | 18bdd43ebec409f51931cd497f792ad7a7ef8b1c | [
"MIT"
] | 3 | 2020-09-28T01:28:47.000Z | 2022-02-13T12:19:37.000Z | tests/test_jobs.py | dmitrypol/covid19 | 18bdd43ebec409f51931cd497f792ad7a7ef8b1c | [
"MIT"
] | null | null | null | tests/test_jobs.py | dmitrypol/covid19 | 18bdd43ebec409f51931cd497f792ad7a7ef8b1c | [
"MIT"
] | null | null | null | import pytest
import vcr
from app import APP, jobs
def test_get_url():
test = jobs.get_url('http://localhost:5000')
assert test is None
@vcr.use_cassette('tests/fixtures/vcr_cassettes/import_data.yml')
def test_import_data():
test = jobs.import_data(date=APP.config.get('START_DATE'))
assert test is ... | 21.115385 | 65 | 0.693989 | 90 | 549 | 4.022222 | 0.433333 | 0.077348 | 0.066298 | 0.088398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094298 | 0.169399 | 549 | 25 | 66 | 21.96 | 0.699561 | 0 | 0 | 0.117647 | 0 | 0 | 0.23133 | 0.080146 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0.058824 | 0.352941 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
a1d8d8c3e6848de4e2527072a3e600a5af28aaf9 | 190 | py | Python | darksite/cms/apps.py | UNCDarkside/DarksiteAPI | a4bc1f4adee7ecfba840ad45da22513f88acbbd0 | [
"MIT"
] | null | null | null | darksite/cms/apps.py | UNCDarkside/DarksiteAPI | a4bc1f4adee7ecfba840ad45da22513f88acbbd0 | [
"MIT"
] | 46 | 2018-12-19T06:53:37.000Z | 2019-01-11T18:20:05.000Z | darksite/cms/apps.py | UNCDarkside/DarksiteAPI | a4bc1f4adee7ecfba840ad45da22513f88acbbd0 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class CMSAppConfig(AppConfig):
name = "cms"
verbose_name = _("Content Management System")
| 23.75 | 55 | 0.768421 | 23 | 190 | 6.173913 | 0.782609 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 190 | 7 | 56 | 27.142857 | 0.8875 | 0 | 0 | 0 | 0 | 0 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a1e1db2f9ee7b52de7073cd78f1bbbc714b28666 | 356 | py | Python | server/gunicorn_config.py | codelucas/socialrank | 303b5f2a40902e281a16d0dd19d7aadb1143f750 | [
"Apache-2.0"
] | 5 | 2015-08-07T09:17:24.000Z | 2021-03-28T15:15:52.000Z | server/gunicorn_config.py | codelucas/socialrank | 303b5f2a40902e281a16d0dd19d7aadb1143f750 | [
"Apache-2.0"
] | null | null | null | server/gunicorn_config.py | codelucas/socialrank | 303b5f2a40902e281a16d0dd19d7aadb1143f750 | [
"Apache-2.0"
] | null | null | null | command = '/home/lucas/www/socialrank.lucasou.com/socialrank-env/bin/gunicorn'
pythonpath = '/home/lucas/www/socialrank.lucasou.com/socialrank-env/socialrank'
bind = '127.0.0.1:8080'
workers = 1
user = 'lucas'
accesslog = '/home/lucas/logs/socialrank.lucasou.com/gunicorn-access.log'
errorlog = '/home/lucas/logs/socialr... | 44.5 | 79 | 0.772472 | 51 | 356 | 5.392157 | 0.470588 | 0.130909 | 0.290909 | 0.16 | 0.625455 | 0.625455 | 0.625455 | 0.327273 | 0 | 0 | 0 | 0.032836 | 0.058989 | 356 | 7 | 80 | 50.857143 | 0.78806 | 0 | 0 | 0 | 0 | 0 | 0.747191 | 0.69382 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a1fb0c602657ac4870a47d418ffb01ee12263bc5 | 35 | py | Python | tests/__init__.py | CMeza99/lcs | e43d5c0e5c5d99ee931b1ab2ebe54e8d3783fd66 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | CMeza99/lcs | e43d5c0e5c5d99ee931b1ab2ebe54e8d3783fd66 | [
"Apache-2.0"
] | null | null | null | tests/__init__.py | CMeza99/lcs | e43d5c0e5c5d99ee931b1ab2ebe54e8d3783fd66 | [
"Apache-2.0"
] | null | null | null | """Testing package for lcs_api."""
| 17.5 | 34 | 0.685714 | 5 | 35 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.741935 | 0.8 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b80f52f1448b30fe444b2693e53117ec846d584a | 243 | py | Python | profiles_api/admin.py | chiwenshi/profiles-rest-api | d8ae6c00f24f6e9d0309631d022520c99b1f7356 | [
"MIT"
] | null | null | null | profiles_api/admin.py | chiwenshi/profiles-rest-api | d8ae6c00f24f6e9d0309631d022520c99b1f7356 | [
"MIT"
] | null | null | null | profiles_api/admin.py | chiwenshi/profiles-rest-api | d8ae6c00f24f6e9d0309631d022520c99b1f7356 | [
"MIT"
] | null | null | null | from django.contrib import admin
from profiles_api import models
# this tells the Django admin to register our user profile model with the admin
# site so make it accessible through the admin interface
admin.site.register(models.UserProfile)
| 34.714286 | 79 | 0.823045 | 38 | 243 | 5.236842 | 0.684211 | 0.080402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144033 | 243 | 6 | 80 | 40.5 | 0.956731 | 0.54321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
629721e4cd37f114d276f1a40240ac23650bf5f1 | 211 | py | Python | yatai/yatai/__init__.py | jmc529/BentoML | 96c1ec9e486d98930e24bbbac5b2991a6d416f97 | [
"Apache-2.0"
] | null | null | null | yatai/yatai/__init__.py | jmc529/BentoML | 96c1ec9e486d98930e24bbbac5b2991a6d416f97 | [
"Apache-2.0"
] | null | null | null | yatai/yatai/__init__.py | jmc529/BentoML | 96c1ec9e486d98930e24bbbac5b2991a6d416f97 | [
"Apache-2.0"
] | null | null | null | from yatai.configuration import inject_dependencies
from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
# Inject dependencies and configurations
inject_dependencies()
| 19.181818 | 51 | 0.834123 | 24 | 211 | 6.916667 | 0.5 | 0.325301 | 0.216867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109005 | 211 | 10 | 52 | 21.1 | 0.882979 | 0.180095 | 0 | 0 | 0 | 0 | 0.040936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
62e334570961361f45ffe22f51d24c5400e26bc1 | 170 | py | Python | test/ignore/test_model_account.py | sofyan48/ADRINI_BILLING_INTEGRATION | 545c044a8f96b083a9ff0aa2a319b01b9c254088 | [
"MIT"
] | 1 | 2019-07-27T12:17:24.000Z | 2019-07-27T12:17:24.000Z | test/ignore/test_model_account.py | meongbego/ADRINI_IOT_PLATFORM | 0923b86a9d1da5d6859b70726ad1e041aecc97b2 | [
"MIT"
] | 4 | 2021-04-18T11:41:31.000Z | 2021-06-01T23:12:19.000Z | test/ignore/test_model_account.py | sofyan48/ADRINI_SSO_PLATFORM | 4b57cbd2de991aa1c38313b50a7bf788b6d5e4e3 | [
"MIT"
] | null | null | null | import pytest
from app.models.account import *
class TestModelAccount:
def test_get_accounts(self, client):
data = Account.objects.all()
assert data
| 21.25 | 40 | 0.705882 | 21 | 170 | 5.619048 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217647 | 170 | 7 | 41 | 24.285714 | 0.887218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
62ec5bff47afe641ea9b192686232789d8c434fd | 118 | py | Python | code/1004.py | minssoj/Learning_Algorithm_Up | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | [
"MIT"
] | null | null | null | code/1004.py | minssoj/Learning_Algorithm_Up | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | [
"MIT"
] | null | null | null | code/1004.py | minssoj/Learning_Algorithm_Up | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | [
"MIT"
] | null | null | null | # [기초-출력] 출력하기04(설명)
# minso.jeong@daum.net
'''
문제링크 : https://www.codeup.kr/problem.php?id=1004
'''
print("'Hello'") | 16.857143 | 48 | 0.635593 | 19 | 118 | 3.947368 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056075 | 0.09322 | 118 | 7 | 49 | 16.857143 | 0.64486 | 0.754237 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
1a05d52e5144a706d013d2a7aa1b69c9a78715b9 | 441 | py | Python | roomservice/system/cpu.py | natict/roomservice | 70d7e42c41844f34e9841c75f369f9542c2760b1 | [
"MIT"
] | null | null | null | roomservice/system/cpu.py | natict/roomservice | 70d7e42c41844f34e9841c75f369f9542c2760b1 | [
"MIT"
] | null | null | null | roomservice/system/cpu.py | natict/roomservice | 70d7e42c41844f34e9841c75f369f9542c2760b1 | [
"MIT"
] | null | null | null | import psutil
from flask_restful import Resource
from .. import common
class CpuLoad(Resource):
def get(self, interval=1, percpu=True):
return psutil.cpu_percent(interval=interval, percpu=percpu)
class CpuTimes(Resource):
def get(self, percpu=True):
return common.to_dict(psutil.cpu_times(pe... | 22.05 | 67 | 0.725624 | 59 | 441 | 5.338983 | 0.440678 | 0.104762 | 0.133333 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00274 | 0.172336 | 441 | 19 | 68 | 23.210526 | 0.860274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1a28f2b7d02f0ebe68fd30e45315ef4280a35598 | 269 | py | Python | code/FeatureExtractionMode/TF_IDF/revkmer_TF_IDF.py | Zimiao1025/BioSeq-BLM | 8e833d9a767d2585bbf1fbee987a065fc421e8e6 | [
"BSD-2-Clause"
] | 2 | 2021-12-31T09:12:02.000Z | 2022-03-21T13:45:57.000Z | code/FeatureExtractionMode/TF_IDF/revkmer_TF_IDF.py | Zimiao1025/BioSeq-BLM | 8e833d9a767d2585bbf1fbee987a065fc421e8e6 | [
"BSD-2-Clause"
] | null | null | null | code/FeatureExtractionMode/TF_IDF/revkmer_TF_IDF.py | Zimiao1025/BioSeq-BLM | 8e833d9a767d2585bbf1fbee987a065fc421e8e6 | [
"BSD-2-Clause"
] | null | null | null | from ..utils.utils_words import rev_km_words
from ..utils.utils_algorithm import tf_idf
def rev_km_tf_idf(input_file, alphabet, fixed_len, word_size, fixed=True):
corpus = rev_km_words(input_file, alphabet, fixed_len, word_size, fixed)
return tf_idf(corpus)
| 33.625 | 77 | 0.788104 | 45 | 269 | 4.333333 | 0.444444 | 0.076923 | 0.14359 | 0.225641 | 0.389744 | 0.389744 | 0.389744 | 0.389744 | 0 | 0 | 0 | 0 | 0.126394 | 269 | 7 | 78 | 38.428571 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a7df930949b033fba2945518ee82daeebe73224a | 93 | py | Python | funilaria/apps.py | ph0980/OPE-IndyCar | c574c892c2d1bf633b2aa229ed13e0940184cff9 | [
"Apache-2.0"
] | 2 | 2019-08-21T11:37:01.000Z | 2019-10-01T13:53:22.000Z | funilaria/apps.py | ph0980/OPE-IndyCar | c574c892c2d1bf633b2aa229ed13e0940184cff9 | [
"Apache-2.0"
] | 6 | 2020-06-05T23:06:08.000Z | 2022-02-10T11:06:34.000Z | funilaria/apps.py | ph0980/OPE-IndyCar | c574c892c2d1bf633b2aa229ed13e0940184cff9 | [
"Apache-2.0"
] | 1 | 2019-12-21T22:53:49.000Z | 2019-12-21T22:53:49.000Z | from django.apps import AppConfig
class FunilariaConfig(AppConfig):
name = 'funilaria'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c5053eb7961e03bc7c3aafe131ddd9637db12ec1 | 188 | py | Python | sample_driver/models.py | ptrck/django-clone | 5c868b65ac6a3e3367595f8aa54abc42ef0d0144 | [
"MIT"
] | 55 | 2020-08-15T18:41:35.000Z | 2022-03-29T09:53:02.000Z | sample_driver/models.py | ptrck/django-clone | 5c868b65ac6a3e3367595f8aa54abc42ef0d0144 | [
"MIT"
] | 236 | 2020-08-17T12:37:58.000Z | 2022-03-31T11:04:19.000Z | sample_driver/models.py | ptrck/django-clone | 5c868b65ac6a3e3367595f8aa54abc42ef0d0144 | [
"MIT"
] | 6 | 2020-08-16T15:18:22.000Z | 2022-02-02T09:59:34.000Z | from django.db import models
from model_clone import CloneMixin
class Driver(CloneMixin, models.Model):
name = models.CharField(max_length=255)
age = models.SmallIntegerField()
| 20.888889 | 43 | 0.771277 | 24 | 188 | 5.958333 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.148936 | 188 | 8 | 44 | 23.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c51a41c86d60745b25d1c5c8e982b60416e980dc | 182 | py | Python | web_agent/agent/settings.py | jhshin0717/pae_cralwer | fff6bbf492893dd4b5638ed53c30de74acde80af | [
"Apache-2.0"
] | null | null | null | web_agent/agent/settings.py | jhshin0717/pae_cralwer | fff6bbf492893dd4b5638ed53c30de74acde80af | [
"Apache-2.0"
] | null | null | null | web_agent/agent/settings.py | jhshin0717/pae_cralwer | fff6bbf492893dd4b5638ed53c30de74acde80af | [
"Apache-2.0"
] | null | null | null | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DRIVER_CONFIG = {
'TYPE': 'Chrome_Headless',
'PATH': 'C:\chromedriver\chromedriver.exe'
}
| 18.2 | 70 | 0.697802 | 24 | 182 | 5 | 0.666667 | 0.15 | 0.216667 | 0.25 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 182 | 9 | 71 | 20.222222 | 0.759494 | 0 | 0 | 0 | 0 | 0 | 0.302198 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 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 | 4 |
c51d06625027ae3eaedd2788c2644057436f3734 | 111 | py | Python | databases/__init__.py | 00Kai0/databases | fbe39bf057078226cf0620960ddcac6b1cbc7b7c | [
"BSD-3-Clause"
] | null | null | null | databases/__init__.py | 00Kai0/databases | fbe39bf057078226cf0620960ddcac6b1cbc7b7c | [
"BSD-3-Clause"
] | null | null | null | databases/__init__.py | 00Kai0/databases | fbe39bf057078226cf0620960ddcac6b1cbc7b7c | [
"BSD-3-Clause"
] | null | null | null | from databases.core import Database, DatabaseURL
__version__ = "0.1.7"
__all__ = ["Database", "DatabaseURL"]
| 18.5 | 48 | 0.738739 | 13 | 111 | 5.692308 | 0.846154 | 0.513514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.126126 | 111 | 5 | 49 | 22.2 | 0.731959 | 0 | 0 | 0 | 0 | 0 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c51eabbad4ef1fa03405d86a34b9f537b6abf96f | 31 | py | Python | tests/__init__.py | samwellzuk/py-lambda-packer | 380d0b748d5e83dbdd58c87de532a26cccbb8ec8 | [
"MIT"
] | null | null | null | tests/__init__.py | samwellzuk/py-lambda-packer | 380d0b748d5e83dbdd58c87de532a26cccbb8ec8 | [
"MIT"
] | null | null | null | tests/__init__.py | samwellzuk/py-lambda-packer | 380d0b748d5e83dbdd58c87de532a26cccbb8ec8 | [
"MIT"
] | null | null | null | """Testing code lives here."""
| 15.5 | 30 | 0.645161 | 4 | 31 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 31 | 1 | 31 | 31 | 0.740741 | 0.774194 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c53120f54b5d3f488c9c407cf7ead58ba2ac8dd0 | 90 | py | Python | examples/asyncio/__init__.py | Dreamsorcerer/sqlalchemy | 153671df9d4cd7f2cdb3e14e6221f529269885d9 | [
"MIT"
] | 5,383 | 2018-11-27T07:34:03.000Z | 2022-03-31T19:40:59.000Z | examples/asyncio/__init__.py | Dreamsorcerer/sqlalchemy | 153671df9d4cd7f2cdb3e14e6221f529269885d9 | [
"MIT"
] | 2,719 | 2018-11-27T07:55:01.000Z | 2022-03-31T22:09:44.000Z | examples/asyncio/__init__.py | Dreamsorcerer/sqlalchemy | 153671df9d4cd7f2cdb3e14e6221f529269885d9 | [
"MIT"
] | 1,056 | 2015-01-03T00:30:17.000Z | 2022-03-15T12:56:24.000Z | """
Examples illustrating the asyncio engine feature of SQLAlchemy.
.. autosource::
"""
| 12.857143 | 63 | 0.722222 | 9 | 90 | 7.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 90 | 6 | 64 | 15 | 0.855263 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c548acc3fd769a142fcdd5c3731cd51b54d52afc | 171 | py | Python | bin/django-admin.py | qkhan/trydjango | 1a8789cb12e4609e5c201460589c29db9ebbe458 | [
"MIT"
] | null | null | null | bin/django-admin.py | qkhan/trydjango | 1a8789cb12e4609e5c201460589c29db9ebbe458 | [
"MIT"
] | null | null | null | bin/django-admin.py | qkhan/trydjango | 1a8789cb12e4609e5c201460589c29db9ebbe458 | [
"MIT"
] | null | null | null | #!/Users/qaisarkhan/Desktop/DjangoApps/Try-Django-1.8/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 28.5 | 64 | 0.789474 | 23 | 171 | 5.391304 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.087719 | 171 | 5 | 65 | 34.2 | 0.782051 | 0.368421 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c56e5364f873eaa9a4a094da4e4f1a814ca2deb8 | 139 | py | Python | utils/__init__.py | JiwooKimAR/MWP-solver-with-pretrained-language-model | 7fa723ba4485dd446840effc457d5ebcfef9357f | [
"MIT"
] | 5 | 2022-03-02T06:30:03.000Z | 2022-03-23T13:01:20.000Z | utils/__init__.py | JiwooKimAR/MWP-solver-with-pretrained-language-model | 7fa723ba4485dd446840effc457d5ebcfef9357f | [
"MIT"
] | null | null | null | utils/__init__.py | JiwooKimAR/MWP-solver-with-pretrained-language-model | 7fa723ba4485dd446840effc457d5ebcfef9357f | [
"MIT"
] | null | null | null | from .Config import Config
from .ResultTable import ResultTable
from .Logger import Logger, make_log_dir
from .Tool import set_random_seed
| 27.8 | 40 | 0.841727 | 21 | 139 | 5.380952 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122302 | 139 | 4 | 41 | 34.75 | 0.92623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c5738d6edc7e69ff9eb6044c3782c0aabb6c85a1 | 140 | py | Python | pycon_project/apps/boxes/admin.py | mitsuhiko/pycon | 73688a82080539a1c0d575cf3248f55fefb6b9ba | [
"BSD-3-Clause"
] | 1 | 2017-09-04T08:19:08.000Z | 2017-09-04T08:19:08.000Z | pycon_project/apps/boxes/admin.py | mitsuhiko/pycon | 73688a82080539a1c0d575cf3248f55fefb6b9ba | [
"BSD-3-Clause"
] | null | null | null | pycon_project/apps/boxes/admin.py | mitsuhiko/pycon | 73688a82080539a1c0d575cf3248f55fefb6b9ba | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from boxes.models import Box
admin.site.register(Box,
list_display = ["label", "user", "content"]
)
| 15.555556 | 47 | 0.714286 | 19 | 140 | 5.210526 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 140 | 8 | 48 | 17.5 | 0.838983 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3dbaac64c6cbd2640a0cf66390e7590916cfc552 | 26 | py | Python | oldstuff/tutorial2/tutorial2/lib/python3.8/copy.py | miusuarioamigo/python-Le | dbb653255dab7d11b87f25eec94bcce63a86aa42 | [
"MIT"
] | 6 | 2020-08-04T13:12:42.000Z | 2020-08-16T13:26:19.000Z | oldstuff/tutorial2/tutorial2/lib/python3.8/copy.py | miusuarioamigo/python-Le | dbb653255dab7d11b87f25eec94bcce63a86aa42 | [
"MIT"
] | 19 | 2020-02-03T10:46:48.000Z | 2022-01-13T03:06:15.000Z | oldstuff/tutorial2/tutorial2/lib/python3.8/copy.py | miusuarioamigo/python-Le | dbb653255dab7d11b87f25eec94bcce63a86aa42 | [
"MIT"
] | 6 | 2021-04-02T11:36:48.000Z | 2022-03-22T09:39:34.000Z | /usr/lib/python3.8/copy.py | 26 | 26 | 0.769231 | 6 | 26 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 26 | 1 | 26 | 26 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3dd1c068c81d9fb64c1a088dd6cc1330bc950cae | 16,187 | py | Python | nipype/interfaces/dtitk/registration.py | eort/nipype | 04d0159686a8d656905e9e06110287c6c60c1523 | [
"Apache-2.0"
] | null | null | null | nipype/interfaces/dtitk/registration.py | eort/nipype | 04d0159686a8d656905e9e06110287c6c60c1523 | [
"Apache-2.0"
] | null | null | null | nipype/interfaces/dtitk/registration.py | eort/nipype | 04d0159686a8d656905e9e06110287c6c60c1523 | [
"Apache-2.0"
] | null | null | null | from ..base import TraitedSpec, CommandLineInputSpec, traits, isdefined
from ...utils.filemanip import fname_presuffix
import os
from .base import CommandLineDtitk
class RigidInputSpec(CommandLineInputSpec):
fixed_file = traits.Str(desc="fixed diffusion tensor image",
exists=True, mand... | 40.979747 | 79 | 0.557299 | 1,629 | 16,187 | 5.418048 | 0.113567 | 0.04872 | 0.068887 | 0.062542 | 0.755835 | 0.732835 | 0.704736 | 0.67947 | 0.653297 | 0.633923 | 0 | 0.009763 | 0.322913 | 16,187 | 394 | 80 | 41.083756 | 0.795529 | 0.203497 | 0 | 0.5625 | 0 | 0 | 0.1306 | 0.007682 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.017857 | 0 | 0.553571 | 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 | 1 | 0 | 0 | 4 |
3def8b29191f46898efd5e3769dd0b9aee98e194 | 251 | py | Python | mlts/tf/__init__.py | manifest/machine-learning-toolset | c7875ca20f4623bd9bad081c4def8859b9000814 | [
"MIT"
] | null | null | null | mlts/tf/__init__.py | manifest/machine-learning-toolset | c7875ca20f4623bd9bad081c4def8859b9000814 | [
"MIT"
] | null | null | null | mlts/tf/__init__.py | manifest/machine-learning-toolset | c7875ca20f4623bd9bad081c4def8859b9000814 | [
"MIT"
] | null | null | null | from mlts.tf import adapter
from mlts.tf import generator
import tensorflow as tf
def to_dataset(dss, batch_size):
"""Convert to tf.data.Dataset"""
return tuple(map(lambda ds: tf.data.Dataset.from_tensor_slices(ds).batch(batch_size), dss))
| 25.1 | 95 | 0.752988 | 41 | 251 | 4.487805 | 0.560976 | 0.086957 | 0.108696 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135458 | 251 | 9 | 96 | 27.888889 | 0.847926 | 0.103586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9a84ff16f7c5f0dac8e420d4595705e24c20980a | 71 | py | Python | src/olympus/surfaces/surface_narrow_funnel/__init__.py | priyansh-1902/olympus | f57ad769918c0d5d805c439ab5ffbd180af698fa | [
"MIT"
] | 36 | 2020-10-10T14:05:40.000Z | 2022-02-12T07:21:47.000Z | src/olympus/surfaces/surface_narrow_funnel/__init__.py | kiminh/olympus | 054f7b4012faf6e516b5e4c895093c9fea0c793f | [
"MIT"
] | 12 | 2020-10-14T09:04:06.000Z | 2021-10-01T19:25:34.000Z | src/olympus/surfaces/surface_narrow_funnel/__init__.py | kiminh/olympus | 054f7b4012faf6e516b5e4c895093c9fea0c793f | [
"MIT"
] | 8 | 2020-10-24T12:43:45.000Z | 2022-02-12T07:21:50.000Z | #!/usr/bin/env python
from .wrapper_narrow_funnel import NarrowFunnel
| 17.75 | 47 | 0.816901 | 10 | 71 | 5.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098592 | 71 | 3 | 48 | 23.666667 | 0.875 | 0.28169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9ab0706281c5b375407d6c6af422e7e36f9540ef | 157 | py | Python | test/units/LambdaApiUserContact_test.py | praktikos/praktikos-template-python | 324c7640ee05469fba87a7ec64d6ac61675b259e | [
"MIT"
] | null | null | null | test/units/LambdaApiUserContact_test.py | praktikos/praktikos-template-python | 324c7640ee05469fba87a7ec64d6ac61675b259e | [
"MIT"
] | null | null | null | test/units/LambdaApiUserContact_test.py | praktikos/praktikos-template-python | 324c7640ee05469fba87a7ec64d6ac61675b259e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# noinspection PyUnusedLocal
def test(empty_database, create_and_delete_user, create_login_session, create_user_contact):
pass
| 22.428571 | 92 | 0.770701 | 20 | 157 | 5.65 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.127389 | 157 | 6 | 93 | 26.166667 | 0.817518 | 0.305732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
9ab16e021285d83056b472c7c88e5032a18fbe8f | 107 | py | Python | demo/custom/__init__.py | ZJCV/TSN | ec6ad668d20f477df44eab7035e2553d95a835f3 | [
"Apache-2.0"
] | 2 | 2021-11-29T10:29:40.000Z | 2022-03-22T02:39:44.000Z | demo/mmaction2/__init__.py | ZJCV/TSN | ec6ad668d20f477df44eab7035e2553d95a835f3 | [
"Apache-2.0"
] | 1 | 2022-03-13T09:28:52.000Z | 2022-03-13T09:28:52.000Z | demo/custom/__init__.py | ZJCV/TSN | ec6ad668d20f477df44eab7035e2553d95a835f3 | [
"Apache-2.0"
] | 1 | 2021-03-09T08:14:22.000Z | 2021-03-09T08:14:22.000Z | # -*- coding: utf-8 -*-
"""
@date: 2020/10/30 下午3:22
@file: __init__.py.py
@author: zj
@description:
"""
| 11.888889 | 24 | 0.579439 | 16 | 107 | 3.625 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.158879 | 107 | 8 | 25 | 13.375 | 0.511111 | 0.897196 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ac3bc68cbe794d080fb28b664a3b9784162a521 | 10,131 | py | Python | tests/test_symbol.py | mattdoug604/ensembl_map | 5edb8a48943df4b53effe3cd7ddf4d461fdd4bae | [
"MIT"
] | null | null | null | tests/test_symbol.py | mattdoug604/ensembl_map | 5edb8a48943df4b53effe3cd7ddf4d461fdd4bae | [
"MIT"
] | 1 | 2020-03-24T18:20:15.000Z | 2020-03-25T22:56:06.000Z | tests/test_symbol.py | mattdoug604/ensembl_map | 5edb8a48943df4b53effe3cd7ddf4d461fdd4bae | [
"MIT"
] | null | null | null | import unittest
from ensembl_map.ensembl import set_ensembl_release
from ensembl_map.symbol import (
get_exons,
get_exon_ids,
get_genes,
get_gene_ids,
get_protein_ids,
get_transcripts,
get_transcript_ids,
)
# TODO: Mock Cache object instead of needing to download annotations to run tests.... | 44.434211 | 84 | 0.707926 | 1,445 | 10,131 | 4.57301 | 0.042907 | 0.116525 | 0.096398 | 0.058263 | 0.932506 | 0.9148 | 0.845642 | 0.695823 | 0.57839 | 0.57839 | 0 | 0.127222 | 0.189221 | 10,131 | 227 | 85 | 44.629956 | 0.677258 | 0.007897 | 0 | 0.423913 | 0 | 0 | 0.180217 | 0 | 0 | 0 | 0 | 0.004405 | 0.418478 | 1 | 0.190217 | false | 0 | 0.016304 | 0 | 0.228261 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9ac5ba3b6d1fc3d5c988e98c1d294fd857b96812 | 103 | py | Python | CircuitPython_Made_Easy_On_CPX/cpx_slide_switch.py | Chompworks/Adafruit_Learning_System_Guides | 070ca6d8c3cca1ff5c5c6a457c533fa9ba905d00 | [
"MIT"
] | null | null | null | CircuitPython_Made_Easy_On_CPX/cpx_slide_switch.py | Chompworks/Adafruit_Learning_System_Guides | 070ca6d8c3cca1ff5c5c6a457c533fa9ba905d00 | [
"MIT"
] | null | null | null | CircuitPython_Made_Easy_On_CPX/cpx_slide_switch.py | Chompworks/Adafruit_Learning_System_Guides | 070ca6d8c3cca1ff5c5c6a457c533fa9ba905d00 | [
"MIT"
] | 1 | 2018-07-16T15:47:52.000Z | 2018-07-16T15:47:52.000Z | from adafruit_circuitplayground.express import cpx
while True:
print("Slide switch:", cpx.switch)
| 20.6 | 50 | 0.776699 | 13 | 103 | 6.076923 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135922 | 103 | 4 | 51 | 25.75 | 0.88764 | 0 | 0 | 0 | 0 | 0 | 0.126214 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9ac88e385ab7677c704cf46e87d5a9c77e541ed9 | 83 | py | Python | src/starter/apps.py | rehive/django-starter | 4eaec738cea740addb73623c7173f546b55e1c84 | [
"MIT"
] | 2 | 2018-06-27T15:46:43.000Z | 2021-08-16T19:04:58.000Z | src/starter/apps.py | rehive/django-starter | 4eaec738cea740addb73623c7173f546b55e1c84 | [
"MIT"
] | 1 | 2017-07-20T13:12:43.000Z | 2017-07-20T13:12:43.000Z | src/starter/apps.py | rehive/django-starter | 4eaec738cea740addb73623c7173f546b55e1c84 | [
"MIT"
] | 5 | 2017-06-10T16:22:49.000Z | 2021-07-29T22:18:21.000Z | from django.apps import AppConfig
class Starter(AppConfig):
name = 'starter'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
9aef334772cd9e37c7b65c50a746098338588fdb | 361 | py | Python | src/python/pants/backend/python/lint/black/register.py | anthonyjpratti/pants | d98e53af6ddd877861231bce8343f8204da0a9d1 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/python/lint/black/register.py | anthonyjpratti/pants | d98e53af6ddd877861231bce8343f8204da0a9d1 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/python/lint/black/register.py | anthonyjpratti/pants | d98e53af6ddd877861231bce8343f8204da0a9d1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.backend.python.lint.black import rules as black_rules
from pants.backend.python.targets import formattable_python_target
def rules():
return (
*black_rules.rules(),
... | 25.785714 | 66 | 0.767313 | 48 | 361 | 5.645833 | 0.583333 | 0.066421 | 0.118081 | 0.162362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019355 | 0.141274 | 361 | 13 | 67 | 27.769231 | 0.854839 | 0.34903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9afbf8b44389526200c69953110959e170272a94 | 716 | py | Python | build/lib/error_generator/strategies/utilities/apply_function.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 2 | 2018-11-11T07:52:51.000Z | 2019-06-19T05:44:55.000Z | build/lib.linux-x86_64-2.7/error_generator/strategies/utilities/apply_function.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 5 | 2018-07-20T15:08:23.000Z | 2018-11-21T13:18:01.000Z | error_generator/strategies/utilities/apply_function.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 1 | 2020-11-25T15:16:16.000Z | 2020-11-25T15:16:16.000Z | class Apply_Function(object):
def __init__(self):
pass
def apply_function(self,number_change,list_selected_value,method,dataset):
print("---------Change according to {} method ---------------\n".format(method.name))
for i in range(number_change):
#run(row,col,va... | 51.142857 | 156 | 0.625698 | 94 | 716 | 4.489362 | 0.361702 | 0.255924 | 0.362559 | 0.341232 | 0.36019 | 0.36019 | 0.36019 | 0.36019 | 0.36019 | 0.36019 | 0 | 0.013937 | 0.198324 | 716 | 14 | 157 | 51.142857 | 0.721254 | 0.036313 | 0 | 0 | 0 | 0 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b1134f61c947de40cc88a874aa94afa524dfd069 | 225 | py | Python | src/healthnet/viewLog/templatetags/app_filters.py | blackpan2/HealthNet | 455402c4e437d3ef4136bfdfa8459fa31c06b069 | [
"MIT"
] | null | null | null | src/healthnet/viewLog/templatetags/app_filters.py | blackpan2/HealthNet | 455402c4e437d3ef4136bfdfa8459fa31c06b069 | [
"MIT"
] | null | null | null | src/healthnet/viewLog/templatetags/app_filters.py | blackpan2/HealthNet | 455402c4e437d3ef4136bfdfa8459fa31c06b069 | [
"MIT"
] | null | null | null | from django import template
from django.contrib.auth.models import User
register = template.Library()
@register.filter(name="urlTime")
def urlTime(request):
return "http://127.0.0.1:8000/healthnet/system/log/timedown"
| 22.5 | 64 | 0.764444 | 32 | 225 | 5.375 | 0.78125 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049505 | 0.102222 | 225 | 9 | 65 | 25 | 0.80198 | 0 | 0 | 0 | 0 | 0 | 0.258929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
b1233f9c590b5860ff566b39d7dfe4a72d6b55ad | 69 | py | Python | rime/plugins/summary/__init__.py | ktateish/rime | eeb665dec5c4ef0ff45c40677e4238fa9b7f9aee | [
"MIT"
] | 31 | 2017-02-20T05:04:06.000Z | 2022-01-21T09:05:17.000Z | rime/plugins/summary/__init__.py | ktateish/rime | eeb665dec5c4ef0ff45c40677e4238fa9b7f9aee | [
"MIT"
] | 62 | 2017-02-14T10:10:06.000Z | 2021-05-17T00:00:01.000Z | rime/plugins/summary/__init__.py | ktateish/rime | eeb665dec5c4ef0ff45c40677e4238fa9b7f9aee | [
"MIT"
] | 21 | 2017-02-13T16:41:42.000Z | 2021-08-19T00:34:49.000Z | #!/usr/bin/python
"""Submodules for generating project summary.
"""
| 13.8 | 45 | 0.710145 | 8 | 69 | 6.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 69 | 4 | 46 | 17.25 | 0.803279 | 0.855072 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b134b09b807ed4ca1a22c0cee5a24e35f33d470c | 40 | py | Python | notebooks/_solutions/13-raster-processing31.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 58 | 2020-10-09T10:10:59.000Z | 2022-03-07T14:58:07.000Z | notebooks/_solutions/13-raster-processing31.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 24 | 2020-09-30T19:57:14.000Z | 2021-10-05T07:21:09.000Z | notebooks/_solutions/13-raster-processing31.py | jorisvandenbossche/DS-python-geospatial | 893a12edc5c203a75815f6dcb5f1e18c577c8cd5 | [
"BSD-3-Clause"
] | 19 | 2020-10-05T09:32:18.000Z | 2022-03-20T00:09:14.000Z | roads["frc_omschrijving"].value_counts() | 40 | 40 | 0.825 | 5 | 40 | 6.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 40 | 1 | 40 | 40 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b16c18eee0d7a01f62311be818363208471288bb | 117 | py | Python | worldbank.py | ensst6/UdacityDSND_Project2 | 095e56db99c6728d78c1863d2c6a6900ac8623e2 | [
"MIT"
] | null | null | null | worldbank.py | ensst6/UdacityDSND_Project2 | 095e56db99c6728d78c1863d2c6a6900ac8623e2 | [
"MIT"
] | null | null | null | worldbank.py | ensst6/UdacityDSND_Project2 | 095e56db99c6728d78c1863d2c6a6900ac8623e2 | [
"MIT"
] | null | null | null | from worldbankapp import app
# for local debugging before deploying
# app.run(host='0.0.0.0', port=3001, debug=True)
| 29.25 | 48 | 0.752137 | 20 | 117 | 4.4 | 0.8 | 0.068182 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 0.119658 | 117 | 3 | 49 | 39 | 0.776699 | 0.709402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b16f761da5e68d2a406fb87d1a7d7c471677d93b | 163 | py | Python | 10_File_Handling/07_Replace_words.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | 2 | 2021-05-29T17:22:40.000Z | 2021-06-07T09:32:53.000Z | 10_File_Handling/07_Replace_words.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | null | null | null | 10_File_Handling/07_Replace_words.py | AmanDhimanD/Python_CompleteCode | 5af7afaa189fdab56ffc21ed53b998f4a07252ed | [
"Adobe-Glyph"
] | null | null | null | with open ("Replace.txt") as f:
content =f.read()
content=content.replace("replace","Sample")
with open("Replace.txt", "w") as f:
f.write(content ) | 23.285714 | 44 | 0.625767 | 24 | 163 | 4.25 | 0.458333 | 0.156863 | 0.294118 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184049 | 163 | 7 | 45 | 23.285714 | 0.766917 | 0 | 0 | 0 | 0 | 0 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 4 |
b1710a8bfd3d3b5ef298b94a865da6cb88b1ee7a | 7,551 | py | Python | sigtrac/reports/migrations/0001_initial.py | nyaruka/sigtrac | edee5851047f6159d61c541e41848ff2b4bb58b1 | [
"MIT"
] | null | null | null | sigtrac/reports/migrations/0001_initial.py | nyaruka/sigtrac | edee5851047f6159d61c541e41848ff2b4bb58b1 | [
"MIT"
] | null | null | null | sigtrac/reports/migrations/0001_initial.py | nyaruka/sigtrac | edee5851047f6159d61c541e41848ff2b4bb58b1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Report'
db.create_table(u'reports_report', (
(u'id', self.gf('django.db.models.f... | 71.914286 | 187 | 0.582837 | 824 | 7,551 | 5.209951 | 0.151699 | 0.11181 | 0.192406 | 0.274866 | 0.743536 | 0.712089 | 0.707897 | 0.642208 | 0.57256 | 0.445842 | 0 | 0.008933 | 0.184611 | 7,551 | 105 | 188 | 71.914286 | 0.688322 | 0.008873 | 0 | 0.12766 | 0 | 0 | 0.560754 | 0.328031 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.010638 | 0.042553 | 0 | 0.095745 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b1718eb2701fb17a7be578039e6796883a951bcc | 381 | py | Python | speakeasy/__init__.py | certego/speakeasy | 7cc983603d09ee0bd62115b8b8c9a17c81abe9a4 | [
"MIT"
] | null | null | null | speakeasy/__init__.py | certego/speakeasy | 7cc983603d09ee0bd62115b8b8c9a17c81abe9a4 | [
"MIT"
] | null | null | null | speakeasy/__init__.py | certego/speakeasy | 7cc983603d09ee0bd62115b8b8c9a17c81abe9a4 | [
"MIT"
] | null | null | null | # flake8: noqa
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
# Import relevant classes for easy access
from speakeasy.windows.common import PeFile
from speakeasy.windows.win32 import Win32Emulator
from speakeasy.windows.kernel import WinKernelEmulator
from speakeasy.speakeasy import Speakeasy
import speake... | 29.307692 | 55 | 0.826772 | 51 | 381 | 6.176471 | 0.568627 | 0.165079 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026866 | 0.120735 | 381 | 12 | 56 | 31.75 | 0.913433 | 0.278215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b190740d5a5c1f121014cd18e0fad4c7f396e69a | 4,173 | py | Python | cloudcafe/meniscus/config.py | ProjectMeniscus/cloudcafe | fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9 | [
"Apache-2.0"
] | null | null | null | cloudcafe/meniscus/config.py | ProjectMeniscus/cloudcafe | fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9 | [
"Apache-2.0"
] | null | null | null | cloudcafe/meniscus/config.py | ProjectMeniscus/cloudcafe | fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9 | [
"Apache-2.0"
] | 1 | 2020-11-17T19:05:08.000Z | 2020-11-17T19:05:08.000Z | """
Copyright 2013 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 21.963158 | 72 | 0.665468 | 511 | 4,173 | 5.289628 | 0.260274 | 0.150573 | 0.165742 | 0.201258 | 0.288198 | 0.192009 | 0.132815 | 0.102849 | 0.102849 | 0.102849 | 0 | 0.005011 | 0.234843 | 4,173 | 189 | 73 | 22.079365 | 0.841528 | 0.13156 | 0 | 0.312 | 0 | 0 | 0.128872 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296 | false | 0.016 | 0.016 | 0.296 | 0.704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b19be8633c633383b1631025c98ba11aa5dbf9c1 | 168 | py | Python | workspace/test.py | nbbeeken/numeric | 0b4db18b23d8dd6d2f2212a3e974e7fdb90305df | [
"Apache-2.0"
] | 1 | 2021-11-01T03:38:16.000Z | 2021-11-01T03:38:16.000Z | workspace/test.py | nbbeeken/numeric | 0b4db18b23d8dd6d2f2212a3e974e7fdb90305df | [
"Apache-2.0"
] | null | null | null | workspace/test.py | nbbeeken/numeric | 0b4db18b23d8dd6d2f2212a3e974e7fdb90305df | [
"Apache-2.0"
] | null | null | null | x = {
'a': 12,
'a': 0b1010,
'a': 0o123,
'a': 0xa123,
'a': 1234567,
'a': 0xffff_ffff,
'a': 1234567,
'a': 0b1_1_0_1_0_1,
'a': 0o777,
'a': 0xeeee,
'a': 1.1,
};
| 12 | 20 | 0.488095 | 30 | 168 | 2.533333 | 0.466667 | 0.210526 | 0.236842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.335878 | 0.220238 | 168 | 13 | 21 | 12.923077 | 0.244275 | 0 | 0 | 0.153846 | 0 | 0 | 0.065476 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4909bbd4ab6618544ad96ff4e93be56a1f130081 | 103 | py | Python | notebooks/workflows/ocean_heat_content/solutions/solution_2_3.py | bonnland/ncar-python-tutorial | 54d536d40cfaf6f8990c58edb438286c19d32a67 | [
"CC-BY-4.0"
] | 38 | 2019-09-10T05:00:52.000Z | 2021-12-06T17:39:14.000Z | notebooks/workflows/ocean_heat_content/solutions/solution_2_3.py | bonnland/ncar-python-tutorial | 54d536d40cfaf6f8990c58edb438286c19d32a67 | [
"CC-BY-4.0"
] | 60 | 2019-08-28T22:34:17.000Z | 2021-01-25T22:53:21.000Z | notebooks/workflows/ocean_heat_content/solutions/solution_2_3.py | bonnland/ncar-python-tutorial | 54d536d40cfaf6f8990c58edb438286c19d32a67 | [
"CC-BY-4.0"
] | 22 | 2019-08-29T18:11:57.000Z | 2021-01-07T02:23:46.000Z | thetao_30lon_30lat = ds['thetao'].sel(lon=30, lat=30, method='nearest', tolerance=1)
thetao_30lon_30lat | 51.5 | 84 | 0.776699 | 17 | 103 | 4.470588 | 0.705882 | 0.289474 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134021 | 0.058252 | 103 | 2 | 85 | 51.5 | 0.649485 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
492afae094700ede562523c1d58968280caed6db | 113 | py | Python | tests/files/import_alias/foo_test.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | 1 | 2016-05-08T13:21:04.000Z | 2016-05-08T13:21:04.000Z | tests/files/import_alias/foo_test.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | null | null | null | tests/files/import_alias/foo_test.py | ishikawa/modipyd | 30bd7df9e9babb29b848dac6a46b1c909ab1e180 | [
"MIT"
] | null | null | null | import foo
import unittest
class FooTest(unittest.TestCase):
def testTrue(self):
self.assert_(True)
| 16.142857 | 33 | 0.716814 | 14 | 113 | 5.714286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19469 | 113 | 6 | 34 | 18.833333 | 0.879121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
492cdbc5ffa6073a7f2d72982fdcb231e4864c5f | 5,892 | py | Python | Lenet5.py | Silver-Whiskey/CBS | 3d57143e0a4b8f7edb35ec28e7f42acf8721a4f7 | [
"MIT"
] | null | null | null | Lenet5.py | Silver-Whiskey/CBS | 3d57143e0a4b8f7edb35ec28e7f42acf8721a4f7 | [
"MIT"
] | null | null | null | Lenet5.py | Silver-Whiskey/CBS | 3d57143e0a4b8f7edb35ec28e7f42acf8721a4f7 | [
"MIT"
] | null | null | null | import torch
import torchvision.models as models
import torch.nn.functional as F
import torch.nn as nn
import numpy as np
from utils import *
class LeNet5(nn.Module):
def __init__(self, n_classes):
super(LeNet5, self).__init__()
self.std = args.std
self.factor = args.std_fa... | 27.924171 | 86 | 0.516293 | 639 | 5,892 | 4.604069 | 0.1518 | 0.091774 | 0.097893 | 0.07036 | 0.753569 | 0.753569 | 0.703943 | 0.703943 | 0.682189 | 0.673351 | 0 | 0.036104 | 0.393585 | 5,892 | 211 | 87 | 27.924171 | 0.787294 | 0 | 0 | 0.633987 | 0 | 0 | 0.00176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052288 | false | 0 | 0.039216 | 0 | 0.156863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4943ae39d7bbdd8df4bb352197de76568ba7de65 | 618 | py | Python | 3-heroku-flask-basico/app/routes.py | JhonnyBn/MiniCurso-Flask-Heroku | fa858830716b5606553139f8355b46dc91369323 | [
"Unlicense"
] | null | null | null | 3-heroku-flask-basico/app/routes.py | JhonnyBn/MiniCurso-Flask-Heroku | fa858830716b5606553139f8355b46dc91369323 | [
"Unlicense"
] | null | null | null | 3-heroku-flask-basico/app/routes.py | JhonnyBn/MiniCurso-Flask-Heroku | fa858830716b5606553139f8355b46dc91369323 | [
"Unlicense"
] | 3 | 2021-12-13T18:04:15.000Z | 2021-12-23T19:02:07.000Z | import os, json
from app import app, bcrypt
from flask import render_template, request, redirect, url_for
@app.route('/', methods = ["GET","POST"])
def index():
return "Hello World!"
@app.route('/home', methods=['GET'])
def home():
return render_template('home.html')
@app.route('/login', methods=['GET'])
def login... | 24.72 | 69 | 0.68123 | 86 | 618 | 4.802326 | 0.418605 | 0.077482 | 0.062954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.127832 | 618 | 25 | 70 | 24.72 | 0.753247 | 0 | 0 | 0 | 0 | 0 | 0.138934 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.105263 | 0.157895 | 0.157895 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
494d58c79218f1963bae945d57ff7f8956389987 | 72 | py | Python | autoscale/server_control/__init__.py | usaar33/ec2_autoscale | e1646869057c1d01d031b2a19bb62db5c31817aa | [
"MIT"
] | null | null | null | autoscale/server_control/__init__.py | usaar33/ec2_autoscale | e1646869057c1d01d031b2a19bb62db5c31817aa | [
"MIT"
] | null | null | null | autoscale/server_control/__init__.py | usaar33/ec2_autoscale | e1646869057c1d01d031b2a19bb62db5c31817aa | [
"MIT"
] | null | null | null | """
Package provides various primitives to control launching servers
""" | 24 | 64 | 0.791667 | 8 | 72 | 7.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 72 | 3 | 65 | 24 | 0.904762 | 0.888889 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
499c09a5e093dabc8c65502d5ffac2ebbe9bda64 | 226 | py | Python | config.py | lockie/flask_ldap | a160b479c83fc256c68ac85b295a0771252afcf8 | [
"MIT"
] | null | null | null | config.py | lockie/flask_ldap | a160b479c83fc256c68ac85b295a0771252afcf8 | [
"MIT"
] | null | null | null | config.py | lockie/flask_ldap | a160b479c83fc256c68ac85b295a0771252afcf8 | [
"MIT"
] | null | null | null | DEBUG = True
SECRET_KEY = '\xd3q\xf9\xb7r\xad\x03Ip$\xfe\x8fd\x17\x1f\xbd\xe8\xd4\xa8\xe7\x99V\xf7\x22'
LDAP_SERVER = 'localhost'
LDAP_ADMIN = 'cn=admin,dc=example,dc=com'
LDAP_PASSWD = 'yay'
LDAP_BASEDN = 'dc=example,dc=com'
| 32.285714 | 90 | 0.734513 | 41 | 226 | 3.926829 | 0.780488 | 0.111801 | 0.136646 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086538 | 0.079646 | 226 | 6 | 91 | 37.666667 | 0.6875 | 0 | 0 | 0 | 0 | 0.166667 | 0.575221 | 0.446903 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b8c7fc404fabdf13b9031d761f74fae74ed94bc8 | 111 | py | Python | tests/test_python_comments_1.py | adamserafini/pyxl4 | 1ec49261d78c03e60020a9d218ce56bd651ba980 | [
"Apache-2.0"
] | 366 | 2015-01-02T06:20:07.000Z | 2022-01-10T01:57:10.000Z | tests/test_python_comments_1.py | adamserafini/pyxl4 | 1ec49261d78c03e60020a9d218ce56bd651ba980 | [
"Apache-2.0"
] | 19 | 2016-10-31T11:32:51.000Z | 2021-05-24T08:32:10.000Z | tests/test_python_comments_1.py | adamserafini/pyxl4 | 1ec49261d78c03e60020a9d218ce56bd651ba980 | [
"Apache-2.0"
] | 27 | 2015-01-10T00:32:05.000Z | 2021-06-05T05:38:23.000Z | # coding: pyxl
from pyxl import html
def test():
assert str(<frag>Im cool # lol
</frag>) == """Im cool """
| 18.5 | 34 | 0.603604 | 17 | 111 | 3.941176 | 0.764706 | 0.179104 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207207 | 111 | 5 | 35 | 22.2 | 0.761364 | 0.144144 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | null | null | 0 | 0.25 | null | null | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b8db8b4b60e95fdec9783ffc5c05e685ecc19a6f | 241 | py | Python | models/Answer.py | GardenersGalore/server | f7d7f8ae07b56fc3c4fbe46f0784329cd94ace2d | [
"MIT"
] | null | null | null | models/Answer.py | GardenersGalore/server | f7d7f8ae07b56fc3c4fbe46f0784329cd94ace2d | [
"MIT"
] | 1 | 2021-06-02T00:35:43.000Z | 2021-06-02T00:35:43.000Z | models/Answer.py | GardenersGalore/server | f7d7f8ae07b56fc3c4fbe46f0784329cd94ace2d | [
"MIT"
] | null | null | null | """
This model is for forum answer
"""
from mongoengine import Document, StringField
class Answer(Document):
answer = StringField(required=True)
author = StringField(required=True)
question_title = StringField(required=True)
| 18.538462 | 47 | 0.742739 | 27 | 241 | 6.592593 | 0.62963 | 0.320225 | 0.38764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165975 | 241 | 12 | 48 | 20.083333 | 0.885572 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
7708b56179c0425f084c94066c20b2b9da5793f3 | 1,041 | py | Python | CTFd/forms/auth.py | h4ckd0tm3/CTFd | 9c992abce394f60a47567fa48c12a087c4690bd2 | [
"Apache-2.0"
] | 1 | 2021-02-28T17:16:12.000Z | 2021-02-28T17:16:12.000Z | CTFd/forms/auth.py | h4ckd0tm3/CTFd | 9c992abce394f60a47567fa48c12a087c4690bd2 | [
"Apache-2.0"
] | 3 | 2021-03-31T20:01:34.000Z | 2021-12-13T20:43:29.000Z | CTFd/forms/auth.py | h4ckd0tm3/CTFd | 9c992abce394f60a47567fa48c12a087c4690bd2 | [
"Apache-2.0"
] | 2 | 2021-03-02T12:53:16.000Z | 2021-03-03T11:42:26.000Z | from wtforms import PasswordField, StringField
from wtforms.fields.html5 import EmailField
from wtforms.validators import InputRequired
from CTFd.forms import BaseForm
from CTFd.forms.fields import SubmitField
class RegistrationForm(BaseForm):
name = StringField("User Name", validators=[InputRequired()])
ema... | 30.617647 | 74 | 0.74928 | 96 | 1,041 | 8.125 | 0.28125 | 0.20641 | 0.148718 | 0.205128 | 0.562821 | 0.438462 | 0.373077 | 0.373077 | 0.276923 | 0.276923 | 0 | 0.001106 | 0.131604 | 1,041 | 33 | 75 | 31.545455 | 0.861726 | 0 | 0 | 0.409091 | 0 | 0 | 0.087416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.272727 | 0.227273 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
7716b57978478f383c549f78ef8a9835010070c9 | 1,621 | py | Python | cFSPlib/python_api_client/test/test_images_api.py | cloudFPGA/cFSP | f6d93ff8eddb774711064e59e4dc4f931d803d5f | [
"Apache-2.0"
] | 2 | 2022-01-31T10:19:13.000Z | 2022-02-15T06:07:04.000Z | cFSPlib/python_api_client/test/test_images_api.py | cloudFPGA/cFSP | f6d93ff8eddb774711064e59e4dc4f931d803d5f | [
"Apache-2.0"
] | 1 | 2022-01-24T16:16:52.000Z | 2022-01-25T19:21:52.000Z | cFSPlib/python_api_client/test/test_images_api.py | cloudFPGA/cFSP | f6d93ff8eddb774711064e59e4dc4f931d803d5f | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
cloudFPGA Resource Manager API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_i... | 23.492754 | 119 | 0.671191 | 220 | 1,621 | 4.6 | 0.295455 | 0.088933 | 0.128459 | 0.158103 | 0.536561 | 0.517787 | 0.48419 | 0.344862 | 0.314229 | 0.166008 | 0 | 0.022259 | 0.251696 | 1,621 | 68 | 120 | 23.838235 | 0.812036 | 0.445404 | 0 | 0.272727 | 1 | 0 | 0.01061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.318182 | false | 0.272727 | 0.227273 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
62371ba8ca21d59ba1cb015a1624360d869a622e | 12,304 | py | Python | proto/tp_artifact_1.0/sawtooth_artifact/artifact-api.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | 1 | 2019-04-03T18:31:36.000Z | 2019-04-03T18:31:36.000Z | proto/tp_artifact_1.0/sawtooth_artifact/artifact-api.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | null | null | null | proto/tp_artifact_1.0/sawtooth_artifact/artifact-api.py | pkthein/sparts_all_fam | ff162e4ea8c3919a197dc0cc13fde6b32da113c7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Wind River Systems
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 32.041667 | 82 | 0.540312 | 1,349 | 12,304 | 4.854707 | 0.137139 | 0.033593 | 0.043518 | 0.036647 | 0.792335 | 0.756299 | 0.722858 | 0.710643 | 0.655062 | 0.64758 | 0 | 0.013775 | 0.297871 | 12,304 | 383 | 83 | 32.125326 | 0.744299 | 0.440995 | 0 | 0.583333 | 0 | 0 | 0.167062 | 0.041074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.022727 | 0 | 0.325758 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6243b4179bc234aad901e7ce1ef0ddb05d4bbd6e | 95 | py | Python | src/visualization/__init__.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 12 | 2020-02-19T02:50:49.000Z | 2022-03-31T19:39:35.000Z | src/visualization/__init__.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 68 | 2020-03-23T00:07:28.000Z | 2022-03-28T10:02:16.000Z | src/visualization/__init__.py | Dou-Yu-xuan/pykinship | f81f6667fa08a08fe726736d05476168b2a3e2f0 | [
"MIT"
] | 3 | 2020-02-11T19:07:08.000Z | 2020-11-04T18:48:00.000Z | from .plotting import plot_rocs, plot_cmc
from .visualize import create_html_page_face_montage
| 31.666667 | 52 | 0.873684 | 15 | 95 | 5.133333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094737 | 95 | 2 | 53 | 47.5 | 0.895349 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
625f754ac512753118eb70425a85ce5e942a432b | 156 | py | Python | icpy3/ic_structures.py | amryfitra/icpy3 | e4332c28ad7d8c1ccd0f117e1cd8439362f5d03b | [
"MIT"
] | null | null | null | icpy3/ic_structures.py | amryfitra/icpy3 | e4332c28ad7d8c1ccd0f117e1cd8439362f5d03b | [
"MIT"
] | null | null | null | icpy3/ic_structures.py | amryfitra/icpy3 | e4332c28ad7d8c1ccd0f117e1cd8439362f5d03b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ctypes import *
class GrabberHandle(Structure):
pass
GrabberHandle._fields_ = [('unused', c_int)]
| 15.6 | 44 | 0.666667 | 19 | 156 | 5.315789 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007634 | 0.160256 | 156 | 9 | 45 | 17.333333 | 0.763359 | 0.269231 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 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 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6267d08206dc241f1129c6665b5eb2950592462f | 3,005 | py | Python | NewClass/AttrDict.py | Alberto-X3/Alberto-X3 | 268d1f1f8a59121d972c24335c5c26846bed2030 | [
"MIT"
] | 1 | 2021-03-04T21:34:31.000Z | 2021-03-04T21:34:31.000Z | NewClass/AttrDict.py | Alberto-X3/Alberto-X3 | 268d1f1f8a59121d972c24335c5c26846bed2030 | [
"MIT"
] | null | null | null | NewClass/AttrDict.py | Alberto-X3/Alberto-X3 | 268d1f1f8a59121d972c24335c5c26846bed2030 | [
"MIT"
] | null | null | null | from typing import *
_KT = TypeVar('KT') # Key type.
_VT = TypeVar('VT') # Value type.
_VT_co = TypeVar('VT_co', covariant=True) # Value type covariant containers.
class AttrDict(dict):
def __init__(self, data: dict) -> None:
for key in list(data.keys()):
if type(data[key]) == dict... | 51.810345 | 112 | 0.615641 | 368 | 3,005 | 4.222826 | 0.23913 | 0.138996 | 0.207207 | 0.073359 | 0.184041 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000438 | 0.240599 | 3,005 | 57 | 113 | 52.719298 | 0.680543 | 0.01797 | 0 | 0.039216 | 0 | 0 | 0.048443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.568627 | false | 0 | 0.019608 | 0.490196 | 0.686275 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
6556acc41d290c13d3733c57b2ed6d37d3726a73 | 139 | py | Python | src/map_building/__init__.py | XiaoJake/range-mcl | b6ff92c7299ff3d01f1a8e41c11bc0191746084d | [
"MIT"
] | 141 | 2021-03-31T02:05:03.000Z | 2022-03-24T18:14:18.000Z | src/map_building/__init__.py | JasonSun623/range-mcl | bd3cc2b9efa1172fcf547938501e3a7e0b687c50 | [
"MIT"
] | 6 | 2021-06-18T03:19:19.000Z | 2022-01-23T09:58:39.000Z | src/map_building/__init__.py | JasonSun623/range-mcl | bd3cc2b9efa1172fcf547938501e3a7e0b687c50 | [
"MIT"
] | 48 | 2021-04-05T09:06:34.000Z | 2022-03-24T03:08:38.000Z | #!/usr/bin/env python3
# This file is covered by the LICENSE file in the root of this project.
# Brief: Dummy file to make this a package.
| 34.75 | 71 | 0.741007 | 26 | 139 | 3.961538 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.18705 | 139 | 3 | 72 | 46.333333 | 0.902655 | 0.956835 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6563d8b75b5e0f6277c6d3d2012884ca2442e43e | 197 | py | Python | Python/Get started with flask/7 bootstrap style.py | projetsdiy/Raspberry-Pi-Projects | 0eb4b63d6b6eb340d603f1e5491ecd20a6775a1d | [
"MIT"
] | 2 | 2021-11-15T16:33:15.000Z | 2022-03-09T15:52:43.000Z | Python/Get started with flask/7 bootstrap style.py | projetsdiy/Raspberry-Pi-Projects | 0eb4b63d6b6eb340d603f1e5491ecd20a6775a1d | [
"MIT"
] | null | null | null | Python/Get started with flask/7 bootstrap style.py | projetsdiy/Raspberry-Pi-Projects | 0eb4b63d6b6eb340d603f1e5491ecd20a6775a1d | [
"MIT"
] | null | null | null | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def home():
return render_template('test7/page.html', status=True, temperature=21.4)
app.run(debug = True) | 21.888889 | 76 | 0.705584 | 28 | 197 | 4.75 | 0.75 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.147208 | 197 | 9 | 77 | 21.888889 | 0.767857 | 0 | 0 | 0 | 0 | 0 | 0.080808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
656c9fe3ad52c9a1b573d0c48496d12b10318739 | 366 | py | Python | spyder/plugins/editor/lsp/providers/__init__.py | neophnx/spyder | f76836ce1b924bcc4efd3f74f2960d26a4e528e0 | [
"MIT"
] | 2 | 2019-04-25T08:25:37.000Z | 2019-04-25T08:25:43.000Z | spyder/plugins/editor/lsp/providers/__init__.py | neophnx/spyder | f76836ce1b924bcc4efd3f74f2960d26a4e528e0 | [
"MIT"
] | null | null | null | spyder/plugins/editor/lsp/providers/__init__.py | neophnx/spyder | f76836ce1b924bcc4efd3f74f2960d26a4e528e0 | [
"MIT"
] | 1 | 2019-02-18T01:28:51.000Z | 2019-02-18T01:28:51.000Z | # -*- coding: utf-8 -*-
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Spyder Language Server Protocol Client method providers."""
from .document import DocumentProvider
from .window import WindowProvider
class LSPMethodProviderMixI... | 24.4 | 63 | 0.773224 | 42 | 366 | 6.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003195 | 0.144809 | 366 | 14 | 64 | 26.142857 | 0.888179 | 0.546448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
65a275b2e7f602e438b336bcd02a52e304e82b01 | 95 | py | Python | articlequality/extractors/tests/test_extractor.py | kevinbazira/articlequality | 04e8dc62b5e9f005bd272ffe48d8fa1d5e80b41a | [
"MIT"
] | null | null | null | articlequality/extractors/tests/test_extractor.py | kevinbazira/articlequality | 04e8dc62b5e9f005bd272ffe48d8fa1d5e80b41a | [
"MIT"
] | null | null | null | articlequality/extractors/tests/test_extractor.py | kevinbazira/articlequality | 04e8dc62b5e9f005bd272ffe48d8fa1d5e80b41a | [
"MIT"
] | null | null | null | from ..extractor import Extractor, TemplateExtractor
__all__ = (Extractor, TemplateExtractor)
| 23.75 | 52 | 0.821053 | 8 | 95 | 9.25 | 0.625 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 95 | 3 | 53 | 31.666667 | 0.870588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
65b8e8cafa24b25ff93d5f1e04cdd2cef1d64c2c | 5,733 | py | Python | mercury_engine_data_structures/crc.py | duncathan/mercury-engine-data-structures | 1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b | [
"MIT"
] | null | null | null | mercury_engine_data_structures/crc.py | duncathan/mercury-engine-data-structures | 1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b | [
"MIT"
] | null | null | null | mercury_engine_data_structures/crc.py | duncathan/mercury-engine-data-structures | 1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b | [
"MIT"
] | 2 | 2021-11-07T13:42:13.000Z | 2022-01-08T06:00:40.000Z | """
Module for calculating CRC hashes with the algorithm and data used by Mercury Engine.
"""
import typing
_crc64_constants = [
0x0000000000000000, 0xB32E4CBE03A75F6F, 0xF4843657A840A05B, 0x47AA7AE9ABE7FF34, 0x7BD0C384FF8F5E33,
0xC8FE8F3AFC28015C, 0x8F54F5D357CFFE68, 0x3C7AB96D5468A107, 0xF7A18709FF1EBC66, 0x... | 79.625 | 103 | 0.850515 | 307 | 5,733 | 15.869707 | 0.944625 | 0.005747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.545876 | 0.096982 | 5,733 | 71 | 104 | 80.746479 | 0.39521 | 0.014826 | 0 | 0 | 0 | 0 | 0.000887 | 0 | 0 | 0 | 0.820922 | 0 | 0 | 1 | 0.016129 | false | 0 | 0.016129 | 0 | 0.048387 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65bcc58a8ec44e30b8da56d4aef576590ab334a2 | 136 | py | Python | wsgi.py | andrenvk/eduxfeed | ca740ee7f996af4f6dafb5b5f1c857c9f7990b72 | [
"MIT"
] | 2 | 2016-12-20T23:39:56.000Z | 2017-02-15T14:15:51.000Z | wsgi.py | andrenvk/eduxfeed | ca740ee7f996af4f6dafb5b5f1c857c9f7990b72 | [
"MIT"
] | null | null | null | wsgi.py | andrenvk/eduxfeed | ca740ee7f996af4f6dafb5b5f1c857c9f7990b72 | [
"MIT"
] | null | null | null | import sys
path = '/home/andrenvk/eduxfeed'
if path not in sys.path:
sys.path.append(path)
from eduxfeed import app as application
| 19.428571 | 39 | 0.75 | 22 | 136 | 4.636364 | 0.636364 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 136 | 6 | 40 | 22.666667 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.169118 | 0.169118 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
65bd93a1f636e256e95b30fccbe256d2fee5e470 | 789 | py | Python | es_example/es_notification_listener/es_notification_listener_model.py | force-h2020/force-bdss-plugin-enginsoft-toy-model | f22c0ad3cc45c3b5a7f9c4fd0b20549d7dfc9aeb | [
"MIT"
] | null | null | null | es_example/es_notification_listener/es_notification_listener_model.py | force-h2020/force-bdss-plugin-enginsoft-toy-model | f22c0ad3cc45c3b5a7f9c4fd0b20549d7dfc9aeb | [
"MIT"
] | null | null | null | es_example/es_notification_listener/es_notification_listener_model.py | force-h2020/force-bdss-plugin-enginsoft-toy-model | f22c0ad3cc45c3b5a7f9c4fd0b20549d7dfc9aeb | [
"MIT"
] | null | null | null | from force_bdss.api import BaseNotificationListenerModel
class ESNotificationListenerModel(BaseNotificationListenerModel):
"""
This class contains the information needed by the notification listener.
For example, if your notification listener is something that contacts
a database, you would put... | 41.526316 | 78 | 0.74398 | 105 | 789 | 5.580952 | 0.695238 | 0.068259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220532 | 789 | 18 | 79 | 43.833333 | 0.952846 | 0.73384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
65c4c19ef1c832188b1148e162ce9d081b88e80b | 19 | py | Python | gui/__init__.py | cabarnes/storjmon | 231e89063a9562e917edc8247796a3419aa7edff | [
"MIT"
] | 1 | 2018-03-28T14:39:26.000Z | 2018-03-28T14:39:26.000Z | gui/__init__.py | cabarnes/storjmon | 231e89063a9562e917edc8247796a3419aa7edff | [
"MIT"
] | 9 | 2018-02-21T20:01:05.000Z | 2020-09-04T14:45:26.000Z | gui/__init__.py | cabarnes/storjmon | 231e89063a9562e917edc8247796a3419aa7edff | [
"MIT"
] | null | null | null | """GUI package."""
| 9.5 | 18 | 0.526316 | 2 | 19 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 19 | 1 | 19 | 19 | 0.588235 | 0.631579 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
65deb41938797680ac8e0567158bc7b5247e0c86 | 1,786 | py | Python | tadataka/utils.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 54 | 2019-11-15T16:30:34.000Z | 2022-01-13T15:18:54.000Z | tadataka/utils.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 11 | 2019-02-28T08:28:24.000Z | 2020-04-07T04:47:12.000Z | tadataka/utils.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 1 | 2020-02-26T13:59:40.000Z | 2020-02-26T13:59:40.000Z | import numpy as np
from tadataka.decorator import allow_1d
def random_binary(size):
return np.random.randint(0, 2, size, dtype=np.bool)
def indices_other_than(size, indices):
"""
size: size of the array you want to get elements from
example:
>>> indices_other_than(8, [1, 2, 3])
[0, 4, 5, 6,... | 25.514286 | 78 | 0.684211 | 275 | 1,786 | 4.269091 | 0.381818 | 0.051107 | 0.022998 | 0.035775 | 0.089438 | 0.089438 | 0.089438 | 0.061329 | 0 | 0 | 0 | 0.030577 | 0.194289 | 1,786 | 69 | 79 | 25.884058 | 0.785268 | 0.231243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.30303 | false | 0 | 0.060606 | 0.121212 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
02d2c80b5122fd0176e5e5a0eeddd38ef7697d8c | 62 | py | Python | examples/07/inference/inference.py | chenwuperth/smworkshop | 13738a04d6cdcaf75a4c97b3ca3ed31349a9385f | [
"Apache-2.0"
] | null | null | null | examples/07/inference/inference.py | chenwuperth/smworkshop | 13738a04d6cdcaf75a4c97b3ca3ed31349a9385f | [
"Apache-2.0"
] | null | null | null | examples/07/inference/inference.py | chenwuperth/smworkshop | 13738a04d6cdcaf75a4c97b3ca3ed31349a9385f | [
"Apache-2.0"
] | 2 | 2020-06-22T02:55:34.000Z | 2020-07-09T10:18:48.000Z | """
inference script for both batch transform and endpoint
""" | 20.666667 | 54 | 0.758065 | 8 | 62 | 5.875 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145161 | 62 | 3 | 55 | 20.666667 | 0.886792 | 0.870968 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
02edce5df082691b82d4529a10dcba81d23b0de3 | 149 | py | Python | monitor/views.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | null | null | null | monitor/views.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | 2 | 2015-04-23T00:21:01.000Z | 2015-04-23T00:29:23.000Z | monitor/views.py | mrbaboon/swampytodo | 096c39a57db0d8640e03262550dd1ed07191ecde | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import TemplateView
monitor_view = TemplateView.as_view(template_name='monitor.html') | 29.8 | 65 | 0.845638 | 20 | 149 | 6.15 | 0.7 | 0.162602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080537 | 149 | 5 | 65 | 29.8 | 0.89781 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
f31d66befc73da990d41173647661db9f68b7ad9 | 14,008 | py | Python | install.py | edwinn67/xc-2.9-admin | 27fb1cc6069a6b41c60ca99c094c46e19094f092 | [
"Unlicense"
] | 1 | 2022-03-30T02:26:08.000Z | 2022-03-30T02:26:08.000Z | install.py | edwinn67/xc-2.9-admin | 27fb1cc6069a6b41c60ca99c094c46e19094f092 | [
"Unlicense"
] | null | null | null | install.py | edwinn67/xc-2.9-admin | 27fb1cc6069a6b41c60ca99c094c46e19094f092 | [
"Unlicense"
] | 1 | 2022-02-01T03:31:53.000Z | 2022-02-01T03:31:53.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess, os, random, string, sys, shutil, socket
from itertools import cycle, izip
rDownloadURL = "https://xtreamcodes.org/install/download.php?type=%s"
rPackages = ["libcurl3", "wget", "mcrypt", "nscd", "htop", "mysql-server", "cron", "sudo", "libxslt1-dev", "... | 65.765258 | 1,816 | 0.653412 | 1,559 | 14,008 | 5.839641 | 0.273252 | 0.021968 | 0.029218 | 0.038445 | 0.196837 | 0.139389 | 0.106217 | 0.083809 | 0.063269 | 0.042838 | 0 | 0.047318 | 0.197387 | 14,008 | 212 | 1,817 | 66.075472 | 0.754069 | 0.00464 | 0 | 0.179487 | 0 | 0.05641 | 0.535733 | 0.232753 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0.128205 | 0.010256 | null | null | 0.210256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b864f78e28a8a9955628048823ac816b8e18710b | 292 | py | Python | tests/pages.py | pep8speaks/true_nth_usa_portal | 31ff755b0cfe61ab908e2a399e3c41ef17ca8c16 | [
"BSD-3-Clause"
] | 1 | 2019-03-11T12:25:20.000Z | 2019-03-11T12:25:20.000Z | tests/pages.py | pep8speaks/true_nth_usa_portal | 31ff755b0cfe61ab908e2a399e3c41ef17ca8c16 | [
"BSD-3-Clause"
] | null | null | null | tests/pages.py | pep8speaks/true_nth_usa_portal | 31ff755b0cfe61ab908e2a399e3c41ef17ca8c16 | [
"BSD-3-Clause"
] | null | null | null | from page_objects import PageElement, PageObject
class LoginPage(PageObject):
username = PageElement(name='email')
password = PageElement(name='password')
login_button = PageElement(css='input[type="submit"]')
facebook_button = PageElement(css='a[href="/login/facebook/"]')
| 32.444444 | 67 | 0.732877 | 32 | 292 | 6.59375 | 0.65625 | 0.14218 | 0.189573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126712 | 292 | 8 | 68 | 36.5 | 0.827451 | 0 | 0 | 0 | 0 | 0 | 0.202055 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
b8706d1e71be2bb8cee274bc1d652517de3db388 | 363 | py | Python | src/common/models/stair.py | wenksi/pren-robo-cube-ipcv | e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f | [
"MIT"
] | null | null | null | src/common/models/stair.py | wenksi/pren-robo-cube-ipcv | e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f | [
"MIT"
] | null | null | null | src/common/models/stair.py | wenksi/pren-robo-cube-ipcv | e2cf655a7e33aa63dae6e2b2a91abaa11d587f8f | [
"MIT"
] | null | null | null | import numpy as np
class Stair:
def __init__(self):
self.rows = []
def add_row(self, areas):
self.rows.append(areas)
def count(self):
return len(self.rows)
def get(self, i):
if len(self.rows) >= i + 1:
return self.rows[i]
return None
def get_... | 17.285714 | 35 | 0.548209 | 51 | 363 | 3.784314 | 0.45098 | 0.248705 | 0.11399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.336088 | 363 | 20 | 36 | 18.15 | 0.796681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0.071429 | 0.142857 | 0.785714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b23f131aa9c058f338c84646a51b0638678b60ce | 116 | py | Python | tests/__init__.py | vdmit11/py-mongosql | 8b66a3386344cf5b38021dccf32c7790a07617e5 | [
"BSD-2-Clause"
] | 36 | 2015-02-25T20:30:34.000Z | 2022-02-13T08:38:24.000Z | tests/__init__.py | vdmit11/py-mongosql | 8b66a3386344cf5b38021dccf32c7790a07617e5 | [
"BSD-2-Clause"
] | 8 | 2017-06-14T03:21:42.000Z | 2022-02-09T11:56:00.000Z | tests/__init__.py | vdmit11/py-mongosql | 8b66a3386344cf5b38021dccf32c7790a07617e5 | [
"BSD-2-Clause"
] | 10 | 2015-10-21T09:22:37.000Z | 2022-02-09T11:33:32.000Z | # import warnings
#
# from sqlalchemy.exc import SAWarning
# warnings.filterwarnings('error', category=SAWarning)
#
| 19.333333 | 54 | 0.775862 | 12 | 116 | 7.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112069 | 116 | 5 | 55 | 23.2 | 0.873786 | 0.905172 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b25040bb0681b440698f11c295ab0c1ae8c5025e | 936 | py | Python | NLP_Flask/app/nlp/preprocess/service/pre_process/common_pre_process_service.py | Gxy-2001/NLPPlat | f339c1a7452b979b413919cf4bc128bf45af52ef | [
"MIT"
] | null | null | null | NLP_Flask/app/nlp/preprocess/service/pre_process/common_pre_process_service.py | Gxy-2001/NLPPlat | f339c1a7452b979b413919cf4bc128bf45af52ef | [
"MIT"
] | null | null | null | NLP_Flask/app/nlp/preprocess/service/pre_process/common_pre_process_service.py | Gxy-2001/NLPPlat | f339c1a7452b979b413919cf4bc128bf45af52ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from app.nlp.preprocess.service.pre_process_service import PreProcessService
class CommonPreProcessService(PreProcessService):
def cut(self, data, type, master=''):
for data_item in data['vectors']:
data_item = self.cut_item(data_item=data_item, type=type)
retu... | 34.666667 | 90 | 0.662393 | 122 | 936 | 4.901639 | 0.237705 | 0.214047 | 0.160535 | 0.113712 | 0.690635 | 0.685619 | 0.685619 | 0.685619 | 0.685619 | 0.685619 | 0 | 0.001377 | 0.224359 | 936 | 26 | 91 | 36 | 0.822314 | 0.022436 | 0 | 0.444444 | 0 | 0 | 0.030702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
a24f17f910b0598e62845dee8350490511a52a0a | 436 | py | Python | Customer.py | ruben-yacht/elevator | a92c09ede28e05ba6d2d701ac03c7fdc645d5cdd | [
"MIT"
] | null | null | null | Customer.py | ruben-yacht/elevator | a92c09ede28e05ba6d2d701ac03c7fdc645d5cdd | [
"MIT"
] | null | null | null | Customer.py | ruben-yacht/elevator | a92c09ede28e05ba6d2d701ac03c7fdc645d5cdd | [
"MIT"
] | null | null | null | from Elevator import Elevator
class Customer:
''' explain class functionality'''
def __init__(self, start_floor, destination_floor):
self.start_floor = start_floor
self.destination_floor = destination_floor
self.in_elevator = False
self.arrived = False
def __str__(self):
... | 31.142857 | 116 | 0.676606 | 51 | 436 | 5.45098 | 0.411765 | 0.143885 | 0.151079 | 0.179856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229358 | 436 | 13 | 117 | 33.538462 | 0.827381 | 0.061927 | 0 | 0 | 0 | 0 | 0.087065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a26125f271e36e16c0794bb8655c313dfc37642e | 828 | py | Python | website_downloader/conftest.py | renanbs/website-downloader | d7ffaf3b17b0467550dc0e6064b12bed7d134ba4 | [
"MIT"
] | null | null | null | website_downloader/conftest.py | renanbs/website-downloader | d7ffaf3b17b0467550dc0e6064b12bed7d134ba4 | [
"MIT"
] | null | null | null | website_downloader/conftest.py | renanbs/website-downloader | d7ffaf3b17b0467550dc0e6064b12bed7d134ba4 | [
"MIT"
] | null | null | null | from unittest.mock import MagicMock
import pytest
from website_downloader.services.dir import DirectoryService
from website_downloader.services.images import ImagesService
from website_downloader.services.scripts import ScriptsService
from website_downloader.services.styles import StylesService
@pytest.fixture
def ... | 24.352941 | 63 | 0.81401 | 103 | 828 | 6.339806 | 0.281553 | 0.096478 | 0.122511 | 0.177642 | 0.324655 | 0.281776 | 0.134763 | 0.134763 | 0 | 0 | 0 | 0 | 0.10628 | 828 | 33 | 64 | 25.090909 | 0.882432 | 0 | 0 | 0.238095 | 0 | 0 | 0.020531 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.285714 | 0.238095 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a274a5bbb204ca195340a7ea1bbeade21bae011b | 182 | py | Python | tests/functional/adapters/test_memory.py | kvesteri/unistorage | cbdb93ba589c693cf9bacf96291ae62dce8fb443 | [
"BSD-3-Clause"
] | 2 | 2017-06-07T09:24:10.000Z | 2022-02-17T20:02:37.000Z | tests/functional/adapters/test_memory.py | kvesteri/unistorage | cbdb93ba589c693cf9bacf96291ae62dce8fb443 | [
"BSD-3-Clause"
] | null | null | null | tests/functional/adapters/test_memory.py | kvesteri/unistorage | cbdb93ba589c693cf9bacf96291ae62dce8fb443 | [
"BSD-3-Clause"
] | null | null | null | from .lib import FunctionalTestCase
class TestMemory(FunctionalTestCase):
def make_adapter(self):
from unistorage.adapters.memory import Memory
return Memory()
| 22.75 | 53 | 0.741758 | 19 | 182 | 7.052632 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197802 | 182 | 7 | 54 | 26 | 0.917808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a27ff8bf03d54be875a6a3c1a8b358265a47c48c | 62 | py | Python | Additonal Function.py | DRajyaguru/Demo | 3bc9a5d07a8cc5d53906e2269bb99391adc38e16 | [
"Apache-2.0"
] | null | null | null | Additonal Function.py | DRajyaguru/Demo | 3bc9a5d07a8cc5d53906e2269bb99391adc38e16 | [
"Apache-2.0"
] | null | null | null | Additonal Function.py | DRajyaguru/Demo | 3bc9a5d07a8cc5d53906e2269bb99391adc38e16 | [
"Apache-2.0"
] | 1 | 2019-12-05T06:12:59.000Z | 2019-12-05T06:12:59.000Z | add(int no1,no2)
{
return no1+no2;
ans = no1 + no2;
}
commit;
| 8.857143 | 16 | 0.629032 | 11 | 62 | 3.545455 | 0.636364 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.193548 | 62 | 6 | 17 | 10.333333 | 0.66 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a2bdf3fa92adf894fe9e1e4a469d617baa8518a7 | 3,981 | py | Python | DailyProgrammer/DP20170629B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20170629B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20170629B.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[2017-06-29] Challenge #321 [Intermediate] Affine Cipher Solver
https://www.reddit.com/r/dailyprogrammer/comments/6k123x/20170629_challenge_321_intermediate_affine_cipher/
#Description
You are to output what you think is the solution to a given [Affine
Cipher](https://en.wikipedia.org/wiki/Affine_cipher). In shor... | 55.291667 | 120 | 0.743783 | 728 | 3,981 | 4.048077 | 0.445055 | 0.008483 | 0.009162 | 0.02036 | 0.240244 | 0.215813 | 0.202918 | 0.183237 | 0.183237 | 0.183237 | 0 | 0.033272 | 0.184627 | 3,981 | 71 | 121 | 56.070423 | 0.873691 | 0.981914 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0.25 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0c0ec29e4e0dd41bce824f787f45465955c5b196 | 112 | py | Python | river/tree/nodes/__init__.py | fox-ds/river | 9ce947ebfc012ec7059de0a09c765b2da7fc1d25 | [
"BSD-3-Clause"
] | 2,184 | 2020-11-11T12:31:12.000Z | 2022-03-31T16:45:41.000Z | river/tree/nodes/__init__.py | raphaelsty/river | 2e0b25a2ef2d2ba9ec080cf86a491f7465433b18 | [
"BSD-3-Clause"
] | 328 | 2019-01-25T13:48:43.000Z | 2020-11-11T11:41:44.000Z | river/tree/nodes/__init__.py | raphaelsty/river | 2e0b25a2ef2d2ba9ec080cf86a491f7465433b18 | [
"BSD-3-Clause"
] | 240 | 2020-11-11T14:25:03.000Z | 2022-03-31T08:25:50.000Z | """
The `river.tree.nodes` module includes learning and split node
implementations for the hoeffding trees.
"""
| 22.4 | 62 | 0.767857 | 15 | 112 | 5.733333 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133929 | 112 | 4 | 63 | 28 | 0.886598 | 0.919643 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0c0f12e257927731dc4c67d1e4db46fdea290764 | 568 | py | Python | website/models.py | writtik/CRUD-in-Flask-Python- | 779fe69364f05f44736b8bdd8706f53404b45de1 | [
"Apache-2.0"
] | null | null | null | website/models.py | writtik/CRUD-in-Flask-Python- | 779fe69364f05f44736b8bdd8706f53404b45de1 | [
"Apache-2.0"
] | null | null | null | website/models.py | writtik/CRUD-in-Flask-Python- | 779fe69364f05f44736b8bdd8706f53404b45de1 | [
"Apache-2.0"
] | 1 | 2021-05-12T11:25:35.000Z | 2021-05-12T11:25:35.000Z | from . import db
from flask_login import UserMixin
from sqlalchemy.sql import func
class Note(db.Model):
id = db.Column(db.Integer, primary_key=True)
data = db.Column(db.String(500))
user_id = db.Column(db.Integer, db.ForeignKey("user.id"))
class User(db.Model, UserMixin):
id = db.Column... | 33.411765 | 68 | 0.679577 | 84 | 568 | 4.547619 | 0.380952 | 0.146597 | 0.183246 | 0.167539 | 0.431937 | 0.335079 | 0.335079 | 0.172775 | 0 | 0 | 0 | 0.019355 | 0.181338 | 568 | 17 | 69 | 33.411765 | 0.802151 | 0 | 0 | 0.153846 | 0 | 0 | 0.019892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.230769 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
0c22b6bc44e939250de97b4271aad1b1e3b7d9ba | 164 | py | Python | run.py | noelnoche/udacity-fsnd-movie-trailer-website | 8264bc933c4673ace70b60a3747fc79dd58b41ed | [
"MIT"
] | null | null | null | run.py | noelnoche/udacity-fsnd-movie-trailer-website | 8264bc933c4673ace70b60a3747fc79dd58b41ed | [
"MIT"
] | 4 | 2021-06-08T22:38:22.000Z | 2022-03-12T00:50:25.000Z | run.py | noelnoche/udacity-fsnd-movie-trailer-website | 8264bc933c4673ace70b60a3747fc79dd58b41ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
This is the file that is invoked to start up the application.
"""
from trailersweb import app
if __name__ == "__main__":
app.run()
| 16.4 | 62 | 0.682927 | 25 | 164 | 4.16 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195122 | 164 | 9 | 63 | 18.222222 | 0.787879 | 0.506098 | 0 | 0 | 0 | 0 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.