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) return sz
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, (1,3), names='g') sage: F2 = FreeGradedModule(A, (2,3), names='h') sage: homset = Hom(F1, F2) sage: homset Set of Morphisms from Free graded left module on 2 generators ... sage: homset([F2((Sq(1), 1)), F2((0, Sq(2)))]) Module morphism: From: Free graded left module on 2 generators over mod 2 Steenrod algebra, milnor basis To: Free graded left module on 2 generators over mod 2 Steenrod algebra, milnor basis Defn: g[1] |--> Sq(1)*h[2] + h[3] g[3] |--> Sq(2)*h[3] sage: TestSuite(homset).run() AUTHORS: - Robert R. Bruner, Michael J. Catanzaro (2012): Initial version. - Sverre Lunoee--Nielsen and Koen van Woerden (2019-11-29): Updated the original software to Sage version 8.9. - Sverre Lunoee--Nielsen (2020-07-01): Refactored the code and added new documentation and tests. """ #***************************************************************************** # Copyright (C) 2021 Robert R. Bruner <rrb@math.wayne.edu> and # Michael J. Catanzaro <mike@math.wayne.edu> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # https://www.gnu.org/licenses/ # **************************************************************************** from sage.misc.cachefunc import cached_method from sage.modules.fp_graded.free_morphism import FreeGradedModuleMorphism from sage.modules.fp_graded.homspace import FPModuleHomspace class FreeGradedModuleHomspace(FPModuleHomspace): """ Homspace between two free graded modules. """ Element = FreeGradedModuleMorphism
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 as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor( name='geo/USState.proto', package='opencannabis.geo.usa', syntax='proto3', serialized_pb=_b('\n\x11geo/USState.proto\x12\x14opencannabis.geo.usa*\xa1\t\n\x07USState\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x06\n\x02\x41L\x10\x01\x12\x0b\n\x07\x41LABAMA\x10\x01\x12\x06\n\x02\x41K\x10\x02\x12\n\n\x06\x41LASKA\x10\x02\x12\x06\n\x02\x41Z\x10\x03\x12\x0b\n\x07\x41RIZONA\x10\x03\x12\x06\n\x02\x41R\x10\x04\x12\x0c\n\x08\x41RKANSAS\x10\x04\x12\x06\n\x02\x43\x41\x10\x05\x12\x0e\n\nCALIFORNIA\x10\x05\x12\x06\n\x02\x43O\x10\x06\x12\x0c\n\x08\x43OLORADO\x10\x06\x12\x06\n\x02\x43T\x10\x07\x12\x0f\n\x0b\x43ONNECTICUT\x10\x07\x12\x06\n\x02\x44\x45\x10\x08\x12\x0c\n\x08\x44\x65laware\x10\x08\x12\x06\n\x02\x44\x43\x10\t\x12\x18\n\x14\x44ISTRICT_OF_COLUMBIA\x10\t\x12\x06\n\x02\x46L\x10\n\x12\x0b\n\x07\x46LORIDA\x10\n\x12\x06\n\x02GA\x10\x0b\x12\x0b\n\x07GEORGIA\x10\x0b\x12\x06\n\x02HI\x10\x0c\x12\n\n\x06HAWAII\x10\x0c\x12\x06\n\x02ID\x10\r\x12\t\n\x05IDAHO\x10\r\x12\x06\n\x02IL\x10\x0e\x12\x0c\n\x08ILLINOIS\x10\x0e\x12\x06\n\x02IN\x10\x0f\x12\x0b\n\x07INDIANA\x10\x0f\x12\x06\n\x02IA\x10\x10\x12\x08\n\x04IOWA\x10\x10\x12\x06\n\x02KS\x10\x11\x12\n\n\x06KANSAS\x10\x11\x12\x06\n\x02KY\x10\x12\x12\x0c\n\x08KENTUCKY\x10\x12\x12\x06\n\x02LA\x10\x13\x12\x0c\n\x08LOISIANA\x10\x13\x12\x06\n\x02ME\x10\x14\x12\t\n\x05MAINE\x10\x14\x12\x06\n\x02MD\x10\x15\x12\x0c\n\x08MARYLAND\x10\x15\x12\x06\n\x02MA\x10\x16\x12\x11\n\rMASSACHUSETTS\x10\x16\x12\x06\n\x02MI\x10\x17\x12\x0c\n\x08MICHIGAN\x10\x17\x12\x06\n\x02MN\x10\x18\x12\r\n\tMINNESOTA\x10\x18\x12\x06\n\x02MS\x10\x19\x12\x0f\n\x0bMISSISSIPPI\x10\x19\x12\x06\n\x02MO\x10\x1a\x12\x0c\n\x08MISSOURI\x10\x1a\x12\x06\n\x02MT\x10\x1b\x12\x0b\n\x07MONTANA\x10\x1b\x12\x06\n\x02NE\x10\x1c\x12\x0c\n\x08NEBRASKA\x10\x1c\x12\x06\n\x02NV\x10\x1d\x12\n\n\x06NEVADA\x10\x1d\x12\x06\n\x02NH\x10\x1e\x12\x11\n\rNEW_HAMPSHIRE\x10\x1e\x12\x06\n\x02NJ\x10\x1f\x12\x0e\n\nNEW_JERSEY\x10\x1f\x12\x06\n\x02NM\x10 \x12\x0e\n\nNEW_MEXICO\x10 \x12\x06\n\x02NY\x10!\x12\x0c\n\x08NEW_YORK\x10!\x12\x06\n\x02NC\x10\"\x12\x12\n\x0eNORTH_CAROLINA\x10\"\x12\x06\n\x02ND\x10#\x12\x10\n\x0cNORTH_DAKOTA\x10#\x12\x06\n\x02OH\x10$\x12\x08\n\x04OHIO\x10$\x12\x06\n\x02OK\x10%\x12\x0c\n\x08OKLAHOMA\x10%\x12\x06\n\x02OR\x10&\x12\n\n\x06OREGON\x10&\x12\x06\n\x02PA\x10\'\x12\x10\n\x0cPENNSYLVANIA\x10\'\x12\x06\n\x02RI\x10(\x12\x10\n\x0cRHODE_ISLAND\x10(\x12\x06\n\x02SC\x10)\x12\x12\n\x0eSOUTH_CAROLINA\x10)\x12\x06\n\x02SD\x10*\x12\x10\n\x0cSOUTH_DAKOTA\x10*\x12\x06\n\x02TN\x10+\x12\r\n\tTENNESSEE\x10+\x12\x06\n\x02TX\x10,\x12\t\n\x05TEXAS\x10,\x12\x06\n\x02UT\x10-\x12\x08\n\x04UTAH\x10-\x12\x06\n\x02VT\x10.\x12\x0b\n\x07VERMONT\x10.\x12\x06\n\x02VA\x10/\x12\x0c\n\x08VIRGINIA\x10/\x12\x06\n\x02WA\x10\x30\x12\x0e\n\nWASHINGTON\x10\x30\x12\x06\n\x02WV\x10\x31\x12\x11\n\rWEST_VIRGINIA\x10\x31\x12\x06\n\x02WI\x10\x32\x12\r\n\tWISCONSIN\x10\x32\x12\x0b\n\x07WYOMING\x10\x33\x12\x06\n\x02WY\x10\x33\x1a\x02\x10\x01\x42*\n\x1eio.opencannabis.schema.geo.usaH\x01P\x01\xa2\x02\x03OCSb\x06proto3') ) _USSTATE = _descriptor.EnumDescriptor( name='USState', full_name='opencannabis.geo.usa.USState', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( name='UNSPECIFIED', index=0, number=0, options=None, type=None), _descriptor.EnumValueDescriptor( name='AL', index=1, number=1, options=None, type=None), _descriptor.EnumValueDescriptor( name='ALABAMA', index=2, number=1, options=None, type=None), _descriptor.EnumValueDescriptor( name='AK', index=3, number=2, options=None, type=None), _descriptor.EnumValueDescriptor( name='ALASKA', index=4, number=2, options=None, type=None), _descriptor.EnumValueDescriptor( name='AZ', index=5, number=3, options=None, type=None), _descriptor.EnumValueDescriptor( name='ARIZONA', index=6, number=3, options=None, type=None), _descriptor.EnumValueDescriptor( name='AR', index=7, number=4, options=None, type=None), _descriptor.EnumValueDescriptor( name='ARKANSAS', index=8, number=4, options=None, type=None), _descriptor.EnumValueDescriptor( name='CA', index=9, number=5, options=None, type=None), _descriptor.EnumValueDescriptor( name='CALIFORNIA', index=10, number=5, options=None, type=None), _descriptor.EnumValueDescriptor( name='CO', index=11, number=6, options=None, type=None), _descriptor.EnumValueDescriptor( name='COLORADO', index=12, number=6, options=None, type=None), _descriptor.EnumValueDescriptor( name='CT', index=13, number=7, options=None, type=None), _descriptor.EnumValueDescriptor( name='CONNECTICUT', index=14, number=7, options=None, type=None), _descriptor.EnumValueDescriptor( name='DE', index=15, number=8, options=None, type=None), _descriptor.EnumValueDescriptor( name='Delaware', index=16, number=8, options=None, type=None), _descriptor.EnumValueDescriptor( name='DC', index=17, number=9, options=None, type=None), _descriptor.EnumValueDescriptor( name='DISTRICT_OF_COLUMBIA', index=18, number=9, options=None, type=None), _descriptor.EnumValueDescriptor( name='FL', index=19, number=10, options=None, type=None), _descriptor.EnumValueDescriptor( name='FLORIDA', index=20, number=10, options=None, type=None), _descriptor.EnumValueDescriptor( name='GA', index=21, number=11, options=None, type=None), _descriptor.EnumValueDescriptor( name='GEORGIA', index=22, number=11, options=None, type=None), _descriptor.EnumValueDescriptor( name='HI', index=23, number=12, options=None, type=None), _descriptor.EnumValueDescriptor( name='HAWAII', index=24, number=12, options=None, type=None), _descriptor.EnumValueDescriptor( name='ID', index=25, number=13, options=None, type=None), _descriptor.EnumValueDescriptor( name='IDAHO', index=26, number=13, options=None, type=None), _descriptor.EnumValueDescriptor( name='IL', index=27, number=14, options=None, type=None), _descriptor.EnumValueDescriptor( name='ILLINOIS', index=28, number=14, options=None, type=None), _descriptor.EnumValueDescriptor( name='IN', index=29, number=15, options=None, type=None), _descriptor.EnumValueDescriptor( name='INDIANA', index=30, number=15, options=None, type=None), _descriptor.EnumValueDescriptor( name='IA', index=31, number=16, options=None, type=None), _descriptor.EnumValueDescriptor( name='IOWA', index=32, number=16, options=None, type=None), _descriptor.EnumValueDescriptor( name='KS', index=33, number=17, options=None, type=None), _descriptor.EnumValueDescriptor( name='KANSAS', index=34, number=17, options=None, type=None), _descriptor.EnumValueDescriptor( name='KY', index=35, number=18, options=None, type=None), _descriptor.EnumValueDescriptor( name='KENTUCKY', index=36, number=18, options=None, type=None), _descriptor.EnumValueDescriptor( name='LA', index=37, number=19, options=None, type=None), _descriptor.EnumValueDescriptor( name='LOISIANA', index=38, number=19, options=None, type=None), _descriptor.EnumValueDescriptor( name='ME', index=39, number=20, options=None, type=None), _descriptor.EnumValueDescriptor( name='MAINE', index=40, number=20, options=None, type=None), _descriptor.EnumValueDescriptor( name='MD', index=41, number=21, options=None, type=None), _descriptor.EnumValueDescriptor( name='MARYLAND', index=42, number=21, options=None, type=None), _descriptor.EnumValueDescriptor( name='MA', index=43, number=22, options=None, type=None), _descriptor.EnumValueDescriptor( name='MASSACHUSETTS', index=44, number=22, options=None, type=None), _descriptor.EnumValueDescriptor( name='MI', index=45, number=23, options=None, type=None), _descriptor.EnumValueDescriptor( name='MICHIGAN', index=46, number=23, options=None, type=None), _descriptor.EnumValueDescriptor( name='MN', index=47, number=24, options=None, type=None), _descriptor.EnumValueDescriptor( name='MINNESOTA', index=48, number=24, options=None, type=None), _descriptor.EnumValueDescriptor( name='MS', index=49, number=25, options=None, type=None), _descriptor.EnumValueDescriptor( name='MISSISSIPPI', index=50, number=25, options=None, type=None), _descriptor.EnumValueDescriptor( name='MO', index=51, number=26, options=None, type=None), _descriptor.EnumValueDescriptor( name='MISSOURI', index=52, number=26, options=None, type=None), _descriptor.EnumValueDescriptor( name='MT', index=53, number=27, options=None, type=None), _descriptor.EnumValueDescriptor( name='MONTANA', index=54, number=27, options=None, type=None), _descriptor.EnumValueDescriptor( name='NE', index=55, number=28, options=None, type=None), _descriptor.EnumValueDescriptor( name='NEBRASKA', index=56, number=28, options=None, type=None), _descriptor.EnumValueDescriptor( name='NV', index=57, number=29, options=None, type=None), _descriptor.EnumValueDescriptor( name='NEVADA', index=58, number=29, options=None, type=None), _descriptor.EnumValueDescriptor( name='NH', index=59, number=30, options=None, type=None), _descriptor.EnumValueDescriptor( name='NEW_HAMPSHIRE', index=60, number=30, options=None, type=None), _descriptor.EnumValueDescriptor( name='NJ', index=61, number=31, options=None, type=None), _descriptor.EnumValueDescriptor( name='NEW_JERSEY', index=62, number=31, options=None, type=None), _descriptor.EnumValueDescriptor( name='NM', index=63, number=32, options=None, type=None), _descriptor.EnumValueDescriptor( name='NEW_MEXICO', index=64, number=32, options=None, type=None), _descriptor.EnumValueDescriptor( name='NY', index=65, number=33, options=None, type=None), _descriptor.EnumValueDescriptor( name='NEW_YORK', index=66, number=33, options=None, type=None), _descriptor.EnumValueDescriptor( name='NC', index=67, number=34, options=None, type=None), _descriptor.EnumValueDescriptor( name='NORTH_CAROLINA', index=68, number=34, options=None, type=None), _descriptor.EnumValueDescriptor( name='ND', index=69, number=35, options=None, type=None), _descriptor.EnumValueDescriptor( name='NORTH_DAKOTA', index=70, number=35, options=None, type=None), _descriptor.EnumValueDescriptor( name='OH', index=71, number=36, options=None, type=None), _descriptor.EnumValueDescriptor( name='OHIO', index=72, number=36, options=None, type=None), _descriptor.EnumValueDescriptor( name='OK', index=73, number=37, options=None, type=None), _descriptor.EnumValueDescriptor( name='OKLAHOMA', index=74, number=37, options=None, type=None), _descriptor.EnumValueDescriptor( name='OR', index=75, number=38, options=None, type=None), _descriptor.EnumValueDescriptor( name='OREGON', index=76, number=38, options=None, type=None), _descriptor.EnumValueDescriptor( name='PA', index=77, number=39, options=None, type=None), _descriptor.EnumValueDescriptor( name='PENNSYLVANIA', index=78, number=39, options=None, type=None), _descriptor.EnumValueDescriptor( name='RI', index=79, number=40, options=None, type=None), _descriptor.EnumValueDescriptor( name='RHODE_ISLAND', index=80, number=40, options=None, type=None), _descriptor.EnumValueDescriptor( name='SC', index=81, number=41, options=None, type=None), _descriptor.EnumValueDescriptor( name='SOUTH_CAROLINA', index=82, number=41, options=None, type=None), _descriptor.EnumValueDescriptor( name='SD', index=83, number=42, options=None, type=None), _descriptor.EnumValueDescriptor( name='SOUTH_DAKOTA', index=84, number=42, options=None, type=None), _descriptor.EnumValueDescriptor( name='TN', index=85, number=43, options=None, type=None), _descriptor.EnumValueDescriptor( name='TENNESSEE', index=86, number=43, options=None, type=None), _descriptor.EnumValueDescriptor( name='TX', index=87, number=44, options=None, type=None), _descriptor.EnumValueDescriptor( name='TEXAS', index=88, number=44, options=None, type=None), _descriptor.EnumValueDescriptor( name='UT', index=89, number=45, options=None, type=None), _descriptor.EnumValueDescriptor( name='UTAH', index=90, number=45, options=None, type=None), _descriptor.EnumValueDescriptor( name='VT', index=91, number=46, options=None, type=None), _descriptor.EnumValueDescriptor( name='VERMONT', index=92, number=46, options=None, type=None), _descriptor.EnumValueDescriptor( name='VA', index=93, number=47, options=None, type=None), _descriptor.EnumValueDescriptor( name='VIRGINIA', index=94, number=47, options=None, type=None), _descriptor.EnumValueDescriptor( name='WA', index=95, number=48, options=None, type=None), _descriptor.EnumValueDescriptor( name='WASHINGTON', index=96, number=48, options=None, type=None), _descriptor.EnumValueDescriptor( name='WV', index=97, number=49, options=None, type=None), _descriptor.EnumValueDescriptor( name='WEST_VIRGINIA', index=98, number=49, options=None, type=None), _descriptor.EnumValueDescriptor( name='WI', index=99, number=50, options=None, type=None), _descriptor.EnumValueDescriptor( name='WISCONSIN', index=100, number=50, options=None, type=None), _descriptor.EnumValueDescriptor( name='WYOMING', index=101, number=51, options=None, type=None), _descriptor.EnumValueDescriptor( name='WY', index=102, number=51, options=None, type=None), ], containing_type=None, options=_descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b('\020\001')), serialized_start=44, serialized_end=1229, ) _sym_db.RegisterEnumDescriptor(_USSTATE) USState = enum_type_wrapper.EnumTypeWrapper(_USSTATE) UNSPECIFIED = 0 AL = 1 ALABAMA = 1 AK = 2 ALASKA = 2 AZ = 3 ARIZONA = 3 AR = 4 ARKANSAS = 4 CA = 5 CALIFORNIA = 5 CO = 6 COLORADO = 6 CT = 7 CONNECTICUT = 7 DE = 8 Delaware = 8 DC = 9 DISTRICT_OF_COLUMBIA = 9 FL = 10 FLORIDA = 10 GA = 11 GEORGIA = 11 HI = 12 HAWAII = 12 ID = 13 IDAHO = 13 IL = 14 ILLINOIS = 14 IN = 15 INDIANA = 15 IA = 16 IOWA = 16 KS = 17 KANSAS = 17 KY = 18 KENTUCKY = 18 LA = 19 LOISIANA = 19 ME = 20 MAINE = 20 MD = 21 MARYLAND = 21 MA = 22 MASSACHUSETTS = 22 MI = 23 MICHIGAN = 23 MN = 24 MINNESOTA = 24 MS = 25 MISSISSIPPI = 25 MO = 26 MISSOURI = 26 MT = 27 MONTANA = 27 NE = 28 NEBRASKA = 28 NV = 29 NEVADA = 29 NH = 30 NEW_HAMPSHIRE = 30 NJ = 31 NEW_JERSEY = 31 NM = 32 NEW_MEXICO = 32 NY = 33 NEW_YORK = 33 NC = 34 NORTH_CAROLINA = 34 ND = 35 NORTH_DAKOTA = 35 OH = 36 OHIO = 36 OK = 37 OKLAHOMA = 37 OR = 38 OREGON = 38 PA = 39 PENNSYLVANIA = 39 RI = 40 RHODE_ISLAND = 40 SC = 41 SOUTH_CAROLINA = 41 SD = 42 SOUTH_DAKOTA = 42 TN = 43 TENNESSEE = 43 TX = 44 TEXAS = 44 UT = 45 UTAH = 45 VT = 46 VERMONT = 46 VA = 47 VIRGINIA = 47 WA = 48 WASHINGTON = 48 WV = 49 WEST_VIRGINIA = 49 WI = 50 WISCONSIN = 50 WYOMING = 51 WY = 51 DESCRIPTOR.enum_types_by_name['USState'] = _USSTATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) DESCRIPTOR.has_options = True DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\036io.opencannabis.schema.geo.usaH\001P\001\242\002\003OCS')) _USSTATE.has_options = True _USSTATE._options = _descriptor._ParseOptions(descriptor_pb2.EnumOptions(), _b('\020\001')) # @@protoc_insertion_point(module_scope)
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_201009711","LS_BW_201011112","LS_BW_201012513","LS_BW_201013915","LS_BW_201015316","LS_BW_201016718","LS_BW_201018119","LS_BW_201019520","LS_BW_201020922","LS_BW_201022323","LS_BW_201023725","LS_BW_201025126","LS_BW_201026527","LS_BW_201027929","LS_BW_201029330","LS_BW_201030732","LS_BW_201032133","LS_BW_201033534","LS_BW_201034936","LS_BW_201036301","LS_BW_201101202","LS_BW_201102603","LS_BW_201104005","LS_BW_201105406","LS_BW_201106808","LS_BW_201108209","LS_BW_201109610","LS_BW_201111012","LS_BW_201112413","LS_BW_201113815","LS_BW_201115216","LS_BW_201116617","LS_BW_201118019","LS_BW_201119420","LS_BW_201120822","LS_BW_201122223","LS_BW_201123624","LS_BW_201125026","LS_BW_201126427","LS_BW_201127829","LS_BW_201129230","LS_BW_201130631","LS_BW_201132033","LS_BW_201133434","LS_BW_201134836","LS_BW_201136201","LS_BW_201201102","LS_BW_201202503","LS_BW_201203905","LS_BW_201205306","LS_BW_201206708","LS_BW_201208109","LS_BW_201209510","LS_BW_201210912","LS_BW_201212313","LS_BW_201213715","LS_BW_201215116","LS_BW_201216517","LS_BW_201217919","LS_BW_201219320","LS_BW_201220722","LS_BW_201222123","LS_BW_201223524","LS_BW_201224926","LS_BW_201226327","LS_BW_201227729","LS_BW_201229130","LS_BW_201230531","LS_BW_201231933","LS_BW_201233334","LS_BW_201234736","LS_BW_201236100","LS_BW_201300902","LS_BW_201302303","LS_BW_201303705","LS_BW_201305106","LS_BW_201306507","LS_BW_201307909","LS_BW_201309310","LS_BW_201310712","LS_BW_201312113","LS_BW_201313514","LS_BW_201314916","LS_BW_201316317","LS_BW_201317719","LS_BW_201319120","LS_BW_201320521","LS_BW_201321923","LS_BW_201323324","LS_BW_201324726","LS_BW_201326127","LS_BW_201327528","LS_BW_201328930","LS_BW_201330331","LS_BW_201331733","LS_BW_201333134","LS_BW_201334535","LS_BW_201335900","LS_BW_201400802","LS_BW_201402203","LS_BW_201403604","LS_BW_201405006","LS_BW_201406407","LS_BW_201407809","LS_BW_201409210","LS_BW_201410611","LS_BW_201412013","LS_BW_201413414","LS_BW_201414816","LS_BW_201416217","LS_BW_201417618","LS_BW_201419020","LS_BW_201420421","LS_BW_201421823","LS_BW_201423224","LS_BW_201424625","LS_BW_201426027","LS_BW_201427428","LS_BW_201428830","LS_BW_201430231","LS_BW_201431632","LS_BW_201433034","LS_BW_201434435","LS_BW_201435800","LS_BW_201500702","LS_BW_201502103","LS_BW_201503504","LS_BW_201504906","LS_BW_201506307","LS_BW_201507709","LS_BW_201509110","LS_BW_201510511","LS_BW_201511913","LS_BW_201513314","LS_BW_201514716","LS_BW_201516117","LS_BW_201517518","LS_BW_201518920","LS_BW_201520321","LS_BW_201521723","LS_BW_201523124","LS_BW_201524525","LS_BW_201525927","LS_BW_201527328","LS_BW_201528730","LS_BW_201530131","LS_BW_201531532","LS_BW_201532934","LS_BW_201534335","LS_BW_201535700","LS_BW_201600601","LS_BW_201602003","LS_BW_201603404","LS_BW_201604806","LS_BW_201606207","LS_BW_201607608","LS_BW_201609010","LS_BW_201610411","LS_BW_201611813","LS_BW_201613214","LS_BW_201614615","LS_BW_201616017","LS_BW_201617418","LS_BW_201618820","LS_BW_201620221","LS_BW_201621622","LS_BW_201623024","LS_BW_201624425","LS_BW_201625827","LS_BW_201627228","LS_BW_201628629","LS_BW_201630031","LS_BW_201631432","LS_BW_201632834","LS_BW_201634235","LS_BW_201635600","LS_BW_201700401","LS_BW_201701803","LS_BW_201703204","LS_BW_201704605","LS_BW_201706007","LS_BW_201707408","LS_BW_201708810","LS_BW_201710211","LS_BW_201711612","LS_BW_201713014","LS_BW_201714415","LS_BW_201715817","LS_BW_201717218","LS_BW_201718619","LS_BW_201720021","LS_BW_201721422","LS_BW_201722824","LS_BW_201724225","LS_BW_201725626","LS_BW_201727028","LS_BW_201728429","LS_BW_201729831","LS_BW_201731232","LS_BW_201732633","LS_BW_201734035"] def calculateGaps(collection): # make a gap 1 and data 0 def unmaskNoData(img): im = img.select("red").gt(9999).rename(["gaps"]) gaps = ee.Image(im.unmask(1).set('system:time_start', img.get('system:time_start'))).float() return gaps # iterate over the collection and count the number of consequetive gaps def gapsCumulative(img,mylist): previous = ee.Image(ee.List(mylist).get(-1)); gaps = img.add(previous) gaps = gaps.where(gaps.eq(previous),0).set('system:time_start', img.get('system:time_start')) return ee.List(mylist).add(gaps) gapCollection = ee.ImageCollection(collection.map(unmaskNoData)) # count the number of gaps first = ee.List([ee.Image(gapCollection.first())]); previous = ee.Image(ee.List(first).get(-1)); gaps = ee.ImageCollection(ee.List(gapCollection.iterate(gapsCumulative, first))); return ee.ImageCollection(gaps); def fillCollectionYear(gaps,inCollection,year): stDay = year*365+8 endDay = year*365-8 # appy gap filling using the year before def fillGaps(img): date = ee.Date(img.get("system:time_start")) startDate = date.advance(-8,"day") endDate = date.advance(8,"day") thisyear = ee.Image(inCollection.filterDate(startDate,endDate).first()) startDate = date.advance(-stDay,"day") endDate = date.advance(-endDay,"day") previousYear = ee.ImageCollection(ic.filterDate(startDate,endDate)) def returnMask(img,previousYear): mask = img.gt(2) previousYear =previousYear.updateMask(mask) img = thisyear.unmask(previousYear) return img img = ee.Algorithms.If(previousYear.size().gt(0),returnMask(img,ee.Image(previousYear.first())),thisyear) return img collection = gaps.map(fillGaps) return ee.ImageCollection(collection) ic = ee.ImageCollection("projects/Sacha/PreprocessedData/L8_Biweekly_V5_Mosaiced_2") namez = [] myGaps = calculateGaps(ic) myCollection = ee.ImageCollection(fillCollectionYear(myGaps,ic,1)) myGaps = calculateGaps(myCollection) myCollection = fillCollectionYear(myGaps,myCollection,2) myGaps = calculateGaps(myCollection) myCollection = fillCollectionYear(myGaps,myCollection,3) myList = myCollection.toList(500) bandNames = ee.List(['blue', 'green', 'red', 'nir', 'swir1', 'swir2','blue_stdDev', 'red_stdDev', 'green_stdDev', 'nir_stdDev', 'swir1_stdDev', 'swir2_stdDev', 'ND_green_swir1_stdDev', 'ND_nir_red_stdDev', 'ND_nir_swir2_stdDev', 'svvi', 'thermal', 'date', 'year', 'cloudMask', 'TDOMMask', 'pixel_qa']) studyArea = ee.FeatureCollection("projects/Sacha/AncillaryData/StudyRegions/Ecuador_EcoRegions_Complete") studyArea = studyArea.geometry().bounds() geom = studyArea.getInfo() for i in range(0,100,1): im = ee.Image(myList.get(i)) name = filez[i] print name im = im.select(bandNames) task_ordered= ee.batch.Export.image.toAsset(image=im, description = name, assetId= "projects/Sacha/PreprocessedData/L8_Biweekly_V5_Mosaiced_gapfilled/"+ name, region=geom['coordinates'], maxPixels=1e13, crs="epsg:4326", scale=30) task_ordered.start()
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_code: Response error code :type error_code: ErrorCode """ self.error_code = error_code
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! # # # # =============================================================================== # from __future__ import annotations from pydantic import Field from ..base_object import BaseObject class ConfirmQrCodeAuthentication(BaseObject): """ Confirms QR code authentication on another device. Returns created session on success :param link: A link from a QR code. The link must be scanned by the in-app camera :type link: :class:`str` """ ID: str = Field("confirmQrCodeAuthentication", alias="@type") link: str @staticmethod def read(q: dict) -> ConfirmQrCodeAuthentication: return ConfirmQrCodeAuthentication.construct(**q)
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 der is None: self.vector_index = index self.vector_magnitude = magnitude self.der = list() for i in range(self.vector_magnitude): self.der += [[0.0 for j in range(len(self.val))]] self.der[self.vector_index] = [1.0 for j in range(len(self.val))] else: self.der = der # Comparison operations def __eq__(self, other): """ Overloading the equality operator Parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff): The other AutoDiff number to compare Returns: bool: True if both AutoDiffs are equivalent, False otherwise """ if isinstance(other, AutoDiff): try: assert self.val == pytest.approx(other.val) for s, o in zip(self.der, other.der): assert s == pytest.approx(o) return True except AssertionError: return False return False def __ne__(self, other): """ Overloading the inequality operator Parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff): The other AutoDiff number to compare Returns: bool: True if both AutoDiffs are different, False if they're equivalent """ return not self.__eq__(other) # Unary operations (negation) def __neg__(self): """ Overloading the negation operator Parameters: self (AutoDiff): The AutoDiff number itself Returns: AutoDiff: A new AutoDiff number after the negation """ # val and der of the negation val = list() der = list() # negate the vals for i in range(len(self.val)): val += [-self.val[i]] # negate the ders for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [-self.der[i][j]] return AutoDiff(val=val, der=der) def __pos__(self): """ Overloading the unary + operator Parameters: self (AutoDiff): The AutoDiff number itself Returns: AutoDiff: The same, unchanged AutoDiff number """ return self # Basic arithmetic operations (+, -, *, /) def __add__(self, other): """ Overloading the addition operator parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff/float): The other number to add returns: AutoDiff: A new AutoDiff number with the sum of the numbers """ # val and der of the sum val = list() der = list() # if both numbers are AutoDiff... if isinstance(other, AutoDiff): try: # check if `other` is a valid AutoDiff number assert(len(self.val) == len(other.val)) # add their vals for i in range(len(self.val)): val += [self.val[i] + other.val[i]] # add their ders for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [self.der[i][j] + other.der[i][j]] except: raise ValueError("Can't add AutoDiff numbers of different dimensions.") else: # add the vals of self with `other` for i in range(len(self.val)): val += [self.val[i] + other] # ders remain unchanged der = self.der # return sum return AutoDiff(val=val, der=der) def __radd__(self, other): """ Overloading the addition in case the addition of a object/non-object will be from the left parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff/float): The other number to add returns: AutoDiff: A new AutoDiff number with the sum of the numbers """ return self + other def __sub__(self, other): """ Overloading the subtraction operator parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff/float): The other number to subtract from self returns: AutoDiff: A new AutoDiff number with the delta between the numbers """ # val and der of the difference val = list() der = list() # if both numbers are AutoDiff... if isinstance(other, AutoDiff): try: # check if `other` is a valid AutoDiff number assert(len(self.val) == len(other.val)) # subtract their vals for i in range(len(self.val)): val += [self.val[i] - other.val[i]] # subtract their ders for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [self.der[i][j] - other.der[i][j]] except: raise ValueError("Can't subtract AutoDiff numbers of different dimensions.") else: # subtract the vals of self with `other` for i in range(len(self.val)): val += [self.val[i] - other] # ders remain unchanged der = self.der # return difference return AutoDiff(val=val, der=der) def __rsub__(self, other): """ Overloading the subtraction operator in case the subtraction of a object/non-object will be from the left parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff/float): The other number from which to subtract returns: AutoDiff: A new AutoDiff number with the delta between the numbers """ # __rsub__ will only be called if the lefthand value of the subtraction is not an AutoDiff # val and der of the difference val = list() der = list() # subtract the vals of self from `other` for i in range(len(self.val)): val += [other - self.val[i]] # ders are negated for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [-self.der[i][j]] # return difference return AutoDiff(val=val, der=der) def __mul__(self, other): """ Overloading the multiplication operator parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff/float): The other number to multiply returns: AutoDiff: A new AutoDiff number with the multiplication of the numbers """ # val and der of the product val = list() der = list() # if both numbers are AutoDiff... if isinstance(other, AutoDiff): try: # check if `other` is a valid AutoDiff number assert(len(self.val) == len(other.val)) # multiply their vals for i in range(len(self.val)): val += [self.val[i] * other.val[i]] # update ders with product rule for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [(self.val[j] * other.der[i][j]) + (self.der[i][j] * other.val[j])] except: raise ValueError("Can't multiply AutoDiff numbers of different dimensions.") else: # multiply the vals of self with `other` for i in range(len(self.val)): val += [self.val[i] * other] # multiply the ders with `other` for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [self.der[i][j] * other] # return product return AutoDiff(val=val, der=der) # Implementing __rmul__ in case a non AutoDiff object will be on the left of a multiplication def __rmul__(self, other): """ Overloading the multiplication operator in case the mul of a object/non-object will be from the left parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff/float): The other number to multiply returns: AutoDiff: A new AutoDiff number with the multiplication of the numbers """ return self * other def __truediv__(self, other): """ Overloading the division operator parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff/float): The other number by which to divide returns: AutoDiff: A new AutoDiff number with the quotient of the numbers """ # val and der of the quotient val = list() der = list() # if both numbers are AutoDiff... if isinstance(other, AutoDiff): try: # check if `other` is a valid AutoDiff number assert(len(self.val) == len(other.val)) # divide their vals for i in range(len(self.val)): val += [self.val[i] / other.val[i]] # update ders with quotient rule for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [((other.val[j] * self.der[i][j]) - (self.val[j] * other.der[i][j])) / (other.val[j] ** 2)] except: raise ValueError("Can't divide AutoDiff numbers of different dimensions.") else: # divide the vals of self with `other` for i in range(len(self.val)): val += [self.val[i] / other] # divide the ders with `other` for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [self.der[i][j] / other] # return quotient return AutoDiff(val=val, der=der) def __rtruediv__(self, other): """ Overloading the division operator in case the truediv of a object/non-object will be from the left parameters: self (AutoDiff): The AutoDiff number itself by which to divide other (AutoDiff/float): The other number returns: AutoDiff: A new AutoDiff number with the quotient of the numbers """ # __rtruediv__ will only be called if the lefthand value of the division is not an AutoDiff # val and der of the quotient val = list() der = list() # divide the vals of self from `other` for i in range(len(self.val)): val += [other / self.val[i]] # update the ders for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [(-other / self.val[j] ** 2) * self.der[i][j]] # return quotient return AutoDiff(val=val, der=der) def __pow__(self, other): """ Overloading the pow operator parameters: self (AutoDiff): The AutoDiff number itself other (AutoDiff or float): The other number which serves as the exponent returns: AutoDiff: A new AutoDiff number with the result of raising self to the power of other """ # val and der of the exponential val = list() der = list() # if both numbers are AutoDiff... if isinstance(other, AutoDiff): try: # check if `other` is a valid AutoDiff number assert(len(self.val) == len(other.val)) # for all vals, raise self to power of `other` for i in range(len(self.val)): val += [self.val[i] ** other.val[i]] # update ders for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [(self.val[j] ** (other.val[j] - 1)) * ((other.val[j] * self.der[i][j]) + (self.val[j] * np.log(self.val[j]) * other.der[i][j]))] except: raise ValueError("Can't calculate exponential with AutoDiff numbers of different dimensions.") else: # raise the vals of self to power of `other` for i in range(len(self.val)): val += [self.val[i] ** other] # update the ders for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [other * (self.val[j] ** (other - 1)) * self.der[i][j]] # return exponential return AutoDiff(val=val, der=der) def __rpow__(self, other): """ Overloading the pow operator in case the pow of a object/non-object will be from the left parameters: self (AutoDiff): The AutoDiff number itself, which serves as the exponent other (AutoDiff/float): The other number which serves as the base returns: AutoDiff: A new AutoDiff number with the result of raising self to the power of other """ # __rpow__ will only be called if the base is not an AutoDiff but the exponent is # val and der of the exponential val = list() der = list() # raise the vals of self to the power of `other` for i in range(len(self.val)): val += [other ** self.val[i]] # update the ders for i in range(len(self.der)): der += [list()] for j in range(len(self.der[i])): der[i] += [np.log(other) * (other ** self.val[j]) * self.der[i][j]] # return exponential return AutoDiff(val=val, der=der)
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_secrets_from_arns(mock_secretsmanager_resource): foo_secret = mock_secretsmanager_resource.create_secret( Name="foo_secret", SecretString="foo_value" ) bar_secret = mock_secretsmanager_resource.create_secret( Name="bar_secret", SecretString="bar_value" ) assert get_secrets_from_arns( mock_secretsmanager_resource, [foo_secret["ARN"], bar_secret["ARN"]] ) == {"foo_secret": foo_secret["ARN"], "bar_secret": bar_secret["ARN"]} baz_secret = mock_secretsmanager_resource.create_secret( Name="baz_secret", SecretString="baz_value" ) assert get_secrets_from_arns( mock_secretsmanager_resource, [foo_secret["ARN"], bar_secret["ARN"], baz_secret["ARN"]] ) == { "foo_secret": foo_secret["ARN"], "bar_secret": bar_secret["ARN"], "baz_secret": baz_secret["ARN"], } def test_get_tagged_secrets(mock_secretsmanager_resource): assert get_tagged_secrets(mock_secretsmanager_resource, "dagster") == {} foo_secret = mock_secretsmanager_resource.create_secret( Name="foo_secret", SecretString="foo_value", Tags=[{"Key": "dagster", "Value": "foo"}] ) assert get_tagged_secrets(mock_secretsmanager_resource, "dagster") == { "foo_secret": foo_secret["ARN"] } mock_secretsmanager_resource.create_secret( Name="bar_secret", SecretString="bar_value", Tags=[{"Key": "airflow", "Value": "bar"}] ) assert get_tagged_secrets(mock_secretsmanager_resource, "dagster") == { "foo_secret": foo_secret["ARN"] } baz_secret = mock_secretsmanager_resource.create_secret( Name="baz_secret", SecretString="baz_value", Tags=[{"Key": "dagster", "Value": "baz"}] ) assert get_tagged_secrets(mock_secretsmanager_resource, "dagster") == { "foo_secret": foo_secret["ARN"], "baz_secret": baz_secret["ARN"], } def test_secretmanager_secrets_resource(mock_secretsmanager_resource): foo_secret = mock_secretsmanager_resource.create_secret( Name="foo_secret", SecretString="foo_value", Tags=[{"Key": "dagster", "Value": "foo"}] ) bar_secret = mock_secretsmanager_resource.create_secret( Name="bar_secret", SecretString="bar_value", Tags=[{"Key": "airflow", "Value": "bar"}] ) _baz_secret = mock_secretsmanager_resource.create_secret( Name="baz_secret", SecretString="baz_value", Tags=[{"Key": "dagster", "Value": "baz"}] ) asdf_secret = mock_secretsmanager_resource.create_secret( Name="asdf_secret", SecretString="asdf_value" ) # Test various compbinations of secret ARNs and secret tags with secretsmanager_secrets_resource( build_init_resource_context(config={"secrets": [foo_secret["ARN"]]}) ) as secret_map: assert secret_map == {"foo_secret": "foo_value"} with secretsmanager_secrets_resource( build_init_resource_context(config={"secrets": [foo_secret["ARN"], bar_secret["ARN"]]}) ) as secret_map: assert secret_map == {"foo_secret": "foo_value", "bar_secret": "bar_value"} with secretsmanager_secrets_resource( build_init_resource_context(config={"secrets_tag": "dagster"}) ) as secret_map: assert secret_map == {"foo_secret": "foo_value", "baz_secret": "baz_value"} with secretsmanager_secrets_resource( build_init_resource_context( config={"secrets_tag": "dagster", "secrets": [asdf_secret["ARN"]]} ) ) as secret_map: assert secret_map == { "foo_secret": "foo_value", "baz_secret": "baz_value", "asdf_secret": "asdf_value", } assert os.getenv("foo_secret") is None assert os.getenv("baz_secret") is None assert os.getenv("asdf_secret") is None # Test adding secrets to the environment # Ensure env vars are overridden with environ({"foo_secret": "prior_foo_value"}): assert os.getenv("foo_secret") == "prior_foo_value" with secretsmanager_secrets_resource( build_init_resource_context( config={ "secrets_tag": "dagster", "secrets": [asdf_secret["ARN"]], "add_to_environment": True, } ) ) as secret_map: assert secret_map == { "foo_secret": "foo_value", "baz_secret": "baz_value", "asdf_secret": "asdf_value", } assert os.getenv("foo_secret") == "foo_value" assert os.getenv("baz_secret") == "baz_value" assert os.getenv("asdf_secret") == "asdf_value" # Test JSON secret json_secret_obj = {"key1": "value1", "key2": {"nest1": "value2", "nest2": "value3"}} json_secret = mock_secretsmanager_resource.create_secret( Name="json_secret", SecretString=json.dumps(json_secret_obj), ) with secretsmanager_secrets_resource( build_init_resource_context( config={ "secrets": [json_secret["ARN"]], "add_to_environment": True, } ) ) as secret_map: assert json.loads(secret_map["json_secret"]) == json_secret_obj assert json.loads(os.getenv("json_secret")) == json_secret_obj # Binary secrets have a None value binary_secret = mock_secretsmanager_resource.create_secret( Name="binary_secret", SecretBinary=b"binary_value" ) with secretsmanager_secrets_resource( build_init_resource_context( config={ "secrets": [binary_secret["ARN"]], "add_to_environment": True, } ) ) as secret_map: assert secret_map == { "binary_secret": None, } assert os.getenv("binary_secret") == None
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 None def _test_process_row(): pass def test_format_date(): test = jobs._format_date('2020-03-28 23:05:37') assert test == '03-28-2020' test = jobs._format_date('3/23/20 23:45') assert test == '03-23-2020'
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/socialrank.lucasou.com/gunicorn-error.log'
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(percpu=percpu)) class CpuCores(Resource): def get(self, logical=True): return psutil.cpu_count(logical=True)
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, mandatory=True, position=0, argstr="%s") moving_file = traits.Str(desc="diffusion tensor image path", exists=True, mandatory=True, position=1, argstr="%s") similarity_metric = traits.Enum('EDS', 'GDS', 'DDS', 'NMI', exists=True, mandatory=True, position=2, argstr="%s", desc="similarity metric") samplingX = traits.Float(mandatory=True, position=3, argstr="%s", desc="dist between samp points (mm)", default_value=4) samplingY = traits.Float(mandatory=True, position=4, argstr="%s", desc="dist between samp points (mm)", default_value=4) samplingZ = traits.Float(mandatory=True, position=5, argstr="%s", desc="dist between samp points (mm)", default_value=4) ftol = traits.Float(mandatory=True, position=6, argstr="%s", desc="cost function tolerance", default_value=0.01) useInTrans = traits.Float(mandatory=False, position=7, argstr="%s", desc="to initialize with existing xfm set as 1", default_value=1) class RigidOutputSpec(TraitedSpec): out_file = traits.File(exists=True) out_file_xfm = traits.File(exists=True) class RigidTask(CommandLineDtitk): """ Performs rigid registration between two tensor volumes Example ------- >>> import nipype.interfaces.dtitk as dtitk >>> node = dtitk.RigidTask() >>> node.inputs.fixed_file = 'diffusion.nii.gz' >>> node.inputs.moving_file = 'diffusion2.nii.gz' >>> node.inputs.similarity_metric = 'EDS' >>> node.inputs.samplingX = 4 >>> node.inputs.samplingY = 4 >>> node.inputs.samplingZ = 4 >>> node.inputs.ftol = 0.01 >>> node.inputs.useInTrans = 1 >>> node.run() # doctest: +SKIP """ input_spec = RigidInputSpec output_spec = RigidOutputSpec _cmd = 'dti_rigid_reg' def _list_outputs(self): outputs = self.output_spec().get() outputs['out_file_xfm'] = self.inputs.moving_file.replace('.nii.gz', '.aff') outputs['out_file'] = self.inputs.moving_file.replace('.nii.gz', '_aff.nii.gz') return outputs class AffineInputSpec(CommandLineInputSpec): fixed_file = traits.Str(desc="fixed diffusion tensor image", exists=True, mandatory=True, position=0, argstr="%s") moving_file = traits.Str(desc="diffusion tensor image path", exists=True, mandatory=True, position=1, argstr="%s") similarity_metric = traits.Enum('EDS', 'GDS', 'DDS', 'NMI', exists=True, mandatory=True, position=2, argstr="%s", desc="similarity metric") samplingX = traits.Float(mandatory=True, position=3, argstr="%s", desc="dist between samp points (mm)", default_value=4) samplingY = traits.Float(mandatory=True, position=4, argstr="%s", desc="dist between samp points (mm)", default_value=4) samplingZ = traits.Float(mandatory=True, position=5, argstr="%s", desc="dist between samp points (mm)", default_value=4) ftol = traits.Float(mandatory=True, position=6, argstr="%s", desc="cost function tolerance", default_value=0.01) useInTrans = traits.Float(mandatory=False, position=7, argstr="%s", desc="to initialize with existing xfm set as 1", default_value=1) class AffineOutputSpec(TraitedSpec): out_file = traits.File(exists=True) out_file_xfm = traits.File(exists=True) class AffineTask(CommandLineDtitk): """ Performs affine registration between two tensor volumes Example ------- >>> import nipype.interfaces.dtitk as dtitk >>> node = dtitk.AffineTask() >>> node.inputs.fixed_file = 'diffusion.nii.gz' >>> node.inputs.moving_file = 'diffusion2.nii.gz' >>> node.inputs.similarity_metric = 'EDS' >>> node.inputs.samplingX = 4 >>> node.inputs.samplingY = 4 >>> node.inputs.samplingZ = 4 >>> node.inputs.ftol = 0.01 >>> node.inputs.useInTrans = 1 >>> node.run() # doctest: +SKIP """ input_spec = AffineInputSpec output_spec = AffineOutputSpec _cmd = 'dti_affine_reg' def _list_outputs(self): outputs = self.output_spec().get() outputs['out_file_xfm'] = self.inputs.moving_file.replace('.nii.gz', '.aff') outputs['out_file'] = self.inputs.moving_file.replace('.nii.gz', '_aff.nii.gz') return outputs class DiffeoInputSpec(CommandLineInputSpec): fixed_file = traits.Str(desc="fixed diffusion tensor image", exists=True, mandatory=False, position=0, argstr="%s") moving_file = traits.Str(desc="moving diffusion tensor image", exists=True, mandatory=False, position=1, argstr="%s") mask = traits.Str(desc="mask", exists=True, mandatory=False, position=2, argstr="%s") legacy = traits.Float(desc="legacy parameter; always set to 1", exists=True, mandatory=True, position=3, default_value=1, argstr="%s") n_iters = traits.Float(desc="number of iterations", exists=True, mandatory=True, position=4, default_value=6, argstr="%s") ftol = traits.Float(desc="iteration for the optimization to stop", exists=True, mandatory=True, position=5, default_value=0.002, argstr="%s") class DiffeoOutputSpec(TraitedSpec): out_file = traits.File(exists=True) out_file_xfm = traits.File(exists=True) class DiffeoTask(CommandLineDtitk): """ Performs diffeomorphic registration between two tensor volumes Example ------- >>> import nipype.interfaces.dtitk as dtitk >>> node = dtitk.DiffeoTask() >>> node.inputs.fixed_file = 'diffusion.nii.gz' >>> node.inputs.moving_file = 'diffusion2.nii.gz' >>> node.inputs.mask = 'mask.nii.gz' >>> node.inputs.legacy = 1 >>> node.inputs.n_iters = 6 >>> node.inputs.ftol = 0.002 >>> node.run() # doctest: +SKIP """ input_spec = DiffeoInputSpec output_spec = DiffeoOutputSpec _cmd = 'dti_diffeomorphic_reg' def _list_outputs(self): outputs = self.output_spec().get() outputs['out_file_xfm'] = self.inputs.moving_file.replace( '.nii.gz', '_diffeo.df.nii.gz') outputs['out_file'] = self.inputs.moving_file.replace( '.nii.gz', '_diffeo.nii.gz') return outputs class ComposeXfmInputSpec(CommandLineInputSpec): in_df = traits.Str(desc='diffeomorphic file.df.nii.gz', exists=True, mandatory=False, position=1, argstr="-df %s") in_aff = traits.Str(desc='affine file.aff', exists=True, mandatory=False, position=0, argstr="-aff %s") out_file = traits.Str(desc='output_path', exists=True, mandatory=False, position=2, argstr="-out %s", name_source="in_df", name_template="%s_comboaff.nii.gz") class ComposeXfmOutputSpec(TraitedSpec): out_file = traits.File(desc='cheese', exists=True) class ComposeXfmTask(CommandLineDtitk): """ Combines diffeomorphic and affine transforms Example ------- >>> import nipype.interfaces.dtitk as dtitk >>> node = dtitk.ComposeXfmTask() >>> node.inputs.in_df = 'ants_Warp.nii.gz' >>> node.inputs.in_aff= 'ants_Affine.txt' >>> node.run() # doctest: +SKIP """ input_spec = ComposeXfmInputSpec output_spec = ComposeXfmOutputSpec _cmd = 'dfRightComposeAffine' def _list_outputs(self): outputs = self.output_spec().get() outputs['out_file'] = self.inputs.in_df.replace('.df.nii.gz', '_combo.df.nii.gz') return outputs class diffeoSymTensor3DVolInputSpec(CommandLineInputSpec): in_tensor = traits.Str(desc='moving tensor', exists=True, mandatory=False, position=0, argstr="-in %s") in_xfm = traits.Str(desc='transform to apply', exists=True, mandatory=False, position=1, argstr="-trans %s") in_target = traits.Str(desc='', exists=True, mandatory=False, position=2, argstr="-target %s") out_file = traits.Str(desc='', exists=True, mandatory=False, position=3, argstr="-out %s", name_source="in_tensor", name_template="%s_diffeoxfmd.nii.gz") class diffeoSymTensor3DVolOutputSpec(TraitedSpec): out_file = traits.File(desc='cheese', exists=True) class diffeoSymTensor3DVolTask(CommandLineDtitk): """ Applies diffeomorphic transform to a tensor volume Example ------- >>> import nipype.interfaces.dtitk as dtitk >>> node = dtitk.diffeoSymTensor3DVolTask() >>> node.inputs.in_tensor = 'diffusion.nii' >>> node.inputs.in_xfm = 'ants_Warp.nii.gz' >>> node.run() # doctest: +SKIP """ input_spec = diffeoSymTensor3DVolInputSpec output_spec = diffeoSymTensor3DVolOutputSpec _cmd = 'deformationSymTensor3DVolume' def _list_outputs(self): outputs = self.output_spec().get() outputs['out_file'] = self.inputs.out_file return outputs class affSymTensor3DVolInputSpec(CommandLineInputSpec): in_tensor = traits.Str(desc='moving tensor', exists=True, mandatory=False, position=0, argstr="-in %s") in_xfm = traits.Str(desc='transform to apply', exists=True, mandatory=False, position=1, argstr="-trans %s") in_target = traits.Str(desc='', exists=True, mandatory=False, position=2, argstr="-target %s") out_file = traits.Str(desc='', exists=True, mandatory=False, position=3, argstr="-out %s", name_source="in_tensor", name_template="%s_affxfmd.nii.gz") class affSymTensor3DVolOutputSpec(TraitedSpec): out_file = traits.File(desc='cheese', exists=True) class affSymTensor3DVolTask(CommandLineDtitk): """ Applies affine transform to a tensor volume Example ------- >>> import nipype.interfaces.dtitk as dtitk >>> node = dtitk.affSymTensor3DVolTask() >>> node.inputs.in_tensor = 'diffusion.nii' >>> node.inputs.in_xfm = 'ants_Affine.txt' >>> node.run() # doctest: +SKIP """ input_spec = affSymTensor3DVolInputSpec output_spec = affSymTensor3DVolOutputSpec _cmd = 'affineSymTensor3DVolume' def _list_outputs(self): outputs = self.output_spec().get() outputs['out_file'] = os.path.abspath(self.inputs.out_file) return outputs class affScalarVolInputSpec(CommandLineInputSpec): in_volume = traits.Str(desc='moving volume', exists=True, mandatory=False, position=0, argstr="-in %s") in_xfm = traits.Str(desc='transform to apply', exists=True, mandatory=False, position=1, argstr="-trans %s") in_target = traits.Str(desc='', position=2, argstr="-target %s") out_file = traits.Str(desc='', mandatory=False, position=3, argstr="-out %s", name_source="in_volume", name_template="%s_affxfmd.nii.gz") class affScalarVolOutputSpec(TraitedSpec): out_file = traits.File(desc='moved volume', exists=True) class affScalarVolTask(CommandLineDtitk): """ Applies affine transform to a scalar volume Example ------- >>> import nipype.interfaces.dtitk as dtitk >>> node = dtitk.affScalarVolTask() >>> node.inputs.in_volume = 'fa.nii.gz' >>> node.inputs.in_xfm = 'ants_Affine.txt' >>> node.run() # doctest: +SKIP """ input_spec = affScalarVolInputSpec output_spec = affScalarVolOutputSpec _cmd = 'affineScalarVolume' def _list_outputs(self): outputs = self.output_spec().get() outputs['out_file'] = os.path.abspath(self.inputs.out_file) return outputs class diffeoScalarVolInputSpec(CommandLineInputSpec): in_volume = traits.Str(desc='moving volume', exists=True, mandatory=False, position=0, argstr="-in %s") in_xfm = traits.Str(desc='transform to apply', exists=True, mandatory=False, position=2, argstr="-trans %s") in_target = traits.Str(desc='', exists=True, mandatory=False, position=3, argstr="-target %s") out_file = traits.Str(desc='', position=1, argstr="-out %s", name_source="in_volume", name_template="%s_diffeoxfmd.nii.gz") in_vsize = traits.Str(desc='', exists=True, mandatory=False, position=4, argstr="-vsize %s") in_flip = traits.Str(desc='', exists=True, mandatory=False, position=5, argstr="-flip %s") in_type = traits.Str(desc='', exists=True, mandatory=False, position=6, argstr="-type %s") in_interp = traits.Str(desc='0 trilin, 1 NN', exists=True, mandatory=False, position=7, argstr="-interp %s") class diffeoScalarVolOutputSpec(TraitedSpec): out_file = traits.File(desc='moved volume', exists=True) class diffeoScalarVolTask(CommandLineDtitk): """ Applies diffeomorphic transform to a scalar volume Example ------- >>> import nipype.interfaces.dtitk as dtitk >>> node = dtitk.diffeoScalarVolTask() >>> node.inputs.in_volume = 'fa.nii.gz' >>> node.inputs.in_xfm = 'ants_Warp.nii.gz' >>> node.run() # doctest: +SKIP """ input_spec = diffeoScalarVolInputSpec output_spec = diffeoScalarVolOutputSpec _cmd = 'deformationScalarVolume' def _list_outputs(self): outputs = self.output_spec().get() if not isdefined(self.inputs.out_file): self.inputs.out_file = fname_presuffix(self.inputs.in_volume, suffix="_diffeoxfmd", newpath=os.path.abspath( ".")) outputs['out_file'] = os.path.abspath(self.inputs.out_file) return outputs
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. set_ensembl_release(release=99, species="human", download_if_missing=True) class TestExon(unittest.TestCase): def test_exon_ids_from_cds(self): ret_by_id = get_exon_ids("ENST00000288135", "cds") ret_by_name = get_exon_ids("KIT-201", "cds") self.assertTrue("ENSE00001074448" in ret_by_id) self.assertTrue("ENSE00001074448" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_exon_ids_from_exon(self): ret_by_id = get_exon_ids("ENSE00001074448", "exon") self.assertTrue("ENSE00001074448" in ret_by_id) def test_exon_ids_from_gene(self): ret_by_id = get_exon_ids("ENSG00000157404", "gene") ret_by_name = get_exon_ids("KIT", "gene") self.assertTrue("ENSE00001074448" in ret_by_id) self.assertTrue("ENSE00001074448" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_exon_ids_from_protein(self): ret_by_id = get_exon_ids("ENSP00000288135", "protein") self.assertTrue("ENSE00001074448" in ret_by_id) def test_exon_ids_from_transcript(self): ret_by_id = get_exon_ids("ENST00000288135", "transcript") ret_by_name = get_exon_ids("KIT-201", "transcript") self.assertTrue("ENSE00001074448" in ret_by_id) self.assertTrue("ENSE00001074448" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_exon_from_cds(self): ret_by_id = get_exons("ENST00000288135", "cds") ret_by_name = get_exons("KIT-201", "cds") self.assertTrue("ENSE00001074448" in [i.exon_id for i in ret_by_id]) self.assertTrue("ENSE00001074448" in [i.exon_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name) def test_exon_from_exon(self): ret_by_id = get_exons("ENSE00001074448", "exon") self.assertTrue("ENSE00001074448" in [i.exon_id for i in ret_by_id]) def test_exon_from_gene(self): ret_by_id = get_exons("ENSG00000157404", "gene") ret_by_name = get_exons("KIT", "gene") self.assertTrue("ENSE00001074448" in [i.exon_id for i in ret_by_id]) self.assertTrue("ENSE00001074448" in [i.exon_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name) def test_exon_from_protein(self): ret_by_id = get_exons("ENSP00000288135", "protein") self.assertTrue("ENSE00001074448" in [i.exon_id for i in ret_by_id]) def test_exon_from_transcript(self): ret_by_id = get_exons("ENST00000288135", "transcript") ret_by_name = get_exons("KIT-201", "transcript") self.assertTrue("ENSE00001074448" in [i.exon_id for i in ret_by_id]) self.assertTrue("ENSE00001074448" in [i.exon_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name) class TestGene(unittest.TestCase): def test_gene_ids_from_cds(self): ret_by_id = get_gene_ids("ENST00000288135", "cds") ret_by_name = get_gene_ids("KIT-201", "cds") self.assertTrue("ENSG00000157404" in ret_by_id) self.assertTrue("ENSG00000157404" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_gene_ids_from_exon(self): ret_by_id = get_gene_ids("ENSE00001074448", "exon") self.assertTrue("ENSG00000157404" in ret_by_id) def test_gene_ids_from_gene(self): ret_by_id = get_gene_ids("ENSG00000157404", "gene") ret_by_name = get_gene_ids("KIT", "gene") self.assertTrue("ENSG00000157404" in ret_by_id) self.assertTrue("ENSG00000157404" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_gene_ids_from_protein(self): ret_by_id = get_gene_ids("ENSP00000288135", "protein") self.assertTrue("ENSG00000157404" in ret_by_id) def test_gene_ids_from_transcript(self): ret_by_id = get_gene_ids("ENST00000288135", "transcript") ret_by_name = get_gene_ids("KIT-201", "transcript") self.assertTrue("ENSG00000157404" in ret_by_id) self.assertTrue("ENSG00000157404" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_gene_from_cds(self): ret_by_id = get_genes("ENST00000288135", "cds") ret_by_name = get_genes("KIT-201", "cds") self.assertTrue("ENSG00000157404" in [i.gene_id for i in ret_by_id]) self.assertTrue("ENSG00000157404" in [i.gene_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name) def test_gene_from_exon(self): ret_by_id = get_genes("ENSE00001074448", "exon") self.assertTrue("ENSG00000157404" in [i.gene_id for i in ret_by_id]) def test_gene_from_gene(self): ret_by_id = get_genes("ENSG00000157404", "gene") ret_by_name = get_genes("KIT", "gene") self.assertTrue("ENSG00000157404" in [i.gene_id for i in ret_by_id]) self.assertTrue("ENSG00000157404" in [i.gene_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name) def test_gene_from_protein(self): ret_by_id = get_genes("ENSP00000288135", "protein") self.assertTrue("ENSG00000157404" in [i.gene_id for i in ret_by_id]) def test_gene_from_transcript(self): ret_by_id = get_genes("ENST00000288135", "transcript") ret_by_name = get_genes("KIT-201", "transcript") self.assertTrue("ENSG00000157404" in [i.gene_id for i in ret_by_id]) self.assertTrue("ENSG00000157404" in [i.gene_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name) class TestProtein(unittest.TestCase): def test_protein_ids_from_cds(self): ret_by_id = get_protein_ids("ENST00000288135", "cds") ret_by_name = get_protein_ids("KIT-201", "transcript") self.assertTrue("ENSP00000288135" in ret_by_id) self.assertTrue("ENSP00000288135" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_protein_ids_from_exon(self): ret_by_id = get_protein_ids("ENSE00001074448", "exon") self.assertTrue("ENSP00000288135" in ret_by_id) def test_protein_ids_from_gene(self): ret_by_id = get_protein_ids("ENSG00000157404", "gene") ret_by_name = get_protein_ids("KIT", "gene") self.assertTrue("ENSP00000288135" in ret_by_id) self.assertTrue("ENSP00000288135" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_protein_ids_from_protein(self): ret_by_id = get_protein_ids("ENSP00000288135", "protein") self.assertTrue("ENSP00000288135" in ret_by_id) def test_protein_ids_from_transcript(self): ret_by_id = get_protein_ids("ENST00000288135", "transcript") ret_by_name = get_protein_ids("KIT-201", "transcript") self.assertTrue("ENSP00000288135" in ret_by_id) self.assertTrue("ENSP00000288135" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) class TestTranscript(unittest.TestCase): def test_transcript_ids_from_cds(self): ret_by_id = get_transcript_ids("ENST00000288135", "cds") ret_by_name = get_transcript_ids("KIT-201", "cds") self.assertTrue("ENST00000288135" in ret_by_id) self.assertTrue("ENST00000288135" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_transcript_ids_from_exon(self): ret_by_id = get_transcript_ids("ENSE00001074448", "exon") self.assertTrue("ENST00000288135" in ret_by_id) def test_transcript_ids_from_gene(self): ret_by_id = get_transcript_ids("ENSG00000157404", "gene") ret_by_name = get_transcript_ids("KIT", "gene") self.assertTrue("ENST00000288135" in ret_by_id) self.assertTrue("ENST00000288135" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_transcript_ids_from_protein(self): ret_by_id = get_transcript_ids("ENSP00000288135", "protein") self.assertTrue("ENST00000288135" in ret_by_id) def test_transcript_ids_from_transcript(self): ret_by_id = get_transcript_ids("ENST00000288135", "transcript") ret_by_name = get_transcript_ids("KIT-201", "transcript") self.assertTrue("ENST00000288135" in ret_by_id) self.assertTrue("ENST00000288135" in ret_by_name) self.assertEqual(ret_by_id, ret_by_name) def test_transcript_from_cds(self): ret_by_id = get_transcripts("ENST00000288135", "cds") ret_by_name = get_transcripts("KIT-201", "cds") self.assertTrue("ENST00000288135" in [i.transcript_id for i in ret_by_id]) self.assertTrue("ENST00000288135" in [i.transcript_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name) def test_transcript_from_exon(self): ret_by_id = get_transcripts("ENSE00003659301", "exon") self.assertTrue("ENST00000380152" in [i.transcript_id for i in ret_by_id]) def test_transcript_from_gene(self): ret_by_id = get_transcripts("ENSG00000157404", "gene") ret_by_name = get_transcripts("KIT", "gene") self.assertTrue("ENST00000288135" in [i.transcript_id for i in ret_by_id]) self.assertTrue("ENST00000288135" in [i.transcript_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name) def test_transcript_from_protein(self): ret_by_id = get_transcripts("ENSP00000288135", "protein") self.assertTrue("ENST00000288135" in [i.transcript_id for i in ret_by_id]) def test_transcript_from_transcript(self): ret_by_id = get_transcripts("ENST00000288135", "transcript") ret_by_name = get_transcripts("KIT-201", "transcript") self.assertTrue("ENST00000288135" in [i.transcript_id for i in ret_by_id]) self.assertTrue("ENST00000288135" in [i.transcript_id for i in ret_by_name]) self.assertEqual(ret_by_id, ret_by_name)
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(), *formattable_python_target.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,value,dataset) result = method.run(list_selected_value[i][0],list_selected_value[i][1],list_selected_value[i][2],dataset) dataset[list_selected_value[i][0]][list_selected_value[i][1]] = result print("row: {} col: {} : '{}' changed to '{}' ".format(list_selected_value[i][0], list_selected_value[i][1],list_selected_value[i][2], result)) return dataset
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.fields.AutoField')(primary_key=True)), ('device', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['devices.Device'])), ('carrier', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['carriers.Carrier'])), ('connection_type', self.gf('django.db.models.fields.CharField')(max_length=32)), ('download_speed', self.gf('django.db.models.fields.IntegerField')()), ('ping', self.gf('django.db.models.fields.IntegerField')(null=True)), ('packets_dropped', self.gf('django.db.models.fields.IntegerField')(null=True)), ('signal_strength_dbm', self.gf('django.db.models.fields.IntegerField')(null=True)), ('signal_strength_asu', self.gf('django.db.models.fields.IntegerField')(null=True)), ('latitude', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=20, decimal_places=16, blank=True)), ('longitude', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=20, decimal_places=16, blank=True)), ('created_on', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), )) db.send_create_signal(u'reports', ['Report']) def backwards(self, orm): # Deleting model 'Report' db.delete_table(u'reports_report') models = { u'auth.group': { 'Meta': {'object_name': 'Group'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) }, u'auth.permission': { 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) }, u'auth.user': { 'Meta': {'object_name': 'User'}, 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) }, u'carriers.carrier': { 'Meta': {'object_name': 'Carrier'}, 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'carriers_carrier_creations'", 'to': u"orm['auth.User']"}), 'created_on': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), 'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'carriers_carrier_modifications'", 'to': u"orm['auth.User']"}), 'modified_on': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}) }, u'contenttypes.contenttype': { 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) }, u'devices.device': { 'Meta': {'object_name': 'Device'}, 'created_on': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'device_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'uuid': ('django.db.models.fields.CharField', [], {'max_length': '40'}) }, u'reports.report': { 'Meta': {'object_name': 'Report'}, 'carrier': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['carriers.Carrier']"}), 'connection_type': ('django.db.models.fields.CharField', [], {'max_length': '32'}), 'created_on': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'device': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['devices.Device']"}), 'download_speed': ('django.db.models.fields.IntegerField', [], {}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'latitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '16', 'blank': 'True'}), 'longitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '16', 'blank': 'True'}), 'packets_dropped': ('django.db.models.fields.IntegerField', [], {'null': 'True'}), 'ping': ('django.db.models.fields.IntegerField', [], {'null': 'True'}), 'signal_strength_asu': ('django.db.models.fields.IntegerField', [], {'null': 'True'}), 'signal_strength_dbm': ('django.db.models.fields.IntegerField', [], {'null': 'True'}) } } complete_apps = ['reports']
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 speakeasy.winenv.defs as defs import speakeasy.winenv.arch as arch
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 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from json import loads as json_to_dict from cloudcafe.common.models.configuration import ConfigSectionInterface class MarshallingConfig(ConfigSectionInterface): SECTION_NAME = 'marshalling' @property def serializer(self): return self.get("serializer") @property def deserializer(self): return self.get("deserializer") class MeniscusConfig(ConfigSectionInterface): SECTION_NAME = 'meniscus' @property def base_url(self): return self.get("base_url") @property def api_version(self): return self.get("api_version") @property def db_host(self): return self.get("db_host") @property def db_name(self): return self.get("db_name") @property def db_username(self): return self.get("db_username") @property def db_password(self): return self.get("db_password") class StorageConfig(ConfigSectionInterface): SECTION_NAME = 'meniscus-storage' @property def address(self): return self.get('address') @property def index(self): return self.get('index') class TenantConfig(ConfigSectionInterface): SECTION_NAME = 'meniscus-tenant' @property def hostname(self): return self.get("hostname") @property def ip_address_v4(self): return self.get("ip_address_v4") @property def ip_address_v6(self): return self.get("ip_address_v6") @property def producer_name(self): return self.get("producer_name") @property def producer_pattern(self): return self.get("producer_pattern") @property def producer_durable(self): return self.get_boolean("producer_durable") @property def producer_encrypted(self): return self.get_boolean("producer_encrypted") @property def profile_name(self): return self.get("profile_name") class PairingConfig(ConfigSectionInterface): SECTION_NAME = 'meniscus-pairing' @property def hostname(self): return self.get('hostname') @property def coordinator_base_url(self): return self.get('coordinator_base_url') @property def worker_base_url(self): return self.get('worker_base_url') @property def callback(self): return self.get('callback') @property def ip_v4(self): return self.get('ip_address_v4') @property def ip_v6(self): return self.get('ip_address_v6') @property def os_type(self): return self.get('os_type') @property def memory_mb(self): return int(self.get('memory_mb')) @property def arch(self): return self.get('arch') @property def api_secret(self): return self.get('api_secret') @property def personality(self): return self.get('personality') @property def cpu_cores(self): return int(self.get('cpu_cores')) @property def load_average(self): return json_to_dict(self.get('load_average')) @property def disks(self): return json_to_dict(self.get('disks')) class CorrelationConfig(ConfigSectionInterface): SECTION_NAME = 'meniscus-correlation' @property def correlator_base_url(self): return self.get('correlator_base_url') @property def host(self): return self.get('host') @property def pname(self): return self.get('pname') @property def time(self): return self.get('time') @property def native(self): return json_to_dict(self.get('native'))
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_factor self.epoch = args.epochs self.kernel_size = args.kernel_size self.conv1 = nn.Sequential( nn.Conv2d(in_channels=1, out_channels=6, kernel_size=5, stride=1) ) self.post1 = nn.Sequential( nn.Tanh(), nn.AvgPool2d(kernel_size=2) ) self.conv2 = nn.Sequential( nn.Conv2d(in_channels=6, out_channels=16, kernel_size=5, stride=1) ) self.post2( nn.Tanh(), nn.AvgPool2d(kernel_size=2) ) self.conv3( nn.Conv2d(in_channels=16, out_channels=120, kernel_size=5, stride=1) ) self.post3 = nn.Sequential( nn.Tanh() ) self.classifier = nn.Sequential( nn.Linear(in_features=120, out_features=84), nn.Tanh(), nn.Linear(in_features=84, out_features=n_classes), ) self._initialize_weights() def _initialize_weights(self): for m in self.modules(): if isinstance(m, nn.Conv2d): nn.init.kaiming_normal_(m.weight, mode='fan_in', nonlinearity='relu') if m.bias is not None: nn.init.constant_(m.bias, 0) elif isinstance(m, nn.BatchNorm2d): nn.init.constant_(m.weight, 1) nn.init.constant_(m.bias, 0) elif isinstance(m, nn.Linear): nn.init.normal_(m.weight, 0, 0.01) nn.init.constant_(m.bias, 0) def get_new_kernels(self, epoch_count): if epoch_count % self.epoch == 0 and epoch_count is not 0: self.std *= 0.9 self.kernel1 = get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=6 ) self.kernel2= get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=16 ) self.kernel3 = get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=120 ) class LeNet5_Std(LeNet5): def forward(self, x,return_intermediate=False): output = self.conv1(x) output = self.post1(output) output = self.conv2(output) output = self.post2(output) output = self.conv3(output) if return_intermediate: output = output.view(output.size(0), -1) return output output = self.post5(output) output = output.view(output.size(0), -1) output = self.classifier(output) return output class LeNet5_Curr(LeNet5): def get_new_kernels(self, epoch_count): if epoch_count % self.epoch == 0 and epoch_count is not 0: self.std *= 0.9 self.kernel1 = get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=6 ) self.kernel2= get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=16 ) self.kernel3 = get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=120 ) def forward(self, x,return_intermediate=False): output = self.conv1(x) output = self.kernel1(output) output = self.post1(output) output = self.conv2(output) output = self.kernel2(output) output = self.post2(output) output = self.conv3(output) output = self.kernel3(output) if return_intermediate: output = output.view(output.size(0), -1) return output output = self.post5(output) output = output.view(output.size(0), -1) output = self.classifier(output) return output class LeNet5_ACL(LeNet5): def get_new_kernels(self, epoch_count): if epoch_count % self.epoch == 0 and epoch_count is not 0: self.std /= 0.9 self.kernel1 = get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=6 ) self.kernel2= get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=16 ) self.kernel3 = get_gaussian_filter( kernel_size=self.kernel_size, sigma=self.std, channels=120 ) def forward(self, x,return_intermediate=False): output = self.conv1(x) output = self.kernel1(output) output = self.post1(output) output = self.conv2(output) output = self.kernel2(output) output = self.post2(output) output = self.conv3(output) output = self.kernel3(output) if return_intermediate: output = output.view(output.size(0), -1) return output output = self.post5(output) output = output.view(output.size(0), -1) output = self.classifier(output) return output
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(): return render_template('login.html') @app.route('/senha', methods=['POST']) def senha(): senha = request.json.get('senha', None) if senha is None: return { "senha": "" }, 200 password_hash = bcrypt.generate_password_hash(senha).decode('utf-8') return { "senha": password_hash }, 200
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()]) email = EmailField("Email", validators=[InputRequired()]) password = PasswordField("Password", validators=[InputRequired()]) submit = SubmitField("Submit") class LoginForm(BaseForm): name = StringField("User Name or Email", validators=[InputRequired()]) password = PasswordField("Password", validators=[InputRequired()]) submit = SubmitField("Submit") class ConfirmForm(BaseForm): submit = SubmitField("Resend") class ResetPasswordRequestForm(BaseForm): email = EmailField("Email", validators=[InputRequired()]) submit = SubmitField("Submit") class ResetPasswordForm(BaseForm): password = PasswordField("Password", validators=[InputRequired()]) submit = SubmitField("Submit")
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_import import unittest import swagger_client from swagger_client.api.images_api import ImagesApi # noqa: E501 from swagger_client.rest import ApiException class TestImagesApi(unittest.TestCase): """ImagesApi unit test stubs""" def setUp(self): self.api = ImagesApi() # noqa: E501 def tearDown(self): pass def test_cf_manager_rest_api_delete_image(self): """Test case for cf_manager_rest_api_delete_image Delete an image # noqa: E501 """ pass def test_cf_manager_rest_api_get_image_single(self): """Test case for cf_manager_rest_api_get_image_single Get an image # noqa: E501 """ pass def test_cf_manager_rest_api_get_images(self): """Test case for cf_manager_rest_api_get_images Get all images of a user # noqa: E501 """ pass def test_cf_manager_rest_api_post_app_logic(self): """Test case for cf_manager_rest_api_post_app_logic Upload an image of type `app logic` # noqa: E501 """ pass def test_cf_manager_rest_api_post_images(self): """Test case for cf_manager_rest_api_post_images Upload an image # noqa: E501 """ pass if __name__ == '__main__': unittest.main()
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 in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ------------------------------------------------------------------------------ ################################################################################ # LIBRARIES & DEPENDENCIES # ################################################################################ from flask import Flask, jsonify, make_response, request, json import artifact_cli import configparser ################################################################################ # FLASK APP # ################################################################################ app = Flask(__name__) # PING @app.route("/tp/artifact/ping", methods=["GET"]) def get_ping_result(): """ Allows the client side API call to "ping" the port localhost:853 to ensure that the port is up and running. Returns: type: str String representing JSON object which allows the client to know that the call was either a success or a failure. """ output = ret_msg("success", "OK", "EmptyRecord", "Artifact") return output # CREATE @app.route("/tp/artifact", methods=["POST"]) def create_artifact(): """ Allows the client side API call to "create" the artifact given a correct JSON formatted payload. Returns: type: str String representing JSON object which allows the client to know that the call was either a success or a failure. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: if not request.json: return "Expecting JSON Object." output = artifact_cli.api_do_create_artifact(request.json, config) return output except Exception as e: return e # AMEND @app.route("/tp/artifact/amend", methods=["POST"]) def amend_artifact(): """ Allows the client side API call to "amend" the artifact given a correct JSON formatted payload. Returns: type: str String representing JSON object which allows the client to know that the call was either a success or a failure. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: if not request.json: return "Expecting JSON Object." output = artifact_cli.api_do_amend_artifact(request.json, config) return output except Exception as e: return e # LIST @app.route("/tp/artifact", methods=["GET"]) def list_artifact(): """ Allows the client side API call to "list" the artifact. Returns: type: str String representing JSON object which contains the result of the "artifact list-artifact" if the call was a success; else, JSON object which contains error message. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: output = artifact_cli.api_do_list_artifact(config) return output except Exception as e: return e # RETRIEVE MOST RECENT BY UUID @app.route("/tp/artifact/<string:artifact_id>", methods=["GET"]) def retrieve_artifact(artifact_id): """ Allows the client side API call to "retrieve" the artifact. Returns: type: str String representing JSON object which contains the result of the "artifact retrieve {uuid}" if the call was a success; else, JSON object which contains error message. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: output = artifact_cli.api_do_retrieve_artifact(artifact_id, config) return output except Exception as e: return e # RETRIEVE HISTORY OF UUID @app.route("/tp/artifact/history/<string:artifact_id>", methods=["GET"]) def retrieve_artifact_history(artifact_id): """ Allows the client side API call to "retrieve" the artifact and display its history up to its creation block. Returns: type: str String representing JSON object which contains the result of the "artifact retrieve --all {uuid}" if the call was a success; else, JSON object which contains error message. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: output = artifact_cli.api_do_retrieve_artifact( artifact_id, config, all_flag=True ) return output except Exception as e: return e # RETRIEVE UUID ON CERTAIN DATE @app.route( "/tp/artifact/<string:artifact_id>/date/<string:START>", methods=["GET"] ) def retrieve_artifact_history_date(artifact_id, START): """ Allows the client side API call to "retrieve" the artifact and display its history for the specified date. Returns: type: str String representing JSON object which contains the result of the "artifact retrieve --range START END {uuid}" if the call was a success; else, JSON object which contains error message. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: output = artifact_cli.api_do_retrieve_artifact( artifact_id, config, range_flag=["0", START] ) return output except Exception as e: return e # ADD ARTIFACT @app.route("/tp/artifact/addartifact", methods=["POST"]) def add_artifact_artifact(): """ Allows the client side API call to "AddArtifact" to the artifact given a correct JSON formatted payload. Returns: type: str String representing JSON object which allows the client to know that the call was either a success or a failure. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: if not request.json: return "Expecting JSON Object." output = artifact_cli.api_do_add_sub_artifact(request.json, config) return output except Exception as e: return e # ADD ARTIFACT --DELETE @app.route("/tp/artifact/addartifact/delete", methods=["POST"]) def add_artifact_artifact_delete(): """ Allows the client side API call to "AddArtifact --delete" to the artifact given a correct JSON formatted payload. Returns: type: str String representing JSON object which allows the client to know that the call was either a success or a failure. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: if not request.json: return "Expecting JSON Object." output = artifact_cli.api_do_add_sub_artifact( request.json, config, True ) return output except Exception as e: return e # ADD URI @app.route("/tp/artifact/adduri", methods=["POST"]) def add_artifact_uri(): """ Allows the client side API call to "AddURI" to the artifact given a correct JSON formatted payload. Returns: type: str String representing JSON object which allows the client to know that the call was either a success or a failure. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: if not request.json: return "Expecting JSON Object." output = artifact_cli.api_do_add_uri_to_artifact(request.json, config) return output except Exception as e: return e # ADD URI --DELETE @app.route("/tp/artifact/adduri/delete", methods=["POST"]) def add_artifact_uri_delete(): """ Allows the client side API call to "AddURI --delete" to the artifact given a correct JSON formatted payload. Returns: type: str String representing JSON object which allows the client to know that the call was either a success or a failure. Raises: Exception: * If the request does not contain JSON payload """ config = configparser.ConfigParser() config.set("DEFAULT", "url", "http://127.0.0.1:8008") try: if not request.json: return "Expecting JSON Object." output = artifact_cli.api_do_add_uri_to_artifact( request.json, config, True ) return output except Exception as e: return e ################################################################################ # TEST # ################################################################################ # @app.route("/tp/test", methods=["POST"]) # def testing_(): # try: # return json.dumps(request.json) # except Exception as e: # return e # @app.route("/tp/test", methods=["GET"]) # def testing_get(): # try: # return "phyo test get was called successfully" # except Exception as e: # return e ################################################################################ # PRINT # ################################################################################ def ret_msg(status, message, result_type, result): """ Helps create the message to be returned. Returns: type: str String representing JSON object which allows the client to know that the call was either a success or a failure. """ msgJSON = "{}" key = json.loads(msgJSON) key["status"] = status key["message"] = message key["result_type"] = result_type key["result"] = result msgJSON = json.dumps(key) return msgJSON ################################################################################ # MAIN # ################################################################################ if __name__ == "__main__": app.run(host="0.0.0.0", port="853") ################################################################################ # # ################################################################################
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: self.__dict__[key.replace(" ", "_")] = self.__class__(data[key]) else: self.__dict__[key.replace(" ", "_")] = data[key] def __repr__(self) -> str: def recursive(data) -> str: try: __ = "" for key in list(data.__dict__.keys()): if isinstance(data[key], self.__class__): __ += f"{key!r}: " "{" + recursive(data[key]) + "}, " else: __ += f"{key!r}: {data[key]!r}, " return __[:-2] except RecursionError: return "The Data in this class might be to big and because of that a RecursionError occurred" return "{" + recursive(self) + "}" __str__ = __repr__ def __getitem__(self, item): return self.__dict__.__getitem__(item.replace(" ", "_")) def __getattr__(self, item): return self.__getitem__(item) def __setitem__(self, key, value): self.__dict__[key.replace(" ", "_")] = value def __setattr__(self, key, value): return self.__setitem__(key, value) def __contains__(self, item): return self.__dict__.__contains__(item) def __delitem__(self, key): return self.__dict__.__delitem__(key) def __eq__(self, other): return self.__dict__.__eq__(other) def __ge__(self, other): return self.__dict__.__ge__(other) def __gt__(self, other): return self.__dict__.__gt__(other) def __iter__(self): return self.__dict__.__iter__() def __len__(self): return self.__dict__.__len__() def __le__(self, other): return self.__dict__.__le__(other) def __lt__(self, other): return self.__dict__.__lt__(other) def __ne__(self, other): return self.__dict__.__ne__(other) def __reversed__(self): return self.__dict__.__reversed__() def __sizeof__(self): return self.__dict__.__sizeof__() def clear(self) -> None: return self.__dict__.clear() def copy(self) -> Dict[_KT, _VT]: return self.__dict__.copy() def get(self, k: _KT) -> Optional[_VT_co]: return self.__dict__.get(k) def items(self) -> ItemsView[_KT, _VT]: return self.__dict__.items() def keys(self) -> KeysView[_KT]: return self.__dict__.keys() def pop(self, k: _KT) -> _VT: return self.__dict__.pop(k) def popitem(self) -> Tuple[_KT, _VT]: return self.__dict__.popitem() def setdefault(self, k: _KT, default: _VT = ...) -> _VT: return self.__dict__.setdefault(k, default) def update(self, __m: Mapping[_KT, _VT], **kwargs: _VT) -> None: return self.__dict__.update(__m, **kwargs) def values(self) -> ValuesView[_VT]: return self.__dict__.values()
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 LSPMethodProviderMixIn(DocumentProvider, WindowProvider): pass
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, 0x448FCBB7FCB9E309, 0x0325B15E575E1C3D, 0xB00BFDE054F94352, 0x8C71448D0091E255, 0x3F5F08330336BD3A, 0x78F572DAA8D1420E, 0xCBDB3E64AB761D61, 0x7D9BA13851336649, 0xCEB5ED8652943926, 0x891F976FF973C612, 0x3A31DBD1FAD4997D, 0x064B62BCAEBC387A, 0xB5652E02AD1B6715, 0xF2CF54EB06FC9821, 0x41E11855055BC74E, 0x8A3A2631AE2DDA2F, 0x39146A8FAD8A8540, 0x7EBE1066066D7A74, 0xCD905CD805CA251B, 0xF1EAE5B551A2841C, 0x42C4A90B5205DB73, 0x056ED3E2F9E22447, 0xB6409F5CFA457B28, 0xFB374270A266CC92, 0x48190ECEA1C193FD, 0x0FB374270A266CC9, 0xBC9D3899098133A6, 0x80E781F45DE992A1, 0x33C9CD4A5E4ECDCE, 0x7463B7A3F5A932FA, 0xC74DFB1DF60E6D95, 0x0C96C5795D7870F4, 0xBFB889C75EDF2F9B, 0xF812F32EF538D0AF, 0x4B3CBF90F69F8FC0, 0x774606FDA2F72EC7, 0xC4684A43A15071A8, 0x83C230AA0AB78E9C, 0x30EC7C140910D1F3, 0x86ACE348F355AADB, 0x3582AFF6F0F2F5B4, 0x7228D51F5B150A80, 0xC10699A158B255EF, 0xFD7C20CC0CDAF4E8, 0x4E526C720F7DAB87, 0x09F8169BA49A54B3, 0xBAD65A25A73D0BDC, 0x710D64410C4B16BD, 0xC22328FF0FEC49D2, 0x85895216A40BB6E6, 0x36A71EA8A7ACE989, 0x0ADDA7C5F3C4488E, 0xB9F3EB7BF06317E1, 0xFE5991925B84E8D5, 0x4D77DD2C5823B7BA, 0x64B62BCAEBC387A1, 0xD7986774E864D8CE, 0x90321D9D438327FA, 0x231C512340247895, 0x1F66E84E144CD992, 0xAC48A4F017EB86FD, 0xEBE2DE19BC0C79C9, 0x58CC92A7BFAB26A6, 0x9317ACC314DD3BC7, 0x2039E07D177A64A8, 0x67939A94BC9D9B9C, 0xD4BDD62ABF3AC4F3, 0xE8C76F47EB5265F4, 0x5BE923F9E8F53A9B, 0x1C4359104312C5AF, 0xAF6D15AE40B59AC0, 0x192D8AF2BAF0E1E8, 0xAA03C64CB957BE87, 0xEDA9BCA512B041B3, 0x5E87F01B11171EDC, 0x62FD4976457FBFDB, 0xD1D305C846D8E0B4, 0x96797F21ED3F1F80, 0x2557339FEE9840EF, 0xEE8C0DFB45EE5D8E, 0x5DA24145464902E1, 0x1A083BACEDAEFDD5, 0xA9267712EE09A2BA, 0x955CCE7FBA6103BD, 0x267282C1B9C65CD2, 0x61D8F8281221A3E6, 0xD2F6B4961186FC89, 0x9F8169BA49A54B33, 0x2CAF25044A02145C, 0x6B055FEDE1E5EB68, 0xD82B1353E242B407, 0xE451AA3EB62A1500, 0x577FE680B58D4A6F, 0x10D59C691E6AB55B, 0xA3FBD0D71DCDEA34, 0x6820EEB3B6BBF755, 0xDB0EA20DB51CA83A, 0x9CA4D8E41EFB570E, 0x2F8A945A1D5C0861, 0x13F02D374934A966, 0xA0DE61894A93F609, 0xE7741B60E174093D, 0x545A57DEE2D35652, 0xE21AC88218962D7A, 0x5134843C1B317215, 0x169EFED5B0D68D21, 0xA5B0B26BB371D24E, 0x99CA0B06E7197349, 0x2AE447B8E4BE2C26, 0x6D4E3D514F59D312, 0xDE6071EF4CFE8C7D, 0x15BB4F8BE788911C, 0xA6950335E42FCE73, 0xE13F79DC4FC83147, 0x521135624C6F6E28, 0x6E6B8C0F1807CF2F, 0xDD45C0B11BA09040, 0x9AEFBA58B0476F74, 0x29C1F6E6B3E0301B, 0xC96C5795D7870F42, 0x7A421B2BD420502D, 0x3DE861C27FC7AF19, 0x8EC62D7C7C60F076, 0xB2BC941128085171, 0x0192D8AF2BAF0E1E, 0x4638A2468048F12A, 0xF516EEF883EFAE45, 0x3ECDD09C2899B324, 0x8DE39C222B3EEC4B, 0xCA49E6CB80D9137F, 0x7967AA75837E4C10, 0x451D1318D716ED17, 0xF6335FA6D4B1B278, 0xB199254F7F564D4C, 0x02B769F17CF11223, 0xB4F7F6AD86B4690B, 0x07D9BA1385133664, 0x4073C0FA2EF4C950, 0xF35D8C442D53963F, 0xCF273529793B3738, 0x7C0979977A9C6857, 0x3BA3037ED17B9763, 0x888D4FC0D2DCC80C, 0x435671A479AAD56D, 0xF0783D1A7A0D8A02, 0xB7D247F3D1EA7536, 0x04FC0B4DD24D2A59, 0x3886B22086258B5E, 0x8BA8FE9E8582D431, 0xCC0284772E652B05, 0x7F2CC8C92DC2746A, 0x325B15E575E1C3D0, 0x8175595B76469CBF, 0xC6DF23B2DDA1638B, 0x75F16F0CDE063CE4, 0x498BD6618A6E9DE3, 0xFAA59ADF89C9C28C, 0xBD0FE036222E3DB8, 0x0E21AC88218962D7, 0xC5FA92EC8AFF7FB6, 0x76D4DE52895820D9, 0x317EA4BB22BFDFED, 0x8250E80521188082, 0xBE2A516875702185, 0x0D041DD676D77EEA, 0x4AAE673FDD3081DE, 0xF9802B81DE97DEB1, 0x4FC0B4DD24D2A599, 0xFCEEF8632775FAF6, 0xBB44828A8C9205C2, 0x086ACE348F355AAD, 0x34107759DB5DFBAA, 0x873E3BE7D8FAA4C5, 0xC094410E731D5BF1, 0x73BA0DB070BA049E, 0xB86133D4DBCC19FF, 0x0B4F7F6AD86B4690, 0x4CE50583738CB9A4, 0xFFCB493D702BE6CB, 0xC3B1F050244347CC, 0x709FBCEE27E418A3, 0x3735C6078C03E797, 0x841B8AB98FA4B8F8, 0xADDA7C5F3C4488E3, 0x1EF430E13FE3D78C, 0x595E4A08940428B8, 0xEA7006B697A377D7, 0xD60ABFDBC3CBD6D0, 0x6524F365C06C89BF, 0x228E898C6B8B768B, 0x91A0C532682C29E4, 0x5A7BFB56C35A3485, 0xE955B7E8C0FD6BEA, 0xAEFFCD016B1A94DE, 0x1DD181BF68BDCBB1, 0x21AB38D23CD56AB6, 0x9285746C3F7235D9, 0xD52F0E859495CAED, 0x6601423B97329582, 0xD041DD676D77EEAA, 0x636F91D96ED0B1C5, 0x24C5EB30C5374EF1, 0x97EBA78EC690119E, 0xAB911EE392F8B099, 0x18BF525D915FEFF6, 0x5F1528B43AB810C2, 0xEC3B640A391F4FAD, 0x27E05A6E926952CC, 0x94CE16D091CE0DA3, 0xD3646C393A29F297, 0x604A2087398EADF8, 0x5C3099EA6DE60CFF, 0xEF1ED5546E415390, 0xA8B4AFBDC5A6ACA4, 0x1B9AE303C601F3CB, 0x56ED3E2F9E224471, 0xE5C372919D851B1E, 0xA26908783662E42A, 0x114744C635C5BB45, 0x2D3DFDAB61AD1A42, 0x9E13B115620A452D, 0xD9B9CBFCC9EDBA19, 0x6A978742CA4AE576, 0xA14CB926613CF817, 0x1262F598629BA778, 0x55C88F71C97C584C, 0xE6E6C3CFCADB0723, 0xDA9C7AA29EB3A624, 0x69B2361C9D14F94B, 0x2E184CF536F3067F, 0x9D36004B35545910, 0x2B769F17CF112238, 0x9858D3A9CCB67D57, 0xDFF2A94067518263, 0x6CDCE5FE64F6DD0C, 0x50A65C93309E7C0B, 0xE388102D33392364, 0xA4226AC498DEDC50, 0x170C267A9B79833F, 0xDCD7181E300F9E5E, 0x6FF954A033A8C131, 0x28532E49984F3E05, 0x9B7D62F79BE8616A, 0xA707DB9ACF80C06D, 0x14299724CC279F02, 0x5383EDCD67C06036, 0xE0ADA17364673F59, ] def crc64(data: typing.Union[bytes, str]) -> int: if isinstance(data, str): data = data.encode("utf-8") checksum = 0xffffffffffffffff for it in data: checksum = _crc64_constants[(checksum & 0xff) ^ it] ^ (checksum >> 8) return checksum
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 here traits for the credentials and the URL to connect. The example listener does not need any configuration, so it's empty. Note: we don't yet have a UI in place to allow configuration of these parameters, nor to add notification listeners to your execution. For now, the only way for the BDSS to use notification listeners is to modify the workflow file by hand. """ #print("sono in ESNotificationListenerModel") pass
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, 7] """ return np.setxor1d(indices, np.arange(size)) def merge_dicts(*dicts): merged = dict() for d in dicts: merged.update(d) return merged def round_int(X): return np.round(X, 0).astype(np.int64) def value_list(dict_, keys): return [dict_[k] for k in keys] def _is_in_image_range(keypoints, image_shape): height, width = image_shape xs, ys = keypoints[:, 0], keypoints[:, 1] # using this form to accept float coordinates # if width is 200, [0.0, 199.0] is accepted mask_x = np.logical_and(0 <= xs, xs <= width-1) mask_y = np.logical_and(0 <= ys, ys <= height-1) return np.logical_and(mask_x, mask_y) # TODO move this function to 'range.py' or some file of more explicit name @allow_1d(which_argument=0) def is_in_image_range(keypoints, image_shape): """ Accept coordinates in range x <- [0, width-1], y <- [0, height-1] """ # assert(isinstance(image_shape, tuple) or isinstance(image_shape, list)) return _is_in_image_range(keypoints, image_shape[0:2]) def radian_to_degree(radian): return radian / np.pi * 180 def add_noise(descriptors, indices): descriptors = np.copy(descriptors) descriptors[indices] = random_binary((len(indices), descriptors.shape[1])) return descriptors def break_other_than(descriptors, indices): indices_to_break = np.setxor1d(np.arange(len(descriptors)), indices) return add_noise(descriptors, indices_to_break)
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", "libgeoip-dev"] rInstall = {"MAIN": "main", "LB": "sub", "ADMIN": "admin"} rMySQLCnf = "IyBYdHJlYW0gQ29kZXMKCltjbGllbnRdCnBvcnQgICAgICAgICAgICA9IDMzMDYKCltteXNxbGRfc2FmZV0KbmljZSAgICAgICAgICAgID0gMAoKW215c3FsZF0KdXNlciAgICAgICAgICAgID0gbXlzcWwKcG9ydCAgICAgICAgICAgID0gNzk5OQpiYXNlZGlyICAgICAgICAgPSAvdXNyCmRhdGFkaXIgICAgICAgICA9IC92YXIvbGliL215c3FsCnRtcGRpciAgICAgICAgICA9IC90bXAKbGMtbWVzc2FnZXMtZGlyID0gL3Vzci9zaGFyZS9teXNxbApza2lwLWV4dGVybmFsLWxvY2tpbmcKc2tpcC1uYW1lLXJlc29sdmU9MQoKYmluZC1hZGRyZXNzICAgICAgICAgICAgPSAqCmtleV9idWZmZXJfc2l6ZSA9IDEyOE0KCm15aXNhbV9zb3J0X2J1ZmZlcl9zaXplID0gNE0KbWF4X2FsbG93ZWRfcGFja2V0ICAgICAgPSA2NE0KbXlpc2FtLXJlY292ZXItb3B0aW9ucyA9IEJBQ0tVUAptYXhfbGVuZ3RoX2Zvcl9zb3J0X2RhdGEgPSA4MTkyCnF1ZXJ5X2NhY2hlX2xpbWl0ICAgICAgID0gNE0KcXVlcnlfY2FjaGVfc2l6ZSAgICAgICAgPSAyNTZNCgoKZXhwaXJlX2xvZ3NfZGF5cyAgICAgICAgPSAxMAptYXhfYmlubG9nX3NpemUgICAgICAgICA9IDEwME0KCm1heF9jb25uZWN0aW9ucyAgPSAyMDAwMApiYWNrX2xvZyA9IDQwOTYKb3Blbl9maWxlc19saW1pdCA9IDIwMjQwCmlubm9kYl9vcGVuX2ZpbGVzID0gMjAyNDAKbWF4X2Nvbm5lY3RfZXJyb3JzID0gMzA3Mgp0YWJsZV9vcGVuX2NhY2hlID0gNDA5Ngp0YWJsZV9kZWZpbml0aW9uX2NhY2hlID0gNDA5NgoKCnRtcF90YWJsZV9zaXplID0gMUcKbWF4X2hlYXBfdGFibGVfc2l6ZSA9IDFHCgppbm5vZGJfYnVmZmVyX3Bvb2xfc2l6ZSA9IDEwRwppbm5vZGJfYnVmZmVyX3Bvb2xfaW5zdGFuY2VzID0gMTAKaW5ub2RiX3JlYWRfaW9fdGhyZWFkcyA9IDY0Cmlubm9kYl93cml0ZV9pb190aHJlYWRzID0gNjQKaW5ub2RiX3RocmVhZF9jb25jdXJyZW5jeSA9IDAKaW5ub2RiX2ZsdXNoX2xvZ19hdF90cnhfY29tbWl0ID0gMAppbm5vZGJfZmx1c2hfbWV0aG9kID0gT19ESVJFQ1QKcGVyZm9ybWFuY2Vfc2NoZW1hID0gMAppbm5vZGItZmlsZS1wZXItdGFibGUgPSAxCmlubm9kYl9pb19jYXBhY2l0eT0yMDAwMAppbm5vZGJfdGFibGVfbG9ja3MgPSAwCmlubm9kYl9sb2NrX3dhaXRfdGltZW91dCA9IDAKaW5ub2RiX2RlYWRsb2NrX2RldGVjdCA9IDAKCgpzcWwtbW9kZT0iTk9fRU5HSU5FX1NVQlNUSVRVVElPTiIKCltteXNxbGR1bXBdCnF1aWNrCnF1b3RlLW5hbWVzCm1heF9hbGxvd2VkX3BhY2tldCAgICAgID0gMTZNCgpbbXlzcWxdCgpbaXNhbWNoa10Ka2V5X2J1ZmZlcl9zaXplICAgICAgICAgICAgICA9IDE2TQo=".decode("base64") class col: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def generate(length=16): return ''.join(random.choice(string.ascii_letters + string.digits) for i in range(length)) def getIP(): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80)) return s.getsockname()[0] def getVersion(): try: return subprocess.check_output("lsb_release -d".split()).split(":")[-1].strip() except: return "" def printc(rText, rColour=col.OKBLUE, rPadding=0): print "%s ┌──────────────────────────────────────────┐ %s" % (rColour, col.ENDC) for i in range(rPadding): print "%s │ │ %s" % (rColour, col.ENDC) print "%s │ %s%s%s │ %s" % (rColour, " "*(20-(len(rText)/2)), rText, " "*(40-(20-(len(rText)/2))-len(rText)), col.ENDC) for i in range(rPadding): print "%s │ │ %s" % (rColour, col.ENDC) print "%s └──────────────────────────────────────────┘ %s" % (rColour, col.ENDC) print " " def prepare(rType="MAIN"): global rPackages if rType <> "MAIN": rPackages = rPackages[:-1] printc("Preparing Installation") for rFile in ["/var/lib/dpkg/lock-frontend", "/var/cache/apt/archives/lock", "/var/lib/dpkg/lock"]: try: os.remove(rFile) except: pass os.system("apt-get update > /dev/null") printc("Removing libcurl4 if installed") os.system("apt-get remove --auto-remove libcurl4 -y > /dev/null") for rPackage in rPackages: printc("Installing %s" % rPackage) os.system("apt-get install %s -y > /dev/null" % rPackage) printc("Installing libpng") os.system("wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb") os.system("dpkg -i /tmp/libpng12.deb > /dev/null") os.system("apt-get install -y > /dev/null") # Clean up above try: os.remove("/tmp/libpng12.deb") except: pass try: subprocess.check_output("getent passwd xtreamcodes > /dev/null".split()) except: # Create User printc("Creating user xtreamcodes") os.system("adduser --system --shell /bin/false --group --disabled-login xtreamcodes > /dev/null") if not os.path.exists("/home/xtreamcodes"): os.mkdir("/home/xtreamcodes") return True def install(rType="MAIN"): global rInstall, rDownloadURL printc("Downloading Software") try: rURL = rDownloadURL % rInstall[rType] except: printc("Invalid download URL!", col.FAIL) return False os.system('wget -q -O "/tmp/xtreamcodes.tar.gz" "%s"' % rURL) if os.path.exists("/tmp/xtreamcodes.tar.gz"): printc("Installing Software") os.system('tar -zxvf "/tmp/xtreamcodes.tar.gz" -C "/home/xtreamcodes/" > /dev/null') try: os.remove("/tmp/xtreamcodes.tar.gz") except: pass return True printc("Failed to download installation file!", col.FAIL) return False def mysql(rUsername, rPassword): global rMySQLCnf printc("Configuring MySQL") rCreate = True if os.path.exists("/etc/mysql/my.cnf"): if open("/etc/mysql/my.cnf", "r").read(14) == "# Xtream Codes": rCreate = False if rCreate: shutil.copy("/etc/mysql/my.cnf", "/etc/mysql/my.cnf.xc") rFile = open("/etc/mysql/my.cnf", "w") rFile.write(rMySQLCnf) rFile.close() os.system("service mysql restart > /dev/null") printc("Enter MySQL Root Password:", col.WARNING) for i in range(5): rMySQLRoot = raw_input(" ") print " " if len(rMySQLRoot) > 0: rExtra = " -p%s" % rMySQLRoot else: rExtra = "" printc("Drop existing & create database? Y/N", col.WARNING) if raw_input(" ").upper() == "Y": rDrop = True else: rDrop = False try: if rDrop: os.system('mysql -u root%s -e "DROP DATABASE IF EXISTS xtream_iptvpro; CREATE DATABASE IF NOT EXISTS xtream_iptvpro;" > /dev/null' % rExtra) os.system("mysql -u root%s xtream_iptvpro < /home/xtreamcodes/iptv_xtream_codes/database.sql > /dev/null" % rExtra) os.system('mysql -u root%s -e "USE xtream_iptvpro; UPDATE settings SET live_streaming_pass = \'%s\', unique_id = \'%s\', crypt_load_balancing = \'%s\';" > /dev/null' % (rExtra, generate(20), generate(10), generate(20))) os.system('mysql -u root%s -e "USE xtream_iptvpro; REPLACE INTO streaming_servers (id, server_name, domain_name, server_ip, vpn_ip, ssh_password, ssh_port, diff_time_main, http_broadcast_port, total_clients, system_os, network_interface, latency, status, enable_geoip, geoip_countries, last_check_ago, can_delete, server_hardware, total_services, persistent_connections, rtmp_port, geoip_type, isp_names, isp_type, enable_isp, boost_fpm, http_ports_add, network_guaranteed_speed, https_broadcast_port, https_ports_add, whitelist_ips, watchdog_data, timeshift_only) VALUES (1, \'Main Server\', \'\', \'%s\', \'\', NULL, NULL, 0, 25461, 1000, \'%s\', \'eth0\', 0, 1, 0, \'\', 0, 0, \'{}\', 3, 0, 25462, \'low_priority\', \'\', \'low_priority\', 0, 1, \'\', 1000, 25463, \'\', \'[\"127.0.0.1\",\"\"]\', \'{}\', 0);" > /dev/null' % (rExtra, getIP(), getVersion())) os.system('mysql -u root%s -e "USE xtream_iptvpro; REPLACE INTO reg_users (id, username, password, email, member_group_id, verified, status) VALUES (1, \'admin\', \'\$6\$rounds=20000\$xtreamcodes\$XThC5OwfuS0YwS4ahiifzF14vkGbGsFF1w7ETL4sRRC5sOrAWCjWvQJDromZUQoQuwbAXAFdX3h3Cp3vqulpS0\', \'admin@website.com\', 1, 1, 1);" > /dev/null' % rExtra) os.system('mysql -u root%s -e "GRANT ALL PRIVILEGES ON *.* TO \'%s\'@\'%%\' IDENTIFIED BY \'%s\' WITH GRANT OPTION; FLUSH PRIVILEGES;" > /dev/null' % (rExtra, rUsername, rPassword)) try: os.remove("/home/xtreamcodes/iptv_xtream_codes/database.sql") except: pass return True except: printc("Invalid password! Try again", col.FAIL) return False def encrypt(rHost="127.0.0.1", rUsername="user_iptvpro", rPassword="", rDatabase="xtream_iptvpro", rServerID=1, rPort=7999): printc("Encrypting...") try: os.remove("/home/xtreamcodes/iptv_xtream_codes/config") except: pass rf = open('/home/xtreamcodes/iptv_xtream_codes/config', 'wb') rf.write(''.join(chr(ord(c)^ord(k)) for c,k in izip('{\"host\":\"%s\",\"db_user\":\"%s\",\"db_pass\":\"%s\",\"db_name\":\"%s\",\"server_id\":\"%d\", \"db_port\":\"%d\"}' % (rHost, rUsername, rPassword, rDatabase, rServerID, rPort), cycle('5709650b0d7806074842c6de575025b1'))).encode('base64').replace('\n', '')) rf.close() def configure(): printc("Configuring System") if not "/home/xtreamcodes/iptv_xtream_codes/" in open("/etc/fstab").read(): rFile = open("/etc/fstab", "a") rFile.write("tmpfs /home/xtreamcodes/iptv_xtream_codes/streams tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=90% 0 0\ntmpfs /home/xtreamcodes/iptv_xtream_codes/tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=2G 0 0") rFile.close() if not "xtreamcodes" in open("/etc/sudoers").read(): os.system('echo "xtreamcodes ALL = (root) NOPASSWD: /sbin/iptables" >> /etc/sudoers') if not os.path.exists("/etc/init.d/xtreamcodes"): rFile = open("/etc/init.d/xtreamcodes", "w") rFile.write("#! /bin/bash\n/home/xtreamcodes/iptv_xtream_codes/start_services.sh") rFile.close() os.system("chmod +x /etc/init.d/xtreamcodes > /dev/null") try: os.remove("/usr/bin/ffmpeg") except: pass os.system("ln -s /home/xtreamcodes/iptv_xtream_codes/bin/ffmpeg /usr/bin/") os.system("chown xtreamcodes:xtreamcodes -R /home/xtreamcodes > /dev/null") os.system("chmod -R 0777 /home/xtreamcodes > /dev/null") os.system("chmod +x /home/xtreamcodes/iptv_xtream_codes/start_services.sh > /dev/null") if not "xtream-codes.com" in open("/etc/hosts").read(): os.system('echo "127.0.0.1 api.xtream-codes.com" >> /etc/hosts') os.system('echo "127.0.0.1 xtream-codes.com" >> /etc/hosts') def start(first=True): if first: printc("Starting Xtream Codes") else: printc("Restarting Xtream Codes") os.system("/home/xtreamcodes/iptv_xtream_codes/start_services.sh > /dev/null") def modifyNginx(): printc("Modifying Nginx") rPath = "/home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf" rPrevData = open(rPath, "r").read() if not "listen 25500;" in rPrevData: shutil.copy(rPath, "%s.xc" % rPath) rData = "}".join(rPrevData.split("}")[:-1]) + " server {\n listen 25500;\n index index.php index.html index.htm;\n root /home/xtreamcodes/iptv_xtream_codes/admin/;\n\n location ~ \.php$ {\n limit_req zone=one burst=8;\n try_files $uri =404;\n fastcgi_index index.php;\n fastcgi_pass php;\n include fastcgi_params;\n fastcgi_buffering on;\n fastcgi_buffers 96 32k;\n fastcgi_buffer_size 32k;\n fastcgi_max_temp_file_size 0;\n fastcgi_keep_conn on;\n fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n fastcgi_param SCRIPT_NAME $fastcgi_script_name;\n }\n }\n}" rFile = open(rPath, "w") rFile.write(rData) rFile.close() if __name__ == "__main__": printc("Xtream Codes Reborn BETA - Installer", col.OKGREEN, 2) rType = raw_input(" Installation Type [MAIN, LB, ADMIN]: ") print " " if rType.upper() in ["MAIN", "LB"]: if rType.upper() == "LB": rHost = raw_input(" Main Server IP Address: ") rPassword = raw_input(" MySQL Password: ") try: rServerID = int(raw_input(" Load Balancer Server ID: ")) except: rServerID = -1 print " " else: rHost = "127.0.0.1" rPassword = generate() rServerID = 1 rUsername = "user_iptvpro" rDatabase = "xtream_iptvpro" rPort = 7999 if len(rHost) > 0 and len(rPassword) > 0 and rServerID > -1: printc("Start installation? Y/N", col.WARNING) if raw_input(" ").upper() == "Y": print " " rRet = prepare(rType.upper()) if not install(rType.upper()): sys.exit(1) if rType.upper() == "MAIN": if not mysql(rUsername, rPassword): sys.exit(1) encrypt(rHost, rUsername, rPassword, rDatabase, rServerID, rPort) configure() start() printc("Installation completed!", col.OKGREEN, 2) if rType.upper() == "MAIN": printc("Please store your MySQL password!") printc(rPassword) else: printc("Installation cancelled", col.FAIL) else: printc("Invalid entries", col.FAIL) elif rType.upper() == "ADMIN": if os.path.exists("/home/xtreamcodes/iptv_xtream_codes/wwwdir/api.php"): printc("Install Admin Panel?", col.WARNING) if raw_input(" ").upper() == "Y": if not install(rType.upper()): sys.exit(1) modifyNginx() printc("Installation completed!", col.OKGREEN, 2) start(False) printc("Admin UI: http://%s:25500" % getIP()) else: printc("Install Xtream Codes Main first!", col.FAIL) else: printc("Invalid installation type", col.FAIL)
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_rows(self): return list(self.rows)
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) return data def postagging(self, data, type, master=''): for data_item in data['vectors']: data_item = self.postagging_item(data_item=data_item, type=type) return data def stopwords(self, data, params, type, master=''): for data_item in data['vectors']: data_item = self.stopwords_item(data_item=data_item, params=params, type=type) return data def keywords(self, data, params, type, master=''): for data_item in data['vectors']: data_item = self.keywords_item(data_item=data_item, params=params, type=type) return data
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): return "Customer (who goes from floor " + str(self.start_floor) + " to " + str(self.destination_floor) + ")"
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 source_url(): return 'http://my-url.com' @pytest.fixture def dir_service(tmpdir): return DirectoryService(str(tmpdir)) @pytest.fixture def image_service(dir_service, source_url): return ImagesService(dir_service, MagicMock(), source_url) @pytest.fixture def styles_service(dir_service, source_url): return StylesService(dir_service, MagicMock(), source_url) @pytest.fixture def scripts_service(dir_service, source_url): return ScriptsService(dir_service, MagicMock(), source_url)
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 short, Affine ciphers are encoded by the following formula for each character in the plaintext: `C ≡ aP + b (mod 26)` where `a` and `b` are constants, `C` is the ciphertext letter, and `P` is the plaintext letter. In this case, the letter "a" has the value of 0, "b" 1, and so on and so forth. If you want a hint as to how to decode: Decoding is done in the same fashion as encoding: P ≡ aC + b In order to rank your decodings in terms of accuracy, I recommend you use a dictionary of some sort (builtin, or the popular [enable1.txt](http://norvig.com/ngrams/enable1.txt) -- note that enable1 lacks "i" and "a" as words). You can choose to not use a dictionary, but it will likely be harder. Here's a sample of encoding, done with simple numbers (`a = 3, b = 2`) **N.B. This is done with the letters a-z mapped to 1-26 (26≡0) instead of 0-25. This still is correct, just not the exact result you'd expect from following the method I've established previously.** `foobar` First, we express our input numerically `6, 15, 15, 2, 0, 18` Then we multiply by `a` `18, 45, 45, 12, 0, 54` Optionally reduce to least positive residue `18, 19, 19, 12, 0, 2` Add `b` `20, 21, 21, 18, 2, 4` Now we change this to text again `tyyrbd` #Formal Inputs & Outputs ##Input description Input will be words separated by spaces or newlines. Input will be in uppercase if need be (i.e. if you can't figure out a way to handle mixed cases), but if not, it will be provided in regular text (e.g. `Lorum ipsum ... word`). Expect only alphabetical characters. With reference to my previous equation, `a` will *only* be a number coprime with 26. Hint: that is, a will be one of the following: 3, 5, 7, 11, 15, 17, 19, 21, 23, or 25 ##Output description What your program thinks is the correct decoding, in lowercase if you only took uppercase input, else in the same case as you were given. You may give multiple outputs if there is a "tie" in your scoring, that is, if your program deemed two or more decodings to be correct. #Test Cases **Test Case 1:** NLWC WC M NECN this is a test **Test Case 2:** YEQ LKCV BDK XCGK EZ BDK UEXLVM QPLQGWSKMB you lead the race of the worlds unluckiest **Test Case 2 Bonus:** Yeq lkcv bdk xcgk ez bdk uexlv'm qplqgwskmb. You lead the race of the world's unluckiest. **Test Case 3:** NH WRTEQ TFWRX TGY T YEZVXH GJNMGRXX STPGX NH XRGXR TX QWZJDW ZK WRNUZFB P WTY YEJGB ZE RNSQPRY XZNR YJUU ZSPTQR QZ QWR YETPGX ZGR NPGJQR STXQ TGY URQWR VTEYX WTY XJGB my heart aches and a drowsy numbness pains my sense as though of hemlock i had drunk or emptied some dull opiate to the drains one minute past and lethe wards had sunk **Test Case 3 Bonus:** Nh wrteq tfwrx, tgy t yezvxh gjnmgrxx stpgx / Nh xrgxr, tx qwzjdw zk wrnuzfb p wty yejgb, / Ze rnsqpry xznr yjuu zsptqr qz qwr yetpgx / Zgr npgjqr stxq, tgy Urqwr-vteyx wty xjgb. My heart aches, and a drowsy numbness pains / My sense, as though of hemlock I had drunk, / Or emptied some dull opiate to the drains / One minute past, and Lethe-wards had sunk. #Bonus Make your solver work for all forms of input, not just alphabetical and make your output match the input. I think it goes without saying that this challenge is for the English language, but if you want to, make this program for another language or compatible with English and another. If you want another challenge, optimize your code for run-time (I'd be interested to see submissions in this category). # Credit This challenge was submitted by /u/Cole_from_SE, many thanks! Have a good challenge idea? Consider submitting it to /r/dailyprogrammer_ideas """ def main(): pass if __name__ == "__main__": main()
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(db.Integer, primary_key=True) email = db.Column(db.String(50), unique=True, nullable = False) password = db.Column(db.String(50), nullable = False) name = db.Column(db.String(50), nullable = False) notes=db.relationship("Note")
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