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
47809d65f9b6492472bef06377ad2f44a10c127c
1,742
py
Python
motto/core.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
motto/core.py
attakei/jamproject
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
1
2020-01-05T14:04:35.000Z
2020-01-05T14:04:35.000Z
motto/core.py
attakei/motto
f3a677f4f95c112b89fb38957e6ba1a3c923ea85
[ "Apache-2.0" ]
null
null
null
"""Core classes for motto """ from typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple, Union from typing_extensions import Protocol, TypedDict class Message(object): """Reporting message class. This object is appended for paragraphes by skills. Responsibility is only telling event "what" ...
22.050633
78
0.588978
204
1,742
4.838235
0.372549
0.042553
0.033435
0.024316
0.12766
0.101317
0.101317
0.048632
0
0
0
0.0048
0.282434
1,742
78
79
22.333333
0.7848
0.161883
0
0.2
0
0
0.050969
0
0
0
0
0
0
1
0.225
false
0
0.05
0.075
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4785cd8056f1f3e45758e79a377162fd96261ea3
6,450
py
Python
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
folder_tree/migrations/0001_initial.py
JoenyBui/django-folder-tree
a742f3d69ad01f5403ce43578240a6cc54fa6956
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-13 22:10 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import folder_tree.models import mptt.fields class Migration(migrations.Migration): initial ...
47.426471
332
0.582171
658
6,450
5.553191
0.214286
0.028462
0.045977
0.07225
0.749589
0.741379
0.697865
0.643131
0.6185
0.585112
0
0.013768
0.268062
6,450
135
333
47.777778
0.76022
0.010543
0
0.629921
1
0
0.110989
0.028688
0
0
0
0
0
1
0
false
0
0.047244
0
0.07874
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
479004b6cfb780abc09aa80bc0894ff64e48376b
182
py
Python
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
extra_tests/snippets/stdlib_types.py
mainsail-org/RustPython
5d2d87c24f1ff7201fcc8d4fcffadb0ec12dc127
[ "CC-BY-4.0", "MIT" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
import types from testutils import assert_raises ns = types.SimpleNamespace(a=2, b='Rust') assert ns.a == 2 assert ns.b == "Rust" with assert_raises(AttributeError): _ = ns.c
16.545455
41
0.714286
28
182
4.535714
0.535714
0.188976
0
0
0
0
0
0
0
0
0
0.013158
0.164835
182
10
42
18.2
0.822368
0
0
0
0
0
0.043956
0
0
0
0
0
0.571429
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
4790afe07c99445354df0a84235383f75387a69b
2,164
py
Python
selene/common/delegation.py
KalinkinaMaria/selene
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
[ "MIT" ]
null
null
null
selene/common/delegation.py
KalinkinaMaria/selene
859e1102c85740b52af8d0f08dd6b6490b4bd2ff
[ "MIT" ]
1
2021-06-02T04:21:17.000Z
2021-06-02T04:21:17.000Z
selene/common/delegation.py
vkarpenko/selene
4776357430c940be38f38be9981006dd156f9730
[ "MIT" ]
null
null
null
from abc import ABCMeta def _make_delegator_method(name): def delegator(self, *args, **kwargs): return getattr(self.__delegate__, name)(*args, **kwargs) # pragma: no cover # todo: consider using __call__() instead of __delegate__ # in Python delegates are objects with __call__ method.. ...
34.903226
119
0.657116
259
2,164
5.150579
0.320463
0.058471
0.056972
0.051724
0.431034
0.330585
0.261619
0.207646
0.207646
0.207646
0
0
0.257856
2,164
61
120
35.47541
0.830635
0.351201
0
0.153846
0
0
0
0
0
0
0
0.016393
0
1
0.192308
false
0
0.038462
0.115385
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
1
0
0
0
2
47928a4b5a14d921593fc3e938a7ef189730aea5
186
py
Python
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
src/pymystem_example1.py
componavt/neural_synset
b58f03af90af6fe2ffe8253a1222c99c2b8907df
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from pymystem3 import Mystem # text = "some good newses" text = "Красивая мама красиво мыла раму" m = Mystem() lemmas = m.lemmatize(text) print(''.join(lemmas))
20.666667
40
0.677419
26
186
4.846154
0.807692
0
0
0
0
0
0
0
0
0
0
0.012821
0.16129
186
8
41
23.25
0.794872
0.252688
0
0
0
0
0.227941
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4799c59de86fb0c7aac927367ccd22e4581ad71b
905
py
Python
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
star_types/parameters.py
annalieNK/star-types
194ffa6f03db175ae8ac6fbc912bb8a45c52cbfe
[ "MIT" ]
null
null
null
def parameters(model_type): if model_type == 'random forest': param_grid = { 'classifier__estimator__n_estimators': [50, 100], 'classifier__estimator__max_features' :['sqrt', 'log2'], 'classifier__estimator__max_depth' : [4,6,8] } elif model_type == 'logistic...
36.2
69
0.581215
90
905
5.288889
0.5
0.359244
0.159664
0.235294
0.268908
0.147059
0.147059
0.147059
0.147059
0.147059
0
0.037736
0.297238
905
25
70
36.2
0.710692
0
0
0.173913
0
0
0.408389
0.30574
0
0
0
0
0
1
0.043478
false
0
0
0
0.086957
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
0
0
0
0
0
0
2
479c044c04a29437935975e735d0a42de577c613
1,866
py
Python
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
1
2022-01-25T16:36:28.000Z
2022-01-25T16:36:28.000Z
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
null
null
null
Square_Lattice/obs.py
suron-003/Dynamic-Structure-Factor
908ebcd8e6db5c6bf19a3a782c3b0a4b97a35f8b
[ "MIT" ]
null
null
null
import numpy as np from numpy import random, linspace, cos, pi import math import random import matplotlib.pyplot as plt from scipy.fft import fft, fftfreq from scipy.fft import rfft, rfftfreq import copy from mpl_toolkits.mplot3d import axes3d from mpl_toolkits import mplot3d from plotly import __version__ import pand...
30.096774
203
0.633976
382
1,866
3.065445
0.251309
0.029035
0.025619
0.034159
0.199829
0.199829
0.167378
0.140051
0.095645
0.095645
0
0.065147
0.177385
1,866
62
204
30.096774
0.69772
0
0
0.172414
0
0
0
0
0
0
0
0
0
1
0.034483
false
0
0.465517
0
0.534483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
47ab86e8093f2c1a626207ebde134e3527326fd9
659
py
Python
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
1
2020-07-23T08:48:50.000Z
2020-07-23T08:48:50.000Z
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
6
2020-02-11T23:38:13.000Z
2022-02-10T07:28:07.000Z
mwasurveyweb/templatetags/template_filters.py
tjgalvin/SS18B-NHurleyWalker
81b1bbb9e7131a92804b0dbddac795217b524160
[ "MIT" ]
1
2020-07-23T09:01:29.000Z
2020-07-23T09:01:29.000Z
""" Distributed under the MIT License. See LICENSE.txt for more info. """ from django import template register = template.Library() @register.filter def get_item(dictionary, key): """ Returns the object for that key from a dictionary. :param dictionary: A dictionary object :param key: Key to search ...
22.724138
65
0.704097
89
659
5.101124
0.483146
0.061674
0.07489
0
0
0
0
0
0
0
0
0
0.212443
659
28
66
23.535714
0.874759
0.534143
0
0.25
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
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
47e9940c13fbcbe44daf1d6db6129df93471f1e5
2,965
py
Python
scripts/ch4_correlation_plot.py
mathkann/understanding-random-forests
d2c5e0174d1a778be37a495083d756b2829160ec
[ "BSD-3-Clause" ]
353
2015-01-03T13:34:03.000Z
2022-03-25T05:16:30.000Z
scripts/ch4_correlation_plot.py
mathkann/understanding-random-forests
d2c5e0174d1a778be37a495083d756b2829160ec
[ "BSD-3-Clause" ]
1
2016-06-29T05:43:41.000Z
2016-06-29T05:43:41.000Z
scripts/ch4_correlation_plot.py
mathkann/understanding-random-forests
d2c5e0174d1a778be37a495083d756b2829160ec
[ "BSD-3-Clause" ]
153
2015-01-14T03:46:42.000Z
2021-12-26T10:13:51.000Z
import numpy as np import matplotlib.pyplot as plt import pandas as pd blue = (0, 0, 1.0) green = (0, 0.8, 0) red = (1.0, 0, 0) red_alpha = (1.0, 0, 0, 0.001) gray = (0.7, 0.7, 0.7) results = [[],[], ["RandomForestRegressor-K=1",3.527128,2.820386,0.706743,0.063868,0.009973,0.286104,0.420639], ["RandomForestRegressor-...
57.019231
117
0.725801
553
2,965
3.858951
0.352622
0.087629
0.037488
0.067479
0.208997
0.208997
0.208997
0.148079
0.144799
0.075914
0
0.376379
0.051939
2,965
51
118
58.137255
0.382782
0
0
0.044444
0
0
0.187521
0.162563
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
47e9c55cbdb85ad05b1bd86a08b95251624c0eb6
4,029
py
Python
Run_Vfree-Synthetic_Flat.py
Fernandez-Trincado/DataReductionPy
f06eb975067dc80cac038a47d3b9a9dde43bfdb6
[ "FSFAP" ]
1
2020-01-25T06:28:40.000Z
2020-01-25T06:28:40.000Z
Run_Vfree-Synthetic_Flat.py
Fernandez-Trincado/DataReductionPy
f06eb975067dc80cac038a47d3b9a9dde43bfdb6
[ "FSFAP" ]
null
null
null
Run_Vfree-Synthetic_Flat.py
Fernandez-Trincado/DataReductionPy
f06eb975067dc80cac038a47d3b9a9dde43bfdb6
[ "FSFAP" ]
null
null
null
#!/usr/bin/python # Created by: Jose G. Fernandez Trincado # Date: 2013 June 28 # Program: This program correct the imagen .fit (Science) by Syntethic Flat # 1 m Reflector telescope, National Astronomical Observatory of Venezuela # Mode f/5, 21 arcmin x 21 arcmin # Project: Omega Centauri, Tidal Tails. # The program ...
28.778571
150
0.70489
599
4,029
4.651085
0.360601
0.139986
0.237976
0.025844
0.128141
0.089375
0.0542
0.031228
0.031228
0
0
0.021283
0.125341
4,029
139
151
28.985612
0.769296
0.231571
0
0.075949
0
0
0.235218
0.148473
0
0
0
0
0
0
null
null
0.012658
0.063291
null
null
0.088608
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
47e9dce96f4661d34f10811dc840595ffed5833b
829
py
Python
abing/backend/abing/models/feature.py
dohyungp/abitrary
4dc3f4c79a433a2debe1f1e151d00400a2225e9c
[ "MIT" ]
5
2020-12-04T14:15:26.000Z
2020-12-30T09:11:09.000Z
abing/backend/abing/models/feature.py
dohyungp/abitrary
4dc3f4c79a433a2debe1f1e151d00400a2225e9c
[ "MIT" ]
8
2020-12-20T16:33:30.000Z
2021-01-06T01:56:55.000Z
abing/backend/abing/models/feature.py
dohyungp/abitrary
4dc3f4c79a433a2debe1f1e151d00400a2225e9c
[ "MIT" ]
1
2021-01-06T15:25:19.000Z
2021-01-06T15:25:19.000Z
from typing import TYPE_CHECKING from sqlalchemy import Column, Integer, String, Boolean, DateTime, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.sql import func from abing.db.base_class import Base if TYPE_CHECKING: from .arm import Arm # noqa: F401 class Feature(Base): __tablename_...
30.703704
79
0.731001
105
829
5.638095
0.466667
0.070946
0.054054
0.087838
0.155405
0.155405
0.155405
0.155405
0
0
0
0.008646
0.162847
829
26
80
31.884615
0.84438
0.012063
0
0
0
0
0.031824
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.842105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
47ee5fdbd7a2fd709f968f5597836efd8e182df3
207
py
Python
software/test/sample.py
technovus-sfu/swarmbots
6a50193a78056c0359c426b097b96e1c37678a55
[ "MIT" ]
null
null
null
software/test/sample.py
technovus-sfu/swarmbots
6a50193a78056c0359c426b097b96e1c37678a55
[ "MIT" ]
3
2018-02-05T23:21:02.000Z
2018-05-03T02:58:50.000Z
software/test/sample.py
technovus-sfu/swarmbots
6a50193a78056c0359c426b097b96e1c37678a55
[ "MIT" ]
null
null
null
# print("Hello World!") # sum = 2 + 2 # print(sum) # for i in range(10,-10,-1): # if i % 2 == 0: # print(i) # else: # pass # while(1): # val = input("Enter ") # print(val)
13.8
28
0.434783
30
207
3
0.633333
0
0
0
0
0
0
0
0
0
0
0.074627
0.352657
207
14
29
14.785714
0.597015
0.874396
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
47f07bbd0388ba3dd47eb8f252a382985372ec31
548
py
Python
CursoemVideoPython/Desafio 34.py
Beebruna/Python
bdbe10ea76acca1b417f5960db0aae8be44e0af3
[ "MIT" ]
null
null
null
CursoemVideoPython/Desafio 34.py
Beebruna/Python
bdbe10ea76acca1b417f5960db0aae8be44e0af3
[ "MIT" ]
null
null
null
CursoemVideoPython/Desafio 34.py
Beebruna/Python
bdbe10ea76acca1b417f5960db0aae8be44e0af3
[ "MIT" ]
null
null
null
''' Escreva um programa que pergunte o salário de um funcionário e calcule o valor do seu aumento. Para salários superiores a R$1.250,00, calcule um aumento de 10% Para os inferiores ou iguais, o aumento é de 15%. ''' salario = float(input('Digite o salário: R$ ')) if salario < 0: print('Valor inválido!') else: ...
34.25
99
0.669708
96
548
3.822917
0.458333
0.108992
0.038147
0.076294
0.310627
0.310627
0.310627
0.310627
0.158038
0
0
0.062356
0.209854
548
16
99
34.25
0.785219
0.381387
0
0.25
0
0.25
0.584337
0
0
0
0
0
0
1
0
false
0.25
0
0
0
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
9a07ac994b1953108c37e98bccdd7052124320ff
1,192
py
Python
src/holocron/_processors/import_processors.py
ikalnytskyi/holocron
f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3
[ "BSD-3-Clause" ]
6
2016-11-27T11:53:18.000Z
2021-02-08T00:37:59.000Z
src/holocron/_processors/import_processors.py
ikalnytskyi/holocron
f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3
[ "BSD-3-Clause" ]
25
2017-04-12T15:27:55.000Z
2022-01-21T23:37:37.000Z
src/holocron/_processors/import_processors.py
ikalnytskyi/holocron
f0bda50f1aab7d1013fac5bd8fb01f7ebeb7bdc3
[ "BSD-3-Clause" ]
1
2020-11-15T17:49:36.000Z
2020-11-15T17:49:36.000Z
"""Import processors from 3rd party sources.""" import contextlib import sys import pkg_resources from ._misc import parameters @parameters( jsonschema={ "type": "object", "properties": { "imports": {"type": "array", "items": {"type": "string"}}, "from_": {"type": "strin...
29.073171
79
0.64849
141
1,192
5.375887
0.58156
0.047493
0.047493
0
0
0
0
0
0
0
0
0.003348
0.248322
1,192
40
80
29.8
0.842634
0.282718
0
0
0
0
0.087574
0
0
0
0
0
0
1
0.08
false
0.08
0.32
0
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
9a1e2ae93bc1197259db93644405545d0b6670ce
1,100
py
Python
src/chatty/auth/auth.py
CITIZENSHIP-CHATTY/backend
8982a0f3cff8ba2efe6a903bb4ab47f9c6044487
[ "MIT" ]
null
null
null
src/chatty/auth/auth.py
CITIZENSHIP-CHATTY/backend
8982a0f3cff8ba2efe6a903bb4ab47f9c6044487
[ "MIT" ]
4
2020-04-19T09:25:46.000Z
2020-05-07T20:20:04.000Z
src/chatty/auth/auth.py
CITIZENSHIP-CHATTY/backend
8982a0f3cff8ba2efe6a903bb4ab47f9c6044487
[ "MIT" ]
null
null
null
from chatty import utils from aiohttp import web from chatty.auth.models import User async def registration(request): auth_data = await request.json() if not await utils.validation_credentials(auth_data): return web.json_response({"message": "Invalid credentials"}, status=400) await User.create(...
32.352941
99
0.708182
142
1,100
5.359155
0.352113
0.063075
0.102497
0.165572
0.324573
0.176084
0.094612
0
0
0
0
0.016667
0.181818
1,100
33
100
33.333333
0.828889
0
0
0.086957
0
0
0.180909
0
0
0
0
0
0
1
0
false
0.173913
0.130435
0
0.391304
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
9a2ad5d8f34b4182942a86d8ef3f197c1b06c12e
1,296
py
Python
test.py
MarkMurillo/python_ctype_structure_example
9e889cc4cbdeab8433c396262f086071bb961e13
[ "MIT" ]
null
null
null
test.py
MarkMurillo/python_ctype_structure_example
9e889cc4cbdeab8433c396262f086071bb961e13
[ "MIT" ]
null
null
null
test.py
MarkMurillo/python_ctype_structure_example
9e889cc4cbdeab8433c396262f086071bb961e13
[ "MIT" ]
null
null
null
"""test.py Python3 Test script that demonstrates the passing of an initialized python structure to C and retrieving the structure back. """ import testMod from ctypes import * class TESTSTRUCT(Structure): pass TESTSTRUCT._fields_ = [ ("name", c_char_p), ("next", POINTER(TESTSTRUCT), #We can use a ...
31.609756
88
0.73534
190
1,296
4.936842
0.436842
0.021322
0.025586
0.051173
0
0
0
0
0
0
0
0.019196
0.155864
1,296
40
89
32.4
0.838208
0
0
0
0
0
0.069191
0
0
0
0
0
0
0
null
null
0.052632
0.105263
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
9a43ea16514e92431028e9e426f7d3c0a8b72e9b
3,088
py
Python
src/octopus/core/framework/__init__.py
smaragden/OpenRenderManagement
cf3ab356f96969d7952b60417b48e941955e435c
[ "BSD-3-Clause" ]
35
2015-02-23T23:13:13.000Z
2021-01-03T05:56:39.000Z
src/octopus/core/framework/__init__.py
smaragden/OpenRenderManagement
cf3ab356f96969d7952b60417b48e941955e435c
[ "BSD-3-Clause" ]
15
2015-01-12T12:58:29.000Z
2016-03-30T13:10:19.000Z
src/octopus/core/framework/__init__.py
mikrosimage/OpenRenderManagement
6f9237a86cb8e4b206313f9c22424c8002fd5e4d
[ "BSD-3-Clause" ]
20
2015-03-18T06:57:13.000Z
2020-07-01T15:09:36.000Z
import tornado import logging import httplib try: import simplejson as json except ImportError: import json from octopus.core.framework.wsappframework import WSAppFramework, MainLoopApplication from octopus.core.framework.webservice import MappingSet from octopus.core.communication.http import Http400 from oc...
29.409524
85
0.663536
337
3,088
5.970326
0.364985
0.05169
0.029821
0.034294
0.134195
0.093439
0.0666
0.0666
0.0666
0
0
0.004632
0.230894
3,088
104
86
29.692308
0.842526
0.040155
0
0.111111
0
0
0.072281
0.008865
0
0
0
0
0
1
0.208333
false
0
0.138889
0.069444
0.569444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
9a467e6fc069bf386281b9a110e435f9e100a70b
139
py
Python
exercises/spotify/auth_data.py
introprogramming/exercises
8e52f3fa87d29a14ddcf00e8d87598d0721a41f6
[ "MIT" ]
2
2018-08-20T22:44:40.000Z
2018-09-14T17:03:35.000Z
exercises/spotify/auth_data.py
introprogramming/exercises
8e52f3fa87d29a14ddcf00e8d87598d0721a41f6
[ "MIT" ]
31
2015-08-06T16:25:57.000Z
2019-06-11T12:22:35.000Z
exercises/spotify/auth_data.py
introprogramming/exercises
8e52f3fa87d29a14ddcf00e8d87598d0721a41f6
[ "MIT" ]
1
2016-08-15T15:06:40.000Z
2016-08-15T15:06:40.000Z
# Login to https://developer.spotify.com/dashboard/, create an application and fill these out before use! client_id = "" client_secret = ""
46.333333
105
0.755396
20
139
5.15
0.95
0
0
0
0
0
0
0
0
0
0
0
0.129496
139
3
106
46.333333
0.85124
0.741007
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9a61c54ca6366d9eef60d2491aa686f033543efd
3,261
py
Python
GAparsimony/util/config.py
misantam/GAparsimony
0241092dc5d7741b5546151ff829167588e4f703
[ "MIT" ]
null
null
null
GAparsimony/util/config.py
misantam/GAparsimony
0241092dc5d7741b5546151ff829167588e4f703
[ "MIT" ]
1
2021-12-05T10:24:55.000Z
2021-12-05T11:01:25.000Z
GAparsimony/util/config.py
misantam/GAparsimony
0241092dc5d7741b5546151ff829167588e4f703
[ "MIT" ]
null
null
null
################################################# #****************LINEAR MODELS******************# ################################################# CLASSIF_LOGISTIC_REGRESSION = {"C":{"range": (1., 100.), "type": 1}, "tol":{"range": (0.0001,0.9999), "type": 1}} ...
40.259259
90
0.340693
279
3,261
3.849462
0.200717
0.074488
0.102421
0.112663
0.6946
0.6946
0.680633
0.680633
0.659218
0.659218
0
0.085141
0.236431
3,261
81
91
40.259259
0.346185
0.113155
0
0.53125
0
0
0.240815
0.021248
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9a6446896e65dc764ddad3e136039fc438fa2758
1,710
py
Python
airbox/commands/__init__.py
lewisjared/airbox
56bfdeb3e81bac47c80fbf249d9ead31c94a2139
[ "MIT" ]
null
null
null
airbox/commands/__init__.py
lewisjared/airbox
56bfdeb3e81bac47c80fbf249d9ead31c94a2139
[ "MIT" ]
null
null
null
airbox/commands/__init__.py
lewisjared/airbox
56bfdeb3e81bac47c80fbf249d9ead31c94a2139
[ "MIT" ]
null
null
null
""" This module contains a number of other commands that can be run via the cli. All classes in this submodule which inherit the baseclass `airbox.commands.base.Command` are automatically included in the possible commands to execute via the commandline. The commands can be called using their `name` property. """ from...
26.307692
118
0.729825
202
1,710
6.074257
0.475248
0.00815
0.00978
0.02282
0
0
0
0
0
0
0
0
0.20117
1,710
64
119
26.71875
0.898243
0.37193
0
0.060606
0
0
0
0
0
0
0
0.015625
0
1
0.090909
false
0.030303
0.30303
0
0.424242
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
2
7bd8ac16582450f85a23c7ef200dbfd91aa09837
2,636
py
Python
core/predictor/RF/rf_predict.py
LouisYZK/dds-avec2019
9a0ee86bddf6c23460a689bde8d75302f1d5aa45
[ "BSD-2-Clause" ]
8
2020-02-28T04:04:30.000Z
2021-12-28T07:06:06.000Z
core/predictor/RF/rf_predict.py
LouisYZK/dds-avec2019
9a0ee86bddf6c23460a689bde8d75302f1d5aa45
[ "BSD-2-Clause" ]
1
2021-04-18T09:35:13.000Z
2021-04-18T09:35:13.000Z
core/predictor/RF/rf_predict.py
LouisYZK/dds-avec2019
9a0ee86bddf6c23460a689bde8d75302f1d5aa45
[ "BSD-2-Clause" ]
2
2020-03-26T21:42:15.000Z
2021-09-09T12:50:41.000Z
"""Simple predictor using random forest """ import pandas as pd import numpy as np import math from sklearn.ensemble import RandomForestRegressor from sklearn.ensemble import RandomForestClassifier from sklearn import preprocessing from sklearn.metrics import mean_absolute_error from sklearn.metrics import f1_score fr...
30.651163
90
0.638088
359
2,636
4.504178
0.339833
0.047619
0.022263
0.030921
0.084106
0.084106
0.084106
0.055659
0.055659
0.055659
0
0.009274
0.263657
2,636
86
91
30.651163
0.823802
0.074734
0
0.116667
0
0
0.046394
0.018979
0
0
0
0
0
1
0.15
false
0.05
0.316667
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7bed1d2243d33ac3902ca09a4b56c1ae1c77465e
553
py
Python
server/players/query.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
1
2021-10-03T05:44:32.000Z
2021-10-03T05:44:32.000Z
server/players/query.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
null
null
null
server/players/query.py
kfields/django-arcade
24df3d43dde2d69df333529d8790507fb1f5fcf1
[ "MIT" ]
null
null
null
from loguru import logger from channels.db import database_sync_to_async from schema.base import query from .models import Player from .schemata import PlayerConnection @query.field("allPlayers") @database_sync_to_async def resolve_all_players(root, info, after='', before='', first=0, last=0): players = [p for ...
24.043478
74
0.755877
77
553
5.25974
0.519481
0.088889
0.103704
0.140741
0.14321
0.14321
0
0
0
0
0
0.004202
0.139241
553
22
75
25.136364
0.846639
0
0
0.125
0
0
0.028933
0
0
0
0
0
0
1
0.125
false
0
0.3125
0.0625
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7bf26d67b6d552692974b4958df2a46110802ae6
1,529
py
Python
src/python_settings/python_settings.py
tomatze/opendihu-webapp
0f08bdeb82348a1e30fa44db1ac3b9b1606f1da1
[ "MIT" ]
17
2018-11-25T19:29:34.000Z
2021-09-20T04:46:22.000Z
src/python_settings/python_settings.py
tomatze/opendihu-webapp
0f08bdeb82348a1e30fa44db1ac3b9b1606f1da1
[ "MIT" ]
1
2020-11-12T15:15:58.000Z
2020-12-29T15:29:24.000Z
src/python_settings/python_settings.py
tomatze/opendihu-webapp
0f08bdeb82348a1e30fa44db1ac3b9b1606f1da1
[ "MIT" ]
4
2018-10-17T12:18:10.000Z
2021-05-28T13:24:20.000Z
import re # import all settings-modules here, so we can only import this module to get them all from python_settings.settings_activatable import * from python_settings.settings_child_placeholder import * from python_settings.settings_choice import * from python_settings.settings_comment import * from python_settings.s...
39.205128
120
0.695226
196
1,529
5.244898
0.392857
0.155642
0.157588
0.227626
0.280156
0
0
0
0
0
0
0.011008
0.2276
1,529
38
121
40.236842
0.859441
0.258339
0
0
0
0
0.025709
0
0
0
0
0
0
1
0.074074
false
0
0.37037
0.037037
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
d01f7d7cb1aafa6f0cf4dd66656aaf36d58e3686
371
py
Python
CanTingSystem/Party.py
scottyyf/oodoop
d254b8a355c985c7672381495ab8a44d7d55e153
[ "MIT" ]
2
2021-12-14T10:46:14.000Z
2021-12-14T10:47:00.000Z
CanTingSystem/Party.py
scottyyf/oodoop
d254b8a355c985c7672381495ab8a44d7d55e153
[ "MIT" ]
9
2021-12-06T06:16:15.000Z
2021-12-20T06:39:50.000Z
CanTingSystem/Party.py
scottyyf/oodoop
d254b8a355c985c7672381495ab8a44d7d55e153
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: Party.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """ class Party(object): def __init__(self, capacity): self._capacity = capacity def...
19.526316
79
0.684636
47
371
5.255319
0.744681
0.145749
0
0
0
0
0
0
0
0
0
0.016447
0.180593
371
18
80
20.611111
0.796053
0.560647
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
d02bbe745d7a87ef8769d267b8913fe863e1ddc6
545
py
Python
tests/conftest.py
disktnk/onnx-chainer
e4542568009e63e7da83aa0f11b2cb5504e8cef8
[ "MIT" ]
null
null
null
tests/conftest.py
disktnk/onnx-chainer
e4542568009e63e7da83aa0f11b2cb5504e8cef8
[ "MIT" ]
null
null
null
tests/conftest.py
disktnk/onnx-chainer
e4542568009e63e7da83aa0f11b2cb5504e8cef8
[ "MIT" ]
null
null
null
import chainer import pytest def pytest_addoption(parser): parser.addoption( '--value-check-runtime', dest='value-check-runtime', default='onnxruntime', choices=['skip', 'onnxruntime', 'mxnet'], help='select test runtime') @pytest.fixture(scope='function') def disable_experimental_warnin...
27.25
77
0.722936
58
545
6.551724
0.534483
0.2
0.205263
0.260526
0.315789
0
0
0
0
0
0
0
0.174312
545
19
78
28.684211
0.844444
0
0
0
0
0
0.179817
0.038532
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.266667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0458729a238b401f69f7c90aa4a7ae3169c62fa
1,959
py
Python
clouddq/classes/dq_rule.py
charleskubicek/cloud-data-quality
0f7dee7daeaaf974203ae154fc7ba729c05cee5d
[ "Apache-2.0" ]
1
2021-11-07T15:03:33.000Z
2021-11-07T15:03:33.000Z
clouddq/classes/dq_rule.py
ant-laz/cloud-data-quality
2f41ec692e7a0ec8988bb8e715fcf5e926fa47be
[ "Apache-2.0" ]
null
null
null
clouddq/classes/dq_rule.py
ant-laz/cloud-data-quality
2f41ec692e7a0ec8988bb8e715fcf5e926fa47be
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # 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, ...
23.890244
79
0.597754
239
1,959
4.76569
0.426778
0.063213
0.042142
0.052678
0.154522
0.121159
0.079017
0.079017
0.079017
0
0
0.005827
0.299132
1,959
81
80
24.185185
0.823744
0.363451
0
0
0
0
0.052632
0
0
0
0
0.012346
0
1
0.148148
false
0
0.111111
0.037037
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
d0461663494469b9d6df96b164f06712f149aa53
749
py
Python
py/minsk/analysis/syntax/expressions/parenthesized.py
Phytolizer/Minsk
5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c
[ "MIT" ]
null
null
null
py/minsk/analysis/syntax/expressions/parenthesized.py
Phytolizer/Minsk
5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c
[ "MIT" ]
1
2022-03-23T03:34:48.000Z
2022-03-24T06:47:30.000Z
py/minsk/analysis/syntax/expressions/parenthesized.py
Phytolizer/Minsk
5fb59f0d5d8cf1f0046471b91e2f5d0c41fc874c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Iterable from minsk.analysis.syntax.expression import ExpressionSyntax from minsk.analysis.syntax.kind import SyntaxKind from minsk.analysis.syntax.node import SyntaxNode from minsk.analysis.syntax.token import SyntaxToken @dataclass(frozen=True) class Parenthesiz...
29.96
61
0.791722
79
749
7.405063
0.392405
0.061538
0.116239
0.157265
0
0
0
0
0
0
0
0
0.154873
749
24
62
31.208333
0.924171
0
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.315789
0.052632
0.684211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d04f4962f6074bb45c68186f6ea8419d8e3eca30
649
py
Python
stocklab/core/crawler.py
hchsiao/stocklab
9c8f786249d5fd5eb954829f63549f0635a428ff
[ "MIT" ]
1
2020-03-26T14:49:31.000Z
2020-03-26T14:49:31.000Z
stocklab/core/crawler.py
syoukore/stocklab
9c8f786249d5fd5eb954829f63549f0635a428ff
[ "MIT" ]
null
null
null
stocklab/core/crawler.py
syoukore/stocklab
9c8f786249d5fd5eb954829f63549f0635a428ff
[ "MIT" ]
1
2020-06-16T16:56:23.000Z
2020-06-16T16:56:23.000Z
from . import StocklabObject class Crawler(StocklabObject): """The base class for stocklab Crawlers.""" def __init__(self): super().__init__() class CrawlerTrigger(Exception): """ A `Node` will raise this exception when the required data is not locally available (e.g. not in the database)....
29.5
76
0.665639
76
649
5.407895
0.618421
0.058394
0.053528
0
0
0
0
0
0
0
0
0
0.234206
649
21
77
30.904762
0.826962
0.446841
0
0.2
0
0
0.08589
0
0
0
0
0.047619
0
1
0.3
false
0
0.1
0.1
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
d064ab0067234e99ee2f70ae98cf7d5fece967e6
304
py
Python
spellcheck.py
laiquzzama/laiquzzama
42393808ecb0342392ab055d9d94220de8a15796
[ "Apache-2.0" ]
3
2021-03-06T01:42:51.000Z
2021-04-13T12:02:47.000Z
spellcheck.py
laiquzzama/laiquzzama
42393808ecb0342392ab055d9d94220de8a15796
[ "Apache-2.0" ]
null
null
null
spellcheck.py
laiquzzama/laiquzzama
42393808ecb0342392ab055d9d94220de8a15796
[ "Apache-2.0" ]
null
null
null
from textblob import TextBlob a = str(input("enter your word to check spell") _b = TextBlob(a) print (_b.correct()) # from textblob import Textblob #mylst = ["firt","clor"] #correct_list = [] #for word in mylst: # correct_list.append(TextBlob()) # #for word in correct_list: # print (word.correct())
19
47
0.700658
44
304
4.727273
0.5
0.158654
0.173077
0.25
0
0
0
0
0
0
0
0
0.151316
304
15
48
20.266667
0.806202
0
0
0
0
0
0.23622
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.25
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
d085434851368c058d877fff6243d0f3f90e2c23
462
py
Python
config.py
LandRegistry/historian-alpha
3f2c2060d0f747772e8362dbe4867aea24731180
[ "MIT" ]
null
null
null
config.py
LandRegistry/historian-alpha
3f2c2060d0f747772e8362dbe4867aea24731180
[ "MIT" ]
null
null
null
config.py
LandRegistry/historian-alpha
3f2c2060d0f747772e8362dbe4867aea24731180
[ "MIT" ]
1
2021-04-11T06:07:16.000Z
2021-04-11T06:07:16.000Z
import os class Config(object): DEBUG = False STORAGE = os.environ['STORAGE'] SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] # these are on heroku only so get safely BASIC_AUTH_USERNAME = os.environ.get('BASIC_AUTH_USERNAME') BASIC_AUTH_PASSWORD = os.environ.get('BASIC_AUTH_PASSWORD') c...
25.666667
63
0.727273
58
462
5.603448
0.5
0.138462
0.098462
0.141538
0.129231
0
0
0
0
0
0
0
0.175325
462
17
64
27.176471
0.853018
0.082251
0
0.166667
0
0
0.151659
0
0
0
0
0
0
1
0
false
0.083333
0.083333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
d08cfb1d89201e35321b4d716317704e5a60a247
552
py
Python
tests/test_dbapi_sqlite.py
cyanodbc/cyanodbc
6ed49ded15a545edf4b78886868daebc8c5d4874
[ "MIT" ]
2
2020-07-10T17:36:00.000Z
2020-08-12T14:57:48.000Z
tests/test_dbapi_sqlite.py
detule/cyanodbc
e7713c3cc3333a018409ec50ee1e5836a8d85f06
[ "MIT" ]
15
2018-09-09T12:05:15.000Z
2020-07-07T12:06:16.000Z
tests/test_dbapi_sqlite.py
detule/cyanodbc
e7713c3cc3333a018409ec50ee1e5836a8d85f06
[ "MIT" ]
1
2020-07-02T10:58:07.000Z
2020-07-02T10:58:07.000Z
import cyanodbc import dbapi20 from distro import linux_distribution import pytest class CyanodbcDBApiTest(dbapi20.DatabaseAPI20Test): driver = cyanodbc connect_args = ("Driver={SQLite3 ODBC Driver};Database=" "example.db;Timeout=1000;", ) "" def test_setoutputsize(self): pass def test...
26.285714
60
0.684783
62
552
5.983871
0.66129
0.056604
0
0
0
0
0
0
0
0
0
0.027523
0.210145
552
20
61
27.6
0.823395
0.041667
0
0.117647
0
0
0.187856
0.045541
0
0
0
0
0
1
0.176471
false
0.117647
0.235294
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
0
0
1
0
0
1
0
0
2
d0a233e2c4be9f3270a7527a6c44f88fc90c7f07
179
py
Python
python/ql/src/Security/CWE-022/examples/tarslip_bad.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/src/Security/CWE-022/examples/tarslip_bad.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/src/Security/CWE-022/examples/tarslip_bad.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
import tarfile with tarfile.open('archive.zip') as tar: #BAD : This could write any file on the filesystem. for entry in tar: tar.extract(entry, "/tmp/unpack/")
22.375
55
0.664804
27
179
4.407407
0.851852
0
0
0
0
0
0
0
0
0
0
0
0.223464
179
7
56
25.571429
0.856115
0.27933
0
0
0
0
0.181102
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0a27cee092dbbcf3e9f8c3f67fcac4a8d78a9b8
2,206
py
Python
thermidor/classes/clusterer_socket.py
rcorrero/thermidor
01381da6dcef6d256c4438f90b46197ea89c4e7d
[ "BSD-3-Clause" ]
null
null
null
thermidor/classes/clusterer_socket.py
rcorrero/thermidor
01381da6dcef6d256c4438f90b46197ea89c4e7d
[ "BSD-3-Clause" ]
null
null
null
thermidor/classes/clusterer_socket.py
rcorrero/thermidor
01381da6dcef6d256c4438f90b46197ea89c4e7d
[ "BSD-3-Clause" ]
null
null
null
# Author: Richard Correro from sklearn.base import ClusterMixin from .transformer_socket import TransformerSocket class ClustererSocket(TransformerSocket, ClusterMixin): '''Class which allows for treating clusterers as model parameters. Parameters ---------- estimator : Sci-kit learn estimator o...
30.219178
76
0.593835
247
2,206
5.226721
0.388664
0.032533
0.070488
0.061967
0.477924
0.415957
0.378776
0.378776
0.378776
0.378776
0
0
0.312783
2,206
72
77
30.638889
0.851583
0.619674
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.222222
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d0ac701e358934362e43d3495ffc036dc298f1b4
184
py
Python
Curso_de_Python_ Curso_em_Video/PythonTeste/condicoesEx001.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonTeste/condicoesEx001.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonTeste/condicoesEx001.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
import random numeroPc = random.randint(1, 5) numeroUsuario = int(input('Digite um número: ')) print('Parabéns vc acertou!' if numeroPc == numeroUsuario else 'O Computador venceu')
23
85
0.73913
24
184
5.666667
0.875
0
0
0
0
0
0
0
0
0
0
0.012658
0.141304
184
7
86
26.285714
0.848101
0
0
0
0
0
0.309783
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0ae7da86f116336cc253188f9639ca495e26131
5,739
py
Python
src/get_device_id.py
icemanzz/SPS_NM_Scripts
f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9
[ "Apache-2.0" ]
null
null
null
src/get_device_id.py
icemanzz/SPS_NM_Scripts
f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9
[ "Apache-2.0" ]
null
null
null
src/get_device_id.py
icemanzz/SPS_NM_Scripts
f7b9e05e441d35715ee98bf1e2a73765a3a8d7c9
[ "Apache-2.0" ]
null
null
null
import pyipmi import pyipmi.interfaces import os import re import datetime import os.path import time import math import numpy import mmap import array import getopt import sys #Inmport path sys.path.append('../src') from aardvark_initial import * #Inmport path sys.path.append('../') from os_parameters_define import...
31.021622
194
0.638439
817
5,739
4.253366
0.222766
0.034532
0.025324
0.03741
0.232806
0.159712
0.106763
0.01554
0
0
0
0.023538
0.252309
5,739
184
195
31.190217
0.786297
0.161178
0
0.150794
0
0
0.153379
0
0
0
0
0
0
0
null
null
0.055556
0.15873
null
null
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
d0b20375cd75fe0eef53b990d01615a34d6461be
442
py
Python
create.py
chen-robert/hackcmu21
0728af0aa4f61b1969d0b73f7e8688fee90c1cb9
[ "MIT" ]
null
null
null
create.py
chen-robert/hackcmu21
0728af0aa4f61b1969d0b73f7e8688fee90c1cb9
[ "MIT" ]
null
null
null
create.py
chen-robert/hackcmu21
0728af0aa4f61b1969d0b73f7e8688fee90c1cb9
[ "MIT" ]
null
null
null
import sqlite3 import datetime conn = sqlite3.connect('database.db') print("Opened database successfully") # NOTE: ID is DEPRECATED conn.execute('CREATE TABLE simulated (id TEXT, lat NUMERIC, lon NUMERIC, alt NUMERIC, time TIMESTAMP DEFAULT CURRENT_TIMESTAMP)') conn.execute('CREATE TABLE locations (id TEXT, lat NUMER...
40.181818
129
0.791855
59
442
5.898305
0.508475
0.063218
0.097701
0.126437
0.413793
0.413793
0.413793
0.413793
0.413793
0.413793
0
0.005102
0.113122
442
11
130
40.181818
0.882653
0.049774
0
0
0
0.25
0.694511
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0bf49499bee89967eb7d175fcbf84d7e2af6904
1,140
py
Python
covid_19/users_app/models.py
MikePolyakov/djanjo_project
4d80cac9142bacdaa91b5f7be0c7377a365c3db9
[ "MIT" ]
null
null
null
covid_19/users_app/models.py
MikePolyakov/djanjo_project
4d80cac9142bacdaa91b5f7be0c7377a365c3db9
[ "MIT" ]
6
2021-06-04T23:11:44.000Z
2022-03-12T00:29:55.000Z
covid_19/users_app/models.py
id2k1149/django_project
4d80cac9142bacdaa91b5f7be0c7377a365c3db9
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. from django.dispatch import receiver class AppUser(AbstractUser): email = models.EmailField(unique=True) is_author =...
30.810811
79
0.728947
137
1,140
6.029197
0.518248
0.060533
0.029056
0.058111
0.220339
0.070218
0
0
0
0
0
0
0.171053
1,140
36
80
31.666667
0.874074
0.387719
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d0ce5b7ab68cf3a392399184b703c3027b6d7ef3
180
py
Python
config.py
x5g/AutoWritePoems
634d30587bb8e5cf15d8287d259ac22fe0798762
[ "MIT" ]
null
null
null
config.py
x5g/AutoWritePoems
634d30587bb8e5cf15d8287d259ac22fe0798762
[ "MIT" ]
null
null
null
config.py
x5g/AutoWritePoems
634d30587bb8e5cf15d8287d259ac22fe0798762
[ "MIT" ]
null
null
null
class Config(object): poetry_file = 'poetry4min.txt' weight_file = 'poetry_model_4_1.h5' # 根据前六个字预测第七个字 max_len = 4 batch_size = 128 learning_rate = 0.0005
22.5
39
0.672222
25
180
4.52
0.88
0
0
0
0
0
0
0
0
0
0
0.094891
0.238889
180
7
40
25.714286
0.729927
0.066667
0
0
0
0
0.198795
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0df17b69424625513414f688731105176ee7001
319
py
Python
demo/flask_app/flask_api/model.py
joshyjoseph/react-docker-swagger-demo
7ba7dce6ff1457fd6bfa2af0873f60c07f918ade
[ "MIT" ]
null
null
null
demo/flask_app/flask_api/model.py
joshyjoseph/react-docker-swagger-demo
7ba7dce6ff1457fd6bfa2af0873f60c07f918ade
[ "MIT" ]
null
null
null
demo/flask_app/flask_api/model.py
joshyjoseph/react-docker-swagger-demo
7ba7dce6ff1457fd6bfa2af0873f60c07f918ade
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class TeamModel(db.Model): rowId = db.Column(db.Integer, primary_key=True) teamName = db.Column(db.String) teamRole = db.Column(db.String) def __repr__(self) -> str: return "{}:{}:{}".format(self.rowId, self.teamName, self.teamRole)
24.538462
74
0.680251
41
319
5.146341
0.560976
0.113744
0.14218
0.151659
0
0
0
0
0
0
0
0
0.172414
319
12
75
26.583333
0.799242
0
0
0
0
0
0.025078
0
0
0
0
0
0
1
0.125
false
0
0.125
0.125
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
d0e40ed7df88adf45e5432f3af67cf4214a7c00a
331
py
Python
examples/system-prompt.py
davidbrochart/python-prompt-toolkit
8498692b31671fee7c5a426300a9df2ee290eae2
[ "BSD-3-Clause" ]
2
2020-04-12T01:23:25.000Z
2021-05-22T13:46:00.000Z
examples/system-prompt.py
davidbrochart/python-prompt-toolkit
8498692b31671fee7c5a426300a9df2ee290eae2
[ "BSD-3-Clause" ]
null
null
null
examples/system-prompt.py
davidbrochart/python-prompt-toolkit
8498692b31671fee7c5a426300a9df2ee290eae2
[ "BSD-3-Clause" ]
2
2016-12-30T23:57:44.000Z
2021-05-22T13:50:21.000Z
#!/usr/bin/env python from __future__ import unicode_literals from prompt_toolkit import prompt if __name__ == '__main__': print('If you press meta-! or esc-! at the following prompt, you can enter system commands.') answer = prompt('Give me some input: ', enable_system_bindings=True) print('You said: %s'...
33.1
97
0.725076
48
331
4.666667
0.770833
0
0
0
0
0
0
0
0
0
0
0
0.169184
331
9
98
36.777778
0.814545
0.060423
0
0
0
0
0.4
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
d0efa324455bfc009730dba34af132a2fd676468
260
py
Python
app/hunter/urls.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
app/hunter/urls.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
app/hunter/urls.py
edynox/iis
594200506b641cbac249dc6e95d229bea1edeb28
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import profile, hunterList, changePass urlpatterns = [ url(r'^$', profile, name='hunter_profile'), url(r'^password', changePass, name='hunter_password'), url(r'^list', hunterList, name='hunter_list') ]
28.888889
58
0.703846
33
260
5.454545
0.484848
0.066667
0
0
0
0
0
0
0
0
0
0
0.138462
260
8
59
32.5
0.803571
0
0
0
0
0
0.215385
0
0
0
0
0
0
1
0
false
0.285714
0.285714
0
0.285714
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
1
0
0
0
0
0
2
d0f08bf1893b85dd5be23260d025c66fdf373d25
938
py
Python
test_ukz/test_ukzlang/test_uk_pipes.py
clauderichard/Ultrakazoid
619f1afd1fd55afb06e7d27b2bc30eee9929f660
[ "MIT" ]
null
null
null
test_ukz/test_ukzlang/test_uk_pipes.py
clauderichard/Ultrakazoid
619f1afd1fd55afb06e7d27b2bc30eee9929f660
[ "MIT" ]
null
null
null
test_ukz/test_ukzlang/test_uk_pipes.py
clauderichard/Ultrakazoid
619f1afd1fd55afb06e7d27b2bc30eee9929f660
[ "MIT" ]
null
null
null
from .test_uk_base import TestUkBase class TestUkPipes(TestUkBase): ################ # Tests def test_pipe_seq_start(self): self.equkz("|c","c") self.equkz("c|","c<¬") self.equkz("[ce|]","[ce]<¬") def test_pipe_seq_end(self): self.equkz("[c||d]e","c(de)") self.equkz("[c*2_3||d]e","c*2_3(...
24.051282
44
0.574627
152
938
3.328947
0.203947
0.124506
0.195652
0.15415
0.541502
0.418972
0.383399
0.383399
0.335968
0.335968
0
0.012626
0.15565
938
38
45
24.684211
0.621212
0.00533
0
0
0
0
0.16761
0
0
0
0
0
0
1
0.36
false
0
0.04
0
0.44
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
0
0
0
0
2
d0f7159e2aa65ab951c742e07f51245c54e91b4b
293
py
Python
rest_framework_siren/renderers.py
clarkperkins/django-rest-framework-siren
a0bc3d9990d88cfda7204fd0cf78ef08c38084b5
[ "Apache-2.0" ]
2
2017-01-29T03:08:12.000Z
2019-03-28T20:12:01.000Z
rest_framework_siren/renderers.py
clarkperkins/django-rest-framework-siren
a0bc3d9990d88cfda7204fd0cf78ef08c38084b5
[ "Apache-2.0" ]
null
null
null
rest_framework_siren/renderers.py
clarkperkins/django-rest-framework-siren
a0bc3d9990d88cfda7204fd0cf78ef08c38084b5
[ "Apache-2.0" ]
null
null
null
""" Provides Siren rendering support. """ from __future__ import unicode_literals from rest_framework.renderers import JSONRenderer class SirenRenderer(JSONRenderer): """ Renderer which serializes to YAML. """ media_type = 'application/vnd.siren+json' format = 'siren'
18.3125
49
0.726962
31
293
6.645161
0.83871
0
0
0
0
0
0
0
0
0
0
0
0.180887
293
15
50
19.533333
0.858333
0.232082
0
0
0
0
0.153465
0.128713
0
0
0
0
0
1
0
false
0
0.4
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
190468c6a6a1d847c7290e48226df8d86d0b3049
330
py
Python
src/area51/nowd/decorator.py
thatcr/knowed
025b66e4b660ed4339d3156ebca19065bb65b630
[ "MIT" ]
null
null
null
src/area51/nowd/decorator.py
thatcr/knowed
025b66e4b660ed4339d3156ebca19065bb65b630
[ "MIT" ]
null
null
null
src/area51/nowd/decorator.py
thatcr/knowed
025b66e4b660ed4339d3156ebca19065bb65b630
[ "MIT" ]
null
null
null
import inspect from .descriptors import Descriptor from .arguments import ArgsDescriptor def node(fget, *args, **kwargs): signature = inspect.signature(fget) base = ArgsDescriptor if len(signature.parameters) > 1 else Descriptor cls = type(fget.__code__.co_name, (base, ), {}) return cls(fget, *args,...
27.5
74
0.718182
40
330
5.8
0.625
0.068966
0.12069
0
0
0
0
0
0
0
0
0.003636
0.166667
330
12
75
27.5
0.84
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
190623703fe56b71a26a9d008afda8919d9e105d
253
py
Python
output/models/nist_data/list_pkg/nmtoken/schema_instance/nistschema_sv_iv_list_nmtoken_max_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/nmtoken/schema_instance/nistschema_sv_iv_list_nmtoken_max_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/nmtoken/schema_instance/nistschema_sv_iv_list_nmtoken_max_length_2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.nmtoken.schema_instance.nistschema_sv_iv_list_nmtoken_max_length_2_xsd.nistschema_sv_iv_list_nmtoken_max_length_2 import NistschemaSvIvListNmtokenMaxLength2 __all__ = [ "NistschemaSvIvListNmtokenMaxLength2", ]
42.166667
194
0.893281
31
253
6.580645
0.645161
0.117647
0.137255
0.176471
0.343137
0.343137
0.343137
0.343137
0
0
0
0.016736
0.055336
253
5
195
50.6
0.83682
0
0
0
0
0
0.13834
0.13834
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef6c9cef1dd0ae3c36a242179a531b49d4c57a72
486
py
Python
pyvisio/__init__.py
i-wan/pyvisio
6beed5a18644793e5c6769c5a4fa5f64f9dc436b
[ "MIT" ]
1
2018-06-05T13:15:35.000Z
2018-06-05T13:15:35.000Z
pyvisio/__init__.py
i-wan/pyvisio
6beed5a18644793e5c6769c5a4fa5f64f9dc436b
[ "MIT" ]
1
2017-06-05T18:17:16.000Z
2017-06-05T18:17:16.000Z
pyvisio/__init__.py
i-wan/pyvisio
6beed5a18644793e5c6769c5a4fa5f64f9dc436b
[ "MIT" ]
1
2019-06-30T17:36:35.000Z
2019-06-30T17:36:35.000Z
# -*- coding: utf-8 -*- """ PyVisio visDocuments - Visio Document manipulation library See docstring for class VisDocument for usage """ #TODO docstring __author__ = 'Ivo Velcovsky' __email__ = 'velcovsky@email.cz' __copyright__ = "Copyright (c) 2015" __license__ = "MIT" __status__ = "Development" from...
21.130435
59
0.691358
52
486
5.923077
0.75
0.097403
0
0
0
0
0
0
0
0
0
0.012887
0.201646
486
22
60
22.090909
0.780928
0.292181
0
0
0
0
0.226837
0
0
0
0
0.045455
0
1
0
false
0
0.416667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
2
ef81335057d05cc62a7c03fc8a45db94b745d375
1,890
py
Python
fylesdk/apis/fyle_v3/fyle_v3.py
fylein/fyle-sdk-py
826f804ec4d94d5f95fb304254a373679a494238
[ "MIT" ]
4
2019-05-07T07:38:27.000Z
2021-09-14T08:39:12.000Z
fylesdk/apis/fyle_v3/fyle_v3.py
snarayanank2/fyle-sdk-py
826f804ec4d94d5f95fb304254a373679a494238
[ "MIT" ]
3
2019-09-23T11:50:31.000Z
2020-02-10T12:12:10.000Z
fylesdk/apis/fyle_v3/fyle_v3.py
fylein/fyle-sdk-py
826f804ec4d94d5f95fb304254a373679a494238
[ "MIT" ]
12
2019-05-06T09:48:51.000Z
2020-11-13T10:00:26.000Z
""" Fyle V3 APIs Base Class """ from .expenses import Expenses from .reports import Reports from .employees import Employees from .orgs import Orgs from .reimbursements import Reimbursements from .cost_centes import CostCenters from .categories import Categories from .projects import Projects from .refunds import Refun...
37.8
81
0.757672
182
1,890
7.681319
0.28022
0.091559
0.062947
0.042918
0
0
0
0
0
0
0
0.001943
0.183069
1,890
49
82
38.571429
0.903497
0.044974
0
0
0
0
0
0
0
0
0
0
0
1
0.025
false
0
0.475
0
0.525
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ef8277ef3ae9c0ea2b164ecadf77b6f20ca717ce
598
py
Python
core/mayaScripts/SimpleCube.py
Bernardrouhi/HandFree
fbb9623cba0b8e7eb18649d29465393f06c2b9ee
[ "MIT" ]
null
null
null
core/mayaScripts/SimpleCube.py
Bernardrouhi/HandFree
fbb9623cba0b8e7eb18649d29465393f06c2b9ee
[ "MIT" ]
null
null
null
core/mayaScripts/SimpleCube.py
Bernardrouhi/HandFree
fbb9623cba0b8e7eb18649d29465393f06c2b9ee
[ "MIT" ]
null
null
null
import sys import maya.standalone maya.standalone.initialize(name='python') from maya import cmds # try: def run(): # get scene file file_path = sys.argv[1] # Open Scene cmds.file(file_path, open=True) #-------------- Script -------------- cmds.polyCube( d=10, h=10 , w=10) cmds.polyCube( d=10, h=10 , w=10) ...
19.933333
41
0.602007
94
598
3.808511
0.37234
0.167598
0.181564
0.209497
0.293296
0.293296
0.293296
0.293296
0.293296
0.293296
0
0.062745
0.147157
598
30
42
19.933333
0.639216
0.262542
0
0.333333
0
0
0.013857
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.266667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef8bac5da5b68c79dd574b7a205be89cb3f23f5d
178
py
Python
headlines.py
plamenbelev/headlines
49e5995042abf31b2f898ca1daaf7ee99005dde9
[ "MIT" ]
null
null
null
headlines.py
plamenbelev/headlines
49e5995042abf31b2f898ca1daaf7ee99005dde9
[ "MIT" ]
null
null
null
headlines.py
plamenbelev/headlines
49e5995042abf31b2f898ca1daaf7ee99005dde9
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route("/") def get_news(): return 'No news is good news' if __name__ == '__main__': app.run(port=5000, debug=True)
14.833333
34
0.662921
27
178
3.888889
0.740741
0
0
0
0
0
0
0
0
0
0
0.027778
0.191011
178
12
34
14.833333
0.701389
0
0
0
0
0
0.162011
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
ef9fbd19157663838a068e78c39ee7e40bade1b6
127
py
Python
delightfulsoup/utils/unminify.py
etpinard/delightfulsoup
6d8cf976bf216e0e311808ffbd871a5915ba7b09
[ "MIT" ]
null
null
null
delightfulsoup/utils/unminify.py
etpinard/delightfulsoup
6d8cf976bf216e0e311808ffbd871a5915ba7b09
[ "MIT" ]
null
null
null
delightfulsoup/utils/unminify.py
etpinard/delightfulsoup
6d8cf976bf216e0e311808ffbd871a5915ba7b09
[ "MIT" ]
null
null
null
""" unminify ======== """ def unminify(soup, encoding='utf-8'): """ """ return soup.prettify().encode(encoding)
10.583333
43
0.527559
12
127
5.583333
0.75
0
0
0
0
0
0
0
0
0
0
0.009901
0.204724
127
11
44
11.545455
0.653465
0.133858
0
0
0
0
0.055556
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
efb4a4c9d9efe6b7461d24bff10a128e9ce9296a
2,692
py
Python
shuttl/__init__.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
2
2017-06-26T18:06:58.000Z
2017-10-11T21:45:29.000Z
shuttl/__init__.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
null
null
null
shuttl/__init__.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
null
null
null
import sys from flask import Flask, redirect, request, session, url_for from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager, current_user from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from flask_wtf.csrf import CsrfProtect from .sessions import Shut...
28.041667
106
0.76523
310
2,692
6.506452
0.306452
0.034705
0.058999
0.022806
0.078334
0.049579
0.049579
0.049579
0.049579
0.049579
0
0.003013
0.137073
2,692
95
107
28.336842
0.86526
0.165676
0
0.067797
0
0
0.040323
0.014785
0
0
0
0
0
1
0.084746
false
0.033898
0.389831
0.016949
0.508475
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
effc0cb6fddb743089c7bdb462500e13e334b104
342
py
Python
tests/test_invalid_login.py
joshmgrant/Python-Pytest-Nerodia
55e8d92cd21e3093e6eb434e4ab7b126c974c6f0
[ "MIT" ]
1
2019-03-19T08:29:02.000Z
2019-03-19T08:29:02.000Z
tests/test_invalid_login.py
joshmgrant/Python-Pytest-Nerodia
55e8d92cd21e3093e6eb434e4ab7b126c974c6f0
[ "MIT" ]
null
null
null
tests/test_invalid_login.py
joshmgrant/Python-Pytest-Nerodia
55e8d92cd21e3093e6eb434e4ab7b126c974c6f0
[ "MIT" ]
null
null
null
import pytest def test_locked_out_user(browser): browser.goto('http://www.saucedemo.com') browser.text_field(data_test='username').value = 'locked_out_user' browser.text_field(data_test='password').value ='secret_sauce' browser.button(type='submit').click() assert browser.button(class_name='erro...
28.5
70
0.733918
46
342
5.217391
0.652174
0.075
0.108333
0.166667
0.2
0
0
0
0
0
0
0
0.119883
342
12
71
28.5
0.797342
0
0
0
0
0
0.247813
0
0
0
0
0
0.142857
1
0.142857
false
0.142857
0.142857
0
0.285714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
effc868ba3985263b54f27c9ba1dafa032b3a960
351
py
Python
services/shortto.py
joshthecoder/shorty-python
35687d010683944d75e3f0dce7799903296172c5
[ "MIT" ]
11
2015-05-29T04:58:28.000Z
2020-05-31T17:07:52.000Z
services/shortto.py
joshthecoder/shorty-python
35687d010683944d75e3f0dce7799903296172c5
[ "MIT" ]
null
null
null
services/shortto.py
joshthecoder/shorty-python
35687d010683944d75e3f0dce7799903296172c5
[ "MIT" ]
2
2015-03-10T06:22:31.000Z
2018-06-18T18:20:59.000Z
## Shorty ## Copyright 2009 Joshua Roesslein ## See LICENSE ## @url short.to class Shortto(Service): def shrink(self, bigurl): resp = request('http://short.to/s.txt', {'url': bigurl}) return resp.read() def expand(self, tinyurl): resp = request('http://long.to/do.txt', {'url': tinyurl...
21.9375
65
0.60114
45
351
4.688889
0.622222
0.066351
0.14218
0
0
0
0
0
0
0
0
0.014706
0.225071
351
15
66
23.4
0.761029
0.182336
0
0.285714
0
0
0.173285
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
4bc780e7bf91dc67b2e9b3c85f1b9477066d6c29
87
py
Python
opensanctions/helpers/gender.py
fastbone/opensanctions
dea7f7d073083eece26241bcade697a2b959a09e
[ "MIT" ]
null
null
null
opensanctions/helpers/gender.py
fastbone/opensanctions
dea7f7d073083eece26241bcade697a2b959a09e
[ "MIT" ]
null
null
null
opensanctions/helpers/gender.py
fastbone/opensanctions
dea7f7d073083eece26241bcade697a2b959a09e
[ "MIT" ]
null
null
null
# Welcome to the wonderful world of police databases: MALE = "male" FEMALE = "female"
17.4
53
0.724138
12
87
5.25
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.183908
87
4
54
21.75
0.887324
0.586207
0
0
0
0
0.294118
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4bc9dc6d068e1225034cf817b0d3efa5bdeee220
128
py
Python
Aula10.py
rsmelocunha/Python-projects
1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093
[ "MIT" ]
null
null
null
Aula10.py
rsmelocunha/Python-projects
1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093
[ "MIT" ]
null
null
null
Aula10.py
rsmelocunha/Python-projects
1740d1cbafb0aebfffeb0bfdb4ccccf0dbd14093
[ "MIT" ]
null
null
null
ano = int(input('Digite o ano do seu carro: ')) idadecarro = 2022 - ano print('Carro novo' if idadecarro <=3 else 'Carro Velho')
42.666667
56
0.695313
21
128
4.238095
0.761905
0
0
0
0
0
0
0
0
0
0
0.046729
0.164063
128
3
56
42.666667
0.785047
0
0
0
0
0
0.372093
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4bcbcc55408d8cf46761e62d961a3d39291ace5d
440
py
Python
tests/test_get_current_os_name.py
c-pher/PyWinOS
a16a16a24abaa53a06b9365b2535c8ab31a7fdfb
[ "MIT" ]
4
2020-04-17T15:54:43.000Z
2020-11-08T06:39:05.000Z
tests/test_get_current_os_name.py
c-pher/PyWinOS
a16a16a24abaa53a06b9365b2535c8ab31a7fdfb
[ "MIT" ]
65
2020-01-05T21:45:17.000Z
2022-03-31T16:50:20.000Z
tests/test_get_current_os_name.py
c-pher/PyWinOS
a16a16a24abaa53a06b9365b2535c8ab31a7fdfb
[ "MIT" ]
null
null
null
import os def test_get_current_os_name(client_local): response = client_local.get_current_os_name_local() print(response) print(os.name) if os.name == 'nt': assert 'Windows' in response, 'Current OS name is not Windows' elif os.name == 'Linux': assert 'Linux' in response, 'Current...
29.333333
70
0.661364
64
440
4.390625
0.359375
0.192171
0.231317
0.160142
0.263345
0.199288
0.199288
0
0
0
0
0
0.231818
440
14
71
31.428571
0.831361
0
0
0
0
0
0.263636
0
0
0
0
0
0.272727
1
0.090909
false
0
0.090909
0
0.181818
0.181818
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4bcc5632c54ea11fd3756fc709d789ae83392c50
55
py
Python
dearpygui_map/__init__.py
mkouhia/dearpygui_map
8db86e6917b88c118aff94a22e383ef517c40620
[ "MIT" ]
null
null
null
dearpygui_map/__init__.py
mkouhia/dearpygui_map
8db86e6917b88c118aff94a22e383ef517c40620
[ "MIT" ]
21
2022-02-21T08:31:03.000Z
2022-03-08T19:27:33.000Z
dearpygui_map/__init__.py
mkouhia/dearpygui_map
8db86e6917b88c118aff94a22e383ef517c40620
[ "MIT" ]
null
null
null
"""Map widget for Dear PyGui""" __version__ = "0.0.1"
13.75
31
0.636364
9
55
3.444444
0.888889
0
0
0
0
0
0
0
0
0
0
0.065217
0.163636
55
3
32
18.333333
0.608696
0.454545
0
0
0
0
0.208333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4be3297fddc6fb6fba4bd8355331638ba8b66d70
707
py
Python
models/zeros.py
DawyD/illumination-preserving-rotations
4fb69dc2526579a7677c27e75eae3a0b0000b5de
[ "MIT" ]
null
null
null
models/zeros.py
DawyD/illumination-preserving-rotations
4fb69dc2526579a7677c27e75eae3a0b0000b5de
[ "MIT" ]
null
null
null
models/zeros.py
DawyD/illumination-preserving-rotations
4fb69dc2526579a7677c27e75eae3a0b0000b5de
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import Conv2D, ReLU, SeparableConv2D, Input, SpatialDropout2D, MaxPool2D, Concatenate, Conv2DTranspose, BatchNormalization from tensorflow.keras.regularizers import l1, l2 from models.net import Net from layers.kerasGroupNorm import GroupNormalization class Zeros(Ne...
35.35
151
0.721358
89
707
5.561798
0.47191
0.111111
0.090909
0.076768
0
0
0
0
0
0
0
0.015491
0.178218
707
19
152
37.210526
0.836489
0
0
0
0
0
0.024045
0
0
0
0
0
0
1
0.1875
false
0
0.3125
0.0625
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4be54c7f61feb9501683fa638bd0374bbe09f529
13,922
py
Python
Lib/pagebot/elements/conditions.py
bghryct/PageBot
394150c0fd399f02faec28f4576046882f4d7d39
[ "MIT" ]
68
2018-10-22T22:42:58.000Z
2022-03-19T11:07:31.000Z
Lib/pagebot/elements/conditions.py
TypeNetwork/PageBot
394150c0fd399f02faec28f4576046882f4d7d39
[ "MIT" ]
97
2017-07-10T23:49:30.000Z
2018-10-03T08:17:55.000Z
Lib/pagebot/elements/conditions.py
TypeNetwork/PageBot
394150c0fd399f02faec28f4576046882f4d7d39
[ "MIT" ]
9
2017-07-11T09:59:00.000Z
2018-09-12T11:59:30.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T # # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # ...
35.789203
108
0.617943
1,690
13,922
5.075148
0.154438
0.085111
0.099569
0.104932
0.545062
0.504955
0.464731
0.42509
0.42509
0.351988
0
0.027964
0.249964
13,922
388
109
35.881443
0.79343
0.218
0
0.222222
0
0
0.00077
0
0
0
0
0
0
1
0.362319
false
0
0.009662
0.217391
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
4bf9cae86ed3b64532d63a132ed50c966d6bd0b4
826
py
Python
app/models.py
Katze2/Flask-template
99925f6bfbaf92ace9b0fd7c792b989ed90a7e00
[ "MIT" ]
null
null
null
app/models.py
Katze2/Flask-template
99925f6bfbaf92ace9b0fd7c792b989ed90a7e00
[ "MIT" ]
null
null
null
app/models.py
Katze2/Flask-template
99925f6bfbaf92ace9b0fd7c792b989ed90a7e00
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from app import db class ModelExample(db.Model): id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(250)) content = db.Column(db.Text) date = db.Column(db.DateTime) class User(db.Model): id = db.Column(db.Integer, primary_key = True) user = db.Column(db.St...
24.294118
75
0.634383
117
826
4.393162
0.435897
0.140078
0.175097
0.155642
0.303502
0.155642
0.155642
0.155642
0.155642
0.155642
0
0.02322
0.217918
826
33
76
25.030303
0.772446
0.112591
0
0.181818
0
0
0.012329
0
0
0
0
0
0
1
0.227273
false
0.045455
0.045455
0.227273
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
4bfe8f82bf9964afbee833e2a996e71d61b97873
1,638
py
Python
Code/list.py
sunjinshuai/Python
b4d76bc20e9d740108c98cb8d023ca5da3e6c070
[ "MIT" ]
null
null
null
Code/list.py
sunjinshuai/Python
b4d76bc20e9d740108c98cb8d023ca5da3e6c070
[ "MIT" ]
null
null
null
Code/list.py
sunjinshuai/Python
b4d76bc20e9d740108c98cb8d023ca5da3e6c070
[ "MIT" ]
null
null
null
list1 = ['physics', 'chemistry', 1997, 2000] list2 = [1, 2, 3, 4, 5 ] list3 = ["a", "b", "c", "d"] print list1, list2, list3 # 访问列表中的值 # 使用下标索引来访问列表中的值,同样你也可以使用方括号的形式截取字符,如下所示: print "list1[0]: ", list1[0] print "list2[1:5]: ", list2[1:5] # 更新列表 # 你可以对列表的数据项进行修改或更新,你也可以使用append()方法来添加列表项,如下所示: list = [] ...
20.222222
49
0.651404
211
1,638
5.056872
0.473934
0.074977
0.039363
0.050609
0.09747
0.076851
0.054358
0
0
0
0
0.06414
0.162393
1,638
81
50
20.222222
0.713557
0.357143
0
0.131579
0
0
0.194932
0
0
0
0
0
0
0
null
null
0
0
null
null
0.526316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
ef055217f03abbaf7fba6a972f73a617fc132c0f
838
py
Python
src/python/modules/TensorflowCommon/utils.py
dsyme/ADBench
87af0219a568807f8432754688ceb636efac12c6
[ "MIT" ]
58
2019-12-30T16:22:01.000Z
2022-01-23T12:26:51.000Z
src/python/modules/TensorflowCommon/utils.py
dsyme/ADBench
87af0219a568807f8432754688ceb636efac12c6
[ "MIT" ]
112
2019-05-25T07:26:58.000Z
2019-12-28T13:55:33.000Z
src/python/modules/TensorflowCommon/utils.py
dsyme/ADBench
87af0219a568807f8432754688ceb636efac12c6
[ "MIT" ]
22
2020-03-12T16:37:55.000Z
2022-02-23T10:14:37.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import tensorflow as tf def to_tf_tensor(ndarray, dtype = tf.float64): '''Converts the given multidimensional array to a tensorflow tensor. Args: ndarray (ndarray-like): parameter for conversion. dtype (type, optional)...
22.648649
78
0.674224
109
838
5.055046
0.46789
0.101633
0.065336
0
0
0
0
0
0
0
0
0.007776
0.232697
838
37
79
22.648649
0.849145
0.491647
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ef094d452aa651937866c8d859cce7f5a8e866fa
1,265
py
Python
examples/235. Lowest Common Ancestor of a Binary Search Tree.py
yehzhang/RapidTest
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
[ "MIT" ]
null
null
null
examples/235. Lowest Common Ancestor of a Binary Search Tree.py
yehzhang/RapidTest
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
[ "MIT" ]
null
null
null
examples/235. Lowest Common Ancestor of a Binary Search Tree.py
yehzhang/RapidTest
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
[ "MIT" ]
null
null
null
from rapidtest import Test, Case, TreeNode from solutions.lowest_common_ancestor_of_a_binary_search_tree import Solution with Test(Solution, post_proc=TreeNode.get_val) as test: root = TreeNode.from_iterable([6, 2, 8, 0, 4, 7, 9, None, None, 3, 5]) Case(root, TreeNode(2), TreeNode(4), result=TreeNode(2)) C...
43.62069
91
0.660079
185
1,265
4.437838
0.227027
0.221681
0.214373
0.138855
0.685749
0.65408
0.616322
0.616322
0.225335
0.225335
0
0.044188
0.177075
1,265
28
92
45.178571
0.744476
0
0
0.26087
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0.086957
0.26087
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef09cb460708054f80c71807033f5ec91f1f2963
12,087
py
Python
proto/npu_utilization_pb2.py
akaczm/jun-telemetry
84c7208669f4f1749f8db45f4815dafefdbec083
[ "MIT" ]
4
2019-12-02T12:20:47.000Z
2021-08-25T12:52:26.000Z
proto/npu_utilization_pb2.py
akaczm/jun-telemetry
84c7208669f4f1749f8db45f4815dafefdbec083
[ "MIT" ]
null
null
null
proto/npu_utilization_pb2.py
akaczm/jun-telemetry
84c7208669f4f1749f8db45f4815dafefdbec083
[ "MIT" ]
1
2021-08-25T12:47:44.000Z
2021-08-25T12:47:44.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: npu_utilization.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.prot...
40.972881
1,125
0.755522
1,539
12,087
5.610136
0.118908
0.053741
0.055942
0.041696
0.619875
0.577369
0.552467
0.543201
0.532546
0.500811
0
0.037244
0.124762
12,087
294
1,126
41.112245
0.778902
0.03268
0
0.648855
1
0.003817
0.17848
0.131056
0
0
0
0
0
1
0
false
0
0.022901
0
0.022901
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef124d3ce81475f29c8f62fc6238715aeebcf110
764
py
Python
ACCNTS/migrations/0012_auto_20190329_0554.py
domambia/csdigital-gs1kenya-internal-erp
6736d0e9a3a51653689f8ae921cf811f378d9d8e
[ "MIT" ]
12
2019-08-02T07:58:16.000Z
2022-01-31T23:45:08.000Z
ACCNTS/migrations/0012_auto_20190329_0554.py
domambia/csdigital-gs1kenya-internal-erp
6736d0e9a3a51653689f8ae921cf811f378d9d8e
[ "MIT" ]
8
2019-08-02T08:06:18.000Z
2022-03-11T23:45:17.000Z
ACCNTS/migrations/0012_auto_20190329_0554.py
domambia/csdigital-gs1kenya-internal-erp
6736d0e9a3a51653689f8ae921cf811f378d9d8e
[ "MIT" ]
11
2019-07-31T16:23:36.000Z
2022-01-29T08:30:07.000Z
# Generated by Django 2.1.5 on 2019-03-29 05:54 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ACCNTS', '0011_asset_employeetax_income_liability'), ] operations = [ migrations.AddField( model_name='asset', ...
25.466667
66
0.590314
74
764
6
0.486486
0.121622
0.155405
0.182432
0.493243
0.493243
0.493243
0.493243
0.493243
0.369369
0
0.035382
0.29712
764
29
67
26.344828
0.791434
0.058901
0
0.521739
1
0
0.111576
0.054393
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef2c168f7b4d969663dc1ed93f01785a68c36dd1
3,695
py
Python
cVQE/operators/converters/tensoredop_distributor.py
gblazq/cVQE
5a566103c35696ec0cf2b016c38d71de696e0e29
[ "Apache-2.0" ]
1
2021-09-16T12:43:21.000Z
2021-09-16T12:43:21.000Z
cVQE/operators/converters/tensoredop_distributor.py
gblazq/cVQE
5a566103c35696ec0cf2b016c38d71de696e0e29
[ "Apache-2.0" ]
null
null
null
cVQE/operators/converters/tensoredop_distributor.py
gblazq/cVQE
5a566103c35696ec0cf2b016c38d71de696e0e29
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Guillermo Blázquez # # 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 wr...
43.988095
131
0.677402
472
3,695
5.28178
0.302966
0.052948
0.044926
0.040112
0.320096
0.267549
0.209386
0.075411
0.036101
0
0
0.018962
0.243572
3,695
83
132
44.518072
0.872987
0.401894
0
0.064516
0
0
0.088221
0.021053
0
0
0
0.012048
0
1
0.064516
false
0
0.129032
0
0.548387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
ef313c50d5c6317ec48b8b4af0c2b6702fb01991
8,027
py
Python
tests/test_core_deformation.py
matmodlab/matmodlab2
97bb858e2b625cca5f3291db5d50bdbb6352e976
[ "BSD-3-Clause" ]
6
2017-02-14T02:04:56.000Z
2022-02-03T04:53:32.000Z
tests/test_core_deformation.py
tjfulle/matmodlab2
97bb858e2b625cca5f3291db5d50bdbb6352e976
[ "BSD-3-Clause" ]
10
2017-01-21T00:00:06.000Z
2017-01-22T07:39:44.000Z
tests/test_core_deformation.py
tjfulle/matmodlab2
97bb858e2b625cca5f3291db5d50bdbb6352e976
[ "BSD-3-Clause" ]
3
2018-10-20T22:53:59.000Z
2022-01-13T07:17:24.000Z
# -*- coding: utf-8 -*- """ This file contains tests for tensor.py """ import sys import pathlib import pytest import numpy as np from testing_utils import isclose # Ensure that 'matmodlab2' is imported from parent directory. sys.path.insert(0, str(pathlib.Path(__file__).absolute().parent.parent)) import matmodlab2 i...
38.042654
123
0.590133
1,068
8,027
4.354869
0.188202
0.058052
0.047732
0.043002
0.431735
0.414104
0.359063
0.359063
0.332187
0.239303
0
0.364341
0.244674
8,027
210
124
38.22381
0.402771
0.067148
0
0.21519
0
0
0.042794
0
0
0
0
0
0.044304
1
0.037975
false
0.044304
0.044304
0
0.088608
0.044304
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef377a0c8139bd037fffc10567802d319f904716
1,104
py
Python
Hackerrank/Python/class-1-dealing-with-complex-numbers.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
1
2021-01-10T13:29:21.000Z
2021-01-10T13:29:21.000Z
Hackerrank/Python/class-1-dealing-with-complex-numbers.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
Hackerrank/Python/class-1-dealing-with-complex-numbers.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
import math class Complex(object): def __init__(self, real, imaginary): self.real = real self.imaginary = imaginary def __add__(self, no): return (Complex(self.real + no.real, self.imaginary + no.imaginary)) def __sub__(self, no): return (Complex(self.real ...
33.454545
130
0.588768
154
1,104
4.012987
0.25974
0.10356
0.110032
0.135922
0.300971
0.300971
0.300971
0.286408
0.286408
0.286408
0
0.010727
0.240036
1,104
33
131
33.454545
0.725864
0
0
0
0
0
0.042534
0.033484
0
0
0
0
0
1
0.28
false
0
0.04
0.2
0.6
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
ef3f29141380c4970504779ca0adbe37edfcc48e
377
py
Python
lang/Python/abstract-type-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/abstract-type-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/abstract-type-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class BaseQueue(metaclass=ABCMeta): """Abstract Class """ def __init__(self): self.contents = list() @abstractmethod def Enqueue(self, item): pass @abstractmethod def Dequeue(self): pass def Print_Contents(self): ...
17.136364
39
0.594164
40
377
5.475
0.575
0.109589
0
0
0
0
0
0
0
0
0
0
0.30504
377
21
40
17.952381
0.835878
0.037135
0
0.307692
0
0
0.002841
0
0
0
0
0
0
1
0.307692
false
0.153846
0.076923
0
0.461538
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ef519f677beac77f2c2e144f66d4be64d1cbd341
200
py
Python
main.py
Gabriel-ino/Automated-Sticker-Hero
d76952cc35f051b7d9562912f0a063fed6f75068
[ "MIT" ]
null
null
null
main.py
Gabriel-ino/Automated-Sticker-Hero
d76952cc35f051b7d9562912f0a063fed6f75068
[ "MIT" ]
null
null
null
main.py
Gabriel-ino/Automated-Sticker-Hero
d76952cc35f051b7d9562912f0a063fed6f75068
[ "MIT" ]
null
null
null
from App import App from utils.get_screen_size import get_screen_size if __name__ == "__main__": app = App() h, w, ch = get_screen_size() while True: app.proccessing(h, w, ch)
16.666667
49
0.655
31
200
3.774194
0.516129
0.230769
0.333333
0
0
0
0
0
0
0
0
0
0.245
200
11
50
18.181818
0.774834
0
0
0
0
0
0.040404
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef51f52103e4f12bc37feb84f6d66527017f0c6d
1,836
py
Python
dgp/core/config_validators.py
dataspot/dgp
553a255a4884b935cf2efecdc761050232f0f066
[ "MIT" ]
1
2019-07-17T11:34:27.000Z
2019-07-17T11:34:27.000Z
dgp/core/config_validators.py
datahq/dgp
f39592ce20ba67b73b08188f14585b6eb3d43f96
[ "MIT" ]
2
2019-04-30T12:32:32.000Z
2019-04-30T12:35:26.000Z
dgp/core/config_validators.py
dataspot/dgp
553a255a4884b935cf2efecdc761050232f0f066
[ "MIT" ]
null
null
null
class BaseValidator(): MISSING = 0 INVALID = 1 def check(self, config): raise NotImplementedError() class Validator(BaseValidator): def __init__(self, *validators): self._validators = validators def check(self, config): errors = [] for validator in self._validat...
27.402985
113
0.606209
189
1,836
5.751323
0.206349
0.096596
0.082797
0.066237
0.517019
0.443422
0.443422
0.443422
0.443422
0.345906
0
0.001531
0.288671
1,836
66
114
27.818182
0.830781
0
0
0.416667
0
0
0.041939
0
0
0
0
0
0
1
0.208333
false
0
0
0.020833
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
322da51e0820f1bb72e55d0a9cb187b9bcde3c32
223
py
Python
LandingPage/forms.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
LandingPage/forms.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
LandingPage/forms.py
Mihai925/EduCoding-Legacy
7c6de105deb186c3442f8d7f9f1b9f99708f8fb6
[ "MIT" ]
null
null
null
__author__ = 'varun' from django import forms class ContactUsForm(forms.Form): name = forms.CharField() email = forms.CharField() phone = forms.CharField() message = forms.CharField(widget=forms.Textarea)
22.3
52
0.713004
25
223
6.2
0.64
0.36129
0
0
0
0
0
0
0
0
0
0
0.174888
223
10
52
22.3
0.842391
0
0
0
0
0
0.022321
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.857143
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
32305cc75fdcf32a5f4bd15262b34af9e4f413d5
384
py
Python
api/tests/test_app.py
guyskk/purepage
64e2180b751e787f9fe477f9b212b31c84d34cfb
[ "MIT" ]
13
2016-05-03T07:56:43.000Z
2019-08-03T05:58:58.000Z
api/tests/test_app.py
guyskk/purepage
64e2180b751e787f9fe477f9b212b31c84d34cfb
[ "MIT" ]
null
null
null
api/tests/test_app.py
guyskk/purepage
64e2180b751e787f9fe477f9b212b31c84d34cfb
[ "MIT" ]
3
2016-06-04T12:49:34.000Z
2019-04-24T08:51:34.000Z
def test_client(client): assert client.get("/").status_code == 200 def test_root(root): me = root.user.get_me() assert me["id"] == "root" assert me["role"] == "root" def test_user(user): res = user("guyskk", email="guyskk@purepage.org") me = res.user.get_me() assert me["id"] == "guyskk"...
21.333333
53
0.596354
56
384
3.982143
0.375
0.143498
0.080717
0.134529
0.170404
0.170404
0
0
0
0
0
0.009934
0.213542
384
17
54
22.588235
0.728477
0
0
0
0
0
0.164491
0
0
0
0
0
0.5
1
0.25
false
0
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
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
2
32316e929a4d5ae59c28e0cfefeaa04b18e91623
1,017
py
Python
authApp/views/userDetailView.py
juan-skill/django_vue_bank
109f3b84086f4520a5220c311d9d3403a7adc3a2
[ "MIT" ]
null
null
null
authApp/views/userDetailView.py
juan-skill/django_vue_bank
109f3b84086f4520a5220c311d9d3403a7adc3a2
[ "MIT" ]
null
null
null
authApp/views/userDetailView.py
juan-skill/django_vue_bank
109f3b84086f4520a5220c311d9d3403a7adc3a2
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework import generics, status from rest_framework.response import Response from rest_framework_simplejwt.backends import TokenBackend from rest_framework.permissions import IsAuthenticated from authApp.models.user import User from authApp.serializers.userSerializer import ...
39.115385
80
0.738446
108
1,017
6.824074
0.527778
0.043419
0.092266
0
0
0
0
0
0
0
0
0.004751
0.172075
1,017
25
81
40.68
0.870546
0
0
0
0
0
0.060964
0
0
0
0
0
0
1
0.052632
false
0
0.368421
0
0.736842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
325ca5543e9808ec6039d4cf69192bb2bde47b8f
522
py
Python
tests/core/resource_test_base.py
alteia-ai/alteia-python-sdk
27ec7458334334ed6a1edae52cb25d5ce8734177
[ "MIT" ]
11
2020-12-22T14:39:21.000Z
2022-02-18T16:34:34.000Z
tests/core/resource_test_base.py
alteia-ai/alteia-python-sdk
27ec7458334334ed6a1edae52cb25d5ce8734177
[ "MIT" ]
1
2021-08-05T14:21:12.000Z
2021-08-09T13:22:55.000Z
tests/core/resource_test_base.py
alteia-ai/alteia-python-sdk
27ec7458334334ed6a1edae52cb25d5ce8734177
[ "MIT" ]
null
null
null
import os from unittest.mock import patch import alteia from tests.alteiatest import AlteiaTestBase class ResourcesTestBase(AlteiaTestBase): @classmethod def setUpClass(cls): with patch('alteia.core.connection.token.TokenManager.renew_token') as mock: mock.return_value = None ...
27.473684
89
0.726054
66
522
5.545455
0.560606
0.060109
0.081967
0
0
0
0
0
0
0
0
0
0.180077
522
18
90
29
0.85514
0
0
0
0
0
0.136015
0.101533
0
0
0
0
0
1
0.153846
false
0
0.307692
0.076923
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
32664ad5a10d717905dcb559f04579027da2c523
268
py
Python
Python/InvertTree.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
Python/InvertTree.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
Python/InvertTree.py
lywc20/daily-programming
78529e535aea5bda409e5a2a009274dca7011e29
[ "MIT" ]
null
null
null
class TreeNode: def __init__(self,val): self.left = None self.right = None self.val = None def invertTree(self,root): if root: root.left, root.right = self.invertTree(root.right), self.invertTree(root.left) return root
24.363636
87
0.619403
35
268
4.628571
0.371429
0.08642
0.160494
0.283951
0.308642
0
0
0
0
0
0
0
0.272388
268
10
88
26.8
0.830769
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.444444
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
3266f7d31cc045815dafabe76a68d2f3cebde4da
6,843
py
Python
cadence/apps/backend/views.py
BitLooter/Cadence
3adbe51f042120f7154711a58a614ce0e8b3664b
[ "BSD-2-Clause" ]
null
null
null
cadence/apps/backend/views.py
BitLooter/Cadence
3adbe51f042120f7154711a58a614ce0e8b3664b
[ "BSD-2-Clause" ]
null
null
null
cadence/apps/backend/views.py
BitLooter/Cadence
3adbe51f042120f7154711a58a614ce0e8b3664b
[ "BSD-2-Clause" ]
null
null
null
import json import logging from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound from django.core.exceptions import ObjectDoesNotExist from django.views.decorators.csrf import csrf_exempt # See note below on saveplaylist import models # Set up logging logger = logging.getLogger("apps")...
34.736041
153
0.672366
900
6,843
5.013333
0.282222
0.015957
0.025931
0.037234
0.217642
0.187278
0.106826
0.054078
0.054078
0.032358
0
0.007874
0.220517
6,843
196
154
34.913265
0.83802
0.064153
0
0.306818
0
0
0.152094
0.006368
0
0
0
0.010204
0
0
null
null
0.011364
0.068182
null
null
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
3272a27a8fc6fa3c964e19b20bd692f8755a0dee
6,151
py
Python
tests/models.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
tests/models.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
tests/models.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
from datetime import date, time from django.contrib.postgres.fields import ArrayField from django.db import models from django.utils import timezone from django_fsm import FSMField, transition from rest_framework.reverse import reverse from simple_history.models import HistoricalRecords from bridger.buttons import Ac...
31.22335
123
0.677451
691
6,151
5.833575
0.253256
0.04639
0.037956
0.046142
0.484495
0.434135
0.358224
0.293724
0.293724
0.242124
0
0.011139
0.211835
6,151
196
124
31.382653
0.820338
0.023736
0
0.340136
0
0
0.129426
0.025217
0
0
0
0
0
1
0.129252
false
0.013605
0.081633
0.115646
0.557823
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
329e532aeccbe51ed3829d6a07920bf7c69171ef
602
py
Python
Python OOP/Exams/23 August 2021/1, 2/project/astronaut/astronaut_repository.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python OOP/Exams/23 August 2021/1, 2/project/astronaut/astronaut_repository.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
Python OOP/Exams/23 August 2021/1, 2/project/astronaut/astronaut_repository.py
a-shiro/SoftUni-Courses
7d0ca6401017a28b5ff7e7fa3e5df8bba8ddbe77
[ "MIT" ]
null
null
null
class AstronautRepository: def __init__(self): self.astronauts = [] def add(self, astronaut): self.astronauts.append(astronaut) def remove(self, astronaut): self.astronauts.remove(astronaut) def find_by_name(self, name: str): for astronaut in self.astronauts: ...
30.1
92
0.609635
67
602
5.358209
0.432836
0.194986
0.094708
0.150418
0.21727
0.21727
0.21727
0
0
0
0
0.009501
0.300664
602
19
93
31.684211
0.84323
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.066667
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
32b0d4c387e53daeda7939c3bdfe5d3e18cb6dbb
210
py
Python
setup.py
cogsy23/pyfsm
22236994f7455a39489d1438b7c8bbcd081352be
[ "MIT" ]
null
null
null
setup.py
cogsy23/pyfsm
22236994f7455a39489d1438b7c8bbcd081352be
[ "MIT" ]
null
null
null
setup.py
cogsy23/pyfsm
22236994f7455a39489d1438b7c8bbcd081352be
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='FSM', version='0.1', author='Ben Coughlan', author_email='ben@cgsy.com.au', packages=find_packages(), license_file='LICENSE', )
19.090909
43
0.666667
27
210
5.037037
0.740741
0.176471
0
0
0
0
0
0
0
0
0
0.011696
0.185714
210
10
44
21
0.783626
0
0
0
0
0
0.190476
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
32c012e2243ac30d8702a0e4c7e1a09c458c9ec8
12,819
py
Python
pysnmp/HUAWEI-CDP-COMPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HUAWEI-CDP-COMPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HUAWEI-CDP-COMPLIANCE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HUAWEI-CDP-COMPLIANCE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-CDP-COMPLIANCE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:31:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3....
140.868132
2,381
0.791715
1,244
12,819
8.156752
0.138264
0.010446
0.010939
0.014586
0.297625
0.230413
0.213758
0.187543
0.180447
0.180447
0
0.072977
0.075357
12,819
90
2,382
142.433333
0.783093
0.026835
0
0.060976
0
0
0.176961
0.10276
0
0
0
0
0
1
0
false
0
0.121951
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
32c40b429ba7f1090b72fd13e36b8055346940c3
827
py
Python
q2_api_client/clients/mobile_ws/calendar_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
q2_api_client/clients/mobile_ws/calendar_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
q2_api_client/clients/mobile_ws/calendar_client.py
jcook00/q2-api-client
4431af164eb4baf52e26e8842e017cad1609a279
[ "BSD-2-Clause" ]
null
null
null
from q2_api_client.clients.base_q2_client import BaseQ2Client from q2_api_client.endpoints.mobile_ws_endpoints import CalendarEndpoint class CalendarClient(BaseQ2Client): def get_calendar(self): """GET /mobilews/calendar :return: Response object :rtype: requests.Response """ ...
33.08
108
0.718259
90
827
6.344444
0.411111
0.105079
0.031524
0.052539
0.381786
0.381786
0.381786
0.381786
0.255692
0
0
0.007541
0.198307
827
24
109
34.458333
0.853695
0.255139
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
32c4baf38f537ef55e48bae1faabe6aee1fe7ca3
11,477
py
Python
cg_token.py
gmnicke2/GISolve-API-Util
74d10d2ae60c1f000ef151a394ef9276b284867a
[ "MIT" ]
null
null
null
cg_token.py
gmnicke2/GISolve-API-Util
74d10d2ae60c1f000ef151a394ef9276b284867a
[ "MIT" ]
null
null
null
cg_token.py
gmnicke2/GISolve-API-Util
74d10d2ae60c1f000ef151a394ef9276b284867a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Set of utilities to issue/verify/revoke a CG token with REST calls Requires valid username and password either in bash environment or given at the command line. Issue Token: Token can be easily created (and stored to env) with the folloing: # create token using CG_USERNAME, ...
33.55848
81
0.611658
1,386
11,477
4.984127
0.227273
0.0152
0.024609
0.014765
0.1837
0.143167
0.091922
0.085263
0.066589
0.046902
0
0.008039
0.273852
11,477
341
82
33.656892
0.820854
0.01246
0
0.169811
0
0
0.199081
0.003982
0
0
0
0
0
0
null
null
0.08805
0.037736
null
null
0.012579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
086a788b83deae56a16772a629310d3b84a228a0
570
py
Python
Server/server/model_inference/predictor.py
thaiminhpv/Doctor-Cyclop-Hackathon-2021
afb943f7d00ceccb408c895077517ddd06d87fd7
[ "MIT" ]
6
2021-04-30T05:28:04.000Z
2022-03-21T14:50:43.000Z
Server/server/model_inference/predictor.py
thaiminhpv/Doctor-Cyclop-Hackathon-2021
afb943f7d00ceccb408c895077517ddd06d87fd7
[ "MIT" ]
null
null
null
Server/server/model_inference/predictor.py
thaiminhpv/Doctor-Cyclop-Hackathon-2021
afb943f7d00ceccb408c895077517ddd06d87fd7
[ "MIT" ]
1
2022-01-10T14:58:02.000Z
2022-01-10T14:58:02.000Z
import numpy as np import pandas as pd from server.model_inference.config import labels from server.model_inference.core_model import get_model_prediction from server.util.prediction_to_json import pandas_to_json def get_predictions(images): ids = list(images.keys()) out = np.hstack((np.asarray(ids)[np.newax...
31.666667
90
0.764912
84
570
4.952381
0.452381
0.072115
0.072115
0.115385
0
0
0
0
0
0
0
0
0.12807
570
17
91
33.529412
0.837022
0
0
0
0
0
0.02807
0
0
0
0
0
0
1
0.083333
false
0
0.416667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
086cc04c9a62e2ff1bedaaac23c04ca27ca1b7b4
2,264
py
Python
schedule/tests/scheduler_latest_test.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
1
2021-03-31T05:26:17.000Z
2021-03-31T05:26:17.000Z
schedule/tests/scheduler_latest_test.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
83
2018-03-19T18:32:34.000Z
2022-02-01T02:15:01.000Z
schedule/tests/scheduler_latest_test.py
conzty01/RA_Scheduler
6bf4931871aef4058d93917e62ceb31766e06b3a
[ "MIT" ]
2
2021-01-15T22:16:00.000Z
2021-02-10T01:03:32.000Z
from schedule.scheduler4_0 import schedule from schedule.ra_sched import Schedule, RA from unittest.mock import MagicMock, patch from datetime import date import unittest import random class TestScheduler(unittest.TestCase): def setUp(self): # -- Create a patchers for the logging -- self.patcher_...
31.444444
79
0.651502
204
2,264
7.014706
0.308824
0.115304
0.0587
0.083857
0.165618
0.148847
0.148847
0.127184
0
0
0
0.001171
0.245583
2,264
71
80
31.887324
0.836651
0.1303
0
0.157895
0
0
0.039528
0
0
0
0
0
0
1
0.210526
false
0.157895
0.157895
0
0.394737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
087388739eebaad50c966ec02ed0312b37726c72
1,203
py
Python
w_cutscenes_test.py
wholetonegames/panda3d-ness-rpg
8d81e8418c1bc20706b5b3f4c0631fe9bd76a65e
[ "MIT" ]
1
2021-02-01T03:09:28.000Z
2021-02-01T03:09:28.000Z
w_cutscenes_test.py
wholetonegames/panda3d-ness-rpg
8d81e8418c1bc20706b5b3f4c0631fe9bd76a65e
[ "MIT" ]
null
null
null
w_cutscenes_test.py
wholetonegames/panda3d-ness-rpg
8d81e8418c1bc20706b5b3f4c0631fe9bd76a65e
[ "MIT" ]
null
null
null
from w_i_stage import IStage from direct.interval.IntervalGlobal import Sequence, Func, Wait class CutsceneTest(IStage): def __init__(self): IStage.__init__(self) def setup(self): self.previousMap = base.gameData.currentMap base.gameData.currentMap = 'city' self.previousPos = ...
25.0625
63
0.596841
124
1,203
5.709677
0.443548
0.101695
0.09322
0.076271
0
0
0
0
0
0
0
0.004706
0.293433
1,203
47
64
25.595745
0.828235
0
0
0.052632
0
0
0.03325
0
0
0
0
0
0
1
0.210526
false
0.052632
0.052632
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
08826307649d95fd1f1fa357479507c8385245c7
1,181
py
Python
tests/test_get_schedule.py
j-muller/pypuregym
396862047f8b5c0b1138b5c562ddb6958aaa6817
[ "MIT" ]
1
2020-12-31T01:42:14.000Z
2020-12-31T01:42:14.000Z
tests/test_get_schedule.py
j-muller/pypuregym
396862047f8b5c0b1138b5c562ddb6958aaa6817
[ "MIT" ]
null
null
null
tests/test_get_schedule.py
j-muller/pypuregym
396862047f8b5c0b1138b5c562ddb6958aaa6817
[ "MIT" ]
null
null
null
from .utilities import Response SCHEDULE_RESPONSE = b""" {"error":{"code":200,"message":"Success"},"data":{"classes":[{ "id":113209,"sector":"F","class_type_id":48,"start_date":"2020-06-07", "end_date":"2020-06-07","start_time":"09:00:00","end_time":"09:45:00", "duration":"2700000","teacher_id":782,"location_id":10,"l...
36.90625
76
0.663844
169
1,181
4.414201
0.526627
0.040214
0.053619
0.064343
0.045576
0
0
0
0
0
0
0.096925
0.091448
1,181
31
77
38.096774
0.598322
0
0
0
0
0.111111
0.699407
0.655377
0
0
0
0
0.037037
1
0.037037
false
0
0.037037
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0897118d6f2834e2b8c74ba12247412406dbd2c7
557
py
Python
Trakttv.bundle/Contents/Libraries/Shared/playhouse/berkeleydb.py
disrupted/Trakttv.bundle
24712216c71f3b22fd58cb5dd89dad5bb798ed60
[ "RSA-MD" ]
1,346
2015-01-01T14:52:24.000Z
2022-03-28T12:50:48.000Z
Trakttv.bundle/Contents/Libraries/Shared/playhouse/berkeleydb.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
474
2015-01-01T10:27:46.000Z
2022-03-21T12:26:16.000Z
Trakttv.bundle/Contents/Libraries/Shared/playhouse/berkeleydb.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
191
2015-01-02T18:27:22.000Z
2022-03-29T10:49:48.000Z
import datetime import decimal from playhouse.sqlite_ext import * # Peewee assumes that the `pysqlite2` module was compiled against the # BerkeleyDB SQLite libraries. from pysqlite2 import dbapi2 as berkeleydb berkeleydb.register_adapter(decimal.Decimal, str) berkeleydb.register_adapter(datetime.date, str) berkeleyd...
27.85
69
0.779174
66
557
6.454545
0.560606
0.126761
0.176056
0.131455
0.169014
0
0
0
0
0
0
0.006303
0.145422
557
19
70
29.315789
0.888655
0.172352
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
089bce5935bf86ce3e21aaf4f16ec72196bcf521
433
py
Python
bot/handlers/common.py
slawiko/remindmelater_bot
76e46f7a42ee2eb02d0b06eea1eb2b8c6f76cb9e
[ "Apache-2.0" ]
null
null
null
bot/handlers/common.py
slawiko/remindmelater_bot
76e46f7a42ee2eb02d0b06eea1eb2b8c6f76cb9e
[ "Apache-2.0" ]
2
2017-06-11T11:07:30.000Z
2017-06-24T05:37:34.000Z
bot/handlers/common.py
slawiko/remindmelater_bot
76e46f7a42ee2eb02d0b06eea1eb2b8c6f76cb9e
[ "Apache-2.0" ]
null
null
null
import logging from telegram.ext import CommandHandler logger = logging.getLogger(__name__) def handle_dispatcher(dispatcher): dispatcher.add_handler(ping()) dispatcher.add_error_handler(error) def error(a, b, c): logger.error('Error %s %s "%s"' % a, b, c) def ping(): def handle(bot, update): ...
18.041667
69
0.699769
59
433
4.949153
0.491525
0.061644
0.020548
0
0
0
0
0
0
0
0
0
0.170901
433
23
70
18.826087
0.81337
0
0
0
0
0
0.055684
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
08a23fb05230d43cddbfc2a0b66eda446175157f
322
py
Python
PTA/PAT_B/Python3/B1061_AC.py
StrayDragon/OJ-Solutions
b31b11c01507544aded2302923da080b39cf2ba8
[ "MIT" ]
1
2019-05-13T10:09:55.000Z
2019-05-13T10:09:55.000Z
PTA/PAT_B/Python3/B1061_AC.py
StrayDragon/OJ-Solutions
b31b11c01507544aded2302923da080b39cf2ba8
[ "MIT" ]
null
null
null
PTA/PAT_B/Python3/B1061_AC.py
StrayDragon/OJ-Solutions
b31b11c01507544aded2302923da080b39cf2ba8
[ "MIT" ]
null
null
null
n, m = map(int, input().split()) scores = list(map(int, input().split())) answers = list(map(int, input().split())) for i in range(n): actuals = list(map(int, input().split())) result = 0 for i, score in enumerate(scores): if actuals[i] == answers[i]: result += score print(result...
21.466667
45
0.568323
46
322
3.978261
0.434783
0.131148
0.240437
0.349727
0.327869
0
0
0
0
0
0
0.004082
0.23913
322
14
46
23
0.742857
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
08a840735e2065bf6687b54ab836fe21b29363da
901
py
Python
src/npgru/predictor/tensorflow_predictor.py
grainpowder/gru-forward-numpy-app
efd24f9f397d51e7e18bdad5cba12451ad69d3de
[ "MIT" ]
null
null
null
src/npgru/predictor/tensorflow_predictor.py
grainpowder/gru-forward-numpy-app
efd24f9f397d51e7e18bdad5cba12451ad69d3de
[ "MIT" ]
null
null
null
src/npgru/predictor/tensorflow_predictor.py
grainpowder/gru-forward-numpy-app
efd24f9f397d51e7e18bdad5cba12451ad69d3de
[ "MIT" ]
null
null
null
from typing import List, Tuple import sentencepiece as spm import tensorflow as tf import tensorflow.keras as keras from npgru.predictor.category_predictor import CategoryPredictor from npgru.preprocessor.model_file import get_model_dir class TensorflowPredictor(CategoryPredictor): def __init__(self): ...
39.173913
116
0.751387
112
901
5.839286
0.491071
0.061162
0.033639
0
0
0
0
0
0
0
0
0.003916
0.149834
901
22
117
40.954545
0.849869
0
0
0
0
0
0.027747
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
08b87f9a1caf36c7bc295170c1ae9c29a566dd2b
1,494
py
Python
Python scripts/Mail/search-and-modify-inbox-mail.py
shartrooper/My-python-scripts
5c3a8db4ed9a75bd9ab4b29153a788d9e6c5d28c
[ "MIT" ]
null
null
null
Python scripts/Mail/search-and-modify-inbox-mail.py
shartrooper/My-python-scripts
5c3a8db4ed9a75bd9ab4b29153a788d9e6c5d28c
[ "MIT" ]
null
null
null
Python scripts/Mail/search-and-modify-inbox-mail.py
shartrooper/My-python-scripts
5c3a8db4ed9a75bd9ab4b29153a788d9e6c5d28c
[ "MIT" ]
null
null
null
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> # pip install imapclient // pip install pyzmail >>> import imapclient >>> conn= imapclient.IMAPClient('imap.gmail.com', ssl=True) #True to use S...
33.954545
101
0.680054
208
1,494
4.817308
0.548077
0.03992
0.05988
0.067864
0.139721
0.139721
0.139721
0.139721
0.139721
0.139721
0
0.034884
0.136546
1,494
44
101
33.954545
0.74186
0.127845
0
0.074074
0
0
0.277157
0
0
0
0
0
0
0
null
null
0.074074
0.074074
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
08f715599ebdccb7db7f9153cc150737106850d8
6,904
py
Python
fabric_cf/actor/core/util/resource_count.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/actor/core/util/resource_count.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/actor/core/util/resource_count.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
33.033493
119
0.637167
832
6,904
5.168269
0.203125
0.214884
0.111628
0.133953
0.588372
0.543256
0.543256
0.51814
0.502791
0.445814
0
0.003497
0.295915
6,904
208
120
33.192308
0.881094
0.464079
0
0.384615
0
0
0
0
0
0
0
0
0
1
0.215385
false
0
0.015385
0
0.446154
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
3eaf7ae8895d39770420351b1a65c6dd69d2f75e
1,829
py
Python
sdk/python/kfp/v2/components/utils.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
1
2021-10-23T00:39:47.000Z
2021-10-23T00:39:47.000Z
sdk/python/kfp/v2/components/utils.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/v2/components/utils.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow Authors # # 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...
31.534483
77
0.689995
256
1,829
4.832031
0.496094
0.048504
0.021019
0.025869
0
0
0
0
0
0
0
0.008293
0.208857
1,829
57
78
32.087719
0.846579
0.592674
0
0
0
0
0.050076
0
0
0
0
0
0
1
0.125
false
0
0.4375
0
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3eb1886d18a07c578c32647296635bbe0ed29b6d
285
py
Python
yamlcfg/__init__.py
RiskIQ/pyyamlcfg
93affb9dfdbae7deebd60b50b23b7036682866e4
[ "BSD-2-Clause" ]
2
2016-05-25T13:50:14.000Z
2017-08-08T18:24:04.000Z
yamlcfg/__init__.py
RiskIQ/pyyamlcfg
93affb9dfdbae7deebd60b50b23b7036682866e4
[ "BSD-2-Clause" ]
2
2015-09-13T12:48:50.000Z
2019-04-25T10:26:00.000Z
yamlcfg/__init__.py
RiskIQ/pyyamlcfg
93affb9dfdbae7deebd60b50b23b7036682866e4
[ "BSD-2-Clause" ]
3
2016-04-29T07:12:44.000Z
2019-04-08T07:52:14.000Z
#!/usr/bin/env python ''' yamlcfg Bring in Configs into namespace ''' from yamlcfg.conf import Config as BaseConfig from yamlcfg.yml import YAMLConfig YMLConfig = YAMLConfig YamlConfig = YAMLConfig from yamlcfg.util import normalize, validate_ext from yamlcfg.env import check_env
19
48
0.8
39
285
5.794872
0.615385
0.19469
0
0
0
0
0
0
0
0
0
0
0.136842
285
14
49
20.357143
0.918699
0.214035
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3ebc05f1d094795c30a0aca20105e5ff7a3813fa
596
py
Python
data_visualization_gui/src/interactive.py
bbueno5000/DataGUI
940fcd0fb8dbde22350eacd538a8a1c244eb28ea
[ "MIT" ]
null
null
null
data_visualization_gui/src/interactive.py
bbueno5000/DataGUI
940fcd0fb8dbde22350eacd538a8a1c244eb28ea
[ "MIT" ]
2
2021-03-31T19:46:50.000Z
2021-12-13T20:37:15.000Z
data_visualization_gui/src/interactive.py
bbueno5000/DataGUI
940fcd0fb8dbde22350eacd538a8a1c244eb28ea
[ "MIT" ]
null
null
null
""" DOCSTRING """ import dash import dash.dependencies as dependencies import dash_core_components.Graph as Graph import dash_core_components.Input as Input import dash_html_components.Div as Div import dash_html_components.H1 as H1 app = dash.Dash() app.layout = Div(children=[Input(id='input', value='blank', type='te...
35.058824
92
0.753356
84
596
5.154762
0.392857
0.138568
0.064665
0.110855
0
0
0
0
0
0
0
0.003759
0.107383
596
17
93
35.058824
0.81015
0.015101
0
0
0
0
0.094828
0
0
0
0
0
0
1
0.076923
false
0
0.461538
0.076923
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3ec94f77c122b98fdf7c96a211b8a9024dac0bae
57,058
py
Python
pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HH3C-DOT3-EFM-EPON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-DOT3-EFM-EPON-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:26:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
169.311573
5,121
0.783483
7,495
57,058
5.962508
0.080987
0.053704
0.093983
0.008414
0.569245
0.447672
0.427398
0.391573
0.352906
0.327955
0
0.095076
0.101353
57,058
336
5,122
169.815476
0.77648
0.005924
0
0.033846
0
0.150769
0.418032
0.04403
0
0
0
0
0
1
0
false
0.043077
0.024615
0
0.024615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3ecdb707d9b5224c78e8710bc0080bbb309fdaf0
279
py
Python
config.py
DiagnoSkin/diagnoskin-server
e1cae10423323cc681d6acf6cc5d1511e6e2cae5
[ "Apache-2.0" ]
null
null
null
config.py
DiagnoSkin/diagnoskin-server
e1cae10423323cc681d6acf6cc5d1511e6e2cae5
[ "Apache-2.0" ]
4
2021-06-08T20:42:49.000Z
2022-03-12T00:08:54.000Z
config.py
DiagnoSkin/diagnoskin-server
e1cae10423323cc681d6acf6cc5d1511e6e2cae5
[ "Apache-2.0" ]
null
null
null
import json class Config: def __init__(self, configPath): with open(configPath) as configFile: configFileContent = json.load(configFile) self.imageHeight = configFileContent['imageHeight'] self.imageWidth = configFileContent['imageWidth']
34.875
59
0.698925
25
279
7.64
0.64
0
0
0
0
0
0
0
0
0
0
0
0.215054
279
8
60
34.875
0.872146
0
0
0
0
0
0.075
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3ed5304c84ec79c59f7ad03780e20d83636a1751
493
py
Python
exec_ops/python/run.py
orm011/skyhookml
0cec9011ffbece3348cf56275f027c4b5b31b4d4
[ "MIT" ]
null
null
null
exec_ops/python/run.py
orm011/skyhookml
0cec9011ffbece3348cf56275f027c4b5b31b4d4
[ "MIT" ]
null
null
null
exec_ops/python/run.py
orm011/skyhookml
0cec9011ffbece3348cf56275f027c4b5b31b4d4
[ "MIT" ]
null
null
null
import sys sys.path.append('./python') import skyhook.common as lib import io import json import math import numpy import os import os.path import skimage.io import struct user_func = None # user_func will be defined by the exec call in meta_func def callback(*args): return user_func(*args) def meta_func(meta):...
17.607143
57
0.720081
79
493
4.392405
0.518987
0.115274
0
0
0
0
0
0
0
0
0
0
0.186613
493
27
58
18.259259
0.865337
0.180527
0
0
0
0
0.032419
0
0
0
0
0
0
1
0.1
false
0
0.5
0.05
0.65
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
3ed9543d76f8e0c91108d623c8ce3f5c3c426593
3,965
py
Python
MyUser/api/tests/allauth_login.py
mrvafa/blog-api
cef0773b3199bfb785126ce82567fd7fc78e6c89
[ "MIT" ]
null
null
null
MyUser/api/tests/allauth_login.py
mrvafa/blog-api
cef0773b3199bfb785126ce82567fd7fc78e6c89
[ "MIT" ]
null
null
null
MyUser/api/tests/allauth_login.py
mrvafa/blog-api
cef0773b3199bfb785126ce82567fd7fc78e6c89
[ "MIT" ]
null
null
null
from django.test import TestCase, override_settings from django.urls import reverse from rest_framework.test import APIClient from MyUser.models import User @override_settings(ACCOUNT_EMAIL_VERIFICATION='none') class TestAllAuthLogin(TestCase): def setUp(self): self.client = APIClient() self.user...
50.189873
118
0.64691
491
3,965
5.044807
0.164969
0.080743
0.035527
0.045216
0.706096
0.691966
0.683488
0.633024
0.619298
0.619298
0
0.014715
0.177301
3,965
78
119
50.833333
0.744635
0
0
0.485294
0
0
0.233796
0
0
0
0
0
0.205882
1
0.117647
false
0.161765
0.058824
0
0.191176
0
0
0
0
null
0
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
0
0
1
0
0
0
0
0
2